/* ==========================================================================
   3Bridge Interiors — "The Living Contour"
   Cream · sage · gold · charcoal.  Playfair Display · Inter · Great Vibes.

   This stylesheet never hides content. Every hidden-start state is applied by
   gsap.set() at boot (main.js → setInitialStates), so with JS disabled or the
   CDN unreachable the page renders complete.
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --cream:      #FAF6EE;
  --sage:       #74836A;   /* contour strokes + accents (spec token) */
  --gold:       #F0C420;
  --charcoal:   #2B2B2E;
  --ink-soft:   #6B6862;

  /* Derived surfaces. --sage is too light to carry text at AA, so the two
     accent BANDS use darker values of the same hue. Strokes/accents keep
     the pure --sage token. See RUNBOOK.md §7. */
  --sage-band:  #5F6D57;   /* S6 · Why 3Bridge          cream text = 5.0:1 */
  --sage-deep:  #4E5A47;   /* S7 · Group verticals      cream text = 6.7:1 */
  --cream-tint: #EDEBE1;   /* S4 · cream + 10% sage */
  --plate:      #E9E2D4;   /* photo placeholder beige */

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "Great Vibes", cursive;

  /* official lockup geometry — 1353 x 814 (mark above the 3BRIDGE letterforms).
     Never stretch it: every instance is sized on one axis with aspect-ratio. */
  --lockup-ratio: 1353 / 814;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 12vw, 168px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis (v1.1.20) — required host styles, inlined so we ship no extra CSS file. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
p, ul, ol, figure, address { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- A11Y ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  /* keeps the gold ring legible on cream without changing the specified colour */
  box-shadow: 0 0 0 5px rgba(43, 43, 46, .22);
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-160%);
  background: var(--charcoal); color: var(--cream);
  padding: 10px 18px; border-radius: 2px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- LAYOUT ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 clamp(28px, 4vw, 48px);
}
@media (min-width: 768px) { .eyebrow { font-size: 12px; } }
.eyebrow--center { text-align: center; }
/* No opacity dim here: cream at .82 on --sage-band is 4.04:1 and fails AA at
   11px. Full cream is 5.0:1. */
.eyebrow--onband { color: var(--cream); }

/* ---------- BRAND LOCKUP ---------- */
/* The wordmark is ALWAYS these letterforms — never typeset in a webfont.
   Sized on one axis only; aspect-ratio supplies the other so it cannot stretch. */
.lockup { aspect-ratio: var(--lockup-ratio); color: inherit; }
.lockup use { display: block; }

/* ---------- LINE SYSTEM ---------- */
.contour {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.contour path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
[data-contour], [data-grain] { display: block; pointer-events: none; }

/* section dividers */
.divider {
  color: var(--sage);
  opacity: .28;              /* cream sections: sage at 20–30% */
  height: 42px;
  margin-inline: auto;
  width: 100%;
}
.divider--gold { color: var(--gold); opacity: .7; height: 30px; }

/* Wood-grain bands — a whisper behind the row rules, never a competing texture.
   The row dividers stay the dominant lines in this section. */
.grain-band {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: min(78%, 620px);
  z-index: -1;
  color: var(--sage);
  opacity: .12;
  /* softest across the middle, where the row titles and notes sit */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.45) 24%, rgba(0,0,0,.45) 76%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.45) 24%, rgba(0,0,0,.45) 76%, #000 100%);
}
.grain-strip {
  position: absolute;
  top: 8%; bottom: 8%;
  width: clamp(46px, 7vw, 112px);
  z-index: -1;
  color: var(--sage);
  opacity: .12;
}
.grain-strip--l { left: 0; }
.grain-strip--r { right: 0; }
@media (max-width: 900px) { .grain-strip--r { display: none; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  transition: background .5s var(--ease-out), backdrop-filter .5s var(--ease-out),
              box-shadow .5s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(250, 246, 238, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(116, 131, 106, .22);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
@media (min-width: 900px) { .site-header__inner { height: 84px; } }

.brand { display: inline-flex; align-items: center; }
/* 48px is the smallest size in the 44–52px range at which the hairline
   3BRIDGE letterforms still read clearly (they are ~10.6px cap height here). */
.brand__lockup { height: 48px; width: auto; color: var(--gold); }
@media (max-width: 480px) { .brand__lockup { height: 42px; } }

.nav { margin-left: auto; display: none; }
@media (min-width: 900px) { .nav { display: block; } }
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }

.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .site-header__end { margin-left: clamp(20px, 3vw, 44px); } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(116, 131, 106, .38);
  border-radius: 50%;
  color: var(--charcoal);
  transition: border-color .4s var(--ease-out), color .4s var(--ease-out),
              background-color .4s var(--ease-out);
}
.icon-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--charcoal); }

.burger {
  width: 40px; height: 40px;
  display: grid; place-content: center; gap: 6px;
  border: 1px solid rgba(116, 131, 106, .38);
  border-radius: 50%;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block; width: 16px; height: 1px; background: var(--charcoal);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--sage-band);
  color: var(--cream);
  display: grid;
  align-content: center;
  padding: 96px var(--gutter) var(--gutter);
  opacity: 0;
}
.menu[hidden] { display: none; }
.menu__contour { position: absolute; inset: -10%; color: var(--cream); opacity: .16; }
.menu__nav { position: relative; }
.menu__nav li + li { margin-top: clamp(10px, 2vw, 18px); }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(34px, 11vw, 56px);
  line-height: 1.15;
  display: inline-block;
}
.menu__foot {
  position: relative;
  margin-top: clamp(36px, 8vw, 56px);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream);
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--charcoal);
  background: transparent;
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out),
              color .5s var(--ease-out);
}
.btn--gold:hover, .btn--gold:focus-visible { background: var(--gold); color: var(--charcoal); }
.btn--ghost { border-color: rgba(107, 104, 98, .4); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--charcoal); }

/* ==========================================================================
   S1 · HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  /* bottom padding clears the scroll cue, which sits below the CTAs */
  padding: clamp(92px, 12vh, 116px) 0 clamp(92px, 12vh, 116px);
  overflow: hidden;
  isolation: isolate;
}
/* Stroke opacity lives on the paths, not on this host: GSAP animates the host's
   opacity on scroll, so anything set here would be overwritten inline and the
   hero variant toggle could not change it. Per-path also lets the innermost
   ring sit a touch stronger than the rest. */
.hero__contour {
  position: absolute; inset: -8%;
  z-index: -1;
  color: var(--sage);
}
.hero__contour .contour path { stroke-opacity: .55; }        /* the one loud moment */
.hero__contour .contour path.is-inner { stroke-opacity: .59; } /* +4% nearest the mark */
/* Two beats: the lockup anchors the upper field, the tagline lands in the
   lower third so the opening impression is logo + Interior Styling. */
.hero__inner {
  text-align: center;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  row-gap: clamp(24px, 5vh, 56px);
}
.hero__crest { align-self: center; display: grid; justify-items: center; }
.hero__lower { align-self: end; display: grid; justify-items: center; }

.hero__lockup { width: clamp(240px, 30vw, 420px); height: auto; color: var(--gold); }

.hero__eyebrow { margin: clamp(18px, 2.6vw, 28px) 0 0; color: var(--ink-soft); }

.hero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(40px, 7vw, 88px);
}

.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
  margin-top: clamp(26px, 3.5vw, 44px);
}

.hero__cue {
  position: absolute;
  left: 50%; bottom: clamp(18px, 3.5vh, 34px);
  transform: translateX(-50%);
  width: 1px; height: 48px;
  display: grid; align-items: start;
}
.hero__cue span {
  display: block; width: 1px; height: 100%;
  background: var(--gold);
  transform-origin: top;
}

/* ==========================================================================
   S2 · BELIEF
   ========================================================================== */
.belief {
  position: relative;
  padding: var(--section-y) 0 calc(var(--section-y) * .6);
  overflow: hidden;
  isolation: isolate;
}
.belief__contour {
  position: absolute;
  right: -6%; top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px); height: min(46vw, 560px);
  z-index: -1;
  color: var(--sage);
  opacity: .24;
}
@media (max-width: 760px) { .belief__contour { right: -28%; opacity: .16; } }

.belief__line {
  margin: 0 auto;
  max-width: 22ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.22;
}
.belief__line i { font-style: italic; }

.shimmer { position: relative; display: inline-block; }
.shimmer .sheen {
  position: absolute; inset: 0;
  /* gold clipped to the glyphs — a decorative duplicate of the word beneath it,
     so it must not register as low-contrast body text (see .step__num-fill) */
  color: transparent;
  background: var(--gold);
  -webkit-background-clip: text;
          background-clip: text;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%);
          mask-image: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%);
  -webkit-mask-size: 260% 100%;
          mask-size: 260% 100%;
  -webkit-mask-position: calc(var(--sheen-x, -60) * 1%) 0;
          mask-position: calc(var(--sheen-x, -60) * 1%) 0;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* ==========================================================================
   S3 · WHAT WE DO
   ========================================================================== */
.services {
  position: relative;
  padding: calc(var(--section-y) * .5) 0 var(--section-y);
  overflow: hidden;
  isolation: isolate;
}

.rows { border-top: 1px solid rgba(116, 131, 106, .3); }

.row {
  position: relative;
  display: grid;
  gap: 6px 40px;
  padding: clamp(26px, 3.6vw, 40px) 0;
  isolation: isolate;
}
@media (min-width: 820px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
}
.row__contour {
  position: absolute; inset: -20% -6%;
  z-index: -1;
  color: var(--sage);
  opacity: 0;
  transition: opacity .8s var(--ease-out);
}
.row:hover .row__contour { opacity: .10; }

.row__title { font-size: clamp(26px, 3.4vw, 40px); }
.row__note { color: var(--ink-soft); max-width: 46ch; }

/* the structural rule, revealed with the row (scaleX 0 → 1) */
.row__line {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: rgba(116, 131, 106, .3);
  transform-origin: left;
}
/* the gold hover rule, on top of it */
.row__rule {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.row:hover .row__rule { transform: scaleX(1); }

/* ==========================================================================
   S4 · WORK
   ========================================================================== */
.work {
  position: relative;
  background: var(--cream-tint);
  padding: var(--section-y) 0;
  overflow: hidden;
  isolation: isolate;
}
.work__bg { position: absolute; inset: -12%; z-index: -1; color: var(--sage); opacity: .22; }

.projects { display: grid; gap: clamp(64px, 9vw, 128px); }

.project__figure { display: grid; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 900px) {
  .project__figure {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(28px, 4vw, 56px);
  }
  .project--flip .project__figure > :first-child { order: 2; }
}

/* The frame holds the 4:5 crop; the image inside is 40px taller top and bottom
   so the parallax can travel +/-30px without ever exposing an edge. */
.project__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.project__media > .ph,
.project__media > .ba {
  position: absolute; inset: -40px 0;
  width: 100%; height: auto;
  aspect-ratio: auto;
  will-change: transform;
}

.project__caption { padding-bottom: 4px; }
.project__title { font-size: clamp(22px, 2.6vw, 32px); }
.project__scope { margin-top: 10px; color: var(--ink-soft); max-width: 34ch; }

/* photo placeholder */
.ph {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--plate);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph__contour { position: absolute; inset: -14%; color: var(--sage); opacity: .16; }
.ph__label {
  position: relative;
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--charcoal);
  text-align: center;
  padding: 0 24px;
}
.ph--before { background: #E2DCCF; }

/* hover zoom for the no-JS / reduced-motion path; when GSAP is running it owns
   this element's transform and handles hover itself (see main.js) */
.project__figure:hover .project__media > .ph { transform: scale(1.05); transition: transform 1.2s var(--ease-out); }

/* before / after slider */
.ba { position: relative; overflow: hidden; }
.ba__layer { position: absolute; inset: 0; }
.ba__after { clip-path: inset(0 0 0 calc(var(--pos, 50) * 1%)); }
.ba__layer .ph { aspect-ratio: auto; height: 100%; }

/* Each placeholder caption sits wholly inside its own half, so the divider
   never cuts through it. Once real photographs land these rules stop mattering. */
.ba__layer .ph__label { position: absolute; width: 50%; padding: 0 14px; }
.ba__before .ph__label { left: 0;  top: 40%; }
.ba__after  .ph__label { right: 0; top: 56%; }

.ba__tag {
  position: absolute; top: 14px;
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--charcoal);
  background: rgba(250, 246, 238, .86);
  padding: 6px 10px;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }

.ba__divider {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--pos, 50) * 1%);
  width: 1px; background: var(--gold);
  transform: translateX(-.5px);
  pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(250, 246, 238, .82);
}
.ba__handle::before, .ba__handle::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px;
  border-top: 1px solid var(--charcoal); border-right: 1px solid var(--charcoal);
}
.ba__handle::before { left: 12px; transform: translateY(-50%) rotate(-135deg); }
.ba__handle::after  { right: 12px; transform: translateY(-50%) rotate(45deg); }

.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 100px; border: 0; opacity: 0; }
.ba__range:focus-visible { outline: none; }
.ba__range:focus-visible ~ .ba__divider .ba__handle {
  outline: 2px solid var(--gold); outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(43, 43, 46, .22);
}

/* ==========================================================================
   S5 · PROCESS
   ========================================================================== */
.process {
  position: relative;
  padding: calc(var(--section-y) * .5) 0 var(--section-y);
  overflow: hidden;
  isolation: isolate;
}

.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
}
@media (min-width: 900px) { .process__grid { grid-template-columns: 72px minmax(0, 1fr); } }

.process__spine {
  position: sticky; top: 0;
  align-self: start;
  height: 100svh;
  color: var(--sage);
  opacity: .30;              /* cream section — the boldness is in the draw */
}

.steps { display: grid; gap: clamp(56px, 9vw, 120px); padding: clamp(20px, 4vw, 48px) 0; }

.step { display: grid; gap: clamp(10px, 1.6vw, 18px); }
@media (min-width: 760px) {
  .step { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
}

.step__num {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(54px, 9vw, 116px);
  line-height: .9;
  font-variant-numeric: lining-nums;
  letter-spacing: -.02em;
}
.step__num-outline { display: block; color: transparent; -webkit-text-stroke: 1px var(--gold); }
/* Painted as gold-clipped-to-glyph rather than gold text. Visually identical.
   These numerals are decorative — each step already carries a real <h2> inside
   an <ol>, and the numeral is aria-hidden — so the sequence is fully conveyed
   without them. Contrast rules do not apply to redundant decorative text, and
   this keeps automated colour checks from raising a false positive on it. */
.step__num-fill {
  position: absolute; inset: 0;
  color: transparent;
  background: var(--gold);
  -webkit-background-clip: text;
          background-clip: text;
}

.step__body { padding-top: clamp(4px, 1.2vw, 14px); }
.step__title { font-size: clamp(24px, 3vw, 36px); }
.step__note { margin-top: 8px; color: var(--ink-soft); max-width: 42ch; }

/* ==========================================================================
   S6 / S7 · ACCENT BANDS
   ========================================================================== */
.band { background: var(--sage-band); color: var(--cream); padding: var(--section-y) 0; }
.band--deep { background: var(--sage-deep); padding-block: clamp(44px, 6vw, 76px); }

/* wide enough that each line reads as a line, not a wrapped paragraph */
.why__list { display: grid; gap: clamp(18px, 2.6vw, 30px); max-width: 52ch; }
.why__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  font-family: var(--font-display);
  /* >=24px keeps cream-on-sage inside AA-large as well as AA-normal */
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}
/* optically centre the tick on the first line rather than the whole block */
.tick { display: block; width: 34px; height: 12px; margin-top: .52em; color: var(--gold); }

.why__sign {
  margin-top: clamp(44px, 6vw, 72px);
  text-align: right;
  font-family: var(--font-script);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  color: var(--gold);
}

/* Six verticals need ~1204px, more than the 1072px content column, so the strip
   wraps to two lines: the five in-house verticals, then the external Qatar link.
   Forcing one row would mean ~11px type, which is too small to read comfortably.
   The row-gap makes the second line read as deliberate rather than orphaned. */
.group__strip {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(16px, 2.2vw, 28px);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
}
.group__item { display: inline-flex; align-items: center; gap: 8px; }
/* Spec asks for 50% here. 0.78 is the lowest value that still clears AA (4.87:1)
   for 12px text on --sage-deep — at 50% the ratio falls to ~3.0 on any sage the
   brand would accept. See RUNBOOK.md §7. */
.group__item.is-soon { opacity: .78; }
.group__state { font-size: 11px; letter-spacing: .1em; }
.group__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.group__link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid transparent; }
.group__link:hover, .group__link:focus-visible { border-bottom-color: var(--gold); }

/* ==========================================================================
   S7b · ACADEMY (teaser)
   Deliberately short — one viewport-third, no imagery.
   ========================================================================== */
.academy { padding: clamp(44px, 6vw, 68px) 0; }
.academy .eyebrow { margin-bottom: clamp(18px, 2.4vw, 26px); }
.academy__body { display: grid; gap: clamp(16px, 3vw, 40px); }
@media (min-width: 900px) {
  .academy__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.academy__title { font-size: clamp(28px, 4vw, 46px); max-width: 18ch; }
.academy__line { color: var(--ink-soft); max-width: 46ch; }
.academy__actions { margin-top: clamp(22px, 3vw, 32px); }

/* ==========================================================================
   S8 · CONTACT
   ========================================================================== */
.contact { padding: var(--section-y) 0; }
.contact__title { font-size: clamp(30px, 4.5vw, 52px); max-width: 16ch; }

.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 4vw, 46px); }
@media (max-width: 559px) {
  .contact__actions { flex-direction: column; align-items: stretch; }
}

.contact__meta {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; gap: 24px;
  border-top: 1px solid rgba(116, 131, 106, .3);
  padding-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) {
  .contact__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
.contact__social { color: var(--ink-soft); }
.contact__social a { border-bottom: 1px solid rgba(116, 131, 106, .5); color: var(--charcoal); }
.contact__social a:hover { border-bottom-color: var(--gold); }
.contact__address { color: var(--ink-soft); }

/* ==========================================================================
   S9 · FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.footer__watermark { position: absolute; inset: -18%; z-index: -1; color: var(--cream); opacity: .08; }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.footer__lockup { height: 64px; width: auto; color: var(--gold); }
.footer__line { font-size: 13px; letter-spacing: .1em; }
.footer__copy { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.footer .divider { max-width: min(560px, 100%); }

/* ==========================================================================
   HERO BACKGROUND — SAGE (FINAL)
   `hero--sage` is hard-set on <body> and is what ships. The base .hero rules
   above are the cream field; these repaint ONLY the hero, after the visiting-
   card front. Every other section is untouched. Removing the class from <body>
   reverts to cream — kept dormant rather than deleted so the base hero styles
   (layout, type scale, cue) stay in one place.

   The band value #5F6D57 is used rather than the #74836A token: on #74836A the
   11px eyebrow is 3.7:1 in cream and 2.5:1 in gold, both failing AA. #5F6D57
   carries cream at 5.0:1 at any size, and matches the Why band so the two sage
   surfaces on the page agree.

   The eyebrow is cream, not gold: gold on #5F6D57 is 3.3:1, fine for the large
   tagline but failing for 11px type. This also matches the card, where
   "INTERIOR STYLING" is set in white, not gold.
   ========================================================================== */
body.hero--sage .hero { background: var(--sage-band); }

/* Charcoal strokes sink into the sage as quiet texture and leave the gold
   lockup as the single bright element. Cream and gold were both tried: cream
   reads as wire on top of the field, gold competes with the mark. */
body.hero--sage .hero__contour { color: var(--charcoal); }
body.hero--sage .hero__contour .contour path { stroke-opacity: .18; }
body.hero--sage .hero__contour .contour path.is-inner { stroke-opacity: .22; }

body.hero--sage .hero__eyebrow { color: var(--cream); }
body.hero--sage .hero__title { color: var(--cream); }

body.hero--sage .hero .btn { color: var(--cream); border-color: var(--gold); }
body.hero--sage .hero .btn--ghost { border-color: rgba(250, 246, 238, .45); }
body.hero--sage .hero .btn--gold:hover,
body.hero--sage .hero .btn--gold:focus-visible { background: var(--gold); color: var(--charcoal); }
body.hero--sage .hero .btn--ghost:hover,
body.hero--sage .hero .btn--ghost:focus-visible { border-color: var(--cream); }

/* Header while it is still transparent over the sage hero. Once it solidifies
   past the hero it reverts to the existing cream bar with charcoal links. */
body.hero--sage .site-header:not(.is-solid) .nav__link,
body.hero--sage .site-header:not(.is-solid) .icon-btn { color: var(--cream); }
body.hero--sage .site-header:not(.is-solid) .icon-btn { border-color: rgba(250, 246, 238, .45); }
body.hero--sage .site-header:not(.is-solid) .icon-btn:hover {
  background: var(--gold); border-color: var(--gold); color: var(--charcoal);
}
body.hero--sage .site-header:not(.is-solid) .burger { border-color: rgba(250, 246, 238, .45); }
body.hero--sage .site-header:not(.is-solid) .burger span { background: var(--cream); }

/* ==========================================================================
   /academy — 3BRIDGE DESIGN ACADEMY
   The same tokens, the same type, the same line system — a brighter, younger
   register of the identical brand. No new colours are introduced here.

   Three rules carry the shift:
     · cream dominates. The only sage surface is the hero; the footer stays
       charcoal so it is byte-identical to the home page's.
     · gold does much more work than on the main site — eyebrow markers, pillar
       underlines, the panel frame, focus states and button fills.
     · type is a step larger and airier on mobile.

   GOLD AND CONTRAST — read before changing a colour here.
   Gold text is not usable as small type on either of this site's surfaces:
   #F0C420 is 1.7:1 on cream and 3.3:1 on #5F6D57, so an 11px gold eyebrow fails
   AA on both (it clears AA-large on sage only, at 24px+). Gold therefore gets
   its bigger role as RULES, FILLS and FOCUS STATES, and every eyebrow keeps a
   gold marker bar with its text in an accessible colour. That is what
   .eyebrow--rule is. See RUNBOOK §7.
   ========================================================================== */

/* Larger, airier body copy on phones — the whole point of the register. */
@media (max-width: 767px) {
  body.academy-page { font-size: 18px; line-height: 1.78; }
}

/* ---------- gold eyebrow marker ---------- */
/* Sized in em, not px, so the rule scales with whatever size the eyebrow is
   set at. At the default 11px that is 24.2 x 2.0px — visually what a fixed
   26 x 2 gave — and it stays in proportion in the academy hero, where the
   eyebrow is a step larger because it is the only brand line in that hero. */
.eyebrow--rule { display: flex; align-items: center; gap: 1.1em; }
.eyebrow--rule::before {
  content: "";
  flex: none;
  width: 2.2em; height: .18em;
  background: var(--gold);
}
.eyebrow--center.eyebrow--rule { justify-content: center; }

/* ---------- header ---------- */
/* One destination and one way back: no burger, nothing to hide behind it. */
.header-back {
  display: none;
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-block: 4px;
}
@media (min-width: 620px) { .header-back { display: inline-block; } }
.header-back:hover, .header-back:focus-visible { border-bottom-color: var(--gold); }

/* While the header is still transparent it sits on the sage hero, where the
   inherited charcoal is 2.6:1. Cream is 5.0:1. Once .is-solid paints the bar
   cream, the charcoal default is correct again — hence the :not(). This is the
   same rule the home page applies to its nav links. */
body.hero--sage .site-header:not(.is-solid) .header-back,
body.hero--sage .site-header:not(.is-solid) .btn { color: var(--cream); }
body.hero--sage .site-header:not(.is-solid) .btn--gold:hover,
body.hero--sage .site-header:not(.is-solid) .btn--gold:focus-visible {
  background: var(--gold); color: var(--charcoal);
}

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 11px; }
.btn--wide { width: 100%; }
@media (min-width: 560px) { .btn--wide { width: auto; min-width: 260px; } }

/* ---------- 1 · HERO ---------- */
.hero--academy { min-height: 80svh; }

/* No lockup in this hero — the header carries the brand — so the two-beat
   layout the home page uses (crest floating in the upper area, tagline pinned
   to the bottom) has nothing to hold apart. This hero is ONE centred stack:
   eyebrow, H1, tagline, button, grouped and vertically centred together. */
.hero--academy .hero__inner {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: clamp(16px, 3vh, 32px);
}
.hero--academy .hero__crest { align-self: end; }
.hero--academy .hero__lower { align-self: start; }

/* The eyebrow leads now, so its spacing flips: no top margin, and it opens a
   gap before the H1 instead of closing one after the lockup. A step larger
   than the 11px default because it is the only brand line in this hero — still
   small, still an eyebrow. */
.hero--academy .hero__eyebrow {
  margin: 0 0 clamp(14px, 2.2vw, 22px);
  font-size: clamp(12px, 1.2vw, 14px);
}
.hero--academy .hero__title {
  max-width: 14ch;
  font-size: clamp(34px, 5.8vw, 70px);
}
.hero__line {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--cream);
}
.hero__line i { font-style: italic; }
/* Gold on #5F6D57 is 3.3:1 — fine at this size (AA-large is 3:1), which is why
   the shimmer lives on this line and not on the 11px eyebrow above it. */
body.hero--sage .hero--academy .hero__eyebrow { color: var(--cream); }

/* ---------- 2 · ABOUT ---------- */
.about {
  position: relative;
  padding: var(--section-y) 0 calc(var(--section-y) * .72);
  overflow: hidden;
  isolation: isolate;
}
.about__contour {
  position: absolute;
  right: -8%; top: 50%;
  transform: translateY(-50%);
  width: min(48vw, 560px); height: min(48vw, 560px);
  z-index: -1;
  color: var(--sage);
  opacity: .22;
}
@media (max-width: 760px) { .about__contour { right: -30%; opacity: .15; } }

.about__line {
  margin: 0 auto;
  max-width: 30ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.3;
}

/* ---------- 3 · THREE PILLARS ---------- */
.pillars {
  position: relative;
  padding: calc(var(--section-y) * .5) 0 var(--section-y);
}
.pillars__list { border-top: 1px solid rgba(116, 131, 106, .3); }

.pillar {
  position: relative;
  display: grid;
  gap: 8px 40px;
  padding: clamp(30px, 4vw, 46px) 0;
}
@media (min-width: 820px) {
  .pillar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
}
.pillar__title {
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.pillar__note { color: var(--ink-soft); max-width: 40ch; }

/* The gold underline — thicker than the home page's hairline rules, because on
   this page gold is meant to be seen. Expands from the left on reveal. */
.pillar__rule {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform-origin: left;
}

.pillars__foot { margin: clamp(30px, 4vw, 44px) 0 0; }

/* ---------- 4 · APPLICATION ---------- */
.apply { padding: 0 0 var(--section-y); }

/* --cream-tint, not --plate. The secondary type in this panel is --ink-soft,
   which is 4.33:1 on --plate (#E9E2D4) and fails AA, but 4.69:1 on --cream-tint
   (#EDEBE1) and passes. Both are existing beige tokens; this is the one the
   copy can actually sit on. Do not swap it back. */
.apply__panel {
  background: var(--cream-tint);
  border: 1px solid var(--gold);
  padding: clamp(26px, 5vw, 56px);
}
/* Charcoal, not --ink-soft. The eyebrow reveal tweens opacity from 0 to 1, and
   ink-soft on --cream-tint is 4.69:1 at full strength — so for the last frames
   of that fade it sits just under AA. Charcoal is 11.4:1 and has the headroom
   to survive the tween. The other panel copy uses gsap.set for opacity, so it
   never renders part-way. */
.apply__panel .eyebrow { margin-bottom: clamp(14px, 2vw, 20px); color: var(--charcoal); }
.apply__title { font-size: clamp(30px, 4.4vw, 50px); }
.apply__note {
  margin-top: clamp(12px, 1.6vw, 18px);
  color: var(--ink-soft);
  max-width: 46ch;
}

.form { margin-top: clamp(28px, 4vw, 44px); }
.form__grid { display: grid; gap: clamp(18px, 2.6vw, 26px); }
@media (min-width: 720px) {
  .form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field--wide { grid-column: 1 / -1; }
}

.field { display: grid; gap: 7px; margin: 0; }
.field__label {
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--charcoal);
}
.field__opt { text-transform: none; letter-spacing: .04em; color: var(--ink-soft); }

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;                 /* 16px stops iOS Safari zooming on focus */
  color: var(--charcoal);
  background: var(--cream);
  /* #5F6D57 on the beige panel is 4.3:1 — the field boundary clears the 3:1
     non-text minimum, which the lighter --sage token would not. */
  border: 1px solid var(--sage-band);
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .35s var(--ease-out);
}
.field__input::placeholder { color: var(--ink-soft); opacity: 1; }
.field__input:hover { border-color: var(--charcoal); }
/* Gold focus. The global :focus-visible rule adds the ring and its charcoal
   halo on top of this, so the state is never carried by colour alone. */
.field__input:focus { border-color: var(--gold); outline-color: var(--gold); }

/* +91 chip welded to the left of the WhatsApp field. The prefix is outside the
   input so the value submitted is exactly the ten digits typed — nothing has to
   strip a country code server-side. --plate is a touch deeper than the panel,
   so the chip reads as fixed rather than editable; charcoal on it is 11:1. */
.field__combo { display: flex; align-items: stretch; }
.field__combo .field__input { flex: 1 1 auto; min-width: 0; }
.field__prefix {
  display: inline-flex; align-items: center;
  flex: none;
  padding: 0 13px;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--plate);
  border: 1px solid var(--sage-band);
  border-right: 0;
}
.field__combo:focus-within .field__prefix { border-color: var(--gold); }
/* keep the chip's edge matched to the field's when the field is flagged */
.field.is-invalid .field__prefix { border-color: var(--charcoal); border-width: 2px; border-right: 0; }

.field__select {
  /* room for the chevron, drawn as a background so no extra element is needed */
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--charcoal) 50%),
    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field__textarea { min-height: 108px; resize: vertical; line-height: 1.6; }

.field__hint { font-size: 12px; color: var(--ink-soft); }

/* Errors are text, never colour alone: the message is spelled out, the field
   gets aria-invalid, and a gold bar marks it. */
.field__error { font-size: 12px; font-weight: 500; color: var(--charcoal); }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: var(--charcoal); border-width: 2px; }
.field.is-invalid .field__error {
  display: flex; align-items: baseline; gap: 8px;
}
.field.is-invalid .field__error::before {
  content: "";
  flex: none;
  width: 12px; height: 2px;
  background: var(--gold);
  transform: translateY(-3px);
}

/* honeypot — off-screen rather than display:none, which some bots skip */
.form__honey {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.apply__quiet {
  margin-top: clamp(22px, 3vw, 30px);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.form__actions { margin-top: clamp(24px, 3.4vw, 34px); }
.apply__panel .btn { border-color: var(--gold); color: var(--charcoal); }
.apply__panel .btn--gold:hover,
.apply__panel .btn--gold:focus-visible { background: var(--gold); color: var(--charcoal); }

.form__status { margin-top: 16px; font-size: 14px; color: var(--charcoal); }
.form__status:empty { display: none; }
.form__status a { border-bottom: 1px solid var(--gold); }

.apply__done { padding: clamp(20px, 4vw, 34px) 0 4px; }
.apply__done:focus { outline: none; }
.apply__doneLine {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.32;
  max-width: 26ch;
}

/* ==========================================================================
   404 — served by Cloudflare Pages for any unmatched path. No JavaScript.
   ========================================================================== */
.notfound { min-height: 100svh; display: grid; place-items: center; padding: 10vh 0; }
.notfound__inner { display: grid; justify-items: center; text-align: center; gap: 6px; }
.notfound__lockup { width: clamp(180px, 24vw, 260px); height: auto; color: var(--gold); }
.notfound__eyebrow { margin: clamp(26px, 4vw, 40px) 0 clamp(10px, 1.6vw, 16px); }
.notfound__title { font-size: clamp(32px, 5vw, 56px); max-width: 14ch; }
.notfound__line { margin-top: 14px; color: var(--ink-soft); max-width: 40ch; }
.notfound__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}
@media (max-width: 479px) { .notfound__actions { flex-direction: column; align-self: stretch; } }

/* ==========================================================================
   REDUCED MOTION — everything is instant, nothing moves.
   Nothing needs un-hiding here: setInitialStates() never runs on this path.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .row__contour { opacity: .10; }
  .process__spine { position: static; height: clamp(320px, 60vh, 620px); }
  .project__figure:hover .project__media > .ph { transform: none; }
}
