/* authenticated.si
   Security print: guilloche, microtext rules, serials, foil seal, UV marks.
   Verdict colors (--v-*) are semantic. Never use them for decoration. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("fonts/playfair-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --paper: #f1efe8;
  --surface: #faf9f5;
  --sunk: #e7e4da;
  --ink: #15171a;
  --muted: #565a5e;
  --rule: #d4d0c4;
  --line: #24364a;           /* intaglio: guilloche, microtext, corner marks */
  --v-auth: #2c6a4e;
  --v-quant: #7d5e08;
  --v-swap: #ad3a22;
  --v-conf: #475668;
  --uv: #6a4cff;
  --uv-glow: #c9bcff;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1012;
    --surface: #16191c;
    --sunk: #1d2124;
    --ink: #ebe8df;
    --muted: #a3a59f;
    --rule: #2c3034;
    --line: #a9bdd4;
    --v-auth: #74c69b;
    --v-quant: #dcb44a;
    --v-swap: #ee8467;
    --v-conf: #a3b4c9;
    --uv: #9d86ff;
    --uv-glow: #d9cfff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  /* fine engraved line field, like the background of a note */
  background-image: repeating-linear-gradient(0deg, color-mix(in srgb, var(--line) 5%, transparent) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "zero"; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Labels and serials */
.label { font: 500 11.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.serial { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }

/* Microtext rule: reads as a hairline, resolves to text under magnification */
.micro {
  height: 7px; border: 0; margin: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='236' height='7'%3E%3Ctext x='0' y='5.5' font-family='monospace' font-size='5' textLength='236' lengthAdjust='spacingAndGlyphs' fill='%2324364a'%3EAUTHENTICATED.SI %C2%B7 REFERENCE RUN %C2%B7 LEGIT CHECK %C2%B7 %3C/text%3E%3C/svg%3E") repeat-x 0 0 / 236px 7px;
  opacity: .55;
}
@media (prefers-color-scheme: dark) {
  .micro { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='236' height='7'%3E%3Ctext x='0' y='5.5' font-family='monospace' font-size='5' textLength='236' lengthAdjust='spacingAndGlyphs' fill='%23a9bdd4'%3EAUTHENTICATED.SI %C2%B7 REFERENCE RUN %C2%B7 LEGIT CHECK %C2%B7 %3C/text%3E%3C/svg%3E"); opacity: .4; }
}

/* Corner marks for certificate panels */
.cm { position: relative; }
.cm::before, .cm::after, .cm > .cm-b::before, .cm > .cm-b::after {
  content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--line); pointer-events: none;
}
.cm::before { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.cm::after { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.cm > .cm-b::before { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cm > .cm-b::after { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font: 600 15px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font: 500 17px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.brand b { font-weight: 700; }
.brand svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; color: var(--line); opacity: .22; }
.hero-bg svg { position: absolute; width: 1100px; height: 1100px; right: -320px; top: -260px; max-width: none; }
@media (max-width: 960px) { .hero-bg { opacity: .11; } .hero-bg svg { width: 760px; height: 760px; right: -300px; top: -200px; } }
.hero-copy { position: relative; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 7.2vw, 96px); line-height: .94; letter-spacing: -.052em; font-weight: 600; }
.hero h1 em { font: italic 400 1.08em/0 "Playfair", Georgia, serif; letter-spacing: -.02em; padding-right: .04em; }
/* every name shares one grid cell, so the slot never changes size while names rotate */
.model-slot { display: grid; overflow: clip; overflow-clip-margin: .12em; }
.model { grid-area: 1 / 1; visibility: hidden; }
.model.is-on { visibility: visible; }
.model.out { animation: model-out .42s var(--ease) forwards; }
.model.in { animation: model-in .62s var(--ease); }
@keyframes model-out { to { transform: translateY(-.9em); filter: blur(4px); opacity: .2; } }
@keyframes model-in { from { transform: translateY(.9em); filter: blur(4px); } }
.lede { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); line-height: 1.5; }
.lede b { color: var(--ink); font-weight: 600; }

/* Waitlist form */
.join { margin-top: 34px; max-width: 520px; }
.join-row { display: flex; border: 1.5px solid var(--ink); background: var(--surface); }
.join-row:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.join input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 0; border-radius: 0; background: transparent;
  color: var(--ink); font: 400 16px/1 var(--sans); outline: none;
}
.join input::placeholder { color: var(--muted); opacity: 1; }
.join .btn { min-height: 52px; border-width: 0 0 0 1.5px; }
.join-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.join-msg { margin-top: 12px; font-size: 15px; min-height: 1.4em; }
.join-msg[data-state="error"] { color: var(--v-swap); }
.join-msg[data-state="ok"] { color: var(--ink); font-weight: 500; }
.join-done { display: none; align-items: center; gap: 12px; border: 1.5px solid var(--ink); background: var(--surface); padding: 14px 16px; font-weight: 500; }
.join-done svg { width: 28px; height: 28px; flex: none; }
.join.is-done .join-row, .join.is-done .join-note { display: none; }
.join.is-done .join-done { display: flex; }
@media (max-width: 420px) {
  .join-row { flex-direction: column; }
  .join input { flex: none; }
  .join .btn { border-width: 1.5px 0 0 0; }
}

/* Certificate */
.cert-stage { position: relative; perspective: 1100px; }
.cert {
  position: relative; background: var(--surface); border: 1px solid var(--rule);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px color-mix(in srgb, var(--ink) 45%, transparent);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.cert-guilloche { position: absolute; inset: 0; color: var(--line); opacity: .13; pointer-events: none; z-index: -1; }
.cert-guilloche svg { position: absolute; width: 560px; height: 560px; right: -170px; top: -150px; max-width: none; }
.cert-border { position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--line) 26%, transparent); pointer-events: none; }
.cert-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cert-title { margin-top: 18px; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.cert-model { font: 500 clamp(15px, 1.7vw, 18px)/1.3 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cert-via { margin-top: 4px; font-size: 14px; color: var(--muted); }
.cert-via span { font-family: var(--mono); }
.cert .micro { margin: 18px 0 6px; }
.signals li {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed var(--rule); font-size: 14.5px;
}
.signals .val { font: 500 13.5px/1 var(--mono); color: var(--ink); text-align: right; white-space: nowrap; }
.signals .ok { width: 16px; height: 16px; color: var(--v-auth); align-self: center; }
.signals .ok path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.verdict-rule { margin-top: 18px; border-top: 3px solid var(--ink); padding-top: 3px; }
.verdict-rule::before { content: ""; display: block; border-top: 1px solid var(--ink); }
.cert-verdict { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cert-verdict .word { font: 650 clamp(26px, 3.4vw, 36px)/1 var(--sans); letter-spacing: -.035em; color: var(--v-auth); }
.cert-verdict .conf { margin-top: 6px; font: 500 13.5px/1.2 var(--mono); color: var(--muted); }
@media (max-width: 480px) { .cert-head .sn { display: none; } .cert-model { font-size: 14px; } }
.cert-foot { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Seal with foil */
.seal { position: relative; width: clamp(84px, 9vw, 108px); aspect-ratio: 1; flex: none; color: var(--v-auth); }
.seal svg { width: 100%; height: 100%; }
.seal-s { stroke: var(--surface); }
.seal-f { fill: var(--surface); }
.seal .foil {
  position: absolute; inset: 9%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--fa, 40deg) at var(--fx, 40%) var(--fy, 35%), #ff9fd8, #9ed9ff, #b9ffbf, #fff2a0, #ffb59e, #ff9fd8);
  mix-blend-mode: soft-light; opacity: .75;
  transition: opacity .4s var(--ease);
}
.seal-sm { width: 76px; }

/* UV layer: decorative hidden marks */
.uv { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(circle at var(--ux, 50%) var(--uy, 50%), color-mix(in srgb, var(--uv) 30%, transparent), color-mix(in srgb, var(--uv) 14%, transparent) 60%);
  -webkit-mask: radial-gradient(circle 120px at var(--ux, 50%) var(--uy, 50%), #000 55%, transparent 100%);
  mask: radial-gradient(circle 120px at var(--ux, 50%) var(--uy, 50%), #000 55%, transparent 100%);
  color: var(--uv-glow); }
.cert.uv-hover .uv { opacity: 1; }
.cert.uv-on .uv { opacity: 1; -webkit-mask: none; mask: none; }
.uv-mark { position: absolute; font: 600 11px/1.3 var(--mono); letter-spacing: .22em; text-shadow: 0 0 6px var(--uv), 0 0 14px var(--uv); }
.uv-mark.a { left: 7%; top: 31%; transform: rotate(-90deg); transform-origin: left top; }
.uv-mark.b { right: 6%; bottom: 23%; }
.uv-mark.c { left: 30%; top: 54%; font-size: 10px; opacity: .9; }
.uv-seal { position: absolute; width: 46%; left: 27%; top: 22%; opacity: .55; filter: drop-shadow(0 0 6px var(--uv)); }
.uv-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px;
  border: 1px solid var(--rule); background: transparent; color: var(--muted); border-radius: 0;
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; cursor: pointer;
}
.uv-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.uv-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--uv); box-shadow: 0 0 8px var(--uv); }
.uv-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .uv-hint { display: inline; } }

/* Sections */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 820px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }
.plate { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.plate .no { font: 500 13px/1 var(--mono); color: var(--ink); letter-spacing: .08em; }
.sec h2 { font-size: clamp(32px, 4.8vw, 60px); line-height: 1; letter-spacing: -.045em; max-width: 16em; }
.sec-intro { margin-top: 20px; max-width: 38em; color: var(--muted); font-size: 18px; }
.band { color: var(--line); opacity: .28; height: 46px; }
.band svg { width: 100%; height: 100%; }

/* What goes wrong */
.faults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .faults { grid-template-columns: minmax(0, 1fr); } }
.fault { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--rule); }
.fault + .fault { padding-left: 26px; border-left: 1px solid var(--rule); }
@media (max-width: 860px) { .fault + .fault { padding-left: 0; border-left: 0; } .fault { padding-right: 0; } }
.fault h3 { margin-top: 18px; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.fault p { margin-top: 10px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.tag::before { content: ""; width: 9px; height: 9px; background: currentColor; }
.t-auth { color: var(--v-auth); } .t-quant { color: var(--v-quant); } .t-swap { color: var(--v-swap); } .t-conf { color: var(--v-conf); }

/* On the record: ledger */
.ledger { border-top: 3px double var(--ink); }
.entry { display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: 16px 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .entry { grid-template-columns: minmax(0, 1fr); } }
.entry .figure { font: 500 clamp(52px, 7vw, 84px)/.9 var(--sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.entry .figure small { font: 500 15px/1 var(--mono); letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.entry p { font-size: 18px; max-width: 30em; }
.entry .src { font: 500 13px/1.3 var(--mono); }
.record-note { margin-top: 28px; max-width: 46em; font-size: 18px; color: var(--muted); }
.record-note a { color: var(--ink); }

/* How it works: track */
.track { position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .steps::before { display: none; } }
.pulse { position: absolute; top: 9px; left: 0; width: 9px; height: 9px; background: var(--ink); display: none; }
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .pulse { display: block; animation: pulse-run 6s var(--ease) infinite; }
}
@keyframes pulse-run {
  0% { left: 0; opacity: 0; } 6% { opacity: 1; }
  30%, 36% { left: 33.33%; } 64%, 70% { left: 66.66%; }
  94% { left: calc(100% - 9px); opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; }
}
.step { padding: 0 28px 0 0; counter-increment: step; }
@media (max-width: 860px) { .step { padding: 0 0 28px 28px; border-left: 1px solid var(--ink); } .step:last-child { padding-bottom: 0; } }
.step .knot { position: relative; display: block; width: 27px; height: 27px; background: var(--paper); border: 1px solid var(--ink); font: 500 12px/25px var(--mono); text-align: center; }
.step .knot::after { content: counter(step); }
@media (max-width: 860px) { .step .knot { margin-left: -42px; } }
.step h3 { margin-top: 22px; font-size: 24px; letter-spacing: -.03em; }
.step p { margin-top: 10px; color: var(--muted); max-width: 22em; }
@media (max-width: 860px) { .step h3 { margin-top: -22px; } }

/* Checks: specimen sheet */
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
.spec { background: var(--surface); border: 1px solid var(--rule); padding: 22px 22px 24px; display: flex; flex-direction: column; }
.spec-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spec h3 { margin-top: 16px; font-size: 22px; letter-spacing: -.025em; }
.spec p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.demo { margin-top: auto; padding-top: 22px; font: 500 13px/1.4 var(--mono); }
.demo-box { background: var(--sunk); padding: 14px; }
.bar-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 36px; gap: 10px; align-items: center; }
.bar-row + .bar-row { margin-top: 8px; }
.bar-row .k { color: var(--muted); font-size: 12px; }
.bar { height: 10px; background: color-mix(in srgb, var(--ink) 12%, transparent); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); transform-origin: left; }
.bar i.hl { background: var(--v-swap); }
.bar-row .n { text-align: right; }
.said { display: grid; gap: 8px; font-family: var(--sans); font-size: 14px; }
.spec .said p { margin: 0; color: var(--ink); font-size: 14px; }
.said .k { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.said mark { color: inherit; background: color-mix(in srgb, var(--v-swap) 18%, transparent); }
.drift svg { width: 100%; height: 74px; overflow: visible; }
.drift .ref { stroke: var(--ink); }
.drift .end { stroke: var(--v-quant); }
.drift-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.drift-legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--ink); }
.drift-legend span + span::before { background: var(--v-quant); }
.cells { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; }
.cells i { height: 12px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.cells i.f { background: var(--ink); }
.cells.end i.f { background: var(--v-quant); }
.cells-k { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 8px 0 4px; }
.cells-k:first-child { margin-top: 0; }
.ctx { position: relative; height: 34px; border: 1px solid var(--ink); background:
  repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 18%, transparent) 0 1px, transparent 1px 6px); }
.ctx .kept { position: absolute; top: 0; bottom: 0; right: 0; width: 25%; background: color-mix(in srgb, var(--v-conf) 35%, transparent); border-left: 1.5px solid var(--v-conf); }
.ctx .word { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: var(--ink); }
.ctx-k { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.json { display: grid; gap: 8px; font-size: 12px; }
.json div { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.json .good b { color: var(--v-auth); }
.json .bad b { color: var(--v-swap); }

/* Verdict stubs */
.stubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1020px) { .stubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stubs { grid-template-columns: minmax(0, 1fr); } }
.stub { position: relative; background: var(--surface); border: 1px solid var(--rule); padding: 0 20px 22px; }
.stub::before { /* perforation */
  content: ""; display: block; height: 10px; margin: 0 -20px 18px;
  background: radial-gradient(circle at 5px 0, var(--paper) 3px, transparent 3.5px) 0 0 / 10px 10px repeat-x;
  border-bottom: 1px dashed var(--rule);
}
.stub .bar-top { position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: currentColor; }
.stub h3 { font-size: 24px; letter-spacing: -.03em; color: currentColor; }
.stub p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.stub .serial { display: block; margin-top: 18px; }

/* Terminal and agent receipts */
.receipts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 920px) { .receipts { grid-template-columns: minmax(0, 1fr); } }
.receipt { background: var(--sunk); border-top: 3px solid var(--ink); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.receipt-head b { font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.receipt pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13px; line-height: 1.6; tab-size: 2; }
.receipt pre:focus-visible { outline-offset: -2px; }
.receipt .c { color: var(--muted); }
.receipt .g { color: var(--v-auth); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--ink); }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts p { padding: 18px 20px 0 0; color: var(--muted); }
.facts b { display: block; color: var(--ink); font-weight: 600; }

/* Next / founder */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.note { background: var(--surface); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 36px); }
.note h3 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.035em; }
.note p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-size: clamp(18px, 2vw, 22px); font-weight: 550; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .a { padding: 0 0 24px; max-width: 42em; color: var(--muted); font-size: 17px; }
.faq .a b { color: var(--ink); }

/* Closing */
.closing { text-align: left; }
.closing h2 { font-size: clamp(36px, 6vw, 80px); line-height: .96; letter-spacing: -.05em; max-width: 13em; }
.closing .btn { margin-top: 34px; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.made { display: flex; align-items: center; gap: 12px; }
.made svg { width: 26px; height: 31px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* Bhag Labs mark colors */
.bl-tear { fill: #1a1a1a; } .bl-disc { fill: #c1502e; } .bl-lens { fill: #2a4942; }
@media (prefers-color-scheme: dark) { .bl-tear { fill: #f1ebe1; } .bl-lens { fill: #c89b27; } }

/* Prose pages */
.prose { max-width: 720px; padding: clamp(48px, 8vw, 96px) 0; }
.prose h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.05em; line-height: 1; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 40px; }
.prose p, .prose li { margin-top: 12px; color: var(--muted); font-size: 17px; }
.prose li { list-style: square; margin-left: 1.2em; }
.prose p b, .prose li b { color: var(--ink); }
.prose .meta { margin-top: 16px; }

/* Motion. Content is always visible; only decorative strokes and transforms animate,
   and only when JS has marked the page (.js) and the user allows motion. */
.g-path { fill: none; stroke: currentColor; stroke-width: .28; }
.band .g-path { stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .js .g-draw:not(.band) .g-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .g-draw.in:not(.band) .g-path { transition: stroke-dashoffset 2.6s var(--ease); stroke-dashoffset: 0; }
  .js .g-draw.in .g-path:nth-child(3n+1) { transition-delay: .12s; }
  .js .g-draw.in .g-path:nth-child(3n+2) { transition-delay: .3s; }
  .js .band.g-draw svg { clip-path: inset(0 100% 0 0); }
  .js .band.g-draw.in svg { clip-path: inset(0 0 0 0); transition: clip-path 2.4s var(--ease); }

  .js .hero .signals .ok path { stroke-dashoffset: 1; }
  .js .hero.play .signals li .ok path { transition: stroke-dashoffset .5s var(--ease); stroke-dashoffset: 0; }
  .js .hero.play .signals li:nth-child(1) .ok path { transition-delay: .55s; }
  .js .hero.play .signals li:nth-child(2) .ok path { transition-delay: .75s; }
  .js .hero.play .signals li:nth-child(3) .ok path { transition-delay: .95s; }
  .js .hero.play .signals li:nth-child(4) .ok path { transition-delay: 1.15s; }
  .js .hero.play .signals li:nth-child(5) .ok path { transition-delay: 1.35s; }
  .js .hero.play .signals li:nth-child(6) .ok path { transition-delay: 1.55s; }
  .sweep { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; z-index: 2; opacity: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--v-auth) 0%, transparent) 30%, color-mix(in srgb, var(--line) 10%, transparent) 85%, color-mix(in srgb, var(--line) 45%, transparent) 99%, transparent); }
  .js .hero.play .sweep { animation: sweep 1.7s var(--ease) .35s 1 both; }
  @keyframes sweep { 0% { opacity: 1; transform: translateY(-90px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--sweep-h, 520px)); } }
  .js .hero.play .cert-seal { animation: stamp .7s var(--ease) 1.85s both; }
  @keyframes stamp { from { transform: scale(1.35) rotate(-14deg); filter: blur(1.5px); } to { transform: none; filter: none; } }
  .js .hero.play .cert-verdict .word { animation: ink-in .9s var(--ease) 1.95s both; }
  @keyframes ink-in { from { letter-spacing: .02em; filter: blur(3px); } to { letter-spacing: -.035em; filter: none; } }

  .js .grow .bar i { transform: scaleX(.02); }
  .js .grow.in .bar i { transform: none; transition: transform 1.2s var(--ease) .1s; }
  .js .grow.in .bar-row + .bar-row .bar i { transition-delay: .3s; }
  .js .grow .drift svg { clip-path: inset(0 100% 0 0); }
  .js .grow.in .drift svg { clip-path: inset(0 0 0 0); transition: clip-path 1.8s var(--ease) .1s; }
  .js .grow .cells i.f { transform: scaleY(.15); }
  .js .grow.in .cells i.f { transform: none; transition: transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 30ms); }
  .js .grow .ctx .kept { transform: scaleX(0); transform-origin: right; }
  .js .grow.in .ctx .kept { transform: none; transition: transform 1.2s var(--ease) .2s; }
}
