/*
  silicona.dev: the pre-launch page, its privacy notice and the 404 page.
  Colour tokens follow docs/brand/BRAND.md and docs/brand/MOTION_AND_THEMES.md section 8.
  Dark is the default theme; light follows prefers-color-scheme (and is used for print).

  Motion follows the brand's one rule (MOTION_AND_THEMES.md section 1): things move because something happened.
  The page arriving plays the four beats of the rule once, in order, and stops; the end state is the same as the
  reduced-motion render. Hovering or focusing a beat lights its layer of the drawing. Nothing loops.

  Geist and Geist Mono: Copyright (c) 2023 Vercel, in collaboration with basement.studio.
  SIL Open Font License 1.1, full text in /assets/fonts/OFL.txt.
*/

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens: dark (default) ------------------------------------------------
   Contrast (WCAG 2.x, on --bg): text 16.9 · text-2 8.9 · text-3 5.9 · label 10.3 · button text on amber 8.6 */
:root {
  color-scheme: dark light;
  --bg: #0a0a0a;
  --bg-raise: #0f0d0b;
  --surface: #13100d;
  --surface-2: #19150f;
  --hair: #2a2520;
  --hair-2: #3d352c;
  --text: #ecebe8;
  --text-2: #b6b1a9;
  --text-3: #8f8a82;
  --label: #f0b43c;
  --link: #f0b43c;
  --primary: #ed990e;
  --primary-hover: #f5ab32;
  --on-primary: #0a0a0a;
  --ring: #f0b43c;
  --ok: #7fd6a8;
  --amber-a: #f5b545;
  --amber-b: #ed990e;
  --amber-c: #d97706;
  --err: #ff8a7a;
  --err-bg: rgba(255, 110, 90, 0.08);
  --ok-bg: rgba(127, 214, 168, 0.08);
  --grid: rgba(255, 255, 255, 0.032);
  --glow-a: rgba(237, 153, 14, 0.16);
  --glow-b: rgba(70, 170, 200, 0.10);

  /* the drawing */
  --die-line: rgba(236, 235, 232, 0.30);
  --die-faint: rgba(236, 235, 232, 0.12);
  --die-cell: rgba(236, 235, 232, 0.055);
  --die-cell-line: rgba(236, 235, 232, 0.22);
  --die-wire: #8fb7c9;
  --die-via: #ecebe8;
  --die-seal: #ed990e;
  --die-bits: rgba(160, 190, 220, 0.20);
  --ir0: rgba(60, 120, 255, 0.0);
  --ir1: rgba(80, 200, 220, 0.10);
  --ir2: rgba(170, 110, 255, 0.10);
  --ir3: rgba(237, 153, 14, 0.14);
  --sheen: rgba(255, 214, 140, 0.55);
  --blend: screen;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --t-beat: 420ms;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ef;
    --bg-raise: #f1ece5;
    --surface: #fffdfa;
    --surface-2: #faf6f0;
    --hair: #ddd4c8;
    --hair-2: #c9bdae;
    --text: #15110d;
    --text-2: #463f37;
    --text-3: #675f55;
    --label: #8a4b00;
    --link: #8a4b00;
    --primary: #ed990e;
    --primary-hover: #f5ab32;
    --on-primary: #0a0a0a;
    --ring: #8a4b00;
    --ok: #17663f;
    --amber-a: #b86a00;
    --amber-b: #9a5400;
    --amber-c: #7f4200;
    --err: #a3271a;
    --err-bg: rgba(163, 39, 26, 0.06);
    --ok-bg: rgba(23, 102, 63, 0.07);
    --grid: rgba(20, 16, 12, 0.045);
    --glow-a: rgba(237, 153, 14, 0.20);
    --glow-b: rgba(60, 140, 190, 0.12);

    --die-line: rgba(21, 17, 13, 0.42);
    --die-faint: rgba(21, 17, 13, 0.16);
    --die-cell: rgba(21, 17, 13, 0.045);
    --die-cell-line: rgba(21, 17, 13, 0.26);
    --die-wire: #2f6f8f;
    --die-via: #15110d;
    --die-seal: #d4810a;
    --die-bits: rgba(40, 80, 120, 0.22);
    --ir1: rgba(40, 170, 200, 0.10);
    --ir2: rgba(140, 90, 230, 0.08);
    --ir3: rgba(237, 153, 14, 0.14);
    --sheen: rgba(255, 196, 90, 0.55);
    --blend: multiply;
  }
}

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }
.kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--label); margin: 0 0 14px;
}

/* the layout grid behind the top of the page: light on silicon */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, var(--glow-a), transparent 70%),
    radial-gradient(45% 45% at 95% 70%, var(--glow-b), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

/* ---- Buttons ---------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--primary); color: var(--on-primary);
  font: 600 1rem/1.2 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 100ms, transform 100ms, box-shadow 150ms;
  box-shadow: 0 0 0 0 rgba(237, 153, 14, 0);
}
.button:hover { background: var(--primary-hover); box-shadow: 0 6px 28px -6px rgba(237, 153, 14, 0.55); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.65; cursor: progress; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--hair-2); }
.button-ghost:hover { background: var(--surface-2); box-shadow: none; }

/* ---- Top bar ---------------------------------------------------------------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 8px; }
.lockup { display: block; width: clamp(96px, 11vw, 132px); border-radius: 6px; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-size: 0.9375rem; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 2px; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--hair-2); border-radius: 999px; padding: 8px 16px;
}
.nav .nav-cta:hover { border-color: var(--primary); }

/* ---- Hero ------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: clamp(28px, 3.5vw, 48px);
  align-items: center; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 8vw, 110px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--hair); border-radius: 999px; padding: 6px 14px 6px 12px; margin-bottom: clamp(22px, 3vw, 34px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(237, 153, 14, 0.18); }
.eyebrow .sep { color: var(--hair-2); }

.doctrine {
  font-size: clamp(2.15rem, 3.95vw, 3.9rem);
  font-weight: 650; letter-spacing: -0.048em; line-height: 1.0;
  margin: 0 0 clamp(22px, 3vw, 34px);
  position: relative; padding-left: clamp(34px, 3.6vw, 52px);
  text-wrap: initial;
}
/* the trace that ties the four beats together, like a net on a layout */
.doctrine::before {
  content: ""; position: absolute; left: 9px; top: 0.5em; bottom: 0.5em; width: 1px;
  background: linear-gradient(var(--hair-2), var(--hair-2) 70%, var(--primary));
}
.beat {
  display: block; position: relative; padding: 0.06em 0; color: var(--text-3);
  transition: color 150ms;
}
.beat .actor { color: var(--text); }
.beat::after {
  /* a via on the trace */
  content: ""; position: absolute; left: calc(-1 * clamp(34px, 3.6vw, 52px) + 5px); top: calc(0.5em - 4px);
  width: 9px; height: 9px; border: 1px solid var(--hair-2); background: var(--bg); border-radius: 2px;
}
.b2 { color: color-mix(in srgb, var(--text-3) 60%, var(--text-2)); }
.b3 { color: var(--text-2); }
.b4, .b4 .actor { color: var(--text); }
.b4 .actor {
  background: linear-gradient(100deg, var(--amber-a) 0%, var(--amber-b) 55%, var(--amber-c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.b4::after { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px rgba(237, 153, 14, 0.18); }

.lede { font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 36em; }
.status { color: var(--text-3); font-size: 0.975rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.hero-art { margin: 0; position: relative; }
.die { width: 100%; height: auto; overflow: visible; }
.fig-caption {
  margin-top: 10px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
  display: flex; gap: 12px; justify-content: flex-end;
}
.fig-caption span { color: var(--label); }

/* drawing layers */
.die path { fill: none; vector-effect: non-scaling-stroke; }
.die .irid { fill: url(#g-irid); mix-blend-mode: var(--blend); }
.die .ir0 { stop-color: var(--ir0); } .die .ir1 { stop-color: var(--ir1); } .die .ir2 { stop-color: var(--ir2); } .die .ir3 { stop-color: var(--ir3); }
.die .sh0 { stop-color: transparent; } .die .sh1 { stop-color: var(--sheen); }
.l-ticks path { stroke: var(--die-faint); stroke-width: 1; }
.l-frame path { stroke: var(--die-line); stroke-width: 1; }
.l-pads path { stroke: var(--die-line); stroke-width: 1; fill: var(--die-cell); }
.l-rails path { stroke: var(--die-faint); stroke-width: 1; }
.l-macro .macro-edge { stroke: var(--die-line); stroke-width: 1; fill: var(--die-cell); }
.l-macro .macro-bits { stroke: var(--die-bits); stroke-width: 1; }
.l-cells path { stroke: var(--die-cell-line); stroke-width: 0.75; fill: var(--die-cell); }
.l-wires path { stroke: var(--die-wire); stroke-width: 1; opacity: 0.75; stroke-linejoin: round; }
.l-vias path { fill: var(--die-via); stroke: none; opacity: 0.85; }
.l-seal path { stroke: var(--die-seal); stroke-width: 2; }
.die g { transition: opacity 240ms, filter 240ms; }
.die .sheen { fill: url(#g-sheen); mix-blend-mode: var(--blend); opacity: 0; pointer-events: none; }

/* a beat in focus lights its layer: 1 cells, 2 wires and rulers, 3 vias, 4 seal */
.hero.focus-1 .die g:not(.l-cells):not(.l-frame),
.hero.focus-2 .die g:not(.l-wires):not(.l-ticks):not(.l-frame),
.hero.focus-3 .die g:not(.l-vias):not(.l-frame),
.hero.focus-4 .die g:not(.l-seal):not(.l-frame) { opacity: 0.28; }
.hero.focus-1 .l-cells path { stroke: var(--label); }
.hero.focus-2 .l-ticks path { stroke: var(--label); }
.hero.focus-3 .l-vias path { fill: var(--label); opacity: 1; }
.hero.focus-4 .l-seal path { filter: drop-shadow(0 0 6px rgba(237, 153, 14, 0.8)); }
.hero.focus-1 .b1, .hero.focus-2 .b2, .hero.focus-3 .b3 { color: var(--text); }

/* the page arriving: the four beats, once, in order (end state = reduced-motion render) */
@media (prefers-reduced-motion: no-preference) {
  .beat { animation: beat-in var(--t-beat) var(--ease-enter) backwards; }
  .b1 { animation-delay: 80ms; } .b2 { animation-delay: 380ms; } .b3 { animation-delay: 680ms; } .b4 { animation-delay: 980ms; }
  .l-cells, .l-macro, .l-pads, .l-rails { animation: layer-in 500ms var(--ease-enter) 80ms backwards; }
  .l-wires { animation: layer-in 500ms var(--ease-enter) 380ms backwards; }
  .l-ticks { animation: layer-in 500ms var(--ease-enter) 380ms backwards; }
  .l-vias { animation: layer-in 400ms var(--ease-enter) 680ms backwards; }
  .l-seal { animation: layer-in 400ms var(--ease-enter) 980ms backwards; }
  .l-seal path { stroke-dasharray: 3200; animation: draw 650ms cubic-bezier(0.65, 0, 0.35, 1) 980ms both; }
  .die .sheen { animation: sweep 650ms cubic-bezier(0.65, 0, 0.35, 1) 1400ms both; }
  .b4::after { animation: via-on 400ms var(--ease-enter) 980ms both; }
}
@keyframes beat-in { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
@keyframes layer-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 3200; } to { stroke-dashoffset: 0; } }
@keyframes sweep { 0% { opacity: 0; transform: translateX(-60%); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%); } }
@keyframes via-on { from { background: var(--bg); box-shadow: none; } }

/* ---- Vision ----------------------------------------------------------------- */
.vision {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px);
  padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--hair);
}
.vision h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -0.04em; }
.vision-body p { color: var(--text-2); max-width: 38em; }
.vision-body .big { font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.4; color: var(--text); letter-spacing: -0.015em; }
.share { margin: 36px 0 0; padding: 22px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); }
.share-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; }
.share-a { flex: 94; background: repeating-linear-gradient(90deg, var(--hair-2) 0 2px, transparent 2px 6px), var(--surface-2); }
.share-b { flex: 6; background: var(--primary); }
.share-legend { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 14px; font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); }
.share-legend b { color: var(--text); font-weight: 600; }
.share-legend span:last-child b { color: var(--label); }
.share figcaption { font-size: 0.9375rem; color: var(--text-2); }

/* ---- Evidence --------------------------------------------------------------- */
.evidence { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); border-top: 1px solid var(--hair); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.045em; }
.section-sub { color: var(--text-2); margin-top: 16px; font-size: 1.0625rem; }

.stats {
  list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair);
}
.stats li { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.stats li + li { padding-left: 22px; border-left: 1px solid var(--hair); }
.stat-num { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num .of { color: var(--text-3); }
.stat-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }

.records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.record {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 100% 28px;
}
.record::before {
  /* registration corner, like a layout marker */
  content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px;
  border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); border-top-left-radius: var(--radius);
}
.record-head { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: start; }
.record-id { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--text-3); }
.record h3 { font-size: 1.375rem; letter-spacing: -0.025em; }
.stamp {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; font-weight: 600;
  color: var(--label); border: 1px solid currentColor; border-radius: 4px; padding: 4px 7px; white-space: nowrap;
  transform: rotate(-2deg);
}
.stamp-quiet { color: var(--text-2); }
.stamp-open { color: var(--text-3); border-style: dashed; transform: none; }
.fields { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px dashed var(--hair-2); }
.fields div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--hair); font-size: 0.875rem; }
.fields dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.fields dd { margin: 0; text-align: right; color: var(--text); font-family: var(--mono); font-size: 0.8125rem; }
.record > p { color: var(--text-2); font-size: 0.96875rem; margin: 0; }
.verdict { font-family: var(--mono); font-size: 0.9em; color: var(--label); letter-spacing: 0.02em; }
.next { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--hair-2); }
.next li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--hair); font-size: 0.9375rem; color: var(--text); }
.box { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--text-3); border-radius: 3px; }

/* ---- Join ------------------------------------------------------------------- */
.join { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(56px, 8vw, 110px); scroll-margin-top: 16px; }
.join-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--hair-2);
  background:
    radial-gradient(70% 90% at 0% 0%, var(--glow-a), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--surface);
}
.join-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.join h2 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.join h2 .sub { display: block; color: var(--text-3); }
.join-intro > p { color: var(--text-2); max-width: 30em; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.perks li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); color: var(--text-2); font-size: 0.9375rem; }
.perk-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding-top: 3px; }

.signup { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .consent label { font-size: 0.9375rem; font-weight: 550; color: var(--text); }
.req, .opt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-left: 6px; }
.req { color: var(--label); }
.opt { color: var(--text-3); }
.signup input[type="email"], .signup input[type="text"], .signup select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--hair-2); background: var(--bg); color: var(--text);
  font: 400 1rem/1.3 var(--font); transition: border-color 100ms, box-shadow 150ms;
}
.signup select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.signup input:hover, .signup select:hover { border-color: var(--text-3); }
.signup input:focus-visible, .signup select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(237, 153, 14, 0.28); }
.signup [aria-invalid="true"] { border-color: var(--err) !important; }
.field-err { margin: 0; color: var(--err); font-size: 0.875rem; }
/* the e-mail check under the field (assets/site.js): a quiet tick, a warning, or "Did you mean ...?" */
.email-check { display: grid; gap: 4px; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.email-check:empty, .email-status:empty { display: none; }
.email-check p { margin: 0; }
.email-status.is-ok { color: var(--text-3); }
.email-status .tick { color: var(--ok); font-weight: 650; }
.email-status.is-no_mail, .email-status.is-disposable, .email-status.is-invalid { color: var(--label); }
.suggest-choices { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.suggest-use, .suggest-keep {
  font: inherit; font-weight: 600; color: var(--link); background: none; border: 0; padding: 2px 0; margin: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; text-align: left;
}
.suggest-keep { font-weight: 500; color: var(--text-2); }
.suggest-choices button { padding: 6px 0; }
.suggest-use:hover, .suggest-keep:hover { text-decoration-thickness: 2px; }
.suggest-use:focus-visible, .suggest-keep:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 14px; border: 1px solid var(--hair); border-radius: 10px; background: var(--bg-raise); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.consent label { font-weight: 450; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.consent .field-err { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { min-height: 65px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.submit-row .button { min-width: 200px; }
.form-status { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.form-status:empty { display: none; }
.notice-small { font-size: 0.8125rem; line-height: 1.55; color: var(--text-3); margin: 0; }

.notice { scroll-margin-top: 96px; display: none; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; border: 1px solid; }
.notice p { margin: 0; }
.notice .notice-title { font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.notice-ok { border-color: var(--ok); background: var(--ok-bg); }
.notice-ok .notice-title { color: var(--ok); }
.notice-err { border-color: var(--err); background: var(--err-bg); }
.notice-err .notice-title { color: var(--err); }
.notice:target, .notice.is-shown { display: block; }
.notice:focus { outline: none; }
/* no-JavaScript thank-you state: the form gives way to the notice */
.join-form-wrap:has(#joined:target) .signup, .join-form-wrap.is-done .signup { display: none; }
.join-form-wrap.is-done #join-error { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .notice-ok.is-shown, .notice-ok:target { animation: seal 400ms var(--ease-enter) both; }
}
@keyframes seal { from { opacity: 0; transform: scale(0.98); box-shadow: 0 0 0 0 rgba(127, 214, 168, 0.5); } to { opacity: 1; transform: none; box-shadow: 0 0 0 10px rgba(127, 214, 168, 0); } }

/* ---- Contact ---------------------------------------------------------------- */
.contact { padding-bottom: clamp(48px, 7vw, 90px); }
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; color: var(--text-2); max-width: 980px; }
.mail { font-family: var(--mono); font-size: 0.95em; word-break: break-word; }
.contact-note { grid-column: 1 / -1; font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hair-2); padding-top: 12px; padding-bottom: 48px;
  font-size: 0.8125rem; line-height: 1.6; color: var(--text-3);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px;
}
/* each footer item is its own block, ruled off from the next */
.site-footer p { margin: 0; padding: 16px 0; max-width: 62em; border-bottom: 1px solid var(--hair); }
.site-footer .foot-privacy { grid-column: 1 / -1; }
.site-footer strong { color: var(--text-2); font-weight: 600; }
.site-footer .legal { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--text-3); border-bottom: 0; padding-top: 20px; }

/* ---- Text pages (privacy) and 404 ------------------------------------------ */
.page { max-width: 760px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: 72px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.page h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 40px 0 12px; }
.page p, .page li { color: var(--text-2); }
.page ul { padding-left: 1.2em; margin: 0 0 1em; }
.page li { margin-bottom: 6px; }
.page .meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.page .back { display: inline-block; margin-top: 32px; }
.summary { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); padding: 18px 22px; margin: 26px 0; }
.summary dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.summary dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); padding-top: 3px; }
.summary dd { margin: 0; color: var(--text-2); }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .mark { width: 120px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); letter-spacing: -0.045em; margin-bottom: 12px; }
.notfound p { color: var(--text-2); }
.notfound .eyebrow { margin-bottom: 18px; }
.notfound .cta { justify-content: center; }

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; row-gap: 20px; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .vision { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr; }
  .join-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav a:not(.nav-cta) { display: none; }
  .doctrine { font-size: clamp(1.75rem, 8.6vw, 2.5rem); padding-left: 30px; }
  .eyebrow .sep, .eyebrow .more { display: none; }
  .beat::after { left: -25px; }
  .stats { grid-template-columns: 1fr; }
  .stats li, .stats li + li { padding: 16px 0; border-left: 0; }
  .stats li + li { border-top: 1px solid var(--hair); }
  .stats li { flex-direction: row; align-items: baseline; gap: 16px; }
  .stat-num { min-width: 2.6em; font-size: 2.6rem; }
  .field-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding-top: 4px; }
  .site-footer p { padding: 14px 0; }
  .hero { padding-bottom: 48px; }
  .hero-art { max-width: 400px; }
  .fig-caption { justify-content: flex-start; }
  .perks li { grid-template-columns: 1fr; gap: 2px; }
  .cta .button { flex: 1 1 auto; }
  .submit-row .button { width: 100%; }
  .record { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

@media (forced-colors: active) {
  .b4 .actor { color: CanvasText; background: none; }
  .button { border: 1px solid ButtonText; }
}

@media print {
  body::before, .nav, .hero-art, .join, .skip { display: none; }
  body { background: #fff; color: #000; }
  .beat, .beat .actor { color: #000 !important; animation: none !important; }
  .b4 .actor { background: none; color: #000; }
}
