/* Modernist+ · the design system. Tokens and components in one file.
   Dark first (flat black); light bands via [data-theme="light"]. Contrast tuned to APCA and WCAG 2.
   Map: 1 Tokens · 2 Base · 3 Type · 4 Content · 5 Layout · 6 Surfaces · 7 Media · 8 Buttons · 9 Tags
        10 Cards · 11 Forms · 12 Navigation · 13 Hero · 14 SEO and wayfinding · 15 Table · 16 Dialog · 17 Scroll · 18 Motion
   Rules and pointers: readme.md and the "Start here" card. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Serif:ital,wght@1,300;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  /* — ground & ink (dark, default) — */
  --color-bg: #07080a;
  --color-surface: #0f1013;
  --color-surface-2: #16181c;
  --color-surface-3: #1f2227;
  --color-line: #1d2025;
  --color-line-strong: #30343c;
  --color-divider: #30343c;
  --color-text: #f5f6f8;
  --color-text-2: #dfe2e8;
  --color-text-3: #c3c8d2;
  --color-text-disabled: #5d626c;
  --color-inverse: #07080a;
  --color-accent: #7891cc;
  --color-accent-2: #7891cc;
  --color-accent-text: #a7b6db;
  --color-accent-fill: #1e3570;
  --color-accent-fill-hover: #263f80;
  --color-on-accent: #ffffff;
  --color-success: #3ecf7a;
  --color-warning: #f5b83d;
  /* brand constants: same value in every theme */
  --color-navy: #0a1430;
  --color-navy-deep: #07102a;
  --color-white-glass: rgba(255, 255, 255, 0.95);

  /* Ramps are ground-relative: 100 sits nearest the ground, 900 nearest the ink. */
  --color-neutral-100: #0f1013;
  --color-neutral-200: #16181c;
  --color-neutral-300: #1f2227;
  --color-neutral-400: #30343c;
  --color-neutral-500: #4f545e;
  --color-neutral-600: #7a808b;
  --color-neutral-700: #a3a9b4;
  --color-neutral-800: #cbd0d8;
  --color-neutral-900: #eceef2;

  --color-accent-100: #0c1224;
  --color-accent-200: #121b36;
  --color-accent-300: #1c2a52;
  --color-accent-400: #2c4078;
  --color-accent-500: #7891cc;
  --color-accent-600: #8ea3d4;
  --color-accent-700: #a7b6db;
  --color-accent-800: #c7d1e8;
  --color-accent-900: #e6eaf4;

  --color-accent-2-100: var(--color-accent-100);
  --color-accent-2-200: var(--color-accent-200);
  --color-accent-2-300: var(--color-accent-300);
  --color-accent-2-400: var(--color-accent-400);
  --color-accent-2-500: var(--color-accent-500);
  --color-accent-2-600: var(--color-accent-600);
  --color-accent-2-700: var(--color-accent-700);
  --color-accent-2-800: var(--color-accent-800);
  --color-accent-2-900: var(--color-accent-900);

  /* — glass — */
  --glass-bg-soft: rgba(12, 13, 16, 0.86);
  --glass-bg: rgba(12, 13, 16, 0.92);
  --glass-bg-strong: rgba(10, 11, 14, 0.97);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-sheen: linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.02) 38%, rgba(255,255,255,0) 60%); /* @kind other */
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.03); /* @kind shadow */
  /* No blur anywhere. "Glass" is a near solid tinted panel with a bright top edge, so text always sits on a known color. */
  --glass-blur: none; /* @kind other */
  --glass-blur-lg: none; /* @kind other */
  --scrim: linear-gradient(180deg, rgba(7,8,10,0) 45%, rgba(7,8,10,.28) 72%, rgba(7,8,10,.66) 100%); /* @kind other */

  /* — depth — */
  /* three layers from one overhead light: contact + key + ambient, plus a 1px top highlight that reads on black */
  --shadow-sm: 0 1px 1px rgba(0,0,0,.4), 0 2px 6px -2px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
  /* On black, depth is a hairline and a top highlight. Blur stays tight so nothing reads as a dark blob. */
  --shadow-md: 0 1px 2px rgba(0,0,0,.3), 0 6px 14px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.06);
  --shadow-lg: 0 1px 2px rgba(0,0,0,.3), 0 10px 24px -12px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.08);
  --shadow-raised: var(--shadow-sm);
  --shadow-overlay: var(--shadow-md);
  --shadow-modal: var(--shadow-lg);
  --shadow-glow: 0 0 0 1px var(--color-accent-300), 0 8px 32px -6px rgba(120,145,204,.28);

  /* — type — */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-heading: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-heading-weight: 700;
  --font-heading-stretch: 92%;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-accent: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* fluid 360→1440px, rem + vw so browser zoom still scales (Utopia method) */
  --text-display: clamp(3.5rem, 1.17rem + 10.37vw, 10.5rem); /* @kind spacing */
  --text-h1: clamp(2.5rem, 1.33rem + 5.19vw, 6rem); /* @kind spacing */
  --text-h2: clamp(2rem, 1.33rem + 2.96vw, 4rem); /* @kind spacing */
  --text-h3: clamp(1.5rem, 1.25rem + 1.11vw, 2.25rem); /* @kind spacing */
  --text-h4: clamp(1.1875rem, 1.08rem + .46vw, 1.5rem); /* @kind spacing */
  --text-lead: clamp(1.1875rem, 1.08rem + .46vw, 1.5rem); /* @kind spacing */
  --text-body: clamp(1.0625rem, 1.02rem + .19vw, 1.1875rem); /* @kind spacing */
  --text-sm: .9375rem; /* @kind spacing */
  --text-caption: .8125rem; /* @kind spacing */
  --text-micro: .6875rem; /* @kind spacing */
  --leading-tight: 1.04; /* @kind other */
  --leading-snug: 1.3; /* @kind other */
  --leading-body: 1.62; /* @kind other */
  --measure: 66ch; /* @kind spacing */

  /* — space (4pt) & layout — */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --gutter: clamp(1.25rem, .42rem + 3.7vw, 3.5rem); /* @kind spacing */
  --section-y: clamp(4rem, 2.5rem + 6.67vw, 8.5rem); /* @kind spacing */
  /* fluid space pairs: small on phones, generous on desktop */
  --space-fluid-sm: clamp(1rem, .83rem + .74vw, 1.5rem); /* @kind spacing */
  --space-fluid-md: clamp(1.5rem, 1.17rem + 1.48vw, 2.5rem); /* @kind spacing */
  --space-fluid-lg: clamp(2.5rem, 1.83rem + 2.96vw, 4.5rem); /* @kind spacing */
  --space-fluid-xl: clamp(4rem, 2.67rem + 5.93vw, 8rem); /* @kind spacing */
  --container: 1440px; /* @kind spacing */
  --container-text: 760px; /* @kind spacing */
  --nav-h: 64px; /* @kind spacing */

  /* — shape — */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* — motion — */
  --ease-out: cubic-bezier(.16, 1, .3, 1); /* @kind other */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1); /* @kind other */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* @kind other */
  --dur-1: 160ms; /* @kind other */
  --dur-2: 320ms; /* @kind other */
  --dur-3: 640ms; /* @kind other */
  --dur-4: 1100ms; /* @kind other */
  --parallax-shift: 8%; /* @kind other */
}

[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #eceef2;
  --color-surface-3: #e1e4ea;
  --color-line: #e1e4ea;
  --color-line-strong: #c7ccd5;
  --color-divider: #c7ccd5;
  --color-text: #07080a;
  --color-text-2: #262a33;
  --color-text-3: #434957;
  --color-text-disabled: #9aa0aa;
  --color-inverse: #f5f6f8;
  --color-accent: #1e3570;
  --color-accent-2: #1e3570;
  --color-accent-text: #1b2f63;
  --color-accent-fill: #1e3570;
  --color-accent-fill-hover: #172a5a;

  --color-neutral-100: #ffffff;
  --color-neutral-200: #eceef2;
  --color-neutral-300: #e1e4ea;
  --color-neutral-400: #c7ccd5;
  --color-neutral-500: #9aa0aa;
  --color-neutral-600: #6b717c;
  --color-neutral-700: #434957;
  --color-neutral-800: #262a33;
  --color-neutral-900: #0f1013;

  --color-accent-100: #eef1f7;
  --color-accent-200: #dde3ef;
  --color-accent-300: #bcc7de;
  --color-accent-400: #7d8fb8;
  --color-accent-500: #1e3570;
  --color-accent-600: #1b2f63;
  --color-accent-700: #162654;
  --color-accent-800: #101c40;
  --color-accent-900: #0a122a;

  --glass-bg-soft: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-bg-strong: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-sheen: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 50%); /* @kind other */
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 40px -16px rgba(7,8,10,.18); /* @kind shadow */

  --shadow-sm: 0 1px 1px rgba(7,8,10,.06), 0 2px 6px -1px rgba(7,8,10,.08);
  --shadow-md: 0 1px 2px rgba(7,8,10,.06), 0 8px 16px -4px rgba(7,8,10,.10), 0 24px 48px -12px rgba(7,8,10,.14), 0 0 0 1px rgba(7,8,10,.04);
  --shadow-lg: 0 2px 4px rgba(7,8,10,.06), 0 16px 32px -8px rgba(7,8,10,.14), 0 48px 96px -24px rgba(7,8,10,.24), 0 0 0 1px rgba(7,8,10,.05);
  --shadow-glow: 0 0 0 1px var(--color-accent-300), 0 8px 32px -6px rgba(30,53,112,.22);
  background: var(--color-bg);
  color: var(--color-text);
}

/* Navy band: deep brand blue ground. Use for closing calls to action and one statement section per page. */
[data-theme="navy"] {
  color-scheme: dark;
  --color-bg: #0a1430;
  --color-surface: #0f1b3c;
  --color-surface-2: #142247;
  --color-surface-3: #1a2a54;
  --color-line: #1b2a52;
  --color-line-strong: #2a3c6a;
  --color-divider: #2a3c6a;
  --color-text: #f5f7fb;
  --color-text-2: #dde4f2;
  --color-text-3: #c2cde3;
  --color-inverse: #0a1430;
  --color-accent: #9fb0d8;
  --color-accent-2: #9fb0d8;
  --color-accent-text: #b4c2e2;
  --color-accent-fill: #f5f7fb;
  --color-accent-fill-hover: #dde4f2;
  --color-on-accent: #0a1430;
  --color-neutral-800: #dde4f2;
  --color-accent-100: #121d40;
  --color-accent-200: #18264f;
  --color-accent-300: #24366a;
  --color-accent-700: #b4c2e2;
  --color-accent-800: #d3dbee;
  --glass-bg-soft: rgba(12, 22, 50, 0.88);
  --glass-bg: rgba(12, 22, 50, 0.93);
  --glass-bg-strong: rgba(10, 18, 44, 0.97);
  background: var(--color-bg);
  color: var(--color-text);
}

/* ═══ Base ═══ */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--nav-h) + var(--space-4)); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-body); line-height: var(--leading-body); font-weight: 400;
  font-kerning: normal; font-optical-sizing: auto; font-synthesis: none; font-variant-ligatures: common-ligatures;
  -webkit-hyphens: none; hyphens: none; overflow-wrap: break-word;
}
b, strong { font-weight: 600; color: var(--color-text); }
:root { interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
pre, .code { margin: 0; padding: var(--space-5); font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--color-text-2); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow-x: auto; white-space: pre; tab-size: 2; }
code { font-family: var(--font-mono); font-size: .88em; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch);
  line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 var(--space-4); text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: .98; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); line-height: 1; letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: -0.015em; line-height: 1.15; }
h5 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
h6 { font-family: var(--font-mono); font-weight: 500; font-stretch: normal; font-size: var(--text-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-3); line-height: 1.4; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
/* No orphans: headings balance their lines, running text avoids a lone last word. */
li, dd, figcaption, td, .card-body, .tile-body, .stat-label, .pillar-body, .field-hint { text-wrap: pretty; }
.display, .subhead, .lead, .card-title, .tile-title, .pillar-title, .dialog-title, blockquote, .faq summary { text-wrap: balance; }
.keep { white-space: nowrap; }
/* UI labels stay on one line. Keep them short instead of letting them wrap. */
.eyebrow, .tag, .card-kicker, .tile-kicker, .stat-value, .btn, .nav a, .breadcrumbs li { white-space: nowrap; }
.tile-kicker { font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #e4e7ec; }
a { color: var(--color-text); text-decoration-color: var(--color-line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color var(--dur-1), text-decoration-color var(--dur-1); }
a:hover { color: var(--color-accent); text-decoration-color: currentColor; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: var(--text-caption); margin-top: var(--space-3); color: var(--color-text-3); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
::selection { background: var(--color-accent-fill); color: var(--color-on-accent); }

/* ═══ Type utilities ═══ */
.display { font-family: var(--font-display); font-weight: 900; font-stretch: 66%; font-size: var(--text-display); line-height: .86; letter-spacing: -0.02em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--color-accent); }
.lead { font-size: var(--text-lead); line-height: 1.4; color: var(--color-text-2); letter-spacing: -0.01em; max-width: 40ch; }
.text-2, .text-muted { color: var(--color-text-2); }
.text-3 { color: var(--color-text-3); }
.text-accent { color: var(--color-accent-text); }
.caption { font-size: var(--text-caption); color: var(--color-text-3); }
.mono { font-family: var(--font-mono); font-size: .86em; }
.num { font-variant-numeric: tabular-nums; }
.measure { max-width: 62ch; }
.link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size var(--dur-3) var(--ease-out), color var(--dur-1); }
.link:hover { color: inherit; background-size: 100% 1px; background-position: 0 100%; }

/* ═══ Type mix: grotesk structure + a serif italic accent ═══ */
/* Wrap one or two words of a heading in <em> to switch them to the serif italic. One accent per heading. */
h1 em, h2 em, h3 em, h4 em, .display em, .subhead em, .lead em, .tile-title em, .card-title em, .dialog-title em, .stat-value em, .pillar-title em { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-stretch: normal; letter-spacing: -0.01em; }
.display em { text-transform: none; font-size: .9em; font-weight: 300; letter-spacing: -0.025em; }
.accent-serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.subhead { margin: 0; font-family: var(--font-body); font-size: clamp(1.1875rem, 1.06rem + .56vw, 1.5rem); font-weight: 400; line-height: 1.45; letter-spacing: -0.005em; color: var(--color-text-2); max-width: 44ch; text-wrap: pretty; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin-bottom: var(--space-fluid-md); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--space-fluid-lg); } .section-head > .eyebrow { grid-column: 1 / -1; } }
.quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.quote blockquote { margin: 0; font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: var(--text-h2); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; max-width: 26ch; }
.quote figcaption { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.quote figcaption span { font-weight: 400; color: var(--color-text-2); }

/* ═══ Pillars: numbered offering / process ═══ */
.pillars { display: grid; gap: var(--space-fluid-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-fluid-sm); } }
.pillar { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--color-line-strong); }
.pillar-num { font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500; letter-spacing: .14em; color: var(--color-accent-text); }
.pillar-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: var(--text-h3); line-height: 1.05; letter-spacing: -0.025em; }
.pillar-body { margin: 0; color: var(--color-text-2); max-width: 44ch; }

/* ═══ Content: lists, feature rows, long form ═══ */
/* Lists break dense copy into scannable points. 3 to 6 items, one idea each, no trailing periods on fragments. */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.list > li { position: relative; padding-left: 28px; color: var(--color-text-2); line-height: 1.5; text-wrap: pretty; }
.list > li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; background: var(--color-accent); }
.list-check > li::before { left: 5px; top: .2em; width: 6px; height: 12px; background: none; border: solid var(--color-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.list-num { counter-reset: md-li; }
.list-num > li { counter-increment: md-li; padding-left: 40px; }
.list-num > li::before { content: counter(md-li, decimal-leading-zero); width: auto; height: auto; left: 0; top: .32em; background: none; font: 500 var(--text-micro)/1 var(--font-mono); letter-spacing: .1em; color: var(--color-accent-text); }
.list-divided { gap: 0; }
.list-divided > li { padding-block: var(--space-4); }
.list-divided > li + li { border-top: 1px solid var(--color-line); }
.list-divided > li::before { top: calc(var(--space-4) + .58em); }
.list-divided.list-num > li::before { top: calc(var(--space-4) + .32em); }
.list-divided.list-check > li::before { top: calc(var(--space-4) + .2em); }
/* Image and copy share one height: the image is landscape so a short list never floats in empty space */
.feature { display: grid; gap: var(--space-fluid-lg); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .feature-reverse > :first-child { order: 2; } }
.feature > .media { aspect-ratio: 3 / 2; }
.media-caption { position: absolute; left: var(--space-4); bottom: var(--space-4); display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); color: #f5f6f8; }
.media-caption b { color: #f5f6f8; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.media-caption span { font-size: var(--text-caption); color: #e4e7ec; }
.feature-body { display: flex; flex-direction: column; gap: var(--space-6); }
.feature-body h2, .feature-body h3 { margin: 0; }
.prose { max-width: var(--measure); color: var(--color-text-2); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--text-h3); color: var(--color-text); margin-top: 2.2em; }
.prose h3 { font-size: var(--text-h4); color: var(--color-text); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--color-text); text-decoration-color: var(--color-accent); }
.prose ul, .prose ol { padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.prose ul > li, .prose ol > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--color-accent); }
.prose ol { counter-reset: md-pr; } .prose ol > li { counter-increment: md-pr; }
.prose ol > li::before { content: counter(md-pr) "."; position: absolute; left: 0; font-weight: 600; color: var(--color-accent-text); }
.prose blockquote { margin-block: 1.8em; font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: var(--text-h4); line-height: 1.35; color: var(--color-text); }
.prose figure { margin-block: 2em; }
.prose img { border-radius: var(--radius-md); }

/* ═══ Layout ═══ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-text { max-width: calc(var(--container-text) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
/* Sections separate by space and ground change, not rules */
.section-image + .section-image { margin-top: var(--section-y); }
.grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }
.grid-12 { display: grid; gap: var(--space-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hr { height: 1px; border: 0; margin: var(--space-8) 0; background: var(--color-line); }
.hr-strong { height: 2px; background: var(--color-text); }

/* ═══ Surfaces: glass & depth ═══ */
/* Glass = blur + translucent fill + top sheen + bright 1px top edge. Only over imagery or moving content. */
.glass { background: var(--glass-sheen), var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight); }
.glass-soft { background: var(--glass-sheen), var(--glass-bg-soft); }
.glass-strong { background: var(--glass-sheen), var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); }
.glass-panel { padding: var(--space-6); border-radius: var(--radius-lg); }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* ═══ Media ═══ */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface-2); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-4x5 { aspect-ratio: 4 / 5; } .ratio-1x1 { aspect-ratio: 1; } .ratio-21x9 { aspect-ratio: 21 / 9; }
.scrim::after { content: ""; position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }
.grayscale { filter: grayscale(1) contrast(1.08); }
/* 4K ready: crisp downscaling, no blurry upscales, placeholder tone while loading */
img { image-rendering: auto; background-color: var(--color-surface); }
.media > img, .tile > img, .hero-media, .section-image > .bg { transform: translateZ(0); backface-visibility: hidden; }
@media (min-resolution: 2dppx) { .grain { display: none; } }

/* ═══ Buttons ═══ */
.btn {
  --btn-h: 48px; /* @kind spacing */
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--btn-h); padding: 0 calc(var(--btn-h) * .46); isolation: isolate; overflow: hidden;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  color: var(--color-text); background: transparent; border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.btn:hover { color: inherit; }
.btn:active { transform: scale(.97); }
.btn svg { display: block; flex: none; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { .btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); } }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-sm { --btn-h: 36px; font-size: 13px; }
.btn-lg { --btn-h: 58px; font-size: 17px; }
.btn-primary { background: var(--color-text); color: var(--color-inverse); }
.btn-primary:hover { background: var(--color-neutral-800); color: var(--color-inverse); }
.btn-accent { background: var(--color-accent-fill); color: var(--color-on-accent); }
.btn-accent:hover { background: var(--color-accent-fill-hover); color: var(--color-on-accent); }
.btn-accent:focus-visible { box-shadow: var(--shadow-glow); }
.btn-secondary { border-color: var(--color-line-strong); background: linear-gradient(var(--color-text), var(--color-text)) no-repeat 0 100% / 100% 0; }
.btn-secondary:hover { background-size: 100% 100%; color: var(--color-inverse); border-color: var(--color-text); }
.btn-ghost { padding-inline: var(--space-3); }
.btn-ghost:hover { background-color: var(--color-surface-2); }
.btn-glass { background: var(--glass-sheen), var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-border); box-shadow: var(--glass-highlight); }
.btn-glass:hover { background: var(--glass-sheen), var(--glass-bg-strong); }
.btn-icon { width: var(--btn-h); padding: 0; }
.btn-block { width: 100%; }

/* ═══ Tags ═══ */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--color-text-2); background: transparent; border: 1px solid var(--color-line-strong); border-radius: var(--radius-pill); align-self: flex-start;
}
.cluster > .tag, .row > .tag { align-self: center; }
.tag-accent, .tag-accent-2 { background: var(--color-accent-100); color: var(--color-accent-800); border-color: var(--color-accent-300); }
.tag-neutral { background: var(--color-surface-2); color: var(--color-text-2); }
.tag-solid { background: var(--color-text); color: var(--color-inverse); border-color: var(--color-text); }
.tag-outline { background: transparent; border-color: var(--color-line-strong); color: var(--color-text); }
.tag-glass { background: var(--glass-sheen), var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-border); color: var(--color-text); }
.tag-pill { border-radius: var(--radius-pill); }
.tag-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.tag-count { font-variant-numeric: tabular-nums; }

/* ═══ Cards ═══ */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-line);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2);
}
a.card, .card-link { color: inherit; text-decoration: none; }
a.card::before, .card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-md); opacity: 0; transition: opacity var(--dur-3) var(--ease-out); pointer-events: none; }
a.card:hover, .card-link:hover { color: inherit; }
@media (hover: hover) {
  a.card:hover, .card-link:hover { transform: translateY(-4px); border-color: var(--color-line-strong); }
  a.card:hover::before, .card-link:hover::before { opacity: 1; }
}
.card-kicker { font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-3); }
.card-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: 24px; line-height: 1.08; letter-spacing: -0.02em; }
.card-body { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-2); flex: 1; }
.card-meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-caption); color: var(--color-text-3); padding-top: var(--space-3); border-top: 1px solid var(--color-line); }
.card-media { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-2); overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 10; background: var(--color-surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.05); } }
.card-glass { background: var(--glass-sheen), var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-border); box-shadow: var(--glass-highlight); }

/* Tile: full-bleed image card with copy on a scrim */
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: var(--space-6); overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); background: var(--color-surface-2); color: #f5f6f8; text-decoration: none; }
.tile > img, .tile > .tile-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
@media (hover: hover) { .tile:hover > img, .tile:hover > .tile-media { transform: scale(1.05); } }
.tile:hover { color: #f5f6f8; }
.tile-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: clamp(26px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.025em; margin: var(--space-2) 0 var(--space-3); }
.tile-body { font-size: var(--text-sm); color: #e4e7ec; max-width: 40ch; margin: 0; }

/* Stat */
.stat { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 2px solid var(--color-text); }
.stat-value { font-family: var(--font-display); font-weight: 800; font-stretch: 72%; font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--text-sm); color: var(--color-text-2); max-width: 32ch; }

/* ═══ Forms ═══ */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label { font-size: var(--text-caption); font-weight: 600; color: var(--color-text-2); }
.field-hint { font-size: var(--text-caption); color: var(--color-text-3); }
.field-error .input { border-color: var(--color-accent); }
.field-error .field-hint { color: var(--color-accent-text); }
.input {
  width: 100%; min-height: 48px; padding: 0 var(--space-4); font: inherit; font-size: 16px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface-2); border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-2) var(--ease-out); -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--color-text-3); }
.input:hover { border-color: var(--color-line-strong); }
.input:focus-visible { outline: none; border-color: var(--color-accent); background: var(--color-surface); box-shadow: 0 0 0 4px var(--color-accent-100); }
textarea.input { min-height: 120px; padding-block: var(--space-3); resize: vertical; line-height: 1.5; }
select.input { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--color-text-2) 50%), linear-gradient(135deg, var(--color-text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.radio, .check { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; cursor: pointer; font-size: var(--text-sm); }
.radio input, .check input, .seg-opt input, .switch input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-line-strong); transition: border-color var(--dur-1), box-shadow var(--dur-2) var(--ease-spring); }
.radio:hover .dot { border-color: var(--color-text-2); }
.radio input:checked + .dot { border-color: var(--color-accent); box-shadow: inset 0 0 0 5px var(--color-accent); }
.radio input:focus-visible + .dot, .switch input:focus-visible + .track { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.switch { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; cursor: pointer; font-size: var(--text-sm); }
.switch .track { position: relative; width: 46px; height: 28px; flex: none; border-radius: var(--radius-pill); background: var(--color-surface-3); transition: background-color var(--dur-2) var(--ease-out); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform var(--dur-2) var(--ease-spring); }
.switch input:checked + .track { background: var(--color-accent-fill); }
.switch input:checked + .track::after { transform: translateX(18px); }
.seg { position: relative; display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); background: var(--color-surface-2); border: 1px solid var(--color-line); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-4); font-size: 14px; font-weight: 600; color: var(--color-text-2); border-radius: var(--radius-pill); cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2); }
.seg-opt:hover { color: var(--color-text); }
.seg-opt:has(input:checked) { background: var(--color-text); color: var(--color-inverse); box-shadow: var(--shadow-sm); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ═══ Navigation ═══ */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--gutter); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-border); }
.nav-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 900; font-stretch: 70%; font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--color-text); text-decoration: none; margin-right: auto; }
.nav-brand::before { content: ""; width: 12px; height: 12px; background: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav a:not(.btn):not(.nav-brand) { position: relative; color: var(--color-text-2); text-decoration: none; font-size: 14px; font-weight: 500; padding-block: var(--space-2); transition: color var(--dur-1); }
.nav a:not(.btn):not(.nav-brand)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-3) var(--ease-out); }
.nav a:not(.btn):not(.nav-brand):hover, .nav a[aria-current] { color: var(--color-text); }
.nav a:not(.btn):not(.nav-brand):hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-menu { display: none; }
@media (max-width: 767px) { .nav-links { display: none; } .nav-menu { display: inline-flex; } .nav .nav-cta { display: none; } }
/* Floating pill variant: sits over the hero, detaches from the edges */
.nav-float { position: fixed; top: 12px; left: 50%; translate: -50% 0; width: min(100% - 24px, 1240px); height: 60px; padding: 0 8px 0 20px; border: 1px solid var(--glass-border); border-radius: var(--radius-pill); background: var(--glass-sheen), var(--glass-bg); box-shadow: var(--glass-highlight); }
/* Mobile sheet: <button popovertarget="menu"> + <div id="menu" popover class="nav-sheet">. No JS needed. */
.nav-sheet { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: calc(var(--nav-h) + var(--space-10)) var(--gutter) calc(var(--space-8) + env(safe-area-inset-bottom)); border: 0; color: var(--color-text); background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); flex-direction: column; gap: var(--space-8); opacity: 0; translate: 0 -16px; transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-3) var(--ease-out), display var(--dur-3) allow-discrete, overlay var(--dur-3) allow-discrete; }
.nav-sheet:popover-open { display: flex; opacity: 1; translate: 0 0; }
@starting-style { .nav-sheet:popover-open { opacity: 0; translate: 0 -16px; } }
.nav-sheet::backdrop { background: transparent; }
.nav-sheet nav { display: flex; flex-direction: column; }
.nav-sheet nav a { padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: var(--text-h3); letter-spacing: -0.025em; line-height: 1.1; color: var(--color-text); text-decoration: none; }
.nav-sheet-close { position: absolute; top: 14px; right: var(--gutter); }

/* ═══ Hero (background image) ═══ */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--nav-h) + var(--space-fluid-md)) 0 var(--space-fluid-md); color: #f5f6f8; background: #07080a; }
.hero > .container { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-fluid-md); }
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: md-kenburns 14s var(--ease-out) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,10,.36) 0%, rgba(7,8,10,0) 20%, rgba(7,8,10,0) 50%, rgba(7,8,10,.62) 100%); }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,.2); }
.hero-top .eyebrow { color: #eceef2; }
/* Headline fills the frame: sized by the smaller of width and height so it never crowds the fold */
/* Height-aware: the headline takes whatever the fold leaves after nav, top rule and foot, so the whole hero always fits one screen */
.hero-title { align-self: center; margin: 0; color: #f5f6f8; font-size: clamp(3.5rem, min(23vw, (100svh - 22rem) / 1.68), 17rem); line-height: .84; }
@media (min-height: 760px) and (min-width: 900px) { .hero-title .mask-line:last-child { text-align: end; } }
.hero-foot { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 1200px) { .hero-foot { grid-template-columns: minmax(0, 5fr) auto minmax(0, 4fr); } }
.hero-card { display: none; }
@media (min-width: 1200px) { .hero-card { display: flex; justify-self: end; align-items: center; gap: var(--space-4); max-width: 340px; padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); border-radius: var(--radius-md); color: #f5f6f8; text-decoration: none; transition: background-color var(--dur-2); } .hero-card:hover { color: #f5f6f8; background: var(--glass-bg-strong); } }
.hero-card img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: var(--radius-sm); }
.hero-card b { display: block; font-size: var(--text-sm); font-weight: 600; }
.hero-card span { font-size: var(--text-caption); color: #e4e7ec; }

/* Image band: full bleed photo under a dark scrim, white type */
.band-image { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); color: #f5f6f8; background: #07080a; }
.band-image > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,8,10,.42); }
.band-image .stat { border-top-color: #f5f6f8; }
.band-image .stat-label, .band-image .subhead, .band-image .eyebrow { color: #eceef2; }
.pillar:has(.media) { border-top: 0; padding-top: 0; }
.pillar .media { margin-bottom: var(--space-3); aspect-ratio: 4 / 3; }
.hero .lead, .hero .subhead { color: #eceef2; }

/* ═══ SEO and wayfinding ═══ */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; border-radius: var(--radius-pill); background: var(--color-text); color: var(--color-inverse); font-weight: 600; font-size: var(--text-sm); text-decoration: none; translate: 0 -200%; transition: translate var(--dur-2) var(--ease-out); }
.skip-link:focus-visible { translate: 0 0; color: var(--color-inverse); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: var(--text-caption); color: var(--color-text-3); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before { content: "/"; color: var(--color-neutral-500); }
.breadcrumbs a { color: var(--color-text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs [aria-current] { color: var(--color-text); font-weight: 500; }
/* FAQ: native details. Smooth open where ::details-content is supported. Pair with FAQPage JSON-LD. */
.faq { border-top: 1px solid var(--color-line-strong); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); min-height: 64px; padding-block: var(--space-5); cursor: pointer; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: var(--text-h4); line-height: 1.2; letter-spacing: -0.015em; transition: color var(--dur-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--color-accent); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform var(--dur-3) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--color-accent-text); }
.faq details > :not(summary) { margin: 0; padding-bottom: var(--space-6); max-width: 62ch; color: var(--color-text-2); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
/* Table of contents for long pages; sticky beside .prose */
.toc { display: flex; flex-direction: column; font-size: var(--text-sm); }
.toc a { padding: 8px 0 8px 16px; border-left: 1px solid var(--color-line-strong); color: var(--color-text-3); text-decoration: none; transition: color var(--dur-1), border-color var(--dur-1); }
.toc a:hover, .toc a[aria-current] { color: var(--color-text); border-left-color: var(--color-accent); }
.article { display: grid; gap: var(--space-fluid-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .article { grid-template-columns: 220px minmax(0, 1fr); } .article > .toc { position: sticky; top: calc(var(--nav-h) + var(--space-8)); align-self: start; } }

/* ═══ Table ═══ */
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: var(--text-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line-strong); }
.table td { padding: var(--space-4); border-bottom: 1px solid var(--color-line); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background-color var(--dur-1); }
.table tbody tr:hover { background: var(--color-surface); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ═══ Dialog / sheet ═══ */
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-4); background: rgba(0,0,0,.5); -webkit-backdrop-filter: none; backdrop-filter: none; animation: md-fade var(--dur-2) var(--ease-out) both; }
.dialog { width: min(480px, 100%); display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-lg); animation: md-rise var(--dur-3) var(--ease-out) both; }
.dialog-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: 28px; line-height: 1.05; letter-spacing: -0.025em; }
.dialog-body { font-size: var(--text-sm); color: var(--color-text-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
@media (max-width: 600px) {
  .dialog-backdrop { place-items: end stretch; padding: 0; }
  .dialog { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-6) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom)); animation-name: md-sheet; }
  .dialog-actions { flex-direction: column-reverse; } .dialog-actions .btn { width: 100%; }
}

/* ═══ Responsive grids: even rows, never a lone card ═══ */
/* Column counts only step through divisors of the item count. 3 items go 1 → 3, 4 items go 1 → 2 → 4, 6 items go 1 → 2 → 3 → 6. */
.cols-2, .cols-3, .cols-4, .cols-6 { display: grid; gap: var(--space-fluid-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cols-2, .cols-4, .cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Orphan guard: an odd last item in a 2 column row spans the full row instead of sitting alone */
@media (min-width: 640px) and (max-width: 999px) { .cols-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 640px) { .cols-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 899px) { .cols-6 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Rail on phones: card rows become a swipe rail under 760px so cards never pile into a long column */
@media (max-width: 759px) {
  .rail-mobile { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: var(--space-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) var(--space-2); margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .rail-mobile::-webkit-scrollbar { display: none; }
  .rail-mobile > * { scroll-snap-align: start; grid-column: auto !important; }
}

/* ═══ Alignment ═══ */
/* Left is the default everywhere. Center only short standalone moments (3 lines or fewer at 360px): closing calls to action, a single quote, a stat row heading. */
.center { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.center > * { margin-inline: auto; }
.center .subhead, .center .lead { max-width: 36ch; }
/* Centered on tablet and desktop, left on phones where centered rag gets messy */
.center-md { text-align: left; }
@media (min-width: 768px) { .center-md { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; } .center-md > * { margin-inline: auto; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.center .actions, .center-md .actions { justify-content: center; }
@media (max-width: 479px) { .actions > .btn, .hero .cluster > .btn { flex: 1 1 100%; } }

/* ═══ Built in imagery: backgrounds and fading edges ═══ */
/* Prefer image led sections over boxes. Cards are for repeated, comparable items only. */
.fade-b { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.fade-t { -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent); mask-image: linear-gradient(0deg, #000 55%, transparent); }
.fade-y { -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.fade-l { -webkit-mask-image: linear-gradient(270deg, #000 50%, transparent); mask-image: linear-gradient(270deg, #000 50%, transparent); }
.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent); mask-image: linear-gradient(90deg, #000 50%, transparent); }
.fade-x { -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.fade-radial { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%); }
/* Section image: a photo behind the whole section that dissolves into the page ground at top and bottom.
   Never place two image led sections back to back: put a solid band (white or black) between them. */
.section-image { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); }
.section-image > .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.section-image::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 28%, transparent) 22%, color-mix(in srgb, var(--color-bg) 34%, transparent) 72%, var(--color-bg) 100%); }
.section-image.side::after { background: linear-gradient(90deg, color-mix(in srgb, var(--color-bg) 40%, transparent) 0%, transparent 45%), linear-gradient(180deg, var(--color-bg) 0%, transparent 18%, transparent 82%, var(--color-bg) 100%); }
@media (max-width: 767px) { .section-image.side::after { background: linear-gradient(180deg, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 70%, transparent) 30%, color-mix(in srgb, var(--color-bg) 85%, transparent) 70%, var(--color-bg) 100%); } }
/* Bleed: image runs past the container to the screen edge on one side */
.media-bleed { margin-right: calc(var(--gutter) * -1); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.feature-reverse .media-bleed { margin-right: 0; margin-left: calc(var(--gutter) * -1); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
@media (max-width: 899px) { .media-bleed, .feature-reverse .media-bleed { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }
/* White glass: frosted white panel with dark ink, for light moments over photos */
.glass-light { color: #07080a; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 50%), var(--color-white-glass); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); border: 1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 #fff, 0 20px 50px -20px rgba(7,8,10,.45); }
.glass-light .card-body, .glass-light p { color: #262a33; }

/* Transparent mix ins: quiet layers that keep the page black while adding depth */
.tint-navy { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--color-navy) 55%, transparent) 100%); }
.tint-glow { background: linear-gradient(180deg, color-mix(in srgb, var(--color-navy) 60%, transparent) 0%, transparent 70%); border-top: 1px solid var(--color-line); }
.surface-clear { background: rgba(255,255,255,.025); border-block: 1px solid var(--glass-border); }
[data-theme="light"] .surface-clear { background: rgba(255,255,255,.55); }

/* ═══ Phone adjustments (under 768px) ═══ */
@media (max-width: 767px) {
  .tile { min-height: 340px; padding: var(--space-5); }
  .hero-top > :not(:first-child) { display: none; }
  .section-head { gap: var(--space-4); }
  .card { padding: var(--space-5); }
  .card-media { margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-2); }
  .quote blockquote { font-size: var(--text-h3); }
}

/* ═══ Scroll patterns ═══ */
/* Rail: horizontal snap carousel that bleeds to the screen edge. Swipe on touch, shift+wheel or trackpad on desktop. */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 380px); gap: var(--space-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) var(--space-2); margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wide { grid-auto-columns: min(88%, 620px); }
/* Stack: cards pin and pile up as you scroll past */
.stack-scroll { display: grid; gap: var(--space-fluid-md); }
.stack-scroll > * { position: sticky; top: calc(var(--nav-h) + var(--space-8) + var(--i, 0) * 14px); }
/* Pin: media stays put while the copy scrolls beside it */
.pin { display: grid; gap: var(--space-fluid-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pin { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } .pin-media { position: sticky; top: calc(var(--nav-h) + var(--space-8)); } }
.pin-steps { display: flex; flex-direction: column; gap: var(--space-fluid-xl); padding-block: var(--space-fluid-lg); }

/* ═══ Motion ═══ */
.reveal { animation: md-rise var(--dur-4) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
.mask-line { display: block; overflow: hidden; padding: .06em .08em .16em 0; margin: -.06em -.08em -.16em 0; }
.mask-line > span { display: block; animation: md-line var(--dur-4) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
/* Scroll-driven (Chromium/Safari 26+; others simply show content static). Transform/opacity only — compositor-friendly. */
.parallax-wrap { position: relative; overflow: hidden; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-scroll { animation: md-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .parallax { animation: md-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; will-change: transform; }
    .hero-media.parallax { animation: md-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .scale-in { animation: md-scale-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .scroll-progress { animation: md-progress linear both; animation-timeline: scroll(root); }
    .nav:not(.nav-float) { animation: md-nav-condense linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
    .nav-float { animation: md-nav-float linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
    .stack-scroll > * { animation: md-stack linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%; }
    .fade-in-view { animation: md-fade linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
  }
}
/* Cross-document page transitions (View Transitions API) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: var(--dur-2) var(--ease-in-out) both md-vt-out; }
::view-transition-new(root) { animation: var(--dur-3) var(--ease-out) both md-vt-in; }
.marquee { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; gap: var(--space-12); padding-right: var(--space-12); animation: md-marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes md-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes md-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes md-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes md-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes md-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes md-parallax { from { transform: translateY(calc(var(--parallax-shift) * -1)) scale(1.18); } to { transform: translateY(var(--parallax-shift)) scale(1.18); } }
@keyframes md-scale-in { from { transform: scale(.92); border-radius: var(--radius-lg); } to { transform: none; border-radius: 0; } }
@keyframes md-progress { to { transform: scaleX(1); } }
@keyframes md-nav-condense { to { height: 56px; background: var(--glass-bg-strong); border-bottom-color: var(--color-line-strong); } }
@keyframes md-nav-float { to { background: var(--glass-sheen), var(--glass-bg-strong); height: 54px; } }
@keyframes md-stack { to { scale: .94; filter: brightness(.7); } }
@keyframes md-vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes md-vt-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes md-marquee { to { transform: translateX(-100%); } }
@keyframes md-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-timeline: auto !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ═══ Hero v2 · type on solid ground ═══ */
/* Headline, subhead and buttons sit on flat black. The photograph follows as a full width plate with no text on it. Light on dark, always readable. */
.hero-plain { padding-top: calc(var(--nav-h) + var(--space-fluid-lg)); background: var(--color-bg); }
.hero-plain .hero-meta { display: flex; justify-content: space-between; gap: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-line); }
.hero-plain .display { margin: var(--space-fluid-md) 0 0; }
.hero-plain .hero-row { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); align-items: end; margin-top: var(--space-fluid-md); }
@media (min-width: 1100px) { .hero-plain .hero-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .hero-plain .hero-row .actions { justify-content: flex-end; flex-wrap: nowrap; } }
.hero-plate { position: relative; margin-top: var(--space-fluid-lg); aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface); }
.hero-plate > img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .hero-plate { aspect-ratio: 4 / 5; border-radius: var(--radius-md); } .hero-plain .hero-meta > :not(:first-child) { display: none; } }
/* Photo band: an image break with no copy on it */
.photo-band { aspect-ratio: 21 / 8; overflow: hidden; background: var(--color-surface); }
.photo-band > img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .photo-band { aspect-ratio: 4 / 3; } }
/* Solid nav: flat black bar, never see through */
.nav-solid { background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
/* Plate caption: a solid label pinned to a photo corner */
.plate-label { position: absolute; left: var(--space-4); bottom: var(--space-4); display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); background: #ffffff; color: #07080a; }
.plate-label b { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-stretch: var(--font-heading-stretch); font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.02em; color: #07080a; white-space: nowrap; }
.plate-label span { font-size: var(--text-caption); color: #262a33; white-space: nowrap; }
/* Quote split: solid white panel beside a photo */
.quote-split { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .quote-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.quote-split > .media { border-radius: 0; min-height: 320px; }
.quote-split > .quote-body { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-10); padding: var(--space-fluid-md); background: #ffffff; color: #07080a; }
.quote-split .quote blockquote { color: #07080a; font-size: var(--text-h3); }
.quote-split .quote figcaption { color: #07080a; } .quote-split .quote figcaption span { color: #434957; }
.quote-split .eyebrow { color: #434957; }
.quote-split a { color: #07080a; text-decoration-color: #1e3570; }
/* Forms: clean fields, messages inline with the label, nothing trailing underneath */
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.field-row .field-msg { font-size: var(--text-caption); color: var(--color-text-3); white-space: nowrap; }
.field-error .field-msg { color: #ff8a7a; }
[data-theme="light"] .field-error .field-msg { color: #b3261e; }

/* ═══ Polish layer · invariants ═══
   One rule per concern so every page behaves the same.
   I1 Spacing: 3 rhythms only. Inside a component 8 to 24px. Between components --space-fluid-md. Between sections --section-y.
   I2 Color: ink and ground carry the page. Navy appears only as one mark per view: eyebrow square, active nav line, focus ring, list number.
   I3 Radius: pill for controls, 16px for media and cards, 8px for inputs and labels. Nothing else.
   I4 Lines: 1px hairlines only, and only where they group content (nav, FAQ, table, stat top). Sections separate by space.
   I5 Motion: color and border 160ms, surfaces 320ms, movement 640ms on --ease-out. Hover lifts 2px at most. No bounce.
   I6 Focus: one ring everywhere, 2px navy at 3px offset. */
:root { --radius-control: var(--radius-pill); --radius-media: 16px; --radius-field: 8px; --ring: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent); /* @kind shadow */ }
.section + .section { border-top: 0; }
.section-head { margin-bottom: var(--space-fluid-lg); }
.section-head .subhead { color: var(--color-text-2); }
.media, .tile, .card, .hero-plate, .quote-split { border-radius: var(--radius-media); }
.card-media { border-radius: calc(var(--radius-media) - 6px); overflow: hidden; }
.input, .seg, .plate-label, .tag:not(.tag-pill) { border-radius: var(--radius-field); }
.seg { border-radius: var(--radius-control); }
.btn, a.card, .tile, .input, .tag, .nav a, .faq summary, .link, .seg-opt { transition-timing-function: var(--ease-out); }
.btn { transition-property: background-color, background-size, color, border-color, transform; transition-duration: var(--dur-1), var(--dur-2), var(--dur-1), var(--dur-1), var(--dur-1); }
.btn-primary:hover { background: #dfe2e8; }
[data-theme="light"] .btn-primary:hover { background: #262a33; }
.btn-secondary { border-color: var(--color-line-strong); }
.btn-ghost:hover { background-color: color-mix(in srgb, var(--color-text) 6%, transparent); }
.btn:focus-visible, .input:focus-visible, .seg-opt:has(input:focus-visible), .radio input:focus-visible + .dot, .switch input:focus-visible + .track, a.card:focus-visible, .tile:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-accent:focus-visible { box-shadow: var(--ring); }
@media (hover: hover) {
  a.card:hover, .tile:hover { transform: translateY(-2px); }
  a.card:hover { border-color: var(--color-line-strong); }
}
a.card, .tile { transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-1); }
a.card::before { display: none; }
.tile > img { transition-duration: var(--dur-4); }
@media (hover: hover) { .tile:hover > img { transform: scale(1.03); } .card:hover .card-media img { transform: scale(1.03); } }
.stat { border-top: 1px solid var(--color-line-strong); padding-top: var(--space-5); gap: var(--space-3); }
.stat-label { color: var(--color-text-2); }
.list-num > li::before { color: var(--color-accent-text); }
.list > li::before { background: var(--color-text-3); }
.list-check > li::before { background: none; border-color: var(--color-accent); }
.eyebrow { color: var(--color-text-3); }
.faq { border-top: 1px solid var(--color-line); }
.input { background: var(--color-surface); border-color: var(--color-line-strong); }
.input:hover { border-color: var(--color-text-3); }
.input:focus-visible { border-color: var(--color-accent); background: var(--color-surface); }
.reveal, .reveal-scroll { transition-timing-function: var(--ease-out); }
.nav-solid { box-shadow: none; }
::selection { background: #1e3570; color: #ffffff; }
