/* ==========================================================================
   AegisArc Advisory — "Midnight" (dark modern theme, card components)
   css/styles.css
   Order (DESIGN_SPEC §9): tokens · reset · typography · links/buttons/focus ·
   rules/cards/tiles/pills/drop-cap/pull-quote · grid + marginalia · nav + dialog ·
   hero + gantry · chapter layouts · bands + starfield + closing/runway ·
   footer · flight layer · reveal gates · breakpoints · reduced motion · print
   Notes: tokens live on :root AND body (artifact host). Every section paints
   its own ground (starfield tile + colour). Sections never receive a z-index.
   Gold is the only accent; the blue exists solely as a faint glow inside the
   gradient meshes. Cards never nest cards. The flight rails, the Ch.02
   channel, the Ch.03 rule and the Band B orbit lane stay outside the cards.
   Theme spec: tools/THEME_MIDNIGHT.md (the folio theme is archived in
   tools/folio-theme/).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root, body {
  /* grounds */
  --bg-0: #0A1020;            /* page ground; chapters marked data-ground="ivory" */
  --bg-1: #0F172A;            /* alternate chapters; data-ground="paper" */
  --bg-2: #131C33;            /* interludes (.band) and elevated surfaces; data-ground="navy" */
  --panel:        rgba(255,255,255,.04);
  --panel-hover:  rgba(255,255,255,.065);
  --line:         rgba(255,255,255,.08);
  --line-strong:  rgba(255,255,255,.16);

  /* text (contrast on #0A1020: text 17:1, text-2 10:1, text-3 5.6:1, gold 7.5:1) */
  --text:   #F3F6FB;
  --text-2: #B7C2D0;
  --text-3: #8391A5;

  /* accent — gold is the ONLY accent; the blue appears solely as a faint glow in gradient meshes */
  --gold:        #C9A84C;
  --gold-bright: #E4C76B;
  --gold-ink:    #C9A84C;
  --gold-soft:   rgba(201,168,76,.28);
  --gold-tint:   rgba(201,168,76,.10);
  --gold-glow:   rgba(201,168,76,.35);
  --blue-glow:   rgba(70,120,255,.16);
  --navy:        #1A2535;     /* brand mark inner shield only (and print text) */
  --hair:        var(--line);
  --hair-strong: var(--line-strong);
  --nav-bg:      rgba(10,16,32,.92);   /* opaque enough to read without a backdrop blur (the blur made every scroll frame re-composite the sticky nav in Safari) */
  --shuttle-fill: var(--bg-0);

  /* type */
  --f-display: "Sora", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-ui:      var(--f-body);
  --f-mono:    "IBM Plex Mono", Menlo, Consolas, monospace;

  --t-display: clamp(44px, 6.5vw, 96px);   /* Sora 600, lh 1.02, ls -.03em */
  --t-h2:      clamp(32px, 4vw, 56px);     /* Sora 600, lh 1.06, ls -.02em */
  --t-h3:      clamp(20px, 1.8vw, 24px);   /* Sora 500, lh 1.3 */
  --t-lead:    clamp(19px, 1.7vw, 24px);   /* Manrope 400, lh 1.5, --text */
  --t-quote:   clamp(20px, 1.6vw, 24px);   /* Manrope 500, lh 1.4 */
  --t-band:    clamp(30px, 3.6vw, 52px);   /* Sora 500, lh 1.15 */
  --t-body:    17px;                       /* Manrope 400, lh 1.65, --text-2; 16px < 768 */
  --t-small:   15px;
  --t-eyebrow: 12px;                       /* Manrope 600, uppercase, ls .16em, --text-3 (gold as a section label) */
  --t-eyebrow-ls: .16em;
  --t-mono:    13px;
  --t-numeral: clamp(88px, 10vw, 140px);
  --t-stat:    clamp(56px, 6vw, 88px);

  /* shape */
  --r-card: 16px; --r-tile: 10px; --r-btn: 10px; --r-pill: 999px;
  --shadow-card: 0 20px 50px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px var(--gold-soft), 0 12px 40px rgba(201,168,76,.18);

  /* layout (read by js/shuttle.js and the breakpoints — names must not change) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section-pad: clamp(72px, 12vw, 176px);
  --gutter: clamp(28px, 7vw, 112px);
  --gutter-l: var(--gutter);           /* 56px binder gutter < 768 */
  --gutter-r: var(--gutter);
  --container: 1360px;
  --col-gap: 32px;
  --nav-h: 64px;
  --rail-gap: 48px;
  --rail-left: 0px; --rail-right: 0px; /* written by JS */
  --rail-x: max(var(--rail-left), 30px);
  --shuttle-w: 84px;
  --channel: 144px;

  --e-out:   cubic-bezier(.2,.7,.2,1);
  --e-inout: cubic-bezier(.65,0,.35,1);
  --d-fast: 160ms; --d-base: 240ms; --d-slow: 320ms;

  /* atmosphere: a 480×480 star tile (15 faint white points) and the gold/blue gradient mesh */
  --stars: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><g fill='%23ffffff'><circle cx='23' cy='41' r='.8' opacity='.28'/><circle cx='131' cy='17' r='1.1' opacity='.22'/><circle cx='212' cy='96' r='.7' opacity='.35'/><circle cx='318' cy='58' r='.9' opacity='.2'/><circle cx='432' cy='29' r='.6' opacity='.3'/><circle cx='67' cy='173' r='1' opacity='.18'/><circle cx='389' cy='151' r='.8' opacity='.33'/><circle cx='254' cy='214' r='.6' opacity='.25'/><circle cx='160' cy='262' r='.9' opacity='.3'/><circle cx='456' cy='249' r='1.1' opacity='.2'/><circle cx='36' cy='322' r='.7' opacity='.35'/><circle cx='305' cy='341' r='.8' opacity='.22'/><circle cx='118' cy='413' r='1' opacity='.27'/><circle cx='402' cy='437' r='.6' opacity='.32'/><circle cx='229' cy='458' r='.9' opacity='.19'/></g></svg>");
  --stars-tile: var(--stars) repeat 0 0 / 480px 480px;
  /* the mesh runs a touch louder than the surface tints (--gold-tint stays .10 for pills/tiles) so the corner glows register */
  --mesh: radial-gradient(70% 55% at 82% -5%, rgba(201,168,76,.16), transparent 62%),
          radial-gradient(55% 50% at -5% 105%, rgba(70,120,255,.20), transparent 62%);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--stars-tile), var(--bg-0);
  color: var(--text-2);
  font: 400 var(--t-body) / 1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
th { text-align: left; font-weight: inherit; }
a { color: inherit; }
em { font-style: italic; }
i { font-style: normal; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 30;
  padding: 12px 18px; background: var(--gold); color: var(--bg-0);
  border-radius: var(--r-btn);
  font: 600 13px / 1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold); outline-offset: 3px; }

#page { position: relative; background: var(--bg-0); overflow-x: clip; }
#main { display: block; }
section { scroll-margin-top: var(--nav-h); }

/* Grounds — every section paints its own background (same star tile everywhere; bands add the mesh) */
[data-ground="ivory"] { background: var(--stars-tile), var(--bg-0); color: var(--text-2); }
[data-ground="paper"] { background: var(--stars-tile), var(--bg-1); color: var(--text-2); }
[data-ground="navy"]  { background: var(--mesh), var(--stars-tile), var(--bg-2); color: var(--text-2); }
#main > section + section, .footer { border-top: 1px solid var(--line); }   /* soft seams, no colour jumps */

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: var(--text); }

.eyebrow {
  font: 600 var(--t-eyebrow) / 1.4 var(--f-ui);
  letter-spacing: var(--t-eyebrow-ls);
  text-transform: uppercase;
  color: var(--text-3);
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.lead {
  font: 400 var(--t-lead) / 1.5 var(--f-body);
  color: var(--text);
  max-width: 760px;
}
.small { font-size: var(--t-small); line-height: 1.5; }

.roman {
  display: block;
  font: 400 28px / 1 var(--f-display);
  color: var(--gold);
  margin-bottom: 18px;
}

.dot { color: var(--gold); margin: 0 .6em; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   4. LINKS · BUTTONS · FOCUS
   -------------------------------------------------------------------------- */
.link, .contents__pause {
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left bottom / 0 1px;
  transition: background-size var(--d-slow) var(--e-out), color var(--d-base) var(--e-out);
}
.link:focus-visible, .contents__pause:focus-visible { background-size: 100% 1px; }
@media (hover: hover) {
  .link:hover, .contents__pause:hover { background-size: 100% 1px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  font: 600 13px / 1 var(--f-display);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-btn);
  cursor: pointer;
  transition: background-color 200ms var(--e-out), color 200ms var(--e-out), border-color 200ms var(--e-out), box-shadow 200ms var(--e-out);
}
.btn--primary { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }
.btn--outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.3); }   /* interactive ghost: ≥3:1 boundary (pills keep --line-strong) */
.btn--arrow span { color: var(--gold); }
.btn:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: var(--shadow-glow); }
  .btn--outline:hover { border-color: var(--gold); }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
section:focus { outline: none; }

/* --------------------------------------------------------------------------
   5. RULES · CARDS · TILES · PILLS · BADGE · CHIPS · DROP CAP · PULL-QUOTE
   -------------------------------------------------------------------------- */
/* chapter rule: a single 1px gold accent bar under the h2 (the [data-rule] draw still applies) */
.double-rule {
  display: block; width: 48px; height: 1px; margin-top: 28px;
  background: var(--gold);
  transform-origin: left center;
}
.rule-short { display: block; width: 48px; height: 1px; background: var(--gold); margin: 32px auto; }

/* Card pattern — the hover lift uses `translate` (not `transform`) so it composes with the GSAP reveal transform */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color var(--d-base) var(--e-out), background-color var(--d-base) var(--e-out), translate var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--gold-soft); background: var(--panel-hover); translate: 0 -2px; }
}
.card--glow { box-shadow: var(--shadow-glow); }
/* band cards sit above the flight layer: an opaque fill (the --panel wash of §2 would let the trail ghost through)
   so the shuttle reads as passing cleanly beneath the deck — a documented departure from THEME_MIDNIGHT §2 */
.band .card { background: #1D253A; }
@media (hover: hover) and (pointer: fine) { .band .card:hover { background: #232B42; } }

/* Icon tiles (40×40, gold stroke icon) */
.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  background: var(--gold-tint); border: 1px solid var(--gold-soft); border-radius: var(--r-tile);
  color: var(--gold);
}
.tile__icon { width: 20px; height: 20px; }

/* Pills (never interactive) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 12px / 1 var(--f-mono);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text-2);
  white-space: nowrap;
}
.pill__icon { width: 14px; height: 14px; flex: none; color: var(--gold); }

/* Badge (hero eyebrow) and chips (hero 01/02/03 stack) */
.badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 0;
  padding: 8px 16px 8px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text-3);
}
.badge__dot { flex: none; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.badge .dot { margin: 0 .55em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 10px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font: 600 12px / 1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text);
}
.chip__icon { width: 14px; height: 14px; flex: none; color: var(--gold); }

.drop-cap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 3.4em;
  line-height: .82;
  padding: .06em .12em 0 0;
  margin-top: .02em;
  color: var(--gold);
}

.pull-quote {
  position: relative;
  margin: 40px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--gold);
  max-width: 232px;
}
.pull-quote p {
  font: 500 clamp(19px, 1.5vw, 22px) / 1.4 var(--f-body);
  color: var(--text-2);
  letter-spacing: -.005em;
  text-wrap: pretty;
}
/* the 2-column marginalia is only ~120px wide at 1024–1279: a smaller quote so it does not set one word per line */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pull-quote { padding-left: 14px; }
  .pull-quote p { font-size: 16px; line-height: 1.45; }
}
.chapter__title, .register__name, .pillar__title, .quad__title, .index__title, .expertise__title, .phase__title { text-wrap: balance; }

/* --------------------------------------------------------------------------
   6. GRID + MARGINALIA
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

.chapter { position: relative; padding-block: var(--section-pad); }
.chapter__grid { row-gap: 0; align-items: start; }
.chapter__grid > .wp { grid-column: 1 / -1; }

.marginalia {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: start;
  height: 0;              /* never drives row heights; content overflows visibly into the rail */
  overflow: visible;
  position: relative;
}
.numeral {
  display: block;
  font: 200 var(--t-numeral) / .8 var(--f-display);
  color: rgba(255,255,255,.08);
  letter-spacing: -.04em;
  margin-left: -.04em;
  user-select: none;
  white-space: nowrap;
}
body.js-anim .numeral { will-change: transform; }   /* scrubbed parallax (js/reveals.js): its own compositor layer */
.side-note { margin-top: 20px; max-width: 190px; color: var(--text-3); }
.chapter[data-rail="left"] .side-note, .chapter[data-rail="center"] .side-note { padding-right: 24px; }

.chapter__head { grid-column: 3 / 11; }
.chapter__eyebrow { margin-bottom: 18px; color: var(--gold); }
.chapter__title {
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--text);
}
.chapter__title .neq { color: var(--gold); font-weight: 400; }

.chapter__body { grid-column: 3 / 11; margin-top: 48px; }

/* --------------------------------------------------------------------------
   7. NAV + CONTENTS DIALOG
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  height: var(--nav-h);
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out);
}
.nav.is-scrolled, .nav.is-dark {
  background: var(--nav-bg); border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); width: 148px; flex: none; }
.logo__mark { width: 30px; height: 37px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word { font: 600 17px / 1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: currentColor; }
.logo__sub { font: 600 9px / 1 var(--f-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--text-3); margin-top: 5px; }

.nav__centre { display: flex; align-items: center; gap: 28px; min-width: 0; }
.nav__running {
  font: 500 14px / 1.2 var(--f-body);
  color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 150ms var(--e-out);
}
.nav__contents {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px;
  border-radius: var(--r-btn);
  font: 600 12px / 1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase;
  color: inherit;
  transition: color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out);
}
.icon { width: 20px; height: 20px; flex: none; }

.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__pause {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  color: inherit;
  border: 1px solid transparent; border-radius: var(--r-btn);
  transition: border-color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out);
}
.nav__pause .icon--play { display: none; }
.nav__pause[aria-pressed="true"] .icon--pause { display: none; }
.nav__pause[aria-pressed="true"] .icon--play { display: block; }
.nav__pause:disabled { opacity: .4; }
@media (hover: hover) {
  .nav__pause:hover:not(:disabled) { border-color: var(--gold-soft); background: var(--panel); }
  .nav__contents:hover { color: var(--gold); background: var(--panel); }
}
.nav__cta { padding: 0 18px; min-height: 44px; font-size: 12px; }   /* 44px tap target, level with the pause/contents buttons */
.nav__cta-short { display: none; }
#navProgress {
  display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}

/* Contents dialog: full-screen sheet, rows as list items with a hover wash, hairline dividers */
.contents {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10,16,32,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text);
  overflow: auto;
}
.contents::backdrop { background: transparent; }
@keyframes contents-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.contents[open] { animation: contents-in 260ms var(--e-out); }
.contents__inner { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.contents__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.contents__head .eyebrow { color: var(--gold); }
.contents__close { width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--text); border: 1px solid transparent; border-radius: var(--r-btn); }
@media (hover: hover) { .contents__close:hover { border-color: var(--gold-soft); background: var(--panel); } }
.contents__list { display: grid; grid-template-columns: 1fr; }
.contents__list a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 12px;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-tile) var(--r-tile) 0 0;
  transition: background-color var(--d-fast) var(--e-out);
}
.contents__num { flex: none; width: 36px; font-size: 12px; color: var(--text-3); transition: color var(--d-fast); }
.contents__title { font: 500 clamp(18px, 2vw, 22px) / 1.25 var(--f-display); }
.contents__interlude .contents__title { font-weight: 400; color: var(--text-2); }
.contents__leader { flex: 1; min-width: 24px; }
.contents__folio { flex: none; font-size: 12px; color: var(--text-3); transition: color var(--d-fast); }
.contents__list a::after {
  content: "\2192";
  font: 400 18px / 1 var(--f-display);
  color: var(--gold);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
  flex: none; width: 18px;
}
@media (hover: hover) {
  .contents__list a:hover { background: var(--panel-hover); }
  .contents__list a:hover::after { opacity: 1; transform: none; }
  .contents__list a:hover .contents__title { color: var(--gold-bright); }
}
.contents__list a:focus-visible::after { opacity: 1; transform: none; }
.contents__list a[aria-current="true"] .contents__num,
.contents__list a[aria-current="true"] .contents__folio,
.contents__list a[aria-current="true"] .contents__title { color: var(--gold); }
.contents__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.contents__pause { font: 600 13px / 1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.contents__pause:disabled { opacity: .4; }
.contents__motion-note { color: var(--text-3); font-size: 12px; }

/* --------------------------------------------------------------------------
   8. HERO + GANTRY
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  background: var(--mesh), var(--stars-tile), var(--bg-0);
}
.hero__grid { flex: 1; width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding-block: 40px 32px; }
.hero__text { grid-column: 1 / 9; align-self: center; padding-top: 24px; }
.hero__eyebrow { margin-bottom: 36px; }
.hero__title {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--text);
}
.hero__title em { font-style: normal; color: var(--gold-bright); }
.hero__dek { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.hero__lede { font: 400 20px / 1.55 var(--f-body); color: var(--text-2); max-width: 46ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 16px; margin-top: 40px; }

/* Launch pad (desktop, under the gantry) and its mobile twin */
.pad { position: relative; width: 96px; height: 88px; display: flex; align-items: flex-end; justify-content: center; }
.pad__line { position: relative; display: block; width: 100%; height: 1px; background: var(--gold); }
.pad__dot {
  position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--gold); border: 1px solid var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.pad__dot:nth-child(1) { left: 0; }
.pad__dot:nth-child(2) { left: 50%; margin-left: -3px; }
.pad__dot:nth-child(3) { right: 0; }
.pad--mobile { display: none; }
body:not(.has-js) .pad { visibility: hidden; }

.gantry { grid-column: 10 / 13; position: relative; align-self: stretch; min-height: 64vh; }
.gantry__ticks {
  position: absolute; left: 0; right: 0;
  top: 4vh; bottom: 104px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.gantry__ticks::before { content: ""; position: absolute; top: 0; bottom: -100px; left: 50%; width: 1px; background: var(--gold); opacity: .7; }
.gantry__tick { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 50%; padding-right: 20px; height: 12px; }
.gantry__tick::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 1px; background: var(--gold); }
.gantry__tick .mono { font-size: 11px; color: var(--text-3); letter-spacing: .14em; }
.gantry__tick--top .mono { color: var(--gold); white-space: nowrap; }
.pad--gantry { position: absolute; bottom: 0; left: 50%; margin-left: -48px; }

.hero__issue-wrap { margin-top: auto; width: 100%; }
.hero__issue {
  display: flex; flex-wrap: wrap; align-items: baseline;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
}
.hero__issue .dot { margin: 0 .8em; }
.hero__eyebrow > span:not(.dot) { white-space: nowrap; } /* phrases stay whole; lines break at the middots */
.hero__issue > span:not(.dot) { white-space: nowrap; }

/* --------------------------------------------------------------------------
   9. CHAPTER LAYOUTS
   -------------------------------------------------------------------------- */

/* Ch.01 — pillars (three cards with icon tiles) */
.pillars {
  grid-column: 3 / -1; margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.pillar .tile { margin-bottom: 22px; }
.pillar__title { font: 500 20px / 1.3 var(--f-display); color: var(--text); margin-bottom: 10px; }
.pillar p { font-size: 16px; line-height: 1.6; }

/* Ch.02 — ledger: muted "have" panel · channel · highlighted "need" panel (the shuttle flies down the channel) */
.ledger-wrap { grid-column: 2 / -1; position: relative; margin-top: 64px; isolation: isolate; }
@media (min-width: 900px) { .ledger-wrap { margin-top: 112px; } } /* the plan comes down the margin beside the headline, then banks into the channel through whitespace */
.ledger__glyph {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  transform: translate(-50%, -52%);
  font: 300 260px / 1 var(--f-display);
  color: rgba(255,255,255,.06);
  pointer-events: none; user-select: none;
}
.ledger { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.ledger th, .ledger td { vertical-align: middle; }
.ledger__head { padding: 0 0 16px 24px; vertical-align: bottom; }
.ledger__head--have { width: 38%; }
.ledger__head--need { padding-left: 64px; }
.ledger__head--need .eyebrow { color: var(--gold); }
.ledger__channel { width: var(--channel); padding: 0; vertical-align: top; }
.ledger tbody .ledger__channel, .ledger thead .ledger__channel {
  background: linear-gradient(var(--line-strong), var(--line-strong)) center top / 1px 100% no-repeat;
}
.ledger__row td { height: 72px; }
.ledger__have {
  position: relative;
  padding: 18px 24px 18px 52px; font-size: 17px; color: var(--text-3);
  background: var(--panel);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.ledger__row:first-child .ledger__have { border-radius: var(--r-card) var(--r-card) 0 0; }
.ledger__row:last-child .ledger__have { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
.ledger__x { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; line-height: 1; }   /* hanging ✕: wrapped lines align */
.ledger__need {
  position: relative;
  padding: 18px 20px 18px 64px;
  font: 500 20px / 1.25 var(--f-display);
  color: var(--text);
  background: var(--gold-tint);
  border-top: 1px solid rgba(201,168,76,.16); border-left: 1px solid var(--gold-soft); border-right: 1px solid var(--gold-soft);
}
.ledger__row:first-child .ledger__need { border-top-color: var(--gold-soft); border-radius: var(--r-card) var(--r-card) 0 0; }
.ledger__row:last-child .ledger__need { border-bottom: 1px solid var(--gold-soft); border-radius: 0 0 var(--r-card) var(--r-card); }
@media (min-width: 900px) and (max-width: 1279px) { .ledger__need { font-size: 18px; } }
.bridge {
  position: absolute; left: 0; top: 50%; width: 32px; height: 1px;
  background: var(--gold);
  transform-origin: left center;
  transition: transform 260ms var(--e-out);
}
.check {
  position: absolute; left: 38px; top: 50%;
  transform: translateY(-50%);
  font: 400 18px / 1 var(--f-ui);
  color: var(--gold);
}
@keyframes check-pop { 0% { transform: translateY(-50%) scale(1.35); } 100% { transform: translateY(-50%) scale(1); } }
.ledger tfoot td { height: 0; padding: 0; border: 0; }
.ledger tfoot .ledger__channel { background: none; }

/* Ch.03 — phase timeline: cards under the horizontal gold rule, ring nodes on the rule, a short connector into each card */
@media (min-width: 1024px) {
  /* the shuttle enters the phase rule from the left rail across the marginalia column: keep the pull-quote
     below the rule so that crossing is whitespace (numeral + side-note stay above it) */
  .chapter[data-num="03"] .marginalia .pull-quote { margin-top: 168px; }
}
.phases {
  grid-column: 3 / -1; position: relative;
  margin-top: 88px; padding-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px;
}
.phases::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold); }
.phase { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.phase::before { content: ""; position: absolute; left: 50%; top: -48px; width: 1px; height: 48px; background: var(--gold-soft); pointer-events: none; }
.phase__node {
  position: absolute; top: -48px; left: 50%; z-index: 1;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 1px solid var(--gold); border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg-0), 0 0 14px var(--gold-glow);
  transition: background-color 300ms var(--e-out);
}
.phase__num { color: var(--gold); margin-bottom: 10px; font-size: 12px; }
.phase__title { font: 500 20px / 1.3 var(--f-display); color: var(--text); margin-bottom: 16px; }
.phase__list li, .term__list li, .expertise__col li {
  position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; margin-bottom: 8px;
}
.phase__list li::before, .term__list li::before, .expertise__col li::before {
  content: "\2013"; position: absolute; left: 0; top: 0; color: var(--gold);
}
.deliverable {
  margin-top: auto; padding: 14px 16px 16px;
  background: var(--gold-tint); border-radius: var(--r-tile);
  border-left: 3px solid var(--gold);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-left-color 300ms var(--e-out);
}
.phase__list { margin-bottom: 22px; }   /* spacing lives on the list so the strip keeps its margin-top:auto bottom-pin (strips align across cards) */
.deliverable .eyebrow { color: var(--gold); }
.deliverable__value { font: 500 17px / 1.35 var(--f-display); font-style: normal; color: var(--text); }
.deliverable__value::after { content: "\00a0\2192"; color: var(--gold); white-space: nowrap; }

/* Ch.04 — offerings: one card per row (numeral tile · content · pills) */
.index { grid-column: 3 / -1; margin-top: 64px; display: grid; gap: 16px; }
.index__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 220px; column-gap: 28px; align-items: start; }
.index__num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--gold-tint); border: 1px solid var(--gold-soft); border-radius: var(--r-tile);
  color: var(--gold); font-size: 12px; letter-spacing: .06em;
  transition: color 400ms var(--e-out), background-color 400ms var(--e-out), border-color 400ms var(--e-out);
}
.index__title { font: 600 clamp(22px, 2vw, 26px) / 1.2 var(--f-display); color: var(--text); letter-spacing: -.01em; }
.index__sub { margin-top: 10px; }
.index__desc { margin-top: 14px; font-size: 16px; line-height: 1.6; max-width: 60ch; }
.index__tags { justify-content: flex-end; align-content: flex-start; padding-top: 4px; }

/* Ch.05 — term sheets: two cards side by side, footnote as a gold-tint strip */
.terms { grid-column: 2 / -1; margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.term { display: flex; flex-direction: column; padding: 32px; }
.term__track { color: var(--gold); margin-bottom: 14px; }
.term__desc { font: 500 20px / 1.35 var(--f-display); color: var(--text); margin-bottom: 22px; }
.footnote { margin-top: auto; padding: 16px 18px 18px; background: var(--gold-tint); border-radius: var(--r-tile); }
.term__list { margin-bottom: 28px; }    /* same: the footnote keeps its bottom-pin */
.footnote .eyebrow { color: var(--gold); }
.footnote p { margin-top: 6px; font: 400 15px / 1.55 var(--f-body); color: var(--text-2); }

/* Ch.06 — register: five sector cards (3 + 2 on a six-column grid) */
.register-wrap { grid-column: 2 / -1; margin-top: 48px; }
.register { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.register__item { grid-column: span 2; display: flex; flex-direction: column; }
.register__item:nth-child(n+4) { grid-column: span 3; }
.register__item .tile { margin-bottom: 20px; }
.register__name {
  width: fit-content; max-width: 100%;
  font: 600 clamp(20px, 1.7vw, 24px) / 1.25 var(--f-display);
  color: var(--text); letter-spacing: -.01em;
  padding-bottom: 8px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 100% 1px;
  transition: background-size 500ms var(--e-out);
}
.register__desc { margin-top: 14px; font-size: 16px; line-height: 1.6; }
.register__tags { margin-top: auto; padding-top: 22px; }

/* Ch.07 — bookplate card + title card, expertise cards, stats bento */
.advisor { grid-column: 3 / -1; margin-top: 64px; display: grid; grid-template-columns: 3fr 7fr; column-gap: 24px; align-items: stretch; }
.bookplate { padding: 0; }
.bookplate__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  padding: 28px 20px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
}
.bookplate__shield { position: absolute; left: 50%; top: 50%; width: 66%; height: 70%; transform: translate(-50%, -52%); color: var(--gold); opacity: .3; }
.bookplate__monogram {
  position: relative;
  font: 300 clamp(64px, 6vw, 104px) / 1 var(--f-display);
  color: var(--gold); letter-spacing: -.04em;
  margin-top: 0;
}
.bookplate__caption, .bookplate__foot { position: relative; }
.bookplate__caption { color: var(--gold); }
.bookplate__foot { position: absolute; left: 0; right: 0; bottom: 22px; font-size: 11px; color: var(--text-3); }   /* city pinned to the foot; monogram + caption sit centred inside the shield */
.bookplate__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bookplate__frame:has(.bookplate__photo) .bookplate__shield,
.bookplate__frame:has(.bookplate__photo) .bookplate__monogram { display: none; }

.title-block { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 40px 36px; border-left: 4px solid var(--gold); }
.title-block__rule { display: block; position: absolute; background: var(--gold); }
.title-block__rule--top { position: static; width: 48px; height: 1px; margin-bottom: 22px; transform-origin: left center; }   /* short accent above the name (in flow) */
.title-block__rule--bottom { display: none; }                                                                                  /* the 4px left border replaces the frame */
.title-block__rule--right {
  top: 16px; bottom: 16px; right: 0; width: 1px;
  background: var(--gold); box-shadow: 0 0 12px var(--gold-glow);
  transform-origin: center top; transition: transform 500ms var(--e-out);
}
.title-block__name { font: 600 clamp(30px, 3vw, 40px) / 1.1 var(--f-display); color: var(--text); letter-spacing: -.02em; }
.title-block__role { margin-top: 14px; color: var(--gold); }
.title-block__bio { margin-top: 20px; max-width: 58ch; }

.expertise {
  grid-column: 3 / -1; margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.expertise__title { font: 500 clamp(19px, 1.5vw, 21px) / 1.3 var(--f-display); color: var(--text); margin-bottom: 14px; }
.expertise__col li:last-child { margin-bottom: 0; }

.stats { grid-column: 3 / -1; margin-top: 64px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.stat { grid-column: span 2; display: flex; flex-direction: column-reverse; justify-content: center; padding: 28px; }
.stat--lead { grid-column: span 4; grid-row: span 2; padding: 36px 32px; }
.stat__label { margin-top: 12px; }
.stat__value { font-family: var(--f-display); color: var(--text); font-weight: 600; }
.stat__value--count { font-size: var(--t-numeral); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat__value--word { font-size: 34px; line-height: 1.1; }
.stat__plus { color: var(--gold-bright); transition: opacity 400ms var(--e-out); }

/* Ch.08 — quadrant: 2×2 cards with gold roman numerals */
.quadrant { grid-column: 2 / -1; margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quad { padding: 32px; }
.quad .roman { font-size: 32px; margin-bottom: 18px; }
.quad__title { font: 500 20px / 1.3 var(--f-display); color: var(--text); margin-bottom: 12px; }
.quad p { font-size: 16px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   10. BANDS · STARFIELD · CLOSING / STEPPER-RUNWAY · CONTACT
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: 120vh;
  padding-block: var(--section-pad);
  display: flex; align-items: center;
  color: var(--text-2);
}
.band--c { min-height: 0; padding-bottom: max(72px, calc(var(--section-pad) - 64px)); } /* keeps the parked runway below the 64px masthead at max scroll */
.starfield {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  overflow: hidden; pointer-events: none;
}
/* three sibling layer SVGs (js/starfield.js): far static, mid/near scrubbed as whole replaced elements so Safari
   composites the parallax instead of repainting the stars every scroll frame (a transformed SVG <g> cannot be composited) */
.starfield__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
/* overflow:visible: the layer SVG is translated as a whole, so its own viewport must not clip the extended star range
   (fillLayer's yRange > viewBox height); the band-sized .starfield above stays the only clip */
body.js-anim .starfield__layer.sf-mid, body.js-anim .starfield__layer.sf-near { will-change: transform; }
.starfield .sf-far { opacity: .45; }
.starfield .sf-mid { opacity: .6; }
.band__content { position: relative; z-index: 3; width: 100%; }
.band p { color: var(--text-2); }
.band__eyebrow { display: flex; flex-direction: column; gap: 6px; }
.band__eyebrow span { display: block; }
.band__eyebrow-title { display: block; font: inherit; letter-spacing: inherit; text-transform: inherit; margin: 0; color: var(--gold); }
h2.eyebrow, h3.eyebrow { font-family: var(--f-ui); font-weight: 600; }

/* Band A */
.band--a .band__content { text-align: center; }
.band--a .band__eyebrow { align-items: center; margin-bottom: 40px; }
.band__statement {
  font: 500 var(--t-band) / 1.15 var(--f-display);
  color: var(--text); max-width: 22ch; margin: 0 auto; letter-spacing: -.02em;
}
.drivers { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
.driver { padding: 26px 24px 28px; }
.driver__num { display: block; color: var(--gold); margin-bottom: 18px; transition: opacity 400ms var(--e-out); }
.driver__title { font: 500 18px / 1.25 var(--f-display); color: var(--text); margin-bottom: 10px; }
.driver p { font-size: 15px; line-height: 1.55; }

/* Band B — the watermark is the orbit centre: its geometry must not change */
.shield-mark {
  position: absolute; z-index: 0;
  left: 50%; top: 50%;
  width: 233px; height: 320px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (min-width: 1024px) { .shield-mark { left: 50%; } }   /* centred on the page: the watermark lane is cols 6–7 */
@media (min-width: 1280px) { .shield-mark { width: 218px; height: 300px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .shield-mark { width: 175px; height: 240px; } }
.shield-mark__svg { width: 100%; height: 100%; color: var(--gold); opacity: .18; }
.lead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.lead__areas { grid-column: 1 / 6; }   /* five columns so the watermark lane (cols 6–7) stays clear */
.lead__model { grid-column: 8 / -1; }
@media (min-width: 1280px) {
  /* the orbit is rx = watermark/2 + 56 ≈ 165px each side of the page centre: pull the card edges out of it */
  .lead__areas { padding-right: 56px; padding-top: 180px; }
  .lead__model { padding-left: 56px; }
  /* Flight clearance. The entry dive from the Ch.04 left rail to the orbit's 12 o'clock crosses the upper-left
     of the band, and the exit from 12 o'clock bends down past the spec card's bottom-left corner. The areas
     column therefore starts 180px lower than the model column (the dive owns that void) and its right column
     is staggered a further 100px (`top`, not translate: it composes with the hover lift and the GSAP reveal
     transform; card 06 overhangs into the band's bottom padding). Measured at 1440: ≥ 80px between the path
     and card 02, ≥ 60px to the spec card, ≥ 35px to its note. */
  .area:nth-child(even) { top: 100px; }
}
.lead__grid .band__eyebrow { margin-bottom: 28px; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area { padding: 22px 22px 24px; }
.area__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.area__num { display: block; color: var(--gold); font-size: 11px; }
.area__title { font: 500 18px / 1.25 var(--f-display); color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.area p { font-size: 14px; line-height: 1.5; }
@media (min-width: 1024px) and (max-width: 1279px) {
  /* the areas column is 348px here and the orbit (rx ≈ 143px) reaches x ≈ 368: keep the 56px guard so the cards
     end before the orbit, and lay the six areas out as a single column of horizontal tiles (a 2-column grid
     would squeeze each card to ~167px) */
  .lead__areas { padding-right: 56px; }
  .lead__model { padding-left: 40px; }
  .areas { grid-template-columns: 1fr; gap: 10px; }
  .area { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; }
  .area__head { grid-row: 1 / 3; margin: 0; align-items: start; }
  .area__num { display: none; }
  .area__title { margin-bottom: 4px; }
  /* the orbit exit (12 o'clock, heading right) crosses the model column here: the note moves above the term
     sheet so the shuttle passes beneath the opaque card rather than under the note's text */
  .lead__model { display: flex; flex-direction: column; }
  .lead__model .band__eyebrow { order: -2; }
  .spec__note { order: -1; margin: 0 0 18px; }
}
.spec { border-collapse: separate; border-spacing: 0; padding: 8px 24px; }
.spec th, .spec td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; font: 600 var(--t-eyebrow) / 1.4 var(--f-ui); letter-spacing: var(--t-eyebrow-ls); text-transform: uppercase; color: var(--text-3); padding-right: 16px; }
.spec td { font-size: 16px; font-weight: 500; color: var(--text); }
.spec__note { margin-top: 18px; font: 400 14px / 1.5 var(--f-body); color: var(--text-3); }

/* Band C — closing */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing__quote { width: 100%; }
.closing__quote p {
  font: 500 clamp(32px, 4.2vw, 56px) / 1.15 var(--f-display);
  color: var(--text); letter-spacing: -.02em;
  max-width: 19ch; margin: 0 auto;
}
.closing__eyebrow { margin-top: 96px; color: var(--gold); }

.stepper { position: relative; width: 100%; max-width: 1120px; margin: 48px auto 0; text-align: left; }
.runway { position: relative; height: 28px; }
.runway--desktop { margin-right: 12%; }
.runway__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); }
.runway__threshold {
  position: absolute; top: 50%; width: 22px; height: 18px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 3px, transparent 3px, transparent 6px);
}
.runway__threshold--start { left: 0; }
.runway__threshold--end { right: 56px; }
.runway--mobile .runway__threshold--end { right: 0; }
.runway__ticks {
  position: absolute; left: 34px; right: 92px; top: 50%;
  transform: translateY(-50%);
  display: flex; justify-content: space-between; align-items: center;
}
.runway--mobile .runway__ticks { right: 34px; }
.runway__ticks i { display: block; width: 1px; height: 8px; background: var(--line-strong); transition: background-color 200ms var(--e-out); }
.runway__shield { position: absolute; right: 0; top: 50%; width: 22px; height: 27px; transform: translateY(-50%); }
.runway__caption {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  font-size: 12px; color: var(--gold);
  opacity: 0; transition: opacity 400ms var(--e-out);
}
.runway--mobile { display: none; }

.steps { position: relative; margin-top: 20px; display: grid; grid-template-columns: 37% 30% 33%; }
.step { position: relative; padding-left: 21%; padding-right: 16px; }
.step__node {
  position: absolute; top: -41px; left: 21%;
  width: 14px; height: 14px; margin-left: -7px;
  border: 1px solid var(--gold); border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--gold-tint), 0 0 12px var(--gold-glow);
  transition: background-color 300ms var(--e-out);
}
.step__node.is-lit { background: var(--gold); }
.step__num { display: block; color: var(--gold); font-size: 12px; margin-bottom: 10px; }
.step__text { font-size: 18px; line-height: 1.45; color: var(--text-2); }

/* Landing states (flight art only, reversible) */
body.is-landed .runway__ticks i { background: var(--gold); }
body.is-landed .runway__caption { opacity: 1; }
.runway__ticks i:nth-child(2)  { transition-delay: 40ms; }
.runway__ticks i:nth-child(3)  { transition-delay: 80ms; }
.runway__ticks i:nth-child(4)  { transition-delay: 120ms; }
.runway__ticks i:nth-child(5)  { transition-delay: 160ms; }
.runway__ticks i:nth-child(6)  { transition-delay: 200ms; }
.runway__ticks i:nth-child(7)  { transition-delay: 240ms; }
.runway__ticks i:nth-child(8)  { transition-delay: 280ms; }
.runway__ticks i:nth-child(9)  { transition-delay: 320ms; }
.runway__ticks i:nth-child(10) { transition-delay: 360ms; }
.runway__ticks i:nth-child(11) { transition-delay: 400ms; }
.runway__ticks i:nth-child(12) { transition-delay: 440ms; }
.runway__ticks i:nth-child(13) { transition-delay: 480ms; }
.runway__ticks i:nth-child(14) { transition-delay: 520ms; }
.runway__ticks i:nth-child(15) { transition-delay: 560ms; }
.runway__ticks i:nth-child(16) { transition-delay: 600ms; }
.runway__ticks i:nth-child(17) { transition-delay: 640ms; }
.runway__ticks i:nth-child(18) { transition-delay: 680ms; }
.runway__ticks i:nth-child(19) { transition-delay: 720ms; }
.runway__ticks i:nth-child(20) { transition-delay: 760ms; }
.runway__ticks i:nth-child(21) { transition-delay: 800ms; }
.runway__ticks i:nth-child(22) { transition-delay: 840ms; }
.runway__ticks i:nth-child(23) { transition-delay: 880ms; }
.runway__ticks i:nth-child(24) { transition-delay: 920ms; }
body:not(.is-landed) .runway__ticks i { transition-delay: 0ms; }

/* Contact card (highlighted card) */
.contact {
  width: 100%; max-width: 600px;
  margin: 96px auto 0;
  padding: 52px 40px 48px;
  text-align: center;
  scroll-margin-top: 96px;
}
.contact__name { font: 600 28px / 1.1 var(--f-display); color: var(--text); letter-spacing: -.02em; }
.contact__role { margin-top: 12px; }
.contact__email { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 20px; color: var(--text); }
.contact__email .link { color: var(--text); }
.copy {
  font-size: 11px; letter-spacing: .14em; line-height: 1;
  padding: 10px 12px; min-height: 36px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--text);
  transition: background-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
@media (hover: hover) { .copy:hover { border-color: var(--gold); } }
.copy.is-copied { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }
.contact__meta { margin-top: 14px; font-size: 12px; color: var(--text-3); }
.contact__cta { margin-top: 32px; }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer__inner {
  min-height: 96px; padding-block: 28px;
  display: grid; grid-template-columns: 148px minmax(0, 1fr) auto auto;
  align-items: center; column-gap: 32px;
}
.footer__logo { color: var(--text); }
.footer__tag { text-align: center; color: var(--text-2); white-space: nowrap; }
.footer__legal { font-size: 12px; text-transform: none; letter-spacing: .06em; color: var(--text-3); max-width: 58ch; text-align: right; }
@media (min-width: 1280px) { .footer__legal { max-width: 52ch; text-wrap: balance; } }
@media (min-width: 768px) and (max-width: 1279px) {
  /* the row cannot hold four cells inside the gutters: the legal line takes its own row */
  .footer__inner { grid-template-columns: 148px 1fr auto; row-gap: 14px; }
  .footer__tag { grid-column: 2; text-align: left; }
  .footer__top { grid-column: 3; }
  .footer__legal { grid-column: 1 / -1; grid-row: 2; max-width: none; text-align: left; }
}
.footer__top { font: 600 12px / 1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.footer__top span { color: var(--gold); }

/* --------------------------------------------------------------------------
   12. FLIGHT LAYER (every section is dark: the glow trail and the shuttle glow render everywhere)
   -------------------------------------------------------------------------- */
#flight {
  position: absolute; inset: 0; z-index: 2;
  overflow: hidden; overflow: clip;
  pointer-events: none;
  visibility: hidden;                       /* until the first successful build */
}
body.flight-ready #flight { visibility: visible; }
#flightSvg { display: block; position: absolute; left: 0; top: 0; overflow: visible; }
#plan {
  fill: none; stroke: var(--gold); stroke-width: 1.25;
  stroke-dasharray: 2 7; stroke-linecap: round;
  opacity: .35;
  transition: opacity 300ms var(--e-out);
}
#flownHalo { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .07; }
#flownGlow { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .18; }
#flownGlow, #flownHalo { clip-path: none; }   /* CSS beats the clip-path attribute the engine sets: the glow is not band-only any more */
#flown { fill: none; stroke: var(--gold-bright); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* live tip of the trail (the last < 2% of the path, rewritten every frame; the persistent chunk above is rewritten rarely) */
#flownTipHalo { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .07; }
#flownTipGlow { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .18; }
#flownTip { fill: none; stroke: var(--gold-bright); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* translucent layers meet at the chunk/tip joint with the same point and tangent: butt caps make the joint seamless
   (round caps would overlap into a brighter dot there); the trail start is under the pad, the tip end under the shuttle */
#flownGlow, #flownHalo, #flownTipGlow, #flownTipHalo { stroke-linecap: butt; }
.wp-circle { r: 3; fill: var(--bg-0); stroke: var(--gold); stroke-width: 1; transition: fill 150ms var(--e-out); }
.wp-circle.is-passed { fill: var(--gold); }

#shuttle {
  position: absolute; left: 0; top: 0;
  width: var(--shuttle-w);
  will-change: transform;
  pointer-events: none;
}
.shuttle__svg { display: block; width: 100%; height: auto; overflow: visible; }
#hull, .shuttle__line, #glow {
  stroke: var(--gold); stroke-width: 1.25;
  stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
#hull { fill: var(--shuttle-fill); transition: fill 150ms var(--e-out); }
.shuttle__line { fill: none; }
#glow { display: block; fill: none; stroke-width: 5; opacity: .28; }
#exhaust { transform-origin: 12px 32px; transform-box: view-box; }
#airframe { transform-origin: 65px 32px; transform-box: view-box; }

body[data-ground="ivory"] { --shuttle-fill: var(--bg-0); }
body[data-ground="paper"] { --shuttle-fill: var(--bg-1); }
body[data-ground="navy"]  { --shuttle-fill: var(--bg-2); }

/* Flight markers — invisible, measurable */
.wp {
  display: block; position: relative;
  width: 100%; height: 0; margin: 0; padding: 0;
  pointer-events: none; visibility: hidden;
}
.phase__node .wp, .pad .wp, .runway__threshold .wp, .step__node .wp, .shield-mark .wp, .band > .wp {
  position: absolute; inset: 0; width: auto; height: auto;
}
.ledger__channel .wp { width: 100%; }

/* Gilt flecks (js/starfield.js scatters them in the chapter margins) */
.gilt {
  position: absolute; width: 3px; height: 3px;
  background: var(--gold); opacity: .22;
  transform: rotate(45deg);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. REVEAL GATES + ONCE-ONLY ACCENTS (initial state exists ONLY under .js-anim)
   -------------------------------------------------------------------------- */
body.js-anim [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(24px); }
body.js-anim [data-rule]:not(.is-drawn) { transform: scaleX(0); transform-origin: left center; }

body.js-anim .drivers:not(.is-lit) .driver__num { opacity: .45; }   /* the beat lights .drivers[data-beat]; numerals ignite together */
body.js-anim .ledger__need:not(.is-lit) .bridge { transform: scaleX(0); }
body.js-anim .ledger__need.is-lit .check { animation: check-pop 220ms cubic-bezier(.34, 1.56, .64, 1) both; }
body.js-anim .phase__node:not(.is-lit) { background: var(--bg-0); }
body.js-anim .phase__node:not(.is-lit) ~ .deliverable { border-left-color: var(--line-strong); }
body.js-anim .index__num:not(.is-lit) { color: var(--text-3); background: var(--panel); border-color: var(--line-strong); }
body.js-anim .register__name:not(.is-lit) { background-size: 0 1px; }
body.js-anim .title-block__rule--right:not(.is-lit) { transform: scaleY(0); }
body.js-anim .stat__plus:not(.is-in) { opacity: 0; }

/* --------------------------------------------------------------------------
   14. BREAKPOINTS
   -------------------------------------------------------------------------- */

/* ---- xl: 1024–1279 ---------------------------------------------------- */
@media (max-width: 1279px) {
  :root, body { --shuttle-w: 68px; --channel: 128px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .12em; }
  .ledger__glyph { font-size: 220px; }
  .index__row { grid-template-columns: 40px minmax(0, 1fr) 200px; }
}

/* ---- lg: 900–1023 — single reading column ------------------------------ */
@media (max-width: 1023px) {
  :root, body { --channel: 112px; }
  .nav__running { display: none; }

  .chapter__grid { display: flex; flex-direction: column; align-items: stretch; }
  .marginalia { display: contents; }
  .numeral { order: -30; font-size: 96px; line-height: .9; margin-bottom: 12px; }
  .chapter__head { order: -20; max-width: 760px; }
  .chapter__body { order: -15; max-width: 760px; margin-top: 40px; }
  .side-note { order: -12; margin-top: 32px; max-width: 760px; padding-right: 0; }
  .pull-quote { order: -10; margin-top: 24px; max-width: 760px; padding-left: 24px; }
  .pillars, .ledger-wrap, .phases, .index, .terms, .register-wrap, .advisor, .expertise, .stats, .quadrant { margin-top: 56px; }

  .contents__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }

  .lead__grid { display: block; }
  .lead__model { margin-top: 48px; }
  .shield-mark { top: auto; bottom: 8%; transform: translateX(-50%); }
  .band { min-height: 0; }

  .register { grid-template-columns: 1fr 1fr; }
  .register__item, .register__item:nth-child(n+4) { grid-column: span 1; }
  .register__item:last-child { grid-column: 1 / -1; }
}

/* ---- md: 768–899 --------------------------------------------------------- */
@media (max-width: 899px) {
  :root, body { --shuttle-w: 60px; }

  /* hero: single column, gantry hidden, mobile pad */
  .hero__grid { display: block; }
  .hero__text { padding-top: 32px; }
  .gantry { display: none; }
  .pad--mobile {
    display: flex; width: 56px; height: 72px;
    margin-top: 36px;
    position: relative;
    left: calc(var(--rail-x) - var(--gutter-l) - 28px);
  }

  /* ledger stacks: each row = one card holding the have → need pair */
  .ledger__glyph { display: none; }
  .ledger, .ledger thead, .ledger tbody, .ledger tfoot, .ledger tr, .ledger th, .ledger td { display: block; }
  .ledger thead tr { display: flex; flex-direction: column; gap: 6px; padding: 0 0 14px; border-bottom: 1px solid var(--gold-soft); }
  .ledger__head .eyebrow { white-space: nowrap; }
  /* stacked header reads as a legend: decorative ✕ / ✓ glyphs mirror the row prefixes (CSS-generated, no copy change) */
  .ledger__head--have .eyebrow::before { content: "\2715"; color: var(--text-3); margin-right: 10px; }
  .ledger__head--need .eyebrow::before { content: "\2713"; color: var(--gold); margin-right: 10px; }
  .ledger__head, .ledger__head--have, .ledger__head--need { padding: 0; width: auto; }
  .ledger thead .ledger__channel, .ledger tfoot .ledger__channel { height: 0; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; }
  .ledger tfoot { height: 0; overflow: hidden; }
  .ledger__row { margin-top: 12px; padding: 20px 22px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
  .ledger__row td { height: auto; padding: 0; background: none; border: 0; border-radius: 0; }
  .ledger__row:first-child .ledger__have, .ledger__row:last-child .ledger__have,
  .ledger__row:first-child .ledger__need, .ledger__row:last-child .ledger__need { border: 0; border-radius: 0; }
  .ledger tbody .ledger__channel { width: 48px; height: 1px; margin: 14px 0 14px 28px; background: var(--gold); }
  .ledger__row .ledger__have { padding-left: 28px; }
  .ledger__row .ledger__need { padding: 0 0 0 28px; font-size: 19px; }
  .bridge { display: none; }
  .check, .ledger__x { left: 0; }

  /* phase timeline stacks on a vertical gold rule at the left rail; connectors run from the rule into each card */
  .phases { display: block; padding-top: 0; margin-top: 56px; }
  .phases::before { top: 0; bottom: 0; left: calc(var(--rail-x) - var(--gutter-l)); right: auto; width: 1px; height: auto; }
  .phase + .phase { margin-top: 24px; }
  .phase::before { top: 28px; left: calc(var(--rail-x) - var(--gutter-l)); width: calc(var(--gutter-l) - var(--rail-x)); height: 1px; }
  .phase__node { top: 28px; left: calc(var(--rail-x) - var(--gutter-l)); width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  /* the last node sits at the card's bottom edge: the exit to the chapter's right-rail marker (below the card)
     then runs along the card's bottom padding instead of cutting diagonally across the list and the strip */
  .phase:last-child::before { top: auto; bottom: 14px; }
  .phase:last-child .phase__node { top: auto; bottom: 8px; margin-top: 0; }

  .terms { display: block; }
  .term + .term { margin-top: 16px; }

  .advisor { display: block; }
  .bookplate { max-width: 320px; }
  .title-block { margin-top: 16px; }

  .drivers { grid-template-columns: 1fr 1fr; }

  .index__row { grid-template-columns: 40px minmax(0, 1fr); }
  .index__tags { grid-column: 2; justify-content: flex-start; margin-top: 18px; padding-top: 0; }

  .step { padding-right: 0; }
  .step__text { font-size: 16px; }
}

/* ---- sm: < 768 — binder gutter -------------------------------------------- */
@media (max-width: 767px) {
  :root, body {
    --gutter-l: 56px;
    --shuttle-w: 48px;
    --t-body: 16px;
    --t-display: clamp(34px, 9.6vw, 64px);   /* three-line headline in the 291px binder column */
    --t-h2: clamp(32px, 8vw, 48px);
    --section-pad: 72px;
  }
  body { line-height: 1.6; }

  /* nav */
  .logo { width: auto; }
  .logo__text { display: none; }
  .logo__mark { width: 29px; height: 36px; }
  .nav__contents { width: 44px; padding: 0; justify-content: center; }
  .nav__contents-label { display: none; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .nav__cta { padding: 0 14px; }
  .nav__inner { gap: 12px; }
  .nav__right { gap: 6px; }

  /* hero chips: two per row in the 291px binder column instead of one per line */
  .chips { gap: 8px; }
  .chip { padding: 7px 11px 7px 9px; letter-spacing: .08em; gap: 6px; }

  .hero__eyebrow { margin-bottom: 28px; }
  .hero__dek { gap: 24px; margin-top: 32px; }
  .hero__lede { font-size: 18px; }
  .hero__actions { margin-top: 32px; }

  .contents__inner { padding-left: 24px; padding-right: 24px; }
  .contents__list { grid-template-columns: 1fr; }

  .pillars { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .term, .quad { padding: 26px 20px; }
  .stat--lead { padding: 28px 22px; }
  .title-block { padding: 32px 20px 32px 22px; }

  .index__row { grid-template-columns: 1fr; row-gap: 12px; }
  .index__num { grid-row: 1; }
  .index__tags { grid-column: 1; margin-top: 8px; }
  .index__title { font-size: 22px; }

  .expertise { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat--lead { grid-column: auto; grid-row: auto; }
  .stat__value--count { font-size: clamp(72px, 22vw, 96px); }

  .areas { grid-template-columns: 1fr; }
  .spec { padding: 4px 18px; }
  .spec th { width: 42%; }

  /* closing: vertical stepper on the gutter rule, separate runway above contact */
  .closing__eyebrow { margin-top: 72px; }
  .stepper { margin-top: 32px; }
  .runway--desktop { display: none; }
  .steps { display: block; margin-top: 0; }
  .steps::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rail-x) - var(--gutter-l)); width: 1px; background: var(--gold-soft); }
  .step { padding: 0 0 32px; }
  .step:last-child { padding-bottom: 8px; }
  .step__node { top: 4px; left: calc(var(--rail-x) - var(--gutter-l)); margin-left: -7px; }
  .step__text { font-size: 17px; }
  .runway--mobile {
    display: block; align-self: flex-start;
    width: calc(100% + var(--gutter-l) - var(--rail-x));
    margin: 48px 0 0 calc(var(--rail-x) - var(--gutter-l));
  }
  .contact { margin-top: 56px; padding: 40px 16px 36px; }
  .copy { min-height: 44px; padding-inline: 14px; }
  .contact__name { font-size: 26px; }
  .contact__email { font-size: 18px; }
  .contact__meta { font-size: 11px; }

  .footer__inner { grid-template-columns: 1fr; row-gap: 20px; justify-items: start; padding-block: 36px; }
  .footer__tag { text-align: left; white-space: normal; }
  .footer__legal { max-width: none; text-align: left; }
}

/* register + quadrant stack below 700 (spec) */
@media (max-width: 699px) {
  .register { grid-template-columns: 1fr; }
  .register__item, .register__item:nth-child(n+4), .register__item:last-child { grid-column: auto; }
  .register__name { font-size: 22px; }
  .quadrant { grid-template-columns: 1fr; }
}

/* ---- xs: < 560 --------------------------------------------------------------- */
@media (max-width: 559px) {
  :root, body { --t-eyebrow: 11px; --t-eyebrow-ls: .14em; }
  .drivers { grid-template-columns: 1fr; }
  .hero__issue { row-gap: 4px; }
  .hero__issue .dot:nth-of-type(3) { display: none; }
  .hero__issue span:last-child { flex-basis: 100%; }
  .hero__eyebrow .dot { margin: 0 .4em; }
  .badge { border-radius: 14px; padding: 8px 14px 8px 12px; }
  .ledger__row .ledger__need { font-size: 18px; }
  .btn { padding: 15px 20px; }
  .numeral { font-size: 80px; }
}

/* --------------------------------------------------------------------------
   15. REDUCED MOTION · PAUSED
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
  }
  .contents[open] { animation: none !important; }
  #shuttle, .starfield__layer { will-change: auto; }
  .btn:active { transform: none; }
  .card:hover { translate: none; }
  .contents__list a::after { transform: none; }
}
body.is-paused #flight, body.is-paused #flight *, body.is-paused .starfield, body.is-paused .starfield *, body.is-paused .gantry * { animation-play-state: paused !important; } /* flight art only — never UI such as the Contents dialog */

/* --------------------------------------------------------------------------
   16. PRINT — white ground, navy text, no flight layer
   -------------------------------------------------------------------------- */
@media print {
  #flight, .starfield, .gantry, #pauseBtn, #navProgress, .wp, .pad, .gilt, .skip-link, .contents, .runway, .shield-mark, .ledger__glyph { display: none !important; }
  body, #page, .hero, [data-ground="ivory"], [data-ground="paper"], [data-ground="navy"], .band { background: #fff !important; color: var(--navy) !important; min-height: 0 !important; }
  h1, h2, h3, h4, p, li, dt, dd, th, td, blockquote, .eyebrow, .mono, .lead, .hero__title em, .drop-cap::first-letter, .band p, .band h2, .band h3, .band .eyebrow,
  .spec td, .spec th, .step__text, .contact__name, .closing__quote p, .band__statement, .driver__title, .area__title, .stat__value, .stat__value--count, .numeral, .pull-quote p,
  .ledger__have, .ledger__need, .link, .footer__top, .logo, .chip, .badge, .pills li,
  .deliverable__value, em, .chapter__title .neq, .stat__plus, .footer__top span, .roman, .driver__num, .area__num, .index__num, .dot, .bookplate__monogram, .bookplate__caption,
  .phase__num, .step__num, .term__track, .title-block__role, .chapter__eyebrow, .band__eyebrow-title, .contents__head .eyebrow, .closing__eyebrow { color: var(--navy) !important; }
  .card, .ledger__have, .ledger__need, .deliverable, .footnote, .tile, .index__num, .pills li, .chip, .badge, .spec, .ledger__row { background: none !important; border-color: #9AA3AE !important; box-shadow: none !important; }
  .numeral { color: rgba(26,37,53,.12) !important; }
  .nav { position: static !important; background: none !important; color: var(--navy) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .chapter { break-before: page; padding-block: 48px; }
  .marginalia { height: auto; }
  body.js-anim [data-reveal]:not(.is-revealed) { opacity: 1 !important; transform: none !important; }
  body.js-anim [data-rule]:not(.is-drawn) { transform: none !important; }
  a[href^="http"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 12px; color: #4A5568; }
  .btn { border: 1px solid var(--navy) !important; background: none !important; color: var(--navy) !important; box-shadow: none !important; }
}
