/* =====================================================================
   PIPS — Design System
   "The Round Table of Generations"
   Tokens from the PIPS Developer Spec (Ink Black, Signal Gold, Archivo + Inter).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --ink: #111111;
  --ink-2: #191919;
  --ink-3: #232323;
  --ink-line: #2E2E2E;
  --gold: #FFCC02;
  --gold-dark: #E6B800;
  --gold-tint: #FFF6CC;
  --gold-wash: #FFFAE6;
  --on-gold: #111111;     /* text on gold fills */
  --ink-bg: var(--ink);   /* dark surfaces: hero, page headers, footer, ink sections */

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #F7F7F5;
  --paper-2: #F0F0EE;
  --hairline: #E0E0DE;
  --hairline-strong: #CFCFCB;
  --slate: #6B6B6B;
  --text: #333333;

  /* Functional */
  --navy: #1B2A4A;
  --navy-tint: #E9EDF4;
  --green: #2E7D32;
  --red: #B3261E;

  /* On-ink text */
  --on-ink: #F5F5F2;
  --on-ink-muted: #A3A39E;
  --on-ink-faint: #8F8F89;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-display: clamp(2.4rem, 1.3rem + 3.2vw, 4.25rem);
  --fs-h1: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);   /* 30 → 40 */
  --fs-h2: clamp(1.5rem, 1.3rem + .9vw, 1.75rem);     /* 24 → 28 */
  --fs-h3: 1.25rem;                                    /* 20 */
  --fs-body: 1rem;                                     /* 16 */
  --fs-lede: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-small: .8125rem;                                /* 13 */
  --fs-label: .875rem;                                 /* 14 */

  /* Space — 8px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: 80px;
  --gutter: 48px;
  --maxw: 1240px;

  /* Shape */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-card: 0 1px 3px rgba(17,17,17,.08);
  --shadow-hover: 0 6px 20px rgba(17,17,17,.12);
  --shadow-pop: 0 18px 50px rgba(17,17,17,.18);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 600ms;

  /* Header */
  --nav-h: 72px;
  --nav-h-compact: 76px;
}

@media (min-width: 1680px) { :root { --maxw: 1440px; --gutter: 64px; } }
@media (min-width: 2200px) { :root { --maxw: 1680px; --gutter: 80px; } }
@media (min-width: 2800px) { :root { --maxw: 2040px; --gutter: 96px; } }
@media (max-width: 1024px) { :root { --gutter: 24px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; --section-y: 48px; } }

/* ---------- 2. Base ---------- */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h-compact) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.625;
  color: var(--text);
  background: var(--white);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.2; font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 800; font-stretch: 108%; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; }
h4 { font-size: 1rem; line-height: 1.35; font-weight: 700; }
.display {
  font-size: var(--fs-display);
  line-height: 1;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--text); max-width: 62ch; }
.small { font-size: var(--fs-small); line-height: 1.4; color: var(--slate); }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum", "lnum"; }
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-dark); }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
.on-ink :focus-visible, .on-ink:focus-visible { outline-color: var(--gold); }
input, textarea { caret-color: var(--navy); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 10px; border: 3px solid var(--white); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--on-gold); padding: 10px 16px; font-weight: 700; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink-bg); color: var(--on-ink-muted); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-ink); }
.section--tight { padding: var(--s-7) 0; }
.section + .section--rule { border-top: 1px solid var(--hairline); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5em 0 0; color: var(--slate); max-width: 56ch; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; gap: var(--s-6); } }

.with-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (max-width: 1000px) { .with-sidebar { grid-template-columns: 1fr; gap: var(--s-5); } }

.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }

/* ---------- 4. Icons ---------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- 5. Buttons & links ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label);
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-s);
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { --btn-bg: var(--gold); --btn-fg: var(--on-gold); --btn-bd: var(--gold); }
.btn-primary:hover { --btn-bg: var(--gold-dark); --btn-bd: var(--gold-dark); }
.btn-secondary { --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn-secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn-on-ink { --btn-fg: var(--on-ink); --btn-bd: #4a4a46; }
.btn-on-ink:hover { --btn-bg: var(--on-ink); --btn-fg: var(--ink-bg); --btn-bd: var(--on-ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-primary[disabled] { --btn-bg: var(--hairline); --btn-bd: var(--hairline); --btn-fg: var(--slate); opacity: 1; }
.btn-secondary[disabled] { --btn-bd: var(--hairline); --btn-fg: var(--slate); opacity: 1; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label);
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-base) var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .i { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover .i { transform: translateX(3px); }
.on-ink .link-arrow, .section--ink .link-arrow { color: var(--on-ink); }

/* ---------- 6. Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; line-height: 1; letter-spacing: .01em;
  padding: 6px 10px; border-radius: var(--r-pill); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.tag-navy { background: var(--navy); color: var(--white); }
.tag-ink { background: var(--ink); color: var(--white); }
.tag-gold { background: var(--gold); color: var(--on-gold); }
.tag-gray { background: var(--paper-2); color: var(--text); border-color: var(--hairline); }
.tag-outline { color: var(--ink); border-color: var(--hairline-strong); background: transparent; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 7. The Ring (portable identity) ---------- */
.ring-mark { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; flex: none; }
.ring-mark--gold { color: var(--gold); }
.ring-mark--filled { background: var(--gold); border-color: var(--gold); }

/* Arc decoration used in page headers: concentric arcs cropped by the edge */
.arcs {
  position: absolute; pointer-events: none;
  right: -180px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px;
}
.arcs circle { fill: none; stroke: #2B2B29; stroke-width: 1; }
.arcs circle.is-gold { stroke: var(--gold); stroke-width: 2; }
@media (max-width: 760px) { .arcs { width: 380px; height: 380px; right: -190px; opacity: .7; } }

/* Loading state = the ring */
.loader { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--hairline); border-top-color: var(--ink); animation: spin 900ms linear infinite; }
.loader--gold { border-color: rgba(255,204,2,.25); border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 8. Header ----------
   One ink bar that flows into the dark page top. Past 40px of scroll it
   lifts into a floating, blurred capsule. */
.lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; }
.lang button { padding: 5px 7px; border: 0; background: none; border-radius: 6px; color: var(--on-ink-faint); line-height: 1; }
.lang button[aria-pressed="true"] { color: var(--on-ink); background: rgba(255,255,255,.1); }
.lang button:not([aria-pressed="true"]):hover { color: var(--on-ink); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ink-bg); color: var(--on-ink);
  padding: 0; transition: background var(--t-base) ease, padding var(--t-slow) var(--ease-out);
  view-transition-name: site-header;
}
.nav-shell { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); transition: padding var(--t-slow) var(--ease-out); }
.nav-bar {
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: height var(--t-slow) var(--ease-out), background var(--t-base) ease, border-color var(--t-base) ease, border-radius var(--t-slow) var(--ease-out), padding var(--t-slow) var(--ease-out), box-shadow var(--t-base) ease;
}
.site-header.is-compact { background: transparent; padding-top: 10px; }
.site-header.is-compact .nav-bar {
  height: 60px; padding: 0 10px 0 18px; border-radius: 16px;
  background: rgba(17,17,17,.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-ink); flex: none; }
.brand-mark { height: 44px; width: auto; overflow: visible; transition: height var(--t-slow) var(--ease-out); }
.site-header.is-compact .brand-mark { height: 36px; }
.brand-mark .tiles { fill: currentColor; }
.brand-mark .arc, .brand-mark .star { fill: var(--gold); }
.brand-name { font-size: .78rem; line-height: 1.25; color: var(--on-ink-muted); font-weight: 500; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); max-width: 150px; }
.brand-name b { color: var(--on-ink); font-weight: 600; display: block; }
@media (max-width: 1240px) { .brand-name { display: none; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > li { list-style: none; position: relative; }
.nav, .nav ul { margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px;
  font-family: var(--font-body); font-weight: 500; font-size: .9375rem; letter-spacing: -0.005em;
  color: #D9D9D4; text-decoration: none; background: none; border: 0; border-radius: 999px; position: relative;
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.nav-link .i { width: 14px; height: 14px; opacity: .7; transition: transform var(--t-base) var(--ease-out); }
.nav-link:hover, .nav > li.is-open > .nav-link, .nav > li:focus-within > .nav-link { color: var(--white); background: rgba(255,255,255,.08); }
.nav > li.is-open > .nav-link .i { transform: rotate(180deg); }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold);
}

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 270px;
  background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-pop); border: 1px solid var(--hairline);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: top left;
  transition: opacity var(--t-fast) ease, transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.nav > li.is-open > .dropdown, .nav > li:hover > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.dropdown a small { display: block; font-weight: 400; color: var(--slate); font-size: .78rem; margin-top: 2px; }
.dropdown a:hover { background: var(--paper); }
.dropdown--mega { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px; min-width: 560px; left: -120px; padding: 12px; }
.dropdown--mega .mega-col + .mega-col { border-left: 1px solid var(--hairline); padding-left: 12px; }
.mega-title { font-size: .75rem; font-weight: 600; color: var(--slate); padding: 6px 12px 8px; }
.gen-links { display: grid; gap: 2px; }
.gen-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gen-links a .gen-n { font-size: .75rem; color: var(--slate); font-weight: 500; }
.gen-links a.is-current { background: var(--gold-wash); }
.gen-links a.is-current .ring-mark { color: var(--gold-dark); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-s);
  background: transparent; border: 1px solid transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--paper); }
.site-header .icon-btn { color: var(--on-ink); border-radius: 999px; }
.site-header .icon-btn:hover { background: rgba(255,255,255,.1); }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--on-ink-muted); font-size: .85rem;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.search-trigger:hover { background: rgba(255,255,255,.12); color: var(--on-ink); }
.search-trigger .i { width: 16px; height: 16px; }
.search-trigger kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--on-ink-muted); }
.nav-cta { display: inline-flex; border-radius: 999px; padding: 0 18px; text-transform: none; letter-spacing: 0; font-size: .875rem; min-height: 40px; }
.burger { display: none; }

@media (max-width: 1240px) { .nav-link { padding: 0 10px; font-size: .9rem; } .nav-bar { gap: 20px; } .search-trigger kbd { display: none; } }
@media (max-width: 1120px) { .search-trigger span, .nav-actions .lang { display: none; } .search-trigger { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 1000px) {
  .nav, .nav-cta { display: none; }
  .burger { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .brand-mark { height: 38px; }
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120; background: var(--ink-bg); color: var(--on-ink);
  display: flex; flex-direction: column; padding: 16px var(--gutter) 24px;
  clip-path: circle(0% at calc(100% - 40px) 36px); visibility: hidden;
  transition: clip-path 520ms var(--ease-out), visibility 0s linear 520ms;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition-delay: 0s; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.mobile-menu .icon-btn { color: var(--on-ink); }
.mobile-menu .icon-btn:hover { background: var(--ink-3); }
.mobile-menu nav { flex: 1; overflow-y: auto; margin-top: 24px; }
.mobile-menu details { border-bottom: 1px solid var(--ink-line); }
.mobile-menu summary, .mobile-menu .mm-link {
  display: flex; align-items: center; justify-content: space-between; list-style: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; font-stretch: 110%;
  color: var(--on-ink); text-decoration: none; padding: 16px 0; cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .mm-link { border-bottom: 1px solid var(--ink-line); }
.mobile-menu details[open] summary .i { transform: rotate(180deg); }
.mobile-menu details a { display: block; color: var(--on-ink-muted); text-decoration: none; padding: 8px 0 8px 14px; font-size: 1rem; }
.mobile-menu details a:hover { color: var(--gold); }
.mobile-menu details > div { padding-bottom: 14px; }
.mobile-menu .mm-bottom { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink-line); }

/* ---------- 9. Search (instant) ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 130; background: rgba(17,17,17,.55); backdrop-filter: blur(6px);
  display: grid; align-items: start; justify-items: center; padding: 10vh 16px 16px;
  opacity: 0; visibility: hidden; transition: opacity var(--t-base) ease, visibility 0s linear var(--t-base);
}
.search-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.search-panel {
  width: min(760px, 100%); background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-pop);
  overflow: hidden; transform: translateY(-10px) scale(.985); transition: transform 380ms var(--ease-out);
  max-height: 78vh; display: flex; flex-direction: column;
}
.search-overlay.is-open .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--hairline); }
.search-field input { flex: 1; border: 0; outline: 0; height: 64px; font-size: 1.15rem; background: transparent; }
.search-field kbd, kbd { font-family: var(--font-body); font-size: .75rem; color: var(--slate); border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 4px; padding: 2px 6px; background: var(--paper); }
.search-scopes { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.scope { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--white); color: var(--text); }
.scope[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.search-results { overflow-y: auto; padding: 8px; }
.search-results .sr-group { font-family: var(--font-display); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 12px 12px 6px; }
.sr-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.sr-item:hover, .sr-item.is-active { background: var(--paper); }
.sr-item .sr-ico { width: 44px; height: 44px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); }
.sr-item b { font-weight: 600; display: block; line-height: 1.35; }
.sr-item span { font-size: .8rem; color: var(--slate); }
.sr-item mark { background: var(--gold-tint); color: inherit; border-radius: 2px; padding: 0 1px; }
.sr-empty { padding: 32px 20px; text-align: center; color: var(--slate); }
.search-foot { display: flex; justify-content: space-between; padding: 10px 20px; border-top: 1px solid var(--hairline); font-size: .75rem; color: var(--slate); background: var(--paper); }

/* Hero search (inline trigger) */
.hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; height: 56px; padding: 0 8px 0 18px;
  background: var(--ink-3); border: 1px solid #383835; border-radius: var(--r-m); color: var(--on-ink-muted); text-align: left;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.hero-search:hover { border-color: #5a5a55; background: #2a2a28; }
.hero-search span { flex: 1; }
.hero-search kbd { background: #2f2f2c; border-color: #44443f; color: var(--on-ink-muted); }

/* ---------- 10. Hero (home) — the Round Table ---------- */
.hero {
  position: relative; background: var(--ink-bg); color: var(--on-ink-muted); overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s-6); align-items: center; }
.hero h1 { color: var(--on-ink); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #C9C9C4; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-bottom: 40px; }
.hero-meta { display: flex; gap: 28px; margin-top: 28px; font-size: .8rem; color: var(--on-ink-faint); flex-wrap: wrap; }
.hero-meta b { color: var(--on-ink); font-family: var(--font-display); font-weight: 800; font-size: 1rem; display: block; }

.table-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; margin-left: auto; }
.gen-table { width: 100%; height: 100%; overflow: visible; }
.gen-table .ring { fill: none; stroke: #343431; stroke-width: 1; transition: stroke var(--t-base) ease, stroke-width var(--t-base) ease, opacity var(--t-base) ease; }
.gen-table .ring-hit { fill: none; stroke: transparent; stroke-width: 9; cursor: pointer; pointer-events: stroke; }
.gen-table .seat { fill: #3c3c39; transition: fill var(--t-base) ease, opacity var(--t-base) ease; }
.gen-table .ring.is-current { stroke: var(--gold); stroke-width: 2; }
.gen-table .seat.is-current { fill: var(--gold); }
.gen-table .seats-current { transform-origin: 50% 50%; animation: slow-turn 120s linear infinite; }
.gen-table.is-focusing .ring { opacity: .3; }
.gen-table.is-focusing .seat { opacity: .25; }
.gen-table .ring.is-focus { opacity: 1; stroke: var(--on-ink); stroke-width: 2; }
.gen-table .ring.is-focus.is-current { stroke: var(--gold); }
.gen-table .seat.is-focus { opacity: 1; fill: var(--on-ink); }
.gen-table .seat.is-focus.is-current { fill: var(--gold); }
.gen-table .center-dot { fill: var(--gold); }
@keyframes slow-turn { to { transform: rotate(360deg); } }

.table-readout {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none; width: 44%;
}
.table-readout .ro-year { font-family: var(--font-display); font-weight: 800; font-stretch: 120%; color: var(--on-ink); font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.table-readout .ro-gen { font-family: var(--font-display); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; margin-top: 10px; }
.table-readout .ro-hint { color: var(--on-ink-faint); font-size: .75rem; margin-top: 8px; }
.table-scale { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; justify-content: space-between; font-size: .75rem; color: var(--on-ink-faint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .table-wrap { max-width: 440px; margin: 8px auto 0; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .gen-table .seats-current { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 11. Page header (inner pages) ---------- */
.page-header { position: relative; overflow: hidden; background: var(--ink-bg); color: #C9C9C4; padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-header h1 { color: var(--on-ink); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-stretch: 116%; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; max-width: 18ch; }
.page-header .lede { color: #C9C9C4; }
.page-header .container { position: relative; z-index: 1; }
.page-header--paper { background: var(--paper); color: var(--text); }
.page-header--paper h1 { color: var(--ink); }
.page-header--paper .lede { color: var(--text); }
.page-header--paper .arcs circle { stroke: var(--hairline); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; margin-bottom: 24px; color: var(--on-ink-faint); }
.crumbs a { color: var(--on-ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.page-header--paper .crumbs, .page-header--paper .crumbs a { color: var(--slate); }

.header-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 36px; border-top: 1px solid var(--ink-line); }
.header-stats > div { padding: 20px 40px 0 0; margin-right: 40px; border-right: 1px solid var(--ink-line); }
.header-stats > div:last-child { border-right: 0; }
.header-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; color: var(--on-ink); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.header-stats span { font-size: .8rem; color: var(--on-ink-muted); }
@media (max-width: 640px) { .header-stats > div { padding-right: 20px; margin-right: 20px; } }

/* ---------- 12. Impact ledger (stats) ---------- */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ledger > div { padding: 24px 24px 8px 0; border-right: 1px solid var(--hairline); }
.ledger > div + div { padding-left: 24px; }
.ledger > div:last-child { border-right: 0; }
.ledger b { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: clamp(2.2rem, 1.6rem + 2vw, 2.75rem); color: var(--ink); line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.ledger span { font-size: .875rem; color: var(--slate); display: block; max-width: 22ch; }
@media (max-width: 900px) { .ledger { grid-template-columns: repeat(2, 1fr); } .ledger > div:nth-child(2) { border-right: 0; } .ledger > div:nth-child(3) { padding-left: 0; } .ledger > div:nth-child(n+3) { border-top: 1px solid var(--hairline); } }

/* ---------- 13. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--r-m); box-shadow: var(--shadow-card); overflow: hidden;
  transition: box-shadow var(--t-base) ease, transform var(--t-base) var(--ease-out);
  color: inherit; text-decoration: none;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { color: var(--text); font-size: .9375rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: var(--fs-small); color: var(--slate); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card .tag { position: relative; z-index: 1; }

/* Feature card (first in a row) */
.card--feature { grid-column: span 2; flex-direction: row; }
.card--feature .card-media { aspect-ratio: auto; flex: 1.2; min-height: 320px; }
.card--feature .card-body { flex: 1; padding: 28px; justify-content: flex-end; }
.card--feature .card-title { font-size: 1.5rem; font-stretch: 108%; }
@media (max-width: 1024px) { .card--feature { grid-column: span 2; } }
@media (max-width: 640px) { .card--feature { grid-column: auto; flex-direction: column; } .card--feature .card-media { aspect-ratio: 16/9; min-height: 0; } }

/* Document card (research/publications) */
.doc-card { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px; background: var(--white); border-radius: var(--r-m); box-shadow: var(--shadow-card); transition: box-shadow var(--t-base) ease, transform var(--t-base) var(--ease-out); }
.doc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.doc-cover { aspect-ratio: 210 / 297; border-radius: 3px; overflow: hidden; background: var(--ink-bg); position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 6px 14px rgba(0,0,0,.1); }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; }
.doc-card .card-body { padding: 0; }

/* Generated document cover */
.cover-gen { position: absolute; inset: 0; padding: 10% 10% 9%; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink-bg); color: var(--on-ink); overflow: hidden; }
.cover-gen::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; right: -70%; bottom: -55%; border-radius: 50%; border: 1px solid #3a3a37; box-shadow: 0 0 0 10px var(--ink), 0 0 0 11px #3a3a37, 0 0 0 22px var(--ink), 0 0 0 23px #3a3a37; }
.cover-gen .cg-type { font-family: var(--font-display); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); position: relative; }
.cover-gen .cg-title { font-family: var(--font-display); font-weight: 800; font-size: 9px; line-height: 1.15; position: relative; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cover-gen .cg-foot { font-family: var(--font-display); font-size: 7px; font-weight: 900; position: relative; display: flex; align-items: center; gap: 4px; }
.cover-gen .cg-foot i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--gold); }
.cover-gen.is-gold { background: var(--gold); color: var(--on-gold); }
.cover-gen.is-gold::before { border-color: rgba(17,17,17,.2); box-shadow: 0 0 0 10px var(--gold), 0 0 0 11px rgba(17,17,17,.2), 0 0 0 22px var(--gold), 0 0 0 23px rgba(17,17,17,.2); }
.cover-gen.is-gold .cg-type { color: var(--ink); }
.cover-gen.is-gold .cg-foot i { border-color: var(--ink); }
.cover-gen.is-paper { background: var(--paper-2); color: var(--ink); }
.cover-gen.is-paper::before { border-color: var(--hairline-strong); box-shadow: 0 0 0 10px var(--paper-2), 0 0 0 11px var(--hairline-strong), 0 0 0 22px var(--paper-2), 0 0 0 23px var(--hairline-strong); }
.cover-gen.is-paper .cg-type { color: var(--gold-dark); }
.cover-gen.is-navy { background: var(--navy); }
.doc-cover--lg .cover-gen { padding: 12%; }
.doc-cover--lg .cg-type { font-size: 11px; }
.doc-cover--lg .cg-title { font-size: 17px; }
.doc-cover--lg .cg-foot { font-size: 11px; }

/* Person card */
.person { display: flex; flex-direction: column; gap: 14px; }
.person-photo { position: relative; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter var(--t-slow) var(--ease-out), transform 700ms var(--ease-out); }
.person:hover .person-photo img { filter: grayscale(0); transform: scale(1.02); }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; }
.monogram::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--hairline-strong); left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 18px var(--paper-2), 0 0 0 19px var(--hairline), 0 0 0 38px var(--paper-2), 0 0 0 39px var(--hairline); }
.monogram span { position: relative; font-family: var(--font-display); font-weight: 800; font-stretch: 120%; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); color: var(--ink); letter-spacing: -0.02em; }
.monogram.is-ink { background: var(--ink-bg); }
.monogram.is-ink::before { border-color: #333; box-shadow: 0 0 0 18px var(--ink), 0 0 0 19px #2a2a2a, 0 0 0 38px var(--ink), 0 0 0 39px #2a2a2a; }
.monogram.is-ink span { color: var(--on-ink); }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 0; line-height: 1.25; }
.person-role { font-size: var(--fs-small); color: var(--slate); margin: 2px 0 0; line-height: 1.4; }
.person-bio { font-size: .9rem; color: var(--text); margin: 0; }
.person-links { display: flex; gap: 6px; }
.person-links a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline); color: var(--ink); }
.person-links a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.person-links .i { width: 16px; height: 16px; }

/* Author card */
.author-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px; border-radius: var(--r-m); background: var(--paper); align-items: start; }
.author-card .avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; position: relative; background: var(--ink-bg); display: grid; place-items: center; }
.author-card .avatar span { font-family: var(--font-display); font-weight: 800; color: var(--on-ink); font-size: 1.3rem; }
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card h4 { margin: 0; }
.author-card p { margin: 4px 0 10px; font-size: .9rem; }

/* ---------- 14. Tabs / segmented ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: var(--r-m); }
.tab { min-height: 40px; padding: 0 18px; border: 0; border-radius: 6px; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: .02em; text-transform: uppercase; color: var(--slate); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panel-in 420ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

/* Year rail (generations) */
.year-rail { position: sticky; top: var(--nav-h-compact); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hairline); }
.year-rail .container { display: flex; align-items: center; gap: 16px; }
.year-rail-label { font-family: var(--font-display); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); flex: none; }
.year-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.year-scroll::-webkit-scrollbar { display: none; }
.year-chip { flex: none; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--slate); font-family: var(--font-display); font-weight: 700; font-size: .9375rem; line-height: 1.1; }
.year-chip small { font-family: var(--font-body); font-weight: 500; font-size: .75rem; color: var(--slate); }
.year-chip:hover { background: var(--paper); color: var(--ink); }
.year-chip[aria-current="page"] { background: var(--ink); color: var(--white); }
.year-chip[aria-current="page"] small { color: var(--gold); }

/* ---------- 15. Filters ---------- */
.filters { position: sticky; top: calc(var(--nav-h-compact) + 24px); }
.filter-group { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; cursor: pointer; color: var(--ink); }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--hairline-strong); border-radius: 4px; display: grid; place-items: center; margin: 0; flex: none; transition: all var(--t-fast) ease; background: var(--white); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--gold); transform: none; }
.check .count { margin-left: auto; font-size: .75rem; color: var(--slate); }
.chip-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); background: var(--white); font-size: .85rem; font-weight: 500; color: var(--ink); }
.chip-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-filter[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.chip-filter:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
.filters-toggle { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-bar .small b { color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--gold-tint); color: var(--ink); border-radius: var(--r-pill); padding: 5px 10px; font-size: .78rem; font-weight: 600; }
@media (max-width: 1000px) {
  .filters-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 140; background: var(--white); padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform 420ms var(--ease-out); box-shadow: var(--shadow-pop); top: 0; }
  .filters.is-open { transform: none; }
  .filters-scrim { position: fixed; inset: 0; z-index: 139; background: rgba(17,17,17,.4); opacity: 0; visibility: hidden; transition: opacity var(--t-base); }
  .filters-scrim.is-open { opacity: 1; visibility: visible; }
}
.filters-head { display: none; }
@media (max-width: 1000px) { .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.load-more .small { margin: 0; }
.progress-line { width: 180px; height: 2px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--ink); transition: width var(--t-slow) var(--ease-out); }

.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-m); }
.empty-state .ring-stack { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--hairline-strong); box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--hairline); }

/* ---------- 16. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: var(--fs-small); color: var(--slate); font-weight: 500; transition: color var(--t-fast); }
.field:focus-within label { color: var(--ink); font-weight: 600; }
.field .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-s);
  background: var(--white); font-size: 1rem; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: #727270; }
.input:hover, .select:hover, .textarea:hover { border-color: #b5b5b0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), 0 0 0 5px rgba(27,42,74,.08); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field .help { font-size: .78rem; color: var(--slate); }
.field.is-error .help { color: var(--red); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-span { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }
.counter { font-size: .75rem; color: var(--slate); text-align: right; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 28px 20px; border: 1.5px dashed var(--hairline-strong); border-radius: var(--r-m); background: var(--paper);
  cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--gold-wash); }
.dropzone b { color: var(--ink); font-size: .95rem; }
.dropzone .small { margin: 0; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r-m); background: var(--white); }
.file-pill .file-ico { width: 36px; height: 36px; border-radius: 6px; background: var(--ink-bg); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .75rem; }
.file-pill b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.file-pill span { font-size: .75rem; color: var(--slate); }
.file-pill button { margin-left: auto; }

.subscribe { display: flex; gap: 8px; max-width: 520px; }
.subscribe .input { flex: 1; min-height: 48px; }
@media (max-width: 480px) { .subscribe { flex-direction: column; } }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-m); background: var(--navy-tint); color: var(--navy); font-size: .9rem; }
.notice .i { margin-top: 2px; }
.notice--gold { background: var(--gold-wash); color: var(--ink); }
.notice--success { background: #EAF4EA; color: var(--green); }
.notice p { margin: 0; }

/* ---------- 17. Wizard ---------- */
.stepper { display: flex; gap: 0; counter-reset: step; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.stepper::-webkit-scrollbar { display: none; }
.step { flex: 1; min-width: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative; background: none; border: 0; padding: 0 8px 0 0; text-align: left; color: var(--slate); }
.step::before { content: ""; position: absolute; top: 15px; left: 34px; right: 4px; height: 2px; background: var(--hairline); }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--gold); }
.step-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .8rem; border: 2px solid var(--hairline-strong); background: var(--white); color: var(--slate); transition: all var(--t-base) var(--ease-out); }
.step-name { font-size: .75rem; font-weight: 600; line-height: 1.25; }
.step.is-current .step-dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px var(--gold-tint); }
.step.is-current .step-name { color: var(--ink); }
.step.is-done .step-dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.step.is-done .step-name { color: var(--ink); }
.wizard-card { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-card); border: 1px solid var(--hairline); padding: clamp(20px, 4vw, 40px); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.autosave { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--slate); }
.autosave i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.repeat-item { border: 1px solid var(--hairline); border-radius: var(--r-m); padding: 18px; position: relative; background: var(--white); }
.repeat-item + .repeat-item { margin-top: 12px; }
.repeat-item .remove { position: absolute; top: 10px; right: 10px; }
.add-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--hairline-strong); background: transparent; border-radius: var(--r-m); padding: 12px 16px; font-weight: 600; font-size: .875rem; color: var(--ink); width: 100%; justify-content: center; margin-top: 12px; }
.add-btn:hover { border-color: var(--ink); background: var(--paper); }
.review-block { border: 1px solid var(--hairline); border-radius: var(--r-m); padding: 18px 20px; }
.review-block + .review-block { margin-top: 12px; }
.review-block header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-block dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.review-block dt { color: var(--slate); }
.review-block dd { margin: 0; color: var(--ink); }
@media (max-width: 640px) { .review-block dl { grid-template-columns: 1fr; } .review-block dd { margin-bottom: 8px; } }
.level-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.level-row:last-child { border-bottom: 0; }
.levels { display: flex; gap: 4px; flex-wrap: wrap; }
.levels label { position: relative; }
.levels input { position: absolute; opacity: 0; }
.levels span { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all var(--t-fast); }
.levels input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.levels input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 640px) { .level-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- 18. PDF viewer ---------- */
.pdf-viewer { border-radius: var(--r-m); overflow: hidden; background: #2A2A28; border: 1px solid var(--ink-line); }
.pdf-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--ink-bg); color: var(--on-ink-muted); font-size: .8rem; flex-wrap: wrap; }
.pdf-toolbar .icon-btn { color: var(--on-ink); width: 34px; height: 34px; }
.pdf-toolbar .icon-btn:hover { background: var(--ink-3); }
.pdf-toolbar .pg { font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; color: var(--on-ink); }
.pdf-toolbar .sep { width: 1px; height: 20px; background: var(--ink-line); margin: 0 4px; }
.pdf-toolbar .title { margin-right: auto; color: var(--on-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.pdf-stage { height: min(78vh, 820px); overflow: auto; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; scroll-behavior: smooth; }
.pdf-page { width: calc(560px * var(--zoom, 1)); max-width: none; aspect-ratio: 210 / 297; background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,.35); padding: calc(48px * var(--zoom, 1)) calc(52px * var(--zoom, 1)); font-size: calc(10.5px * var(--zoom, 1)); line-height: 1.6; color: var(--text); flex: none; transition: width var(--t-base) var(--ease-out); overflow: hidden; position: relative; }
.pdf-page h5 { font-family: var(--font-display); color: var(--ink); font-size: 1.8em; line-height: 1.15; margin: 0 0 .8em; font-stretch: 110%; }
.pdf-page h6 { font-family: var(--font-display); color: var(--ink); font-size: 1.15em; margin: 1.4em 0 .5em; }
.pdf-page p { margin: 0 0 .8em; }
.pdf-page .pg-foot { position: absolute; bottom: calc(20px * var(--zoom, 1)); left: calc(52px * var(--zoom, 1)); right: calc(52px * var(--zoom, 1)); display: flex; justify-content: space-between; font-size: .8em; color: var(--slate); border-top: 1px solid var(--hairline); padding-top: .6em; }
.pdf-page.is-cover { padding: 0; }
.pdf-page.is-cover .cover-gen { padding: 12%; }
.pdf-page.is-cover .cg-type { font-size: calc(13px * var(--zoom, 1)); }
.pdf-page.is-cover .cg-title { font-size: calc(30px * var(--zoom, 1)); -webkit-line-clamp: 6; line-height: 1.08; }
.pdf-page.is-cover .cg-foot { font-size: calc(13px * var(--zoom, 1)); }
.pdf-page.is-cover .cg-foot i { width: 12px; height: 12px; border-width: 2px; }
.pdf-page.is-cover .cover-gen::before { box-shadow: 0 0 0 24px var(--ink), 0 0 0 25px #3a3a37, 0 0 0 50px var(--ink), 0 0 0 51px #3a3a37; }
.pdf-line { height: .7em; background: var(--paper-2); border-radius: 2px; margin-bottom: .6em; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
@media (max-width: 640px) { .pdf-stage { padding: 12px; height: 70vh; } .pdf-page { width: calc(100% * var(--zoom, 1)); } .pdf-toolbar .title { display: none; } }

/* ---------- 19. Bands ---------- */
.band-cta { position: relative; overflow: hidden; background: var(--ink-bg); color: var(--on-ink-muted); padding: clamp(56px, 7vw, 96px) 0; }
.band-cta h2 { color: var(--on-ink); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); font-stretch: 116%; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.band-cta .container { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.band-news { background: var(--gold-wash); border-top: 1px solid #F3E3A0; border-bottom: 1px solid #F3E3A0; padding: 56px 0; }
.band-news .container { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.band-news h2 { margin-bottom: .3em; }
.band-news p { margin: 0; color: var(--text); }
@media (max-width: 820px) { .band-news .container { grid-template-columns: 1fr; } }

/* Logo / donor marks (typographic) */
.donor-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.donor {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 120px; padding: 18px;
  border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--slate); background: var(--white);
  transition: background var(--t-base) ease, color var(--t-base) ease;
}
.donor .wm { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; color: #9A9A95; letter-spacing: -0.01em; transition: color var(--t-base) ease; }
.donor .wm small { display: block; font-weight: 600; font-size: .75rem; letter-spacing: .04em; margin-top: 4px; }
.donor .out { width: 16px; height: 16px; opacity: 0; transform: translate(-4px, 4px); transition: all var(--t-base) var(--ease-out); color: var(--ink); align-self: flex-end; }
.donor:hover { background: var(--paper); }
.donor:hover .wm { color: var(--ink); }
.donor:hover .out { opacity: 1; transform: none; }
.donor img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: all var(--t-base); }
.donor:hover img { filter: none; opacity: 1; }
.donor-strip--quiet .donor { min-height: 88px; }
.donor-strip--quiet .wm { font-size: .9rem; color: #B0B0AB; }

/* Quote */
.quote { position: relative; padding-left: 28px; }
.quote::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--gold); }
.quote blockquote { margin: 0 0 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.quote figcaption { font-size: .875rem; color: var(--slate); }
.quote figcaption b { color: var(--ink); display: block; font-size: .95rem; }
.section--ink .quote blockquote { color: var(--on-ink); }

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--ink-bg); color: var(--on-ink-muted); padding-top: 72px; font-size: .9rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-grid h4 { color: var(--on-ink); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--on-ink-muted); max-width: 34ch; }
.footer-contact { display: grid; gap: 6px; margin-top: 16px; font-size: .85rem; }
.footer-contact a, .footer-contact span { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { width: 16px; height: 16px; margin-top: 3px; color: var(--on-ink-faint); }
.footer-sub .input { background: var(--ink-3); border-color: #3a3a37; color: var(--on-ink); }
.footer-sub .input::placeholder { color: var(--on-ink-faint); }
.footer-sub .input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.footer-donors { border-top: 1px solid var(--ink-line); padding: 28px 0; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.footer-donors span { font-family: var(--font-display); font-weight: 800; color: #5b5b57; font-size: .85rem; transition: color var(--t-base); }
.footer-donors a:hover span { color: var(--on-ink); }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--on-ink-faint); }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-line); display: grid; place-items: center; }
.footer-bottom .socials a:hover { border-color: var(--gold); }
.footer-bottom .socials .i { width: 16px; height: 16px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 21. Misc components ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 160; background: var(--ink-bg); color: var(--on-ink); padding: 14px 18px; border-radius: var(--r-m); box-shadow: var(--shadow-pop); display: flex; gap: 12px; align-items: center; font-size: .9rem; opacity: 0; visibility: hidden; transition: all 380ms var(--ease-out); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ring-mark { color: var(--gold); }

.proto-note { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--slate); background: var(--paper-2); border: 1px dashed var(--hairline-strong); padding: 4px 10px; border-radius: var(--r-pill); }
.section--ink .proto-note, .page-header .proto-note { background: transparent; border-color: #44443f; color: var(--on-ink-muted); }
.page-header--paper .proto-note { border-color: var(--hairline-strong); color: var(--slate); }

.media-frame { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-caption { font-size: .78rem; color: var(--slate); margin-top: 10px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .875rem; color: var(--slate); }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row .i { width: 16px; height: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery button:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10,10,10,.92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity var(--t-base); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; max-width: min(1200px, 100%); border-radius: 6px; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; color: var(--white); }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); }

.list-rows { border-top: 1px solid var(--hairline); }
.list-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: inherit; position: relative; }
.list-row:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.list-row h3 { margin: 0 0 4px; }
.list-row p { margin: 0; color: var(--slate); font-size: .9rem; }

.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 120px 28px 1fr; gap: 16px; padding-bottom: 28px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(120px + 16px + 13px); top: 22px; bottom: -6px; width: 2px; background: var(--hairline); }
.tl-item:last-child::before { display: none; }
.tl-when { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--slate); padding-top: 2px; text-align: right; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--hairline-strong); background: var(--white); position: relative; z-index: 1; display: grid; place-items: center; }
.tl-item.is-done .tl-dot { background: var(--ink); border-color: var(--ink); }
.tl-item.is-done .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tl-item.is-next .tl-dot { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.tl-body h4 { margin: 0 0 4px; font-size: 1.05rem; }
.tl-body p { margin: 0; font-size: .9rem; color: var(--slate); }
@media (max-width: 640px) { .tl-item { grid-template-columns: 28px 1fr; } .tl-when { grid-column: 2; text-align: left; order: -1; padding: 0; } .tl-item::before { left: 13px; } .tl-dot { grid-row: 1 / span 2; grid-column: 1; } }

.map-frame { position: relative; border-radius: var(--r-m); overflow: hidden; height: 420px; background: var(--paper-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.map-pin b { background: var(--ink-bg); color: var(--white); padding: 8px 12px; border-radius: 6px; font-size: .8rem; white-space: nowrap; }
.map-pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); margin-top: 6px; }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.text-slate { color: var(--slate); }
.hide-mobile { } @media (max-width: 640px) { .hide-mobile { display: none !important; } }

/* Feature row: one lead story spanning two rows, two stacked beside it */
.grid-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-auto-rows: auto; gap: var(--s-5); }
.grid-feature > .card--feature { grid-column: 1; grid-row: span 2; flex-direction: column; }
.grid-feature > .card--feature .card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
.grid-feature > .card--feature .card-body { justify-content: flex-start; }
.grid-feature > .card:not(.card--feature) .card-media { aspect-ratio: 16 / 8; }
@media (max-width: 900px) { .grid-feature { grid-template-columns: 1fr; } .grid-feature > .card--feature { grid-row: auto; } }

@media (max-width: 640px) { .hero-search kbd { display: none; } .hero-search { font-size: .9rem; } }

[hidden] { display: none !important; }

/* Hero areas: on phones the ring table sits directly under the headline */
.hero-grid { grid-template-areas: "head table" "body table"; grid-template-rows: auto 1fr; row-gap: 0; }
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; }
.hero-grid > .table-wrap { grid-area: table; }
@media (max-width: 900px) {
  .hero-grid { grid-template-areas: "head" "table" "body"; grid-template-rows: auto; }
  .hero-grid > .table-wrap { width: min(78vw, 420px); margin: 4px auto 28px; }
  .hero h1 { margin-bottom: 20px; }
}

/* Feature card: the image takes the spare height instead of leaving dead space */
.grid-feature > .card--feature .card-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
.grid-feature > .card--feature .card-body { flex: none; }

/* Donor logos at a legible size */
.donor img { height: 40px; max-height: none; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }

@media (max-width: 900px) { .table-readout { width: 64%; } .table-readout .ro-gen { letter-spacing: .06em; white-space: nowrap; } }

/* Donor tiles: the name leads, the (small, raster) logo is a secondary mark */
.donor { min-height: 104px; justify-content: flex-start; gap: 12px; }
.donor .donor-mark { height: 28px; width: auto; max-width: 120px; object-fit: contain; object-position: left center; }
.donor .wm { font-size: .95rem; line-height: 1.25; color: #6F6F6A; }
.donor .out { position: absolute; top: 14px; right: 14px; }

/* Footer logo uses the same vector mark */
.footer-logo { margin-bottom: 22px; color: var(--on-ink); }
.footer-logo .brand-mark { height: 52px; }
.footer-logo .brand-name { display: block; }
.mobile-menu .brand-mark { height: 36px; color: var(--on-ink); }

/* Header fit: one line per item, logo reads clearly, opaque capsule */
.nav-link { white-space: nowrap; }
.brand-mark { height: 48px; }
.site-header.is-compact .brand-mark { height: 40px; }
.site-header.is-compact .nav-bar { background: rgba(17,17,17,.94); }
.nav-actions { flex: none; }
.brand-name { display: none; }
@media (min-width: 1500px) { .brand-name { display: block; } }
@media (max-width: 1380px) { .search-trigger span, .search-trigger kbd { display: none; } .search-trigger { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 1180px) { .nav-actions .lang { display: none; } .nav-link { padding: 0 8px; font-size: .875rem; } }

/* Logo presence + capsule fit */
.brand-mark { height: 54px; }
.site-header.is-compact .brand-mark { height: 42px; }
.nav-bar { gap: 20px; }
.site-header.is-compact .nav-bar { padding: 0 8px 0 16px; }
.nav-link { padding: 0 10px; }
@media (max-width: 1000px) { .brand-mark { height: 42px; } }

/* Mobile hero fits one phone screen (iPhone 13 Pro Max 428×926) */
@media (max-width: 640px) {
  .hero { padding: 32px 0 36px; }
  .hero .display { font-size: clamp(2rem, 8.4vw, 2.4rem); }
  .hero h1 { margin-bottom: 14px; }
  .hero-grid > .table-wrap { width: min(60vw, 260px); margin: 0 auto 18px; }
  .hero .lede { font-size: .975rem; line-height: 1.55; margin-bottom: 20px; }
  .hero-actions { margin-bottom: 0; gap: 14px 24px; }
  .hero-actions .btn { width: 100%; }
  .hero .proto-note { display: none; }
  .table-readout .ro-year { font-size: 2rem; }
  .table-readout .ro-hint { display: none; }
}

/* =====================================================================
   Header v3 — light. White bar, brand-colour logo, lifts into a frosted
   white capsule on scroll.
   ===================================================================== */
.site-header { background: var(--white); color: var(--ink); }
.nav-bar { height: 84px; border-bottom: 1px solid var(--hairline); }
.site-header.is-compact { background: transparent; }
.site-header.is-compact .nav-bar {
  height: 64px; background: rgba(255,255,255,.9); border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 10px 30px rgba(17,17,17,.12);
}
.brand { color: var(--ink); }
.brand-mark { height: 62px; }
.site-header.is-compact .brand-mark { height: 46px; }
.site-header .brand-mark .arc, .site-header .brand-mark .star { fill: #F2BE00; }
.brand-name { color: var(--slate); border-left-color: var(--hairline); }
.brand-name b { color: var(--ink); }

.nav-link { color: #2B2B2B; }
.nav-link:hover, .nav > li.is-open > .nav-link, .nav > li:focus-within > .nav-link { color: var(--ink); background: var(--paper-2); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link[aria-current="page"]::after { background: var(--gold-dark); }

.site-header .icon-btn { color: var(--ink); }
.site-header .icon-btn:hover { background: var(--paper-2); }
.search-trigger { background: var(--paper); border-color: var(--hairline); color: var(--slate); }
.search-trigger:hover { background: var(--paper-2); color: var(--ink); }
.search-trigger kbd { background: var(--white); border-color: var(--hairline); color: var(--slate); }
.site-header .lang button { color: var(--slate); }
.site-header .lang button[aria-pressed="true"] { color: var(--ink); background: var(--paper-2); }
.site-header .lang button:not([aria-pressed="true"]):hover { color: var(--ink); }
.dropdown { top: calc(100% + 10px); }
@media (max-width: 1000px) { .brand-mark { height: 50px; } .nav-bar { height: 72px; } }

/* Official logo files, shown large enough to read */
.brand-logo { display: block; height: 64px; width: auto; transition: height var(--t-slow) var(--ease-out); }
.site-header.is-compact .brand-logo { height: 50px; }
.footer-logo .brand-logo { height: 72px; }
.mobile-menu .brand-logo { height: 44px; }
@media (max-width: 1000px) { .site-header .brand-logo { height: 54px; } }

/* Header v4 — full width; frosted glass across the whole bar on scroll */
.site-header { border-bottom: 1px solid var(--hairline); }
.nav-bar { border-bottom: 0; }
.site-header.is-compact {
  padding-top: 0; background: rgba(255,255,255,.78);
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border-bottom-color: rgba(17,17,17,.08); box-shadow: 0 6px 24px rgba(17,17,17,.08);
}
.site-header.is-compact .nav-bar {
  height: 68px; padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Golden Arc logo (supplied file, transparent background) */
.site-header .brand-logo { height: 66px; }
.site-header.is-compact .brand-logo { height: 52px; }
@media (max-width: 1000px) { .site-header .brand-logo { height: 54px; } }

/* Compact footer on phones: link columns side by side, one-line rows */
@media (max-width: 640px) {
  .site-footer { padding-top: 44px; font-size: .875rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 32px; }
  .footer-brand, .footer-sub { grid-column: 1 / -1; }
  .footer-logo .brand-logo { height: 56px; }
  .footer-brand p { font-size: .875rem; margin-bottom: 12px; }
  .footer-contact { margin-top: 0; gap: 4px; font-size: .82rem; }
  .footer-grid h4 { margin-bottom: 12px; }
  .footer-grid ul { gap: 8px; }
  .footer-sub ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px !important; }
  .footer-donors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 18px 0; gap: 22px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .footer-donors::-webkit-scrollbar { display: none; }
  .footer-donors a { flex: none; }
  .footer-donors .small { margin-left: 0 !important; }
  .footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 18px 0 22px; }
  .footer-bottom > span { grid-column: 1 / -1; order: 3; }
  .footer-bottom .socials a { width: 34px; height: 34px; }
}
@media (max-width: 640px) {
  .footer-sub .subscribe { flex-direction: row; }
  .footer-sub .subscribe .btn { padding: 0 16px; }
  .footer-grid ul { gap: 6px; }
  .footer-brand p { display: none; }
}

/* =====================================================================
   Inputs v2 — one refined shape for every form
   50px tall, 10px corners, quiet border, navy focus ring.
   ===================================================================== */
.field { gap: 8px; }
.field label, .field .label { font-size: .8125rem; font-weight: 600; color: #3A3A3A; letter-spacing: .005em; }
.field:focus-within label { color: var(--ink); font-weight: 600; }
.field .req { color: var(--red); margin-left: 1px; }
.input, .select, .textarea {
  min-height: 50px; padding: 12px 16px; border: 1px solid #D5D5D0; border-radius: 10px; background-color: var(--white);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  box-shadow: 0 1px 2px rgba(17,17,17,.04);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
.input::placeholder, .textarea::placeholder { color: #767671; }
.input:hover, .select:hover, .textarea:hover { border-color: #AFAFAA; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27,42,74,.12); }
.select { padding-right: 44px; background-position: right 16px center; }
.textarea { min-height: 140px; padding: 14px 16px; line-height: 1.6; }
.input:disabled, .select:disabled, .textarea:disabled { background-color: var(--paper); color: var(--slate); box-shadow: none; cursor: not-allowed; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.field .help { font-size: .78rem; line-height: 1.4; }
.field-row { gap: 20px; }
.subscribe .input { min-height: 48px; }
.dropzone { border-radius: 12px; }
.check input { border-radius: 5px; }
.footer-sub .input { box-shadow: none; }

/* Mega menu: every link on one line, panel sizes to its content */
.dropdown--mega { grid-template-columns: max-content max-content; min-width: 0; width: max-content; }
.dropdown a, .dropdown a small { white-space: nowrap; }
.gen-links .row { flex-wrap: nowrap; }
.gen-links a { gap: 28px; }
.gen-links a .gen-n { white-space: nowrap; }

/* =====================================================================
   Header v5 — thin black top bar (language + search) on desktop;
   the main bar keeps only logo, menu and Apply, with room to breathe.
   ===================================================================== */
.topbar { background: var(--ink-bg); color: var(--on-ink-muted); height: 38px; font-size: .78rem; }
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar .lang button { color: var(--on-ink-faint); padding: 4px 8px; }
.topbar .lang button[aria-pressed="true"] { color: var(--ink); background: var(--gold); }
.topbar .lang button:not([aria-pressed="true"]):hover { color: var(--on-ink); }
.topbar-search { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--on-ink-muted); font-size: .78rem; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.topbar-search:hover { color: var(--on-ink); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.topbar-search kbd { font-size: .68rem; padding: 0 5px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--on-ink-muted); }

.nav { gap: 6px; }
.nav-link { padding: 0 14px; }
.nav-bar { gap: 40px; }
.search-mobile { display: none; }
@media (max-width: 1240px) { .nav { gap: 2px; } .nav-link { padding: 0 11px; } .nav-bar { gap: 28px; } }
@media (max-width: 1080px) { .nav-link { padding: 0 8px; font-size: .9rem; } }
@media (max-width: 1000px) {
  .topbar { display: none; }
  .search-mobile { display: inline-grid; }
}

.nav-bar > .nav { margin-left: auto; }

/* Header v6 — menu spread evenly between logo and Apply; a visible search field in the top bar */
.nav-bar > .nav { margin-left: 0; flex: 1; justify-content: space-between; padding: 0 28px 0 48px; gap: 0; }
.nav-link { padding: 0 12px; }
@media (max-width: 1240px) { .nav-bar > .nav { padding: 0 16px 0 28px; } .nav-link { padding: 0 9px; } }

.topbar { height: 44px; }
.topbar-search {
  width: 340px; height: 32px; padding: 0 6px 0 12px; gap: 10px; justify-content: flex-start;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #CFCFCA; font-size: .82rem;
}
.topbar-search .i { width: 16px; height: 16px; color: var(--on-ink); }
.topbar-search .ts-label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search kbd { font-size: .7rem; padding: 1px 6px; }
.topbar-search:hover { border-color: var(--gold); background: rgba(255,255,255,.12); color: var(--on-ink); }

/* Header v6b — tighter logo gap; menu still spread evenly */
.nav-bar > .nav { padding: 0 8px 0 0; }
.nav-bar { gap: 36px; }
@media (max-width: 1240px) { .nav-bar > .nav { padding: 0; } .nav-bar { gap: 24px; } .nav-link { padding: 0 8px; } }
@media (max-width: 1100px) { .nav-link { padding: 0 6px; font-size: .875rem; } .nav-bar { gap: 18px; } }
/* Top-bar search: visible but compact */
.topbar { height: 40px; }
.topbar-search { width: 260px; height: 28px; font-size: .78rem; border-radius: 7px; }
.topbar-search .i { width: 14px; height: 14px; }
.topbar-search kbd { font-size: .66rem; padding: 0 5px; }

/* Ring table v2 — bolder rings, clear hover and press states */
.gen-table .ring { stroke: #4B4B47; stroke-width: 1.6; }
.gen-table .seat { fill: #6A6A65; }
.gen-table .ring.is-current { stroke: var(--gold); stroke-width: 3.2; animation: ring-breathe 2.8s ease-in-out infinite; }
.gen-table .ring-hit { stroke-width: 10; }
.gen-table.is-focusing .ring { opacity: .35; }
.gen-table.is-focusing .seat { opacity: .3; }
.gen-table .ring.is-focus { opacity: 1; stroke: var(--gold); stroke-width: 4.5; animation: none; }
.gen-table .seat.is-focus { opacity: 1; fill: var(--gold); }
.gen-table .ring.is-pressed { stroke: var(--white); stroke-width: 7; transition: stroke 80ms ease, stroke-width 80ms ease; }
.gen-table .ring-ripple { fill: none; stroke: var(--gold); pointer-events: none; }
.table-readout .ro-hint { color: var(--on-ink-muted); }
.table-readout.is-opening .ro-hint { color: var(--gold); font-weight: 600; }
@keyframes ring-breathe { 0%, 100% { stroke-width: 3.2; } 50% { stroke-width: 5.5; } }
@media (prefers-reduced-motion: reduce) { .gen-table .ring.is-current { animation: none; } }

/* Active menu item: gold underline under the label (replaces the dot) */
.nav-link[aria-current="page"]::after { display: none; }
.nav-link > span[data-i18n] { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2.5px; text-underline-offset: 9px; transition: text-decoration-color var(--t-base) ease; }
.nav-link[aria-current="page"] > span[data-i18n] { text-decoration-color: var(--gold); }
.nav-link:hover > span[data-i18n] { text-decoration-color: rgba(255, 204, 2, .55); }

/* =====================================================================
   No decorative yellow dots or rings anywhere.
   Status uses text and the gold underline; lists use plain rules.
   ===================================================================== */
.ring-mark,
.quote::before,
.chip-filter[aria-pressed="true"]::before,
.objectives li::before,
.sop-badge::before,
.net-list li::before,
.pub-feature .latest::before,
.partner-list li::before,
.gx .gx-status::before,
.gx-legend,
.prog b::before,
.cover-gen .cg-foot i { display: none !important; }
.quote { padding-left: 0; }
.objectives li { grid-template-columns: 1fr !important; }
/* Timeline: neutral ink nodes, no gold */
.tl-item.is-done .tl-dot::after { display: none; }
.tl-item.is-done .tl-dot { background: var(--ink); border-color: var(--ink); }
.tl-item.is-next .tl-dot { border-color: var(--ink); box-shadow: none; }
/* Map pin in ink */
.map-pin i { background: var(--ink); border-color: var(--white); }
/* Ring table: no gold seat dots; the gold ring itself stays */
.gen-table .seat.is-current { display: none; }
.gen-table .seat.is-focus, .gen-table .seat.is-focus.is-current { fill: var(--on-ink); }
/* Active programme / filter states lean on ink + gold underline instead of dots */
.prog[aria-pressed="true"] b { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2.5px; text-underline-offset: 6px; }

.check input[type="radio"]:checked::after { background: var(--white); }

/* Menu items are text, not buttons: no hover pill; solid gold underline for hover and active */
.nav-link, .nav-link:hover, .nav > li.is-open > .nav-link, .nav > li:focus-within > .nav-link { background: transparent !important; border-radius: 0; }
.nav-link:hover, .nav > li.is-open > .nav-link { color: var(--ink); }
.nav-link > span[data-i18n] { text-decoration-thickness: 3px; text-underline-offset: 10px; }
.nav-link:hover > span[data-i18n], .nav > li.is-open > .nav-link > span[data-i18n], .nav-link[aria-current="page"] > span[data-i18n] { text-decoration-color: var(--gold); }

/* Scrolled: the top bar is gone, so the search icon appears in the white bar */
@media (min-width: 1001px) {
  .search-mobile { display: inline-grid; width: 0; margin-right: -10px; opacity: 0; overflow: hidden; pointer-events: none; transition: width var(--t-base) var(--ease-out), margin var(--t-base) var(--ease-out), opacity var(--t-base) ease; }
  .site-header.is-compact .search-mobile { width: 40px; margin-right: 0; opacity: 1; pointer-events: auto; border: 1px solid var(--hairline); border-radius: 50%; }
  .site-header.is-compact .search-mobile:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
}

/* Compact page header for form pages (Contact, Apply): the form shows in the first viewport */
.page-header--compact { padding: clamp(28px, 3.5vw, 44px) 0 clamp(26px, 3vw, 40px); }
.page-header--compact .crumbs { margin-bottom: 14px; }
.page-header--compact h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 8px; max-width: none; }
.page-header--compact .lede { font-size: 1rem; margin: 0; max-width: 62ch; }
.page-header--compact + .section, .page-header--compact + .apply-section { padding-top: clamp(32px, 4vw, 48px); }
