@font-face { font-family: "Geist"; font-weight: 300 600; font-display: swap; src: url("fonts/geist-normal-300-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url("fonts/geist-mono-normal-400-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif JP"; font-weight: 600; font-display: swap; src: url("fonts/noto-serif-jp-mark-600.woff2") format("woff2"); unicode-range: U+96A0, U+308C, U+5BB6; }
:root {
  --page: #f6f3ec;
  --paper: #ffffff;
  --ink: #16150f;
  --stone: #3e3b33;
  --graphite: #615d54;
  --fog: #8a8577;
  --line: #e1dccf;
  --veil: #efece4;
  --red: #b93824;
  --vermilion: #d8432b;
  --amber: #86590f;
  --cipher: #3f7d4e;
  --cipher-text: #2f5e3b;
  --cipher-bg: #e6efe2;
  --glass: rgba(255, 255, 255, 0.62);
  /* the dark panels look the same in both themes */
  --night: #111110;
  --night-2: #0d0d0c;
  --night-line: rgba(255, 255, 255, 0.08);
  --cream: #f2efe8;
  --cream-2: #a49f93;
  --n-red: #e5482f;
  --n-green: #8fd19e;
  --n-amber: #e7b04a;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mark: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a0a09;
    --paper: #131211;
    --ink: #f2efe8;
    --stone: #cfcac0;
    --graphite: #a49f93;
    --fog: #6f6a5f;
    --line: #262421;
    --veil: #171614;
    --red: #f08a74;
    --vermilion: #e5482f;
    --amber: #e7b04a;
    --cipher: #8fd19e;
    --cipher-text: #a9ddb4;
    --cipher-bg: #1c2a20;
    --glass: rgba(30, 28, 26, 0.62);
    --night: #131211;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--vermilion); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 0.82em; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(58px, 9.4vw, 128px); line-height: 0.92; letter-spacing: -0.04em; }
h1 em { color: var(--vermilion); }
h2 { font-size: clamp(40px, 5.2vw, 66px); line-height: 0.98; letter-spacing: -0.03em; }
h3 { font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 8px; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 19px); font-weight: 300; color: var(--graphite); max-width: 60ch; text-wrap: pretty; }
.note { font-size: 13.5px; color: var(--graphite); margin-top: 16px; max-width: 80ch; }
.note.center { text-align: center; margin-inline: auto; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 18px; }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--page) 78%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; }
.mark { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--page); display: inline-grid; place-items: center; font-family: var(--font-mark); font-size: 13px; font-weight: 600; line-height: 1; flex: none; }
.mark.xl { width: 88px; height: 88px; border-radius: 22px; font-size: 42px; background: linear-gradient(180deg, #fbf8f1, #e4dfd3); color: #0a0a09; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.nav nav { display: flex; gap: 26px; margin: 0 auto; }
.nav nav a { text-decoration: none; color: var(--graphite); font-size: 13.5px; padding: 12px 0; }
.nav nav a:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 10px; background: transparent; color: var(--ink); text-decoration: none; font-family: inherit; font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.button:hover { border-color: var(--fog); }
.button.dark { background: var(--ink); color: var(--page); border-color: var(--ink); font-weight: 600; }
.button.cream { background: var(--cream); color: #0a0a09; border-color: var(--cream); font-weight: 600; }
.button.line { color: var(--cream); border-color: rgba(255, 255, 255, 0.16); }
.button.ghost { min-height: 36px; padding: 6px 14px; border-radius: 8px; font-size: 13px; }
.nav .button.dark { min-height: 36px; padding: 6px 14px; border-radius: 8px; font-size: 13px; }
button.button:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--graphite); margin-left: 6px; }
.pill.live { color: var(--cipher-text); background: var(--cipher-bg); border-color: transparent; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cipher); margin-right: 7px; }
.redact { display: inline-block; width: 150px; height: 14px; border-radius: 3px; background: var(--vermilion); vertical-align: -1px; }

main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* the opening: the words beside the picture: a capsule on paper, three of its lines held back, the seal across its corner */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: center; gap: 28px; padding-top: clamp(36px, 5vw, 72px); }
.hero-words { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: clamp(54px, 7.2vw, 108px); }
.kicker { font-family: var(--font-mono); font-size: 12.5px; color: var(--graphite); margin-bottom: 26px; }
.kicker .pill { margin: 0 10px 0 0; }
.hero .lede { margin-top: 26px; }
.hero .actions { margin-top: 32px; }
.built { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--fog); }
.stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 760 / 620; justify-self: end; }
.stage .sheet { position: absolute; left: 24%; top: 0; width: 74%; height: 100%; transform: rotate(3deg); overflow: visible; }
.sheet .page { fill: #fffdf8; }
.sheet .fold { fill: #e9e3d6; }
.sheet .name { font-family: var(--font-mono); font-size: 17px; fill: #16150f; }
.sheet .meta { font-family: var(--font-mono); font-size: 11px; fill: #8a8577; }
.sheet .lines rect { fill: #e4dfd3; }
.sheet .lines rect.held { fill: #d8432b; }
.sheet .tick { fill: none; stroke: #3f7d4e; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sheet .ring { fill: none; stroke: #d8432b; stroke-width: 9; }
.sheet .glyph { fill: #d8432b; }
.stage .leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leads path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1 6; opacity: 0.55; }
.float { position: absolute; width: min(204px, 36%); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--paper) 70%, transparent); box-shadow: 0 26px 50px -28px rgba(22, 21, 15, 0.4), 0 1px 0 rgba(255, 255, 255, 0.5) inset; }
.float strong { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.float > span:last-child { font-size: 12.5px; line-height: 1.4; color: var(--graphite); }
.float.f1 { left: -8%; top: 22%; transform: rotate(-4deg); }
.float.f2 { right: -12%; top: 2%; transform: rotate(3deg); }
.float.f3 { left: -2%; bottom: -3%; transform: rotate(2deg); }
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.stop, .tag.seal-tag { background: color-mix(in srgb, var(--vermilion) 14%, transparent); color: var(--red); }
.tag.go { background: var(--cipher-bg); color: var(--cipher-text); }
.tag.warn { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.seal, .stamp { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--vermilion); color: var(--vermilion); font-family: var(--font-mark); font-weight: 600; line-height: 1; transform: rotate(-8deg); flex: none; }
.seal { width: 40px; height: 40px; font-size: 18px; }

/* the gate: a dark window on the paper */
.gate { margin-top: clamp(36px, 5vw, 64px); position: relative; z-index: 2; }
.window { border-radius: 20px; background: var(--night); color: var(--cream); border: 1px solid var(--night-line); overflow: hidden; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.75); }
.window-bar { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; gap: 12px; padding: 12px 16px; background: var(--night-2); border-bottom: 1px solid var(--night-line); font-family: var(--font-mono); font-size: 11.5px; color: #8c877b; text-align: center; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a2826; }
.gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gate-side.in { border-right: 1px solid rgba(229, 72, 47, 0.45); }
.gate-side.out { background: #0e0d0c; }
.gate-head { display: flex; justify-content: space-between; gap: 12px; padding: 15px 22px; border-bottom: 1px solid var(--night-line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #a49f93; }
.gate-head label { color: inherit; }
.gate-head .past { color: #f08a74; }
.gate textarea { display: block; width: 100%; min-height: 290px; padding: 22px; border: 0; background: transparent; color: #e4e0d6; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; resize: vertical; white-space: pre; overflow: auto; }
.gate textarea:focus-visible { outline: 2px solid var(--cream); outline-offset: -4px; }
.gate-out { padding: 22px; min-height: 290px; min-width: 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: #cfcac0; overflow-x: auto; }
.gate-line { min-height: 1.85em; white-space: pre; }
.gate-line.gone { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gate-line .bar { height: 14px; border-radius: 3px; background: var(--n-red); max-width: 42%; flex: none; }
.gate-line .why { font-size: 11.5px; line-height: 1.35; color: #f08a74; white-space: normal; min-width: 0; }
.gate-fail { color: #f08a74; white-space: normal; }
.gate-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--night-line); background: #121110; }
.gate-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.count { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #cfcac0; }
.count::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--n-green); }
.count.stop::before { background: var(--n-red); }
.gate-foot .button { border-radius: 999px; }
.gate-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px 22px 28px; border-top: 1px solid var(--night-line); background: #0e0d0c; color: var(--n-green); }
.gate-verdict[hidden] { display: none; }
.gate-verdict.refused { color: var(--n-red); }
.gate-verdict .stamp { width: 92px; height: 92px; font-size: 40px; border-color: currentColor; color: inherit; border-width: 2.5px; }
.verdict-line { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); line-height: 1; }
.verdict-sub { margin-top: 8px; font-size: 14px; color: #a49f93; }
.gate-verdict dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 16px; margin: 12px 0 0; font-family: var(--font-mono); font-size: 11.5px; color: #8c877b; }
.gate-verdict dd { margin: 0; color: #cfcac0; overflow-wrap: anywhere; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 88px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 30px 24px 30px 0; display: flex; flex-direction: column; gap: 10px; }
.stats strong { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.stats span { font-size: 13.5px; line-height: 1.45; color: var(--graphite); max-width: 24ch; }

.band { padding-top: clamp(104px, 11vw, 156px); }
/* one statement, large, between the proof and the explanation */
.quote { padding-top: clamp(96px, 10vw, 148px); }
.quote h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: 0.96; max-width: 16ch; }
.quote h2 em { color: var(--vermilion); }
.quote ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; counter-reset: q; }
.quote li { counter-increment: q; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--graphite); }
.quote li::before { content: "0" counter(q); display: block; font-family: var(--font-mono); font-size: 12px; color: var(--red); margin-bottom: 10px; }
.quote li strong { display: block; font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
/* the real capsule, beside the words that ask for the check */
.take { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px 56px; align-items: start; margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
.take h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; }
.take .receipt { max-width: none; }
.sub-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -0.02em; margin: 64px 0 24px; }
/* the app, on a dark band the width of the window */
.band.night { margin: clamp(104px, 11vw, 156px) calc(50% - 50vw) 0; padding: clamp(80px, 8vw, 120px) max(calc(50vw - 600px + clamp(16px, 4vw, 40px)), 16px) clamp(80px, 8vw, 120px); background: #0d0d0c; color: var(--cream); }
.band.night .eyebrow, .band.night .band-head > p { color: var(--cream-2); }
.band.night .window { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 80px 160px -60px #000; }
.band.night .feats li { border-top-color: rgba(255, 255, 255, 0.12); }
.band.night .feats span { color: var(--cream-2); }
.cta .for { font-family: var(--font-mono); font-size: 12.5px; color: var(--cream-2); margin-top: 22px; }
.band-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; margin-bottom: 52px; }
.band-head > p { font-size: 17px; font-weight: 300; color: var(--graphite); max-width: 50ch; text-wrap: pretty; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards > li, .cards > article { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cards > li > strong { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.cards > li > span, .cards article p { font-size: 14.5px; line-height: 1.55; color: var(--graphite); }
.cards .eyebrow { margin: 0; }
.steps > li { min-height: 232px; }
.steps .n { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.steps .m { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--graphite); overflow-wrap: anywhere; }
.cards article.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cards article.wide > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 4px 16px; border-radius: 12px; background: var(--veil); }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--stone); }
.ticks li:last-child { border-bottom: 0; }
.ticks:not(.plain-ticks) li::before { content: "✓"; width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cipher); color: var(--paper); font-size: 10px; font-weight: 700; }
.ticks .t { flex: none; width: 74px; font-family: var(--font-mono); font-size: 11.5px; }
.ticks .t.stop { color: var(--red); }
.ticks .t.warn { color: var(--amber); }
.confirmed { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cipher-text); }
.receipt-art { display: flex; align-items: center; justify-content: center; gap: 28px; }
.stamp.big { width: 120px; height: 120px; font-size: 54px; border-width: 2.5px; box-shadow: 0 0 80px -20px color-mix(in srgb, var(--vermilion) 60%, transparent); }
.term { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--graphite); white-space: pre; overflow-x: auto; }
.term b { font-weight: 400; color: var(--ink); }
.term i { font-style: normal; color: var(--cipher-text); }
.routes > li { min-height: 190px; }
.routes .tag { align-self: flex-start; font-family: var(--font-sans); font-size: 12px; }
.routes > li > strong { font-size: 20px; }
.who > li { min-height: 150px; }
.who > li > strong { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -0.015em; line-height: 1; }
.who > li > span { margin-top: auto; }
.limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.limits li { padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--stone); text-wrap: pretty; }

/* the app, in its window */
.window.app .window-bar { grid-template-columns: 60px minmax(0, 1fr) 60px; padding: 8px 16px; }
.shot-tabs { display: flex; justify-content: center; gap: 4px; overflow-x: auto; }
.shot-tabs button { font: inherit; font-family: var(--font-sans); font-size: 12.5px; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; color: #a49f93; cursor: pointer; white-space: nowrap; }
.shot-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: var(--cream); }
.shot-tabs button:focus-visible { outline: 2px solid var(--cream); outline-offset: -2px; }
.window.app img { width: 100%; }
.feats { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.feats li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.feats strong { font-size: 15px; font-weight: 500; }
.feats span { font-size: 14px; line-height: 1.5; color: var(--graphite); }

.receipt { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); max-width: 820px; }
.receipt dl { margin: 0 0 22px; }
.receipt dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.receipt dt { color: var(--graphite); font-family: var(--font-mono); font-size: 12.5px; padding-top: 3px; }
.receipt dd { margin: 0; }

/* the replay of a real run */
.replay { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; min-width: 0; }
.replay-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.replay-tabs button { flex: 1 0 auto; font: inherit; font-size: 14.5px; min-height: 48px; padding: 14px 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--graphite); cursor: pointer; }
.replay-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.replay-panel { padding: clamp(18px, 3vw, 30px); min-height: 260px; }
.replay-panel > p { margin: 0 0 18px; max-width: 72ch; color: var(--stone); font-size: 15.5px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 220px; }
.facts strong { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.facts span { color: var(--graphite); font-size: 13.5px; }
.findings { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.findings li strong { display: block; font-weight: 500; }
.findings li code { font-family: var(--font-mono); font-size: 12.5px; color: var(--graphite); }
.findings li p { margin: 4px 0 0; color: var(--graphite); font-size: 14.5px; }
.findings li .pill { margin: 0 0 0 8px; }
.files { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.files th { text-align: left; font-weight: 500; color: var(--graphite); padding: 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.files td { padding: 9px 8px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; }
.files th:nth-child(2), .files td:nth-child(2) { width: 96px; }
.verdict { margin-top: 18px; }
.verdict .ok, .verdict .bad { display: inline-block; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 10px; }
.verdict .ok { color: var(--cipher-text); background: var(--cipher-bg); }
.verdict .bad { color: var(--red); background: color-mix(in srgb, var(--vermilion) 12%, transparent); }
.verdict ul { margin: 0; padding-left: 20px; color: var(--stone); font-size: 15px; }

.cta { margin-top: clamp(120px, 13vw, 180px); border-radius: 24px; background: radial-gradient(60% 80% at 50% 100%, rgba(229, 72, 47, 0.2), transparent 70%), #111110; color: var(--cream); border: 1px solid var(--night-line); padding: clamp(48px, 7vw, 92px) 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta h2 { margin-top: 34px; }
.cta p { margin-top: 18px; max-width: 58ch; font-size: 17px; font-weight: 300; color: var(--cream-2); }
.cta .actions { margin-top: 34px; justify-content: center; }

.foot { max-width: 1200px; margin: 0 auto; padding: 88px clamp(16px, 4vw, 40px) 44px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.foot-grid > div { display: flex; flex-direction: column; gap: 10px; }
.foot-grid strong { font-size: 12px; font-weight: 600; }
.foot-grid a { font-size: 13px; color: var(--graphite); text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid p { font-size: 13px; color: var(--graphite); line-height: 1.5; }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 12px; color: var(--graphite); }
/* the other pages keep a one-line footer */
.foot:not(:has(.foot-grid)) { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 64px; font-size: 13px; color: var(--graphite); }
.foot:not(:has(.foot-grid)) a { margin-left: auto; }
.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--stone); font-size: 15.5px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-words { align-items: center; text-align: center; }
  .hero .actions { justify-content: center; }
  .stage { justify-self: center; width: 92%; }
  .float.f1 { left: 0; } .float.f2 { right: 0; } .float.f3 { left: 0; }
  .stage .sheet { left: 16%; }
  .cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.four, .limits, .feats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav nav { display: none; }
  .nav .button.ghost { margin-left: auto; }
}
@media (max-width: 760px) {
  .band-head { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 36px; }
  .cards.two, .cards.three, .cards.five, .cards article.wide, .gate-grid, .quote ol, .take { grid-template-columns: minmax(0, 1fr); }
  .gate-side.in { border-right: 0; border-bottom: 1px solid rgba(229, 72, 47, 0.45); }
  .gate textarea, .gate-out { min-height: 200px; font-size: 12.5px; padding: 16px; }
  /* at phone width long lines wrap instead of scrolling sideways out of view; each is still one line of the text */
  .gate textarea, .gate-out, .gate-out * { white-space: pre-wrap; overflow-wrap: anywhere; }
  .window-bar > span:nth-child(2) { font-size: 10.5px; }
  .receipt dl > div { grid-template-columns: 1fr; gap: 2px; }
  .receipt-art { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float { width: 46%; padding: 11px 12px; }
  .float strong { font-size: 13px; }
  .float > span:last-child { display: none; }
  .gate-verdict { grid-template-columns: minmax(0, 1fr); }
  .steps > li { min-height: 0; }
}
@media (max-width: 520px) {
  .cards.four, .limits, .feats, .stats { grid-template-columns: minmax(0, 1fr); }
  .nav .button.ghost { display: none; }
  .nav .button.dark { margin-left: auto; }
}

/* the try-it page */
.try { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 48px; }
.try-title { font-size: clamp(34px, 5.4vw, 64px); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.try-form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; }
.try-form label { font-size: 14px; color: var(--graphite); }
.try-form textarea, .try-form input { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); padding: 10px 12px; }
.try-form textarea { resize: vertical; min-height: 220px; }
.own-key summary { cursor: pointer; font-size: 14px; color: var(--graphite); }
.own-key label { display: block; margin: 8px 0 6px; }
.try-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.try-steps > li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; border-left: 3px solid var(--line); }
.try-steps > li[data-state="busy"] { border-left-color: var(--amber); }
.try-steps > li[data-state="ok"] { border-left-color: var(--cipher); }
.try-steps > li[data-state="warn"] { border-left-color: var(--amber); }
.try-steps > li[data-state="bad"] { border-left-color: var(--red); }
.try-steps > li[data-state="busy"] h2::after { content: " …"; color: var(--graphite); }
.try-steps h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 4px; max-width: none; }
.try-steps .note { margin: 0 0 8px; }
.try-steps [data-out] p { margin: 6px 0; font-size: 15px; }
.try-steps .answer { font-size: 16px; color: var(--ink); white-space: pre-wrap; }
.try-steps .ok { color: var(--cipher-text); font-weight: 500; }
.try-steps .bad { color: var(--red); font-weight: 500; }
.try-steps pre { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow: auto; max-height: 240px; white-space: pre-wrap; overflow-wrap: anywhere; }
.try-steps details summary { cursor: pointer; font-size: 14px; color: var(--graphite); }
.held { margin: 4px 0 8px; padding-left: 20px; font-family: var(--font-mono); font-size: 13px; }
.try-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 8px 0; font-size: 14px; }
.try-facts dt { color: var(--graphite); }
.try-facts dd { margin: 0; font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.try-notes { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.try-notes h2 { font-size: 24px; }
@media (max-width: 860px) { .try-grid { grid-template-columns: minmax(0, 1fr); } .try-form { position: static; } }
.proof-steps { margin-top: 20px; max-width: 860px; }
.proof-steps .note strong { font-weight: 500; color: var(--ink); }
.proof-steps .mono { overflow-wrap: anywhere; }
[data-summary].ok { color: var(--cipher-text); }
[data-summary].bad { color: var(--red); }


.try-title { line-height: 0.98; margin-bottom: 22px; }
.try .kicker { margin-bottom: 22px; }
.try-steps h2, .proof-steps h2, .try-notes h2 { font-family: var(--font-sans); font-weight: 500; line-height: 1.3; }
.try [data-run], .try .actions { margin-top: 14px; }
.try .lede + .actions, .try .lede + p { margin-top: 18px; }

/* MOTION. The words rise, the key settles, the three cards drift; each part arrives as it is reached. A reader who
   asks for less motion gets none, and without scripts every part is simply there. */
@keyframes kk-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes kk-sheet { from { opacity: 0; transform: translateY(46px) rotate(-2deg); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes kk-hanko { 0% { opacity: 0; scale: 1.7; } 55% { opacity: 1; scale: 0.94; } 100% { opacity: 1; scale: 1; } }
@keyframes kk-held { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kk-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes kk-stamp { 0% { opacity: 0; transform: scale(2) rotate(0); } 60% { opacity: 1; transform: scale(0.92) rotate(-10deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .kicker { animation: kk-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero h1 { animation: kk-rise 1s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .lede { animation: kk-rise 1s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .actions, .hero .built { animation: kk-rise 1s 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .stage .sheet { animation: kk-sheet 1.1s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .sheet .lines rect.held { transform-box: fill-box; transform-origin: left center; animation: kk-held 0.5s 1.1s cubic-bezier(0.7, 0, 0.2, 1) both; }
  .sheet .lines rect.held:nth-of-type(4) { animation-delay: 1.22s; } .sheet .lines rect.held:nth-of-type(7) { animation-delay: 1.34s; }
  .sheet .hanko > g { transform-box: fill-box; transform-origin: center; animation: kk-hanko 0.6s 1.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
  .leads path { animation: kk-rise 0.8s 2s ease both; }
  .float { animation: kk-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, kk-drift 7s ease-in-out infinite; }
  .float.f1 { animation-delay: 1.3s, 2.4s; } .float.f2 { animation-delay: 1.5s, 3.1s; } .float.f3 { animation-delay: 2.1s, 3.8s; }
  .gate .window { animation: kk-rise 1.1s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .gate-verdict:not([hidden]) .stamp { animation: kk-stamp 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
  html.motion .band > *, html.motion .quote > *, html.motion .try-notes, html.motion .proof-steps > li, html.motion .try-steps > li { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html.motion .band.in > *, html.motion .quote.in > *, html.motion .try-notes.in, html.motion .proof-steps > li.in, html.motion .try-steps > li.in { opacity: 1; transform: none; }
  html.motion .band.in > *:nth-child(2) { transition-delay: 0.1s; } html.motion .band.in > *:nth-child(n + 3) { transition-delay: 0.18s; }
  .button { transition: transform 0.14s ease, background-color 0.14s, border-color 0.14s; }
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: scale(0.97); }
  .cards > li, .cards > article { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .cards > li:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(22, 21, 15, 0.35); }
  .replay-panel:not([hidden]), [data-shots] [role="tabpanel"]:not([hidden]) { animation: kk-rise 0.35s ease both; }
  [data-verdict] > * { animation: kk-rise 0.4s ease both; }
}

.mark .glyph { width: 64%; height: 64%; display: block; }

/* phone: the reason a line was withheld is readable in full, the steps strip shows there is more to the right,
   a long signer line breaks inside its card, and the way to the check page stays in the header */
@media (max-width: 760px) {
  .gate-line { flex-wrap: wrap; }
  .gate-line .why { white-space: normal; flex-basis: 100%; }
  .replay-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .replay li, .replay dd, .replay code { overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .nav .button.ghost { display: inline-flex; margin-left: auto; padding: 6px 10px; font-size: 12px; }
}
.answer code{font:inherit;font-family:var(--mono,ui-monospace,Menlo,monospace);font-size:.92em;padding:.05em .3em;border-radius:5px;background:rgba(255,255,255,.07)}
.answer code.unfound{text-decoration:underline wavy;text-underline-offset:.2em}
.note.good { color: var(--n-green, #8fd19e); }

/* the break-it page: the gate's window with a box for the secret, its verdict, and the two counts beside each other */
.break-warn { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; max-width: 90ch; padding: 13px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--vermilion) 34%, transparent); background: color-mix(in srgb, var(--vermilion) 7%, transparent); color: var(--stone); font-size: 15px; line-height: 1.5; }
.break-warn strong { color: var(--red); font-weight: 600; }
.nav nav a[aria-current="page"] { color: var(--ink); }
/* the landing page's header holds nine links: just above the width where they are hidden, they sit closer, never on two lines */
.nav nav a { white-space: nowrap; }
@media (max-width: 1160px) { .nav nav { gap: 16px; } }
.break .try-title { margin-bottom: 18px; }
.break .kicker .nowrap { white-space: nowrap; }
.break-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 14px; }
.break-ideas > span { font-family: var(--font-mono); font-size: 12px; color: var(--graphite); margin-right: 4px; }
.break-ideas .button { min-height: 38px; padding: 6px 14px; font-size: 13.5px; border-radius: 999px; background: var(--paper); }
.break .gate { margin-top: 0; }
.break .gate textarea, .break .gate-out { min-height: 220px; }
.break .gate-head > span:last-child { white-space: nowrap; }
.break-secret { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 14px 18px; padding: 16px 22px 18px; border-top: 1px solid var(--night-line); background: #121110; }
.break-secret label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #a49f93; }
.break-secret input, .break-secret select { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: #0e0d0c; color: #e4e0d6; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0; text-transform: none; }
.break-secret input::placeholder { color: #6f6a5f; }
.break-secret input:focus-visible, .break-secret select:focus-visible { outline: 2px solid var(--cream); outline-offset: 1px; }
.break .gate-foot { border-top: 1px solid var(--night-line); }
.break .detector { font-family: var(--font-mono); font-size: 11.5px; color: #8c877b; }
.gate-line mark { background: rgba(229, 72, 47, 0.3); color: #fff; border-radius: 3px; box-shadow: 0 0 0 1px var(--n-red); }
.gate-verdict.through { color: var(--n-red); }
.gate-verdict.wait { grid-template-columns: minmax(0, 1fr); color: #cfcac0; }
.gate-verdict.wait .stamp { display: none; }
.gate-verdict.wait .verdict-line { font-size: clamp(24px, 2.4vw, 32px); }
.verdict-act { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.verdict-act[hidden] { display: none; }
.verdict-act .button { margin-bottom: 8px; }
.verdict-note { font-size: 13px; line-height: 1.5; color: #a49f93; max-width: 70ch; }
.break-count { margin-top: clamp(56px, 7vw, 88px); }
.break-count .sub-h { margin-top: 0; }
.break-count .cards > article { gap: 14px; }
.break-count .cards article .note { margin-top: 4px; font-size: 13px; }
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.tally[hidden] { display: none; }
.tally > div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.tally strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.tally span { font-size: 13.5px; line-height: 1.4; color: var(--graphite); }
.tally .leak strong { color: var(--red); }
.reports-line { font-size: 15px; color: var(--stone); }
.break .try-notes { margin-top: clamp(48px, 6vw, 72px); }
.break .try-notes h2 { margin-bottom: 14px; }
/* the window is the page's tool: it arrives at once, not after the words */
@media (prefers-reduced-motion: no-preference) { .break .gate .window { animation-duration: 0.6s; animation-delay: 0s; } }
@media (max-width: 760px) {
  .break-secret { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 16px; }
  .break .gate-foot { padding: 14px 16px; }
}
