/* Weplox 10.9: a forming navigation surface, a clear contact band and yellow CTA. */

/* The scroll progress already drives surface opacity. Use that same continuous
   value for the shape so crossing the old 65px threshold never snaps the bar.
   The SVG logo keeps its fixed size and has no entrance animation. */
.header {
  --header-wide: min(1700px, calc(100% - 2 * clamp(4px, 3vw, 55px)));
  --header-compact: min(700px, calc(100% - 20px));
}
.header .header-inner,
.header.is-scrolled .header-inner {
  width: calc(var(--header-wide) * (1 - var(--header-progress, 0)) + var(--header-compact) * var(--header-progress, 0));
  height: calc(82px - 16px * var(--header-progress, 0));
  margin-top: calc(17px - 5px * var(--header-progress, 0));
  padding: calc(10px - 2px * var(--header-progress, 0)) calc(18px - 5px * var(--header-progress, 0));
  border-radius: calc(23px + 77px * var(--header-progress, 0));
  transition: width .18s linear, height .18s linear, margin-top .18s linear,
    padding .18s linear, border-radius .18s linear !important;
}
.header .header-inner::before,
.header .header-inner::after {
  transition: opacity .18s linear;
}
/* Button chips keep one treatment; only the surrounding bar forms on scroll. */
.header.is-scrolled .pill,
.header.is-scrolled .partner-entry,
.header.is-scrolled .language-switch {
  box-shadow: none;
}

.projects-more {
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--lime);
  color: #111;
  overflow: visible;
}
.projects-more a {
  display: flex;
  width: 100%;
  min-height: 112px;
  padding: 28px 32px;
  border-radius: inherit;
  background: var(--lime);
  color: #111;
  font-family: var(--title-font);
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  transition: background-color .24s ease, box-shadow .24s ease;
}
.projects-more a:hover,
.projects-more a:focus-visible {
  color: #111;
  background: #f0ff5c;
  box-shadow: 0 8px 32px #e9ff071a;
}
.projects-more a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
.projects-more .arrow {
  width: 28px;
  height: 28px;
  transition: transform .25s var(--ease);
}
.projects-more a:hover .arrow,
.projects-more a:focus-visible .arrow {
  transform: translateY(4px);
}

/* A full-width section with a contrasting surface makes the enquiry form a
   distinct destination, while keeping it visible directly in the page. */
#contact-section.contact-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  background: #151515;
  color: #fff;
}
#contact-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--lime);
  pointer-events: none;
}
#contact-section .contact-inline-layout { padding: 0; }
#contact-section .contact-inline-intro .section-lead { color: #c5c5c5; }
#contact-section .inline-contact-mail { border-color: #555; }
#contact-section .inline-contact {
  background: #080808;
  border: 1px solid #292929;
}
#contact-section .inline-contact .form-field input,
#contact-section .inline-contact .form-field select,
#contact-section .inline-contact .form-field textarea {
  background-color: #1b1b1b;
}
:root[data-theme="light"] #contact-section.contact-shell {
  background: #f1f1ed;
  color: #171819;
  border-color: #deded7;
}
:root[data-theme="light"] #contact-section .contact-inline-intro .section-lead { color: #555952; }
:root[data-theme="light"] #contact-section .inline-contact-mail { border-color: #adb0a7; }
:root[data-theme="light"] #contact-section .inline-contact {
  background: #fff;
  border-color: #deded7;
}
:root[data-theme="light"] #contact-section .inline-contact .form-field input,
:root[data-theme="light"] #contact-section .inline-contact .form-field select,
:root[data-theme="light"] #contact-section .inline-contact .form-field textarea {
  background-color: #f3f3ef;
}
:root[data-theme="light"] #contact-section .inline-contact .consent-field input:checked {
  box-shadow: inset 0 0 0 3px #fff;
}

@media (max-width: 760px) {
  .header .header-inner,
  .header.is-scrolled .header-inner {
    width: 100%;
    height: calc(70px - 4px * var(--header-progress, 0));
    margin-top: 10px;
    padding: 8px;
    border-radius: calc(19px + 5px * var(--header-progress, 0));
  }
  .projects-more a { min-height: 96px; gap: 16px; padding: 24px 20px; }
  #contact-section.contact-shell { padding-block: 46px; }
}
@media (max-width: 480px) {
  .header .header-inner,
  .header.is-scrolled .header-inner { height: 66px; padding: 6px; }
  .projects-more { border-radius: 13px; }
  .projects-more a { min-height: 92px; font-size: clamp(16px, 4.5vw, 21px); }
  .projects-more .arrow { width: 24px; height: 24px; }
  #contact-section.contact-shell { padding-block: 38px; }
}
/* Keep 44px targets and the established two-row header on the narrowest phones. */
@media (max-width: 369px) {
  .header .header-inner,
  .header.is-scrolled .header-inner {
    height: auto;
    min-height: 110px;
    padding: 8px 12px;
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header .header-inner,
  .header.is-scrolled .header-inner,
  .header .header-inner::before,
  .header .header-inner::after,
  .projects-more a,
  .projects-more .arrow { transition: none !important; }
  .projects-more a:hover .arrow,
  .projects-more a:focus-visible .arrow { transform: none; }
}
