/* ==========================================================================
   Wellfit Designs — core stylesheet
   Design tokens are taken from the supplied HTML reference
   ("Wellfit Designs — Website — Home page.html"):
   colours, DM Serif Display + Jost, 76px / 46px headings, 17px body,
   13px eyebrows (.18em), 24px cards, pill buttons, 12px inputs,
   96px section rhythm, 1152px content width and the 200px arch.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "DM Serif Display";
  src: url("../assets/fonts/dm-serif-display-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (reference HTML) */
  --sand: #EAE6DB;        /* page background */
  --linen: #F6F3EA;       /* soft panels */
  --white: #FFFFFF;
  --ink: #14181F;         /* text and dark sections */
  --navy: #1B4F7C;        /* primary action */
  --navy-deep: #143B5C;   /* primary hover */
  --terracotta: #D9622B;  /* accent */
  --rust: #B8481A;        /* eyebrow / accent text on light (reference) */
  --rust-text: #A9421A;   /* same hue, darkened so small text meets WCAG AA (4.8:1 on sand) */
  --apricot: #F4A26B;     /* accent on dark */
  --stone: #C9C3B3;       /* hairlines (reference input border) */
  --stone-strong: #8C8577; /* form-control borders: same hue, 3.7:1 on white for WCAG 1.4.11 */
  --mist: #C9CED6;        /* secondary text on dark */

  /* Derived tones */
  --ink-soft: #3A3F47;
  --line: rgba(20, 24, 31, .14);
  --line-strong: rgba(20, 24, 31, .28);
  --line-light: rgba(234, 230, 219, .18);

  /* Typography */
  --font-display: "DM Serif Display", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);   /* 76px max — reference h1 */
  --fs-h1: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);
  --fs-h2: clamp(2.1rem, 1.55rem + 1.9vw, 2.875rem);      /* 46px max — reference h2 */
  --fs-h3: clamp(1.45rem, 1.25rem + .7vw, 1.75rem);
  --fs-num: 2.5rem;                                        /* 40px — reference .num */
  --fs-lead: clamp(1.125rem, 1.06rem + .25vw, 1.25rem);    /* 20px — reference hero copy */
  --fs-body: 1.0625rem;                                    /* 17px — reference body */
  --fs-small: .875rem;
  --fs-eyebrow: .8125rem;                                  /* 13px — reference eyebrow */

  /* Layout */
  --wrap: 1152px;
  --wrap-wide: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 8vw, 96px);
  --radius-card: 24px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --arch-top: 200px;
  --header-h: 92px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--navy); color: var(--sand); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: var(--apricot); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 2000;
  background: var(--ink); color: var(--sand); padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 500; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .66); }
.section--linen { background: var(--linen); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
.stack > * + * { margin-top: 1em; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 var(--fs-eyebrow)/1.3 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rust-text); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.on-dark .eyebrow, .section--ink .eyebrow, .section--navy .eyebrow, .card--ink .eyebrow { color: var(--apricot); }
.eyebrow--plain::before { display: none; }
.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1.04; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; margin-bottom: 24px; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.on-dark .muted, .section--ink .muted { color: var(--mist); }
.accent { color: var(--rust); }
.on-dark .accent, .section--ink .accent { color: var(--apricot); }
.num { font: 400 var(--fs-num)/1 var(--font-display); color: var(--terracotta); }
.small { font-size: var(--fs-small); }
.measure { max-width: 60ch; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin: 0; }
.section-head p { margin: 0; }
.section-head--stack { grid-template-columns: minmax(0, 760px); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); --btn-fill: var(--navy-deep); --btn-fg-hover: var(--white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 16px 32px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: 500 1rem/1.1 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  transition: color .6s var(--ease-out), border-color .6s var(--ease-out);
}
.btn > span, .btn > svg { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit;
  background: var(--btn-fill); transform: translateY(102%); transition: transform .65s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__icon { width: 18px; height: 18px; flex: none; transition: transform .6s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); --btn-fill: var(--navy); }
.btn--light { --btn-bg: var(--sand); --btn-fg: var(--ink); --btn-bd: var(--sand); --btn-fill: var(--white); --btn-fg-hover: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--sand); --btn-bd: rgba(234, 230, 219, .55); --btn-fill: var(--sand); --btn-fg-hover: var(--ink); }
.btn--sm { min-height: 46px; padding: 12px 24px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding-bottom: 4px; min-height: 44px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.link-line:hover { background-size: 0 1px; background-position: right bottom; }
.link-line svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.link-line:hover svg { transform: translateX(4px); }
p .link-line, .muted .link-line { min-height: 0; display: inline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .7s var(--ease-out), background-color .5s ease, box-shadow .5s ease, height .5s var(--ease-out);
}
.site-header.is-scrolled { --header-h: 76px; background: rgba(234, 230, 219, .88); -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 68px; width: auto; transition: height .5s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 56px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); font-weight: 500; }
.nav__link { position: relative; padding: 10px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: inline-flex; }
.menu-toggle {
  display: none; position: relative; z-index: 120; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: transparent; align-items: center; justify-content: center;
}
.menu-toggle__bars { position: relative; width: 20px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8.5px; }
.menu-open .menu-toggle { color: var(--sand); border-color: var(--line-light); }
.menu-open .menu-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--sand);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s linear .9s;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.menu__top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h); margin-bottom: 24px; background: var(--ink);
}
.menu__brand img { height: 48px; width: auto; }
.menu__close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 20px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(234, 230, 219, .55); background: var(--sand); color: var(--ink); font: 500 1rem/1 var(--font-body);
}
.menu__close svg { width: 18px; height: 18px; }
.menu__close:active { transform: scale(.97); }
.menu__list { list-style: none; display: grid; gap: 4px; }
.menu__link { display: block; overflow: hidden; font: 400 clamp(2.4rem, 9vw, 3.6rem)/1.15 var(--font-display); }
.menu__link span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.menu.is-open .menu__link span { transform: none; transition-delay: calc(.3s + var(--i, 0) * .06s); }
.menu__link[aria-current="page"] span { color: var(--apricot); }
.menu__foot { display: grid; gap: 8px; color: var(--mist); opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .8s var(--ease-out); }
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: .7s; }
.menu__foot a:not(.btn) { color: var(--sand); }

/* ---------- Scroll progress + page curtain ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 150; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--terracotta); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.curtain {
  position: fixed; inset: 0; z-index: 1500; background: var(--ink); pointer-events: none;
  display: grid; place-items: center; transform: translateY(101%); visibility: hidden;
}
.is-entering .curtain, .is-leaving .curtain { visibility: visible; }
.curtain img { width: 84px; height: auto; opacity: 0; transition: opacity .4s ease; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--ph, #D8D1C2); }
.media > picture { width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--arch { border-radius: var(--arch-top) var(--arch-top) var(--radius-card) var(--radius-card); container-type: inline-size; }
@supports (width: 1cqw) { .media--arch { border-radius: 50cqw 50cqw var(--radius-card) var(--radius-card); } }
.media--round { border-radius: var(--radius-card); }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.media-caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font: 500 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); background: rgba(20, 24, 31, .66); padding: 7px 11px; border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.media-caption--static { position: static; display: inline-block; margin-top: 12px; color: var(--ink-soft); background: none; padding: 0; backdrop-filter: none; }

/* ==========================================================================
   HOME — HERO (arch window that opens on scroll)
   ========================================================================== */
.hero { position: relative; background: var(--sand); }
.hero__sticky { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { position: relative; z-index: 3; }
.hero__copy .h1 { margin-bottom: 26px; }
.hero__copy .lead { max-width: 540px; margin-bottom: 14px; }
.hero__copy .hero__more { max-width: 540px; color: var(--ink-soft); }
.hero__actions { margin-top: 34px; }
.hero__slot { position: relative; height: min(74vh, 660px); min-height: 420px; }
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 1; background: #CFC6B5; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 42% 50%; }
.hero__media > .hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 31, .15), rgba(20, 24, 31, .55)); opacity: var(--shade, 0); pointer-events: none; }
.hero__statement { position: relative; z-index: 3; }
.hero__statement-inner { max-width: 980px; }
.hero__statement .display { margin: 0; }
.hero__statement-sub { margin-top: 22px; max-width: 520px; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 3; display: inline-flex; align-items: center; gap: 14px;
  font: 600 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll-line { position: relative; width: 56px; height: 1px; background: var(--line-strong); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: scrollLine 2.4s var(--ease-in-out) infinite; }
.hero__badge { position: absolute; left: auto; right: 18px; bottom: 18px; z-index: 4; }

/* static (mobile / reduced motion / no JS) hero: arch in the grid, statement as next block */
.hero:not(.is-pinned) .hero__media { border-radius: var(--arch-top) var(--arch-top) var(--radius-card) var(--radius-card); }
.hero:not(.is-pinned) .hero__slot { container-type: inline-size; }
@supports (width: 1cqw) { .hero:not(.is-pinned) .hero__media { border-radius: 50cqw 50cqw var(--radius-card) var(--radius-card); } }
.hero:not(.is-pinned) .hero__statement { padding: clamp(72px, 9vw, 120px) 0 0; }
.hero:not(.is-pinned) .hero__statement .display { color: var(--ink); }

/* pinned (desktop, motion allowed): the arch expands to full-bleed while scrolling */
.hero.is-pinned { height: 240vh; }
.hero.is-pinned .hero__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; padding-bottom: 0; }
.hero.is-pinned .hero__slot { container-type: normal; position: static; }
.hero.is-pinned .hero__media {
  position: absolute; inset: 0;
  /* fallbacks approximate the arch slot until JS measures it exactly (clip changes never shift layout) */
  clip-path: inset(var(--ct, 19.8vh) var(--cr, 4.5vw) var(--cb, 6.9vh) var(--cl, 55vw) round var(--crt, 20vw) var(--crt, 20vw) var(--crb, 24px) var(--crb, 24px));
  will-change: clip-path;
}
.hero.is-pinned .hero__media img { transform: translate3d(var(--shift-x, 0px), 0, 0) scale(var(--zoom, 1.08)); transform-origin: 50% 50%; will-change: transform; }
.hero.is-pinned .hero__copy { opacity: var(--copy-o, 1); transform: translate3d(0, var(--copy-y, 0px), 0); will-change: opacity, transform; }
.hero.is-pinned .hero__statement {
  position: absolute; inset: 0; display: flex; align-items: center; color: var(--sand);
  opacity: var(--st-o, 0); transform: translate3d(0, var(--st-y, 40px), 0); pointer-events: none;
}
.hero.is-pinned .hero__statement .eyebrow { color: var(--apricot); }
.hero.is-pinned .hero__statement-sub { color: rgba(246, 243, 234, .86); }
.hero.is-pinned .hero__scroll { opacity: var(--copy-o, 1); }
.hero.is-pinned .hero__badge { right: calc(var(--cr, 4.5vw) + 18px); bottom: calc(var(--cb, 6.9vh) + 18px); }

/* ==========================================================================
   HOME — INTRO, FACTS, MARQUEE
   ========================================================================== */
.intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.intro__media { position: relative; padding-bottom: 12%; }
.intro__media .media--main { width: 78%; }
.intro__media .media--inset { position: absolute; right: 0; bottom: 0; width: 46%; border: 10px solid var(--sand); border-radius: 30px; box-sizing: content-box; }
.intro__copy .btn-row { margin-top: 32px; }

.facts { background: var(--navy); color: var(--white); padding-block: clamp(48px, 5vw, 64px); }
.facts__grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact { position: relative; padding-left: 24px; }
.fact::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .22); }
.fact__value { font: 400 var(--fs-num)/1.05 var(--font-display); color: var(--apricot); margin-bottom: 8px; display: block; }
.fact__label { color: rgba(255, 255, 255, .86); }

.marquee { position: relative; overflow: hidden; padding-block: clamp(28px, 4vw, 48px); border-block: 1px solid var(--line); background: var(--sand); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font: 400 clamp(2.4rem, 1.4rem + 4.2vw, 5.6rem)/1 var(--font-display); white-space: nowrap; padding-inline: clamp(18px, 2vw, 32px); color: var(--ink); }
.marquee__item--outline { color: transparent; -webkit-text-stroke: 1px var(--ink); }
@supports not (-webkit-text-stroke: 1px black) { .marquee__item--outline { color: var(--stone); } }
.marquee__toggle {
  position: absolute; right: var(--gutter); bottom: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(234, 230, 219, .9); display: grid; place-items: center;
  opacity: .55; transition: opacity .3s ease, background .3s ease;
}
.marquee__toggle[hidden] { display: none; }
.marquee__toggle:hover, .marquee__toggle:focus-visible, .marquee.is-paused .marquee__toggle { opacity: 1; }
.marquee__toggle-icon { position: relative; width: 10px; height: 12px; }
.marquee__toggle-icon::before, .marquee__toggle-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: var(--ink); border-radius: 1px; }
.marquee__toggle-icon::before { left: 0; }
.marquee__toggle-icon::after { right: 0; }
.marquee.is-paused .marquee__toggle-icon::before { width: 0; height: 0; left: 1px; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); border-radius: 0; }
.marquee.is-paused .marquee__toggle-icon::after { display: none; }
.marquee__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); flex: none; }

/* ==========================================================================
   HOME — SERVICES LIST WITH HOVER PREVIEW
   ========================================================================== */
.svc-list { list-style: none; border-top: 1px solid var(--line); counter-reset: svc; }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row__link {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  padding: 30px 8px; transition: padding .6s var(--ease-out), color .4s ease;
}
.svc-row__link::before {
  content: ""; position: absolute; inset: 0; background: var(--linen); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.svc-row { position: relative; z-index: 0; }
.svc-row__num { font: 400 1.125rem/1 var(--font-display); color: var(--rust-text); }
.svc-row__title { font: 400 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.15 var(--font-display); }
.svc-row__desc { color: var(--ink-soft); font-size: .98rem; }
.svc-row__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .5s var(--ease-out), color .5s, border-color .5s, transform .6s var(--ease-out); }
.svc-row__arrow svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .svc-row__link:hover { padding-inline: 24px 16px; }
  .svc-row__link:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc-row__link:hover .svc-row__arrow { background: var(--navy); border-color: var(--navy); color: var(--white); transform: rotate(-45deg); }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 280px; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: 140px 140px 18px 18px; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .45s ease, transform .6s var(--ease-out); will-change: transform; box-shadow: 0 30px 60px -20px rgba(20, 24, 31, .35);
}
.svc-preview.is-visible { opacity: 1; }
.svc-preview .media-caption { z-index: 2; }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-out); }
.svc-preview img.is-active { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   HOME — SECTORS, WHY, PROJECTS RAIL, PROCESS, MATERIALS, CTA
   ========================================================================== */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sector { position: relative; display: flex; flex-direction: column; }
.sector .media { border-radius: 160px 160px 20px 20px; aspect-ratio: 3 / 4; }
@supports (width: 1cqw) { .sector .media { container-type: inline-size; border-radius: 50cqw 50cqw 20px 20px; } }
.sector .media img { transition: transform 1.4s var(--ease-out); }
.sector:hover .media img { transform: scale(1.06); }
.sector__body { padding: 22px 4px 0; }
.sector__title { font: 400 1.5rem/1.2 var(--font-display); margin-bottom: 8px; }
.sector__text { color: var(--ink-soft); font-size: .98rem; margin: 0; }

.why__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.why__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.why__aside .media { margin-top: 36px; }
.why__list { list-style: none; counter-reset: why; }
.why__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__num { font: 400 2.5rem/1 var(--font-display); color: var(--rust); }
.why__title { font: 400 1.5rem/1.2 var(--font-display); margin-bottom: 8px; }
.why__text { margin: 0; color: var(--ink-soft); }

/* horizontal project rail */
.rail { position: relative; }
.rail__viewport { overflow: hidden; }
.rail__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.rail.is-pinned { height: var(--rail-h, 300vh); }
.rail.is-pinned .rail__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail__head { margin-bottom: clamp(28px, 4vw, 48px); }
.rail__progress { margin: clamp(28px, 3vw, 40px) var(--gutter) 0; height: 1px; background: var(--line); position: relative; max-width: 420px; }
.rail__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--rail-p, 0)); }
.rail:not(.is-pinned) .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; padding-bottom: 14px; }
.rail:not(.is-pinned) .rail__viewport::-webkit-scrollbar { height: 6px; }
.rail:not(.is-pinned) .rail__viewport::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 6px; }
.rail:not(.is-pinned) .project-card { scroll-snap-align: start; }

.project-card { position: relative; flex: none; width: clamp(280px, 30vw, 420px); display: flex; flex-direction: column; }
.project-card--wide { width: clamp(300px, 40vw, 560px); }
.project-card .media { aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
.project-card .media img { transition: transform 1.4s var(--ease-out); }
.project-card:hover .media img { transform: scale(1.05); }
.project-card__body { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; }
.project-card__title { font: 400 1.5rem/1.2 var(--font-display); }
.project-card__meta { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.project-card__tag { font: 600 .72rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-text); white-space: nowrap; padding-top: 8px; }
.project-card__pending {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px;
  background: linear-gradient(180deg, rgba(20, 24, 31, .05), rgba(20, 24, 31, .55)); color: var(--sand);
}
.project-card__pending-name { font: 400 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1.1 var(--font-display); }
.project-card__pending-note { align-self: flex-start; font: 500 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); background: rgba(20, 24, 31, .66); padding: 7px 11px; border-radius: var(--radius-pill); }
.project-card__count { position: absolute; top: 16px; right: 16px; z-index: 2; font: 500 .75rem/1 var(--font-body); background: rgba(246, 243, 234, .9); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-pill); }

/* process (dark) */
.process { background: var(--ink); color: var(--sand); overflow: hidden; }
.process .h2 { color: var(--sand); }
.process__line { position: relative; height: 1px; background: var(--line-light); margin: clamp(40px, 5vw, 64px) 0 0; }
.process__line span { position: absolute; inset: 0; background: var(--apricot); transform-origin: left; transform: scaleX(var(--line-p, 0)); }
.process__steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.process__step { position: relative; padding-top: 34px; transition: opacity .6s ease; }
.process__step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--mist); transition: background .5s ease, border-color .5s ease, transform .6s var(--ease-out); }
.process__step.is-active::before { background: var(--apricot); border-color: var(--apricot); transform: scale(1.3); }
.process__num { font: 400 2.5rem/1 var(--font-display); color: var(--apricot); display: block; margin-bottom: 14px; }
.process__title { font: 400 1.35rem/1.2 var(--font-display); margin-bottom: 8px; color: var(--sand); }
.process__text { color: var(--mist); font-size: .97rem; margin: 0; }
.process__foot { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* materials */
.materials__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.swatch { display: flex; flex-direction: column; gap: 10px; }
.swatch .media { aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; }
@supports (width: 1cqw) { .swatch .media { container-type: inline-size; border-radius: 50cqw 50cqw 14px 14px; } }
.swatch .media img { transition: transform 1.2s var(--ease-out); }
.swatch:hover .media img { transform: scale(1.12) rotate(2deg); }
.swatch__label { font: 500 .8rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.materials__visual { position: relative; }
.materials__visual .media { aspect-ratio: 4 / 5; }
.materials__quote { position: absolute; left: -40px; bottom: 40px; max-width: 300px; background: var(--white); padding: 26px 28px; border-radius: var(--radius-card); box-shadow: 0 30px 60px -30px rgba(20, 24, 31, .35); }
.materials__quote p { font: 400 1.3rem/1.3 var(--font-display); margin: 0; }

/* closing CTA */
.cta-band { position: relative; overflow: hidden; color: var(--sand); background: var(--ink); isolation: isolate; }
.cta-band__media { position: absolute; inset: -14% 0; z-index: -2; }
.cta-band__media picture, .cta-band__media img { width: 100%; height: 100%; }
.cta-band__media img { object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 24, 31, .82) 0%, rgba(20, 24, 31, .55) 55%, rgba(20, 24, 31, .25) 100%); }
.cta-band__inner { padding-block: clamp(110px, 14vw, 200px); max-width: 760px; }
.cta-band .display { margin-bottom: 24px; }
.cta-band p { color: rgba(246, 243, 234, .88); max-width: 560px; }
.cta-band .btn-row { margin-top: 34px; }
.cta-band .media-caption { left: auto; right: var(--gutter); bottom: 24px; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.page-hero__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.page-hero .h1 { margin-bottom: 26px; font-size: clamp(2.5rem, 1.45rem + 3.4vw, 4.25rem); }
.page-hero .lead { max-width: 620px; color: var(--ink-soft); }
.page-hero .media { aspect-ratio: 4 / 5; max-height: 76vh; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-soft); margin-bottom: 28px; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* about */
.timeline { position: relative; padding-left: 40px; }
.timeline__list { list-style: none; display: grid; gap: 56px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__progress { position: absolute; left: 7px; top: 8px; width: 1px; height: calc(100% - 16px); background: var(--terracotta); transform-origin: top; transform: scaleY(var(--tl-p, 0)); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -40px; top: 10px; width: 15px; height: 15px; border-radius: 50%; background: var(--sand); border: 1px solid var(--terracotta); }
.timeline__year { font: 400 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--font-display); color: var(--rust); display: block; margin-bottom: 14px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius-card); padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden; }
.card--linen { background: var(--linen); }
.card--ink { background: var(--ink); color: var(--sand); }
.card--ink .muted { color: var(--mist); }
.card__title { font: 400 1.75rem/1.15 var(--font-display); margin-bottom: 14px; }
.card .num { display: block; margin-bottom: 22px; }
.value-card { transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.value-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(20, 24, 31, .4); }
.statement-block { max-width: 940px; }
.statement-block .display { margin: 0; }

/* services page */
.svc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-nav__title { font: 600 var(--fs-eyebrow)/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--rust-text); margin-bottom: 16px; }
.svc-nav ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.svc-nav a { position: relative; display: block; padding: 8px 0 8px 18px; color: var(--ink-soft); font-size: .95rem; transition: color .4s ease; }
.svc-nav a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--terracotta); transform: scaleY(0); transition: transform .5s var(--ease-out); }
.svc-nav a.is-active, .svc-nav a:hover { color: var(--ink); }
.svc-nav a.is-active::before { transform: scaleY(1); }
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(32px, 4vw, 64px); align-items: start; padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.svc-block:first-child { border-top: 0; padding-top: 0; }
.svc-block--flip .svc-block__media { order: -1; }
.svc-block__num { font: 400 1.1rem/1 var(--font-display); color: var(--rust-text); display: block; margin-bottom: 16px; }
.svc-block .h2 { margin-bottom: 18px; }
.svc-block__media .media { aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 26px; }
.checklist li { position: relative; padding-left: 26px; font-size: .98rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 1px; background: var(--terracotta); }
.note { font-size: .92rem; color: var(--ink-soft); border-left: 2px solid var(--terracotta); padding: 4px 0 4px 18px; margin-top: 26px; font-style: italic; }

/* projects page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter-btn { min-height: 46px; padding: 10px 22px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: transparent; font-weight: 500; transition: background .4s ease, color .4s ease, border-color .4s ease; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.portfolio .project-card { width: auto; }
.portfolio .project-card.is-hidden { display: none; }
.portfolio .project-card.is-filtering { animation: cardIn .8s var(--ease-out) both; }
.project-card__open { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; border-radius: var(--radius-card); }
.project-card__open:focus-visible { outline: 3px solid var(--sand); outline-offset: -6px; box-shadow: inset 0 0 0 9px rgba(27, 79, 124, .85); }
.project-card__desc { color: var(--ink-soft); font-size: .97rem; margin: 10px 0 0; }
.pending-panel { background: var(--white); border-radius: var(--radius-card); padding: clamp(26px, 3vw, 40px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.portfolio .pending-panel { grid-column: span 2; margin-top: 0; align-self: start; }
.pending-panel__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--linen); display: grid; place-items: center; color: var(--rust-text); }

/* lightbox */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(14, 17, 22, .94); color: var(--sand); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); gap: 16px; }
.lightbox__title { font: 400 1.4rem/1.2 var(--font-display); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; touch-action: pan-y pinch-zoom; }
.lightbox__stage { overflow: hidden; }
.lightbox__stage picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; transform: scale(.96); opacity: 0; transition: transform .8s var(--ease-out), opacity .5s ease; }
.lightbox.is-open .lightbox__stage img.is-loaded { transform: none; opacity: 1; }
.lightbox__foot { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter) 24px; gap: 16px; color: var(--mist); }
.lightbox__nav { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-light); background: transparent; color: var(--sand); display: inline-grid; place-items: center; transition: background .4s ease, color .4s ease; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

/* process page */
.steps { list-style: none; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 48px); padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font: 400 clamp(3rem, 2.2rem + 2.4vw, 4.5rem)/.9 var(--font-display); color: var(--rust); }
.step__title { font: 400 var(--fs-h3)/1.2 var(--font-display); margin-bottom: 10px; }
.step__text { margin: 0; color: var(--ink-soft); }
.step__media .media { aspect-ratio: 3 / 2; border-radius: 18px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.3 var(--font-display); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: background .4s ease, border-color .4s ease, transform .6s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 64px 28px 0; color: var(--ink-soft); max-width: 760px; }

/* contact page */
.contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__form { grid-column: 1 / -1; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 32px; }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list__label { font: 600 .75rem/1.6 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-text); }
.contact-list a { font: 400 1.25rem/1.4 var(--font-display); }
.contact-list__stack { display: grid; gap: 4px; }
.form-card { background: var(--white); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 500 .875rem/1.4 var(--font-body); color: var(--ink); }
.field .optional { color: var(--ink-soft); font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--stone-strong); border-radius: var(--radius-input); background: var(--white);
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); min-height: 52px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181F' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 79, 124, .16); }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field__error { color: #B3261E; font-size: .85rem; min-height: 0; }
.field__error:empty { display: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--stone-strong); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.choice input:checked + span { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-hint { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.form-status { margin-top: 22px; padding: 16px 20px; border-radius: 14px; font-size: .97rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--info { background: var(--linen); border: 1px solid var(--stone); }
.form-status--error { background: #FBEDEA; border: 1px solid #E9B8B0; color: #7A1C12; }
.form-status--success { background: #EDF3EE; border: 1px solid #B9D3BE; color: #1F4A2A; }
.contact-panel { background: var(--white); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 48px); }
.contact-panel__intro { margin: 8px 0 28px; }
.contact-actions { display: grid; gap: 14px; }
.contact-action { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 18px; transition: border-color .4s ease, background-color .4s ease, transform .6s var(--ease-out); }
.contact-action:hover { border-color: var(--navy); background: var(--sand); transform: translateY(-2px); }
.contact-action__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.contact-action__icon svg { width: 20px; height: 20px; }
.contact-action__text { display: grid; gap: 2px; min-width: 0; }
.contact-action__label { font: 600 .75rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-text); }
.contact-action__value { font: 400 1.05rem/1.3 var(--font-display); overflow-wrap: anywhere; }
.contact-panel__title { font: 600 var(--fs-eyebrow)/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin: 36px 0 0; }
.contact-panel .checklist { margin-top: 16px; }
.contact-panel__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }

/* social links (footer on dark, --light variant on white) */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.social__link { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--sand); display: grid; place-items: center; transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .6s var(--ease-out); }
.social__link svg { width: 18px; height: 18px; }
.social__link:hover { background: var(--sand); color: var(--ink); transform: translateY(-3px); }
.social--light .social__link { border-color: var(--line-strong); color: var(--ink); }
.social--light .social__link:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.footer__contact + .social { margin-top: 24px; }

/* brochure download (home) */
.brochure__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.brochure__cover { display: block; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(20, 24, 31, .45); transform: rotate(-1.5deg); transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.brochure__cover:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 50px 90px -40px rgba(20, 24, 31, .5); }
.brochure__cover .media { aspect-ratio: 16 / 9; }
.brochure__grid .btn-row { align-items: center; gap: 16px 28px; }
.brochure__meta { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.btn:hover .btn__icon--down { transform: translateY(3px); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-items: center; padding-top: var(--header-h); }
.notfound__code { font: 400 clamp(6rem, 4rem + 10vw, 12rem)/.9 var(--font-display); color: var(--rust); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--sand); padding-top: clamp(72px, 8vw, 112px); position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .7fr)); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line-light); }
.footer__brand img { width: 200px; height: auto; margin-bottom: 28px; }
.footer__tagline { font: 400 clamp(1.9rem, 1.4rem + 1.8vw, 2.875rem)/1.1 var(--font-display); margin-bottom: 18px; max-width: 520px; }
.footer__intro { color: var(--mist); max-width: 440px; }
.footer__title { font: 600 var(--fs-eyebrow)/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--apricot); margin-bottom: 18px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a, .footer__contact a { position: relative; color: var(--sand); background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.footer__links a:hover, .footer__contact a:hover { background-size: 100% 1px; }
.footer__contact { display: grid; gap: 10px; color: var(--mist); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px 36px; font-size: .88rem; color: var(--mist); }
.footer__note { max-width: 640px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--sand); font-weight: 500; padding: 0; }
.to-top span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .4s ease, color .4s ease, transform .6s var(--ease-out); }
.to-top:hover span { background: var(--sand); color: var(--ink); transform: translateY(-3px); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- WhatsApp floating button ---------- */
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 8px 24px -4px rgba(37, 211, 102, .45), 0 4px 12px rgba(20, 24, 31, .15); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 8px 24px -4px rgba(37, 211, 102, .45), 0 4px 12px rgba(20, 24, 31, .15); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px -4px rgba(37, 211, 102, .45), 0 4px 12px rgba(20, 24, 31, .15); }
}

.whatsapp-float {
  position: fixed;
  right: clamp(18px, 3vw, 28px);
  bottom: clamp(18px, 3vw, 28px);
  bottom: calc(clamp(18px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  right: calc(clamp(18px, 3vw, 28px) + env(safe-area-inset-right, 0px));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, .5), 0 4px 12px rgba(20, 24, 31, .16);
  animation: waPulse 2.6s infinite;
  transition: transform .35s var(--ease-out), background-color .3s ease, box-shadow .35s ease;
}

.whatsapp-float__icon svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float__tooltip {
  pointer-events: none;
  white-space: nowrap;
  background: var(--ink);
  color: var(--sand);
  font: 500 .85rem/1 var(--font-body);
  letter-spacing: .02em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(20, 24, 31, .2);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s ease, transform .3s var(--ease-out);
}

.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float:focus-visible .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-float__icon {
  animation: none;
  background: #20BA5A;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, .65), 0 6px 16px rgba(20, 24, 31, .22);
}

.whatsapp-float:focus-visible {
  outline: none;
}

.whatsapp-float:focus-visible .whatsapp-float__icon {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .whatsapp-float__tooltip {
    display: none;
  }
  .whatsapp-float__icon {
    width: 50px;
    height: 50px;
  }
  .whatsapp-float__icon svg {
    width: 27px;
    height: 27px;
  }
}
