@font-face {
  font-family: "Redaction 50";
  src: url("fonts/Redaction_50-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Redaction;
  src: url("fonts/Redaction-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Redaction;
  src: url("fonts/Redaction-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b0c10;
  --foreground: oklch(96.5% 0.005 250);
  --muted: oklch(72% 0.012 250);
  --faint: oklch(55% 0.01 250);
  --card: oklch(15.5% 0.007 250);
  --border: oklch(100% 0 0 / 0.12);
  --sky: oklch(80% 0.115 232);
  --sky-ink: oklch(18% 0.03 240);
  --run: oklch(80% 0.17 150);
  --radius: 4px;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --display: "Redaction 50", Redaction, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, code { font: inherit; }
button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 64px;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.brand { justify-self: start; }

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover { color: var(--foreground); }

.chip {
  justify-self: end;
  margin-left: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(240px, 100%);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.chip code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip[data-state="copied"] { color: var(--run); }

.chip-block {
  margin: 18px auto 0;
  max-width: 100%;
  cursor: default;
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px 80px;
  text-align: center;
}

.hero-copy { position: relative; z-index: 1; }

.hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 62ch;
  margin: 28px auto 0;
  color: var(--muted);
}

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 48px)); }

.how { position: relative; z-index: 1; }

.how-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 48px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.steps { list-style: none; margin: 0; padding: 0; }

.step {
  min-height: 88vh;
  padding: 18vh 8px 0 0;
  color: oklch(55% 0.01 250);
}

.step.is-on { color: var(--foreground); }
.step .cmd { margin: 0 0 8px; color: var(--sky); font-family: var(--mono); font-size: 13px; }
.step h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.step p { margin: 0 0 14px; max-width: 36ch; }
.step .prompt { font-family: var(--mono); font-size: 13px; color: var(--sky); }

.steps, .stage-col, .stage { min-width: 0; }
.stage-col { position: relative; }
.stage {
  position: sticky;
  top: 88px;
  padding-top: 12px;
  background: var(--background);
}

.stage-caption {
  margin: 0 0 8px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.stage-caption span { display: none; }
.stage[data-step="watch"] [data-cap="watch"],
.stage[data-step="prove"] [data-cap="prove"],
.stage[data-step="halt"] [data-cap="halt"],
.stage[data-step="agents"] [data-cap="agents"] { display: inline; color: var(--muted); }

.pixel {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  color: var(--foreground);
  background:
    linear-gradient(oklch(100% 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px dashed var(--border);
}

.pixel text { font-family: var(--sans); font-size: 15px; fill: currentColor; }
.pixel .scene-note { font-size: 13px; fill: var(--muted); }
.pixel .mark { fill: var(--sky); }
.scene { opacity: 0; transition: opacity 220ms ease; }
.stage[data-step="watch"] .scene-watch,
.stage[data-step="prove"] .scene-prove,
.stage[data-step="halt"] .scene-halt,
.stage[data-step="agents"] .scene-agents { opacity: 1; }

.shot-slot {
  display: none;
  margin: 16px 0 0;
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  place-items: center;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
  padding: 18px;
}

.shot-slot.has-shot { display: grid; border-style: solid; padding: 0; }
.shot-slot.has-shot figcaption { display: none; }
.shot-slot img { display: block; width: 100%; }

.agents, .compare, .closer {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.agents h2, .compare h2, .closer h2, .hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.agents h2, .compare h2, .closer h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
}

.tree { margin: 48px auto 12px; text-align: center; }
.tree-top, .tree-row { display: flex; justify-content: center; gap: 36px; }
.tree small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.tree-row { margin-top: 28px; position: relative; }
.tree-row::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 18%;
  right: 18%;
  border-top: 1px dashed var(--border);
}

.px {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--sky);
  image-rendering: pixelated;
  box-shadow:
    0 0 0 4px var(--background),
    0 0 0 5px var(--border);
}

.px-you { background: var(--foreground); }

.brand, .tab img {
  display: inline-block;
  width: 28px;
  height: 28px;
}
.tab img {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.tab {
  color: var(--muted);
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
}

.tab.is-on { color: var(--foreground); border-bottom-color: var(--foreground); }

.agent-panel { display: none; text-align: center; }
.agent-panel.is-on { display: block; }
.aside { color: var(--muted); font-size: 14px; }

.compare { background-image: radial-gradient(oklch(100% 0 0 / 0.05) 0.7px, transparent 0.8px); background-size: 5px 5px; }

.table-wrap { overflow-x: auto; margin-top: 36px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  background: oklch(12% 0.005 250);
}

thead th { color: var(--muted); font-weight: 500; }
tbody th { color: var(--muted); font-weight: 400; width: 18%; }
th.us, td.us { background: oklch(16% 0.01 240); }
thead th.us {
  background: var(--sky);
  color: var(--sky-ink);
  font-family: var(--display);
  font-size: 22px;
}

.footnote {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.closer { text-align: center; min-height: 70vh; display: grid; place-items: center; }
.closer .chip { margin: 22px auto 0; }

.footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 280px;
  padding: 88px 0 64px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.footer .wrap { position: relative; z-index: 1; }

.footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .chip { grid-column: 2; }
  .how-grid { grid-template-columns: 1fr; }
  .step { min-height: 72vh; padding: 18vh 0 0; }
  .stage-col { order: -1; }
  .stage { position: sticky; top: 72px; }
  .chip { display: none; }
  .topbar .chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step { min-height: auto; color: var(--foreground); padding: 32px 0; }
  .scene { transition: none; }
}
