/* Statim site. Mobile first; one stylesheet for every page. */

@font-face { font-family: "Sora"; src: url("fonts/Sora-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --ink-0: #0d1014;      /* page */
  --ink-1: #12171d;      /* raised */
  --ink-2: #1a2129;      /* inset, bar tracks */
  --line: #232b34;
  --line-2: #313c48;
  --fg: #e7eaef;
  --fg-2: #a7b0bb;
  --fg-3: #8a95a1;
  --signal: #34d399;     /* Statim, a decided answer */
  --signal-ink: #04261a;
  --signal-soft: rgba(52, 211, 153, .13);
  --ref: #6f7a87;        /* the reference implementation */
  --loss: #f87171;
  --sans: "Sora", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: 20px;
  --max: 1180px;
  --r-s: 8px;
  --r-m: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--fg);
  font: 400 1rem/1.62 var(--sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
code, pre, kbd { font-family: var(--mono); font-size: .875em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--signal-ink); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
/* Grid items default to min-width: auto and would grow to their widest child (code, tables). */
.strips > *, .gate > *, .pairs > *, .gpu > *, .how > *, .api > *, .start > *, .foot > *, .cols > *, .answers > * { min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--signal); color: var(--signal-ink); border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 20, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { display: block; }
.brand .word { height: 22px; width: auto; }
.nav { display: none; }
.nav a, .menu nav a { color: var(--fg-2); text-decoration: none; font-size: .875rem; font-weight: 500; }
.nav a:hover, .menu nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
/* The header is sticky (a positioned box) and has a backdrop filter, so the menu panel is placed
   against the header, full width, right below it. */
.menu { position: static; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px; border-radius: var(--r-s); color: var(--fg);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu[open] summary .i-open, .menu:not([open]) summary .i-close { display: none; }
.menu nav {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 64px); overflow-y: auto;
  display: grid; gap: 4px; padding: 16px var(--gutter) 24px;
  background: var(--ink-0); border-bottom: 1px solid var(--line);
}
.menu nav a { font-size: 1.0625rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }

@media (min-width: 900px) {
  .menu { display: none; }
  .nav { display: flex; align-items: center; gap: 26px; }
  .nav .btn { margin-left: 6px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 .9375rem/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--fg); background: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--fg-3); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn.primary:hover { background: #5fe0b3; border-color: #5fe0b3; }
.nav .btn, .menu nav .btn { min-height: 38px; font-size: .875rem; padding: 0 16px; color: var(--signal-ink); }
.nav .btn { color: var(--signal-ink); }

/* ---------- sections ---------- */
section { padding-block: clamp(72px, 11vw, 136px); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem); }
.section-head p { margin-top: 18px; color: var(--fg-2); font-size: 1.0625rem; max-width: 40rem; }
.section-head p:last-child { margin-bottom: 0; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.note { color: var(--fg-3); font-size: .8125rem; line-height: 1.55; }
.note a, .prose a, .link { color: var(--signal); text-decoration: underline; text-decoration-color: rgba(52, 211, 153, .45); text-underline-offset: 3px; }
.note a:hover, .prose a:hover, .link:hover { text-decoration-color: var(--signal); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 0 clamp(64px, 9vw, 112px); isolation: isolate; }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% 35%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 16, 20, 0) 45%, var(--ink-0) 100%);
}
.hero-copy { position: relative; margin-top: -28px; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.25rem); letter-spacing: -.045em; line-height: .98; }
.hero .lead { margin: 22px 0 0; color: var(--fg-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--fg-3); font-size: .875rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

@media (min-width: 600px) and (max-width: 959px) {
  .hero-art img { aspect-ratio: 2 / 1; object-position: 70% 40%; }
}
@media (min-width: 960px) {
  .hero { padding-top: 0; }
  .hero-art { position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1; }
  .hero-art img { height: 100%; aspect-ratio: auto; object-position: 80% 40%; }
  .hero-art::after {
    background:
      linear-gradient(90deg, var(--ink-0) 18%, rgba(13, 16, 20, .7) 42%, rgba(13, 16, 20, 0) 64%),
      linear-gradient(180deg, rgba(13, 16, 20, 0) 55%, var(--ink-0) 100%);
  }
  .hero-copy { margin-top: 0; padding-top: 128px; min-height: 560px; }
}

/* ---------- decision trace (hero) ---------- */
.trace {
  margin-top: clamp(40px, 7vw, 72px);
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
}
.trace-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--fg-3); }
.trace-bar .verb { font-family: var(--mono); color: var(--fg); }
.trace-bar .model { flex-basis: 100%; }
@media (min-width: 600px) { .trace-bar .model { flex-basis: auto; margin-left: auto; } }
.trace-state { padding: 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; line-height: 1.7; color: var(--fg-2); overflow-wrap: anywhere; }
.trace-state b { color: var(--fg-3); font-weight: 400; }
.answers { display: grid; }
.answer { padding: 20px 18px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.answer:last-child { border-bottom: 0; }
.answer .a-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.answer .a-head .type { font: 400 .75rem/1 var(--mono); color: var(--fg-3); letter-spacing: 0; }
.answer .q { margin: 6px 0 16px; color: var(--fg-3); font-size: .875rem; line-height: 1.45; }
.opts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opt { display: grid; grid-template-columns: 5.5rem 1fr 3.4rem; align-items: center; gap: 10px; font-size: .875rem; }
.opt .name { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .p { font-family: var(--mono); font-size: .8125rem; text-align: right; color: var(--fg-3); }
.opt.top .name, .opt.top .p { color: var(--fg); }
.track { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--ink-2); overflow: hidden; }
.fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ref); transform-origin: left; }
.opt.top .fill { background: var(--signal); }
.verdict { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; font-size: .875rem; color: var(--fg-3); }
.verdict strong { color: var(--signal); font-weight: 600; font-size: 1rem; }
.scale { position: relative; margin: 4px 0 14px; }
.scale .track { height: 8px; }
.scale .marker {
  position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--signal); border: 3px solid var(--ink-1);
}
.scale-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: .75rem; color: var(--fg-3); }
.trace-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--fg-3); }

@media (min-width: 820px) {
  .answers { grid-template-columns: repeat(3, 1fr); }
  .answer { border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 22px 24px; }
  .answer:last-child { border-right: 0; }
  .trace-state { padding: 18px 22px; }
  .trace-bar, .trace-foot { padding-inline: 22px; }
}

/* The one orchestrated motion: every bar resolves at the same instant, because every option is
   scored in the same forward pass. */
@media (prefers-reduced-motion: no-preference) {
  .trace .fill { animation: resolve .9s var(--ease) .35s both; }
  .trace .marker { animation: slide .9s var(--ease) .35s both; }
  .trace .verdict strong { animation: appear .3s ease 1.15s both; }
}
@keyframes resolve { from { transform: scaleX(0); } }
@keyframes slide { from { left: 0; } }
@keyframes appear { from { opacity: 0; } }

/* ---------- models ---------- */
.models { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.model { display: grid; align-content: start; gap: 10px; padding: 24px 22px; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.model h3 { font-size: 1.25rem; }
.model .spec { margin: 0; color: var(--fg-3); font-size: .875rem; }
.model dl { display: grid; gap: 0; margin: 6px 0 4px; border-top: 1px solid var(--line); }
.model dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.model dt { color: var(--fg-2); font-size: .9375rem; }
.model dd { margin: 0; color: var(--signal); font-size: 1rem; }
.model .link { font-size: .9375rem; justify-self: start; }
@media (min-width: 760px) { .models { grid-template-columns: repeat(2, 1fr); } }

/* ---------- accuracy: benchmark strips ---------- */
.strips { display: grid; gap: 18px; }
.strip { margin: 0; padding: 22px 20px 20px; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.strip figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.strip figcaption h3 { font-size: 1.0625rem; }
.strip figcaption .proto { flex-basis: 100%; order: 3; margin-top: 4px; color: var(--fg-3); font-size: .8125rem; }
.strip .score { font: 500 1.625rem/1 var(--mono); color: var(--signal); letter-spacing: -.02em; }
.axis { position: relative; height: 40px; margin: 26px 8px 4px; }
.axis::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line-2); border-radius: 1px; }
.axis .dot { position: absolute; top: 20px; left: calc((var(--v) - var(--min)) / (var(--max) - var(--min)) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink-1); border: 2px solid var(--fg-3); }
.axis .dot.us { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--signal); border: 3px solid var(--ink-1); box-shadow: 0 0 0 1px var(--signal); z-index: 1; }
.axis .tick { position: absolute; top: 30px; font: .6875rem/1 var(--mono); color: var(--fg-3); transform: translateX(-50%); }
.axis .tick:first-of-type { transform: none; }
.axis .tick:last-of-type { transform: translateX(-100%); }
.who { display: grid; gap: 6px; margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .875rem; }
.who li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; color: var(--fg-2); }
.who li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--fg-3); }
.who li.us { color: var(--fg); font-weight: 500; }
.who li.us::before { background: var(--signal); border-color: var(--signal); }
.who .num { font-size: .8125rem; color: var(--fg-3); }
.who li.us .num { color: var(--signal); }
@media (min-width: 760px) { .strips { grid-template-columns: repeat(2, 1fr); } }

/* ---------- accuracy: gate grid ---------- */
.gate { margin-top: clamp(56px, 8vw, 88px); display: grid; gap: 28px; }
.gate-intro h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.gate-intro p { margin-top: 14px; color: var(--fg-2); max-width: 36rem; }
.gate-group + .gate-group { margin-top: 22px; }
.gate-group h4 { display: flex; gap: 10px; align-items: baseline; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 10px; }
.gate-group h4 span { color: var(--fg-3); font-size: .8125rem; font-weight: 400; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font: 500 .6875rem/1 var(--mono); }
.cell b { font-weight: 500; }
.cell.gain { background: var(--signal); color: var(--signal-ink); }
.cell.noise { background: var(--ink-2); color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line); }
.cell.loss { background: transparent; color: var(--loss); box-shadow: inset 0 0 0 1.5px var(--loss); }
.gate-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; font-size: .875rem; color: var(--fg-2); }
.gate-sum .item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.gate-sum .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.k.gain { background: var(--signal); }
.k.noise { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.k.loss { box-shadow: inset 0 0 0 1.5px var(--loss); }
.clean { display: grid; gap: 6px; margin-top: clamp(40px, 6vw, 64px); padding: 22px 20px; border-radius: var(--r-m); background: var(--signal-soft); border: 1px solid rgba(52, 211, 153, .28); }
.clean strong { font-weight: 600; }
.clean p { margin: 0; color: var(--fg-2); font-size: .9375rem; }
@media (min-width: 960px) {
  .gate { grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
  .clean { grid-template-columns: 4fr 8fr; gap: 56px; padding: 26px 28px; align-items: baseline; }
}

/* ---------- performance: paired bars ---------- */
.pairs { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pair { padding: 20px; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.pair-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pair-head h3 { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.pair-head .gain { font: 500 1.5rem/1 var(--mono); color: var(--signal); letter-spacing: -.02em; white-space: nowrap; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: 12px; font-size: .8125rem; }
.bar .who-l { color: var(--fg-3); }
.bar.us .who-l { color: var(--fg); }
.bar .track { height: 26px; border-radius: 6px; background: transparent; overflow: visible; }
.bar .fill { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; min-width: 2px; }
.bar.us .fill { background: var(--signal); box-shadow: none; }
.bar .val { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--v) * 100% + 8px); font-family: var(--mono); color: var(--fg-2); white-space: nowrap; }
.bar .fill .val.in { left: auto; right: 8px; }
.bar.us .val { color: var(--fg); }
.bar.us .val.in { color: var(--signal-ink); }
.pair .dir { margin: 12px 0 0; font-size: .75rem; color: var(--fg-3); }
@media (min-width: 760px) { .pairs { grid-template-columns: repeat(2, 1fr); } }

.spec { display: grid; margin: clamp(28px, 5vw, 44px) 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--fg-3); font-size: .875rem; }
.spec dd { margin: 0; display: grid; gap: 2px; }
.spec .from { color: var(--fg-3); text-decoration: line-through; text-decoration-color: rgba(138, 149, 161, .5); font-size: .875rem; }
.spec .to { color: var(--fg); }
@media (min-width: 760px) {
  .spec > div { grid-template-columns: 11rem 1fr; }
  .spec dd { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* GPU */
.gpu { display: grid; gap: 32px; margin-top: clamp(56px, 8vw, 96px); }
.media { margin: 0; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--ink-1); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.gpu .media img { aspect-ratio: 16 / 9; }
.gpu h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.gpu p { margin-top: 14px; color: var(--fg-2); }
.factors { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.factor { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .875rem; }
.factor .what { color: var(--fg-2); }
.factor .x { font-family: var(--mono); color: var(--signal); font-weight: 500; }
.factor .track { grid-column: 1 / -1; height: 6px; }
.factor .fill { background: var(--signal); }
.factor .abs { grid-column: 1 / -1; font-family: var(--mono); font-size: .75rem; color: var(--fg-3); }
@media (min-width: 960px) { .gpu { grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; } }

/* ---------- how it works ---------- */
.how { display: grid; gap: 40px; }

/* Films. The landscape film sits next to the phone-format story at equal height (256:81 columns);
   on portrait screens every film plays its 9:16 cut. Nothing loads before the play button. */
.films { display: grid; gap: 28px; }
.film, .reel { margin: 0; }
.frame { --aw: 16; --ah: 9; position: relative; aspect-ratio: var(--aw) / var(--ah); margin-inline: auto;
  width: min(100%, calc(85vh * var(--aw) / var(--ah))); width: min(100%, calc(85svh * var(--aw) / var(--ah)));
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--ink-1); }
.film-story .frame { --aw: 9; --ah: 16; }
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink-1); }
.film figcaption { margin-top: 12px; color: var(--fg-3); font-size: .875rem; text-align: center; }
.play { display: none; position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink); cursor: pointer; place-items: center;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .5); transition: transform .2s var(--ease), background-color .2s var(--ease); }
.play span { width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent currentColor; }
.play:hover { background: #5fe0b3; transform: scale(1.06); }
.js .play { display: grid; }
.js .frame.playing .play { display: none; }
@media (orientation: portrait) { .film-main .frame, .reel .frame { --aw: 9; --ah: 16; } }
@media (min-width: 960px) and (orientation: landscape) { .films { grid-template-columns: 256fr 81fr; align-items: start; } }
@media (prefers-reduced-motion: reduce) { .play { transition: none; } .play:hover { transform: none; } }
.steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 .8125rem/1 var(--mono); color: var(--signal); }
.steps h3 { font-size: 1.0625rem; margin-top: 4px; }
.steps p { margin: 6px 0 0; color: var(--fg-2); font-size: .9375rem; }
.how .media img { aspect-ratio: 16 / 9; }
@media (min-width: 960px) { .how { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; } }

.features { display: grid; gap: 0; margin: clamp(56px, 8vw, 88px) 0 0; }
.features > div { padding: 22px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 600; letter-spacing: -.01em; }
.features dd { margin: 6px 0 0; color: var(--fg-2); font-size: .9375rem; }
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- API ---------- */
.api { display: grid; gap: 36px; }
.endpoints { margin: 0; border-top: 1px solid var(--line); }
.endpoints > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.endpoints dt { font-family: var(--mono); font-size: .8125rem; color: var(--fg); overflow-wrap: anywhere; }
.endpoints dt span { color: var(--signal); margin-right: 8px; }
.endpoints dd { margin: 0; color: var(--fg-3); font-size: .875rem; }
@media (min-width: 960px) { .api { grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; } }

.code { background: #0a0d10; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; min-width: 0; }
.code-bar { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); }
.code-bar .file { font-family: var(--mono); font-size: .75rem; color: var(--fg-3); margin-right: auto; }
.tabs { display: flex; gap: 2px; margin-right: auto; }
.tabs button, .copy {
  min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent;
  color: var(--fg-3); font: 500 .8125rem/1 var(--sans); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink-2); color: var(--fg); }
.tabs button:hover, .copy:hover { color: var(--fg); }
.copy { display: none; }
.js .copy { display: inline-flex; align-items: center; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: .8125rem; line-height: 1.7; color: #cdd4dc; tab-size: 2; }
.code pre .c { color: var(--fg-3); }
.code pre .s { color: #9be8c8; }
.code pre .k { color: #e7eaef; font-weight: 500; }
.panel-title { margin: 0; padding: 12px 18px 0; font: 500 .75rem/1 var(--mono); color: var(--fg-3); }
.js .panel-title { display: none; }
.js [role="tabpanel"][hidden] { display: none; }

/* ---------- get started ---------- */
.start { display: grid; gap: 36px; }
.start .media img { aspect-ratio: 1; max-height: 420px; }
.deploy { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.deploy li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--fg-2); }
.deploy strong { color: var(--fg); font-weight: 600; margin-right: 8px; }
@media (min-width: 960px) { .start { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; } }

/* ---------- license ---------- */
.tiers { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tier { display: grid; align-content: start; gap: 8px; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--ink-1); }
.tier .price { font-size: .875rem; color: var(--fg-3); }
.tier.paid { border-color: rgba(52, 211, 153, .45); background: linear-gradient(180deg, var(--signal-soft), var(--ink-1) 70%); }
.tier .lic { font-family: var(--mono); font-size: .75rem; color: var(--fg-3); }
.tier p { margin: 6px 0 0; color: var(--fg-2); font-size: .9375rem; }
.tier a { margin-top: 10px; font-size: .875rem; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(4, 1fr); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0d10; padding: 56px 0 28px; font-size: .9375rem; }
.foot { display: grid; gap: 40px; }
.foot .motto { margin: 16px 0 0; font: italic 1.375rem/1.2 var(--serif); color: var(--fg-2); }
.foot p.about { margin: 14px 0 0; color: var(--fg-3); max-width: 24rem; font-size: .875rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.cols h2 { font-size: .8125rem; font-weight: 500; color: var(--fg-3); letter-spacing: 0; margin-bottom: 12px; }
.cols ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cols a { color: var(--fg-2); text-decoration: none; }
.cols a:hover { color: var(--fg); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .8125rem; }
.legal a { color: var(--fg-3); }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .foot { grid-template-columns: 4fr 8fr; gap: 56px; } }

/* ---------- text pages (license, impressum, datenschutz, 404) ---------- */
.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem); letter-spacing: -.04em; }
.page-head p { margin: 18px 0 0; color: var(--fg-2); font-size: 1.0625rem; max-width: 40rem; }
.page-head .stamp { color: var(--fg-3); font-size: .875rem; }
.prose { max-width: 44rem; padding-bottom: clamp(72px, 10vw, 120px); color: var(--fg-2); overflow-wrap: break-word; }
.prose h2 { color: var(--fg); font-size: 1.25rem; letter-spacing: -.015em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--fg); font-size: 1.0625rem; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 4px 0; }
.prose address { font-style: normal; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose .btn { text-decoration: none; color: var(--fg); }
.prose .btn.primary { color: var(--signal-ink); }
.tier h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.tiers + * { margin-top: clamp(48px, 7vw, 72px); }
.faq { border-top: 1px solid var(--line); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; position: relative; color: var(--fg); font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.25rem/1 var(--mono); color: var(--fg-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; }

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