/* Cogni. One stylesheet, no inline styles, so it runs under style-src 'self'. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/inter-tight-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-tight-500.woff2") format("woff2");
}

:root {
  --bg: #000;
  --fg: #EDEDEE;
  --body: rgba(237, 237, 238, 0.82);
  --label: rgba(237, 237, 238, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #FF6200;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: 16px;
  --nav-h: 56px;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 32px; --nav-h: 64px; } }
@media (min-width: 1100px) { :root { --gut: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 300 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 1100px) { body { font-size: 20px; } }

[hidden] { display: none !important; }
::selection { background: var(--fg); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
canvas, svg { display: block; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px;
  background: var(--fg); color: #000; font-weight: 500; font-size: 14px; text-decoration: none;
  border-radius: 3px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}

.label {
  margin: 0 0 20px;
  font: 500 12px/1.4 var(--font);
  letter-spacing: 0.01em;
  color: var(--label);
}
h1, h2, h3 { margin: 0; font-weight: 300; color: var(--fg); }
h2 {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
h2.label { font: 500 12px/1.4 var(--font); letter-spacing: 0.01em; color: var(--label); max-width: none; }
.rw { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 3px;
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--solid { background: var(--fg); color: #000; }
.btn--solid:hover { background: #fff; }
.btn--ghost { border-color: rgba(237, 237, 238, 0.42); color: var(--fg); background: rgba(0, 0, 0, 0.3); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--accent { background: var(--accent); color: #000; }
.btn--accent:hover { background: #ff7a26; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { cursor: default; }
.link {
  background: none; border: 0; padding: 10px 0; color: var(--body);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(237, 237, 238, 0.4);
}
.link:hover { color: var(--fg); text-decoration-color: currentColor; }

/* ---------- The shared WebGL canvas ---------- */
.gl {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.9s var(--ease);
}
.gl.is-on { opacity: 1; }
.still { display: none; }
main { position: relative; z-index: 1; }
.solid { position: relative; z-index: 1; background: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; color: var(--fg); text-decoration: none; padding: 8px 0; }
.brand__mark { height: 26px; width: auto; fill: currentColor; overflow: visible; }
.mark-c { fill: var(--fg); }
.mark-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.brand__word {
  display: block; overflow: hidden; width: 65px; margin-left: 7px;
  transition: width 0.7s var(--ease) 0.12s, margin-left 0.7s var(--ease) 0.12s;
}
.brand__word svg { height: 26px; width: 65px; fill: var(--fg); }
.ltr {
  transform-box: fill-box; transform-origin: left center;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.ltr:nth-child(1) { transition-delay: 0.16s; }
.ltr:nth-child(2) { transition-delay: 0.12s; }
.ltr:nth-child(3) { transition-delay: 0.08s; }
.ltr:nth-child(4) { transition-delay: 0.04s; }
.nav.is-compact .brand__word { width: 0; margin-left: 0; }
.nav.is-compact .ltr { transform: scaleX(0); opacity: 0; }
.nav.is-compact .brand__mark .mark-dot { animation: dot-pulse 1s var(--ease) 0.55s 1 both; }
@keyframes dot-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.6); } 100% { transform: scale(1); } }

.nav__links { display: flex; gap: 14px; font-size: 13px; font-weight: 500; }
.nav__links a {
  padding: 13px 0; color: rgba(237, 237, 238, 0.72); text-decoration: none; white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover, .nav__links .nav__join { color: var(--fg); }
@media (min-width: 420px) { .nav__links { gap: 24px; font-size: 14px; } }
@media (min-width: 720px) { .nav__links { gap: 36px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 26%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 45%);
}
.hero__content { position: relative; padding-top: 120px; padding-bottom: clamp(36px, 8vh, 88px); }
.hero__label { min-height: 17px; margin-bottom: 14px; }
.hero__continue { margin-left: 8px; white-space: nowrap; padding: 12px 0; color: var(--fg); text-underline-offset: 3px; }
h1 {
  margin: 0 0 0.1em -0.04em;
  font-size: clamp(76px, 14vw, 216px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.hero__sub { margin: 0 0 28px; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -0.01em; color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__fallback {
  display: none; position: absolute; left: 50%; top: 40%;
  width: min(62vw, 44vh); transform: translate(-50%, -50%);
}
.hero__fallback--on, .no-webgl .hero__fallback { display: block; }
@media (min-width: 900px) {
  .hero__fallback { left: 71%; top: 47%; width: min(40vw, 56vh); }
}

/* ---------- Sticky scenes ---------- */
.pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}

/* ---------- Statement ---------- */
.statement { height: 220vh; }
.statement .pin { display: flex; align-items: center; }
.statement .pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 28%, rgba(0, 0, 0, 0.62) 72%, rgba(0, 0, 0, 0) 100%);
}
.statement__text { position: relative; text-shadow: 0 0 22px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.statement__text {
  margin: 0;
  font-size: clamp(30px, 4.7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--fg);
}
.s--keep { display: block; margin-top: 0.7em; }
.w { display: inline-block; transition: opacity 0.3s linear; }
.period {
  display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.05em;
  border-radius: 50%; background: var(--accent);
}
@media (min-width: 720px) { .statement { height: 260vh; } .statement__text { max-width: 1320px; } }

/* ---------- The Memory Scale ---------- */
.mem { height: 300vh; }
.mem .pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 38%),
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 42%);
}
.mem__in {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--nav-h) + clamp(16px, 5vh, 56px));
  padding-bottom: clamp(20px, 6vh, 64px);
}
.mem__head h2 { max-width: 13ch; }
.levels { list-style: none; margin: 0; padding: 0; max-width: 540px; border-top: 1px solid var(--line); }
.level {
  display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--fg); opacity: 0.35; transition: opacity 0.7s var(--ease);
}
.level.is-active { opacity: 1; }
.level__n { font: 500 12px/1.4 var(--font); }
.level__t { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.25; }
@media (min-width: 900px) {
  .mem { height: 400vh; }
  .mem .pin::before {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 36%, rgba(0, 0, 0, 0) 60%);
  }
  .level { grid-template-columns: 96px 1fr; padding: 18px 0; }
}

/* ---------- How it works ---------- */
.how, .why, .demo { padding-block: clamp(96px, 16vh, 200px); }
.how { min-height: 110vh; }
.cards {
  list-style: none; margin: clamp(40px, 7vh, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.card {
  display: flex; flex-direction: column; overflow: hidden;
  min-height: clamp(430px, 60vh, 600px); padding-bottom: 28px;
  background: #09090A; border: 1px solid var(--line); border-radius: 6px;
}
.card__fx { width: 100%; height: clamp(240px, 36vh, 360px); margin-bottom: auto; }
.pill {
  align-self: flex-start; margin: 20px 20px 12px; padding: 5px 12px;
  font: 500 12px/1.4 var(--font); color: var(--fg);
  border: 1px solid rgba(237, 237, 238, 0.32); border-radius: 999px;
}
.card p { margin: 0 20px; font-size: 17px; line-height: 1.4; }
@media (max-width: 959px) {
  .cards {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; scroll-snap-stop: always; }
}

/* ---------- Scale ---------- */
.ctx { height: 220vh; }
.ctx .pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 34%), linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 36%);
}
.ctx__in {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--nav-h) + clamp(16px, 5vh, 56px));
  padding-bottom: clamp(24px, 6vh, 64px);
}
.ctx__caps { max-width: 440px; }
.ctx__caps .label { margin-bottom: 16px; }
.cap { padding: 14px 0; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.7s var(--ease); }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap.is-active { opacity: 1; }
.cap p { margin: 0; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.25; color: var(--fg); }
.ctx__big { margin: 0; align-self: flex-end; text-align: right; }
.big {
  display: block; font-size: clamp(40px, 8vw, 128px); line-height: 1; letter-spacing: -0.045em;
  color: var(--fg); opacity: 0.22; transition: opacity 0.7s var(--ease);
}
.big + .big { margin-top: 0.14em; padding-top: 0.14em; border-top: 1px solid var(--line); }
.big.is-active { opacity: 1; }
@media (min-width: 900px) { .ctx { height: 300vh; } }

/* ---------- Without vs. with ---------- */
.cmp { display: block; width: 100%; margin-top: clamp(40px, 7vh, 80px); }
.cmp thead, .cmp tbody { display: block; }
.cmp tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(12px, 3vw, 48px); }
.cmp th, .cmp td { display: block; padding: 0; text-align: left; font-weight: 300; }
.cmp thead th { padding-bottom: 14px; font: 500 12px/1.4 var(--font); color: var(--label); }
.cmp .cmp__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cmp td {
  padding: 18px 0 22px; border-top: 1px solid var(--line);
  font-size: clamp(17px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.015em;
}
.cmp td::before {
  content: attr(data-n); display: block; margin-bottom: 8px;
  font: 500 12px/1.4 var(--font); letter-spacing: 0.01em; color: var(--label);
}
.cmp__a { color: var(--body); }
.cmp__b { color: var(--fg); }
.cmp tbody tr:last-child td { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .cmp td { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 24px 0 28px; }
  .cmp td::before { margin: 0; }
  .cmp thead th:not(.cmp__n) { padding-left: 56px; }
}
.js .cmp tbody td { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .cmp tr.is-in td { opacity: 1; transform: none; }
.js .cmp tr.is-in .cmp__b { transition-delay: 0.5s; }
.js .cmp tr.is-in .cmp__a { animation: solved 0.9s var(--ease) 1.1s forwards; }
@keyframes solved { to { opacity: 0.42; } }

/* ---------- Demo ---------- */
.tag { display: inline-block; padding: 4px 10px; border: 1px solid rgba(237, 237, 238, 0.32); border-radius: 999px; color: var(--fg); }
.demo__note { margin: 20px 0 0; max-width: 46ch; }
.demo__stage { position: relative; margin-top: clamp(32px, 6vh, 64px); }
.panes { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .panes { grid-template-columns: 1fr 1fr; gap: 16px; } }
.pane {
  display: flex; flex-direction: column; min-height: 250px;
  background: #070708; border: 1px solid var(--line); border-radius: 6px;
}
@media (min-width: 720px) { .pane { min-height: 340px; } }
.pane__title {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font: 500 12px/1.4 var(--font); color: rgba(237, 237, 238, 0.6);
}
.pane__led { width: 6px; height: 6px; border-radius: 50%; background: rgba(237, 237, 238, 0.4); }
.pane--cogni .pane__led { background: var(--accent); }
.pane__log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; font: 400 14px/1.55 var(--mono); }
.msg { margin: 0; overflow-wrap: anywhere; animation: msg-in 0.7s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg--user { color: var(--fg); }
.msg--user::before { content: "> "; color: var(--label); }
.msg--agent { color: var(--body); }
.msg--sys { font-size: 12px; color: rgba(237, 237, 238, 0.6); }
.msg--time { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: rgba(237, 237, 238, 0.6); }
.recalled {
  position: relative; display: inline; padding: 0; background: none; border: 0;
  border-bottom: 1px dashed currentColor; color: var(--accent); cursor: help;
  text-shadow: 0 0 16px rgba(255, 98, 0, 0.6);
  animation: recall 1.4s var(--ease) both;
}
@keyframes recall { from { color: var(--fg); text-shadow: 0 0 0 rgba(255, 98, 0, 0); } }
.tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 3;
  padding: 6px 9px; border-radius: 3px; background: var(--fg); color: #000;
  font: 500 12px/1.2 var(--font); white-space: nowrap; text-shadow: none;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.recalled:hover .tip, .recalled:focus .tip { opacity: 1; transform: none; }
.skip {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; overflow: hidden;
  background: rgba(0, 0, 0, 0.9); border-radius: 6px;
}
.skip__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.skip__date {
  position: relative; margin: 0; font-size: clamp(30px, 6vw, 72px); letter-spacing: -0.035em;
  color: var(--fg); font-variant-numeric: tabular-nums;
}
.demo__controls { margin-top: 28px; }
.demo__step { margin: 0 0 16px; font-size: 16px; color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px; padding: 0 16px; background: transparent; color: var(--fg);
  border: 1px solid rgba(237, 237, 238, 0.32); border-radius: 999px; font-size: 15px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--fg); background: rgba(237, 237, 238, 0.06); }
.fact { margin-top: 24px; max-width: 520px; }
.fact label { display: block; margin-bottom: 6px; font: 500 12px/1.4 var(--font); color: rgba(237, 237, 238, 0.6); }
.fact__row { display: flex; gap: 10px; }
.fact input {
  flex: 1; min-width: 0; height: 44px; padding: 0; background: transparent;
  border: 0; border-bottom: 1px solid rgba(237, 237, 238, 0.4); border-radius: 0;
  font: 300 17px/1 var(--font); color: var(--fg);
}
.fact input::placeholder, .wl input::placeholder { color: rgba(237, 237, 238, 0.42); }
.hint { margin: 8px 0 0; font-size: 12px; font-weight: 500; color: var(--label); }
.demo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- Closing and waitlist ---------- */
.close {
  position: relative; display: flex; align-items: flex-end;
  min-height: calc(100vh - var(--foot-h, 0px)); min-height: calc(100svh - var(--foot-h, 0px));
}
.close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.7) 34%, rgba(0, 0, 0, 0) 62%);
}
.close__in { position: relative; padding-top: 40vh; padding-bottom: clamp(40px, 9vh, 104px); text-align: center; }
.close h2 { margin-inline: auto; max-width: 17ch; font-size: clamp(34px, 5.2vw, 76px); }
.wl { max-width: 460px; margin: clamp(28px, 5vh, 48px) auto 0; }
.wl .label { display: block; margin-bottom: 12px; transition: opacity 0.4s var(--ease); }
.wl__field {
  display: flex; width: 100%; height: 56px; margin-inline: auto; padding: 4px; overflow: hidden;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(237, 237, 238, 0.42); border-radius: 4px;
  transition: width 0.8s var(--ease), height 0.8s var(--ease), padding 0.8s var(--ease),
    border-radius 0.8s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.wl input {
  flex: 1 1 0; min-width: 0; padding: 0 14px; background: transparent; border: 0;
  font: 300 17px/1 var(--font); color: var(--fg); transition: opacity 0.25s var(--ease);
}
.wl input:focus-visible { outline-offset: -2px; }
.wl .btn { flex: none; height: 46px; transition: opacity 0.25s var(--ease), background-color 0.3s var(--ease); }
.spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #000;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wl[data-state="sending"] .spinner { display: block; }
.wl[data-state="done"] .label { opacity: 0; }
.wl[data-state="done"] .wl__field {
  width: 18px; height: 18px; padding: 0; border-radius: 50%;
  background: var(--accent); border-color: var(--accent);
  animation: ring 1.2s var(--ease) 0.7s 1 both;
}
.wl[data-state="done"] .wl__field > * { opacity: 0; pointer-events: none; }
.wl.is-instant .wl__field { transition: none; animation: none; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255, 98, 0, 0.6); } to { box-shadow: 0 0 0 26px rgba(255, 98, 0, 0); } }
.wl__msg { min-height: 1.5em; margin: 16px 0 0; font-size: 16px; color: var(--body); outline: none; }
.wl__msg strong { display: block; font-weight: 300; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--fg); }
.wl__msg.is-error { color: var(--fg); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); font-size: 14px; }
.foot__in {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
.foot__mark { width: 28px; height: 28px; }
.foot p { margin: 0; }
.foot__promise, .foot__links, .foot__status { grid-column: 1 / -1; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.foot__status:empty { display: none; }
@media (min-width: 900px) {
  .foot__in { grid-template-columns: auto auto 1fr auto; gap: 8px 24px; }
  .foot__promise, .foot__links { grid-column: auto; }
}

/* ---------- Memory panel ---------- */
.panel {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px;
  background: #0A0A0B; color: var(--body); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
  font-size: 16px;
}
.panel::backdrop { background: rgba(0, 0, 0, 0.72); }
.panel__h { font-size: 26px; letter-spacing: -0.02em; max-width: none; }
.panel__lead { margin: 8px 0 24px; }
.panel__list { margin: 0; transition: opacity 0.9s var(--ease), filter 0.9s var(--ease); }
.panel__list dt { font: 500 12px/1.4 var(--font); color: rgba(237, 237, 238, 0.6); }
.panel__list dd { margin: 2px 0 14px; color: var(--fg); overflow-wrap: anywhere; }
.panel__raw { margin: 8px 0 0; }
.panel__raw .label { display: block; margin-bottom: 6px; color: rgba(237, 237, 238, 0.6); }
.panel__raw code {
  display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  font: 400 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease);
}
.is-dust { opacity: 0; filter: blur(4px); }
.panel__fine { margin: 16px 0 0; font-size: 13px; line-height: 1.45; color: rgba(237, 237, 238, 0.62); }
.panel__actions { display: flex; justify-content: flex-end; gap: 10px; margin: 24px 0 0; }
.dust { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 2147483647; pointer-events: none; }

.noscript { position: relative; z-index: 2; margin: 0; padding: 16px var(--gut); background: #000; font-size: 14px; }

/* ---------- 404 (public/404.html) ---------- */
.plain {
  min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 16px;
  padding: var(--gut);
}
.plain h1 { margin: 0; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
.plain p { margin: 0; }
.big-btn {
  display: inline-flex; align-items: center; height: 48px; margin-top: 12px; padding: 0 22px;
  background: var(--fg); color: #000; border-radius: 3px; font: 500 15px/1 var(--font); text-decoration: none;
}

/* ---------- Reduced motion: stills and stacked sections ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
  .spinner { animation: none; border-top-color: rgba(0, 0, 0, 0.25); }
  .gl { display: none; }
  .still { display: block; width: 100%; }
  .no-webgl .still { display: none; }
  .hero .still, .close .still { position: absolute; inset: 0; height: 100%; }
  .statement, .mem, .ctx { height: auto; }
  .pin { position: static; height: auto; overflow: visible; }
  .pin::before { display: none; }
  .statement .pin { padding-block: 20vh; }
  .mem__in, .ctx__in { display: block; height: auto; padding-block: clamp(96px, 16vh, 200px); }
  .levels, .ctx__caps { max-width: none; }
  .levels { margin-top: 48px; }
  .level, .cap, .big { opacity: 1; }
  .level { padding: 24px 0; }
  .level .still, .cap .still { grid-column: 1 / -1; aspect-ratio: 16 / 9; margin-bottom: 16px; }
  .ctx__big { margin-top: 48px; text-align: left; }
}

/* Narrower than the 360px minimum: keep the nav on one line. */
@media (max-width: 359px) { .nav__links a:first-child { display: none; } }
