/* EDIFICE v2 — main stylesheet. Quiet-luxury editorial. Desktop-first, art-directed mobile. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback */
  overflow-x: clip; /* allows position:sticky to work */
}

::selection { background: var(--ink); color: var(--paper); }

img, video { display: block; max-width: 100%; }

h1, h2, h3 { text-wrap: balance; }

/* Screen-reader only — visually hidden but available to crawlers/AT */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.scene-finale :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: fixed; top: -60px; left: var(--margin); z-index: 200;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 12px 20px; text-decoration: none;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ── shared ─────────────────────────────── */
.wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 18px;
  letter-spacing: 0.28em; text-decoration: none;
}

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 56px;
  position: relative; display: inline-block;
}
/* Drawing underline: the kicker underlines itself on scroll entry */
.kicker::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.kicker.k-drawn::after { transform: scaleX(1); }
.kicker .k-num { color: var(--ink); }
.kicker-ink { color: rgba(244, 241, 236, 0.6); }
.kicker-ink .k-num { color: var(--paper); }

.rule {
  height: 1px; background: var(--hairline);
  margin: 0 var(--margin);
}

.scene {
  position: relative;
  padding: 0 var(--margin);
  scroll-margin-top: 90px;
}

.scene-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 72px;
}

/* ── loader ─────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.9s var(--ease-io), visibility 0.9s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-grid { width: 200px; color: var(--ink-soft); }
.loader-grid .lg-line {
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.6s var(--ease-io) forwards;
}
.loader-grid .lg-line:nth-child(2) { animation-delay: 0.1s; }
.loader-grid .lg-line:nth-child(3) { animation-delay: 0.2s; }
.loader-grid .lg-line:nth-child(4) { animation-delay: 0.15s; }
.loader-grid .lg-line:nth-child(5) { animation-delay: 0.25s; }
.loader-grid .lg-line:nth-child(6) { animation-delay: 0.3s; }
.loader-grid .lg-portal {
  fill: var(--ink); stroke: none; opacity: 0;
  animation: portalIn 0.8s var(--ease-out) 1.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes portalIn { to { opacity: 1; } }
.loader-word {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.42em; text-indent: 0.42em;
}
.loader-count {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--ink-soft);
}

/* ── overture (typographic — no imagery) ──── */
.overture {
  position: relative; height: 100svh; min-height: 620px;
  overflow: hidden; background: var(--ink);
}
/* faint 12-col drafting grid, drawn in CSS — no AI imagery */
.overture-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,241,236,0.055) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 100%);
}
.overture-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,24,21,0.28), transparent 32%, transparent 68%, rgba(26,24,21,0.42));
}
/* ── overture: two-column hero — title left, annotated blueprint right ── */
.overture-inner {
  position: relative; z-index: 2;
  height: 100%; min-height: 620px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
  padding: 0 var(--margin);
}
.overture-left {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100%;
  padding: 120px 0 80px;
}
.overture-right {
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  opacity: 0.85;
}
.blueprint-svg {
  width: 100%; max-width: 460px; height: auto;
  display: block;
}
/* blueprint line-drawing animation — deliberate drafting pace */
.bp-draw {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
}
.overture.bp-play .bp-draw {
  animation: bp-draw 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* stagger the drawing: frame first, then grid, then blocks, then annotations */
.overture.bp-play .blueprint-svg > rect:first-child { animation-delay: 0s; }
.overture.bp-play .blueprint-svg g .bp-draw { animation-delay: 0.3s; }
.overture.bp-play .blueprint-svg > rect:nth-of-type(2) { animation-delay: 0.8s; }
.overture.bp-play .blueprint-svg > rect:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes bp-draw {
  to { stroke-dashoffset: 0; }
}
.bp-fade { opacity: 0; transform: translateY(8px); }
.overture.bp-play .bp-fade {
  animation: bp-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* staggered letter-label reveal, like the kinetic type elsewhere */
.overture.bp-play .bp-fade:nth-of-type(1) { animation-delay: 1.6s; }
.overture.bp-play .bp-fade:nth-of-type(2) { animation-delay: 1.75s; }
.overture.bp-play .bp-fade:nth-of-type(3) { animation-delay: 1.9s; }
.overture.bp-play .bp-fade:nth-of-type(4) { animation-delay: 2.05s; }
.overture.bp-play .bp-fade:nth-of-type(5) { animation-delay: 2.2s; }
.overture.bp-play .bp-fade:nth-of-type(6) { animation-delay: 2.35s; }
.overture.bp-play .bp-fade:nth-of-type(7) { animation-delay: 2.5s; }
.overture.bp-play .bp-fade:nth-of-type(8) { animation-delay: 2.65s; }
@keyframes bp-fade {
  to { opacity: 1; transform: translateY(0); }
}
/* keep existing title/head/foot styles, now positioned within the grid */
.overture-title {
  margin: 0 0 32px; color: var(--paper);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 10vw, 160px); line-height: 0.88; letter-spacing: -0.02em;
}
.ot-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ot-inner { display: block; will-change: transform; }
/* ── Value prop: visible on load, no scroll required ── */
.overture-head {
  margin: 0 0 48px;
  z-index: 2; will-change: transform, opacity;
  color: var(--paper);
}
.overture-headline {
  margin: 0 0 14px; color: var(--paper);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 58px); line-height: 1.04; letter-spacing: -0.01em;
}
.overture-headline em { font-style: italic; }
.oh-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.oh-inner { display: block; will-change: transform; }
.overture-sub {
  margin: 0; color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  opacity: 0.72;
}
.overture-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--margin); color: var(--paper);
}
.overture-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  opacity: 0.75;
}
.overture-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: var(--paper);
  gap: 24px;
}
.overture-caption {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  opacity: 0.75;
}
.overture-statement {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.3;
  color: var(--paper);
  margin: 40px 0;
  opacity: 0.9;
  max-width: 100%;
  overflow-wrap: break-word;
}
.overture-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  opacity: 0.6;
}
.meta-dot { opacity: 0.4; }
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--paper); text-decoration: none;
  opacity: 0.7; transition: opacity 0.3s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue__line {
  width: 1px; height: 48px;
  background: currentColor;
  animation: scroll-pulse 2s ease-in-out infinite;
}
.scroll-cue__text {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.6); opacity: 0.3; }
}

/* ── 01 promise ─────────────────────────── */
.scene-promise { padding-bottom: 64px; }

.scene-nav {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--nav-h);
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-decoration: none; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.scene-promise .rule { margin: 0 calc(var(--margin) * -1); }

.scene-promise .kicker { margin-top: 96px; }

.manifesto {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 7.4vw, 106px);
  line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 48px;
}
.manifesto .m-line { display: block; overflow: hidden; }
.manifesto .m-inner { display: block; will-change: transform; }
.manifesto em { font-style: italic; }

.lede {
  font-size: 18px; line-height: 1.65; color: var(--ink-soft);
  max-width: 560px; margin-bottom: 56px;
}

.cta-row { display: flex; align-items: center; gap: 32px; margin-bottom: 120px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 18px 36px; border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-ghost { color: var(--ink); padding: 18px 4px; position: relative; }
.btn-ghost::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 12px;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.btn-ghost:hover::after { transform: scaleX(1); transform-origin: left; }

.scene-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

/* ── 02 capabilities ────────────────────── */
.scene-capabilities { padding-top: 96px; padding-bottom: 96px; }
.scene-capabilities .rule { margin: 0 calc(var(--margin) * -1) 56px; }

/* ── 02 capabilities: editorial index ────
   Ledger rows on hairlines. The page goes quiet here so the films hit harder. */
.cap-index { border-top: 1px solid var(--hairline); }
.cap-row { border-bottom: 1px solid var(--hairline); }
.cap-head {
  display: grid; grid-template-columns: 72px 1fr auto 48px; align-items: center; gap: 24px;
  width: 100%; padding: 30px 12px; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.cap-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-soft); }
.cap-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -0.01em;
  transition: transform 0.45s var(--ease-out);
  margin: 0;
}
.cap-tag { font-size: 14px; color: var(--ink-soft); max-width: 300px; text-align: right; line-height: 1.55; }
.cap-plus { font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--ink-soft); text-align: center; transition: transform 0.45s var(--ease-out); }
.cap-head:hover .cap-name { transform: translateX(12px); }
.cap-head:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cap-body { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out); }
.cap-body p { padding: 0 12px 34px 108px; max-width: 660px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.cap-row.open .cap-plus { transform: rotate(45deg); }
.cap-row.open .cap-body { max-height: 420px; }

/* ── 03 process ─────────────────────────── */
.scene-process { padding-top: 96px; padding-bottom: 96px; }
.scene-process .rule { margin: 0 calc(var(--margin) * -1) 96px; }

/* ── 04 scope ─────────────────────────── */
.scene-scope { padding-top: 96px; padding-bottom: 96px; }
.scene-scope .rule { margin: 0 calc(var(--margin) * -1) 56px; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1200px; }
.scope-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.scope-list { list-style: none; margin: 0; padding: 0; }
.scope-list li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--hairline); line-height: 1.55; }
.scope-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.scope-col:last-child .scope-list li::before { border-radius: 0; }
.scope-note { margin-top: 28px; color: var(--ink-soft); line-height: 1.6; }
.scope-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.process-grid {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 400px);
  gap: 64px; max-width: 1440px; align-items: start;
}
.rail { position: relative; width: 2px; margin: 8px auto 0; }
.rail-bg, .rail-fg {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
}
.rail-bg { background: var(--hairline); }
.rail-fg { background: var(--ink); transform: scaleY(0); transform-origin: top; }
/* survey ticks: theodolite gradations along the rail */
.rail-ticks {
  position: absolute; top: 0; bottom: 0; left: -9px; width: 20px;
  background: repeating-linear-gradient(to bottom, var(--ink-soft) 0 1px, transparent 1px 28px);
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 38%, #000 62%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 38%, #000 62%, transparent);
}

.steps { list-style: none; display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 28px 1fr; gap: 32px;
  padding: 48px 0; border-bottom: 1px solid var(--hairline);
  position: relative;
}
.step:first-child { border-top: 1px solid var(--hairline); }
.step-dot {
  width: 14px; height: 14px; border: 1px solid var(--ink-soft);
  border-radius: 50%; margin-top: 8px; background: transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.active .step-dot {
  background: var(--ink); border-color: var(--ink);
  box-shadow: 0 0 0 6px rgba(26, 24, 21, 0.08);
}
.step-num {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 12px;
}
.step.active .step-num { color: var(--ink); }
.step-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 16px;
  transition: transform 0.5s var(--ease-out);
  scroll-margin-top: 120px;
}
.step.active .step-title { transform: translateX(8px); }
.step-desc { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; }
/* stations recede via opacity (no blur — inactive steps must stay readable) */
.js .step-text { opacity: 0.5; transition: opacity 0.9s var(--ease-out); }
.js .step.resolved .step-text { opacity: 1; }

/* ── Blueprint reveal — the drafting sheet ──────────────────── */
.blueprint {
  position: sticky; top: 104px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 16px 16px 8px;
}
.blueprint-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-soft); margin-bottom: 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.blueprint-label::after {
  content: ""; width: 8px; height: 8px; border: 1px solid var(--ink-soft);
  border-radius: 50%; opacity: 0.6;
}
/* phase counter — reports which sheet phase the scroll is drawing (01/04 → 04/04) */
.blueprint-progress {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-soft); margin: 0 0 12px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.blueprint-progress span { color: var(--ink); }
.blueprint-sheet {
  width: 100%; height: auto; display: block;
  color: var(--ink-soft);
}
.blueprint-sheet .bp-draw {
  fill: none; stroke: var(--ink); stroke-width: 1.4;
}
.blueprint-sheet .bp-draw.bp-thin { stroke-width: 0.7; }
.blueprint-sheet .bp-grid { opacity: 0.5; }
.blueprint-sheet .bp-cross { opacity: 0.7; }
.blueprint-sheet text {
  font-family: var(--mono); fill: var(--ink-soft);
}
.blueprint-sheet .bp-anno { font-size: 9.5px; letter-spacing: 0.12em; }
.blueprint-sheet .bp-val { font-size: 11px; letter-spacing: 0.06em; fill: var(--ink); }
/* JS-gated initial states: no-JS shows the complete sheet */
.js .blueprint-sheet .bp-grid { opacity: 0; }
.js .blueprint-sheet .bp-cross { opacity: 0; }
.js .blueprint-sheet .bp-anno { opacity: 0; }
.js .blueprint-sheet .bp-val { opacity: 0.35; }

/* ── 04 finale ───────────────────── */
.scene-finale {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 96px var(--margin) 64px;
  display: flex; flex-direction: column;
}
/* drafting grid: the finale is drawn, not filmed — on-concept with the blueprint system */
.finale-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(244,241,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,235,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}
.finale-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(26,24,21,0.4), rgba(26,24,21,0.2) 48%, rgba(26,24,21,0.5));
}
.scene-finale > :not(.finale-grid):not(.finale-veil) { position: relative; z-index: 2; }
.scene-finale .kicker { margin-bottom: 64px; }
.finale-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 10.5vw, 150px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin-bottom: 72px;
}
.finale-title .f-line { display: block; overflow: hidden; }
.finale-title .f-inner { display: block; will-change: transform; }
.finale-title em { font-style: italic; }
.btn-paper {
  align-self: flex-start;
  background: var(--paper); color: var(--ink);
  padding: 20px 44px; border: 1px solid var(--paper);
  margin-bottom: 40px;
}
.btn-paper:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.finale-note {
  font-size: 16px; color: rgba(244, 241, 236, 0.6);
  margin-bottom: auto; padding-bottom: 120px;
}
.finale-foot {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; color: rgba(244, 241, 236, 0.5);
  border-top: 1px solid var(--hairline-ink);
  padding-top: 20px;
}

/* ══════════ MOBILE — separately art-directed ══════════ */
@media (max-width: 1023px) and (min-width: 769px) {
  /* Tablet: single column, generous spacing */
  .overture-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 120px var(--margin) 60px;
    min-height: 560px;
  }
  .overture-right { order: -1; }
  .blueprint-svg { max-width: 380px; margin: 0 auto; }
  .overture-title { font-size: clamp(64px, 10vw, 96px); margin-bottom: 24px; }
  .os-svg { max-width: 600px; }
  .overture-statement {
    font-size: clamp(26px, 4vw, 34px);
    margin: 36px 0;
  }
  .overture-foot {
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .scene { padding: 0 var(--margin-m); }
  .rule { margin: 0 var(--margin-m); }

  .overture-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 90px var(--margin-m) 32px;
    min-height: auto;
  }
  .overture-left {
    padding: 0;
    min-height: auto;
  }
  .overture-right { order: -1; margin-bottom: 8px; }
  .blueprint-svg { max-width: 280px; margin: 0 auto; }
  .overture-title { font-size: clamp(48px, 14vw, 80px); margin-bottom: 16px; }
  .os-svg { max-width: 100%; margin-top: 16px; }
  .overture-statement {
    font-size: clamp(22px, 6vw, 28px);
    margin: 28px 0;
    line-height: 1.35;
  }
  .overture-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
  }
  .overture-meta {
    font-size: 10px;
    gap: 8px;
  }
  .scroll-cue { display: none; }

  .nav-links { display: none; }
  .scene-promise .rule { margin: 0 calc(var(--margin-m) * -1); }
  .scene-promise .kicker { margin-top: 64px; margin-bottom: 40px; font-size: 11px; }

  .manifesto {
    font-size: clamp(44px, 13.5vw, 64px);
    line-height: 1.08; margin-bottom: 36px;
  }
  .lede { font-size: 16px; margin-bottom: 44px; }
  .lede br { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 88px; }
  .btn-primary { justify-content: center; }
  .btn-ghost { text-align: center; }

  .scene-capabilities { padding-top: 56px; padding-bottom: 96px; }
  .scene-capabilities .rule { margin: 0 calc(var(--margin-m) * -1) 48px; }
  .scene-title { font-size: clamp(38px, 10vw, 48px); margin-bottom: 48px; }
  .cap-head { grid-template-columns: 48px 1fr 40px; gap: 16px; padding: 24px 8px; }
  .cap-tag { display: none; }
  .cap-body p { padding: 0 8px 28px 64px; }

  .scene-process { padding-top: 88px; padding-bottom: 110px; }
  .scene-process .rule { margin: 0 calc(var(--margin-m) * -1) 64px; }

  .scene-scope { padding-top: 56px; padding-bottom: 96px; }
  .scene-scope .rule { margin: 0 calc(var(--margin-m) * -1) 48px; }
  .scope-grid { grid-template-columns: 1fr; gap: 48px; }
  .scope-list li { padding: 12px 0 12px 26px; }
  .process-grid { grid-template-columns: 32px 1fr; gap: 28px; }
  /* blueprint sheet: pinned drafting strip above the stations on mobile.
     top:72px clears the fixed header (else it slides underneath it). */
  .blueprint {
    grid-column: 1 / -1; order: -1; position: sticky; top: 72px; z-index: 5;
    width: 100%; max-width: 100%; box-sizing: border-box;
    margin: 0 0 8px; padding: 12px 12px 4px;
    background: var(--paper);
  }
  .blueprint-sheet { max-height: 300px; }
  .step { grid-template-columns: 20px 1fr; gap: 20px; padding: 36px 0; }
  .step-title { font-size: 30px; }
  .step.active .step-title { transform: translateX(4px); }

  .scene-finale { padding: 110px var(--margin-m) 32px; }
  .finale-title { font-size: clamp(52px, 15vw, 76px); margin-bottom: 56px; }
  .btn-paper { align-self: stretch; justify-content: center; }
  .finale-note { padding-bottom: 88px; }
}

/* ══════════ REDUCED MOTION — complete variant ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .loader { display: none; }
  .finale-film { display: none; }
  /* static variant: all stations legible */
  .js .step-text { filter: none; opacity: 1; }
  .js .blueprint-sheet .bp-grid { opacity: 0.5; }
  .js .blueprint-sheet .bp-cross { opacity: 0.7; }
  .js .blueprint-sheet .bp-anno { opacity: 1; }
  .js .blueprint-sheet .bp-val { opacity: 1; }
  .manifesto .m-inner, .finale-title .f-inner { transform: none !important; }
  .card::before, .card::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   A+ MOTION — one house language (added 15-Oct-2026)
   ══════════════════════════════════════════════════════════════ */

/* ── Boot sequence loader (Pensatori "waiting as theater") ── */
.boot-log {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  min-height: 96px; text-align: left; min-width: 240px;
}
.boot-log p {
  margin: 7px 0; color: var(--ink-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo);
}
.boot-log p.is-on { opacity: 1; transform: none; }
.boot-idx { opacity: 0.55; margin-right: 14px; }
.boot-ok { color: var(--green); margin-left: 14px; }
.boot-ready { color: var(--ink); }
.boot-cursor {
  display: inline-block; width: 9px; height: 15px;
  background: var(--green); margin-left: 10px; vertical-align: -2px;
  animation: bootBlink 1s steps(2, start) infinite;
}
@keyframes bootBlink { 50% { opacity: 0; } }

/* ── Manifesto char arrival ── */
.manifesto .m-ch { display: inline-block; will-change: transform; }
/* scene + finale titles share the char-split arrival language */
.scene-title .m-line { display: block; overflow: hidden; }
.scene-title .m-inner { display: block; will-change: transform; }
.scene-title .m-ch, .finale-title .m-ch { display: inline-block; will-change: transform; }

/* ── Process: the sheet draws itself (desktop) ──
   The blueprint column is sticky; the sheet stays in view while the
   stations scroll past and each phase drafts in turn. No GSAP pin —
   sticky gives the cinematic hold without spacer bugs. */
@media (min-width: 1024px) {
  .scene-process .process-grid { align-items: start; }
  /* Sticky cinematic: native compositor, no pin/unpin jitter.
     Requires body overflow-x: clip (not hidden). */
  .scene-process { padding-bottom: 48px; }
  .scene-process .process-grid {
    position: sticky;
    top: 80px;
    z-index: 1;
  }
  /* prominent phase counter: the scroll position, reported large */
  .scene-process .blueprint-progress {
    font-size: clamp(28px, 3vw, 44px);
    letter-spacing: 0.04em; text-align: left; margin: 0 0 16px;
    font-variant-numeric: tabular-nums;
  }
  .scene-process .blueprint-label { margin-bottom: 6px; }
  /* stations arrive as chapters: inactive steps recede, active steps lead */
  .scene-process .step { padding: 64px 0; }
  .scene-process .step-title {
    font-size: clamp(40px, 3.8vw, 60px);
  }
  .scene-process .step-desc { font-size: 17px; max-width: 460px; }
  .scene-process .step:not(.active) .step-text { opacity: 0.72; }
  .scene-process .step.active .step-text { opacity: 1; filter: none; }
  .scene-process .step.active .step-title { transform: translateX(10px); }
  .scene-process .step.active .step-num { color: var(--green); }
  .scene-process .step.active .step-dot {
    background: var(--green); border-color: var(--green);
    box-shadow: 0 0 0 6px rgba(31, 77, 58, 0.12);
  }
}

/* ── Physical press feedback (Resn, sparingly) ── */
.btn {
  transition:
    background-color 300ms var(--ease-out),
    color 300ms var(--ease-out),
    border-color 300ms var(--ease-out),
    transform 200ms var(--ease-press);
}
.btn:active { transform: scale(0.97); }

/* Prevent layout shift during phase counter animation */
.blueprint-progress {
  display: inline-block;
  min-width: 120px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* Overture headline: blueprint stroke-draw then fill */
.ot-svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  overflow: visible;
}
.os-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  overflow: visible;
  margin-top: 24px;
}
.ot-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.ot-fill {
  transition: opacity 0.8s ease;
}
.overture-title.drawn .ot-draw {
  animation: otDraw 2.2s ease forwards;
}
.overture-title.filled .ot-fill {
  opacity: 1;
}
.overture-title.filled .ot-draw {
  opacity: 0.15;
  transition: opacity 0.8s ease;
}
.overture-head .os-draw {
  opacity: 0;
}
.overture-head .os-fill {
  opacity: 1;
  transition: opacity 0.8s ease;
}
.overture-head.drawn .os-draw {
  opacity: 1;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: otDraw 2s ease forwards;
}
.overture-head.drawn .os-fill {
  opacity: 0;
}
.overture-head.filled .os-fill {
  opacity: 1;
}
.overture-head.filled .os-draw {
  opacity: 0.15;
  transition: opacity 0.8s ease;
}
@keyframes otDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ot-draw { stroke-dashoffset: 0; animation: none; }
  .ot-fill { opacity: 1; }
}

/* CAD cursor: the visitor becomes the drafter */
.cad-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.cad-active .cad-cursor { opacity: 1; }
.cad-h, .cad-v {
  position: absolute;
  background: currentColor;
  opacity: 0.35;
}
.cad-h { left: 0; right: 0; height: 1px; top: 0; }
.cad-v { top: 0; bottom: 0; width: 1px; left: 0; }
.cad-readout {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
  transform: translate(12px, 12px);
}
/* Hide CAD layers on touch devices — no cursor to track */
@media (hover: none), (pointer: coarse) {
  .cad-readout, .cad-h, .cad-v, .cad-dot { display: none !important; }
}
.cad-dot {
  position: absolute;
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
@media (hover: none), (pointer: coarse) {
  .cad-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cad-cursor { display: none; }
}

/* ==========================================================================
   EDIFICE — Blueprint / CAD Grid Inspector
   ========================================================================== */
:root {
  --bp-cyan: rgba(56, 189, 248, 0.75);
  --bp-cyan-line: rgba(56, 189, 248, 0.16);
  --bp-cyan-fill: rgba(56, 189, 248, 0.03);
  --bp-amber: rgba(251, 191, 36, 0.92);
}

/* Header Nav Toggle Pill */
.bp-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bp-toggle kbd {
  font-family: inherit;
  font-size: 0.625rem;
  opacity: 0.6;
  border: 1px solid currentColor;
  padding: 1px 3px;
}

.bp-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.bp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

html[data-blueprint="true"] .bp-toggle {
  border-color: var(--bp-cyan);
  color: #38bdf8;
}

html[data-blueprint="true"] .bp-dot {
  opacity: 1;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* Fixed Stage Overlay (z-index: 40 stays underneath header & mobile drawer) */
.bp-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
}

html[data-blueprint="true"] .bp-stage {
  opacity: 1;
}

/* Auto-hide blueprint overlay if mobile menu dialog is open */
body:has([role="dialog"][aria-hidden="false"]) .bp-stage {
  opacity: 0 !important;
}

.bp-grid-cols {
  width: 100%;
  max-width: var(--container-max, 1360px);
  height: 100%;
  margin: 0 auto;
  border-inline: 1px dashed var(--bp-cyan-line);
  background-image: repeating-linear-gradient(
    to right,
    var(--bp-cyan-fill) 0,
    var(--bp-cyan-fill) calc((100% - (11 * 24px)) / 12),
    transparent calc((100% - (11 * 24px)) / 12),
    transparent calc(((100% - (11 * 24px)) / 12) + 24px)
  );
}

/* Section-Level Structural Hairlines Only (No text clutter) */
html[data-blueprint="true"] main > section,
html[data-blueprint="true"] section[aria-label="Arrival"] {
  position: relative;
  outline: 1px dashed var(--bp-cyan-line);
  outline-offset: -1px;
}

html[data-blueprint="true"] [data-bp-sec]::after {
  content: attr(data-bp-sec);
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bp-cyan);
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--bp-cyan-line);
  padding: 2px 6px;
  pointer-events: none;
  z-index: 5;
}

/* Single Live Hover CAD Reticule (Handles all h1/h2/h3/li/a telemetry) */
.bp-reticule {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 1px solid var(--bp-amber);
  background: rgba(251, 191, 36, 0.025);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
}

.bp-reticule.is-visible {
  opacity: 1;
}

.bp-reticule-meta {
  position: absolute;
  top: -19px;
  left: -1px;
  background: var(--bp-amber);
  color: #09090b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  white-space: nowrap;
}

/* Flip label inside box if element is near the top viewport edge */
.bp-reticule[data-flip="true"] .bp-reticule-meta {
  top: 0;
}

@media (max-width: 768px) {
  .bp-toggle {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .bp-reticule {
    display: none !important;
  }
}

/* ---------- FAQ accordion (site-wide component; EDIFICE loads its own CSS) ---------- */
.acc { border-bottom: 1px solid var(--hairline); }
.acc__btn {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: 16px 0; font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink);
}
.acc__icon { flex: none; font-size: 20px; font-weight: 400; color: var(--green); }
.acc__panel { padding: 0 0 24px; }
.acc__panel[hidden] { display: none; }
