/* Ardent Works — projected light.
   A holo-emitter at the foot of the screen; everything above it is light:
   cyan glow, scanlines, a faint pink fringe, the odd flicker. The ember at
   the emitter's core is the one warm thing. Products run the same hologram
   in amber. */

:root {
  --void: #070C18;
  --void-2: #0C1426;
  --holo: #6CF0FF;
  --holo-rgb: 108 240 255;
  --holo-bright: #C8FAFF;
  --ink: #DDF7FF;
  --ink-dim: #93B8C6;
  --ember: #FF7A3D;
  --ember-hot: #FFB25B;
  --fringe: rgb(255 80 170 / 0.4);
  --error: #FF8F8F;

  --display: "Chakra Petch", "Arial", sans-serif;
  --prose: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --line: 1px solid rgb(var(--holo-rgb) / 0.32);
  --glow: 0 0 24px -6px rgb(var(--holo-rgb) / 0.55);
  --scan: repeating-linear-gradient(180deg, rgb(var(--holo-rgb) / 0.055) 0 1px, transparent 1px 3px);
  --focus: var(--holo-bright);

  color-scheme: dark;
  scrollbar-color: rgb(var(--holo-rgb) / 0.6) var(--void);
}

/* Products: the same treatment in amber, on a whole page or a single section. */
.amber {
  --holo: #FFC46B;
  --holo-rgb: 255 196 107;
  --holo-bright: #FFE7BD;
  --ink: #FFF3E0;
  --ink-dim: #CDB79A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 110%, #0E1A33 0%, var(--void) 60%) fixed, var(--void);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--prose);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--holo);
}
::selection { background: var(--holo); color: var(--void); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 1px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -100px; z-index: 100; padding: 0.7rem 1rem; background: var(--holo); color: var(--void); font: 700 0.9rem/1 var(--display); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- The sky behind everything ---------- */

.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky svg { position: absolute; left: 50%; top: 115%; translate: -50% -50%; will-change: transform; }
.meteors { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.meteors i {
  position: absolute; height: 1.5px; border-radius: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, rgb(var(--holo-rgb) / 0.45) 65%, #F0FFFF);
  box-shadow: 0 0 6px rgb(var(--holo-rgb) / 0.5);
}
.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

/* ---------- Type ---------- */

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Intrepid is projected light: a soft glow with a faint colour split. */
.holo-theme .title { text-shadow: -1px 0 var(--fringe), 1px 0 rgb(var(--holo-rgb) / 0.35), 0 0 22px rgb(var(--holo-rgb) / 0.35); }
.label { font: 600 0.72rem/1.3 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.lede { font-size: clamp(1.18rem, 1.5vw, 1.35rem); line-height: 1.55; }
.dim { color: var(--ink-dim); }
.prose p { margin: 0 0 1em; max-width: 60ch; }

/* ---------- Masthead ---------- */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, padding 0.4s var(--ease-out), border-color 0.4s, opacity 0.5s, transform 0.5s var(--ease-out);
}
.masthead.is-scrolled { background: rgb(7 12 24 / 0.82); backdrop-filter: blur(10px); padding-block: 11px; border-color: rgb(var(--holo-rgb) / 0.2); }
.masthead.on-title { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.masthead.on-title:focus-within { opacity: 1; pointer-events: auto; transform: none; }
.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font: 700 0.98rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.site-footer .lockup--sm { width: 150px; }
.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.nav > li > a:not(.btn) { position: relative; padding: 0.6rem 0; font: 600 0.78rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.nav > li > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: var(--holo); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.nav > li > a:not(.btn):hover::after, .nav > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 2.5rem; padding: 0.55rem 0.95rem; font-size: 0.74rem; }

/* Games: a nav item that opens a small panel of the games under it. The panel
   is projected in: it opens out of a bright line top-down with a scan line
   running ahead of it (0.26s), and on close collapses back into a line (0.16s). */
.has-menu { position: relative; }
.has-menu.is-open::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 16px; }   /* bridge to the panel */
.nav-menu-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 600 0.78rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-menu-btn svg { width: 11px; height: 11px; transition: transform 0.3s var(--ease-out); }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: var(--holo); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.nav-menu-btn:hover::after, .nav-menu-btn.is-current::after, .nav-menu-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; z-index: 2;
  min-width: 15rem; padding: 0.45rem;
  background: rgb(7 12 24 / 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--holo-rgb) / 0.35);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.9), 0 0 26px -10px rgb(var(--holo-rgb) / 0.6);
}
.nav-menu[hidden] { display: none; }
/* A bright top edge, and a scan line that runs down the panel as it opens. */
.nav-menu::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--holo-bright), transparent); }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none; background: var(--holo-bright); box-shadow: 0 0 12px 2px rgb(var(--holo-rgb) / 0.8); }
.nav-menu.is-open { animation: menu-in 0.26s var(--ease-out) both; }
.nav-menu.is-open::before { animation: menu-scan 0.26s var(--ease-out) both; }
.nav-menu.is-closing { animation: menu-out 0.16s ease-in both; pointer-events: none; }
@keyframes menu-in {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-6px); filter: brightness(2.2); }
  60% { opacity: 1; clip-path: inset(0 0 0 0); filter: brightness(1.3); }
  72% { opacity: 0.7; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: none; }
}
@keyframes menu-scan { 0% { top: 0; opacity: 1; } 75% { opacity: 0.9; } 100% { top: 100%; opacity: 0; } }
@keyframes menu-out {
  0% { opacity: 1; clip-path: inset(0 0 0 0); filter: none; }
  100% { opacity: 0; clip-path: inset(48% 0 52% 0); filter: brightness(2.2); }
}
.nav-menu a { position: relative; display: grid; gap: 0.3rem; padding: 0.75rem 0.9rem; text-decoration: none; transition: background-color 0.25s; }
.nav-menu a::before { content: ""; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--holo); box-shadow: 0 0 8px var(--holo); transform: scaleY(0); transition: transform 0.3s var(--ease-out); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgb(var(--holo-rgb) / 0.08); }
.nav-menu a:hover::before, .nav-menu a:focus-visible::before, .nav-menu a[aria-current="page"]::before { transform: scaleY(1); }
/* Apps use the products' amber. */
.nav-menu--amber { --holo: #FFC46B; --holo-rgb: 255 196 107; --holo-bright: #FFE7BD; }
.nav-menu a.nm-all { margin-top: 0.3rem; padding-block: 0.7rem 0.55rem; border-top: 1px solid rgb(var(--holo-rgb) / 0.2); font: 600 0.72rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--holo); }
.nm-name { font: 700 0.95rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--holo-bright); }
.nm-sub { font: 400 0.85rem/1.2 var(--prose); color: var(--ink-dim); }

/* Wishlist, the same everywhere: glowing, and now and then it glitches
   (site.js adds .glitch): it jolts, and pink and white copies of the word tear across it. */
.nav .btn--wish { position: relative; box-shadow: var(--glow); }
.btn--wish::before, .btn--wish::after {
  content: attr(data-text); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; padding-left: 0.16em;
}
.btn--wish.glitch { animation: wish-jolt 0.42s steps(1); }
.btn--wish.glitch::before { color: #FF50AA; animation: wish-a 0.42s steps(1); }
.btn--wish.glitch::after { color: #FFFFFF; animation: wish-b 0.42s steps(1); }
@keyframes wish-jolt {
  0%, 100% { transform: none; filter: none; }
  14% { transform: translateX(-2px) skewX(-8deg); filter: brightness(1.35); }
  30% { transform: translateX(2px); filter: none; }
  48% { transform: none; }
  64% { transform: translateX(-1px) skewX(5deg); filter: brightness(1.2); }
  80% { transform: none; filter: none; }
}
@keyframes wish-a {
  0% { opacity: 1; clip-path: inset(10% 0 55% 0); transform: translateX(-5px); }
  30% { opacity: 1; clip-path: inset(55% 0 12% 0); transform: translateX(4px); }
  50% { opacity: 0; }
  66% { opacity: 1; clip-path: inset(30% 0 40% 0); transform: translateX(-3px); }
  84%, 100% { opacity: 0; }
}
@keyframes wish-b {
  0%, 14% { opacity: 0; }
  20% { opacity: 0.9; clip-path: inset(40% 0 30% 0); transform: translateX(5px); }
  40% { opacity: 0; }
  72% { opacity: 0.8; clip-path: inset(68% 0 6% 0); transform: translateX(-4px); }
  90%, 100% { opacity: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.85rem 1.35rem;
  border: 1px solid var(--holo); border-radius: 1px;
  background: var(--holo); color: var(--void);
  font: 700 0.84rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.btn:hover { background: var(--holo-bright); transform: translateY(-1px); }
.holo-theme .btn { box-shadow: var(--glow); }
.holo-theme .btn:hover { box-shadow: 0 0 34px -4px rgb(var(--holo-rgb) / 0.75); }
.btn:active { transform: none; }
.btn[disabled] { cursor: progress; opacity: 0.7; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
/* A soft light that follows the pointer across cards and rows (site.js sets --mx/--my). */
.spot { background-image: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), rgb(var(--holo-rgb) / 0.09), transparent 70%); }
.holo-theme .panel.spot { background-image: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), rgb(var(--holo-rgb) / 0.1), transparent 70%), var(--scan), linear-gradient(180deg, rgb(var(--holo-rgb) / 0.075), rgb(var(--holo-rgb) / 0.02)); }
.btn--line { background: transparent; color: var(--ink); border-color: rgb(var(--holo-rgb) / 0.4); }
.btn--line:hover { background: rgb(var(--holo-rgb) / 0.08); color: var(--holo-bright); }
.holo-theme .btn--line { background: rgb(var(--holo-rgb) / 0.06); color: var(--holo); border-color: var(--holo); box-shadow: inset 0 0 18px -8px rgb(var(--holo-rgb) / 0.6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.todo-note { flex-basis: 100%; margin: 0.3rem 0 0; font: 500 0.82rem/1.4 var(--display); letter-spacing: 0.04em; color: var(--ember-hot); }

/* ---------- Holo panel: translucent light with corner brackets ---------- */

/* Outside Intrepid a panel is quiet: a faint fill and a hairline. */
.panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: rgb(var(--holo-rgb) / 0.025);
  border: 1px solid rgb(var(--holo-rgb) / 0.13);
  border-radius: 2px;
}
/* Inside Intrepid it's projected light, with corner brackets. */
.holo-theme .panel {
  background: var(--scan), linear-gradient(180deg, rgb(var(--holo-rgb) / 0.075), rgb(var(--holo-rgb) / 0.02));
  border: var(--line);
  border-radius: 0;
  box-shadow: 0 0 40px -18px rgb(var(--holo-rgb) / 0.5), inset 0 0 60px -30px rgb(var(--holo-rgb) / 0.5);
  backdrop-filter: blur(3px);
}
.holo-theme .panel::before, .holo-theme .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--holo); filter: drop-shadow(0 0 4px var(--holo));
}
.holo-theme .panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.holo-theme .panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.panel h2 { margin-bottom: 1.2rem; }

/* Catalogue data: the same three facts for every game and product. */
.data { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; border-top: var(--line); border-bottom: var(--line); }
.data div { padding: 0.75rem 1.4rem 0.75rem 0; margin-right: 1.4rem; border-right: 1px solid rgb(var(--holo-rgb) / 0.2); }
.data div:last-child { border: 0; margin: 0; padding-right: 0; }
.data dt { font: 600 0.66rem/1.2 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.data dd { margin: 0.3rem 0 0; font: 500 1rem/1.3 var(--prose); }

/* ---------- Title screen and the flight to Valdris (home) ---------- */

.sequence { position: relative; height: 100vh; height: 100svh; }
.holo-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.5) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.5) 2px 3px);
}
.title-screen {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vh, 3.4rem);
  padding: 0 var(--gutter) 20vh; text-align: center;
}
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
/* The Ardent logo with WORKS under it in Michroma, spanning exactly from the
   E's left edge to the T's right edge, its baseline level with the tip of the
   D's triangle. Positions are measured from the logo file (1523 x 746: E starts
   at 815, T ends at 1516, triangle tip at 739) and Michroma's metrics (cap
   0.75em), in container units so the lockup scales as one piece. */
.lockup { position: relative; display: block; container-type: inline-size; }
.lockup img { display: block; width: 100%; height: auto; }
.lockup::after { content: ""; display: block; height: 0.6cqw; }
.lockup-works {
  position: absolute; top: 41.22cqw; right: -0.59cqw;
  font: 400 7.728cqw/1 "Michroma", var(--display); letter-spacing: 0.08em;
  text-transform: uppercase; color: #FFFFFF; white-space: nowrap;
}
.lockup--sm { width: 96px; }

/* The title screen is quiet: the logo, a plain button, the ember below. */
.logo .lockup { width: min(78vw, 620px); }
.press-start {
  min-height: 3rem; padding: 0.85rem calc(2rem - 0.3em) 0.85rem 2rem;
  border: 0; border-radius: 2px;
  background: none; color: var(--ink);
  font: 600 0.85rem/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase;
  cursor: pointer;
  animation: press 2.8s ease-in-out infinite;
  transition: color 0.3s, text-shadow 0.3s;
}
.press-start:hover, .press-start:focus-visible { animation-play-state: paused; opacity: 1; color: var(--holo-bright); text-shadow: 0 0 14px rgb(var(--holo-rgb) / 0.7); }
@keyframes press { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* Pressed before the music has loaded: a small hologram ring (two orbits round a
   spark, like the loading screen) stands in for Press Start until it's ready. */
.press-start.is-waiting { display: none; }
.press-wait {
  display: inline-flex; align-items: center; gap: 0.9rem; min-height: 3rem; margin: 0;
  font: 600 0.85rem/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--holo);
  text-shadow: 0 0 12px rgb(var(--holo-rgb) / 0.6); animation: loader-in 0.3s ease-out both;
}
.press-wait[hidden] { display: none; }
.press-wait-ring { position: relative; width: 26px; height: 26px; flex: none; }
.press-wait-ring i { position: absolute; inset: 0; border: 1px solid rgb(var(--holo-rgb) / 0.8); border-radius: 50%; box-shadow: 0 0 8px -1px rgb(var(--holo-rgb) / 0.6); animation: pip-turn 1.2s linear infinite; }
.press-wait-ring i:nth-child(1) { scale: 1 0.34; }
.press-wait-ring i:nth-child(2) { scale: 0.34 1; animation-direction: reverse; animation-duration: 1.7s; }
.press-wait-ring b { position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #FFF6E0, var(--ember-hot) 45%, transparent 72%); }

/* The home logo is a projection, in one sequence with the beam below it:
   on load the beam rises from the ember (0.1–1s), then the logo is built
   from the bottom up behind a scan line (0.8–2s). Scrolling away runs it
   backwards (site.js): the logo is erased top-down into the beam, and the
   beam sinks back into the ember. It also glitches now and then. */
.holo-stack { position: relative; display: block; }
.holo-stack .lockup {
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.8) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.8) 2px 3px);
  animation: holo-in 1.2s linear 0.8s backwards, scan-down 0.8s linear infinite;
}
/* Scanlines creep slowly: one line's height per loop, so it never jumps. */
@keyframes scan-down { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 3px; mask-position: 0 3px; } }
@keyframes scan-up { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 -4px; mask-position: 0 -4px; } }
.holo-line {
  position: absolute; left: -4%; right: -4%; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--holo) 20%, var(--holo-bright) 50%, var(--holo) 80%, transparent);
  box-shadow: 0 0 16px 2px rgb(var(--holo-rgb) / 0.55);
  opacity: 0; pointer-events: none;
  animation: holo-line 1.2s linear 0.8s;
}
/* The reveal edge and the scan line share one timing (linear, 0–60%),
   so the line always sits exactly on the edge it is drawing. */
@keyframes holo-in {
  0% { clip-path: inset(100% -6% -6% -6%); filter: brightness(2.4) blur(0.6px); }
  60% { clip-path: inset(0% -6% -6% -6%); filter: brightness(1.6) blur(0.3px); opacity: 1; }
  66% { opacity: 0.45; }
  72% { opacity: 1; }
  78% { opacity: 0.7; }
  86%, 100% { clip-path: inset(-6% -6% -6% -6%); filter: brightness(1) blur(0); opacity: 1; }
}
@keyframes holo-line {
  0% { top: 100%; opacity: 0; }
  6% { opacity: 1; }
  60% { top: 0%; opacity: 1; }
  72%, 100% { top: 0%; opacity: 0; }
}
/* Chromatic ghosts, cloned in by site.js, only seen during a glitch. */
.holo-stack .ghost { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; pointer-events: none; mix-blend-mode: screen; animation: none; -webkit-mask-image: none; mask-image: none; }
.holo-stack .ghost--c { filter: url(#holo-tint-c); }
.holo-stack .ghost--m { filter: url(#holo-tint-m); }
.holo-stack.glitch .lockup:not(.ghost) { animation: holo-glitch 0.34s steps(1) both; }
.holo-stack.glitch .ghost--c { animation: ghost-c 0.34s steps(1) both; }
.holo-stack.glitch .ghost--m { animation: ghost-m 0.34s steps(1) both; }
@keyframes holo-glitch {
  0% { transform: translateX(0); clip-path: inset(-6%); opacity: 1; }
  12% { transform: translateX(-3px); clip-path: inset(18% -6% 52% -6%); }
  24% { transform: translateX(4px); clip-path: inset(-6%); opacity: 0.55; }
  36% { transform: translateX(0); clip-path: inset(60% -6% 8% -6%); opacity: 1; }
  48% { transform: translateX(-2px); clip-path: inset(-6%); }
  62% { transform: translateX(1px); opacity: 0.8; }
  80%, 100% { transform: none; clip-path: inset(-6%); opacity: 1; }
}
@keyframes ghost-c {
  0% { opacity: 0; }
  12% { opacity: 0.5; transform: translateX(-7px); clip-path: inset(10% 0 55% 0); }
  36% { opacity: 0.4; transform: translateX(4px); clip-path: inset(55% 0 10% 0); }
  62% { opacity: 0.25; transform: translateX(-2px); clip-path: inset(0); }
  80%, 100% { opacity: 0; transform: none; }
}
@keyframes ghost-m {
  0% { opacity: 0; }
  12% { opacity: 0.35; transform: translateX(7px); clip-path: inset(30% 0 52% 0); }
  36% { opacity: 0.3; transform: translateX(-5px); clip-path: inset(8% 0 72% 0); }
  62% { opacity: 0.2; transform: translateX(2px); clip-path: inset(40% 0 40% 0); }
  80%, 100% { opacity: 0; transform: none; }
}
/* A faint projection beam rising from the ember to the logo.
   The container fades on scroll (site.js); the beam itself hums. */
/* Centred with margins, not translate, so site.js can scale it from the bottom. */
.projection { position: absolute; left: 0; right: 0; bottom: 7vh; z-index: 2; margin: 0 auto; width: min(88vw, 720px); height: 50vh; height: 50svh; transform-origin: 50% 100%; pointer-events: none; }
.projection::before {
  content: ""; position: absolute; inset: 0; transform-origin: 50% 100%;
  /* A soft band of light travels up the beam over the base gradient. */
  background:
    linear-gradient(0deg, transparent, rgb(var(--holo-rgb) / 0.09) 50%, transparent) 0 140% / 100% 30% no-repeat,
    linear-gradient(0deg, rgb(var(--holo-rgb) / 0.16), rgb(var(--holo-rgb) / 0.04) 55%, rgb(var(--holo-rgb) / 0.07) 88%, transparent);
  clip-path: polygon(48.6% 100%, 51.4% 100%, 100% 0, 0 0);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.55) 2px 4px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.55) 2px 4px);
  filter: blur(1px);
  animation: beam-in 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.1s backwards, beam-hum 7s ease-in-out 2.2s infinite,
    scan-up 0.6s linear infinite, beam-sweep 5.5s cubic-bezier(0.4, 0, 0.6, 1) 2.2s infinite;
}
@keyframes beam-sweep { from { background-position: 0 140%, 0 0; } to { background-position: 0 -40%, 0 0; } }
.projection::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: -4%; height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--holo-rgb) / 0.1), transparent 72%);
  animation: beam-glow 0.6s ease-out 0.75s backwards;
}
@keyframes beam-in { from { opacity: 0.5; transform: scaleY(0); } }
@keyframes beam-glow { from { opacity: 0; } }
@keyframes beam-hum { 0%, 100% { opacity: 1; } 46% { opacity: 0.8; } 48% { opacity: 0.55; } 50% { opacity: 0.85; } }

/* Press Start waits for the logo to finish appearing. */
.title-hero .press-start {
  animation: press-in 0.9s ease-out 2.1s backwards, press 2.8s ease-in-out 3s infinite;
}
@keyframes press-in { from { opacity: 0; } to { opacity: 1; } }

/* The emitter: a line of light at the foot of the screen, ember at its core,
   projecting a faint cone up toward whatever is being shown. */
.emitter { position: absolute; left: 50%; bottom: 7vh; z-index: 2; width: min(70vw, 760px); height: 70vh; translate: -50% 0; pointer-events: none; }
.emitter .cone {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(var(--holo-rgb) / 0.16), rgb(var(--holo-rgb) / 0.02) 70%, transparent);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
  filter: blur(2px);
  animation: cone 5s ease-in-out infinite;
}
@keyframes cone { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.emitter .bar {
  position: absolute; left: 30%; right: 30%; bottom: -2px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--holo) 25%, var(--holo-bright) 50%, var(--holo) 75%, transparent);
  box-shadow: 0 0 18px 2px rgb(var(--holo-rgb) / 0.6);
}
.emitter .core {
  position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, #FFF3E0 0 22%, var(--ember-hot) 40%, var(--ember) 62%, transparent 72%);
  box-shadow: 0 0 26px 10px rgb(255 122 61 / 0.45);
  animation: ember 1.8s ease-in-out infinite;
}
@keyframes ember { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.15); } 70% { transform: scale(0.94); } }
/* Minimal title screen: the ember alone, no projection beam.
   Intrepid's title screen is a hologram, so its beam stays on. */
.emitter .cone, .emitter .bar { display: none; }
.holo-theme .emitter .cone, .holo-theme .emitter .bar { display: block; }
.title-hero { position: relative; height: 100vh; height: 100svh; }
/* Music on/off: fixed in the bottom-right corner of the Intrepid page, always on screen. */
.sound-toggle {
  position: fixed; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem; height: 44px; padding: 0 1rem 0 0.8rem; cursor: pointer;
  border: 1px solid rgb(var(--holo-rgb) / 0.35); border-radius: 999px; color: var(--ink);
  font: 600 0.7rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  background: rgb(7 12 24 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.sound-toggle svg { width: 20px; height: 20px; flex: none; }
/* Past the title screen it shrinks to just the icon, so it doesn't cover the
   ends of lines; the label slides back out on hover or focus. */
.sound-label { overflow: hidden; white-space: nowrap; max-width: 8rem; transition: max-width 0.35s var(--ease-out), opacity 0.25s; }
.sound-toggle.is-compact { padding-inline: 0.7rem; gap: 0; }
.sound-toggle.is-compact .sound-label { max-width: 0; opacity: 0; }
.sound-toggle.is-compact:hover, .sound-toggle.is-compact:focus-visible { padding-inline: 0.8rem 1rem; gap: 0.5rem; }
.sound-toggle.is-compact:hover .sound-label, .sound-toggle.is-compact:focus-visible .sound-label { max-width: 8rem; opacity: 1; }
.sound-toggle:hover, .sound-toggle:focus-visible { border-color: var(--holo); color: var(--holo-bright); box-shadow: 0 0 16px -4px rgb(var(--holo-rgb) / 0.7); }
.sound-toggle[aria-pressed="true"] .i-off, .sound-toggle[aria-pressed="false"] .i-on { display: none; }
.sound-toggle[aria-pressed="false"] { color: var(--ink-dim); }
/* Music is on but the browser is holding it until a click: a slow glow invites one. */
.sound-toggle.is-waiting { color: var(--holo-bright); border-color: var(--holo); animation: sound-wait 2.4s ease-in-out infinite; }
@keyframes sound-wait { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--holo-rgb) / 0); } 50% { box-shadow: 0 0 22px -2px rgb(var(--holo-rgb) / 0.7); } }

/* The Intrepid logo (title and subtitle in one image, glow included).
   Only the INTREPID letters, the top 78% of the image, are a projection:
   creeping scanlines, and now and then a glitch (site.js adds .glitch) where
   pink and white ghosts of torn slices flash beside them. The subtitle stays clean. */
.game-logo { position: relative; margin: 0 auto; width: min(77vw, 749px); }

/* Loading screen (Intrepid): two rings turning around the ember, while the title
   screen gets ready. The rings only fade in after a moment, so a quick load is
   just a short fade. If the script never runs, it clears itself after 8 seconds. */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  background: radial-gradient(60% 50% at 50% 55%, #0E1A33, var(--void) 70%), var(--void);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
  animation: loader-gone 0.6s 8s forwards;
}
.is-ready .loader { opacity: 0; visibility: hidden; }
@keyframes loader-gone { to { opacity: 0; visibility: hidden; } }
.loader-ring, .loader-text { opacity: 0; animation: loader-in 0.5s 0.3s forwards; }
@keyframes loader-in { to { opacity: 1; } }
.loader-ring { position: relative; width: 78px; height: 78px; }
.loader-ring i { position: absolute; inset: 0; border: 1px solid rgb(var(--holo-rgb) / 0.75); border-radius: 50%; box-shadow: 0 0 14px -2px rgb(var(--holo-rgb) / 0.6); animation: pip-turn 1.6s linear infinite; }
.loader-ring i:nth-child(1) { scale: 1 0.34; }
.loader-ring i:nth-child(2) { scale: 0.34 1; animation-direction: reverse; animation-duration: 2.3s; }
.loader-ring b { position: absolute; inset: 37%; border-radius: 50%; background: radial-gradient(circle, #FFF6E0, var(--ember-hot) 40%, var(--ember) 65%, transparent 72%); box-shadow: 0 0 26px 6px rgb(255 122 61 / 0.45); animation: ember 1.8s ease-in-out infinite; }
.loader-text { margin: 0; padding-left: 0.32em; font: 600 0.72rem/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--holo); text-shadow: 0 0 12px rgb(var(--holo-rgb) / 0.6); }
.loader-text { animation: loader-in 0.5s 0.3s forwards, press 1.6s ease-in-out 0.8s infinite; }
.game-logo img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(#000, #000), repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
  mask-image: linear-gradient(#000, #000), repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
  -webkit-mask-size: 100% 22%, 100% 78%; mask-size: 100% 22%, 100% 78%;
  -webkit-mask-position: 0 100%, 0 0; mask-position: 0 100%, 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: logo-scan 0.8s linear infinite;
}
@keyframes logo-scan {
  from { -webkit-mask-position: 0 100%, 0 0; mask-position: 0 100%, 0 0; }
  to { -webkit-mask-position: 0 100%, 0 3px; mask-position: 0 100%, 0 3px; }
}
.game-logo::before, .game-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: url("../img/intrepid/intrepid-logo.webp") 0 0 / 100% 100% no-repeat;
  mix-blend-mode: screen;
}
.game-logo::before { filter: hue-rotate(115deg) saturate(2.4); }
.game-logo::after { filter: grayscale(1) brightness(1.9); }
.game-logo.glitch img { animation: logo-scan 0.8s linear infinite, logo-flicker 0.46s steps(1); }
.game-logo.glitch::before { animation: logo-ghost-a 0.46s steps(1); }
.game-logo.glitch::after { animation: logo-ghost-b 0.46s steps(1); }
@keyframes logo-flicker { 0%, 100% { opacity: 1; } 18% { opacity: 0.55; } 36% { opacity: 1; } 62% { opacity: 0.7; } 76% { opacity: 1; } }
@keyframes logo-ghost-a {
  0% { opacity: 0.9; clip-path: inset(14% 0 58% 0); transform: translateX(-14px); }
  20% { opacity: 0.8; clip-path: inset(40% 0 36% 0); transform: translateX(10px); }
  42% { opacity: 0; }
  58% { opacity: 0.85; clip-path: inset(58% 0 24% 0); transform: translateX(-8px); }
  80% { opacity: 0.6; clip-path: inset(24% 0 46% 0); transform: translateX(5px); }
  100% { opacity: 0; }
}
@keyframes logo-ghost-b {
  0% { opacity: 0; }
  12% { opacity: 0.7; clip-path: inset(30% 0 52% 0); transform: translateX(9px); }
  30% { opacity: 0; }
  66% { opacity: 0.6; clip-path: inset(48% 0 30% 0); transform: translateX(-12px); }
  86% { opacity: 0; }
  100% { opacity: 0; }
}
/* "The race is on.", under the globe once the route is traced. */
.caption { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 80px); z-index: 3; padding: 0 var(--gutter); text-align: center; opacity: 0; }
.caption h2 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: 0.08em; text-shadow: 0 0 30px rgb(var(--holo-rgb) / 0.55); }
.caption a { display: inline-block; margin-top: 0.8rem; font: 600 0.82rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--holo); }

/* The prologue: three lines over the flight, one at a time, in the same
   place. site.js scrubs each in and out; the ships' paths bend around them. */
.prologue { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
/* The parts of the ships' trails that pass in front of the prologue text. */
.holo-front { z-index: 4; pointer-events: none; }
.prologue-line {
  /* Padding so the glow fades out inside the scanline mask instead of being cut off by it. */
  grid-area: 1 / 1; margin: 0; padding: 0.7em max(var(--gutter), 1.2em); text-align: center; opacity: 0; visibility: hidden;
  font: 600 clamp(1.9rem, 5vw, 4.4rem)/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-wrap: balance;
  /* Solid letters with depth: stacked shadows step back into darker cyan to make
     an extruded edge, then the usual glow. They are opaque, so ships drawn on
     the canvas behind are hidden by the letters and show between them. */
  color: var(--holo-bright);
  text-shadow:
    0 1px 0 #8FE6F2, 0 2px 0 #63C4D4, 0 3px 0 #45A2B4, 0 4px 0 #2F8193, 0 5px 0 #216272,
    0 6px 0 #164653, 0 8px 10px rgb(0 0 0 / 0.55), 0 0 34px rgb(var(--holo-rgb) / 0.55);
  transform-origin: 50% 50%; will-change: transform;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.75) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.75) 2px 3px);
  animation: scan-down 0.8s linear infinite;
}

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(5.5rem, 12vw, 10rem) var(--gutter); }
.inner { max-width: 82rem; margin: 0 auto; }
.section h2.title { font-size: clamp(2rem, 4.4vw, 3.8rem); margin-bottom: 1.4rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }

/* Content arrives like a projection being scanned in. */
.materialize { position: relative; }
.materialize.is-scanning::after {
  content: ""; position: absolute; left: -2%; right: -2%; height: 2px; top: var(--scan-y, 100%);
  background: linear-gradient(90deg, transparent, var(--holo-bright), transparent);
  box-shadow: 0 0 16px 3px rgb(var(--holo-rgb) / 0.6);
  pointer-events: none;
}

/* ---------- Intrepid, after the flight ---------- */

/* Briefing: pitch and actions on the left, the facts as a readout on the right. */
.briefing-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.section h2.briefing-title { font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: 0.04em; }
.briefing .lede { max-width: 40rem; margin: 0 0 2rem; }
.facts { margin: 0; border-top: var(--line); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgb(var(--holo-rgb) / 0.18); }
.facts dt { font: 600 0.7rem/1.2 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.facts dd { margin: 0; text-align: right; }

/* Media: the trailer, then the screenshots: one big screen, a strip of thumbnails. */
.gallery-title { margin: clamp(2.5rem, 5vw, 4rem) 0 1.2rem; font: 700 1.1rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
/* The trailer and the viewer take about 70% of the width, centred, with room around them. */
.reel.reel--page, .gallery-title, .viewer { width: min(100%, 70%); margin-inline: auto; }
.viewer-screen { position: relative; }
.viewer-nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid rgb(var(--holo-rgb) / 0.45); border-radius: 50%; background: rgb(7 12 24 / 0.7); color: var(--holo-bright);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.viewer-nav svg { width: 20px; height: 20px; }
.viewer-nav:hover, .viewer-nav:focus-visible { border-color: var(--holo); background: rgb(var(--holo-rgb) / 0.12); box-shadow: 0 0 20px -4px rgb(var(--holo-rgb) / 0.7); }
.viewer-nav--prev { right: calc(100% + clamp(0.8rem, 2vw, 1.6rem)); }
.viewer-nav--next { left: calc(100% + clamp(0.8rem, 2vw, 1.6rem)); }
.viewer-stage { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #08101F; border: 1px solid rgb(var(--holo-rgb) / 0.22); }
.viewer-stage::before, .viewer-stage::after { content: ""; position: absolute; z-index: 1; width: 18px; height: 18px; border: 2px solid rgb(var(--holo-rgb) / 0.8); pointer-events: none; }
.viewer-stage::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.viewer-stage::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.viewer-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer-img.is-switching { animation: channel 0.5s var(--ease-out); }
@keyframes channel {
  0% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(2.2); }
  55% { clip-path: inset(0 0 0 0); filter: brightness(1.4); }
  70% { opacity: 0.7; } 100% { clip-path: inset(0 0 0 0); filter: brightness(1); opacity: 1; }
}
/* Under the screen, not on it: the shots carry their own labels and dialogue boxes. */
.viewer-cap {
  position: absolute; left: 0; top: calc(100% + 0.8rem);
  font: 600 0.72rem/1.2 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo-bright);
}
.viewer-thumbs { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.8rem); }
.thumb {
  display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  background: #08101F; border: 1px solid rgb(var(--holo-rgb) / 0.2);
  opacity: 0.55; transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; }
/* Pointing at a thumbnail makes it flicker, like a channel being tuned. */
.thumb:hover img, .shot-link:hover img { animation: thumb-tune 0.32s steps(1); }
@keyframes thumb-tune {
  0% { filter: drop-shadow(-3px 0 rgb(255 80 170 / 0.7)) drop-shadow(3px 0 rgb(108 240 255 / 0.7)); translate: 2px 0; }
  35% { filter: brightness(1.6); translate: -1px 0; }
  70% { filter: none; translate: 0 0; }
}
.thumb[aria-pressed="true"] { opacity: 1; border-color: var(--holo); box-shadow: 0 0 18px -6px rgb(var(--holo-rgb) / 0.8); }

/* Screenshot behind the trailer's play button, dimmed until there's footage. */
.reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: saturate(0.7); }
.reel-screen > .reel-play, .reel-screen > .reel-note { position: relative; }
.reel-screen:has(.reel-poster) .reel-note { color: var(--ink); text-shadow: 0 1px 8px rgb(0 0 0 / 0.9); }

/* Story pillars: art and text alternating sides. */
.story-lede { max-width: 46rem; margin: 1.6rem 0 0; color: var(--ink-dim); }
.pillars { display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); margin-top: clamp(3.5rem, 7vw, 6rem); }
.pillar { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.pillar--flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.pillar--flip .art-slot, .pillar--flip .art { order: 2; }
.art { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgb(var(--holo-rgb) / 0.22); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-slot { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px dashed rgb(var(--holo-rgb) / 0.32); background: var(--scan), radial-gradient(70% 70% at 50% 50%, rgb(var(--holo-rgb) / 0.08), transparent 70%); }
.art-slot span { font: 600 0.76rem/1.3 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); }
.pillar h3 { margin: 0 0 1rem; font: 700 clamp(1.6rem, 3vw, 2.5rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.holo-theme .pillar h3 { text-shadow: 0 0 22px rgb(var(--holo-rgb) / 0.35); }
.pillar p { margin: 0; color: var(--ink-dim); max-width: 34rem; }

/* Then and now: the past is laid over the present and cut off at --pos, so
   dragging the line right shows more of the past. A full-size, invisible range
   input on top does the dragging, so keyboards and screen readers work too. */
.tn-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tn-copy .lede { margin: 0 0 1rem; }
.tn-copy p:not(.lede) { margin: 0; color: var(--ink-dim); }
.tn-copy p.tn-hint { display: flex; align-items: center; gap: 0.55rem; margin-top: 1.6rem; font: 600 0.72rem/1.3 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--holo); }
.tn-hint svg { width: 20px; height: 20px; flex: none; }
.compare { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgb(var(--holo-rgb) / 0.3); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9); }
.compare img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-now { position: absolute; inset: 0; }
.compare-then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* With the dissolve running, a canvas draws the past instead (pixel by pixel at the edge). */
.compare-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.compare.has-fx .compare-then { visibility: hidden; }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -50% 0; pointer-events: none;
  background: var(--holo-bright); box-shadow: 0 0 14px 2px rgb(var(--holo-rgb) / 0.75);
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--holo); border-radius: 50%; background: rgb(7 12 24 / 0.75); color: var(--holo-bright);
  box-shadow: 0 0 22px -4px rgb(var(--holo-rgb) / 0.8); transition: transform 0.3s var(--ease-out);
}
.compare-knob svg { width: 22px; height: 22px; }
.compare:hover .compare-knob, .compare:focus-within .compare-knob { transform: scale(1.1); }
.compare:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
.compare-tag {
  position: absolute; top: 0.8rem; padding: 0.35rem 0.6rem; pointer-events: none;
  font: 600 0.68rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  background: rgb(7 12 24 / 0.7); border: 1px solid rgb(var(--holo-rgb) / 0.3);
}
.compare-tag--then { left: 0.8rem; }
.compare-tag--now { right: 0.8rem; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}

/* Exploration: the screenshot, and how the investigation works in three steps. */
.ex-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ex-art { aspect-ratio: 16 / 9; }
.ex-copy .lede { margin: 0 0 1.8rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1rem 0; border-bottom: 1px solid rgb(var(--holo-rgb) / 0.18); }
.steps li::before { content: "0" counter(step); grid-row: span 2; font: 700 1.5rem/1 var(--display); color: var(--holo); text-shadow: 0 0 18px rgb(var(--holo-rgb) / 0.5); }
.steps li::before { transition: text-shadow 0.3s, color 0.3s; }
.steps li:hover::before { color: var(--holo-bright); text-shadow: 0 0 24px rgb(var(--holo-rgb) / 0.9); }
.steps strong { font: 700 1rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.steps span { color: var(--ink-dim); }

/* The crew: a row of full-body holograms, each standing in its own faint beam.
   The chosen one (pointed at, tapped or tabbed to) lifts, gains full colour,
   and its details show underneath. Column widths follow each figure's art,
   so they stand shoulder to shoulder at one scale. The row's width is tied
   to the viewport's height (figures about 40vh tall), so the figures and the
   details under them fit on one screen. */
.lineup { width: min(100%, 110vh); margin-inline: auto; }
.lineup-row {
  display: grid; grid-template-columns: 481fr 454fr 299fr 533fr 361fr 330fr; align-items: stretch;
  padding-top: 2rem; border-bottom: 1px solid rgb(var(--holo-rgb) / 0.25);
  background: radial-gradient(60% 40% at 50% 100%, rgb(var(--holo-rgb) / 0.08), transparent 70%);
}
.fig {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  min-width: 0; padding: 0 0 0.9rem; background: none; border: 0; color: var(--ink-dim); cursor: pointer;
}
.fig:focus-visible { outline: 1px solid var(--holo); outline-offset: -1px; }
.fig-body { position: relative; display: block; width: 100%; transition: transform 0.6s var(--ease-out); }
.fig img {
  position: relative; display: block; width: 100%; height: auto;
  /* Off: a cool, see-through projection. */
  opacity: 0.5; filter: grayscale(0.7) sepia(0.35) hue-rotate(150deg) brightness(0.85) drop-shadow(0 0 10px rgb(var(--holo-rgb) / 0.35));
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.6) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.6) 2px 3px);
  animation: scan-down 0.8s linear infinite;
  transition: opacity 0.5s, filter 0.5s;
}
.fig-beam {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 100%; opacity: 0.35;
  background: linear-gradient(0deg, rgb(var(--holo-rgb) / 0.22), rgb(var(--holo-rgb) / 0.05) 45%, transparent 80%);
  clip-path: polygon(30% 100%, 70% 100%, 100% 0, 0 0);
  transition: opacity 0.5s;
}
.fig-pad {
  display: block; width: 62%; height: 12px; margin-top: -6px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--holo-rgb) / 0.55), rgb(var(--holo-rgb) / 0.12) 60%, transparent);
  transition: opacity 0.5s, transform 0.6s var(--ease-out); opacity: 0.5;
}
.fig-name { margin-top: 0.7rem; font: 600 0.7rem/1.2 var(--display); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s; }
.fig[aria-selected="true"] { color: var(--holo-bright); z-index: 1; }
.fig[aria-selected="true"] .fig-body { transform: translateY(-12px); }
.fig[aria-selected="true"] img { opacity: 1; filter: drop-shadow(0 0 16px rgb(var(--holo-rgb) / 0.4)); animation: scan-down 0.8s linear infinite, fig-float 4s ease-in-out infinite; }
.fig[aria-selected="true"] .fig-beam { opacity: 1; }
.fig[aria-selected="true"] .fig-pad { opacity: 1; transform: scaleX(1.15); }
.fig:not([aria-selected="true"]):hover img { opacity: 0.75; }
@keyframes fig-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* Pip has no body: a small projected light, with two rings turning around it. */
.fig--pip .fig-body { flex: 1; display: grid; place-items: center; }
.pip { position: relative; width: min(64%, 120px); aspect-ratio: 1; margin-bottom: 30%; opacity: 0.55; transition: opacity 0.5s; animation: fig-float 4s ease-in-out infinite; }
.pip i { position: absolute; inset: 0; border: 1px solid rgb(var(--holo-rgb) / 0.7); border-radius: 50%; animation: pip-turn 9s linear infinite; }
.pip i:nth-child(1) { scale: 1 0.34; }
.pip i:nth-child(2) { scale: 0.34 1; animation-duration: 13s; animation-direction: reverse; }
.pip b { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #fff, var(--holo) 45%, rgb(var(--holo-rgb) / 0) 72%); box-shadow: 0 0 30px 6px rgb(var(--holo-rgb) / 0.45); }
@keyframes pip-turn { to { rotate: 360deg; } }
.fig--pip[aria-selected="true"] .pip { opacity: 1; }

/* The occasional lost signal: the figure tears into slices and splits colour. */
.fig.glitch img, .fig.glitch .pip { animation: fig-glitch 0.52s steps(1) both; }
@keyframes fig-glitch {
  0% { clip-path: inset(0 0 0 0); transform: none; }
  10% { clip-path: inset(12% 0 64% 0); transform: translateX(-8px); filter: drop-shadow(-4px 0 rgb(255 80 170 / 0.8)) drop-shadow(4px 0 rgb(108 240 255 / 0.8)); }
  22% { clip-path: inset(48% 0 18% 0); transform: translateX(6px); }
  34% { clip-path: inset(0 0 0 0); transform: none; opacity: 0.25; }
  46% { clip-path: inset(70% 0 4% 0); transform: translateX(-5px) skewX(-6deg); }
  58% { clip-path: inset(0 0 0 0); transform: translateX(3px); filter: drop-shadow(-3px 0 rgb(255 80 170 / 0.7)) drop-shadow(3px 0 rgb(108 240 255 / 0.7)); }
  72% { opacity: 0.6; transform: none; }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}

/* The chosen crew member's details, under the row. All six share one cell,
   so the space stays the same height whoever is chosen. */
.lineup-info { display: grid; padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.dossier {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.4rem clamp(1.5rem, 4vw, 4rem); align-items: baseline;
  animation: readout-in 0.55s var(--ease-out);
}
.dossier[hidden] { display: grid; visibility: hidden; animation: none; }
.dossier h3 { margin: 0; font: 700 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-shadow: 0 0 22px rgb(var(--holo-rgb) / 0.35); }
.dossier .meta { grid-column: 1; margin: 0; font: 600 0.74rem/1.3 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.dossier p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: 38rem; color: var(--ink-dim); }

/* The rival crews: each row led by its badge and its orders in one huge
   outlined word, in the badge's colour (the same colour as that ship in the flight). */
.rival-mark { display: grid; justify-items: start; gap: 0.9rem; }
.rival-badge {
  width: clamp(56px, 6vw, 84px); height: auto;
  filter: drop-shadow(0 0 14px rgb(var(--f) / 0.35));
  transition: filter 0.5s, transform 0.6s var(--ease-out);
}
.rival:hover .rival-badge { filter: drop-shadow(0 0 22px rgb(var(--f) / 0.6)); transform: translateY(-3px); }
.rivals { border-top: var(--line); }
.rival {
  --f: var(--holo-rgb);
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; border-bottom: 1px solid rgb(var(--holo-rgb) / 0.2);
  transition: background-color 0.5s;
}
.rival::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: rgb(var(--f)); box-shadow: 0 0 10px rgb(var(--f)); transition: width 0.8s var(--ease-out); }
.rival:hover::before { width: 100%; }
.rival:hover { background: linear-gradient(90deg, rgb(var(--f) / 0.06), transparent 70%); }
.rival .rival-verb {
  /* Sized so the longest word, DESTROY, fits its column at every width. */
  margin: 0; font: 700 clamp(2.4rem, 4.6vw, 4.6rem)/0.9 var(--display); letter-spacing: 0.01em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgb(var(--f) / 0.85); text-shadow: 0 0 28px rgb(var(--f) / 0.25);
  transition: color 0.5s;
}
.rival:hover .rival-verb { color: rgb(var(--f) / 0.14); }
.rival-ship h3 { margin: 0 0 0.35rem; font: 700 clamp(1.3rem, 2.2vw, 1.75rem)/1.08 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.rival-ship .meta { margin: 0 0 0.8rem; font: 600 0.72rem/1.3 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: rgb(var(--f)); }
.rival p { margin: 0; color: var(--ink-dim); }
.rival-lead { padding-left: clamp(1rem, 2vw, 1.6rem); border-left: 1px solid rgb(var(--f) / 0.35); }
.rival-lead .rival-name { margin-bottom: 0.45rem; font: 700 1rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* FAQ. */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.faq { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0.2rem; cursor: pointer; list-style: none; font: 700 clamp(1.05rem, 1.6vw, 1.25rem)/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--holo); border-bottom: 2px solid var(--holo); rotate: 45deg; translate: 0 -3px; transition: rotate 0.4s var(--ease-out); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq summary:hover { color: var(--holo-bright); }
.faq details p { margin: 0 0.2rem 1.3rem; color: var(--ink-dim); max-width: 40rem; }
/* An answer scans in from the top as it opens. */
.holo-theme .faq details[open] p { animation: answer-in 0.45s var(--ease-out); }
@keyframes answer-in { from { clip-path: inset(0 0 100% 0); opacity: 0.3; translate: 0 -4px; } to { clip-path: inset(0 0 0 0); opacity: 1; translate: 0 0; } }
.join-actions { justify-content: center; margin: 0 0 2rem; }

.questions { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.questions li { font: 700 clamp(1.5rem, 3.4vw, 2.8rem)/1.12 var(--display); text-transform: uppercase; text-shadow: 0 0 22px rgb(var(--holo-rgb) / 0.3); }
.questions li:nth-child(even) { padding-left: clamp(1rem, 8vw, 8rem); }

/* The globe on its own (Intrepid hero). */
.globe-wrap { position: relative; aspect-ratio: 1; width: 100%; }
.globe-wrap .holo-canvas { position: absolute; inset: 0; }
.globe-wrap::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2%; height: 2px; background: linear-gradient(90deg, transparent, var(--holo), transparent); box-shadow: 0 0 18px 2px rgb(var(--holo-rgb) / 0.5); }

/* The studio as an orrery: Ardent Works at the centre, games on the inner
   orbit, products (amber) on the outer. site.js sizes the SVG to the box,
   draws the rings and moves each body; the readout is pinned to the left. */
.orrery { position: relative; height: clamp(520px, 44vw, 640px); margin-top: clamp(2.5rem, 5vw, 4rem); }
.orrery-sky { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orrery-sky .ring { fill: none; stroke: rgb(var(--holo-rgb) / 0.22); stroke-width: 1; }
.orrery-sky .ring--back { stroke-dasharray: 2 5; stroke: rgb(var(--holo-rgb) / 0.14); }
.orrery-sky .ring--product { stroke: rgb(255 196 107 / 0.22); }
.orrery-sky .ring--product.ring--back { stroke: rgb(255 196 107 / 0.12); }
.orrery-sky .comet { fill: none; stroke: var(--holo-bright); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--holo)); }
.orrery-sky .comet--product { stroke: #FFE7BD; filter: drop-shadow(0 0 4px #FFC46B); }
.orrery-sky .ring-label { fill: var(--ink-dim); font: 600 10px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; }
.orrery-sky .core-halo { fill: url(#core-glow); }
.orrery-sky .core-flame { filter: drop-shadow(0 0 10px rgb(255 122 61 / 0.7)); animation: flame-breathe 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flame-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04, 1.07); } }
.orrery-sky .core-name { fill: var(--ink); font: 700 12px/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; }
.orrery-sky .core-pulse { fill: none; stroke: rgb(255 122 61 / 0.6); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: core-pulse 3.6s ease-out infinite; }
@keyframes core-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.orrery-sky .leader { fill: none; stroke: rgb(var(--holo-rgb) / 0.5); stroke-width: 1; stroke-dasharray: 3 4; }
.orrery-sky .leader-end { fill: var(--holo-bright); }

/* Bodies are real buttons, moved by transform. Without script they sit in a row. */
.orbs { position: relative; display: flex; flex-wrap: wrap; gap: 1rem; }
.orrery.is-live .orbs { position: absolute; inset: 0; display: block; pointer-events: none; }
.orrery.is-live .orb { pointer-events: auto; }
.orb {
  --c: var(--holo-rgb);
  position: relative; display: grid; justify-items: center; gap: 0.35rem; width: 9rem; padding: 0 0 0.4rem;
  background: none; border: 0; color: var(--ink); cursor: pointer; text-align: center;
}
.orrery.is-live .orb { position: absolute; left: 0; top: 0; margin: -16px 0 0 -4.5rem; will-change: transform; }
.orb.is-product { --c: 255 196 107; }
.orb-dot { position: relative; width: 32px; height: 32px; display: grid; place-items: center; }
.orb-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 14px 3px rgb(var(--c) / 0.55); transition: transform 0.4s var(--ease-out); }
.orb-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(var(--c) / 0.9); opacity: 0; transform: scale(0.6); transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.orb.is-uncharted .orb-dot::before { width: 8px; height: 8px; background: rgb(var(--c) / 0.5); box-shadow: none; }
.orb.is-uncharted .orb-dot::after { border-style: dashed; opacity: 0.6; transform: scale(0.85); }
.orb:hover .orb-dot::before { transform: scale(1.25); }
.orb:hover .orb-dot::after { opacity: 0.55; transform: scale(1); }
.orb.is-active .orb-dot::after { opacity: 1; transform: scale(1.15); }
.orb-name { font: 700 0.8rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 8px var(--void); }
.orb-type { font: 400 0.82rem/1 var(--prose); color: var(--ink-dim); }
.orb.is-active .orb-name { color: rgb(var(--c)); }
.orb:focus { outline: none; }
.orb:focus-visible .orb-dot { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 50%; }

/* The readout: a small projected panel the leader line points at. */
.work-detail {
  position: absolute; left: 0; top: 50%; z-index: 4; translate: 0 -50%; width: min(22rem, 34%);
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--scan), rgb(12 20 38 / 0.88); border: 1px solid rgb(var(--holo-rgb) / 0.28);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.9);
}
.work-detail::before, .work-detail::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--holo); pointer-events: none; }
.work-detail::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.work-detail::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.work-item h3 { margin: 0 0 0.5rem; font: 700 clamp(1.25rem, 1.8vw, 1.55rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.work-item p { margin: 0 0 1.2rem; color: var(--ink-dim); }
.work-item .meta { margin: 0 0 0.9rem; font: 600 0.72rem/1.3 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.work-item .more:hover svg { transform: translateX(4px); }
.work-item[hidden] { display: none; }
.work-item.is-shown { animation: readout-in 0.5s var(--ease-out); }
@keyframes readout-in { 0% { opacity: 0; clip-path: inset(0 0 100% 0); } 60% { opacity: 1; } 100% { clip-path: inset(0 0 0 0); } }

/* ---------- Comms: newsletter, Discord, socials ---------- */

.comms { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.letters { display: grid; gap: 0.75rem; max-width: 34rem; }
.letters label, .letters legend { font: 600 0.74rem/1.2 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.field-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.field-row input { flex: 1 1 14rem; min-width: 0; }
.letters input[type="email"] {
  min-height: 3.1rem; padding: 0.8rem 1rem;
  border: 1px solid rgb(var(--holo-rgb) / 0.45); border-radius: 1px;
  background: rgb(7 12 24 / 0.7); color: var(--ink);
  font: 400 1.05rem/1.2 var(--prose);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.letters input[type="email"]:focus { border-color: var(--holo); outline: none; box-shadow: 0 0 0 3px rgb(var(--holo-rgb) / 0.25); }
.letters input::placeholder { color: rgb(147 184 198 / 0.8); }
.letters input[aria-invalid="true"] { border-color: var(--error); }
.form-status { margin: 0; min-height: 1.4em; font: 500 0.92rem/1.4 var(--display); }
.form-status:empty { min-height: 0; }
.form-status[data-kind="error"] { color: var(--error); }
.form-status[data-kind="ok"] { color: var(--holo-bright); }
.fine { margin: 0; font: 400 0.9rem/1.5 var(--prose); color: var(--ink-dim); }
.interests { border: 0; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.interests legend { padding: 0; margin-bottom: 0.6rem; }
.interest-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem 0.55rem 0.7rem; border: 1px solid rgb(var(--holo-rgb) / 0.35); font: 400 1rem/1.1 var(--prose); cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.interest input { appearance: none; -webkit-appearance: none; margin: 0; width: 0.9rem; height: 0.9rem; border: 1px solid var(--holo); display: grid; place-content: center; }
.interest input::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--holo); box-shadow: 0 0 6px var(--holo); transform: scale(0); transition: transform 0.25s var(--ease-out); }
.interest input:checked::before { transform: scale(1); }
.interest:has(input:checked) { border-color: var(--holo); background: rgb(var(--holo-rgb) / 0.1); }
.interest:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.interest input:focus-visible { outline: none; }

.channels { display: grid; align-content: start; gap: 0; }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; border-bottom: var(--line); text-decoration: none; transition: padding 0.45s var(--ease-out), color 0.3s; }
.channel:first-child { border-top: var(--line); }
.channel:hover { padding-left: 0.6rem; color: var(--holo-bright); }
.channel strong { font: 700 1.35rem/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.channel span { font: 400 0.95rem/1.3 var(--prose); color: var(--ink-dim); text-align: right; }

/* ---------- Home, below the title screen ---------- */

/* A section heading with a short note to its right. */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head h2.title { margin: 0; }
.sec-note { margin: 0; color: var(--ink-dim); }

/* The studio: the biggest words on the page after the logo. */
.statement { margin: 0; max-width: 60rem; font: 600 clamp(1.9rem, 4.2vw, 3.9rem)/1.12 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.statement em { font-style: normal; color: var(--holo-bright); text-shadow: 0 0 26px rgb(var(--holo-rgb) / 0.5); }
.statement .em-amber { color: #FFC46B; text-shadow: 0 0 26px rgb(255 196 107 / 0.45); }

/* Intrepid's feature: the trailer slot, with the details laid over its corner. */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.feature .reel { grid-column: 1 / 9; grid-row: 1; }
.feature-copy {
  grid-column: 8 / 13; grid-row: 1; position: relative; z-index: 1;
  margin-bottom: clamp(-3.5rem, -4vw, -1.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  background: var(--void-2); border: 1px solid rgb(var(--holo-rgb) / 0.22);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.8);
}
.feature-title { margin: 0 0 1.1rem; font: 700 clamp(2.4rem, 4.4vw, 4rem)/0.95 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.feature-title span { display: block; margin-top: 0.7rem; font-size: 0.3em; letter-spacing: 0.3em; color: var(--holo); }
.feature-copy > p { margin: 0 0 1.4rem; color: var(--ink-dim); }
.feature-copy .data { grid-template-columns: 1fr; margin-bottom: 1.6rem; }
.feature-copy .data div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: 0.6rem 0; border-right: 0; border-bottom: 1px solid rgb(var(--holo-rgb) / 0.15); }
.feature-copy .data div:last-child { border-bottom: 0; }
.feature-copy .data dd { margin: 0; text-align: right; }

/* A screen waiting for its footage: the trailer and screenshot placeholders. */
.reel { margin: 0; position: relative; }
.reel-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: 1.1rem;
  background: var(--scan), radial-gradient(70% 80% at 50% 45%, rgb(var(--holo-rgb) / 0.1), transparent 70%), #08101F;
  border: 1px solid rgb(var(--holo-rgb) / 0.22);
}
.reel-screen::before, .reel-screen::after { content: ""; position: absolute; z-index: 1; width: 18px; height: 18px; border: 2px solid rgb(var(--holo-rgb) / 0.8); pointer-events: none; }
.reel-screen::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.reel-screen::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.reel-play {
  width: clamp(64px, 7vw, 88px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgb(var(--holo-rgb) / 0.6); color: var(--holo-bright);
  box-shadow: 0 0 30px -6px rgb(var(--holo-rgb) / 0.6), inset 0 0 20px -8px rgb(var(--holo-rgb) / 0.7);
  animation: reel-pulse 3.2s ease-in-out infinite;
}
.reel-play svg { width: 38%; margin-left: 8%; }
@keyframes reel-pulse { 0%, 100% { box-shadow: 0 0 30px -6px rgb(var(--holo-rgb) / 0.6), inset 0 0 20px -8px rgb(var(--holo-rgb) / 0.7); } 50% { box-shadow: 0 0 44px -4px rgb(var(--holo-rgb) / 0.75), inset 0 0 24px -6px rgb(var(--holo-rgb) / 0.8); } }
.reel-note, .shot span { font: 600 0.76rem/1.3 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); text-align: center; }
.shots { list-style: none; margin: clamp(1rem, 2vw, 1.6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
/* Home: three screenshots under the feature, each a way into the game page. */
.shots--home { margin-top: clamp(5.5rem, 8.5vw, 7.5rem); }
.shot-link { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgb(var(--holo-rgb) / 0.2); transition: border-color 0.4s, box-shadow 0.4s; }
.shot-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.shot-link:hover { border-color: var(--holo); box-shadow: 0 0 24px -8px rgb(var(--holo-rgb) / 0.7); }
.shot-link:hover img { transform: scale(1.04); }
.shot { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 0 1rem; border: 1px dashed rgb(var(--holo-rgb) / 0.32); background: var(--scan), rgb(var(--holo-rgb) / 0.03); }

/* The next game: an open marker, not yet a card. */
.uncharted {
  margin-top: clamp(5rem, 9vw, 7rem);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.2rem, 2.4vw, 1.8rem) clamp(1.2rem, 2.4vw, 2rem);
  border: 1px dashed rgb(var(--holo-rgb) / 0.35); text-decoration: none;
  transition: border-color 0.4s, background-color 0.4s;
}
.uncharted:hover { border-color: var(--holo); background: rgb(var(--holo-rgb) / 0.04); }
.uncharted-mark { width: 48px; height: 48px; color: var(--holo); animation: turn 30s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.uncharted-text strong { display: block; font: 700 clamp(1.2rem, 2vw, 1.6rem)/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.uncharted-text span { display: block; margin-top: 0.3rem; color: var(--ink-dim); }
.uncharted:hover .more svg { transform: translateX(4px); }

/* Products: a sticky heading beside an index of rows. */
.products-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.products-grid .sec-head { position: sticky; top: 110px; flex-direction: column; align-items: flex-start; gap: 1rem; margin: 0; }
.product-rows { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.product-rows li { border-bottom: var(--line); }
.product-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.2rem 2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0.6rem; text-decoration: none;
}
.product-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(var(--holo-rgb) / 0.1), transparent 75%); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.product-row:hover::before, .product-row:focus-visible::before { transform: scaleX(1); }
.row-id img { height: 48px; width: auto; padding: 7px 11px; background: #FFF8EE; border-radius: 2px; }
.row-id .wordtype { font-size: 1.7rem; }
.row-text { color: var(--ink-dim); max-width: 34rem; transition: color 0.3s; }
.product-row:hover .row-text { color: var(--ink); }
.row-go { width: 28px; height: 28px; color: var(--holo); transition: transform 0.5s var(--ease-out); }
.product-row:hover .row-go { transform: translateX(6px); }

/* The close: back down to an ember, where the page began. */
.join-sec { overflow: hidden; padding-bottom: clamp(7rem, 14vw, 11rem); text-align: center; }
/* The ember glow under the close: a fire just below the footer line. Its centre sits
   exactly on the section's bottom edge on every page, however tall the section is,
   so only its upper half shows. site.js adds the moving flame (.join-fire) on top;
   the steady glow is a little dimmer than it would be alone, so together they keep
   the same warmth. */
.join-glow {
  --gw: min(130vw, 1500px);
  position: absolute; left: 50%; bottom: calc(var(--gw) * -0.25); width: var(--gw); aspect-ratio: 2 / 1; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 122 61 / 0.14), rgb(255 122 61 / 0.04) 45%, transparent 75%);
}
/* The close is lit by that fire, on every page that has one (and any new page that
   uses .join-sec gets this for free). The light fades as it climbs: everything near
   the fire is ember, the text above it peach, and the title, furthest up, only warm
   at its feet. Inside the close the hologram's cyan is swapped for firelight, so the
   buttons, form, checkboxes and channel icons all turn ember on their own.
   site.js feeds the section the fire's brightness (--fire, around 1) and where its
   flames lean (--lean, 0 to 1), smoothed so the light shifts gently, as reflected
   light does. Without the script it all sits still. */
.join-sec { --fire: 1; --lean: 0.5; }
.join-inner {
  --holo: #FF8A4C; --holo-rgb: 255 138 76; --holo-bright: #FFC9A6; --ink-dim: #E3B194; --focus: #FFB25B;
  --line: 1px solid rgb(255 138 76 / 0.32); --glow-shadow: 0 0 26px -6px rgb(255 122 61 / 0.6);
}
.join-inner .btn { box-shadow: var(--glow-shadow); }
.join-inner .btn:hover { box-shadow: 0 0 34px -4px rgb(255 140 70 / 0.75); }
.join-inner .btn--line { background: rgb(255 122 61 / 0.06); color: #FFC9A6; box-shadow: none; }
.join-inner .btn--line:hover { background: rgb(255 122 61 / 0.14); color: #FFE3D1; }
.join-inner .lede { color: #EDB797; text-shadow: 0 0 calc(14px * var(--fire)) rgb(255 120 60 / calc(0.22 * var(--fire))); }
.join-inner .letters input::placeholder { color: rgb(227 177 148 / 0.75); }
.join-inner .channel strong { color: #FFC9A6; }
/* The title in the firelight: the letters keep their colour, and warm light from the
   fire below spills up over them, strongest at their feet and fading with no edge,
   with a faint warm rim on their undersides. */
.section h2.join-title, .fire-lit {
  text-shadow: none;
  background:
    radial-gradient(105% 115% at calc((var(--lean) - 0.5) * 120% + 50%) 118%,
      rgb(255 130 70 / calc(1 * var(--fire))) 0%, rgb(255 155 95 / calc(0.8 * var(--fire))) 34%, rgb(255 180 130 / calc(0.35 * var(--fire))) 58%, rgb(255 190 150 / 0) 80%),
    linear-gradient(var(--ink), var(--ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px rgb(255 140 80 / calc(0.32 * var(--fire)))) drop-shadow(0 12px 30px rgb(255 110 50 / calc(0.24 * var(--fire))));
}
/* The flame: drawn small and scaled up, which keeps it soft and cheap. */
.join-fire { position: absolute; left: 50%; bottom: 0; width: min(130vw, 1500px); aspect-ratio: 320 / 120; translate: -50% 0; pointer-events: none; }
.join-inner { position: relative; max-width: 60rem; }
.section h2.join-title { margin-bottom: 1.2rem; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: 0.04em; }
.join-lede { margin: 0 auto 2.2rem; max-width: 36rem; color: var(--ink-dim); }
.letters--wide { max-width: 40rem; margin: 0 auto; text-align: left; }
.channel-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(3.5rem, 7vw, 5.5rem); border-top: var(--line); border-bottom: var(--line); }
.channel-row .channel { flex-direction: column; justify-content: center; gap: 0.4rem; padding: 1.6rem 0.6rem; border: 0; border-right: 1px solid rgb(var(--holo-rgb) / 0.2); transition: background-color 0.4s, color 0.3s; }
.channel-row .channel:first-child { border-top: 0; }
.channel-row .channel:last-child { border-right: 0; }
.channel-row .channel:hover { padding-left: 0.6rem; background: rgb(var(--holo-rgb) / 0.05); }
.channel-row .channel strong { font-size: clamp(1rem, 1.5vw, 1.25rem); }
/* Each channel's icon is a small hologram: projected up from a pad in a faint
   beam, scanlined, drifting gently. Pointing at the channel tunes it in. */
.ch-holo { position: relative; display: grid; place-items: center; width: 60px; height: 52px; margin-bottom: 0.35rem; }
.ch-holo::before {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 46px; height: 40px; translate: -50% 0;
  background: linear-gradient(0deg, rgb(var(--holo-rgb) / 0.26), rgb(var(--holo-rgb) / 0.04) 70%, transparent);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0); opacity: 0.45; transition: opacity 0.4s;
}
.ch-holo::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 34px; height: 6px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--holo-rgb) / 0.6), rgb(var(--holo-rgb) / 0.12) 60%, transparent);
  opacity: 0.6; transition: opacity 0.4s, scale 0.4s var(--ease-out);
}
.ch-holo svg {
  position: relative; width: 30px; height: 30px; margin-bottom: 10px; color: var(--holo); opacity: 0.8;
  filter: drop-shadow(0 0 5px rgb(var(--holo-rgb) / 0.75));
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.5) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.5) 2px 3px);
  animation: fig-float 4s ease-in-out infinite; transition: opacity 0.4s, color 0.4s;
}
.channel:nth-child(2) .ch-holo svg { animation-delay: -0.8s; }
.channel:nth-child(3) .ch-holo svg { animation-delay: -1.6s; }
.channel:nth-child(4) .ch-holo svg { animation-delay: -2.4s; }
.channel:nth-child(5) .ch-holo svg { animation-delay: -3.2s; }
.channel:hover .ch-holo svg, .channel:focus-visible .ch-holo svg { opacity: 1; color: var(--holo-bright); animation: thumb-tune 0.32s steps(1), fig-float 4s ease-in-out 0.32s infinite; }
.channel:hover .ch-holo::before, .channel:focus-visible .ch-holo::before { opacity: 1; }
.channel:hover .ch-holo::after, .channel:focus-visible .ch-holo::after { opacity: 1; scale: 1.15 1; }

/* Footer: the same icons, small, beside each place to follow us. */
.follow-list a { display: inline-flex; align-items: center; gap: 0.55rem; }
.f-icon { width: 16px; height: 16px; flex: none; color: var(--holo); opacity: 0.75; filter: drop-shadow(0 0 3px rgb(var(--holo-rgb) / 0.6)); transition: opacity 0.3s, color 0.3s; }
.follow-list a:hover .f-icon { opacity: 1; color: var(--holo-bright); }
.channel-row .channel span { text-align: center; font-size: 0.88rem; }

/* ---------- Footer ---------- */

.site-footer { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2.5rem; border-top: var(--line); background: rgb(7 12 24 / 0.8); }
.footer-grid { max-width: 82rem; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h3 { margin: 0 0 1rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font: 400 1rem/1.3 var(--prose); }
.footer-grid a { text-decoration: none; color: var(--ink-dim); transition: color 0.3s; }
.footer-grid a:hover { color: var(--holo-bright); }
.footer-small { max-width: 82rem; margin: 3rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgb(var(--holo-rgb) / 0.18); font: 400 0.9rem/1.5 var(--prose); color: var(--ink-dim); }

/* ---------- Intrepid hero ---------- */

.game-hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding: clamp(110px, 15vh, 150px) var(--gutter) clamp(3rem, 8vh, 5rem); }
.game-hero h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: 0.1em; }
.subtitle { margin: 0.6rem 0 1.6rem; font: 600 clamp(1rem, 1.8vw, 1.4rem)/1.2 var(--display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--holo); }
.game-hero .data { margin-bottom: 1.6rem; }
.keyart img { width: 100%; height: auto; border: var(--line); }

/* ---------- Product pages (amber) ---------- */

.product-hero { padding: clamp(120px, 18vh, 180px) var(--gutter) clamp(3rem, 6vw, 5rem); }
.product-hero h1 { margin: 1.2rem 0 1rem; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.crumbs { font: 600 0.74rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.crumbs a { text-decoration: none; color: var(--holo); }
.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: 2.5rem; }
.product-card { display: grid; gap: 1.2rem; text-decoration: none; transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.product-card:hover { transform: translateY(-4px); border-color: rgb(var(--holo-rgb) / 0.4); }
.product-card .logo-box { height: 56px; display: flex; align-items: center; }
.product-card .logo-box img { height: 100%; width: auto; padding: 8px 12px; background: #FFF8EE; border-radius: 2px; }
.product-card h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.product-card p { margin: 0; color: var(--ink-dim); }
.more { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 0.8rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--holo); }
.more svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.product-card:hover .more svg { transform: translateX(4px); }
.logo-lg { width: min(100%, 24rem); padding: 14px 18px; background: #FFF8EE; border-radius: 2px; }
.wordtype { margin: 0; font: 700 2rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--holo-bright); }
.features { margin: 2.5rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.features .panel { height: 100%; }
.features h3 { margin: 0 0 0.6rem; font: 700 1.15rem/1.15 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.features p { margin: 0; color: var(--ink-dim); }

/* ---------- About ----------
   One gravity: the dream in the hero, where a sketch of the game comes to life.
   The rest is editorial: big type, hairlines, room to breathe, and the team on
   hologram plinths like the Intrepid crew. */

/* Hero: the statement on the left, the dream on the right. On load the statement
   rises line by line. */
.ab-hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem);
  max-width: 82rem; margin: 0 auto; padding: clamp(110px, 16vh, 150px) var(--gutter) clamp(3rem, 8vh, 5rem);
  box-sizing: content-box;
}
.ab-statement { margin: 0; font: 600 clamp(2.5rem, 5.6vw, 5.4rem)/1.02 var(--display); letter-spacing: -0.012em; text-wrap: balance; }
.ab-statement em { font-style: normal; color: var(--holo-bright); text-shadow: 0 0 34px rgb(var(--holo-rgb) / 0.45); }
.ab-line { display: inline-block; animation: ab-rise 1.1s var(--ease-out) backwards; }
.ab-line:nth-child(2) { animation-delay: 0.12s; }
.ab-line:nth-child(3) { animation-delay: 0.24s; }
@keyframes ab-rise { from { opacity: 0; translate: 0 0.5em; filter: blur(6px); } }
.ab-intro { max-width: 36rem; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; color: var(--ink-dim); animation: ab-fade 1s 0.5s var(--ease-out) backwards; }
@keyframes ab-fade { from { opacity: 0; translate: 0 10px; } }
.ab-down {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: clamp(2rem, 4vw, 3rem);
  font: 700 0.78rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); text-decoration: none;
  animation: ab-fade 1s 0.7s var(--ease-out) backwards;
}
.ab-down svg { width: 18px; height: 18px; transition: translate 0.4s var(--ease-out); }
.ab-down:hover { color: var(--holo-bright); }
.ab-down:hover svg { translate: 0 3px; }

/* The dream: a 16:9 stage whose canvas runs past it, so the cloud's soft edge has
   room. It fades in once the first scene is ready (site.js adds .is-live). */
.ab-dream { position: relative; width: 100%; aspect-ratio: 16 / 9; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.ab-dream.is-live { opacity: 1; }
.ab-dream canvas { position: absolute; inset: -7% -5%; width: 110%; height: 114%; display: block; }

/* Story: the title holds its column while the copy reads beside it. */
.ab-story-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
.ab-story-grid > .title { position: sticky; top: 120px; margin: 0; }
.ab-story-copy { max-width: 40rem; padding-top: 0.6rem; border-top: var(--line); }
.ab-story-copy p { margin: 1.4rem 0 0; color: var(--ink-dim); font-size: 1.08rem; line-height: 1.7; }
.ab-story-copy .ab-story-lead { font: 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.4 var(--display); color: var(--ink); }

/* What we make: two hologram cards, each projected up from a pad. They hover,
   tilt towards the pointer (site.js sets --rx/--ry and the glare's --gx/--gy),
   and their layers sit at different depths, so the tilt reads as real 3D. */
.ab-cards { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.ab-holo { position: relative; perspective: 1200px; padding-bottom: 2.4rem; }
/* The projector: a glowing pad under each card and a faint beam rising from it. */
.ab-holo::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 70%; height: 16px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--holo-rgb) / 0.75), rgb(var(--holo-rgb) / 0.18) 55%, transparent);
}
.ab-holo::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 8px; height: 46%; pointer-events: none;
  background: linear-gradient(0deg, rgb(var(--holo-rgb) / 0.16), transparent); clip-path: polygon(14% 100%, 86% 100%, 100% 0, 0 0);
  opacity: 0.6; transition: opacity 0.5s;
}
.ab-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; z-index: 1; display: grid; gap: 1.4rem; padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.4rem) clamp(1.4rem, 2.6vw, 2rem);
  text-decoration: none; color: var(--ink); transform-style: preserve-3d;
  transform: rotateX(var(--ry)) rotateY(var(--rx)); transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
  background: var(--scan), linear-gradient(180deg, rgb(var(--holo-rgb) / 0.09), rgb(var(--holo-rgb) / 0.025));
  border: 1px solid rgb(var(--holo-rgb) / 0.35);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.95), inset 0 0 60px -30px rgb(var(--holo-rgb) / 0.55), 0 0 40px -18px rgb(var(--holo-rgb) / 0.45);
  animation: fig-float 6s ease-in-out infinite;
}
.ab-holo:nth-child(2) .ab-card { animation-delay: -3s; }
.ab-card.is-tilting { transition: transform 0.12s linear, border-color 0.4s, box-shadow 0.5s; }
/* Corner brackets, as on the Intrepid panels. */
.ab-card::before, .ab-card::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--holo); filter: drop-shadow(0 0 4px var(--holo)); pointer-events: none; transform: translateZ(30px); }
.ab-card::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.ab-card::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.ab-card:hover, .ab-card:focus-visible { border-color: rgb(var(--holo-rgb) / 0.7); box-shadow: 0 50px 80px -40px rgb(0 0 0 / 0.95), inset 0 0 70px -28px rgb(var(--holo-rgb) / 0.7), 0 0 60px -14px rgb(var(--holo-rgb) / 0.6); }
.ab-holo:hover::after { opacity: 1; }
/* The picture floats furthest forward, the words a little behind it. */
.ab-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; transform: translateZ(46px); border: 1px solid rgb(var(--holo-rgb) / 0.3); box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.9); }
.ab-card-media::after { content: ""; position: absolute; inset: 0; background: var(--scan); pointer-events: none; }
.ab-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease-out); }
.ab-card:hover .ab-card-media img { scale: 1.05; }
.ab-card-media--apps { display: grid; place-items: center; align-content: center; gap: 0.9rem; background: radial-gradient(70% 70% at 50% 50%, rgb(var(--holo-rgb) / 0.12), rgb(var(--holo-rgb) / 0.03)); }
.ab-card-media--apps img { width: 58%; height: auto; padding: 8px 12px; background: #FFF8EE; border-radius: 2px; object-fit: contain; }
.ab-card-media--apps .wordtype { font-size: clamp(1.2rem, 2vw, 1.6rem); text-shadow: 0 0 20px rgb(var(--holo-rgb) / 0.6); }
.ab-card:hover .ab-card-media--apps img { scale: 1.03; }
.ab-card-body { display: grid; gap: 0.8rem; justify-items: start; transform: translateZ(26px); }
.ab-card-word { font: 700 clamp(2.4rem, 4.6vw, 4rem)/0.95 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--holo); text-shadow: -1px 0 var(--fringe), 0 0 30px rgb(var(--holo-rgb) / 0.4); }
.ab-card-text { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.6; max-width: 32rem; }
.ab-card-text strong { font-weight: 600; color: var(--ink); }
.ab-card:hover .more svg { transform: translateX(4px); }
/* The glare: a sheen of light that follows the pointer across the glass. */
.ab-card-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s; transform: translateZ(60px);
  background: radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / 0.13), rgb(var(--holo-rgb) / 0.05) 30%, transparent 55%); mix-blend-mode: screen; }
.ab-card:hover .ab-card-glare { opacity: 1; }

/* The team: each of us on a hologram plinth. Initials stand in until there are portraits. */
.ab-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.ab-member h3 { margin: 1.6rem 0 0.4rem; font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.ab-role { margin: 0 0 1rem; font: 600 0.74rem/1.3 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo); }
.ab-member > p:last-child { margin: 0; max-width: 32rem; color: var(--ink-dim); line-height: 1.65; }
.ab-plinth {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden;
  border-bottom: var(--line);
  background: radial-gradient(60% 55% at 50% 100%, rgb(var(--holo-rgb) / 0.09), transparent 70%), var(--scan);
}
.ab-beam { position: absolute; left: 22%; right: 22%; bottom: 0; height: 92%; background: linear-gradient(0deg, rgb(var(--holo-rgb) / 0.2), rgb(var(--holo-rgb) / 0.04) 55%, transparent 85%); clip-path: polygon(38% 100%, 62% 100%, 100% 0, 0 0); opacity: 0.6; transition: opacity 0.6s; }
.ab-pad { position: absolute; left: 50%; bottom: -5px; width: 46%; height: 12px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--holo-rgb) / 0.7), rgb(var(--holo-rgb) / 0.15) 60%, transparent); }
.ab-rings { position: absolute; left: 50%; top: 46%; width: 46%; aspect-ratio: 1; translate: -50% -50%; }
.ab-rings i { position: absolute; inset: 0; border: 1px solid rgb(var(--holo-rgb) / 0.45); border-radius: 50%; animation: pip-turn 14s linear infinite; }
.ab-rings i:nth-child(1) { scale: 1 0.3; }
.ab-rings i:nth-child(2) { scale: 0.3 1; animation-duration: 19s; animation-direction: reverse; }
.ab-mono, .ab-portrait { position: relative; margin-bottom: 8%; animation: fig-float 5s ease-in-out infinite; }
.ab-mono {
  /* Padding gives the glow room inside the scanline mask, which clips to the box. */
  padding: 0.45em 0.6em; margin-top: -0.45em;
  font: 700 clamp(4rem, 9vw, 7.5rem)/1 var(--display); letter-spacing: 0.04em; color: var(--holo-bright);
  text-shadow: -2px 0 var(--fringe), 0 0 28px rgb(var(--holo-rgb) / 0.7);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
  opacity: 0.85; transition: opacity 0.6s;
}
.ab-portrait { height: 92%; width: auto; margin: 8% 0 0; align-self: end; filter: drop-shadow(0 0 16px rgb(var(--holo-rgb) / 0.4)); -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.7) 2px 3px); mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgb(0 0 0 / 0.7) 2px 3px); }
.ab-member:hover .ab-beam { opacity: 1; }
.ab-member:hover .ab-mono { opacity: 1; }

/* How we work: three statements under drawn hairlines. */
.ab-principles { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.ab-principles li { position: relative; padding-top: 1.4rem; }
.ab-principles li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--holo), rgb(var(--holo-rgb) / 0.15)); }
.ab-principles h3 { margin: 0 0 0.7rem; font: 700 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.ab-principles p { margin: 0; color: var(--ink-dim); line-height: 1.65; }

/* Contact: back down to the ember, with the address as the headline act. */
/* Closer to the fire than the title, the lines beneath it are warmer: the line
   above the address peach, the address itself the most firelit. */
.ab-contact .lede { margin: 0; }
.ab-mail {
  display: inline-block; margin-top: 0.8rem; font: 600 clamp(1.4rem, 3.6vw, 2.8rem)/1.2 var(--display); letter-spacing: 0.01em;
  color: #FFB487; text-decoration: none; overflow-wrap: anywhere;
  text-shadow: 0 0 calc(20px * var(--fire)) rgb(255 115 55 / calc(0.4 * var(--fire)));
  background: linear-gradient(var(--ember-hot), var(--ember-hot)) 0 100% / 0 1px no-repeat; padding-bottom: 0.15em;
  transition: background-size 0.6s var(--ease-out), color 0.4s;
}
.ab-mail:hover, .ab-mail:focus-visible { background-size: 100% 1px; color: #FFD0B0; }
.ab-contact-actions { justify-content: center; margin-top: clamp(2rem, 4vw, 2.8rem); }

/* Placeholder text, to be replaced: marked so it can't be mistaken for finished copy. */
.ph { font-style: italic; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .nav .hide-sm { display: none; }
  .split, .comms, .game-hero, .studio { grid-template-columns: 1fr; }
  /* On phones the orrery fills the width and the readout sits under it. */
  .orrery { height: auto; }
  .orrery.is-live { padding-top: min(108vw, 470px); }
  .work-detail { position: relative; top: auto; translate: none; width: auto; }
  .feature { display: block; }
  .feature-copy { margin: -1.5rem 0.8rem 0; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .sec-head { position: static; }
  .product-row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-text { grid-column: 1 / -1; grid-row: 2; }
  .channel-row { grid-template-columns: 1fr 1fr; }
  .channel-row .channel { border-bottom: 1px solid rgb(var(--holo-rgb) / 0.2); }
  .channel-row .channel:nth-child(2n) { border-right: 0; }
  .channel-row .channel:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .briefing-grid, .pillar, .faq-grid, .tn-grid, .ex-grid { grid-template-columns: 1fr; }
  .pillar--flip .art-slot, .pillar--flip .art { order: 0; }
  .rival { grid-template-columns: 1fr; gap: 1rem; }
  .rival-mark { grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
  /* The crew row scrolls sideways on narrow screens, one figure and a bit per view. */
  .lineup-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 36vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lineup-row::-webkit-scrollbar { display: none; }
  .fig { scroll-snap-align: center; }
  .reel--page, .gallery-title, .viewer { width: 100%; }
  .viewer-nav { width: 40px; height: 40px; }
  .viewer-nav--prev { right: auto; left: 0.6rem; }
  .viewer-nav--next { left: auto; right: 0.6rem; }
  .viewer-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.3rem; }
  /* The map scales down on phones, so its labels scale up to stay readable. */
  .crew { grid-template-columns: 1fr 1fr; }
  .product-list, .features { grid-template-columns: 1fr; }
  .ab-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; }
  .ab-dream { order: -1; margin: 1.5rem 0 2rem; }
  .ab-story-grid, .ab-team, .ab-principles { grid-template-columns: 1fr; }
  .ab-story-grid > .title { position: static; }
  .ab-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .data { grid-template-columns: 1fr 1fr; }
  .data div:nth-child(2) { border-right: 0; }
  .data div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgb(var(--holo-rgb) / 0.2); }
  .emitter { width: 92vw; }
  .game-hero .globe-wrap { order: -1; max-width: 26rem; margin: 0 auto; }
}
@media (max-width: 560px) {
  .crew { grid-template-columns: 1fr; }
  .feature-copy { margin-inline: 0; }
  .uncharted { grid-template-columns: auto minmax(0, 1fr); }
  .uncharted .more { grid-column: 1 / -1; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:first-child, .shots--home li:first-child { grid-column: 1 / -1; }
  .dossier { grid-template-columns: 1fr; }
  .dossier p:last-child { grid-column: 1; grid-row: auto; margin-top: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .loader-ring, .loader-text { opacity: 1; }
}
