/* =========================================================
   NorthStar Studioz — site styles
   The page is a VR environment: a dusk horizon you stand in,
   content on floating windows, a HUD frame and a Quest-style dock.
   Palette comes from the studio emblem: night sky, mountain
   ridge, dawn glow. Fonts are self-hosted; no external requests.
   ========================================================= */

@font-face { font-family: "Tektur"; src: url("assets/fonts/tektur.woff2") format("woff2"); font-weight: 400 900; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  /* Night & surfaces */
  --night: #07090f;
  --night-2: #0b0e17;
  --window: rgba(13, 16, 25, 0.95);
  --window-hi: rgba(23, 27, 41, 0.97);
  --edge: rgba(243, 239, 231, 0.15);
  --edge-strong: rgba(243, 239, 231, 0.28);

  /* Text */
  --bone: #f3efe7;
  --dim: #bcb6aa;
  --faint: #8f8a81;   /* 5.9:1 on --night (WCAG AA) */

  /* Light */
  --ember: #ff6b35;   /* primary: dawn on the horizon */
  --sun: #ffb547;     /* highlights, the north star */
  --sky: #7fb2ff;     /* cool HUD / passthrough accents */

  --font-display: "Tektur", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-brand: "Unbounded", "Arial Black", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --r-window: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* legacy names used by the intro gate */
  --ink: var(--night);
  --line: var(--edge);
  --muted: var(--dim);
  --text: var(--bone);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(255, 181, 71, 0.55); text-underline-offset: 3px; }
a:hover { color: var(--sun); }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(255, 107, 53, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; }
/* Components set display (e.g. .btn is inline-flex); keep the hidden attribute authoritative. */
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--bone); color: var(--night); font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.label {
  font: 600 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun);
}

/* =========================================================
   Environment
   ========================================================= */
.env { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--night); }
.env__layer {
  position: absolute; inset: -40px;
  transform: translate3d(calc(var(--lx, 0) * var(--depth) * -1px), calc(var(--ly, 0) * var(--depth) * -0.6px), 0);
}
.env__layer--sky { --depth: 4; }
.env__layer--stars { --depth: 8; }
.env__layer--sun { --depth: 10; }
.env__layer--far { --depth: 16; }
.env__layer--near { --depth: 26; }

.env__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #05060b 0%, #070a14 28%, #0c1222 46%, #18203a 56%, #2c2a44 61%,
    #5a3a40 64.5%, #3a2328 66.5%, #12121a 70%, #0a0b11 82%, #07080c 100%);
}
.env__stars {
  position: absolute; inset: 0 0 38% 0;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, #f3efe7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 58% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 12%, #d9e6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 40%, #ffe9c9 50%, transparent 51%);
  background-size: 240px 200px, 310px 260px, 420px 300px, 280px 220px, 360px 280px, 300px 340px;
  mask-image: linear-gradient(#000 40%, transparent);
  opacity: 0.85;
}
.env__polaris {
  position: absolute; left: 72%; top: 14%; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px #fff4dd, 0 0 34px 10px rgba(255, 181, 71, 0.35);
  animation: twinkle 5s ease-in-out infinite;
}
.env__polaris::before, .env__polaris::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.env__polaris::before { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.env__polaris::after { width: 1px; height: 120px; background: linear-gradient(180deg, transparent, #fff, transparent); }
@keyframes twinkle { 50% { opacity: 0.6; scale: 0.85; } }

.env__sun {
  position: absolute; left: 0; right: 0; top: 40%; height: 50%;
  background:
    radial-gradient(40% 26% at 50% 52%, rgba(255, 181, 71, 0.55), transparent 70%),
    radial-gradient(70% 40% at 50% 54%, rgba(255, 107, 53, 0.28), transparent 75%);
}
.env__ridge { position: absolute; left: 0; width: 100%; }
.env__ridge--far { bottom: 32.5%; height: 15vh; fill: #161b2e; }
.env__ridge--near { bottom: 31%; height: 11vh; fill: #0c0f19; }

/* Wireframe terrain (drawn by site.js). Replaces the flat near ridge once it
   has rendered; the near rows dissolve into the floor grid. */
.env__terrain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: 50% calc(40px + 69vh);
  mask-image: linear-gradient(to bottom, #000 calc(40px + 69vh), transparent calc(40px + 78vh));
}
.env--mesh .env__ridge--near { display: none; }
.env--mesh .env__ridge--far { fill: #1a2036; opacity: 0.7; }
.env__beacons { position: absolute; inset: 0; transform-origin: 50% calc(40px + 69vh); }
.env__beacons i {
  position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #ffe2b8; box-shadow: 0 0 6px 2px rgba(255, 181, 71, 0.75), 0 0 18px 6px rgba(255, 107, 53, 0.25);
  animation: beacon 5.2s ease-in-out infinite;
}
.env__beacons i::before {
  content: ""; position: absolute; left: 2px; bottom: 5px; width: 1px; height: 9vh;
  background: linear-gradient(to top, rgba(255, 196, 120, 0.55), transparent);
}
@keyframes beacon { 50% { opacity: 0.45; scale: 0.7; } }

.env__floor {
  position: absolute; left: 0; right: 0; top: 69%; bottom: 0;
  perspective: 320px; perspective-origin: 50% 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
}
.env__grid {
  position: absolute; left: -150%; right: -150%; top: 0; height: 600%;
  transform-origin: 50% 0; transform: rotateX(74deg);
  background-image:
    linear-gradient(rgba(127, 178, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 255, 0.16) 1px, transparent 1px);
  background-size: 90px 90px;
}
.env__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* As you scroll, the sun sets and the floor slides toward you. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .env__sun { animation: sunset linear both; animation-timeline: scroll(root); }
    .env__grid { animation: walk linear both; animation-timeline: scroll(root); }
    .env__stars { animation: drift-up linear both; animation-timeline: scroll(root); }
    .env__terrain, .env__beacons { animation: terrain-near linear both; animation-timeline: scroll(root); }
  }
}
@keyframes sunset { to { transform: translateY(14vh); opacity: 0.35; } }
@keyframes walk { from { transform: rotateX(74deg) translateY(-720px); } to { transform: rotateX(74deg) translateY(0); } }
@keyframes drift-up { to { transform: translateY(-6vh); } }
@keyframes terrain-near { to { transform: translateY(3vh) scale(1.06); } }

/* =========================================================
   HUD, top bar, dock, reticle
   ========================================================= */
.hud { position: fixed; inset: 12px; z-index: 30; pointer-events: none; }
/* Soft fades so scrolling content dissolves under the top bar and dock instead of colliding. */
body::before, body::after { content: ""; position: fixed; left: 0; right: 0; z-index: 35; pointer-events: none; }
body::before { top: 0; height: 96px; background: linear-gradient(var(--night) 15%, rgba(7, 9, 15, 0.7) 55%, transparent); }
body::after { bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(7, 9, 15, 0.75) 55%, var(--night)); }
.hud i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(243, 239, 231, 0.32); }
.hud i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 10px; }
.hud i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 10px; }
.hud i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 10px; }
.hud i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 10px; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px calc(var(--gutter) + 10px) 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 0.95rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
}
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.4), 0 0 18px rgba(255, 107, 53, 0.25); }
.brand b { font-weight: 400; color: var(--dim); }
.brand:hover { color: var(--bone); }
.status { display: flex; gap: 8px; }
.status__item {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.6); border: 1px solid var(--edge);
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}
.status__led, .tag__led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sky); flex: none;
  box-shadow: 0 0 8px var(--sky); animation: led 2.6s ease-in-out infinite;
}
@keyframes led { 50% { opacity: 0.45; } }
.status__clock { color: var(--bone); font-variant-numeric: tabular-nums; }

.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
  translate: -50% 0;
  padding: 6px; border-radius: 22px;
  background: rgba(12, 14, 22, 0.78);
  border: 1px solid var(--edge-strong);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.dock ul { display: flex; gap: 2px; }
.dock a {
  position: relative; display: grid; justify-items: center; gap: 3px;
  min-width: 62px; padding: 9px 8px 7px; border-radius: 16px;
  color: var(--dim); text-decoration: none;
  font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s, transform 0.25s var(--spring);
}
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover { color: var(--bone); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.dock a[aria-current] { color: var(--night); background: var(--bone); }
.dock a[aria-current]::after {
  content: ""; position: absolute; bottom: -9px; width: 4px; height: 4px; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 8px var(--sun);
}

.reticle {
  position: fixed; left: 0; top: 0; z-index: 110; width: 30px; height: 30px; margin: -15px 0 0 -15px; /* above the intro gate */
  border-radius: 50%; border: 1.5px solid rgba(243, 239, 231, 0.55);
  pointer-events: none; opacity: 0;
  transition: width 0.25s var(--spring), height 0.25s var(--spring), margin 0.25s var(--spring), border-color 0.2s, opacity 0.3s, background-color 0.2s;
}
.reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; translate: -50% -50%; border-radius: 50%; background: var(--bone); }
.reticle.is-on { opacity: 1; }
.reticle.is-hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--sun); background: rgba(255, 181, 71, 0.08); }
.reticle.is-pinch { width: 18px; height: 18px; margin: -9px 0 0 -9px; }

/* =========================================================
   Buttons & windows
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ff8550, var(--ember));
  color: #1a0d06; border: 0; text-decoration: none;
  font: 700 1rem/1 var(--font-body); letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -3px 0 rgba(120, 30, 0, 0.35) inset, 0 14px 30px -12px rgba(255, 107, 53, 0.8);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out), filter 0.2s;
}
.btn:hover { color: #1a0d06; transform: translateY(-3px) scale(1.02); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 12px -6px rgba(255, 107, 53, 0.8); }
.btn--ghost { background: rgba(243, 239, 231, 0.06); color: var(--bone); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.btn--ghost:hover { color: var(--bone); background: rgba(243, 239, 231, 0.12); }
.btn--big { min-height: 64px; padding: 0 34px; font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.25rem); overflow-wrap: anywhere; }

/* A floating window, Quest style: rounded, solid-ish glass, a grab handle beneath. */
.window {
  position: relative;
  background: linear-gradient(180deg, var(--window-hi), var(--window));
  border: 1px solid var(--edge);
  border-radius: var(--r-window);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 48px -24px rgba(0, 0, 0, 0.85);
}
.window::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; width: 56px; height: 5px; translate: -50% 0;
  border-radius: 999px; background: rgba(243, 239, 231, 0.22);
  transition: background-color 0.25s, width 0.3s var(--spring);
}
.window:hover::after { background: rgba(243, 239, 231, 0.5); width: 72px; }

/* Panels arranged on a gentle curve, like a wrap-around VR display. */
.arc { display: grid; gap: clamp(14px, 1.6vw, 24px); perspective: 1600px; }
.arc__slot { transition: transform 0.6s var(--ease-out); }

/* =========================================================
   Layout
   ========================================================= */
main { position: relative; z-index: 1; padding-bottom: 120px; }
.zone, .hero { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; perspective: 1400px; }

/* Hero */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; align-items: center;
  padding: 110px 0 40px; text-align: center;
}
.hero__copy { display: grid; justify-items: center; gap: 22px; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.55); border: 1px solid var(--edge);
  font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.hero__title {
  font: 800 clamp(3rem, 1rem + 9vw, 8.6rem)/0.9 var(--font-display);
  letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
  /* Light-saber edge in the site's dawn colours: a white-hot core, a thin ember
     blade line and a bloom that matches the horizon glow and the main button. */
  color: #fff6ec;
  -webkit-text-stroke: 1.5px var(--ember);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px #fff,
    0 0 4px rgba(255, 170, 90, 0.95),
    0 0 10px rgba(255, 107, 53, 0.8),
    0 0 24px rgba(255, 90, 40, 0.45);
}
@keyframes saber-ignite {
  from { -webkit-text-stroke-color: rgba(255, 107, 53, 0); text-shadow: 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent; color: var(--bone); }
}
@keyframes saber-hum {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
  91% { opacity: 1; }
  92% { opacity: 0.86; }
  93% { opacity: 1; }
}
.hero__lede { max-width: 36ch; color: #d6d0c4; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }

.arc--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 6vh, 64px); text-align: left; }
.window--chip { display: grid; gap: 8px; padding: 20px 22px; }
.window--chip strong { display: flex; align-items: center; gap: 10px; font: 600 1.05rem/1.25 var(--font-body); }
.window--chip .label { color: var(--dim); }
.hero__hint {
  display: grid; justify-items: center; gap: 8px; margin-top: 44px;
  font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.hero__hint span { width: 1px; height: 34px; background: linear-gradient(transparent, var(--bone)); animation: hint 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }


/* Zones */
.zone { padding: clamp(90px, 14vh, 150px) 0 0; }
.zone__head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 6vh, 64px); }
.zone__title {
  font: 700 clamp(2rem, 1rem + 3.6vw, 3.8rem)/0.98 var(--font-display);
  font-stretch: 80%; letter-spacing: 0; text-transform: uppercase; text-wrap: balance;
}

/* How it plays */
.prompt { display: grid; align-content: start; gap: 14px; height: 100%; padding: 28px 24px 24px; transition: transform 0.45s var(--spring), border-color 0.3s, box-shadow 0.4s; }
.prompt:hover { transform: translateZ(40px) translateY(-6px); border-color: rgba(255, 181, 71, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 90px -40px rgba(255, 107, 53, 0.45); }
.prompt__glyph {
  width: 56px; height: 56px; padding: 12px; border-radius: 18px;
  background: rgba(255, 181, 71, 0.1); border: 1px solid rgba(255, 181, 71, 0.25);
  fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.prompt h3 { font: 800 1.6rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0; }
.prompt p { color: var(--dim); font-size: 0.98rem; }
.prompt__step { margin-top: auto; padding-top: 8px; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* Who it's for — save slots */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.slot { display: grid; gap: 12px; align-content: start; padding: 26px 26px 24px; overflow: hidden; }
.slot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--r-window) var(--r-window) 0 0;
  background: linear-gradient(90deg, var(--ember), var(--sun) 60%, transparent);
  opacity: 0.85;
}
.slot__id { font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun); }
.slot h3 { font: 700 1.5rem/1.05 var(--font-display); font-stretch: 85%; text-transform: uppercase; }
.slot p { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--edge-strong);
  font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone);
}
@media (max-width: 860px) { .slots { grid-template-columns: 1fr; } }

/* Under the hood */
.spec { display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.spec__sheet { padding: 12px 28px; }
.spec__sheet div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--edge-strong); }
.spec__sheet div:last-child { border-bottom: 0; }
.spec__sheet dt { font: 500 0.72rem/1.6 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.spec__sheet dd { font-weight: 600; }
.spec__rules { display: grid; align-content: start; gap: 18px; padding: 28px; background: rgba(255, 107, 53, 0.06); border-left: 1px solid var(--edge); }
.spec__rules ol { display: grid; gap: 14px; counter-reset: rule; }
.spec__rules li { counter-increment: rule; display: grid; grid-template-columns: 2.2rem 1fr; gap: 8px; color: #d6d0c4; }
.spec__rules li::before { content: counter(rule, decimal-leading-zero); font: 700 1rem/1.5 var(--font-display); color: var(--ember); }
@media (max-width: 860px) {
  .spec { grid-template-columns: 1fr; }
  .spec__rules { border-left: 0; border-top: 1px solid var(--edge); }
  .spec__sheet div { grid-template-columns: 1fr; gap: 2px; }
}

/* Studio */
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; padding: clamp(24px, 3vw, 36px); max-width: 860px; margin-inline: auto; }
.founder img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.4), 0 0 40px rgba(255, 107, 53, 0.25); }
.founder__copy { display: grid; gap: 16px; }
.founder__copy > p:first-child { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: #d6d0c4; }
.founder__copy strong { color: var(--bone); }
.founder__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--dim); }
.founder__meta a { color: var(--sun); }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; } .founder__meta { justify-content: center; } }

/* Contact */
.zone--contact { display: grid; justify-items: center; gap: 18px; text-align: center; padding-bottom: 40px; }
.contact__title { font: 800 clamp(3rem, 1rem + 8vw, 7.5rem)/0.9 var(--font-display); text-transform: uppercase; text-shadow: 0 0 24px rgba(255, 181, 71, 0.16); }
.contact__lede { color: var(--dim); font-size: 1.15rem; margin-bottom: 10px; }

/* Footer */
.foot { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 32px 0 130px; border-top: 1px solid var(--edge); display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.foot__links a { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.foot__links a:hover { color: var(--bone); }
.foot__legal { max-width: 72ch; color: var(--faint); font-size: 0.82rem; }

/* =========================================================
   Arrival motion: windows fly in from depth as they enter view
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .window, .zone__head, .zone--contact > * {
      animation: approach linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
  .io .window, .io .zone__head, .io .zone--contact > * {
    opacity: 0; translate: 0 40px -220px;
    transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  }
  .io .is-in { opacity: 1; translate: none; }
  .hero__copy > * { animation: rise-in 1s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  /* The headline rises in, ignites like a blade, then hums with a rare flicker. */
  .hero__copy > .hero__title { animation: rise-in 1s var(--ease-out) 0.08s both, saber-ignite 1.1s var(--ease-out) 0.35s both, saber-hum 7s ease-in-out 1.6s infinite; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .arc--hero .window { animation: approach-in 1.2s var(--ease-out) 0.3s both; }
  .arc--hero .arc__slot:nth-child(2) .window { animation-delay: 0.4s; }
  .arc--hero .arc__slot:nth-child(3) .window { animation-delay: 0.5s; }
}
/* Uses the individual translate property so hover transforms still compose. */
@keyframes approach {
  from { opacity: 0; translate: 0 60px -260px; }
  to { opacity: 1; translate: none; } /* flat at rest: a leftover 3D transform blurs text */
}
@keyframes approach-in { from { opacity: 0; translate: 0 30px -300px; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

/* Page transitions between home and legal pages */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* Small screens */
@media (max-width: 640px) {
  .hud { inset: 8px; }
  .hud i { width: 16px; height: 16px; }
  .topbar { padding-top: 14px; }
  .status__item:first-child { display: none; }
  .brand span { font-size: 0.82rem; }
  .arc--hero { grid-template-columns: 1fr; gap: 10px; }
  .window--chip { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 18px; }
  .window--chip strong { font-size: 0.95rem; text-align: right; }
  .arc--hero .window::after { display: none; }
  .hero__hint { display: none; }
  .dock { left: 8px; right: 8px; translate: none; border-radius: 20px; }
  .dock ul { justify-content: space-between; }
  .dock a { min-width: 0; flex: 1; padding: 8px 2px 6px; font-size: 0.58rem; letter-spacing: 0.04em; }
  .dock li { flex: 1; }
  .dock svg { width: 20px; height: 20px; }
}

/* =========================================================
   Intro gate
   ========================================================= */
.gate { display: none; }
.gate-on body { overflow: hidden; }
.gate-on .gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); place-items: center;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(47, 123, 255, 0.35), transparent 60%),
    radial-gradient(60% 50% at 50% 40%, #0b1430, transparent 70%),
    var(--ink);
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.gate__sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 14%, #d6e4ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 72%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 84%, #cfe0ff 50%, transparent 51%);
  background-size: 190px 190px, 260px 260px, 340px 340px, 230px 230px, 300px 300px;
  animation: drift 60s linear infinite;
}
@keyframes drift { to { background-position: 190px 380px, -260px 520px, 340px 680px, -230px 460px, 300px 600px; } }
.gate__star {
  position: absolute; left: 50%; top: 9%; width: 4px; height: 4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px 4px #cfe0ff, 0 0 40px 12px rgba(90, 162, 255, 0.6);
  animation: star-in 1.4s var(--ease-out) 0.2s both;
}
.gate__star::before, .gate__star::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translate(-50%, -50%);
}
.gate__star::before { width: 140px; height: 1.5px; }
.gate__star::after { width: 1.5px; height: 180px; background: linear-gradient(180deg, transparent, #fff, transparent); }
@keyframes star-in { from { opacity: 0; transform: scale(0.2); } }

/* Data columns, drawn once by site.js. */
.gate__data {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  animation: data-in 2s ease 0.3s both, data-drift 40s ease-in-out 2.3s infinite alternate;
}
@keyframes data-in { from { opacity: 0; } }
@keyframes data-drift { to { transform: scale(1.05) translate(-1%, -1%); } }

/* HUD callouts either side of the headset. */
.gate__hud {
  grid-area: 1 / 1; align-self: center; justify-self: center; position: relative; z-index: 2;
  width: min(92vw, 1000px); height: 140px; pointer-events: none;
  animation: rise 1s var(--ease-out) 1.2s both;
}
.gate__callout { position: absolute; top: 0; width: 220px; height: 140px; overflow: visible; }
.gate__callout--left { left: 0; }
.gate__callout--right { right: 0; }
.gate__callout path, .gate__callout circle { fill: none; stroke: rgba(200, 214, 255, 0.45); stroke-width: 1; }
.gate__callout .gate__node { fill: rgba(200, 214, 255, 0.8); stroke: none; }
.gate__callout text { fill: rgba(200, 214, 255, 0.6); font: 500 9px var(--font-mono); letter-spacing: 0.08em; }
.gate__rings { transform-box: fill-box; transform-origin: center; animation: rings 18s linear infinite; }
.gate__callout--right .gate__rings { animation-direction: reverse; }
@keyframes rings { to { rotate: 360deg; } }
@media (max-width: 899px) { .gate__hud { display: none; } }

/* Dotted light trail from the button up toward the wordmark. */
.gate__trail {
  position: absolute; left: calc(50% + 122px); bottom: 58px; width: 360px; height: 200px;
  overflow: visible; pointer-events: none;
}
.gate__trail path {
  fill: none; stroke: #b98cff; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0.5 6;
  opacity: 0.55; animation: trail 3s linear infinite;
}
.gate__trail path + path { stroke: #7fd8ff; opacity: 0.35; animation-duration: 4.2s; }
@keyframes trail { to { stroke-dashoffset: -26; } }
@media (max-width: 899px) { .gate__trail { display: none; } }

.gate__canvas {
  grid-area: 1 / 1; align-self: stretch; justify-self: stretch; width: 100%; height: 100%; min-height: 0;
  position: relative; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
}
.gate--3d .gate__canvas { opacity: 1; }

/* The headset still: the whole show on phones, and a placeholder on desktop
   that crossfades into the live 3D headset once its shaders are compiled. */
.gate__still {
  grid-area: 1 / 1; align-self: center; justify-self: center; position: relative; z-index: 2;
  width: min(62vw, 420px); height: auto; pointer-events: none;
  filter: drop-shadow(0 0 26px rgba(59, 227, 255, 0.35)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  animation: still-in 1.3s var(--ease-out) 0.25s both, still-float 5s ease-in-out 1.6s infinite;
  transition: opacity 0.6s ease;
}
.gate--3d .gate__still { opacity: 0; }
@keyframes still-in { from { opacity: 0; transform: perspective(800px) rotateY(-70deg) scale(0.6); } }
@keyframes still-float { 50% { transform: translateY(-8px) rotate(-1deg); } }
@media (max-width: 640px) { .gate__still { width: min(76vw, 340px); } }

.gate__title {
  position: relative; z-index: 1; grid-area: 1 / 1; align-self: center;
  display: grid; justify-items: center; gap: clamp(90px, 22vh, 210px);
  margin: 0; font-family: var(--font-brand); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 10.8vw, 10.5rem); line-height: 0.9; letter-spacing: -0.04em;
  user-select: none;
}
.gate__word { display: block; will-change: transform, opacity, filter; }
.gate__word--north {
  background: linear-gradient(90deg, #4cf2ff 0%, #b9f9ff 34%, #ffffff 56%, #eadfff 80%, #d4b6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(76, 242, 255, 0.5)) drop-shadow(0 0 42px rgba(150, 120, 255, 0.35));
  animation: from-left 1.1s var(--ease-out) 0.15s both;
  justify-self: start; margin-left: -0.08em;
}
.gate__word--studio {
  background: linear-gradient(90deg, #5aa8ff 0%, #8a86ff 40%, #b066ff 72%, #d24dff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(150, 110, 255, 0.55)) drop-shadow(0 0 42px rgba(210, 77, 255, 0.35));
  animation: from-right 1.1s var(--ease-out) 0.3s both;
  justify-self: end; margin-right: -0.06em;
}
@keyframes from-left { from { transform: translateX(-70vw); opacity: 0; filter: blur(14px); } }
@keyframes from-right { from { transform: translateX(70vw); opacity: 0; filter: blur(14px); } }

.gate__foot {
  position: relative; z-index: 3; grid-row: 2; display: grid; justify-items: center; gap: 16px;
  padding: 0 16px max(36px, env(safe-area-inset-bottom));
  animation: rise 0.9s var(--ease-out) 0.9s both;
}
.gate__tag { color: #dfe3ee; font-size: clamp(0.85rem, 1.45vw, 1.35rem); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.gate__enter {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; cursor: pointer;
  font: 700 1.05rem/1 var(--font-body); letter-spacing: 0.02em; color: #f3f6ff;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(58, 64, 92, 0.92), rgba(24, 26, 42, 0.92)) padding-box,
    linear-gradient(90deg, #4cf2ff, #9a7bff 50%, #ffd27a) border-box;
  border: 1.5px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 36px -12px rgba(120, 100, 255, 0.7);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.gate__enter::before {
  content: ""; position: absolute; inset: -16px -26px; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(38% 70% at 10% 50%, rgba(59, 227, 255, 0.6), transparent 70%),
    radial-gradient(38% 70% at 90% 50%, rgba(180, 90, 255, 0.6), transparent 70%);
  filter: blur(14px);
}
.gate__enter::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid rgba(160, 150, 255, 0.5);
  animation: halo 2.2s var(--ease-out) infinite; pointer-events: none;
}
.gate__enter:hover { transform: translateY(-2px) scale(1.02); }
.gate__enter svg { transition: transform 0.3s var(--ease-out); }
.gate__enter:hover svg { transform: translateX(4px); }
@keyframes halo { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.gate__hint { display: none; margin-top: -4px; color: #8f9abb; font-size: 0.75rem; letter-spacing: 0.04em; }
.gate-lite .gate__hint { display: block; }
.gate__skip {
  position: absolute; z-index: 4; top: max(16px, env(safe-area-inset-top)); right: 16px;
  min-height: 40px; padding: 0 12px; cursor: pointer;
  background: none; border: 0; color: rgba(223, 227, 238, 0.75);
  font: 500 0.95rem/1 var(--font-body); text-decoration: underline; text-underline-offset: 4px;
}
.gate__skip:hover { color: var(--text); }
.gate__flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0, #fff4dd 22%, #ffb547 45%, #ff6b35 64%, #07090f 100%);
}

/* Exit choreography: words leave toward the opposite side they arrived from. */
.gate--exit .gate__word--north { animation: to-right 0.8s cubic-bezier(0.45, 0, 0.75, 0.3) both; }
.gate--exit .gate__word--studio { animation: to-left 0.8s cubic-bezier(0.45, 0, 0.75, 0.3) 0.04s both; }
.gate--exit .gate__hud, .gate--exit .gate__trail { opacity: 0; transition: opacity 0.3s; }
.gate--exit .gate__foot, .gate--exit .gate__skip { opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.gate--exit .gate__still { animation: still-out 1.1s var(--ease-in) both; }
@keyframes to-right { to { transform: translateX(120vw); opacity: 0; filter: blur(16px); } }
@keyframes to-left { to { transform: translateX(-120vw); opacity: 0; filter: blur(16px); } }
/* No 3D: the still turns to face you and you fly through the visor. */
@keyframes still-out { 45% { transform: perspective(800px) rotateY(360deg) scale(1.05); } to { transform: perspective(800px) rotateY(360deg) scale(9); opacity: 0; } }
.gate--flash .gate__flash { animation: flash 0.7s ease-out both; }
@keyframes flash { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: scale(2.2); } }
.gate--done { opacity: 0; visibility: hidden; }

@media (max-width: 640px) {
  .gate__title { gap: clamp(150px, 32vh, 260px); }
  .gate__word--north, .gate__word--studio { justify-self: center; margin: 0; }
}

/* =========================================================
   Legal & utility pages
   ========================================================= */
.pagelinks { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10, 12, 20, 0.6); border: 1px solid var(--edge); }
.pagelinks a { padding: 8px 14px; border-radius: 999px; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.pagelinks a:hover { color: var(--bone); }
.pagelinks a[aria-current] { background: var(--bone); color: var(--night); }

.legal { width: min(100% - 2 * var(--gutter), 900px); margin: 0 auto; padding: 120px 0 80px; }
.legal__window { padding: clamp(24px, 4vw, 48px); }
.legal__head { display: grid; gap: 14px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px dashed var(--edge-strong); }
.legal__head h1 { font: 800 clamp(2.2rem, 1rem + 4vw, 3.6rem)/0.95 var(--font-display); text-transform: uppercase; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.legal__meta span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--edge-strong); font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.legal__body { display: grid; gap: 16px; max-width: 70ch; }
.legal__body h2 { margin-top: 18px; font: 700 1.35rem/1.15 var(--font-display); font-stretch: 85%; text-transform: uppercase; color: var(--bone); }
.legal__body p, .legal__body li { color: #d6d0c4; }
.legal__body ul { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.legal__body li::marker { color: var(--ember); }
.legal__body strong { color: var(--bone); }
.callout { padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(255, 181, 71, 0.3); background: rgba(255, 107, 53, 0.08); }
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 24px; }
.notfound h1 { font: 800 clamp(2.6rem, 1rem + 7vw, 6rem)/0.92 var(--font-display); text-transform: uppercase; }
.notfound p { color: var(--dim); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reticle { display: none; }
}

/* Hold the hero entrance until the intro gate has gone. */
.gate-on:not(.gate-leaving) .hero__copy > *, .gate-on:not(.gate-leaving) .arc--hero .window { animation-play-state: paused; }
.foot--page { padding-bottom: 48px; }
.env--static .env__sun { top: 55%; }


/* =========================================================
   Curved monitor: "How it plays"
   A side-scrolling screen. Panes snap so whole panes are always in view at
   rest (never cut off). site.js reshapes every pane on scroll to the outline
   of a curved display seen head-on: tall and curved at the screen's edges,
   short and flat in the middle. The curve is a 2D silhouette (clip-path),
   so text stays flat and sharp.
   ========================================================= */
.monitor { position: relative; --d: 0px; }
.monitor__screen {
  --per: 3; --gap: 4px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 26px;
  cursor: grab;
}
.monitor__screen::-webkit-scrollbar { display: none; }
.monitor__screen:focus-visible { outline-offset: 6px; }
.monitor__screen.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.monitor__track { display: flex; gap: var(--gap); }
.monitor__pane { display: flex; flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
.monitor .prompt { width: 100%; }
.monitor .prompt::after { display: none; } /* no grab handle per pane; the screen has a stand */
@media (max-width: 1099px) { .monitor__screen { --per: 2; } }
@media (max-width: 640px) { .monitor__screen { --per: 1; } }

/* Curved shape, applied once site.js has measured the panes. */
.monitor.is-curved .prompt {
  border: 0; box-shadow: none; border-radius: 0;
  background: rgba(243, 239, 231, 0.16); /* shows as the 1px bezel */
  clip-path: var(--curve);
  padding-top: calc(var(--d) + 28px); padding-bottom: calc(var(--d) + 24px);
  transition: background-color 0.3s;
}
.monitor.is-curved .prompt::before {
  content: ""; position: absolute; inset: 0 1px; z-index: 0; clip-path: var(--curve-in);
  background: linear-gradient(180deg, var(--window-hi), var(--window)), var(--night);
}
.monitor.is-curved .prompt > * { position: relative; z-index: 1; }
.monitor.is-curved .prompt:hover { transform: none; background: rgba(255, 181, 71, 0.6); }
.monitor.is-curved .prompt:hover .prompt__glyph { box-shadow: 0 0 24px rgba(255, 181, 71, 0.35); }

/* Stand: a neck under the screen and a base that holds the controls. */
.monitor__controls {
  position: relative; display: flex; align-items: center; gap: 12px;
  width: max-content; margin: 30px auto 0; padding: 6px;
  border-radius: 999px; background: rgba(12, 14, 22, 0.8); border: 1px solid var(--edge-strong);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9);
}
.monitor__controls::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 44px; height: 30px; translate: -50% 0;
  background: linear-gradient(180deg, rgba(243, 239, 231, 0.05), rgba(243, 239, 231, 0.16));
  clip-path: polygon(30% 0, 70% 0, 82% 100%, 18% 100%);
}
.monitor__btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(243, 239, 231, 0.06); border: 1px solid var(--edge); color: var(--bone);
  transition: background-color 0.2s, opacity 0.2s, transform 0.25s var(--spring);
}
.monitor__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.monitor__btn:hover:not(:disabled) { background: rgba(255, 181, 71, 0.18); transform: scale(1.06); }
.monitor__btn:disabled { opacity: 0.3; cursor: default; }
.monitor__progress { position: relative; width: 120px; height: 4px; border-radius: 999px; background: rgba(243, 239, 231, 0.12); overflow: hidden; }
.monitor__progress span { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--sun)); }

/* The screen flies in as one piece rather than pane by pane. */
.monitor .window { animation: none; }
.io .monitor .window { opacity: 1; translate: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .monitor { animation: approach linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}
.gate--3d.gate--exit .gate__still { animation: none; }

/* ---------- Analytics choice (only shown when GA4 is configured) ---------- */
.consent {
  position: fixed; left: 16px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 84px); z-index: 45;
  width: min(360px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 18px;
  background: rgba(12, 14, 22, 0.94); border: 1px solid var(--edge-strong);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.85);
  display: grid; gap: 12px; font-size: 0.92rem; color: #d6d0c4;
  animation: rise-in 0.5s var(--ease-out) both;
}
.consent a { color: var(--sun); }
.consent__actions { display: flex; gap: 8px; }
.consent__btn { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }

/* =========================================================
   Ambient life in the environment: building blocks and a rocket.
   Both sit behind all content, are decorative only, stay low-contrast,
   and are switched off for prefers-reduced-motion.
   ========================================================= */
.env__layer--rocket { --depth: 12; }
.env__layer--blocks { --depth: 30; }
.env__blocks { position: absolute; inset: 0; width: 100%; height: 100%; }

.env__rocket { position: absolute; left: var(--x, 21%); top: 66%; width: 16px; height: 32px; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 181, 71, 0.45)); }
.env__rocket svg { width: 100%; height: 100%; overflow: visible; }
.env__rocket-body { fill: rgba(243, 239, 231, 0.85); fill-rule: evenodd; }
.env__rocket-flame { fill: var(--sun); transform-box: fill-box; transform-origin: 50% 0; }
.env__rocket::after {
  content: ""; position: absolute; left: 50%; top: 92%; width: 2px; height: 70px; translate: -50% 0;
  border-radius: 2px; background: linear-gradient(rgba(255, 181, 71, 0.55), rgba(255, 107, 53, 0.15) 40%, transparent);
}
/* Each flight is started by ambient.js with a random spot, drift and height,
   at random intervals, so no two launches look alike. */
@media (prefers-reduced-motion: no-preference) {
  .env__rocket.is-flying { animation: rocket-fly var(--dur, 5.6s) both; }
  .env__rocket.is-flying .env__rocket-flame { animation: flame 0.12s steps(2) infinite alternate; }
}
@keyframes rocket-fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(calc(var(--tilt, 24deg) * 0.25)) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  8% { opacity: 0.9; }
  88% { opacity: 0.8; transform: translate(calc(var(--dx, 9vw) * 0.9), calc(var(--dy, -46vh) * 0.92)) rotate(var(--tilt, 24deg)) scale(0.5); }
  100% { opacity: 0; transform: translate(var(--dx, 9vw), var(--dy, -46vh)) rotate(var(--tilt, 24deg)) scale(0.45); }
}
@keyframes flame { from { transform: scaleY(0.75); } to { transform: scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { .env__rocket, .env__blocks { display: none; } }

/* =========================================================
   About, press kit and FAQ
   ========================================================= */
.legal__lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.legal__body a { color: var(--sun); }
.facts { display: grid; border-top: 1px dashed var(--edge-strong); }
.facts div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--edge-strong); }
.facts dt { font: 500 0.72rem/1.7 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.facts dd { font-weight: 600; color: var(--bone); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.legal__body .asset { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 12px; border: 1px solid var(--edge-strong); background: rgba(243, 239, 231, 0.03); color: var(--bone); text-decoration: none; }
.legal__body .asset:hover { border-color: var(--sun); }
.asset img { width: 100%; height: 120px; object-fit: contain; }
.asset span { font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); max-width: 1100px; margin-inline: auto; }
.faq__item { display: grid; gap: 10px; align-content: start; padding: 24px 26px; }
.faq__item h3 { font: 700 1.2rem/1.15 var(--font-display); font-stretch: 85%; text-transform: uppercase; }
.faq__item p { color: var(--dim); }
.faq__item a { color: var(--sun); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
