/* =========================================================================
   Foundation Inc — commercial office fit-outs, Gurgaon / Delhi NCR
   Design system: "the drawing set becomes the floor."
   Blueprint / drafting register — Archivo + IBM Plex Mono (spec voice only),
   olive + bronze on warm vellum, sharp architectural shapes, hairline rules.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* grounds */
  --ground:      #f0ece2;  /* vellum body */
  --ground-2:    #e8e3d7;  /* deeper drafting paper (strips, process) */
  --surface:     #f6f3ec;  /* cards */
  --ink-band:    #23261f;  /* dark olive ground (proof / cta) */

  /* ink ramp (all AA-verified on --ground) */
  --ink:    #26251f;   /* 13.0:1 — headings */
  --ink-2:  #47433a;   /* 8.4:1  — subheads / nav */
  --body:   #57513f;   /* 6.7:1  — body copy */
  --muted:  #615a49;   /* 5.8:1  — small labels / meta */

  /* brand */
  --olive:      #5f6f54;
  --olive-deep: #4b5942;
  --bronze:     #a8814f;
  --bronze-ink: #8a6636; /* bronze text, large only */
  --sage:       #9fb08f; /* on dark */

  /* on dark band */
  --on-dark:        #efeadd;
  --on-dark-strong: #f4f1ea;
  --on-dark-muted:  #a8a397;

  /* lines */
  --line:      rgba(38,37,31,.14);
  --line-2:    rgba(38,37,31,.22);
  --line-str:  rgba(38,37,31,.40);
  --line-dark: rgba(239,234,221,.16);

  /* type */
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* rhythm */
  --pad: clamp(20px, 5vw, 56px);
  --maxw: 1220px;
  --nav-h: 58px;

  /* motion */
  --e-out: cubic-bezier(.16,1,.3,1);       /* ease-out-expo-ish */
  --e-out-q: cubic-bezier(.22,1,.36,1);    /* ease-out-quint */

  /* z-scale */
  --z-field: 0;
  --z-base: 1;
  --z-sticky: 60;
  --z-nav: 100;
  --z-hud: 120;
  --z-dock: 130;
  --z-menu: 140;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
ol, ul { padding: 0; }   /* kill the default 40px list padding (showed as a grey strip on backed lists) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Stop sideways scroll WITHOUT creating a scroll container — 'clip' keeps
     position:sticky working in Safari, which 'hidden' silently breaks. */
  overflow-x: hidden;   /* fallback for very old browsers */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--olive); color: var(--on-dark-strong); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); width: 100%; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink-band); color: var(--on-dark-strong);
  padding: 10px 16px; font: 600 13px var(--mono); border-radius: 2px;
  transform: translateY(-160%); transition: transform .2s var(--e-out);
}
.skip-link:focus { transform: translateY(0); }

/* Visible, on-brand focus ring everywhere */
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 1px; }

/* ---------- Shared bits ---------- */
/* the "sheet reference" — one deliberate drafting device, not a per-section eyebrow */
.sheet {
  font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 9px;
}
.sheet::before { content: ""; width: 26px; height: 1px; background: var(--bronze); }
.sheet--light { color: var(--on-dark-muted); }
.sheet--light::before { background: var(--bronze); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-title {
  font-size: clamp(24px, 3.4vw, 38px); max-width: 17ch; letter-spacing: -.035em;
}
/* one key word per heading set in the mono "spec" voice — an annotation woven
   into the display line. Smaller + olive so it reads as a considered accent. */
.section-title .tm {
  font-family: var(--mono); font-weight: 600; font-size: .9em;
  letter-spacing: -.02em; color: var(--olive); white-space: nowrap;
  /* near the display size + heavier, so the mono caps line up with the display
     caps on the shared baseline and it reads as an intentional typeface shift —
     not a shrunken word that looks sunk or floating. */
  vertical-align: baseline;
}
.section-head .sheet { margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--olive); --fg: var(--on-dark-strong);
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg); color: var(--fg);
  font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase;
  padding: 14px 20px; border-radius: 2px; border: 1px solid var(--bg);
  transition: transform .3s var(--e-out), background-color .25s ease, color .25s ease, box-shadow .3s var(--e-out);
  min-height: 44px; white-space: nowrap;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(38,37,31,.16); }
.btn--sm { padding: 11px 15px; font-size: 11px; min-height: 40px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-str); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark-strong); border-color: var(--ink); }
.btn--ghost.btn--on-dark { color: var(--on-dark-strong); border-color: rgba(239,234,221,.42); }
.btn--ghost.btn--on-dark:hover { background: var(--on-dark-strong); color: var(--ink-band); border-color: var(--on-dark-strong); }
.btn--bronze { background: var(--bronze); border-color: var(--bronze); color: #241a0e; }
.btn--bronze:hover { background: #b78d57; border-color: #b78d57; color: #241a0e; }
/* quiet secondary — a link-weight action that clearly yields to the primary button */
.btn--quiet { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; text-decoration: underline; text-decoration-color: var(--line-str); text-underline-offset: 4px; }
.btn--quiet:hover { background: transparent; border-color: transparent; color: var(--ink); text-decoration-color: var(--olive); }

/* ============================================================
   Drafting field (fixed background)
   ============================================================ */
.field { position: fixed; inset: 0; z-index: var(--z-field); pointer-events: none; overflow: hidden; }
.field-grid {
  position: absolute; inset: -90px;
  background-image:
    linear-gradient(rgba(95,111,84,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,111,84,.11) 1px, transparent 1px);
  background-size: 48px 48px;
  will-change: transform;   /* scroll-driven, wraps every tile so the drift is seamless */
}
.field-hatch {
  position: absolute; top: -25%; left: 30%; width: 240px; height: 160%;
  background: repeating-linear-gradient(45deg, rgba(38,37,31,.05) 0 2px, transparent 2px 17px);
  transform: rotate(6deg); will-change: transform;
}
.field-ring {
  position: absolute; top: 8%; right: -8%; width: 560px; height: 560px;
  border: 1.5px solid rgba(95,111,84,.18); border-radius: 50%;
  will-change: transform;
}
.field-rect {
  position: absolute; bottom: 6%; left: -6%; width: 460px; height: 330px;
  border: 1.5px dashed rgba(168,129,79,.24);
  will-change: transform;
}
.field-wash { position: absolute; inset: 0; }
.field-wash--green  { background: radial-gradient(circle at 72% 22%, rgba(95,111,84,.16), transparent 58%); opacity: .55; }
.field-wash--bronze { background: radial-gradient(circle at 22% 82%, rgba(168,129,79,.16), transparent 60%); opacity: 0; }

/* ---------- Top HUD ---------- */
.hud-top { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(38,37,31,.10); z-index: var(--z-hud); }
.hud-top-fill { display: block; height: 100%; width: 0%; background: var(--olive); transition: width .1s linear; }

/* Full-screen intro disclaimer — minimal text on a translucent scrim, shown on open.
   Tap anywhere to dismiss. Hidden by default so mobile never flashes it; JS adds
   .is-live only on desktop. */
.intro-note {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(28, 31, 24, .74);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s var(--e-out), visibility .55s var(--e-out);
}
.intro-note.is-live { opacity: 1; visibility: visible; pointer-events: auto; }
.intro-note-inner { text-align: center; transform: translateY(10px); transition: transform .6s var(--e-out); }
.intro-note.is-live .intro-note-inner { transform: translateY(0); }
.intro-note-ic { display: block; font-size: 22px; color: var(--bronze); margin-bottom: 18px; animation: introBob 1.5s var(--e-out) infinite; }
@keyframes introBob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.intro-note-h { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: #f2eee5; }
.intro-note-hint { margin-top: 22px; font: 500 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(242, 238, 229, .52); animation: introHintPulse 2.4s var(--e-out) infinite; }
@keyframes introHintPulse { 0%,100% { opacity: .5; } 50% { opacity: .85; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: var(--z-nav);
  background: rgba(240,236,226,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(38,37,31,.06); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark-mark { color: var(--olive); display: inline-flex; }
.wordmark-text { font: 800 18px var(--sans); letter-spacing: -.03em; }
.wordmark-inc { color: var(--olive); margin-left: 3px; font-weight: 600; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav-links a {
  font: 500 13.5px var(--sans); color: var(--ink-2); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.5px;
  background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--e-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 20px; height: 1.8px; background: var(--ink); transition: transform .3s var(--e-out), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px; padding: 8px var(--pad) 20px;
  background: rgba(240,236,226,.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.mobile-menu a { font: 500 17px var(--sans); color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: 1px solid var(--olive); color: var(--on-dark-strong); justify-content: center; margin-top: 14px; font-family: var(--mono); font-size: 12px; }

/* ============================================================
   HERO — build-morph
   ============================================================ */
.hero { position: relative; height: 340vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-inner {
  max-width: var(--maxw); margin-inline: auto; padding: calc(var(--nav-h) + 26px) var(--pad) 24px;
  width: 100%; display: grid; grid-template-columns: 0.92fr 1.22fr; gap: clamp(28px, 4vw, 52px); align-items: center;
}
.locator { display: inline-flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: 20px; }
.locator-dot { width: 8px; height: 8px; background: var(--olive); }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); letter-spacing: -.038em; line-height: 1.02; margin-bottom: 18px; }
.hero h1 .hl { color: var(--olive); }
.hero-lead { font-size: clamp(15px, 1.5vw, 18px); color: var(--body); max-width: 46ch; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.build-steps { list-style: none; border-top: 1px solid var(--line-2); padding-top: 15px; display: flex; flex-direction: column; gap: 9px; }
.build-steps li { display: flex; align-items: center; gap: 13px; opacity: .5; transition: opacity .4s var(--e-out); }
.build-steps li.is-active { opacity: 1; }
.build-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(38,37,31,.24); flex: none; transition: background-color .4s var(--e-out), transform .4s var(--e-out); }
.build-steps li.is-active .build-dot { background: var(--olive); transform: scale(1.25); }
.build-num { font: 600 11px var(--mono); color: var(--muted); width: 20px; }
.build-label { font: 500 14px var(--sans); color: var(--ink); }

/* the morphing viewport */
.stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: min(64vh, 540px);
  border: 1px solid var(--line-str); background: #e6e0d3; overflow: hidden; margin: 0;
}
.stage-bar {
  position: absolute; inset: 0 0 auto 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); background: rgba(230,224,211,.92);
}
.stage-bar-key { color: var(--olive-deep); }
.layer { position: absolute; inset: 34px 0 0 0; opacity: 0; }
.layer--real { opacity: 1; }               /* no-JS default: show the delivered photo */
.js .layer { opacity: 0; }                 /* JS drives the morph from plan */
.layer--real img { width: 100%; height: 100%; object-fit: cover; }

.plan-svg { width: 100%; height: 100%; }
.plan-t { font: 600 8.5px var(--mono); letter-spacing: .08em; fill: var(--muted); }
.plan-t--olive { fill: var(--olive); } .plan-t--bronze { fill: var(--bronze-ink); }
.plan-dim { font: 600 8.5px var(--mono); letter-spacing: .1em; fill: var(--muted); }

.layer--mood { padding: 30px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 14px; }
.swatch { position: relative; background: var(--sw); }
.swatch b { position: absolute; left: 10px; bottom: 9px; font: 600 9px var(--mono); letter-spacing: .04em; color: #f4efe4; font-weight: 600; }
.swatch--dark-text b { color: #33322b; }

.layer--wire { display: grid; place-items: center; }
.wire-box { position: relative; width: calc(100% - 52px); height: calc(100% - 52px); border: 1.5px solid var(--line-str); background: repeating-linear-gradient(45deg, rgba(38,37,31,.06) 0 2px, transparent 2px 12px); display: grid; place-items: center; }
.wire-node { width: 74px; height: 74px; border: 1.5px solid rgba(38,37,31,.4); border-radius: 50%; display: grid; place-items: center; text-align: center; font: 500 9px/1.3 var(--mono); text-transform: uppercase; color: var(--muted); }
.wire-corner { position: absolute; width: 16px; height: 16px; }
.wire-corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.wire-corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); }

.stage-cap { position: absolute; left: 14px; bottom: 16px; z-index: 40; font: 500 10px var(--mono); letter-spacing: .06em; color: var(--ink); background: rgba(240,236,226,.92); padding: 8px 12px; border: 1px solid var(--line-2); }
.stage-hint { position: absolute; right: 14px; bottom: 16px; z-index: 40; font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); }
.stage-hint span { display: inline-block; animation: nudge 1.6s var(--e-out) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
/* mobile-only tap/swipe dots (shown ≤820) */
.stage-dots { display: none; position: absolute; right: 12px; bottom: 14px; z-index: 40; gap: 6px; }
.stage-dots span { width: 7px; height: 7px; border-radius: 1px; background: rgba(38,37,31,.28); transition: background-color .3s var(--e-out), transform .3s var(--e-out); }
.stage-dots span.on { background: var(--olive); transform: scale(1.25); }

/* "Section A–A" drag cut — phone-only; styled inside the ≤820 block, off everywhere else */
.cutline { display: none; }

/* ============================================================
   PROOF (dark band)
   ============================================================ */
.proof { position: relative; z-index: var(--z-base); background: var(--ink-band); color: var(--on-dark); padding: clamp(48px, 7vw, 74px) 0; }
.proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.proof-title { color: var(--on-dark-strong); font-size: clamp(24px, 3.4vw, 38px); max-width: 20ch; }
.proof-sub { font: 400 clamp(14px, 1.5vw, 17px)/1.55 var(--sans); color: var(--on-dark); max-width: 52ch; margin: 0 0 clamp(30px, 4vw, 46px); }
.proof-note { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px clamp(16px, 2vw, 26px); border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num { font: 700 clamp(38px, 5vw, 56px) var(--sans); letter-spacing: -.035em; color: var(--sage); font-variant-numeric: tabular-nums; }
.stat-unit { font-size: .5em; color: var(--sage); }
.stat-label { font: 500 11.5px/1.5 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 12px; position: relative; padding-top: 15px; }
.stat-label::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 2px; background: var(--bronze); }

.ticker { overflow: hidden; margin-top: clamp(30px, 4vw, 44px); border-top: 1px solid var(--line-dark); padding-top: 16px; }
.ticker-track, .marquee-track { display: flex; gap: 30px; white-space: nowrap; width: max-content; align-items: center; }
.ticker-track { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); animation: marq 34s linear infinite; }
.ticker-track i, .marquee-track i { color: var(--olive); font-style: normal; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CAPABILITY STRIP
   ============================================================ */
.capstrip { position: relative; z-index: var(--z-base); background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capstrip-inner { display: flex; flex-wrap: wrap; gap: 9px 20px; align-items: center; justify-content: center; padding: 15px var(--pad); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.capstrip-inner i { color: var(--olive); font-style: normal; }

/* ============================================================
   SERVICES — spec schedule
   ============================================================ */
.services { position: relative; z-index: var(--z-base); background: transparent; padding: clamp(52px, 7vw, 78px) 0; }
.schedule { list-style: none; border-top: 1px solid var(--line-2); }
.svc { border-bottom: 1px solid var(--line); }
.svc a {
  display: grid; grid-template-columns: 1.1fr 1.5fr 40px; gap: 24px; align-items: center;
  padding: 22px 8px; position: relative; overflow: hidden;
  transition: padding-left .4s var(--e-out);
}
.svc a::before { content: ""; position: absolute; inset: 0; background: rgba(95,111,84,.12); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--e-out); z-index: -1; }
.svc a:hover::before, .svc a:focus-visible::before { transform: scaleX(1); }
.svc a:hover, .svc a:focus-visible { padding-left: 22px; }
.svc-body { display: contents; }
.svc-name { display: block; font: 600 clamp(18px, 2.3vw, 23px) var(--sans); letter-spacing: -.02em; color: var(--ink); }
.svc-desc { display: block; font: 400 14px/1.5 var(--sans); color: var(--body); margin-top: 3px; }
.svc-go { font: 400 22px var(--mono); color: var(--olive); text-align: right; transition: transform .4s var(--e-out); }
.svc a:hover .svc-go, .svc a:focus-visible .svc-go { transform: translateX(5px); }

/* ============================================================
   PROCESS — horizontal scrub (desktop) / stack (mobile)
   ============================================================ */
.process { position: relative; z-index: var(--z-base); height: 320vh; background: transparent; }
.process-sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 40px 0; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 26px; }
.process-head .section-title { max-width: 20ch; }
.process-meter { width: 220px; max-width: 46vw; }
.process-meter .sheet { margin-bottom: 9px; }
.meter { height: 3px; background: rgba(38,37,31,.16); border-radius: 2px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0%; background: var(--olive); transition: width .1s linear; }
.process-viewport { overflow: hidden; padding: 4px var(--pad); }
.process-track { list-style: none; display: flex; gap: 22px; width: max-content; will-change: transform; }
.stage-card {
  width: min(420px, 78vw); flex: none; background: var(--surface); border: 1px solid var(--line-2); padding: 30px;
  transition: transform .3s var(--e-out), box-shadow .3s var(--e-out), border-color .3s ease;
}
.stage-card:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(38,37,31,.14); border-color: rgba(95,111,84,.55); }
.stage-card-n { font: 800 56px var(--sans); letter-spacing: -.04em; color: var(--olive); line-height: 1; display: block; }
.stage-card h3 { font-size: 22px; letter-spacing: -.02em; margin: 14px 0 10px; }
.stage-card p { font: 400 14.5px/1.55 var(--sans); color: var(--body); }
.stage-card--end { background: var(--olive); border-color: var(--olive); }
.stage-card--end .stage-card-n, .stage-card--end h3 { color: var(--on-dark-strong); }
.stage-card--end p { color: rgba(244,241,234,.86); }
.stage-card-flag { display: inline-block; margin-top: 14px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-strong); }
.stage-card--end:hover { box-shadow: 0 22px 46px rgba(38,37,31,.26); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { position: relative; z-index: var(--z-base); padding: clamp(52px, 7vw, 78px) 0; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.proj { perspective: 1400px; }
.proj-flip { display: block; width: 100%; height: 340px; position: relative; text-align: left; padding: 0; }
.proj-inner, .proj-face { position: absolute; inset: 0; }
.proj-flip .proj-front, .proj-flip .proj-back {
  transition: transform .62s var(--e-out-q); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}
.proj-front { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; z-index: 2; }
.proj-back { transform: rotateY(180deg); background: var(--olive); color: var(--on-dark-strong); border: 1px solid var(--olive); padding: 22px; display: flex; flex-direction: column; }
.proj-flip:hover .proj-front, .proj-flip:focus-visible .proj-front, .proj-flip[aria-expanded="true"] .proj-front { transform: rotateY(180deg); }
.proj-flip:hover .proj-back, .proj-flip:focus-visible .proj-back, .proj-flip[aria-expanded="true"] .proj-back { transform: rotateY(360deg); }

.proj-img { position: relative; height: 200px; flex: none; overflow: hidden; background: var(--ground-2); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e-out); }
.proj-flip:hover .proj-img img { transform: scale(1.04); }
.proj-img::after { content: ""; position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-top: 1.5px solid var(--olive); border-left: 1.5px solid var(--olive); }
.proj-meta { padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
.proj-loc { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.proj-name { font: 700 22px var(--sans); letter-spacing: -.02em; color: var(--ink); }
.proj-sub { font: 400 13px var(--mono); color: var(--muted); }
.proj-cue { position: absolute; right: 12px; top: 12px; font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-strong); background: rgba(38,38,31,.55); padding: 5px 8px; border-radius: 2px; }
.proj-tag { position: absolute; left: 12px; bottom: 12px; z-index: 3; font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #241a0e; background: var(--bronze); padding: 5px 9px; }
.proj-back-k { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,234,.72); }
.proj-back-name { font: 700 24px var(--sans); letter-spacing: -.02em; color: var(--on-dark-strong); margin: 7px 0 14px; }
.spec { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(244,241,234,.24); padding: 8px 0; font: 500 12px var(--mono); }
.spec span:first-child { color: rgba(244,241,234,.66); }
.proj--flag .proj-front { border-color: var(--olive); box-shadow: inset 0 0 0 1px rgba(95,111,84,.35); }
/* mobile-only swipe-gallery dots (shown ≤820) */
.proj-dots { display: none; justify-content: center; gap: 7px; margin-top: 16px; }
.proj-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(38,37,31,.2); transition: background-color .3s var(--e-out), transform .3s var(--e-out); }
.proj-dots span.on { background: var(--olive); transform: scale(1.3); }

/* ============================================================
   SPACES marquee
   ============================================================ */
.spaces { position: relative; z-index: var(--z-base); padding: clamp(30px, 4vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.spaces-lead { text-align: center; margin-bottom: 20px; }
.marquee { overflow: hidden; }
.marquee-track { font: 700 clamp(22px, 3vw, 34px) var(--sans); letter-spacing: -.02em; color: var(--ink); gap: 26px; animation: marq 40s linear infinite; }
.marquee-track i { color: var(--bronze); font-weight: 400; }

/* ============================================================
   WHY / PM
   ============================================================ */
.why { position: relative; z-index: var(--z-base); padding: clamp(52px, 7vw, 82px) 0; }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.why-lede .section-title { font-size: clamp(22px, 3vw, 33px); max-width: 16ch; margin-bottom: 18px; }
.why-body { font-size: clamp(15px, 1.4vw, 17px); color: var(--body); max-width: 52ch; margin-bottom: 24px; }
.pillars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.pillars li { background: var(--ground); padding: 24px; }
.pillar-tag { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-ink); display: inline-flex; align-items: center; gap: 8px; }
.pillar-tag::before { content: ""; width: 16px; height: 1px; background: var(--bronze); }
.pillars h3 { font-size: 18px; letter-spacing: -.02em; margin: 10px 0 8px; }
.pillars p { font: 400 13.5px/1.55 var(--sans); color: var(--body); }

/* ============================================================
   CTA (dark)
   ============================================================ */
.cta { position: relative; z-index: var(--z-base); background: var(--ink-band); color: var(--on-dark); padding: clamp(52px, 8vw, 90px) 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(159,176,143,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(159,176,143,.05) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta-title { color: var(--on-dark-strong); font-size: clamp(30px, 5vw, 54px); letter-spacing: -.035em; margin: 14px 0 16px; max-width: 16ch; }
.cta-lead { font-size: clamp(15px, 1.5vw, 18px); color: var(--on-dark); max-width: 48ch; margin-bottom: 26px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* lead-capture form (submits collected details via WhatsApp) */
.cta-form { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.cta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-field { width: 100%; font: 400 14.5px var(--sans); color: var(--on-dark-strong); background: rgba(239,234,221,.05); border: 1px solid rgba(239,234,221,.22); border-radius: 2px; padding: 12px 13px; transition: border-color .2s ease, background-color .2s ease; }
.cta-field::placeholder { color: var(--on-dark-muted); }
.cta-field:focus { outline: none; border-color: var(--sage); background: rgba(239,234,221,.09); }
textarea.cta-field { resize: vertical; min-height: 44px; line-height: 1.5; }
.cta-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cta-form-call { font: 500 13.5px var(--sans); color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(239,234,221,.3); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.cta-form-call:hover { text-decoration-color: var(--sage); }
.cta-form-note { font: 400 12px var(--mono); letter-spacing: .01em; color: var(--on-dark-muted); }
.cta-next { list-style: none; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-dark); background: rgba(159,176,143,.04); }
.cta-next li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line-dark); }
.cta-next li:last-child { border-bottom: none; }
.cta-next-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--sage); color: var(--sage); border-radius: 50%; font: 600 13px var(--mono); }
.cta-next b { display: block; color: var(--on-dark-strong); font: 600 15px var(--sans); }
.cta-next span { font: 400 13.5px/1.5 var(--sans); color: var(--on-dark-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { position: relative; z-index: var(--z-base); background: #1c1f18; color: var(--on-dark); padding: clamp(44px, 6vw, 68px) 0 26px; }
.foot-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.foot-brand p { font: 400 14px/1.6 var(--sans); color: var(--on-dark); max-width: 40ch; margin-top: 16px; }
.wordmark--foot .wordmark-text { color: var(--on-dark-strong); }
.foot-col h4 { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.foot-col a { display: block; font: 600 14px var(--sans); color: var(--on-dark-strong); padding: 6px 0; transition: color .2s ease, opacity .2s ease; }
.foot-col a:hover { color: var(--on-dark-strong); opacity: .7; }
.foot-contact a[href^="tel"], .foot-contact a[href^="mailto"] { color: var(--on-dark-strong); }
.foot-addr { font: 400 13px/1.6 var(--sans); color: var(--on-dark); margin: 12px 0 16px; }
.foot-col .btn--sm { margin-top: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--on-dark); text-transform: uppercase; }

/* ============================================================
   Sticky mobile dock
   ============================================================ */
/* (sticky mobile dock removed — the mobile design routes contact via the CTA + menu) */

/* ============================================================
   Reveal (progressive, non-blocking)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--e-out), transform .7s var(--e-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--e-out), transform .6s var(--e-out); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .stat-num { font-size: clamp(32px, 8vw, 46px); }
  .why-inner { grid-template-columns: 1fr; gap: 34px; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .svc a { gap: 18px; }

  /* Unpin hero & process below desktop — a stacked layout can't fit a sticky 100vh box.
     (This is why the 821–1000 tablet zone was clipping the hero.) */
  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; min-height: 0; padding: calc(var(--nav-h) + 24px) 0 28px; }
  .stage-hint { display: none; }            /* no scroll-build at this width */
  .process { height: auto; }
  .process-sticky { position: static; height: auto; min-height: 0; padding: clamp(48px,7vw,70px) 0; }
  .process-viewport { overflow: visible; padding: 0 var(--pad); }
  .process-track { flex-direction: column; width: 100%; gap: 14px; transform: none !important; }
  .stage-card { width: 100%; }
  .process-meter { display: none; }
}

/* ============================================================
   MOBILE (≤820) — the dedicated mobile design.
   "Drawing Set", tightened for a phone: tap/swipe hero,
   slim 3-stat strip, 4-card services, swipe-gallery projects.
   Capability strip, the process scrub & the marquee are trimmed.
   ============================================================ */
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .js .mobile-menu.is-open { display: flex; }

  /* trimmed on phones (per the mobile design: no capability strip, process, marquee or dock) */
  .capstrip, .process, .spaces, .ticker { display: none; }
  .stats .stat:last-child { display: none; }        /* → slim 3-stat strip */
  .foot-col:not(.foot-contact) { display: none; }    /* footer: brand + contact only */
  .foot-base-r { display: none; }

  /* ---- HERO — NO scroll animation on phones. Un-pinned; the stage becomes the
     "Section A–A" cut you DRAG between the zoning drawing and the finished office.
     Self-plays a reveal on load, then it's yours — never tied to scroll. ---- */
  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; min-height: 0; display: block; overflow: visible; padding: 0; }
  /* reorder within hero-inner (no DOM move): locator → headline → the cut → lead → CTAs */
  .hero-copy { display: contents; }
  .hero-inner { row-gap: 0; }
  .locator { order: 1; margin: 0; }
  .hero h1 { order: 2; margin: 14px 0 0; font-size: clamp(29px, 8.2vw, 38px); }
  .stage { order: 3; margin: 20px 0 0; aspect-ratio: 4 / 3; height: auto; max-height: none; }
  .hero-lead { order: 4; margin: 18px 0 0; max-width: none; font-size: 14.5px; line-height: 1.55; }
  .hero-cta { order: 5; margin: 22px 0 0; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1; justify-content: center; padding: 12px 10px; }
  .build-steps { display: none; }
  .stage-hint { display: none; }
  .stage-dots { display: none; }
  .intro-note { display: none; }              /* disclaimer is desktop-only (mobile has no scroll animation) */

  /* the section cut */
  .stage { --cut: 100; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .layer--plan { background: var(--ground-2); clip-path: inset(0 calc((100 - var(--cut)) * 1%) 0 0); }
  .cutline { position: absolute; top: 34px; bottom: 0; left: calc(var(--cut) * 1%); width: 0; z-index: 30; }
  .cutline:not([hidden]) { display: block; }
  .cut-rule { position: absolute; inset: 0 auto 0 -0.75px; width: 1.5px; background: var(--ink); box-shadow: 0 0 0 1px rgba(240,236,226,.35); }
  .cut-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
  .cut-handle::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--ink); box-shadow: 0 4px 14px rgba(38,37,31,.25); }
  .cut-handle::after { content: "‹ ›"; position: absolute; font: 600 11px var(--mono); letter-spacing: 2px; color: var(--ink); }

  /* ---- PROOF — slim 3-stat strip ---- */
  .proof { padding: clamp(28px,6.5vw,40px) 0; }
  .proof-head { margin-bottom: 22px; }
  .proof-title { font-size: clamp(20px, 5.8vw, 27px); max-width: 24ch; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 0 11px; border-left: 1px solid var(--line-dark); }
  .stat:first-child { padding-left: 0; border-left: none; }
  .stat-num { font-size: clamp(21px, 6.6vw, 27px); }
  .stat-label { font-size: 9px; padding-top: 9px; margin-top: 8px; }
  .stat-label::before { width: 22px; }

  .section-title { font-size: clamp(20px, 5.4vw, 26px); }
  .section-head { margin-bottom: 22px; }

  /* ---- SERVICES — 2-col cards, 4 on mobile ---- */
  .services { padding: clamp(34px,7vw,42px) 0; }
  .schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line-2); background: var(--line-2); counter-reset: svc; }
  .svc { border: none; counter-increment: svc; }
  .svc:nth-child(n+5) { display: none; }              /* keep 4 */
  .svc a { display: block; position: relative; overflow: hidden; height: 100%; min-height: 122px; background: var(--ground); padding: 16px 14px; grid-template-columns: none; }
  .svc a:hover, .svc a:focus-visible { padding-left: 14px; }
  .svc a::before { content: ""; inset: auto; top: 13px; left: 14px; width: 11px; height: 11px; background: none; border-top: 1.5px solid var(--olive); border-left: 1.5px solid var(--olive); transform: none; }
  .svc a:hover::before, .svc a:focus-visible::before { transform: none; }
  .svc a::after { content: counter(svc, decimal-leading-zero); position: absolute; top: 2px; right: 10px; font: 800 46px var(--sans); letter-spacing: -.05em; line-height: 1; color: rgba(95,111,84,.11); }
  .svc-body { display: block; }
  .svc-name { font-size: 15.5px; margin: 24px 0 5px; }
  .svc-desc { font-size: 11.5px; line-height: 1.45; margin-top: 0; }
  .svc-go { display: none; }

  /* ---- PROJECTS — horizontal swipe gallery ---- */
  .projects { padding: 10px 0 34px; }
  .grid { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .grid::-webkit-scrollbar { display: none; }
  .proj { perspective: none; flex: 0 0 min(84vw, 290px); scroll-snap-align: start; border: 1px solid var(--line-2); background: var(--surface); }
  .proj--flag { border-color: var(--olive); box-shadow: inset 0 0 0 1px rgba(95,111,84,.35); }
  .proj-flip { height: auto; display: block; }
  .proj-front, .proj-back { position: static; transform: none !important; -webkit-backface-visibility: visible; backface-visibility: visible; inset: auto; }
  .proj-front { border: none; }
  .proj-img { height: 178px; }
  .proj-flip:hover .proj-img img { transform: none; }
  .proj-cue { display: none; }
  .proj-meta { padding: 14px 15px 4px; }
  .proj-back { background: var(--surface); color: var(--ink); border: none; padding: 6px 15px 15px; }
  .proj-back-k, .proj-back-name { display: none; }
  .spec { border-top: 1px solid var(--line); padding: 7px 0; }
  .spec span:first-child { color: var(--muted); }
  .spec span:last-child { color: var(--ink); }
  .proj-dots { display: flex; }

  /* ---- WHY / CTA / FOOTER ---- */
  .why { padding: clamp(34px,7vw,44px) 0; }
  .why-inner { gap: 24px; }
  .why-lede .section-title { font-size: clamp(19px, 5.2vw, 24px); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li { padding: 17px 15px; }
  .pillars h3 { font-size: 15px; }
  .cta { padding: clamp(40px,8vw,56px) 0; }
  .cta-inner { gap: 24px; }
  .cta-title { font-size: clamp(24px, 7vw, 32px); }
  .cta-actions { flex-direction: column; }
  .cta-form { max-width: none; }
  .cta-form-grid { grid-template-columns: 1fr; }
  .cta-form-actions .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { justify-content: center; }
  .cta-next li { padding: 15px 16px; }
  .foot-inner { grid-template-columns: 1fr; gap: 18px; }
}

@keyframes nudgex { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }


/* Reduced motion: JS adds .motion-off — fully unpin, stack, no scroll-jacking */
.motion-off .hero { height: auto; }
.motion-off .hero-sticky { position: static; height: auto; min-height: 0; padding: calc(var(--nav-h) + 22px) 0 24px; }
.motion-off .stage { aspect-ratio: 3 / 2; max-height: none; }
.motion-off .stage-hint { display: none; }
.motion-off .build-steps li { opacity: 1; }
.motion-off .process { height: auto; }
.motion-off .process-sticky { position: static; height: auto; min-height: 0; padding: clamp(48px,7vw,70px) 0; }
.motion-off .process-viewport { overflow: visible; padding: 0 var(--pad); }
.motion-off .process-track { flex-direction: column; width: 100%; gap: 14px; transform: none !important; }
.motion-off .stage-card { width: 100%; }
.motion-off .process-meter { display: none; }
/* on a reduced-motion phone, keep the tap-to-build active indicator (motion-off must not force all steps lit) */
@media (max-width: 820px) {
  .motion-off .build-steps li { opacity: .42; }
  .motion-off .build-steps li.is-active { opacity: 1; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track, .marquee-track { animation: none; }
  .stage-hint span { animation: none; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  /* desktop/tablet: show the delivered space, no morph (phones are driven by the tap/swipe JS) */
  @media (min-width: 821px) {
    .js .layer { opacity: 0; }
    .js .layer--real { opacity: 1; }
  }
  .proj-flip:hover .proj-front, .proj-flip:hover .proj-back { transition: none; }
}
