:root {
  --void: #070807;
  --panel: #0e100e;
  --hairline: #1f241f;
  --dim: #7b8279;
  --text: #d9ddd6;
  --paper: #f2f2ee;
  --ink: #232323;
  --paper-line: #d3d3d0;
  --paper-dim: #6b6b66;
  --phosphor: #39ff7a;
  --phosphor-dim: #1f8a45;
  --focus: #fef991;
  --pass: #39ff7a;
  --fail: #ff5a4e;
  --ease: cubic-bezier(.5, 0, .5, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --notch: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.55 Geist, system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, pre, .eyebrow, .mark, .num, output { font-family: "Geist Mono", ui-monospace, monospace; }
code { font-size: 0.88em; }
:focus-visible { outline: 1px solid var(--focus); outline-offset: 3px; }
.paper :focus-visible { outline: 2px solid var(--ink); }
img { display: block; max-width: 100%; height: auto; }

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: rgba(7, 8, 7, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark { font-weight: 500; letter-spacing: -0.03em; text-decoration: none; font-size: 19px; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 14px; }
.bar nav a { color: var(--dim); text-decoration: none; transition: color .2s var(--ease); }
.bar nav a:hover { color: var(--text); }

section { padding: clamp(88px, 14vw, 180px) var(--gutter); scroll-margin-top: 64px; }
.dark { background: var(--void); }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .eyebrow, .paper .note, .paper dd, .paper .footnotes { color: var(--paper-dim); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.grid > .copy { grid-column: 1 / span 5; }
.hero .grid > .copy { grid-column: 1 / span 6; }
.grid > .body, .grid > .evidence-pair { grid-column: 7 / span 6; }
.grid > .hero-lens { grid-column: 8 / span 5; }

.eyebrow { margin: 0 0 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
h1, h2 { font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 24px; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.6vw, 88px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); max-width: 16ch; }
h3 { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--dim); margin: 0 0 18px; text-transform: uppercase; font-family: "Geist Mono", monospace; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text); max-width: 34em; margin: 0 0 40px; }
.note { color: var(--dim); max-width: 46em; font-size: 15px; }

.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 14px 26px;
  background: var(--text); color: var(--void);
  font-size: 15px; font-weight: 400; text-decoration: none;
  clip-path: var(--notch);
  transition: background .2s var(--ease);
}
.button:hover { background: var(--focus); }
.paper .button { background: var(--ink); color: var(--paper); }
.link { color: var(--dim); text-underline-offset: 5px; text-decoration-thickness: 1px; font-size: 15px; }
.link:hover { color: var(--text); }

/* The lens: a 576 x 288 green-on-black pane. Text is the product's own copy, in a plain sans
   like the G2's display, never a dot-matrix imitation. */
.lens {
  position: relative; aspect-ratio: 2 / 1; width: 100%;
  background: #000; border: 1px solid var(--hairline);
  clip-path: var(--notch);
  container-type: inline-size;
}
.lens pre {
  margin: 0; padding: 4cqw 4.5cqw;
  font: 400 3.55cqw/1.42 Geist, system-ui, sans-serif;
  letter-spacing: 0;
  color: var(--phosphor);
  text-shadow: 0 0 6px rgba(57, 255, 122, .35);
  white-space: pre-wrap;
}

.hero { min-height: calc(100svh - 64px); display: grid; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-lens { margin: 0; position: relative; padding: 0 2%; }
.hero-lens .lens { box-shadow: 0 0 120px rgba(57, 255, 122, .06); }
.hero-lens figcaption { margin-top: 18px; font: 12px "Geist Mono", monospace; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }

.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.points li { padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--dim); }
.points b { color: var(--text); font-weight: 500; }

.live .head { max-width: 48em; }
.slider { display: grid; gap: 14px; margin: 48px 0 40px; max-width: 520px; font-size: 18px; }
.slider output { color: var(--phosphor); font-size: 1.05em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--hairline); }
input[type=range]::-moz-range-track { height: 1px; background: var(--hairline); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; background: var(--text); clip-path: var(--notch); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 0; background: var(--text); cursor: grab; }

.stage { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.panel { background: var(--panel); padding: 28px; min-height: 360px; }
.lens-panel { display: flex; flex-direction: column; }
.lens-panel .lens { margin-top: auto; margin-bottom: auto; }

.day { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.day li { display: grid; grid-template-columns: 1fr; padding: 12px 14px; background: var(--void); border-left: 2px solid var(--hairline); transition: border-color .3s var(--ease); }
.day .t { font: 13px "Geist Mono", monospace; color: var(--dim); font-variant-numeric: tabular-nums; }
.day .n { font-size: 16px; }
.day .s { font: 11px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.day .moved { border-left-color: var(--phosphor); }
.day .moved .t, .day .moved .s { color: var(--phosphor); }
.day .chair .s { color: var(--text); }

.phone { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.phone li { background: #1b1f1b; padding: 14px 16px; font-size: 14.5px; clip-path: var(--notch); animation: arrive .35s var(--ease) both; }
.phone li p { margin: 6px 0 12px; }
.phone .to { font: 11px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: #9aa197; }
.phone .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone .buttons { grid-auto-rows: auto; }
.phone button { font: 400 12.5px/1.3 Geist, sans-serif; color: var(--text); text-align: center; padding: 8px 4px; background: #262b26; border: 0; cursor: pointer; transition: background .2s var(--ease); }
.phone button:hover { background: #313731; }
.phone .slots { grid-template-columns: 1fr; margin-top: 6px; }
.phone .slots button { text-align: left; padding-left: 12px; }
.phone .done { font: 11px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--phosphor); }
.day .picked { border-left-color: var(--focus); }
.day .picked .t, .day .picked .s { color: var(--focus); }
.hint { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.phone .quiet { background: none; border: 1px dashed var(--hairline); color: var(--dim); animation: none; }
.phone .refused { background: none; border: 1px solid var(--fail); color: var(--text); animation: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

.ledger h2 { margin-bottom: 64px; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--paper-line); }
.figures div { padding: 32px 28px 0 0; border-right: 1px solid var(--paper-line); margin-right: 28px; }
.figures div:last-child { border-right: 0; }
.figures dt { font: 800 clamp(54px, 6.5vw, 96px)/1 Doto, "Geist Mono", monospace; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.figures dd { margin: 18px 0 0; font-size: 15px; max-width: 22em; }
.footnotes { margin: 72px 0 0; padding-left: 18px; font-size: 13px; display: grid; gap: 6px; }
.footnotes a { color: var(--ink); }

.evidence-pair { display: grid; grid-template-columns: 1fr; gap: 28px; }
figure { margin: 0; }
figure img { border: 1px solid var(--hairline); background: #000; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--dim); }

.gate-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.gate-list li { padding: 28px 22px 8px 0; border-right: 1px solid var(--hairline); margin-right: 22px; }
.gate-list li:last-child { border-right: 0; margin-right: 0; }
.gate-list .n { display: block; font: 800 40px/1 Doto, monospace; color: var(--phosphor); margin-bottom: 18px; }
.gate-list b { font-weight: 500; font-size: 19px; }
.gate-list p { color: var(--dim); font-size: 15px; margin: 10px 0 0; }
.refusals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 80px; }

.spec { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 16px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 20px 24px 20px 0; border-top: 1px solid var(--paper-line); font-weight: 400; }
.spec th { width: 30%; font-weight: 500; }
.dark .spec th, .dark .spec td { border-top-color: var(--hairline); }
.spec .num { text-align: right; font-variant-numeric: tabular-nums; width: 18%; }
.spec .dim { color: var(--paper-dim); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 48px; }
.ways article { background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.ways p { color: var(--dim); font-size: 15px; margin: 0 0 22px; flex: 1; }
.ways .button { align-self: flex-start; }
.cmd { margin: 0; padding: 16px; background: #000; color: var(--phosphor); font-size: 12.5px; overflow-x: auto; clip-path: var(--notch); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px var(--gutter); border-top: 1px solid var(--hairline); font-size: 13px; color: var(--dim); }

/* Try page: the judge's own demo day */
.try-head { padding-bottom: 32px; }
.try-flow { padding-top: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 36px 32px; background: var(--panel); }
.step[hidden] { display: none; }
.step > .n { font: 800 34px/1 Doto, "Geist Mono", monospace; color: var(--phosphor); }
.step h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
.step .note { margin: 14px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
button.button { border: 0; cursor: pointer; font-family: inherit; }
button.button:disabled { opacity: .35; cursor: default; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.button.ghost:hover { background: var(--hairline); }
.step .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; background: none; border: 0; align-items: start; }
.step .lens-panel figcaption { margin-top: 10px; font-size: 12px; color: var(--dim); }
.try-facts details { margin-top: 32px; }
.try-facts summary { cursor: pointer; font-size: 15px; }
.try-facts .cmd { margin-top: 14px; }

/* Proof page */
.proof-head { padding-bottom: 40px; }
.checks { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--hairline); }
.paper .checks { border-top-color: var(--paper-line); }
.checks li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.paper .checks li { border-bottom-color: var(--paper-line); }
.checks .mark { font-size: 12px; letter-spacing: .06em; }
.checks .pass .mark { color: var(--pass); }
.paper .checks .pass .mark { color: #157a3c; }
.checks .fail .mark { color: var(--fail); }
.checks .off .mark { color: var(--dim); }
.checks .fail .label { color: var(--fail); }
.checks .detail { color: var(--dim); font-size: 15px; }
.paper .checks .detail { color: var(--paper-dim); }
.checks.compact li { padding: 10px 0; font-size: 15px; }
.verdict { font: 500 20px/1.3 Geist, sans-serif; margin: 40px 0 0; }
.verdict.pass::before { content: "PASS  "; font: 500 13px "Geist Mono", monospace; color: #157a3c; }
.verdict.fail { color: var(--fail); }
details { margin-top: 40px; }
summary { cursor: pointer; font: 13px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin-top: 48px; }

[data-reveal].pending { opacity: 0; transform: translateY(16px); }
[data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (max-width: 960px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px 20px; }
  .step .stage { grid-template-columns: 1fr; }
  .grid > .copy, .hero .grid > .copy, .grid > .body, .grid > .hero-lens, .grid > .evidence-pair { grid-column: 1 / -1; }
  .stage, .ways { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: 0; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(2) { border-right: 0; }
  .gate-list { grid-template-columns: 1fr; }
  .gate-list li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--hairline); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .checks li { grid-template-columns: 56px 1fr; }
  .checks .detail { grid-column: 2; }
}
@media (max-width: 560px) {
  .bar nav a:not(:last-child) { display: none; }
  .figures, .refusals, .evidence-pair, .gallery { grid-template-columns: 1fr; }
  .figures div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--paper-line); padding-bottom: 24px; }
}
@media print {
  [data-reveal], [data-reveal].pending { opacity: 1; transform: none; }
  .bar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal].pending { opacity: 1; transform: none; transition: none; }
  .phone li { animation: none; }
}
