/* ==========================================================================
   Forma Consulting - shared elevated system (subpages)
   Derived from the landing design-of-record (index-elevated.css).
   Palette locked: Navy #0E2A47 / Off White #F4F1EC / White / Gold #C9A96E /
   Slate Teal #47A89A. Fraunces = human voice. Archivo = working voice.
   ========================================================================== */

/* ---------- Fonts ----------
   Fraunces + Archivo load via the Google Fonts <link> in each page head. */

/* ---------- Tokens (identical to the landing) ---------- */
:root {
  --navy: #0E2A47;
  --navy-deep: #0A2038;
  --navy-abyss: #071624;
  --navy-raise: #143352;
  --offwhite: #F4F1EC;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --gold-press: #B8975C;
  --teal: #47A89A;
  --hairline-light: rgba(14, 42, 71, 0.14);
  --hairline-dark: rgba(244, 241, 236, 0.14);
  --ink: var(--navy);
  --ink-soft: rgba(14, 42, 71, 0.9);
  --paper-ink: rgba(244, 241, 236, 0.95);
  --paper-dim: rgba(244, 241, 236, 0.82);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', ui-monospace, monospace;
  --shell: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

[id] { scroll-margin-top: 84px; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: clamp(22px, 5vw, 64px); padding-right: clamp(22px, 5vw, 64px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* ---------- Film grain (whole page, barely-there) ---------- */
body::after {
  content: ""; position: fixed; inset: -60px; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* ---------- Type voices ---------- */
h1, h2, h3 { line-height: 1.08; }
h1, h2, .sec-title, .closer-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.012em; }
/* Subpages carry no italic accents; the landing hero holds the site's one signature italic. */
h1 em, h2 em, h3 em { font-style: normal; font-weight: 800; }

.sec-title { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 21ch; }
.sec-sub { max-width: 52ch; color: var(--ink-soft); margin-top: 14px; }
.sec-head { margin-bottom: clamp(52px, 7vw, 96px); }
.sec-head-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.sec-aside { color: var(--ink-soft); font-size: 1rem; max-width: 38ch; justify-self: end; padding-bottom: 6px; }

/* Section seal: the Forma kicker lockup. One device, everywhere.
   A gold square set on point (the journey's station mark, adopted site-wide),
   a spaced label, and a hairline tail that draws when the section arrives. */
.slab {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 22px;
}
.slab-sq { display: none; }
.slab::after {
  content: ""; width: 34px; height: 1px; flex: none;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.7), rgba(201, 169, 110, 0));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.8s var(--ease) 0.4s;
}
.slab.rv-in .slab-sq::after, .rv-in .slab-sq::after, html.no-js .slab-sq::after { transform: scale(1); }
.slab.rv-in::after, .rv-in .slab::after, html.no-js .slab::after { transform: scaleX(1); }
.slab-dark { color: var(--paper-dim); }

/* ---------- Buttons + links ---------- */
/* The primary action: one clean gold plate. Confident type, a quiet inner
   bevel for tactility, a crisp darken on hover. The button is the only
   soft-cornered object on the site: everything else is read, this is pressed. */
.btn-gold {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; line-height: 1;
  letter-spacing: 0.015em; white-space: nowrap;
  color: var(--navy);
  background-color: var(--gold);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%, rgba(7, 22, 36, 0.07));
  padding: 16px 30px; border: 0; border-radius: 7px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 24px -10px rgba(7, 22, 36, 0.5);
  transition: background-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
  will-change: transform;
}
.btn-gold:hover, .btn-gold:focus-visible {
  background-color: var(--gold-press);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 30px -10px rgba(7, 22, 36, 0.55);
}
.btn-gold:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px -8px rgba(7, 22, 36, 0.5); }
.btn-nav { padding: 12px 22px; font-size: 0.9rem; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px -8px rgba(7, 22, 36, 0.4); }
.btn-lg { padding: 19px 38px; font-size: 1.05rem; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 14px 32px -12px rgba(7, 22, 36, 0.55); }

.link-quiet {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 600; font-size: 0.97rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}
.link-quiet:hover { background-size: 100% 1px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow::after { content: "\2192"; font-weight: 400; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--teal); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow-dark { color: var(--offwhite); }
.link-arrow-dark:hover { color: var(--gold); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.cta-row .link-quiet { color: var(--paper-ink); }
.cta-row .link-quiet:hover { color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 22, 36, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(244, 241, 236, 0.08);
}
/* Reading progress: the landing's gold hairline along the nav's bottom edge.
   State, not decoration, so it stays under reduced motion; it only appears
   once the page has actually moved. */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.75), var(--gold));
  transform: scaleX(var(--sp, 0)); transform-origin: left center;
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled::after { opacity: 1; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; color: var(--offwhite); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 42px); }
.nav-links a {
  font-size: 0.93rem; font-weight: 500; color: var(--paper-ink); padding: 6px 0;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left calc(100% - 2px);
  transition: color 0.25s, background-size 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); background-size: 100% 1px; }
.nav-links a[aria-current="page"] { color: var(--white); background-size: 100% 1px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--navy-abyss);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px clamp(24px, 8vw, 64px) 48px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.2rem); color: var(--offwhite); line-height: 1.35;
  transform: translateY(24px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.25s;
}
.menu nav a:hover { color: var(--gold); }
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(1) { transition-delay: 0.06s; }
.menu.is-open nav a:nth-child(2) { transition-delay: 0.12s; }
.menu.is-open nav a:nth-child(3) { transition-delay: 0.18s; }
.menu.is-open nav a:nth-child(4) { transition-delay: 0.24s; }
.menu.is-open nav a:nth-child(5) { transition-delay: 0.3s; }
.menu.is-open nav a:nth-child(6) { transition-delay: 0.36s; }
.menu-foot { color: var(--paper-dim); font-size: 0.85rem; letter-spacing: 0.06em; }

/* ==========================================================================
   PAGE HERO - atmospheric navy, blueprint hairline grid, kinetic Fraunces
   ========================================================================== */
.page-hero {
  position: relative;
  background: var(--navy);
  padding: 180px 0 clamp(88px, 10vw, 144px);
  overflow: hidden;
  isolation: isolate;
}

/* Blueprint texture: one fine hairline grid, barely-there, dark sections only */
.blueprint {
  background-image:
    linear-gradient(rgba(244, 241, 236, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 236, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* The landing's living streams, returned on every page: a quiet river of
   work flowing toward the page's one gold action. Canvas sits under the
   atmosphere pools, which pool depth on top of it. */
.ph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Atmosphere: pooled depth in the same navy family, plus vignette */
.hero-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-atmos::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 90% at 82% 8%, rgba(7, 22, 36, 0) 40%, rgba(7, 22, 36, 0.55) 100%),
    radial-gradient(70% 60% at 18% 78%, rgba(20, 51, 82, 0.4) 0%, rgba(20, 51, 82, 0) 60%),
    radial-gradient(46% 40% at 74% 62%, rgba(71, 168, 154, 0.06) 0%, rgba(71, 168, 154, 0) 65%);
}
.hero-atmos::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 36, 0.5) 0%, rgba(7, 22, 36, 0) 26%, rgba(7, 22, 36, 0) 78%, rgba(7, 22, 36, 0.45) 100%);
}
.page-hero > .shell { position: relative; z-index: 1; }

.page-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  color: var(--offwhite);
  line-height: 1.05;
  letter-spacing: -0.016em;
  margin-bottom: 30px;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.ht-word { display: inline-block; position: relative; }
html.js .ht-word {
  transform: translateY(122%) rotate(1.2deg); transform-origin: left bottom;
  transition: transform 1.05s var(--ease-slow) var(--hd, 0.25s);
}
html.js.is-live .ht-word { transform: none; }
/* The landing's pen, on every page: the same gold rule draws itself under
   the headline's key words once they land. An underline here, not a strike;
   the strike belongs to the landing's "by hand." alone. Set straight and
   below the descender line so no y or g is ever crossed. */
.ht-rule {
  position: absolute; left: 0; bottom: -0.14em; height: 0.04em; min-height: 2px; width: 101%;
  background: var(--gold); opacity: 0.95;
  transform: scaleX(0); transform-origin: left center;
}
html.js .ht-rule { transition: transform 0.9s var(--ease) var(--hr, 1.15s); }
html.js.is-live .ht-rule, html.no-js .ht-rule { transform: scaleX(1); }

.page-sub { max-width: 54ch; color: var(--paper-ink); font-size: clamp(1.02rem, 1.35vw, 1.16rem); margin-bottom: 44px; }
html.js .page-hero .slab,
html.js .page-sub,
html.js .hero-cta { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease) 0.7s, transform 0.9s var(--ease) 0.7s; }
html.js .page-hero .slab { transform: none; transition-delay: 0.15s; }
html.js .hero-cta { transition-delay: 0.9s; }
html.js.is-live .page-hero .slab,
html.js.is-live .page-sub,
html.js.is-live .hero-cta { opacity: 1; transform: none; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.hero-cta .link-quiet { color: var(--paper-ink); }
.hero-cta .link-quiet:hover { color: var(--white); }

/* Hero side column (asymmetric stage) rises with the copy */
html.js .hero-stage { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) 1.05s, transform 1s var(--ease) 1.05s; }
html.js.is-live .hero-stage { opacity: 1; transform: none; }

/* ==========================================================================
   Shared devices: stamps, annotation rows, sparkline, markers, mascot
   ========================================================================== */

/* The stamp: a precise verdict badge. Tinted fill, no border; the type does the talking. */
.stamp {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(201, 169, 110, 0.16); color: var(--gold-press);
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}
.stamp-teal { background: rgba(71, 168, 154, 0.14); color: var(--teal); }
.stamp-note { background: rgba(14, 42, 71, 0.06); color: var(--ink-soft); }
.on-dark .stamp, .stamp-dark { color: var(--gold); background: rgba(201, 169, 110, 0.18); }
.on-dark .stamp-teal { color: var(--teal); background: rgba(71, 168, 154, 0.16); }
.on-dark .stamp-note, .stamp-note-dark { color: var(--paper-dim); background: rgba(244, 241, 236, 0.1); }

/* Dash marker: a short rule, the annotation glyph */
.di { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: var(--teal); flex: none; vertical-align: middle; }
.di-gold { background: var(--gold); }
.di-hollow { background: rgba(14, 42, 71, 0.35); }
.on-dark .di-hollow { background: rgba(244, 241, 236, 0.4); }

/* Annotation ledger rows (the landing's vignette language) */
.anno { width: 100%; }
.anno-row {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 0.88rem; color: var(--ink-soft);
  padding: 10px 0; border-bottom: 1px solid var(--hairline-light);
}
.anno-t { font-size: 0.75rem; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; flex: none; min-width: 52px; }
.anno-row b { font-weight: 700; color: var(--ink); }
.anno-state {
  margin-left: auto; flex: none; text-align: right;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); line-height: 1.5;
}
.anno-state-dim { color: rgba(14, 42, 71, 0.7); }
.on-dark .anno-row { color: var(--paper-ink); border-bottom-color: var(--hairline-dark); }
.on-dark .anno-row b { color: var(--offwhite); }
.on-dark .anno-state-dim { color: var(--paper-dim); }
.anno-cap { margin-top: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.on-dark .anno-cap { color: var(--paper-dim); }

/* Sparkline (the landing's reporter vignette) */
.vg-spark { width: 100%; height: auto; display: block; }
.vg-spark-line { stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
html.js .vg-spark-line { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.4s var(--ease) 0.3s; }
html.js .rv-in .vg-spark-line, html.no-js .vg-spark-line { stroke-dashoffset: 0; }
.vg-spark-peak { fill: var(--gold); }
html.js .vg-spark-peak { opacity: 0; transform: scale(0.3); transform-origin: center; transform-box: fill-box; transition: opacity 0.4s var(--ease) 1.5s, transform 0.4s var(--ease) 1.5s; }
html.js .rv-in .vg-spark-peak, html.no-js .vg-spark-peak { opacity: 1; transform: scale(1); }

/* Numeral ledger (the landing's results voice) */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger-item { padding: 10px 28px 4px 28px; border-left: 1px solid var(--hairline-light); }
.ledger-item:first-child { border-left: 0; padding-left: 0; }
.ledger-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ledger-unit { font-size: 0.55em; font-weight: 700; }
.ledger-label { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); max-width: 20ch; }

/* Fine caption under a figure */
.fig-note {
  font-size: 0.8125rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.fig-note::before { content: ""; width: 18px; height: 1px; background: var(--teal); flex: none; }
.on-dark .fig-note, .fig-note-dark { color: var(--paper-dim); }

/* Sample-data disclaimer, paired under a .fig-note on a demo panel */
.fig-fine { margin-top: -4px; font-size: 0.75rem; color: var(--ink-soft); opacity: 0.9; }
.on-dark .fig-fine { color: var(--paper-dim); }

/* Mascot */
.mascot { width: 40px; height: 42px; display: block; }
.mascot-sm { width: 22px; height: 23px; }
.mascot-eyes { transform-origin: 32px 30px; animation: blink 4.6s infinite; }
@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96.5% { transform: scaleY(0.12); }
}

/* White sheet: the landing's letter, made structural */
.sheet {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 2px rgba(4, 12, 22, 0.18), 0 24px 56px rgba(4, 12, 22, 0.32);
}

/* Navy panel: the landing's premium block */
.panel-navy { background: var(--navy); color: var(--paper-ink); }
.panel-navy h2, .panel-navy h3 { color: var(--offwhite); }

/* ---------- The summon: the site's shared CTA plate ---------- */
/* A navy call sheet cut with the button's same corner: copy on the left,
   one gold action on the right. The gold rule entering from the top left
   is the journey's track arriving at a decision. */
.summon {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.7fr) auto;
  gap: 28px clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 5.5vw, 68px) clamp(28px, 4.5vw, 64px);
  color: var(--paper-ink);
}
.summon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--navy);
  background-image:
    radial-gradient(90% 130% at 85% -20%, rgba(20, 51, 82, 0.9) 0%, rgba(20, 51, 82, 0) 55%),
    linear-gradient(rgba(244, 241, 236, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 236, 0.03) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  filter: drop-shadow(0 40px 80px rgba(4, 12, 22, 0.4));
}
.summon .slab { margin-bottom: 14px; }
.summon h2, .summon h3 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.012em;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15;
  color: var(--offwhite); margin-bottom: 10px; max-width: 24ch;
}
.summon-copy p:not(.slab) { color: var(--paper-dim); font-size: 0.98rem; max-width: 54ch; }
.summon > .btn-gold { justify-self: end; }

@media (max-width: 780px) {
  .summon { grid-template-columns: 1fr; }
  .summon > .btn-gold { justify-self: start; }
}

/* ==========================================================================
   CLOSER + FOOTER (identical voice to the landing)
   ========================================================================== */
.closer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(20, 51, 82, 0.5) 0%, rgba(20, 51, 82, 0) 60%),
    var(--navy);
  color: var(--paper-ink);
  padding-top: clamp(120px, 14vw, 200px);
}
/* The river returns: every stream on the site ends at this button */
.closer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.closer-inner, .closer .footer { position: relative; }
.closer-inner { text-align: center; max-width: 860px; margin: 0 auto; padding-bottom: clamp(104px, 12vw, 170px); }
.closer-mascot { display: inline-block; margin-bottom: 30px; }
.closer-mascot .mascot { width: 52px; height: 54px; display: block; margin: 0 auto; }
.closer-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--offwhite); max-width: 17ch; margin: 0 auto 24px; }
.closer-sub { max-width: 46ch; margin: 0 auto 42px; font-size: 1.1rem; }
.closer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.closer-cta .link-quiet { color: var(--paper-ink); }
.closer-cta .link-quiet:hover { color: var(--white); }

.footer { border-top: 1px solid var(--hairline-dark); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.62fr) minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 44px clamp(32px, 5vw, 88px);
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(44px, 5vw, 64px);
  align-items: start;
}
.footer-slogan {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.35;
  color: var(--offwhite); margin-top: 22px; max-width: 20ch;
}
.footer-slogan em { font-style: inherit; color: var(--gold); }
.footer-line { margin-top: 14px; font-size: 0.9rem; color: var(--paper-dim); line-height: 1.7; max-width: 36ch; }
.footer-col-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 241, 236, 0.72); margin-bottom: 14px;
}
.footer-col-links a {
  display: block; width: fit-content;
  padding: 4px 0; font-size: 0.93rem; color: var(--paper-dim);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left calc(100% - 3px);
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.footer-col-links a:hover { color: var(--offwhite); background-size: 100% 1px; }
.footer-mail {
  display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--paper-ink);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left calc(100% - 1px);
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.footer-mail:hover { color: var(--offwhite); background-size: 100% 1px; }
.footer-place { margin-top: 10px; font-size: 0.88rem; color: var(--paper-dim); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--hairline-dark); color: var(--paper-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.footer-social a:hover, .footer-social a:focus-visible { color: var(--navy); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; display: block; }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  border-top: 1px solid var(--hairline-dark);
  padding-top: 24px; padding-bottom: 44px;
  font-size: 0.8rem; color: rgba(244, 241, 236, 0.72);
}
.footer-top-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-dim); transition: color 0.2s;
}
.footer-top-link::after { content: "\2191"; transition: transform 0.25s var(--ease); }
.footer-top-link:hover { color: var(--offwhite); }
.footer-top-link:hover::after { transform: translateY(-3px); }

/* ==========================================================================
   Reveal system
   ========================================================================== */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.85s var(--ease) var(--d, 0s), transform 0.85s var(--ease) var(--d, 0s); }
html.js .rv-in { opacity: 1; transform: none; }

/* Staggered container (the landing's rvs): the wrapper holds its ground, the
   children arrive in sequence, so grouped content never pops in as one slab */
html.js .rvs > * { opacity: 0; transform: translateY(20px); transition: opacity 0.85s var(--ease-slow), transform 0.85s var(--ease-slow); }
html.js .rvs.rv-in > * { opacity: 1; transform: none; }
html.js .rvs.rv-in > *:nth-child(2) { transition-delay: 0.09s; }
html.js .rvs.rv-in > *:nth-child(3) { transition-delay: 0.18s; }
html.js .rvs.rv-in > *:nth-child(4) { transition-delay: 0.27s; }
html.js .rvs.rv-in > *:nth-child(5) { transition-delay: 0.36s; }
html.js .rvs.rv-in > *:nth-child(6) { transition-delay: 0.45s; }
html.js .rvs.rv-in > *:nth-child(7) { transition-delay: 0.54s; }
html.js .rvs.rv-in > *:nth-child(8) { transition-delay: 0.63s; }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 1080px) {
  .sec-head-split { grid-template-columns: 1fr; align-items: start; }
  .sec-aside { justify-self: start; }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ledger { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .ledger-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ledger-item:nth-child(even) { padding-left: 22px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone: ledger rows stop sharing a line. Time and state badge sit on the
   top line, the row's main text takes the full width below. */
@media (max-width: 600px) {
  .anno-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px; align-items: center; padding: 12px 0 14px;
  }
  .anno-t { grid-row: 1; grid-column: 1; min-width: 0; }
  .anno-row .anno-state, .anno-row .stamp { grid-row: 1; grid-column: 2; }
  .anno-main { grid-row: 2; grid-column: 1 / -1; }
}

/* Nav collapses a step earlier than the rest: four links need the room */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 8px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--offwhite); transition: transform 0.35s var(--ease), opacity 0.3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .page-hero { padding-top: 140px; }
  .page-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .closer-cta { gap: 20px; }
}

/* ==========================================================================
   Reduced motion: complete, still composition
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }

  html.js .rv, html.js .rvs > *, html.js .page-hero .slab, html.js .page-sub, html.js .hero-cta, html.js .hero-stage { opacity: 1; transform: none; }
  .slab-sq::after { transform: scale(1) !important; }
  .slab::after { transform: scaleX(1) !important; }
  html.js .ht-word { transform: none; }
  html.js .ht-rule { transform: scaleX(1); }
  html.js .vg-spark-line { stroke-dashoffset: 0; }
  html.js .vg-spark-peak { opacity: 1; transform: none; }
}

/* ==========================================================================
   Editorial index (approved de-box treatment, 2026-07)
   A numbered vertical list: gold Fraunces numerals, Fraunces item names,
   Archivo sublines. Rows split by hairlines under a 2px ink rule.
   No borders, no background boxes, no chips.
   ========================================================================== */
.edx { list-style: none; margin: 0; padding: 0; }
.edx-lab {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(14, 42, 71, 0.55); padding-bottom: 10px;
  border-bottom: 2px solid var(--ink); margin: 0;
}
.edx-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline-light);
}
.edx-row:last-child { border-bottom: 0; }
.edx-n {
  font-family: var(--font-display); font-weight: 500; font-size: 1.375rem;
  color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums;
}
.edx-name { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.3px; line-height: 1.2; color: var(--ink); }
.edx-sub { font-family: var(--font-body); font-size: 0.845rem; font-weight: 500; color: rgba(14, 42, 71, 0.62); margin-top: 3px; line-height: 1.5; }
/* Dark (navy) variant: gold numerals hold, text goes paper */
.edx-dark .edx-lab { color: var(--paper-dim); border-bottom-color: var(--offwhite); }
.edx-dark .edx-row { border-bottom-color: var(--hairline-dark); }
.edx-dark .edx-name { color: var(--offwhite); }
.edx-dark .edx-sub { color: var(--paper-dim); }
