@font-face {
  font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/michroma-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: "B612 Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/b612-mono-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: "B612 Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/b612-mono-latin-700.woff2) format("woff2");
}

:root {
  color-scheme: dark;
  --ground: #0d0d0d;
  --ground-2: #131313;
  --hair: #262626;
  --edge: #3a3a3a;
  --ink: #f2f2f2;
  --ink-2: #b8b8b8;
  --mute: #747474;
  --red: #e0242f;
  --red-dim: rgba(224, 36, 47, .16);
  --amber: #f5b53c;
  --font-display: "Michroma", system-ui, sans-serif;
  --font-text: "B612 Mono", ui-monospace, monospace;
  --gutter: 16px;
  --top: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink);
  font-family: var(--font-text); font-size: 15px; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 1px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#field, #sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; transition: opacity 300ms linear; }
#sky { display: none; }
html.no-field #sky { display: block; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .top, .foot, .ticker { position: relative; z-index: 2; }

.eyebrow {
  margin: 0; font-family: var(--font-text); font-size: 11px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}

.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(13, 13, 13, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 26px; height: 28px; }
.wordmark { font-family: var(--font-display); font-size: 14px; letter-spacing: .32em; color: var(--ink); }
.wordmark b { font-weight: 400; color: var(--red); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 240ms cubic-bezier(.2,.7,.3,1); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.readout { font-size: 11px; letter-spacing: .14em; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout span { color: var(--ink-2); }

main { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.hero {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr) 240px; grid-template-areas: "copy mark feed" "foot foot foot";
  grid-template-rows: 1fr auto; gap: 24px;
  min-height: calc(100vh - var(--top)); padding-block: 48px 24px;
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 22px; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; letter-spacing: .04em; }
h2 { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.16; letter-spacing: .04em; }
.sub { margin: 0; max-width: 46ch; font-size: 16px; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; text-decoration: none;
  border: 1px solid var(--edge); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  background: transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color 300ms cubic-bezier(.165,.84,.44,1), border-color 300ms;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 380ms cubic-bezier(.165,.84,.44,1); }
.btn:hover { color: var(--ground); border-color: var(--ink); }
.btn:hover::before { transform: scaleY(1); }
.btn b { font-weight: 400; transition: transform 240ms; }
.btn:hover b { transform: translateX(3px); }
.btn-red { border-color: var(--red); background: var(--red); }
.btn-red::before { background: var(--ink); }

.mark-slot { align-self: stretch; min-height: 240px; display: grid; place-items: center; }
.hero .mark-slot { grid-area: mark; }
.hero-mark { display: none; }
html.no-field .hero-mark { display: block; width: min(100%, 420px); aspect-ratio: 320 / 340; height: auto; }

.feed { grid-area: feed; align-self: stretch; display: flex; flex-direction: column; gap: 10px; max-height: 70vh; max-height: 70svh; padding-left: 14px; border-left: 1px solid var(--hair); }
.feed .eyebrow { display: flex; align-items: center; justify-content: space-between; }
.rec { width: 6px; height: 6px; background: var(--red); animation: blink 1s steps(1, end) infinite; }
#feed {
  flex: 1; margin: 0; padding: 0; list-style: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  font-size: 10.5px; line-height: 1.45; color: var(--mute); -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
}
#feed li { overflow-wrap: anywhere; animation: rise 280ms cubic-bezier(.2,.7,.3,1); }
#feed li em { font-style: normal; color: var(--ink-2); }
#feed li[data-age="0"] { color: var(--ink); animation: rise 280ms cubic-bezier(.2,.7,.3,1), flash 500ms steps(2, end); }
#feed li[data-age="0"] em { color: var(--red); }
#feed .ok { color: var(--ink); }
#feed .wa { color: var(--amber); }

.hero-foot { grid-area: foot; display: flex; justify-content: space-between; gap: 16px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.cue { color: var(--ink-2); animation: blink 1.6s steps(1, end) infinite; }

.ticker { overflow: hidden; border-block: 1px solid var(--hair); background: rgba(13, 13, 13, .88); }
.tk-track { display: flex; width: max-content; padding-block: 11px; animation: slide 70s linear infinite; }
.tk-track span { padding-inline: 22px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.tk-track span::before { content: "✦"; color: var(--red); margin-right: 22px; }
.tk-track b { font-weight: 400; color: var(--ink); }

.mission {
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: center;
  min-height: 100vh; min-height: 100svh; padding-block: 96px;
}
.m-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 28px 0 28px 24px; border-left: 1px solid var(--hair); }
.m-copy::before, .m-copy::after { content: "+"; position: absolute; left: -5px; font-size: 13px; line-height: 1; color: var(--red); }
.m-copy::before { top: -7px; }
.m-copy::after { bottom: -7px; }
.st { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--ink-2); }
.st::before { content: ""; width: 6px; height: 6px; animation: blink 1.4s steps(1, end) infinite; }
.st-ok::before { background: var(--ink); }
.st-warn::before { background: var(--amber); }

.stats { width: 100%; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); }
.stats div { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 0 0; }
.stats div + div { padding-left: 14px; border-left: 1px solid var(--hair); }
.stats dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats div > span { font-size: 11px; color: var(--ink-2); }
.disclaim { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }

.stage { position: relative; height: 420vh; height: 420svh; margin-inline: calc(var(--gutter) * -1); }
.stage-pin { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: hidden; background: var(--ground); }
@supports (height: 1svh) {
  .hero { min-height: calc(100svh - var(--top)); }
  .stage-pin { height: calc(100svh - var(--top)); }
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; }
.stage-labels span {
  position: absolute; left: 0; top: 0; padding: 3px 7px; white-space: nowrap;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: rgba(13, 13, 13, .8); border-left: 2px solid var(--red);
  transition: opacity 200ms;
}
.stage-title { position: absolute; left: 24px; top: 20px; right: 24px; }
.beats {
  position: absolute; left: 24px; bottom: 40px; width: min(400px, calc(100% - 48px)); margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 2px;
}
.beats li { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 500ms cubic-bezier(.16,1,.3,1); background: rgba(13, 13, 13, .78); }
.beats li.on { grid-template-rows: auto 1fr; }
.beats button {
  all: unset; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 8px 12px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  transition: color 200ms;
}
.beats button:focus-visible { outline: 1px solid var(--red); }
.beats button b { font-family: var(--font-text); font-weight: 400; font-size: 10px; color: var(--mute); }
.beats li.on button { color: var(--ink); }
.beats li.on button b { color: var(--ground); background: var(--red); padding: 0 5px; }
.beats p { margin: 0; overflow: hidden; padding: 0 12px; font-size: 13px; color: var(--ink-2); }
.beats li.on p { padding-bottom: 12px; }
.stage-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hair); }
.stage-track i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.stage:not(.is-3d) { height: auto; }
.stage:not(.is-3d) .stage-pin { position: relative; top: 0; height: auto; padding: 72px 0; background: transparent; }
.stage:not(.is-3d) canvas { display: none; }
.stage:not(.is-3d) .stage-title, .stage:not(.is-3d) .beats { position: static; margin: 0 var(--gutter); }
.stage:not(.is-3d) .beats { margin-top: 20px; }
.stage:not(.is-3d) .beats li { grid-template-rows: auto 1fr; }
.stage:not(.is-3d) .beats li p { padding-bottom: 12px; }

.archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 120px 96px; }
.archive > .eyebrow { grid-column: 1 / -1; }
.arc { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.arc-img { display: block; aspect-ratio: 16 / 7; max-width: 100%; overflow: hidden; margin-bottom: 8px; background: var(--ground-2); }
.arc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.75); transition: filter 500ms, transform 700ms cubic-bezier(.2,.7,.3,1); }
.arc:hover .arc-img img { filter: none; transform: scale(1.03); }
.arc-k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.arc b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.arc-t { color: var(--ink-2); font-size: 14px; }
.arc-go { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

.foot { max-width: 1320px; margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.mail { text-transform: none; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; }
.mail:hover { color: var(--ink); }

html.is-arming .hero .rv:not(.in) { opacity: 0; transform: translateY(12px); }
.rv { transition: opacity 600ms cubic-bezier(.2,.7,.3,1), transform 600ms cubic-bezier(.2,.7,.3,1); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: var(--red-dim); } 100% { background: transparent; } }
@keyframes slide { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); grid-template-areas: "copy mark" "feed feed" "foot foot"; grid-template-rows: 1fr auto auto; }
  .feed { max-height: 180px; border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 12px; }
  .mission { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .readout { display: none; }
  .nav { gap: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "feed" "foot"; grid-template-rows: auto; padding-top: 42vh; padding-top: 42svh; min-height: 0; }
  .mark-slot { display: none; }
  html.no-field .hero { padding-top: 32px; grid-template-areas: "mark" "copy" "feed" "foot"; }
  html.no-field .hero .mark-slot { display: grid; min-height: 0; }
  html.no-field .hero-mark { width: 60%; }
  .hero-foot { flex-direction: column; }
  .mission { grid-template-columns: minmax(0, 1fr); padding-block: 46vh 72px; padding-block: 46svh 72px; min-height: 0; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); padding-top: 12px; }
  .stats div { padding-top: 12px; }
  .stage { height: 380vh; height: 380svh; }
  .beats { bottom: 24px; left: 16px; width: calc(100% - 32px); }
  .stage-title { left: 16px; top: 14px; }
  .archive { grid-template-columns: minmax(0, 1fr); padding-block: 72px; }
}
@media (max-width: 420px) {
  .wordmark { letter-spacing: .22em; }
  .nav a:nth-child(2) { display: none; }
}

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