/* Site styles — adapted from index.html prototype.
 *
 * Kept verbatim where possible; the following sections were dropped from
 * the prototype because they are not shipped in Phase 1:
 *   - #tweaks-panel (dev-only affordance)
 *   - Editorial + distillation hero variants (broadsheet ships first)
 *   - .distill-diagram SVG wiring
 *   - .position-card + .leaderboard (SYSTEM-PLAN takeover rewrite)
 *   - .mc-select custom combobox (native <select> by default)
 * Restoration of any of these is a straight port from index.html.
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--mc-bg-primary);
  color: var(--mc-text-primary);
  font-family: var(--mc-font-sans);
  overflow-x: hidden;
  position: relative;
}

/* ─ Focus visibility ─
 * Project-wide keyboard focus ring. Suppress the default outline only
 * when focus is *not* keyboard-driven (i.e. mouse / touch); never hide
 * focus globally. The .field input/.field select rule below relies on
 * .field.focused to hide its own ring once JS upgrades the input — when
 * JS hasn't run, the :focus-visible ring still appears. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mc-action);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link — hidden until focused, then drops in at top-left so a
 * keyboard user can jump past the topnav straight to #main. */
.skip-link {
  position: absolute;
  left: var(--mc-xs);
  top: -40px;
  z-index: 1000;
  background: var(--mc-bg-primary);
  color: var(--mc-text-primary);
  font-family: var(--mc-font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  padding: var(--mc-sm) var(--mc-md);
  border: 1px solid var(--mc-text-primary);
  transition: top 160ms cubic-bezier(.4,0,.2,1);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: var(--mc-xs);
}

/* Horizontal-scroll wrapper for wide tables (e.g. privacy sub-processors)
 * so narrow viewports don't blow out the layout. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 480px; }

/* Privacy page — replaces inline styles in privacy.astro. All spacing flows
 * from the design-system token scale; the table uses --mc-divider for row
 * rules so we never drop pure black on a cream surface. */
.section.privacy { padding-top: var(--mc-xxl); }
.section.privacy h2 {
  margin-top: calc(var(--mc-x5l) + var(--mc-md));
  scroll-margin-top: calc(var(--mc-x5l) + var(--mc-md));
}
.privacy ul {
  margin-top: var(--mc-sm);
  padding-left: 1.4em;
  line-height: 1.8;
}
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--mc-md);
  font-size: 14px;
}
.privacy-table th {
  text-align: left;
  border-bottom: 1px solid var(--mc-text-primary);
  padding: var(--mc-xs) var(--mc-sm) var(--mc-xs) 0;
  font-weight: 600;
}
.privacy-table th + th { padding-left: var(--mc-sm); padding-right: var(--mc-sm); }
.privacy-table th:last-child { padding-right: 0; padding-left: var(--mc-sm); }
.privacy-table td {
  border-bottom: 1px solid var(--mc-divider);
  padding: 10px var(--mc-sm) 10px 0;
  line-height: 1.6;
}
.privacy-table td + td { padding-left: var(--mc-sm); padding-right: var(--mc-sm); }
.privacy-table td:last-child { padding-right: 0; padding-left: var(--mc-sm); }
.privacy-table tr:last-child td { border-bottom: 0; }
.privacy-fineprint {
  margin-top: var(--mc-md);
  font-size: 14px;
}
.privacy-section { margin-top: var(--mc-md); }
.privacy-list-item-spacing { margin-top: var(--mc-md); }
.privacy-wrap { max-width: 720px; }

/* Standard sr-only pattern for visually-hidden but screen-reader-readable
 * content (e.g. a heading whose visual styling is provided by an ancestor). */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─ Background: margins option from prototype (corner crop marks +
 *   coffee ring accents). Single option shipped; tinted/watermark are
 *   prototype-only. */
body[data-bg="margins"] .section::before,
body[data-bg="margins"] .manifesto::before {
  content: "§";
  position: absolute; right: var(--mc-xxl); top: -0.55em;
  font-family: var(--mc-font-serif); font-size: 18px;
  color: var(--mc-text-tertiary); opacity: 0.5;
}
body[data-bg="margins"] .manifesto::after {
  content: "";
  position: absolute; left: -60px; top: 50%;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid var(--mc-warm-grey);
  opacity: 0.25;
  transform: translateY(-50%);
  pointer-events: none;
}
body[data-bg="margins"] .hero::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 2.5px solid var(--mc-warm-grey);
  opacity: 0.15;
  pointer-events: none;
}
body[data-bg="margins"]::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) 20px 16px / 1px 14px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) 14px 20px / 14px 1px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) calc(100% - 20px) 16px / 1px 14px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) calc(100% - 28px) 20px / 14px 1px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) 20px calc(100% - 30px) / 1px 14px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) 14px calc(100% - 20px) / 14px 1px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) calc(100% - 20px) calc(100% - 30px) / 1px 14px no-repeat,
    linear-gradient(var(--mc-text-primary), var(--mc-text-primary)) calc(100% - 28px) calc(100% - 20px) / 14px 1px no-repeat;
  opacity: 0.12;
}

/* ─ Paper grain ─ */
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 2400ms ease-out;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.102 0 0 0 0 0.098 0 0 0 0 0.090 0 0 0 0.055 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body.is-loaded .paper-grain { opacity: 0.55; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--mc-xxl); position: relative; z-index: 2; }

/* ─ Masthead ─ */
.masthead { padding: 28px 0 0; text-align: center; position: relative; }
.masthead-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--mc-xl);
  font-family: var(--mc-font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--mc-text-secondary); text-transform: uppercase;
}
.masthead-row .lhs { text-align: left; }
.masthead-row .rhs { text-align: right; }
.masthead-center {
  display: flex; align-items: baseline; justify-content: center; gap: 0;
  font-family: var(--mc-font-serif);
  font-size: 28px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--mc-text-primary); text-transform: none; line-height: 1;
}
.tick-cell { display: inline-block; overflow: hidden; height: 1.1em; vertical-align: bottom; line-height: 1.1em; min-width: 1ch; }
.tick-col { display: flex; flex-direction: column; transition: transform 520ms cubic-bezier(.34,1.2,.4,1); will-change: transform; }
.tick-col > span { height: 1.1em; line-height: 1.1em; display: block; }
#issue-num { display: inline-block !important; white-space: nowrap; }

.masthead-rule { display: block; height: 1px; background: var(--mc-divider); margin: var(--mc-lg) 0 0; transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(.4,0,.2,1); }
.masthead-rule.double { height: 3px; background: none; border-top: 1px solid var(--mc-divider); border-bottom: 1px solid var(--mc-divider); margin-top: var(--mc-xxs); }
body.is-loaded .masthead-rule { transform: scaleX(1); }
body.is-loaded .masthead-rule.double { transition-delay: 180ms; }

.masthead-back {
  font-family: var(--mc-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mc-text-secondary);
  text-decoration: none;
}
.masthead-back:hover,
.masthead-back:focus-visible {
  color: var(--mc-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.masthead-row .lhs .masthead-back { display: inline-block; padding: 8px 0; }

/* ─ Nav ─
 * Wide desktop: topnav floats at the body edges (ABOUT far-left, CTA
 * far-right) while the masthead lives centered inside the 1160px wrap.
 * At narrower viewports the wrap fills the screen and the topnav would
 * collide with VOL/date — handled by the @media (max-width: 1199px)
 * fallback further down the file (drops it back into normal flow above
 * the masthead). Below 840px the topnav is hidden entirely.
 */
.topnav {
  position: absolute; top: 28px; left: var(--mc-xxl); right: var(--mc-xxl);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 3;
}
.topnav .anchor {
  font-family: var(--mc-font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mc-text-secondary); cursor: pointer; position: relative;
  border: 0; background: transparent; padding: var(--mc-xs) var(--mc-xxs);
}
.topnav .anchor::after {
  content: ""; position: absolute; left: var(--mc-xxs); right: var(--mc-xxs); bottom: var(--mc-xxs);
  height: 1px; background: var(--mc-text-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
}
.topnav .anchor:hover::after { transform: scaleX(1); }
.topnav .cta {
  font-family: var(--mc-font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mc-action); cursor: pointer; position: relative; background: transparent; border: 0; padding: var(--mc-xs) var(--mc-xxs);
}
.topnav .cta::after {
  content: "→"; margin-left: var(--mc-xs);
  display: inline-block; transition: transform 280ms cubic-bezier(.4,0,.2,1);
}
.topnav .cta:hover::after { transform: translateX(4px); }

/* ─ Reveal animations ─ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 800ms cubic-bezier(.4,0,.2,1), transform 800ms cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 700ms cubic-bezier(.4,0,.2,1), transform 700ms cubic-bezier(.4,0,.2,1); }
.reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > *:nth-child(1) { transition-delay: 60ms; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: 160ms; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: 260ms; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: 360ms; }

/* ─ Hero CTA ─ */
.hero-cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--mc-text-primary); color: var(--mc-text-inverse);
  border: 0; cursor: pointer;
  font-family: var(--mc-font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 18px 28px; border-radius: 2px;
  transition: background 240ms cubic-bezier(.4,0,.2,1), transform 240ms cubic-bezier(.4,0,.2,1);
}
.hero-cta .arrow { display: inline-block; transition: transform 280ms cubic-bezier(.4,0,.2,1); }
.hero-cta:hover { background: var(--mc-action); }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* ─ Hero — broadsheet variant (only variant shipped Phase 1) ─ */
.hero { padding: 56px 0 88px; position: relative; text-align: center; }
.hero .eyebrow {
  font-family: var(--mc-font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--mc-text-secondary); text-transform: uppercase;
  margin-top: 56px;
}
.hero h1 {
  font-family: var(--mc-font-serif); font-weight: 700;
  font-size: clamp(48px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.035em;
  max-width: 14ch; margin: 18px auto 0;
}
.hero h1 em {
  font-family: var(--mc-font-serif); font-style: italic; font-weight: 700;
  color: var(--mc-action);
}
.hero .dek {
  font-family: var(--mc-font-serif); font-style: italic;
  font-size: 20px; line-height: 30px; color: var(--mc-text-secondary);
  max-width: 48ch; margin: var(--mc-xl) auto 0;
}
.hero .hero-form-wrap { margin: var(--mc-x3l) auto 0; max-width: 520px; }
.hero .waveform { margin: 56px auto 0; max-width: 520px; }

/* ─ Form fields ─ */
.form-row-two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 18px;
}
.field {
  border-bottom: 1px solid var(--mc-divider);
  padding-bottom: var(--mc-xxs);
  position: relative;
}
.field::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px;
  width: 100%; background: var(--mc-action);
  transform: scaleX(0); transform-origin: left;
  transition: transform 360ms cubic-bezier(.4,0,.2,1);
}
.field.focused::after { transform: scaleX(1); }
.field label {
  display: block; font-family: var(--mc-font-sans);
  font-size: 10px; letter-spacing: 0.22em; font-weight: 600;
  text-transform: uppercase; color: var(--mc-text-secondary);
  margin-bottom: 6px;
}
.field input,
.field select {
  border: 0; background: transparent; width: 100%;
  font-family: var(--mc-font-serif); font-size: 18px;
  color: var(--mc-text-primary);
  padding: var(--mc-xs) 0 var(--mc-sm);
}
/* When JS has run and the field is "focused" (its own underline indicator
 * is showing), suppress the default focus ring on the input. If JS hasn't
 * run, the project-wide :focus-visible ring still appears. */
.field.focused input,
.field.focused select { outline: none; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: var(--mc-xl); }
.field select:invalid { color: var(--mc-text-tertiary); font-style: italic; }
.field select:not(:required):invalid { color: var(--mc-text-tertiary); }
.field.field-select { position: relative; }
.field.field-select::before {
  content: ""; position: absolute; right: var(--mc-xxs); bottom: 14px;
  width: 10px; height: 6px;
  background: currentColor;
  color: var(--mc-text-secondary);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}
.field input::placeholder { color: var(--mc-text-tertiary); font-style: italic; }

/* Honeypot — must be rendered but never shown to humans. Off-screen
 * rather than display:none so that headless crawlers treat it as a live
 * field. */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden;
}

/* Neutralise browser autofill styling */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--mc-text-primary) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  background-color: transparent !important;
  caret-color: var(--mc-text-primary);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

/* ─ Validation ─ */
.mc-error {
  position: absolute; z-index: 30;
  background: var(--mc-bg-primary);
  border: 1px solid var(--mc-text-primary);
  padding: 10px 14px 10px 12px;
  font-family: var(--mc-font-serif); font-style: italic;
  font-size: 14px; color: var(--mc-text-primary);
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 260ms cubic-bezier(.4,0,.2,1), transform 260ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  white-space: nowrap;
  left: 0; top: calc(100% + 10px);
}
.mc-error.show { opacity: 1; transform: none; }
.mc-error::after {
  content: ""; position: absolute; top: -5px; left: 16px;
  width: 8px; height: 8px; background: var(--mc-bg-primary);
  border-left: 1px solid var(--mc-text-primary);
  border-top: 1px solid var(--mc-text-primary);
  transform: rotate(45deg);
}
.field.error::after { background: var(--mc-text-primary) !important; transform: scaleX(1) !important; }
.field.error label { color: var(--mc-text-primary); }

/* Global form-level error (non-field issues like Turnstile fail). Rendered
 * as a live region so screen readers announce without stealing focus. The
 * italic Lora at primary text colour, paired with the popover's 1px border,
 * communicates the error state without abusing the trust-amber token. */
.form-error {
  margin-top: 14px;
  font-family: var(--mc-font-serif); font-style: italic;
  color: var(--mc-text-primary); font-size: 14px;
  min-height: 1em;
}

/* ─ Form foot ─ */
.form-foot {
  margin-top: var(--mc-md); display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mc-font-sans); font-size: 12px; color: var(--mc-text-secondary);
}
.form-foot em { font-style: italic; }

.inline-form-like {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--mc-font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mc-action);
  padding: var(--mc-sm) var(--mc-xs);
  display: inline-flex; align-items: center; gap: 10px;
}
.inline-form-like .arrow { display: inline-block; transition: transform 280ms cubic-bezier(.4,0,.2,1); }
.inline-form-like:hover .arrow { transform: translateX(4px); }

/* ─ Waveform ─ */
.waveform {
  display: flex; align-items: center; gap: var(--mc-md);
  padding: var(--mc-md) 0;
  border-top: 1px solid var(--mc-divider);
  border-bottom: 1px solid var(--mc-divider);
}
.waveform-label {
  font-family: var(--mc-font-sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mc-text-secondary); white-space: nowrap;
}
.waveform-bars {
  flex: 1; display: flex; align-items: center; gap: 2px; height: 32px;
}
.waveform-bar {
  flex: 1; background: var(--mc-text-primary); opacity: 0.35;
  border-radius: 1px; min-width: 2px;
  height: 100%;
  transform: scaleY(0.12);
  transform-origin: center;
  transition: opacity 260ms ease-out;
}
.waveform-time {
  font-family: var(--mc-font-sans); font-size: 11px;
  color: var(--mc-text-secondary); letter-spacing: 0.12em;
  min-width: 38px; text-align: right;
}

/* ─ Section chrome ─ */
.section { padding: 96px 0; border-top: 1px solid var(--mc-divider); position: relative; }
.section-kicker {
  display: flex; align-items: center; gap: var(--mc-md);
  font-family: var(--mc-font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mc-text-secondary); margin-bottom: var(--mc-xxl);
}
.section-kicker::after { content: ""; flex: 1; height: 1px; background: var(--mc-divider); }
.section h2 {
  font-family: var(--mc-font-serif); font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 18ch; margin: 0 0 28px;
}
.section h2 em { font-style: italic; color: var(--mc-action); }
.section .lede {
  font-family: var(--mc-font-serif); font-size: 20px; line-height: 30px;
  color: var(--mc-text-secondary); max-width: 56ch; font-style: italic;
}

/* ─ Three pillars ─ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mc-x3l); margin-top: 56px; }
.pillar { padding-top: var(--mc-lg); border-top: 2px solid var(--mc-text-primary); }
.pillar .num {
  font-family: var(--mc-font-serif); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; color: var(--mc-action); margin-bottom: var(--mc-md);
}
.pillar h3 {
  font-family: var(--mc-font-serif); font-weight: 700;
  font-size: 24px; line-height: 30px; letter-spacing: -0.02em;
  margin: 0 0 var(--mc-sm);
}
.pillar p { font-size: 15px; line-height: 24px; color: var(--mc-text-secondary); margin: 0; }

/* ─ Manifesto ─ */
.manifesto {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--mc-divider);
  border-bottom: 1px solid var(--mc-divider);
  position: relative;
}
.manifesto blockquote {
  font-family: var(--mc-font-serif); font-weight: 400; font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25; letter-spacing: -0.02em;
  max-width: 22ch; margin: 0 auto;
  color: var(--mc-text-primary);
}
.manifesto .dropcap::first-letter {
  font-family: var(--mc-font-serif); font-weight: 700; font-style: normal;
  float: left;
  font-size: 5em;
  line-height: 0.85;
  padding-right: 0.08em;
  padding-top: 0.06em;
  color: var(--mc-action);
}
.manifesto cite {
  display: block; margin-top: var(--mc-x3l);
  font-family: var(--mc-font-sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mc-text-secondary);
}

/* ─ Waitlist section ─ */
.waitlist-section {
  padding: 120px 0;
  background: var(--mc-bg-secondary);
  border-top: 1px solid var(--mc-divider);
  border-bottom: 1px solid var(--mc-divider);
}
.waitlist-section .box { max-width: 720px; margin: 0 auto; text-align: center; }
.waitlist-section h2 {
  font-family: var(--mc-font-serif); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 auto var(--mc-xl); max-width: 16ch;
}
.waitlist-section h2 em { font-style: italic; color: var(--mc-action); }
.waitlist-section .dek {
  font-family: var(--mc-font-serif); font-style: italic;
  font-size: 19px; line-height: 28px; color: var(--mc-text-secondary);
  max-width: 48ch; margin: 0 auto var(--mc-x4l);
}
.waitlist-form { text-align: left; }
.age-statement {
  font-family: var(--mc-font-sans); font-size: 11px;
  color: var(--mc-text-secondary); margin-top: var(--mc-sm); text-align: left;
  letter-spacing: 0.04em;
}

/* ─ Inbox state (new per SYSTEM-PLAN) ─ */
.inbox-state {
  max-width: 520px; margin: var(--mc-x4l) auto 0; text-align: center;
  padding: var(--mc-xxl); border-top: 2px solid var(--mc-text-primary);
  border-bottom: 1px solid var(--mc-divider);
}
.inbox-state .inbox-msg {
  font-family: var(--mc-font-serif); font-style: italic;
  font-size: 19px; line-height: 28px; color: var(--mc-text-primary);
  margin: 0 0 var(--mc-lg);
}
.inbox-state .inbox-reenter {
  font-family: var(--mc-font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent; border: 0; cursor: pointer;
  color: var(--mc-action); padding: 10px 4px;
  border-bottom: 1px solid var(--mc-divider);
}
.inbox-state .inbox-reenter:hover { border-bottom-color: var(--mc-action); }

/* ─ Capacity banner ─ */
.capacity-banner {
  display: none;
  padding: var(--mc-lg) var(--mc-xl); margin-bottom: var(--mc-xl);
  border: 1px solid var(--mc-text-primary);
  background: var(--mc-bg-primary);
  font-family: var(--mc-font-serif); font-style: italic;
  font-size: 16px; color: var(--mc-text-primary);
  text-align: center;
}
body.is-capacity .capacity-banner { display: block; }
body.is-capacity .hero-cta { background: var(--mc-text-secondary); }
body.is-capacity #main-form { opacity: 0.95; }

/* ─ FAQ ─ */
.faq-wrap { max-width: 780px; }
.faq { border-top: 1px solid var(--mc-divider); padding: var(--mc-xl) 0; }
.faq:last-of-type { border-bottom: 1px solid var(--mc-divider); }
.faq summary {
  font-family: var(--mc-font-serif); font-weight: 600; font-size: 20px;
  letter-spacing: -0.015em; color: var(--mc-text-primary);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--mc-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  flex-shrink: 0;
  width: 18px; height: 18px; position: relative; margin-top: 6px;
}
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; background: var(--mc-text-primary);
  transition: transform 300ms cubic-bezier(.4,0,.2,1);
}
.faq .plus::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.faq .plus::after  { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%) scaleY(1); }
.faq[open] .plus::after { transform: translateX(-50%) scaleY(0); }
.faq p {
  font-family: var(--mc-font-sans); font-size: 15px; line-height: 24px;
  color: var(--mc-text-secondary); margin: 14px 0 0; max-width: 64ch;
}

/* ─ Footer ─ */
.footer {
  padding: 48px 0 36px; border-top: 1px solid var(--mc-divider);
  font-family: var(--mc-font-sans); font-size: 12px; color: var(--mc-text-secondary);
  letter-spacing: 0.04em;
}
.footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: var(--mc-xl);
}
.footer .wordmark {
  font-family: var(--mc-font-serif); font-weight: 500; font-size: 22px;
  color: var(--mc-text-primary); letter-spacing: -0.01em;
}
.footer .links { display: flex; gap: var(--mc-xl); }
.footer .links a { color: var(--mc-text-secondary); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 600; }
.footer .links a:hover { color: var(--mc-text-primary); }
.footer .footer-brand { display: flex; align-items: center; gap: var(--mc-md); }
.footer .footer-divider {
  width: 1px; height: 22px; background: var(--mc-divider); display: inline-block;
}
.footer .footer-social {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--mc-sm);
}
.footer .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--mc-text-secondary);
  transition: color 120ms ease;
}
.footer .footer-social a:hover,
.footer .footer-social a:focus-visible { color: var(--mc-text-primary); }

/* ─ Success takeover ─ */
.takeover {
  position: fixed; inset: 0; z-index: 100;
  background: var(--mc-bg-primary);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 600ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.takeover.open { opacity: 1; pointer-events: auto; }

.peel {
  position: fixed; inset: 0; z-index: 99;
  background: var(--mc-bg-secondary);
  transform-origin: right center;
  transform: perspective(1800px) rotateY(-110deg);
  opacity: 0; pointer-events: none;
  transition: transform 700ms cubic-bezier(.35,0,.25,1), opacity 700ms;
  box-shadow: -20px 0 60px rgba(26,25,23,0.15);
}
.peel.animate { opacity: 1; transform: perspective(1800px) rotateY(0deg); }

.takeover-inner { max-width: 720px; margin: auto; padding: 80px 32px; text-align: center; width: 100%; }
.takeover .check {
  width: 64px; height: 64px; margin: 0 auto var(--mc-xxl);
  border-radius: 50%; border: 1.5px solid var(--mc-action);
  display: flex; align-items: center; justify-content: center;
}
.takeover .check svg { width: 28px; height: 28px; }
.takeover .check path {
  stroke: var(--mc-action); stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  transition: stroke-dashoffset 700ms cubic-bezier(.4,0,.2,1) 300ms;
}
.takeover.open .check path { stroke-dashoffset: 0; }
.takeover .briefed {
  font-family: var(--mc-font-serif); font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0;
}
.takeover .briefed em { font-style: italic; color: var(--mc-action); }
.takeover .briefed-sub {
  font-family: var(--mc-font-serif); font-style: italic;
  font-size: 19px; line-height: 28px; color: var(--mc-text-secondary);
  margin: var(--mc-xl) auto 0; max-width: 44ch;
}
.takeover .close-link {
  display: inline-block; margin-top: var(--mc-x3l);
  position: relative;
  font-family: var(--mc-font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mc-text-secondary); cursor: pointer;
  padding: 10px 4px 12px;
  background: transparent; border: 0;
}
.takeover .close-link::after {
  content: ""; position: absolute; left: var(--mc-xxs); right: var(--mc-xxs); bottom: 10px;
  height: 1px; background: var(--mc-divider);
}
.takeover .close-link:hover { color: var(--mc-text-primary); }
.takeover .close-link:hover::after { background: var(--mc-text-primary); }

/* Forward-invite affordance in the takeover (Phase 7 may drop per Decision 4). */
.takeover .share-row {
  margin-top: var(--mc-x3l);
  display: flex; align-items: center; gap: var(--mc-sm); justify-content: center;
}
.takeover .share-row .copy-btn {
  background: var(--mc-text-primary); color: var(--mc-text-inverse);
  border: 0; padding: 14px 24px; cursor: pointer;
  font-family: var(--mc-font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.takeover .share-row .copy-btn.copied { background: var(--mc-action); }

/* ─ Reduced motion ─ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.stagger > *,
  .masthead-rule, .paper-grain,
  .waveform-bar, .flow-line,
  .tick-col {
    transition: none !important; animation: none !important;
    opacity: 1 !important; transform: none !important;
  }
  .paper-grain { opacity: 0 !important; }
  .peel { display: none; }
  .takeover { transition: opacity 1ms linear; }
}

/* ─ Turnstile widget placement ─ */
.cf-turnstile { margin: var(--mc-lg) 0; }

/* ─ Responsive ─ */

/* Narrow desktop / tablet landscape (down to mobile breakpoint): drop the
 * topnav back into normal flow above the masthead. The absolute layout
 * needs the wrap to be inset enough that ABOUT/CTA at body edges clear
 * the masthead's lhs (VOL/ISSUE) and rhs (date) cells; that only happens
 * above ~1540px (CTA at viewport-210 must clear rhs.right at viewport/2
 * + 548). Below this, the topnav stacks above the masthead. */
@media (max-width: 1539px) {
  .topnav {
    position: relative;
    top: auto; left: auto; right: auto;
    max-width: 1160px;
    margin: 0 auto;
    padding: var(--mc-xxl) var(--mc-xxl) 0;
  }
}

@media (max-width: 840px) {
  .wrap { padding: 0 var(--mc-xl); }

  .privacy-table td { padding-top: 14px; padding-bottom: 14px; }
  .privacy-table td a { display: inline-block; padding: 6px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

  /* Hero: pull content up; balance eyebrow so "Q2 2026" doesn't orphan;
   * scale headline + dek so they don't overflow narrow viewports. */
  .hero { padding: var(--mc-xxl) 0 var(--mc-x4l); }
  .hero .eyebrow {
    margin-top: var(--mc-xxl);
    letter-spacing: 0.18em;
    text-wrap: balance;
  }
  .hero h1 { font-size: clamp(28px, 8.5vw, 48px); margin-top: var(--mc-md); }
  .hero .dek { font-size: 18px; line-height: 28px; }
  .hero .waveform { margin-top: var(--mc-x3l); }

  /* Waveform: stack onto two lines so the duration isn't truncated. */
  .waveform {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "label time"
      "bars  bars";
    column-gap: var(--mc-md);
    row-gap: var(--mc-xs);
    align-items: center;
  }
  .waveform-label { grid-area: label; }
  .waveform-time  { grid-area: time; text-align: right; }
  .waveform-bars  { grid-area: bars; }

  /* Sections: less padding so the page reads in fewer scrolls. */
  .section { padding: var(--mc-x5l) 0; }
  .manifesto { padding: var(--mc-x5l) 0; }
  .waitlist-section { padding: var(--mc-x5l) 0; }

  /* Section headlines: scale down + balance so long lines don't clip. */
  .section h2 { font-size: clamp(28px, 7vw, 44px); text-wrap: balance; }
  .section.privacy h2 {
    margin-top: var(--mc-x4l);
    scroll-margin-top: var(--mc-x4l);
  }
  .waitlist-section h2 { font-size: clamp(32px, 8vw, 48px); text-wrap: balance; }
  .manifesto blockquote { text-wrap: balance; }

  .pillars { grid-template-columns: 1fr; gap: var(--mc-xxl); }
  .form-row-two { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; align-items: flex-start; gap: var(--mc-sm); }

  /* Decorative corner accents crop awkwardly on narrow viewports — hide. */
  body[data-bg="margins"] .hero::after,
  body[data-bg="margins"] .manifesto::after,
  body[data-bg="margins"] .section::before,
  body[data-bg="margins"] .manifesto::before {
    display: none;
  }
}

/* Phone-only: stack the masthead row and drop the topnav. Tablets in
 * portrait keep the three-column masthead — the wordmark, edition stamp,
 * and date stay on a single line. The hero CTA carries the same
 * affordance the topnav would; ABOUT is reachable by scrolling. */
@media (max-width: 599px) {
  .topnav { display: none; }
  .masthead { padding: var(--mc-xl) 0 0; }
  .masthead-row { grid-template-columns: 1fr; gap: var(--mc-xs); }
  .masthead-row .lhs, .masthead-row .rhs { text-align: center; }
  .masthead-center { font-size: 22px; }
  .masthead-rule { margin-top: var(--mc-md); }

  /* Manifesto dropcap: a floated 5em W spans four lines on a phone, which
   * pushes lines 2–4 into an awkward narrow column to its right. The
   * column is too narrow to hold a real dropcap on a phone, so unset
   * the float — the text reads as a normal italic blockquote. */
  .manifesto .dropcap::first-letter {
    float: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
    color: inherit;
  }
}

/* Touch devices (phones + tablets, any orientation): the ABOUT / JOIN
 * THE WAITLIST topnav is desktop-only. Phones use the hero CTA; tablet
 * users reach the waitlist by scrolling. (hover: none) and (pointer:
 * coarse) is the touch test — it excludes laptops in the same width
 * range as iPads. */
@media (hover: none) and (pointer: coarse) {
  .topnav { display: none; }
}

/* Tablet sizes (touch + ≥600px): masthead is now the first element on
 * the page, so pad its top a touch to make up for the missing topnav. */
@media (min-width: 600px) and (hover: none) and (pointer: coarse) {
  .masthead { padding-top: var(--mc-x3l); }
}
