/* ============================================================
   Mizuha — shared site styles
   Editorial × modern minimal. System A by default; System B accents
   only on Cause + Science. Hairline rules, no shadows.
   ============================================================ */

:root {
  /* System A — Can aesthetic (default everywhere) */
  --bg:        oklch(97.2% 0.005 80);
  --surface:   oklch(100% 0 0);
  --fg:        oklch(14% 0.005 80);
  --muted:     oklch(50% 0.005 80);
  --border:    oklch(88% 0.005 80);
  --hairline:  oklch(82% 0.005 80);
  --accent:    oklch(14% 0.005 80);

  /* System B — Eco emblem, sparingly */
  --teal:   oklch(58% 0.10 200);
  --leaf:   oklch(64% 0.13 145);
  --river:  oklch(48% 0.13 250);
  --stone:  oklch(92% 0.005 80);

  /* Inverse (deep ocean blue moments) */
  --bg-inverse:      oklch(28% 0.08 240);
  --surface-inverse: oklch(32% 0.07 240);
  --fg-inverse:      oklch(97% 0.005 240);
  --muted-inverse:   oklch(75% 0.04 240);
  --border-inverse:  oklch(38% 0.06 240);

  /* Type stacks — bible-specified */
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', monospace;
  --font-kanji:   'Noto Serif JP', 'Iowan Old Style', Georgia, serif;

  /* Type scale */
  --t-display-xl: clamp(56px, 9vw, 132px);
  --t-display-l:  clamp(44px, 6vw, 88px);
  --t-display-m:  clamp(32px, 4vw, 56px);
  --t-h2:         clamp(28px, 3vw, 44px);
  --t-h3:         clamp(20px, 1.6vw, 24px);
  --t-body-l:     18px;
  --t-body:       16px;
  --t-caption:    12px;
  --t-footnote:   13px;

  /* Spacing rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 192px;

  /* Layout */
  --max:      1480px;
  --gutter:   clamp(24px, 5vw, 80px);
  --section-y: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  font-variant-numeric: oldstyle-nums proportional-nums;
  /* hard guarantee: no horizontal scroll anywhere */
  overflow-x: hidden;
}

img, svg, video, canvas, picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover { opacity: 0.55; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--fg); color: var(--bg); }

/* ============================================================
   Typography classes
   ============================================================ */

.kicker {
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-feature-settings: 'tnum';
}

.display-xl {
  font-family: var(--font-display);
  font-size: var(--t-display-xl);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
  margin: 0;
}
.display-l {
  font-family: var(--font-display);
  font-size: var(--t-display-l);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
.display-m {
  font-family: var(--font-display);
  font-size: var(--t-display-m);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.body-l {
  font-size: var(--t-body-l);
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--fg);
}
.body { font-size: var(--t-body); line-height: 1.55; text-wrap: pretty; }

.footnote {
  font-size: var(--t-footnote);
  color: var(--muted);
  line-height: 1.55;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}

.kanji {
  font-family: var(--font-kanji);
  font-weight: 400;
}

/* superscript citations */
.cite {
  font-family: var(--font-mono);
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
  color: var(--muted);
  border-bottom: none;
  margin-left: 1px;
}
.cite:hover { color: var(--fg); opacity: 1; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding-block: var(--section-y); }
section.tight { padding-block: clamp(48px, 7vw, 96px); }

.divider {
  height: 1px;
  background: var(--hairline);
  width: 100%;
  margin: 0;
}

/* Hairline rule top of section */
.rule-top {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 5vw, 72px);
}

/* Two-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Editorial 12-col offset block (heading offset 1/3, body 2/3) */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 980px) {
  .editorial {
    grid-template-columns: 4fr 6fr;
    gap: clamp(40px, 6vw, 96px);
  }
}

/* ============================================================
   Top navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--hairline) 75%, transparent);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--fg);
  border-bottom: none;
}
.nav-brand:hover { opacity: 1; }
.nav-brand .mark { font-weight: 500; }
.nav-brand .kanji-mark {
  font-family: var(--font-kanji);
  font-size: 14px;
  margin-left: 8px;
  color: var(--muted);
  vertical-align: 1px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
  border-bottom: none;
  position: relative;
  padding-block: 2px;
}
.nav-links a[aria-current="page"] {
  color: var(--fg);
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  inset: auto 0 -3px 0;
  height: 1px;
  background: currentColor;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--fg);
  padding: 10px 16px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--leaf);
  display: inline-block;
}

@media (min-width: 900px) {
  .nav-links, .nav-cta { display: inline-flex; }
}

/* Mobile menu trigger */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 1px;
  width: 22px;
  background: var(--fg);
  margin-left: auto;
}
.nav-burger span:nth-child(2) { width: 18px; }
@media (min-width: 900px) { .nav-burger { display: none; } }

/* Mobile drawer — no transition, instant open/close */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.mobile-menu.is-open { visibility: visible; }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu-close {
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--fg);
  line-height: 1;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  flex: 1;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding: 10px 0;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.mobile-menu nav a .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.mobile-menu-foot {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   Footer
   ============================================================ */

footer.footer {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding: clamp(80px, 9vw, 128px) 0 32px;
  margin-top: 0;
}
footer.footer .display-l,
footer.footer ul a,
footer.footer ul li { color: var(--fg-inverse); }
footer.footer h4,
footer.footer .brand-block p { color: var(--muted-inverse); }
/* Collapse the gap when the section just before the footer is also dark. */
section.bg-inverse + footer.footer {
  padding-top: clamp(48px, 6vw, 80px);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-inverse);
  font-weight: 400;
  margin: 0 0 20px 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 15px;
  color: var(--fg-inverse);
  border-bottom: none;
}
.footer ul a:hover { opacity: 0.55; }

.footer .brand-block .display-l {
  color: var(--fg-inverse);
  margin-bottom: 24px;
  font-size: clamp(36px, 4.5vw, 56px);
}
.footer .brand-block .kanji-large {
  font-family: var(--font-kanji);
  font-size: clamp(56px, 7vw, 88px);
  color: var(--fg-inverse);
  opacity: 0.85;
  line-height: 1;
}
.footer .brand-block p { color: var(--muted-inverse); max-width: 36ch; font-size: 14px; }

.footer-meta {
  border-top: 1px solid var(--border-inverse);
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: 28px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-inverse);
}
@media (min-width: 768px) {
  .footer-meta { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 999px;
  border-bottom: 1px solid var(--fg); /* override link reset */
}
.btn:hover { opacity: 1; background: transparent; color: var(--fg); border-color: var(--fg); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
}
.btn.ghost:hover { background: var(--fg); color: var(--bg); }

.btn.inverse {
  background: var(--fg-inverse);
  color: var(--bg-inverse);
  border-color: var(--fg-inverse);
}
.btn.inverse:hover {
  background: transparent;
  color: var(--fg-inverse);
}

/* Ensure inverse sections have proper text colors */
.bg-inverse, .counters, .cans-stage, .heat-map, footer.footer {
  --fg: var(--fg-inverse);
  --muted: var(--muted-inverse);
  --border: var(--border-inverse);
  --hairline: var(--border-inverse);
}

/* Subtle water effect for ocean-blue sections */
.counters, .cans-stage, footer.footer {
  position: relative;
  overflow: hidden;
}
.counters::before, .cans-stage::before, footer.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 40% at 20% 100%, oklch(35% 0.10 220 / 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 90%, oklch(40% 0.08 230 / 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 100% 30% at 50% 105%, oklch(45% 0.12 210 / 0.22) 0%, transparent 40%);
  z-index: 0;
}
.counters > *, .cans-stage > *, footer.footer > * {
  position: relative;
  z-index: 1;
}

.btn .arrow {
  width: 14px; height: 14px;
  transform: translateY(1px);
}

/* ============================================================
   Hero (used on most pages)
   ============================================================ */

.page-head {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.page-head .kicker { margin-bottom: 24px; }
.page-head .display-l { max-width: 18ch; }
.page-head .lead {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: var(--t-body-l);
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================================
   Cards (editorial)
   ============================================================ */

.fact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 32px;
  border-top: 1px solid var(--hairline);
}
.fact .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.fact .label {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  max-width: 32ch;
}
.fact .src {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Pillars row */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.pillars .pillar {
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--hairline);
  }
  .pillars .pillar {
    border-bottom: none;
    border-right: 1px solid var(--hairline);
    padding: clamp(32px, 3.5vw, 56px) clamp(24px, 3vw, 40px);
  }
  .pillars .pillar:last-child { border-right: none; }
  .pillars .pillar:first-child { padding-left: 0; }
}
.pillars .pillar .num-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillars .pillar .lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pillars .pillar .body {
  color: var(--muted);
  font-size: 15px;
  max-width: 38ch;
}

/* ============================================================
   Live counter strip (Home + Cause)
   ============================================================ */

.counters {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding-block: clamp(64px, 8vw, 112px);
}
.counters .display-m,
.counters .counter .value,
.counters .counter .desc { color: var(--fg-inverse); }
.counters .container { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.counters .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.counters .head .kicker { color: var(--muted-inverse); }
.counters .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .counters .row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .counters .row { grid-template-columns: repeat(3, 1fr); }
}
.counter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-inverse);
}
.counter .value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}
.counter .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-inverse);
}
.counter .desc {
  font-size: 14px;
  color: var(--fg-inverse);
  max-width: 30ch;
}
.counters .foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-inverse);
  border-top: 1px solid var(--border-inverse);
  padding-top: 24px;
}

/* ============================================================
   The Can (canvas product still — SVG, dark stage)
   ============================================================ */

.cans-stage {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding-block: clamp(64px, 9vw, 128px);
  overflow: hidden;
}
.cans-stage .copy .display-l,
.cans-stage .copy .body-l { color: var(--fg-inverse); }
.cans-stage .copy .kicker { color: var(--muted-inverse); }
.cans-stage .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .cans-stage .container { grid-template-columns: 1.1fr 1fr; }
}
.cans-stage .copy .kicker { color: var(--muted-inverse); margin-bottom: 28px; }
.cans-stage .copy .display-l { color: var(--fg-inverse); max-width: 14ch; margin-bottom: 24px; }
.cans-stage .copy .body-l { color: var(--muted-inverse); max-width: 48ch; }

.cans-render {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(24px, 4vw, 48px);
}
.cans-render::before {
  content: '';
  position: absolute;
  inset: auto 8% 12% 8%;
  height: 4px;
  background: radial-gradient(ellipse at center, oklch(40% 0.005 80) 0%, transparent 70%);
  filter: blur(8px);
}
.can {
  position: relative;
  width: 30%;
  aspect-ratio: 9 / 22;
  border-radius: 14px 14px 22px 22px / 24px 24px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 8px;
  text-align: center;
}
.can.sumi {
  background: linear-gradient(to right, oklch(8% 0.003 80) 0%, oklch(16% 0.005 80) 40%, oklch(20% 0.005 80) 60%, oklch(8% 0.003 80) 100%);
  color: var(--fg-inverse);
}
.can.yuki {
  background: linear-gradient(to right, oklch(80% 0.005 80) 0%, oklch(96% 0.005 80) 40%, oklch(98% 0.003 80) 60%, oklch(80% 0.005 80) 100%);
  color: var(--bg-inverse);
}
.can::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background: linear-gradient(to bottom, oklch(75% 0 0), oklch(55% 0 0));
  border-radius: 14px 14px 0 0;
}
.can::after {
  content: '';
  position: absolute;
  inset: 4px 0 auto 0;
  height: 4px;
  background: oklch(30% 0 0);
}
.can .can-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: -0.04em;
  margin-top: 28px;
}
.can .can-kanji {
  font-family: var(--font-kanji);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.04em;
  opacity: 0.92;
}
.can .can-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================================================
   Newsletter / waitlist
   ============================================================ */

.waitlist-band {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.waitlist-band .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
  padding-block: clamp(64px, 7vw, 96px);
}
@media (min-width: 900px) {
  .waitlist-band .container { grid-template-columns: 1.1fr 1fr; }
}
.waitlist-band .display-m { max-width: 14ch; }
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist-form .input-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--fg);
}
.waitlist-form input[type="email"] {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--fg);
  outline: none;
}
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form button {
  appearance: none;
  background: transparent;
  color: var(--fg);
  border: 0;
  padding: 0 8px 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.waitlist-form .small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.waitlist-form.success .input-row { display: none; }
.waitlist-form .ok {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
}
.waitlist-form.success .ok { display: block; }

/* ============================================================
   Footnote / citation table
   ============================================================ */

.refs {
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.refs h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px 0;
  font-weight: 400;
}
.refs ol {
  padding-left: 24px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.refs ol li { padding-left: 6px; }
.refs ol li a { color: var(--fg); }

/* ============================================================
   Tags / chip rows
   ============================================================ */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ============================================================
   Tables
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--fg);
}
.table tbody td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.table tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.table .num { font-variant-numeric: tabular-nums; }

/* ============================================================
   Scroll reveal — show immediately, no transition
   ============================================================ */

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Utility
   ============================================================ */

.max-prose { max-width: 64ch; }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.inline-link {
  border-bottom: 1px solid var(--fg);
}

.bg-stone { background: var(--stone); }
.bg-inverse { background: var(--bg-inverse); color: var(--fg-inverse); }
.bg-inverse .body-l, .bg-inverse .body, .bg-inverse .display-l { color: var(--fg-inverse); }
.bg-inverse .muted { color: var(--muted-inverse); }
.bg-inverse .kicker { color: var(--muted-inverse); }
.bg-inverse a { color: var(--fg-inverse); }
.bg-inverse .hairline { background: var(--border-inverse); }
.bg-inverse .refs h4 { color: var(--muted-inverse); }
.bg-inverse .refs ol { color: var(--muted-inverse); }
.bg-inverse .refs ol li a { color: var(--fg-inverse); }
