/* ===========================================================================
   My Mobile Witness — shared stylesheet
   Single source of truth for the design system described in DESIGN.md.

   Replaces: the Tailwind CDN (407KB of runtime compiler) and 15 drifted
   copies of an inline tailwind.config block. Every colour that used to be a
   hard-coded hex literal is now a custom property; changing the palette is a
   one-file edit.

   Layout
     0. Font delivery
     1. Tokens
     2. Base
     3. Layout primitives
     4. Components
     5. Utilities (the 157 classes the pages actually used)
     6. Responsive
     7. Motion / print
   =========================================================================== */

/* ---------------------------------------------------------- 0. Font delivery */

/* Self-hosted variable subsets remove the render-blocking Google Fonts
   stylesheet while preserving the complete weight ranges used by the site. */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/libre-franklin-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/libre-franklin-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/libre-franklin-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/libre-franklin-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/libre-franklin-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/spline-sans-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/spline-sans-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- 1. Tokens */

:root {
  /* Primary — the institution */
  --navy-900: #0C1F3F;   /* heroes, headings, wordmark, CTA panels */
  --navy-800: #122A52;   /* footer surface */
  --navy-700: #1A3A6E;   /* structural accents, dividers on navy */

  /* Secondary — the single accent.
     Two tokens, because brass behaves differently as a fill and as an ink:
       --gold-surface  the literal brass. Fills, borders, rules. Never text on light.
       --gold          CONTEXT-SENSITIVE text gold. Defaults to the dark ink
                       (5.08:1 on white) and is re-brightened to full brass only
                       on navy surfaces (6.16:1) by the rule below.
     Defaulting to the safe value means an inline `color:var(--gold)` on a light
     section cannot produce the 2.66:1 failure, whoever writes it. */
  --gold-surface: #C9963A;
  --gold:         #8B6914;
  --gold-deep:    #B5852E;  /* hover / pressed on gold fills */
  --gold-ink:     #8B6914;  /* explicit alias for the same ink */
  --gold-tint:    rgba(201,150,58,0.08);
  --gold-rule:    rgba(201,150,58,0.45);

  /* Neutrals — already tinted toward the navy hue */
  --ink:            #374151;  /* body copy            10.31:1 on white */
  --ink-muted:      #6B7280;  /* secondary, eyebrows   4.83:1 on white */
  --rule:           #E5E7EB;
  --rule-strong:    #D1D5DB;
  --surface:        #FFFFFF;
  --surface-sunken: #F9FAFB;

  /* Status */
  --danger:        #9A3412;             /* borders, markers, error titles */
  --danger-strong: #7C2D12;             /* sustained error copy */
  --danger-bg:     #FEF6F2;
  --danger-ring:   rgba(154,52,18,0.18);

  /* On-navy text. Never below 0.55 for text: that is the AA floor (5.79:1). */
  --on-navy:        rgba(255,255,255,0.92);
  --on-navy-body:   rgba(255,255,255,0.78);
  --on-navy-muted:  rgba(255,255,255,0.62);
  --on-navy-surface:rgba(255,255,255,0.07);
  --on-navy-rule:   rgba(255,255,255,0.12);

  /* Typography — public-notice authority for prose, case-file precision for labels. */
  --font-sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, monospace;
  --text-caption: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-title: 1.25rem;
  --text-heading: clamp(1.75rem, 1.55rem + 1vw, 2.25rem);
  --text-display: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-figure: clamp(3.5rem, 2.9rem + 3vw, 5rem);
  --leading-tight: 1.15;
  --leading-heading: 1.22;
  --leading-body: 1.7;
  --leading-small: 1.6;
  --tracking-display: -0.025em;
  --tracking-heading: -0.015em;
  --tracking-label: 0.1em;

  /* Shape */
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 12px; --r-full: 999px;

  /* Elevation — navy-tinted, never neutral black */
  --shadow-ambient: 0 1px 3px rgba(12,31,63,0.06);
  --shadow-lift:    0 4px 20px rgba(12,31,63,0.08);
  --shadow-header:  0 1px 4px rgba(12,31,63,0.07);
  --ring:           0 0 0 3px rgba(201,150,58,0.30);

  /* Motion — three tiers, because a colour swap and an entrance are not the
     same event. 150ms stays the default for instant feedback; state changes
     get enough room to be read as a change; entrances get room to settle.
     Exits run at ~75% of their entrance: leaving should feel decided. */
  --dur: 150ms;         /* colour, border, shadow — instant feedback */
  --dur-state: 220ms;   /* discrete UI state — menu, active indicator */
  --dur-enter: 560ms;   /* entrances — hero choreography, scroll reveals */
  --dur-exit: 170ms;    /* dismissals */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);         /* ease-out-quint */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* confident, decisive */

  /* Layout */
  --container: 1100px;
  --measure: 68ch;
  --nav-h: 64px;
}

/* On a navy surface, brass is legible (6.16:1) and is the correct accent.
   Declare custom navy surfaces with `.on-navy`; shared inverted components
   join the same context directly. Custom properties then carry the bright
   accent and stronger tint to every descendant without inspecting inline CSS. */
.section--navy,
.on-navy,
.card--navy,
.briefing-cta,
.site-footer,
.site-footer--standard {
  --gold: var(--gold-surface);
  --gold-tint: rgba(201,150,58,0.15);
}

/* ------------------------------------------------------------------ 2. Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy-900);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}
h2 {
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}
h3 {
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.35;
}
p  { margin: 0; }
main p, main li { text-wrap: pretty; }

a {
  color: inherit;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

img { max-width: 100%; height: auto; }

/* Numerals in evidence always line up. */
.tabular-nums, time, [class*="stat"] .figure {
  font-variant-numeric: tabular-nums;
}

/* Focus is never removed. Outline carries the requirement; ring is the edge. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On navy, a light outline stays distinct from the surrounding surface. */
.section--navy a:focus-visible, .section--navy button:focus-visible,
.on-navy a:focus-visible, .on-navy button:focus-visible,
.card--navy a:focus-visible, .card--navy button:focus-visible,
.briefing-cta a:focus-visible, .briefing-cta button:focus-visible,
.site-footer a:focus-visible, .site-footer button:focus-visible {
  outline-color: var(--surface);
}
/* A navy edge is the highest-contrast boundary against a brass action. */
a.btn-primary:focus-visible,
button.btn-primary:focus-visible {
  outline: 3px solid var(--navy-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--surface);
}
/* Programmatic focus targets: no ring for pointer users, kept for keyboard. */
main:focus:not(:focus-visible),
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
main, [tabindex="-1"] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.skip-link {
  position: fixed; left: 1rem; top: 0; z-index: 100;
  transform: translateY(-125%);
  background: var(--navy-900); color: var(--surface);
  padding: 0.85rem 1.25rem; border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--text-small); font-weight: 600; text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ------------------------------------------------------- 3. Layout primitives */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 1.5rem);
}
.measure { max-width: var(--measure); }

.section        { padding-block: clamp(3rem, 8vw, 5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.section--navy  { background: var(--navy-900); color: var(--on-navy-body); }
.on-navy        { color: var(--on-navy-body); }
.section--sunken{ background: var(--surface-sunken); }
.section--ruled { border-bottom: 1px solid var(--rule); }

.section--navy h1, .section--navy h2, .section--navy h3,
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--surface); }

/* -------------------------------------------------------------- 4. Components */

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-nav__sentinel {
  position: absolute;
  /* Its lower edge sits at 8px, matching the previous `scrollY > 8` rule. */
  top: 7px; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.site-nav.is-scrolled { border-bottom-color: var(--rule); box-shadow: var(--shadow-header); }
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: var(--nav-h);
}
.site-nav__mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--text-body); font-weight: 800; letter-spacing: -0.01em;
  color: var(--navy-900); text-decoration: none; white-space: nowrap;
}
.site-nav__links { display: none; align-items: center; gap: 1.5rem; }
/* One underline serves hover and active alike. The marker is a pseudo-element
   rather than a border so hover can wipe it in from the left: hovering
   rehearses the exact geometry the active page carries at rest, which is what
   tells the reader the link is a destination in this set. A border-bottom
   cannot be animated in without animating layout. */
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--text-small); font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-state) var(--ease-out-expo);
}
/* Keyboard focus resolves to the same colour as hover, so the marker is navy
   either way. A pointer and a Tab key report the same state and should not
   render it two different colours. */
.nav-link:hover, .nav-link:focus-visible { color: var(--navy-900); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link.active, .nav-link[aria-current="page"] {
  color: var(--navy-900); font-weight: 700;
}
/* The active marker is present at rest and never animates on load. */
.nav-link.active::after, .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
/* Two class selectors so this outranks the later .btn-primary display rule.
   The CTA lives in the mobile panel below 768px, not in the bar. */
.site-nav .site-nav__cta { display: none; }
/* Grid rather than flex so both icons occupy the same cell and can cross-fade
   in place instead of being swapped by `display`. */
.site-nav__toggle {
  display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px;
  background: none; border: 0; border-radius: var(--r-md);
  color: var(--navy-900); cursor: pointer;
}
/* This outranks the `.hidden` utility the markup carries on the close icon,
   which stays as the no-CSS fallback. Visibility is owned by `aria-expanded`
   below, so the icon state can never disagree with what assistive tech reads. */
.site-nav__toggle svg {
  display: block; grid-area: 1 / 1;
  transition: opacity var(--dur) var(--ease-out-quart),
              transform var(--dur-state) var(--ease-out-expo);
}
/* Counter-rotating through the swap reads as one gesture turning the bars into
   the cross, rather than two icons trading places. */
.site-nav__toggle [data-icon="close"] {
  opacity: 0; transform: rotate(-45deg) scale(0.8);
}
.site-nav__toggle[aria-expanded="true"] [data-icon="open"] {
  opacity: 0; transform: rotate(45deg) scale(0.8);
}
.site-nav__toggle[aria-expanded="true"] [data-icon="close"] {
  opacity: 1; transform: none;
}

.site-nav__panel {
  display: none;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  box-shadow: var(--shadow-header);
  /* Exit state. `allow-discrete` keeps `display` in the transition so the
     panel can animate out before it leaves the layout; where it is
     unsupported the panel simply cuts, which is today's behaviour. */
  opacity: 0;
  transform: translateY(-6px);
  /* Declared twice on purpose. A parser that does not know `allow-discrete`
     discards the whole shorthand it appears in, so the plain transition is
     stated first and survives on its own. */
  transition: opacity var(--dur) var(--ease-out-quart),
              transform var(--dur-exit) var(--ease);
  transition: opacity var(--dur) var(--ease-out-quart),
              transform var(--dur-exit) var(--ease),
              display var(--dur-exit) allow-discrete;
}
.site-nav__panel.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-state) var(--ease-out-quart),
              transform var(--dur-state) var(--ease-out-expo);
  transition: opacity var(--dur-state) var(--ease-out-quart),
              transform var(--dur-state) var(--ease-out-expo),
              display var(--dur-state) allow-discrete;
}
@starting-style {
  .site-nav__panel.is-open { opacity: 0; transform: translateY(-6px); }
}
.site-nav__panel .container { padding-block: 0.75rem 1rem; }
/* The rows arrive in reading order. Short enough that a returning visitor who
   already knows the destination is never waiting on it. */
.site-nav__panel.is-open .container > * {
  animation: nav-row-in var(--dur-state) var(--ease-out-expo) both;
}
.site-nav__panel.is-open .container > :nth-child(1) { animation-delay: 30ms; }
.site-nav__panel.is-open .container > :nth-child(2) { animation-delay: 65ms; }
.site-nav__panel.is-open .container > :nth-child(3) { animation-delay: 100ms; }
.site-nav__panel.is-open .container > :nth-child(4) { animation-delay: 135ms; }
.site-nav__panel.is-open .container > :nth-child(n + 5) { animation-delay: 170ms; }

@keyframes nav-row-in {
  from { opacity: 0; transform: translateY(-4px); }
}
.site-nav__panel a {
  display: flex; align-items: center; min-height: 48px;
  font-size: var(--text-body); font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.site-nav__panel a:last-child { border-bottom: 0; }
.site-nav__panel a.active { color: var(--navy-900); font-weight: 700; }
.site-nav__panel .btn { margin-top: 0.75rem; width: 100%; justify-content: center; }
.nav-spacer { height: var(--nav-h); }

/* --- Buttons ------------------------------------------------------------- */
/* The variants are usable standalone: the legacy pages write class="btn-primary"
   without a base class, so the base styles must not require `.btn`. */
.btn, .btn-primary, .btn-outline, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.75rem;
  font-family: inherit; font-size: var(--text-body); font-weight: 600;
  max-width: 100%; text-align: center; white-space: normal;
  text-decoration: none; border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
/* Navy ink on brass: 6.16:1. White on brass is 2.66:1 and is forbidden. */
.btn-primary { background: var(--gold-surface); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-deep); color: var(--navy-900); }
.btn-primary:active { background: var(--gold-deep); transform: translateY(1px); }

.btn:disabled, button.btn-primary:disabled,
.btn[aria-disabled="true"], .btn-primary[aria-disabled="true"] {
  opacity: 0.64;
  cursor: not-allowed;
  transform: none;
}
.btn[aria-busy="true"], button.btn-primary[aria-busy="true"] { cursor: progress; }

.btn-outline {
  background: transparent; color: var(--surface);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.06); }

.btn-quiet {
  min-height: 44px; padding: 0.5rem 0;
  background: none; color: var(--navy-900); font-size: var(--text-small);
}
.btn-quiet:hover { color: var(--gold-ink); }

.btn-sm { min-height: 44px; padding: 0.5rem 1.25rem; font-size: var(--text-small); }

/* --- Eyebrow / pill ------------------------------------------------------ */
.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-caption); font-weight: 700; line-height: 1;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--ink-muted);            /* 4.83:1 — the lightest AA-safe neutral */
  margin-bottom: 0.75rem;
}
.section-eyebrow--accent { color: var(--gold); }
.section--navy .section-eyebrow, .on-navy .section-eyebrow,
.card--navy .section-eyebrow, .briefing-cta .section-eyebrow,
.site-footer .section-eyebrow { color: var(--gold); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--gold); background: var(--gold-tint);
  border: 1px solid var(--gold-rule);
  border-radius: var(--r-full); padding: 0.3rem 0.9rem;
}

/* --- Cards --------------------------------------------------------------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-ambient);
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
a.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--rule-strong); }
.card--featured { border: 2px solid var(--gold-surface); }
.card--navy { background: var(--navy-900); border-color: transparent; color: var(--on-navy-body); }
.card--navy h2, .card--navy h3 { color: var(--surface); }
.card--pad { padding: 2.5rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Replaces the 3px side-stripe callout, which is a banned pattern. */
.note {
  background: var(--surface-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.25rem;
}
.note__label {
  font-family: var(--font-mono);
  font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.35rem;
}

/* --- Page-specific components, tokenised -------------------------------- */
/* Ported from the 15 inline <style> blocks these pages used to carry.
   Opacities raised to the 0.55 on-navy AA floor where the originals failed. */

/* App-store buttons (navy surfaces only) */
.store-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-width: 175px; min-height: 56px; padding: 0.9rem 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--r-lg); text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.store-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }
.store-btn:active { opacity: 0.9; }
.store-label { display: flex; flex-direction: column; }
.store-sub  { font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 500; line-height: 1.2; margin-bottom: 0.15rem;
              color: rgba(255,255,255,0.78); }   /* was 0.55 -> 3.1:1, now 7.6:1 */
.store-name { font-size: var(--text-body); font-weight: 700; line-height: 1.2; color: var(--surface); }

/* Compact store links for secondary download placements. */
.store-link-compact {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  color: var(--navy-900); font-size: var(--text-small); font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.store-link-compact:hover {
  background: var(--surface-sunken); border-color: var(--ink-muted);
}
.store-link-compact--on-navy {
  padding-inline: 0.9rem;
  color: var(--on-navy-body); font-size: var(--text-small); font-weight: 500;
  background: transparent; border-color: rgba(255,255,255,0.28);
}
.store-link-compact--on-navy:hover {
  color: var(--surface); background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
}

/* Inline product designation. The heading modifier preserves optical alignment. */
.product-badge {
  display: inline-block; position: relative; top: -2px;
  padding: 0.2rem 0.55rem;
  background: var(--gold-surface); color: var(--navy-900);
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 800;
  letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase;
  vertical-align: middle;
}
.product-badge--headline { top: -6px; }

/* Standing designation badge */
.spotlight-badge {
  display: inline-block; padding: 0.3rem 0.9rem;
  background: var(--gold-tint);
  border: 1px solid var(--gold-rule);
  border-radius: var(--r-full);
}
.spotlight-badge .section-eyebrow { margin-bottom: 0; }

/* Card variants used by the landing and detail pages */
.nav-card, .detail-card {
  display: block; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  text-decoration: none; box-shadow: var(--shadow-ambient);
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-card { padding: 2rem; }
.detail-card { padding: 1.5rem; }
a.nav-card:hover {
  box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--rule-strong);
}
.nav-card.featured { border: 2px solid var(--gold-surface); }

/* Card on a navy surface */
.state-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-lg); padding: 1.5rem;
}

/* Was a 3px top stripe; full border instead (side/edge stripes are banned). */
.win-card {
  padding: 1.5rem; background: var(--surface-sunken);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
}

.capability-dot {
  width: 6px; height: 6px; margin-top: 7px; flex-shrink: 0;
  background: var(--gold-surface); border-radius: 50%;
}

/* Inbound source comparison. One briefing-style ledger on wide screens,
   one explicitly labelled sequence on phones. */
.comparison-ledger {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.comparison-ledger__header,
.comparison-ledger__row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
}
.comparison-ledger__header {
  padding: 0.9rem clamp(1.25rem, 3vw, 2rem);
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.2;
  text-transform: uppercase;
}
.comparison-ledger__row {
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}
.comparison-ledger__source {
  color: var(--navy-900);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.4;
}
.comparison-ledger__cell {
  min-width: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}
.comparison-ledger__cell--after {
  padding: 0.85rem 1rem;
  margin-block: -0.85rem;
  background: var(--gold-tint);
  border-radius: var(--r-md);
  color: var(--ink);
}
.comparison-ledger__cell p { margin: 0; }
.comparison-ledger__label {
  display: none;
  margin-bottom: 0.4rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.2;
  text-transform: uppercase;
}
.comparison-ledger__cell--after .comparison-ledger__label { color: var(--gold-ink); }

/* Initiative index. The complete row is the touch target, with denser
   simultaneous scanning on desktop and progressive reflow on smaller screens. */
.initiative-directory {
  display: block;
  border-top: 1px solid var(--rule-strong);
}
.initiative-directory__link {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.75rem;
  gap: 0.4rem 1rem;
  align-items: center;
  min-height: 88px;
  padding: 1.25rem clamp(0.5rem, 2vw, 1rem);
  border-bottom: 1px solid var(--rule);
  color: var(--navy-900);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.initiative-directory__link:hover { background: var(--surface-sunken); }
.initiative-directory__number {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 0.15rem;
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
}
.initiative-directory__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--navy-900);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.3;
}
.initiative-directory__description {
  grid-column: 2 / -1;
  grid-row: 2;
  max-width: 65ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-body);
  line-height: 1.65;
}
.initiative-directory__arrow {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  color: var(--gold-ink);
  font-size: 1.35rem;
  transition: transform var(--dur) var(--ease);
}
.initiative-directory__link:hover .initiative-directory__arrow {
  transform: translateX(4px);
}

/* Terminal conversion pattern: evidence first, then one quiet invitation. */
.briefing-cta {
  background: var(--navy-900); padding: 5rem 1.5rem;
}
.briefing-cta__inner {
  max-width: 680px; margin-inline: auto; text-align: center;
}
.briefing-cta__title {
  color: var(--surface); margin-bottom: 1rem;
}
.briefing-cta__body {
  color: var(--on-navy-muted); line-height: calc(var(--leading-body) + 0.05); margin-bottom: 2rem;
}
.briefing-cta__actions {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.briefing-cta__button {
  padding: 0.9rem 2.25rem; font-size: var(--text-body);
}
.briefing-cta__note {
  margin: 0.6rem 0 0;
  color: rgba(255,255,255,0.70); font-size: var(--text-small);
}
.briefing-cta__contact {
  color: rgba(255,255,255,0.70); font-size: var(--text-small);
}

/* Standalone text actions get a full touch target without changing inline
   prose links or their surrounding line rhythm. */
.action-link, .back-link, .inline-action-link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.action-link, .back-link { padding-block: 0.5rem; }
.action-link:hover, .back-link:hover, .inline-action-link:hover {
  text-decoration: underline;
}

/* --- Forms --------------------------------------------------------------- */
.form-input {
  width: 100%; min-width: 0;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  font-family: inherit; font-size: var(--text-body); line-height: 1.4;
  color: var(--navy-900); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow-wrap: break-word;
}
.form-input:hover { border-color: var(--ink-muted); }
.form-input:focus-visible, .form-input:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold); outline-offset: 2px;
  box-shadow: var(--ring);
}
textarea.form-input { resize: vertical; min-height: 6.5rem; }
select.form-input {
  appearance: none; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center;
}
.form-label {
  display: block; font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 600;
  color: var(--ink); margin-bottom: 0.375rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-label--sentence {
  font-family: var(--font-sans); font-size: var(--text-small);
  text-transform: none; letter-spacing: 0;
}
.form-optional { color: var(--ink-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-required { color: var(--danger); margin-left: 0.15rem; }

.form-input[aria-invalid="true"] { border-color: var(--danger); }
.form-input[aria-invalid="true"]:focus-visible,
.form-input[aria-invalid="true"]:focus {
  outline-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring);
}
.field-error {
  display: none; align-items: flex-start; gap: 0.35rem;
  margin-top: 0.375rem; font-size: var(--text-small); line-height: 1.45; color: var(--danger);
}
.field-error.is-visible { display: flex; }
.field-error svg { flex-shrink: 0; margin-top: 0.1rem; }

.error-summary {
  display: none; padding: 1rem 1.125rem; margin-bottom: 1.75rem;
  border: 1px solid var(--danger); border-radius: var(--r-md); background: var(--danger-bg);
  color: var(--danger-strong);
}
.error-summary.is-visible { display: block; }
.error-summary__title {
  margin: 0 0 0.5rem;
  color: var(--danger);
  font-size: var(--text-small);
  font-weight: 700;
}
.error-summary__body {
  margin: 0 0 0.5rem;
  color: var(--danger-strong);
  font-size: var(--text-small);
}
.error-summary__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--danger-strong);
  font-size: var(--text-small);
}
.error-summary__list:empty { display: none; }
.error-summary__list li + li { margin-top: 0.25rem; }
.error-summary a {
  display: flex; align-items: center;
  min-height: 44px;
  color: inherit;
  text-underline-offset: 3px;
}
.form-requirements {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
.form-requirements .form-required { margin-left: 0; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-800); color: var(--on-navy-muted); }
.site-footer--standard { padding: 3rem 1.5rem 2rem; }
/* The footer is the site's second navigation. Its hover already resolved to
   white; the colour now eases instead of snapping, which is the difference
   between a rollover and a rendering artefact on a 40-link list. */
.site-footer a {
  display: inline-flex; align-items: center; min-height: 44px;
  min-width: 44px;
  font-size: var(--text-small); color: var(--on-navy-body); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer a:hover { color: var(--surface); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__main, .site-footer__cols {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.site-footer__brand { flex: 2; min-width: 220px; }
.site-footer__group { flex: 1; min-width: 150px; }
.site-footer__brand-name {
  margin: 0 0 0.5rem; color: var(--surface);
  font-size: var(--text-body); font-weight: 800;
}
.site-footer__description {
  max-width: 280px; margin: 0 0 1.25rem;
  color: var(--on-navy-body); font-size: var(--text-small); line-height: var(--leading-small);
}
.site-footer__head {
  font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 700; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 0.5rem;
}
.site-footer__list {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.site-footer__link { color: var(--on-navy-body); }
.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-navy-rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--text-small); color: var(--on-navy-muted);
}
.site-footer__meta { margin: 0; font-size: var(--text-small); color: var(--on-navy-muted); }

/* --- Long-form policy pages --------------------------------------------- */
.policy-h2 { font-size: var(--text-title); font-weight: 700; color: var(--navy-900); margin: 2.5rem 0 0.75rem; }
.policy-h3 { font-size: var(--text-body);  font-weight: 700; color: var(--navy-900); margin: 1.75rem 0 0.5rem; }
.policy-p  { font-size: var(--text-body); line-height: 1.75; color: var(--ink); margin-bottom: 1rem; max-width: var(--measure); }
.policy-ul { font-size: var(--text-body); line-height: 1.75; color: var(--ink); margin: 0 0 1rem; padding-left: 1.25rem; max-width: var(--measure); }
.policy-ul li { margin-bottom: 0.4rem; }
.policy-a  { color: var(--gold-ink); text-underline-offset: 2px; }
.policy-ul > li > .policy-a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  vertical-align: middle;
}
.warning-box { background: var(--danger-bg); border: 1px solid var(--danger); border-radius: var(--r-md); padding: 1.25rem; margin-bottom: 1.5rem; }
.eula-card   { background: var(--surface-sunken); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.5rem; }

/* --------------------------------------------------------------- 5. Utilities */

/* display / layout */
.block{display:block}.inline-block{display:inline-block}.inline-flex{display:inline-flex}
.flex{display:flex}.grid{display:grid}.hidden{display:none}
.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1 1 0%}
.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.items-start{align-items:flex-start}
.justify-center{justify-content:center}.justify-between{justify-content:space-between}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fixed{position:fixed}.top-0{top:0}.left-0{left:0}.right-0{right:0}.z-50{z-index:50}
.overflow-hidden{overflow:hidden}.min-h-screen{min-height:100vh}.w-full{width:100%}
.mx-auto{margin-left:auto;margin-right:auto}.text-center{text-align:center}.text-left{text-align:left}

/* gap */
.gap-0{gap:0}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}
.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}
.space-x-7>*+*{margin-left:1.75rem}
.space-y-1>*+*{margin-top:.25rem}.space-y-2>*+*{margin-top:.5rem}.space-y-3>*+*{margin-top:.75rem}
.space-y-4>*+*{margin-top:1rem}.space-y-8>*+*{margin-top:2rem}

/* sizing */
.w-1\.5{width:.375rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-12{width:3rem}
.h-1\.5{height:.375rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-12{height:3rem}.h-16{height:4rem}
.max-w-xl{max-width:36rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}

/* spacing */
.p-2{padding:.5rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}
.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-5{padding-inline:1.25rem}.px-6{padding-inline:1.5rem}
.py-1{padding-block:.25rem}.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.py-4{padding-block:1rem}
.py-5{padding-block:1.25rem}.py-6{padding-block:1.5rem}.py-12{padding-block:3rem}.py-14{padding-block:3.5rem}
.py-16{padding-block:4rem}.py-20{padding-block:5rem}
.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}
.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}
.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}
.mb-12{margin-bottom:3rem}
.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}
.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-10{margin-top:2.5rem}

/* type */
.text-xs{font-size:var(--text-caption)}.text-sm{font-size:var(--text-small)}.text-base{font-size:var(--text-body)}
.text-4xl{font-size:var(--text-heading)}.text-7xl{font-size:var(--text-figure)}
.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}
.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-sans{font-family:var(--font-sans)}
.uppercase{text-transform:uppercase}
.tracking-tight{letter-spacing:-.02em}.tracking-widest{letter-spacing:.1em}
.leading-none{line-height:1}.leading-tight{line-height:1.15}.leading-relaxed{line-height:1.7}
.text-gray-800{color:var(--ink)}.text-gray-900{color:var(--navy-900)}
.uppercase{font-family:var(--font-mono)}

/* A small utility may label compact UI, but sustained prose stays at the
   1rem reading size even on legacy pages that combine both classes. */
p.text-sm.leading-relaxed { font-size: var(--text-body); }

/* Legacy pages still express some labels inline. Keep them on the documented
   label face while those pages are progressively componentised. */
[style*="text-transform:uppercase"]{font-family:var(--font-mono)}

/* surface */
.bg-white{background-color:var(--surface)}
.rounded{border-radius:var(--r-md)}.rounded-full{border-radius:var(--r-full)}
.rounded-xl{border-radius:var(--r-xl)}.rounded-2xl{border-radius:1rem}

/* ------------------------------------------------------------- 6. Responsive */

@media (min-width: 640px) {
  .sm\:px-6{padding-inline:1.5rem}
  .sm\:flex-row{flex-direction:row}
  .sm\:items-center{align-items:center}
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width: 768px) {
  :root { --text-caption: 0.75rem; }

  .md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}
  .md\:flex-row{flex-direction:row}
  .md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}
  .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .md\:gap-4{gap:1rem}
  .md\:px-8{padding-inline:2rem}.md\:pl-8{padding-left:2rem}.md\:pr-8{padding-right:2rem}
  .md\:py-16{padding-block:4rem}.md\:py-20{padding-block:5rem}
  .md\:py-24{padding-block:6rem}.md\:py-28{padding-block:7rem}
}

/* Longer government-facing labels need the full navigation width. Keeping
   the disclosure menu through tablet and compact-laptop widths prevents
   collisions while preserving the desktop navigation at 960px and above. */
@media (min-width: 960px) {
  .site-nav__links          { display: flex; }
  .site-nav .site-nav__cta  { display: inline-flex; }
  .site-nav__toggle         { display: none; }
  .site-nav__panel          { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:px-8{padding-inline:2rem}
  .lg\:flex-row{flex-direction:row}
  .lg\:justify-between{justify-content:space-between}
  .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lg\:gap-12{gap:3rem}
  .lg\:w-48{width:12rem}

  .initiative-directory__link {
    grid-template-columns: 3.5rem minmax(12rem, 0.75fr) minmax(0, 1.25fr) 2.75rem;
    gap: 1.5rem;
  }
  .initiative-directory__number,
  .initiative-directory__title,
  .initiative-directory__description,
  .initiative-directory__arrow {
    grid-row: 1;
  }
  .initiative-directory__title { grid-column: 2; }
  .initiative-directory__description { grid-column: 3; }
  .initiative-directory__arrow { grid-column: 4; }
}

/* Two-column blocks collapse below 768px. This is what caused the measured
   93-101px horizontal overflow on the legacy pages. */
.split { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }

@media (max-width: 767px) {
  :root { --text-caption: 0.875rem; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .card--pad, .nav-card, .detail-card {
    padding: clamp(1.25rem, 6vw, 1.5rem);
  }

  .comparison-ledger__header { display: none; }
  .comparison-ledger__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.5rem clamp(1rem, 5vw, 1.25rem);
  }
  .comparison-ledger__source {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-title);
  }
  .comparison-ledger__cell--after {
    margin: 0;
    padding: 1rem;
  }
  .comparison-ledger__label { display: block; }

  .briefing-cta { padding: 4rem 1rem; }
}

/* -------------------------------------------------------- 7. Motion / print */

/* --- Entrance choreography ----------------------------------------------- */
/* One orchestrated arrival per page, on the opening section only. The elements
   settle in reading order, the way a briefing is set down and squared up: the
   designation first, then the claim, then what to do about it. It runs on CSS
   alone, so a failed script cannot leave the hero invisible, and `both` fill
   means the end state is the resting state. */
.hero-enter > * > * {
  animation: hero-settle var(--dur-enter) var(--ease-out-expo) both;
}
.hero-enter > * > :nth-child(1) { animation-delay: 40ms; }
.hero-enter > * > :nth-child(2) { animation-delay: 110ms; }
.hero-enter > * > :nth-child(3) { animation-delay: 180ms; }
.hero-enter > * > :nth-child(4) { animation-delay: 250ms; }
.hero-enter > * > :nth-child(n + 5) { animation-delay: 320ms; }

@keyframes hero-settle {
  from { opacity: 0; transform: translateY(14px); }
}

/* --- Scroll reveals ------------------------------------------------------ */
/* Both classes are applied by script, never by markup, and only to elements
   that are below the fold when the script runs. Nothing a reader can already
   see is ever hidden from them, and with no script, no IntersectionObserver,
   or reduced motion in force, these rules never match anything. */
.reveal-armed {
  transition: opacity var(--dur-enter) var(--ease-out-quart),
              transform var(--dur-enter) var(--ease-out-expo);
}
.reveal-armed.reveal-pending { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    /* Without this, a staggered delay survives the collapsed duration and
       holds `both`-filled content at its opening frame: the hero would still
       be blank for 320ms for exactly the readers who asked for no motion. */
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}

@media (forced-colors: active) {
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid CanvasText;
  }
  .site-nav__toggle, .btn, .btn-primary, .btn-outline, .btn-quiet {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-nav, .site-nav__panel, .skip-link { display: none !important; }
  /* A section the reader never scrolled to must not print blank. */
  .reveal-armed.reveal-pending { opacity: 1 !important; transform: none !important; }
  .hero-enter > * > * { animation: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
