:root {
  --ink: #ecece8;
  --muted: #9c9e9d;
  --quiet: #686b6c;
  --line: rgba(236, 236, 232, .15);
  --line-strong: rgba(236, 236, 232, .28);
  --panel: #111315;
  --black: #08090b;
  --acid: #d8ff69;
  --warm: #b9a68c;
  --mono: 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--black); color: var(--ink); }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(85, 98, 67, .12), transparent 28rem),
    var(--black);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

button, a { color: inherit; }
button { font: inherit; }

.shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.wordmark, .kicker, .serial, .eyebrow, .manifest-state, .card-index,
.screen-hint, .mode-label, .footer, .spec-list dt, .spec-list dd {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.wordmark {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  text-decoration: none;
}

.kicker, .serial { margin: 0; color: var(--quiet); font-size: 10px; }
.kicker { text-align: center; }
.serial { text-align: right; }

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 10px;
  line-height: 1.3;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .84;
}

.intro-note {
  max-width: 245px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.screen { width: min(100%, calc((100vh - 260px) * 16 / 9)); margin: 0 auto 48px; }

.screen-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 260px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-status {
  position: absolute;
  top: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(236, 236, 232, .72);
  font: 10px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity .25s ease;
}

.video-status.is-hidden { opacity: 0; }
.video-status.is-error { color: #ff9a88; }
.status-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.is-error .status-mark { background: #ff735d; }

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 15px;
  border: 1px solid rgba(236, 236, 232, .52);
  border-radius: 100px;
  background: rgba(8, 9, 11, .64);
  color: var(--ink);
  cursor: pointer;
  font: 10px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: background .2s ease, opacity .2s ease;
}

.play-overlay:hover, .play-overlay:focus-visible { background: rgba(8, 9, 11, .9); }
.play-overlay.is-hidden { opacity: 0; pointer-events: none; }
.play-glyph { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--acid); }

.screen-caption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}

.mode-switch { display: inline-flex; gap: 4px; }
.mode-button { padding: 5px 10px; border: 1px solid transparent; background: none; color: var(--quiet); cursor: pointer; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.mode-button:hover, .mode-button:focus-visible { color: var(--ink); }
.mode-button.is-active { border-color: var(--line-strong); color: var(--ink); }
.screen-hint, .mode-label { margin: 0; color: var(--quiet); font-size: 9px; }
.screen-hint { text-align: center; }
.mode-label { color: var(--muted); text-align: right; }
kbd { color: var(--ink); }

.review-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .7fr); gap: clamp(42px, 7vw, 110px); padding-bottom: 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.manifest-state { margin: 0; color: var(--quiet); font-size: 9px; }
.equation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.equation-card { min-height: 185px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.equation-card--pending { grid-column: 1 / -1; min-height: 135px; border-style: dashed; }
.card-index { margin: 0 0 34px; color: var(--acid); font-size: 9px; }
.card-index span { color: var(--quiet); }
.equation-card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.equation-card .notation { margin: 0 0 12px; color: var(--acid); font: 15px/1.5 var(--mono); white-space: pre-wrap; }
.equation-card p:last-child { max-width: 52ch; margin: 0; color: var(--muted); line-height: 1.6; }
code { color: var(--warm); font: .9em var(--mono); }

.review-column--side { display: flex; flex-direction: column; gap: 50px; }
.spec-block, .claim-block { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.spec-list { margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt, .spec-list dd { margin: 0; font-size: 9px; }
.spec-list dt { color: var(--quiet); }
.spec-list dd { color: var(--ink); text-align: right; }
.claim-block > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }

.footer { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 9px; line-height: 1.5; }
.footer p { margin: 0; }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 640px); }
  .masthead { grid-template-columns: 1fr 1fr; }
  .kicker { display: none; }
  .serial { text-align: right; }
  .intro { display: block; padding-top: 52px; }
  .intro-note { margin-top: 24px; }
  .screen { margin-bottom: 54px; }
  .screen-caption { grid-template-columns: 1fr auto; }
  .screen-hint { display: none; }
  .review-grid { display: block; padding-bottom: 54px; }
  .review-column--side { margin-top: 52px; }
  .equation-list { grid-template-columns: 1fr; }
  .footer { display: grid; grid-template-columns: 1fr 1fr; }
  .footer p:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.downloads { padding: 0 0 40px; color: #777; font-size: 13px; line-height: 2; }
.downloads a { color: #b5b7b0; margin: 0 8px; text-decoration: none; }
.downloads a:hover { color: #d8ff69; }

[hidden] { display: none !important; }
#film-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.transport { display:flex; align-items:center; gap:10px; padding:12px 0 4px; flex-wrap:wrap; }
.transport button { background:transparent; border:1px solid var(--line-strong); padding:7px 10px; border-radius:3px; cursor:pointer; }
.transport button:hover { border-color:var(--acid); }
#film-time { flex:1; min-width:80px; accent-color:var(--acid); }
#film-clock { font:11px var(--mono); font-variant-numeric:tabular-nums; color:var(--muted); }
.screen:fullscreen { width:100vw; height:100vh; margin:0; padding:16px; background:#000; display:flex; flex-direction:column; }
.screen:fullscreen .screen-frame { width:100%; max-height:none; min-height:0; flex:1; }
@media(max-width:600px) { .transport { gap:7px; } .transport button { padding:7px 8px; font-size:11px; } #film-time { order:2; flex-basis:70%; } #film-clock { order:3; } }

.site-nav{display:flex;flex-wrap:wrap;gap:1.1em;justify-content:flex-end}.site-nav a{text-decoration:none;color:inherit}.site-nav a:hover{color:var(--accent,#d3e587)}.credit-note{font-size:12px;color:#8f9695;line-height:1.6;margin:24px 0}.credit-note a{color:inherit}@media(max-width:600px){.masthead{align-items:flex-start}.site-nav{gap:.8em;max-width:190px}}
