/* ==========================================================================
   VITRUVIAC GAMES — Design System
   Dark simulation · architectural geometry · ember & grey
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --bg: #07070a;
  --bg-1: #0c0c10;
  --bg-2: #121217;

  /* greys (ink) */
  --ink-900: #17171c;
  --ink-800: #1f1f25;
  --ink-700: #2a2a31;
  --ink-600: #383840;
  --ink-500: #4e4e58;
  --ink-400: #6f6f7a;
  --ink-300: #9a9aa4;
  --ink-200: #c6c6cd;
  --ink-100: #ebe9e4;
  --white: #f3f1ec;

  /* ember / burnt orange / brown */
  --ember-800: #5b230c;
  --ember-700: #7a300f;
  --ember-600: #9c4215;
  --ember-500: #c2561d;
  --ember-400: #df6c2b;
  --ember-300: #f08b4e;
  --ember-200: #f7b88c;
  --umber: #3a2416;
  --sienna: #5b3621;
  --copper: #b0703d;

  /* game accent (Paralux) — fluorescent lux */
  --lux: #e9dc9a;
  --lux-dim: #a99f6a;

  --accent: var(--ember-400);
  --accent-soft: rgba(223, 108, 43, 0.18);

  /* lines & glass */
  --line: rgba(243, 241, 236, 0.10);
  --line-2: rgba(243, 241, 236, 0.18);
  --glass: #121218;          /* solid: effects sit behind surfaces, never through them */
  --glass-2: #1a1a22;
  --glass-border: rgba(255, 255, 255, 0.085);
  --glass-hi: rgba(255, 255, 255, 0.16);

  /* type */
  --font-display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;

  /* layout */
  --nav-h: 76px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1480px;
  --radius: 20px;
  --radius-sm: 12px;

  /* mouse (for glass sheen), set by JS */
  --mx: 50%;
  --my: 0%;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-200);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--ember-500); color: #130803; }

img, svg, canvas, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ember-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* fine pointers get the custom cursor */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor input, body.has-cursor label, body.has-cursor summary { cursor: none; }
}

/* --------------------------------------------------------------------------
   2. Layers
   -------------------------------------------------------------------------- */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#circuit {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  opacity: 0.9;
}
.scroller {
  position: relative;
  z-index: 3;
  width: 100%;
  will-change: transform;
}
body.has-smooth .scroller { position: fixed; top: 0; left: 0; }
#scroll-spacer { width: 100%; pointer-events: none; }

.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 2; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.5), transparent 18%, transparent 82%, rgba(7, 7, 10, 0.6));
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--white);
}
.h-hero { font-size: clamp(56px, 11vw, 176px); }
.h1 { font-size: clamp(44px, 7vw, 112px); }
.h2 { font-size: clamp(34px, 4.8vw, 76px); }
.h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--white);
}
.h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.15; color: var(--white);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 500;
}
.mono-sm { font-size: 10px; letter-spacing: 0.16em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-300); font-weight: 500;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--ember-400), transparent);
}
.eyebrow .num {
  color: var(--ember-300);
}

.lead {
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-300);
  max-width: 62ch;
}
.body { font-size: 15.5px; line-height: 1.7; color: var(--ink-300); }
.body + .body { margin-top: 1em; }
.body strong { color: var(--ink-100); font-weight: 600; }

.accent { color: var(--ember-300); }
.muted { color: var(--ink-400); }
.white { color: var(--white); }

/* split-text reveal */
.split-text .word { display: inline-block; white-space: nowrap; }
.split-text .char {
  display: inline-block;
  transform: translateY(110%) rotateX(-40deg);
  opacity: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.split-text.is-in .char {
  animation: char-in 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 22ms + var(--d, 0ms));
}
@keyframes char-in {
  to { transform: translateY(0) rotateX(0); opacity: 1; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96) translateY(16px); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }

/* --------------------------------------------------------------------------
   4. Glass & surfaces
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 38%, rgba(255, 255, 255, 0) 70%),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 30px 80px -30px rgba(0, 0, 0, 0.75);
  isolation: isolate;
}
.glass::before {
  /* specular sheen that follows the pointer */
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.09), transparent 46%);
  opacity: 0; transition: opacity 0.6s var(--ease-out);
  z-index: 0;
}
.glass:hover::before { opacity: 1; }
.glass::after {
  /* liquid rim: a refractive highlight travelling the border */
  content: '';
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--angle),
    transparent 0%, transparent 18%,
    rgba(255, 255, 255, 0.42) 27%, transparent 36%,
    transparent 64%, rgba(223, 108, 43, 0.6) 76%, transparent 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.6s;
  z-index: 0;
}
.glass:hover::after { opacity: 1; animation: rim-spin 5s linear infinite; }
@keyframes rim-spin { to { --angle: 360deg; } }
.glass > * { position: relative; z-index: 1; }
.glass-static::after { display: none; }

.card { padding: clamp(22px, 2.2vw, 34px); }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.hairline-v { width: 1px; background: var(--line); }

.frame-corners {
  position: relative;
}
.frame-corners::before, .frame-corners::after,
.frame-corners > .fc::before, .frame-corners > .fc::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--line-2); pointer-events: none;
}
.frame-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame-corners::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.frame-corners > .fc::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.frame-corners > .fc::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* --------------------------------------------------------------------------
   5. Buttons, chips, tags
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--white); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  will-change: transform;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), var(--glass); }
.btn:hover::before { opacity: 1; }
.btn .arrow { display: inline-block; transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  color: #140803;
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--ember-300), var(--ember-500) 60%, var(--ember-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 36px -12px rgba(223, 108, 43, 0.7);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--ember-200), var(--ember-400) 60%, var(--ember-500));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 44px -12px rgba(240, 139, 78, 0.8);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 10.5px; }
.btn-icon { width: 50px; padding: 0; }
.btn[disabled], .btn.is-disabled { color: var(--ink-500); border-color: var(--line); background: var(--bg-2); box-shadow: none; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-300); border: 1px solid var(--line); background: var(--bg-2);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.chip:hover { color: var(--white); border-color: var(--line-2); }
.chip.is-active { color: var(--white); border-color: rgba(223, 108, 43, 0.5); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg-2); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-300);
}
.tag-ember { color: var(--ember-300); }

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-500); flex: none;
}
.dot-live { background: var(--ember-400); box-shadow: 0 0 10px var(--ember-400); animation: pulse-dot 2.2s ease-in-out infinite; }
.dot-lux { background: var(--lux); box-shadow: 0 0 10px var(--lux); animation: pulse-dot 2.2s ease-in-out infinite; }
.dot-off { background: var(--ink-600); }
.dot-warn { background: var(--copper); box-shadow: 0 0 8px var(--copper); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }

.link-line {
  position: relative; text-decoration: none; color: var(--ink-200);
  transition: color 0.3s;
}
.link-line::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-out);
}
.link-line:hover { color: var(--white); }
.link-line:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); opacity: 0; }

.nav-brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--white);
}
.nav-brand img { height: 38px; width: auto; opacity: 0.92; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12)); }
.nav-brand .brand-text {
  display: flex; flex-direction: column; gap: 3px;
}
.nav-brand .brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--white);
}
.nav-brand .brand-sub {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink-400);
}

.nav-pill {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px;
}
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-300); text-decoration: none;
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav-link .nl-dot {
  width: 4px; height: 4px; border-radius: 50%; background: transparent; transition: background 0.3s, box-shadow 0.3s;
}
.nav-link.is-active .nl-dot { background: var(--ember-400); box-shadow: 0 0 10px var(--ember-400); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.burger span {
  position: absolute; width: 16px; height: 1px; background: var(--white);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
body.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 15;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  background: var(--bg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.5s, visibility 0.5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-link {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 8vw, 72px); line-height: 1.05; color: var(--white);
  transform: translateY(30px); opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.6s;
  transition-delay: calc(var(--i) * 60ms);
}
.menu-link .mono { font-size: 11px; color: var(--ember-300); }
body.menu-open .menu-link { transform: none; opacity: 1; }
.menu-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   7. HUD
   -------------------------------------------------------------------------- */
.hud {
  position: fixed; z-index: 9; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-400);
  display: flex; flex-direction: column; gap: 6px;
  transition: opacity 0.6s;
}
.hud b { font-weight: 500; color: var(--ink-200); }
.hud-bl {
  left: var(--gutter); bottom: 28px;
  padding: 10px 14px 10px 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg) 75%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  padding-right: 48px;
}
.hud-br { right: var(--gutter); bottom: 28px; align-items: flex-end; text-align: right; }
.hud-tr { right: var(--gutter); top: calc(var(--nav-h) + 8px); align-items: flex-end; text-align: right; }
.hud-row { display: flex; align-items: center; gap: 10px; }
.hud .dot { width: 6px; height: 6px; }

.rail {
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 18px;
}
.rail-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-500); text-decoration: none; transition: color 0.3s;
}
.rail-item .rl { opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.rail:hover .rail-item .rl, .rail-item.is-active .rl { opacity: 1; transform: none; }
.rail-item .rn { color: var(--ink-400); }
.rail-item .rd {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-600);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  flex: none;
}
.rail-item.is-active { color: var(--white); }
.rail-item.is-active .rd { background: var(--ember-400); box-shadow: 0 0 12px var(--ember-400); transform: scale(1.3); }
.rail-line {
  position: absolute; right: 2.5px; top: 10px; bottom: 10px; width: 1px;
  background: var(--line); z-index: -1;
}
.rail-progress {
  position: absolute; right: 2.5px; top: 10px; width: 1px; height: 0;
  background: linear-gradient(180deg, var(--ember-500), var(--ember-300));
  z-index: -1; box-shadow: 0 0 8px rgba(223, 108, 43, 0.6);
}

/* --------------------------------------------------------------------------
   8. Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.cursor-ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.45s var(--ease-out), opacity 0.4s, border-color 0.4s;
}
.cursor-label {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%) translateY(6px);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; white-space: nowrap; opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.cursor.is-hover .cursor-ring { transform: scale(1.7); border-color: rgba(255, 255, 255, 0.5); }
.cursor.is-hover .cursor-dot { transform: scale(0.6); }
.cursor.is-down .cursor-ring { transform: scale(0.8); }
.cursor.is-text .cursor-ring { transform: scale(0.4); opacity: 0.4; }
.cursor.has-label .cursor-ring { transform: scale(2.4); }
.cursor.has-label .cursor-label { opacity: 1; transform: translateX(-50%) translateY(0); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   9. Loader & transitions
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 0.9s var(--ease-in-out), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader-svg { width: clamp(140px, 22vw, 220px); height: auto; overflow: visible; }
.loader-svg .draw {
  fill: none; stroke: var(--white); stroke-width: 1; stroke-linecap: round;
  stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000);
  animation: draw 2.2s var(--ease-in-out) forwards;
  animation-delay: var(--d, 0s);
  opacity: 0.9;
}
.loader-svg .node { fill: var(--ember-400); opacity: 0; animation: node-in 0.6s var(--ease-out) forwards; animation-delay: var(--d, 1.4s); filter: drop-shadow(0 0 6px var(--ember-400)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes node-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.loader-svg .node { transform-box: fill-box; transform-origin: center; }
.loader-text { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loader-pct {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 84px);
  color: var(--white); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.loader-pct sup { font-size: 0.32em; vertical-align: top; color: var(--ember-300); margin-left: 4px; font-weight: 600; }
.loader-status { min-height: 14px; }
.loader-status::after { content: '_'; animation: blink 1s steps(2) infinite; margin-left: 2px; }
.loader-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.loader-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--ember-600), var(--ember-300)); box-shadow: 0 0 14px var(--ember-400); transition: width 0.2s; }
.loader-corner { position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-500); }
.loader-corner.tl { top: 28px; left: var(--gutter); }
.loader-corner.tr { top: 28px; right: var(--gutter); text-align: right; }
.loader-corner.bl { bottom: 28px; left: var(--gutter); }
.loader-corner.br { bottom: 28px; right: var(--gutter); text-align: right; }
@keyframes blink { 50% { opacity: 0; } }

.page-veil {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: var(--bg);
  opacity: 0; transition: opacity 0.55s var(--ease-in-out);
  display: flex; align-items: center; justify-content: center;
}
.page-veil img { width: 72px; opacity: 0; transform: scale(0.9); transition: opacity 0.4s, transform 0.6s var(--ease-out); }
body.is-leaving .page-veil { opacity: 1; pointer-events: auto; }
body.is-leaving .page-veil img { opacity: 0.9; transform: scale(1); }
body.is-arriving .page-veil { opacity: 1; transition: none; }
body.is-arriving .page-veil img { opacity: 0.9; transform: scale(1); transition: none; }

/* --------------------------------------------------------------------------
   10. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 72px;
  perspective: 1500px;
}
.section-auto { min-height: 0; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.panel {
  position: relative; width: 100%; max-width: var(--max); margin: 0 auto;
  transform-style: preserve-3d; will-change: transform, opacity;
}
.split {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center;
}
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }
.start-7 { grid-column: 7 / -1; }
.start-8 { grid-column: 8 / -1; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { gap: 12px; }
.stack-lg { gap: 36px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.between { justify-content: space-between; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head .lead { max-width: 48ch; }

.meta-list { display: flex; flex-direction: column; gap: 10px; }
.meta-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meta-list li span:last-child { color: var(--ink-100); text-align: right; }

/* --------------------------------------------------------------------------
   11. HOME — Hero
   -------------------------------------------------------------------------- */
.hero { align-items: flex-end; padding-bottom: 96px; }
.hero .panel {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-space { height: clamp(220px, 44vh, 520px); width: 100%; }
.hero-wordmark {
  width: clamp(260px, 54vw, 1000px); height: auto;
  opacity: 0; filter: blur(14px); transform: translateY(16px) scale(0.985);
  clip-path: inset(0 50% 0 50%);
  transition: opacity 1.4s var(--ease-out), filter 1.6s var(--ease-out), transform 1.6s var(--ease-out), clip-path 1.8s var(--ease-in-out);
}
body.is-ready .hero-wordmark { opacity: 0.96; filter: blur(0); transform: none; clip-path: inset(0 0 0 0); }
.hero-lead { margin-top: 30px; max-width: 58ch; text-align: center; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: -40px;
  display: flex; justify-content: space-between; gap: 16px;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-400);
  opacity: 0; transition: opacity 1s 1.4s;
}
body.is-ready .scroll-cue { opacity: 1; }
.scroll-cue i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--ink-300), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: linear-gradient(180deg, transparent, var(--ember-300)); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* --------------------------------------------------------------------------
   12. HOME — Canon
   -------------------------------------------------------------------------- */
.canon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.principle {
  position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 42px;
  transition: transform 0.7s var(--ease-out);
}
.principle:hover { transform: translateY(-6px); }
.principle-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.principle-num { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: var(--ember-300); }
.principle-ico { width: 44px; height: 44px; opacity: 0.85; }
.principle-ico * { fill: none; stroke: var(--ink-200); stroke-width: 1; vector-effect: non-scaling-stroke; }
.principle-ico .acc { stroke: var(--ember-400); }
.principle-title { display: flex; flex-direction: column; gap: 6px; }
.principle-latin {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(22px, 2vw, 30px); color: var(--white); line-height: 1;
}
.principle-en { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-400); }
.principle p { color: var(--ink-300); font-size: 15px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   13. HOME — Worlds
   -------------------------------------------------------------------------- */
.worlds-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px;
}
.world-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; text-decoration: none; color: inherit;
  transition: transform 0.7s var(--ease-out);
}
.world-card:hover { transform: translateY(-6px); }
.world-card.featured { grid-row: 1 / span 2; min-height: 560px; }
.world-visual {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2) 70%, transparent);
}
.world-visual canvas { width: 100%; height: 100%; }
.world-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.world-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: inherit; }
.world-card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: auto; }
.world-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(28px, 3vw, 48px); color: var(--white); line-height: 0.95;
}
.world-card.featured .world-title { font-size: clamp(40px, 5vw, 76px); }
.world-card.featured .world-title { text-shadow: 0 0 40px rgba(233, 220, 154, 0.25); }
.world-desc { color: var(--ink-300); font-size: 15px; max-width: 46ch; }
.world-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.world-card.redacted .world-title { color: var(--ink-300); }
.redact {
  display: inline-block; background: repeating-linear-gradient(90deg, var(--ink-600) 0 6px, var(--ink-700) 6px 12px);
  color: transparent; border-radius: 3px; user-select: none;
}

/* --------------------------------------------------------------------------
   14. HOME — Simulation
   -------------------------------------------------------------------------- */
.sim-card { padding: 16px; overflow: hidden; }
.sim-canvas-wrap { position: relative; border-radius: calc(var(--radius) - 8px); overflow: hidden; background: #050507; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.sim-canvas-wrap canvas { width: 100%; height: 100%; touch-action: none; }
.sim-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; }
.sim-overlay .row { justify-content: space-between; }
.sim-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 2px; flex-wrap: wrap; }
.sim-regimes { display: flex; gap: 6px; flex-wrap: wrap; }
.sim-readout { display: grid; grid-template-columns: repeat(3, auto); gap: 18px; }
.sim-readout div { display: flex; flex-direction: column; gap: 3px; }
.sim-readout b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--ink-100); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.feature-list { display: flex; flex-direction: column; margin-top: 36px; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feature-list .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ember-300); }
.feature-list h4 { margin-bottom: 4px; }
.feature-list p { color: var(--ink-400); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   15. HOME — Studio & Signal
   -------------------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.stat b { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); color: var(--white); line-height: 1.1; }
.quote {
  position: relative; padding-left: 28px; margin-top: 36px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; color: var(--ink-100);
}
.quote::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, var(--ember-400), transparent); }
.quote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-400); }

.signal .panel { display: flex; flex-direction: column; }
.signal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.channel-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.channel {
  display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: padding-left 0.5s var(--ease-out);
}
.channel:hover { padding-left: 10px; }
.channel .ch-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--white); }
.channel .ch-val { color: var(--ink-300); font-size: 14.5px; word-break: break-all; }
.channel .arrow { color: var(--ember-300); transition: transform 0.45s var(--ease-out); }
.channel:hover .arrow { transform: translate(4px, -4px); }
.newsletter { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.field { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-1); }
.field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--white); font: inherit; font-size: 15px; outline: none; }
.field input::placeholder { color: var(--ink-500); }
.field:focus-within { border-color: rgba(223, 108, 43, 0.6); box-shadow: 0 0 0 4px rgba(223, 108, 43, 0.12); }
.form-note { font-size: 12.5px; color: var(--ink-500); }
.form-ok { color: var(--ember-300); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative; z-index: 2;
  padding: 72px var(--gutter) 36px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { width: 150px; opacity: 0.9; }
.footer-brand p { color: var(--ink-400); font-size: 14px; max-width: 32ch; }
.footer-col h5 { margin: 0 0 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-400); font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-300); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max); margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-marquee { position: relative; overflow: hidden; margin: 56px calc(-1 * var(--gutter)) 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.footer-marquee span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(14px, 1.5vw, 20px); color: var(--ink-600); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.footer-marquee span i { width: 5px; height: 5px; border-radius: 50%; background: var(--ember-500); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   17. Subpage header
   -------------------------------------------------------------------------- */
.page-hero { min-height: 72vh; align-items: flex-end; padding-bottom: 56px; }
.page-hero .panel { display: flex; flex-direction: column; gap: 28px; }
.page-hero .h1 { max-width: 14ch; }
.page-hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.page-hero-meta div { display: flex; flex-direction: column; gap: 6px; }
.page-hero-meta b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-100); }

/* --------------------------------------------------------------------------
   18. PARALUX
   -------------------------------------------------------------------------- */
.page-paralux { --accent: var(--lux); --accent-soft: rgba(233, 220, 154, 0.12); }
.px-hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: 72px; }
.px-hero .panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.px-title {
  position: relative; display: inline-block; white-space: nowrap;
  font-size: clamp(54px, 11vw, 196px); letter-spacing: 0.01em; line-height: 0.86;
  color: var(--white);
  text-shadow: 0 0 28px rgba(233, 220, 154, 0.18), 0 0 90px rgba(233, 220, 154, 0.08);
  animation: flicker 9s linear infinite;
}
.px-title .fl { display: inline-block; animation: flicker-char 7s linear infinite; animation-delay: var(--fd, 0s); }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.86; }
  94% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
}
@keyframes flicker-char {
  0%, 96%, 100% { opacity: 1; text-shadow: inherit; }
  97% { opacity: 0.35; }
  98% { opacity: 1; }
  99% { opacity: 0.6; }
}
.px-sub { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.px-sub .lead { max-width: 52ch; }
.px-side { display: flex; flex-direction: column; gap: 14px; min-width: 240px; }
.px-side .stat { padding: 16px 18px; }
.px-side .stat b { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; }
.px-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.page-paralux .btn-primary {
  color: #141203;
  background: linear-gradient(180deg, #f3ebb8, var(--lux) 60%, #c9bc78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 36px -12px rgba(233, 220, 154, 0.55);
}
.page-paralux .btn-primary:hover { background: linear-gradient(180deg, #fff8d2, #f0e4a8 60%, #d9cc86); }
.page-paralux .chip.is-active { border-color: rgba(233, 220, 154, 0.5); }
.page-paralux .eyebrow::before { background: linear-gradient(90deg, var(--lux), transparent); }
.page-paralux .eyebrow .num { color: var(--lux); }
.page-paralux .rail-item.is-active .rd, .page-paralux .nav-link.is-active .nl-dot { background: var(--lux); box-shadow: 0 0 10px var(--lux); }

.px-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.px-feature { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; transition: transform 0.7s var(--ease-out); }
.px-feature:hover { transform: translateY(-6px); }
.px-feature .vis { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; mask-image: linear-gradient(180deg, #000 30%, transparent 92%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); }
.px-feature .vis canvas { width: 100%; height: 100%; }
.px-feature .num { position: absolute; top: 22px; left: 24px; z-index: 2; }
.px-feature h4 { font-size: clamp(18px, 1.5vw, 22px); }
.px-feature p { color: var(--ink-400); font-size: 14px; }

/* server browser */
.servers-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.servers-summary .stat b { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 40px); font-variant-numeric: tabular-nums; }
.servers-summary .stat .mono { display: flex; align-items: center; gap: 8px; }
.servers-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.servers-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.servers-search { height: 40px; padding: 0 16px; border-radius: 999px; min-width: 240px; }
.servers-search input { font-size: 13px; }
.servers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.server {
  padding: 22px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}
.server:hover { transform: translateY(-4px); }
.server.is-offline { opacity: 0.72; }
.server.is-full { border-color: rgba(176, 112, 61, 0.45); }
.server-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.server-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-300); }
.server-status.online { color: var(--lux); }
.server-status.offline { color: var(--ink-500); }
.server-status.maintenance { color: var(--copper); }
.server-status.checking { color: var(--ink-400); }
.server-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); color: var(--white); line-height: 1.15; }
.server-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.server-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-400); }
.server-meta span b { font-weight: 500; color: var(--ink-200); }
.server-players { display: flex; flex-direction: column; gap: 8px; }
.server-players .row { justify-content: space-between; }
.bar { position: relative; height: 3px; background: var(--ink-800); border-radius: 2px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 2px; background: linear-gradient(90deg, var(--lux-dim), var(--lux)); box-shadow: 0 0 10px rgba(233, 220, 154, 0.5); transition: width 1s var(--ease-out); }
.server.is-full .bar i { background: linear-gradient(90deg, var(--ember-600), var(--ember-400)); box-shadow: 0 0 10px rgba(223, 108, 43, 0.5); }
.server-address {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-200);
}
.server-address code { font: inherit; word-break: break-all; }
.server-hint { margin: 0; color: var(--ink-400); line-height: 1.5; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.copy-btn:hover { color: var(--white); border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.copy-btn.is-copied { color: var(--lux); border-color: rgba(233, 220, 154, 0.5); }
.server-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.server-actions .btn { height: 42px; padding: 0 18px; font-size: 10.5px; }
.servers-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.servers-empty { padding: 48px; text-align: center; color: var(--ink-400); grid-column: 1 / -1; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--ink-700); line-height: 1; }
.step h4 { font-size: 18px; }
.step p { color: var(--ink-400); font-size: 14.5px; }
.step code { font-family: var(--font-mono); font-size: 12px; color: var(--lux); background: rgba(233, 220, 154, 0.08); padding: 2px 6px; border-radius: 4px; }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--lux); padding-top: 4px; }
.rules h4 { font-size: 16px; margin-bottom: 4px; }
.rules p { color: var(--ink-400); font-size: 14px; }

/* web-build player */
.player { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #050507; outline: none; }
.player-stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; background: #000; }
.player-frame { position: absolute; inset: 0; z-index: 1; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; display: block; }
.player-cover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center;
  background:
    radial-gradient(60% 70% at 50% 42%, rgba(233, 220, 154, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.25), rgba(7, 7, 10, 0.7));
  transition: opacity 0.6s, visibility 0.6s;
}
.player-cover::before {
  /* faint corridor lines behind the cover */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background:
    linear-gradient(to bottom right, transparent 49.6%, rgba(243, 241, 236, 0.12) 49.6%, rgba(243, 241, 236, 0.12) 50.4%, transparent 50.4%),
    linear-gradient(to bottom left, transparent 49.6%, rgba(243, 241, 236, 0.12) 49.6%, rgba(243, 241, 236, 0.12) 50.4%, transparent 50.4%);
  mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 100%);
}
.player.is-running .player-cover { opacity: 0; visibility: hidden; pointer-events: none; }
.player-cover-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 680px; }
.player-state .dot { background: var(--ink-500); }
.player[data-state="ready"] .player-state .dot { background: var(--lux); box-shadow: 0 0 10px var(--lux); animation: pulse-dot 2.2s ease-in-out infinite; }
.player[data-state="offline"] .player-state .dot { background: var(--copper); box-shadow: 0 0 8px var(--copper); }
.player[data-state="ready"] .player-state { color: var(--lux); }
.player-title { font-size: clamp(22px, 2.8vw, 40px); }
.player-note { color: var(--ink-300); font-size: 14.5px; max-width: 54ch; }
.player-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.player-key {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400);
}
.player-key kbd { font: inherit; color: var(--white); font-weight: 500; }
.player-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.player-offline { font-size: 13.5px; color: var(--ink-400); max-width: 60ch; line-height: 1.6; }
.player-offline code { font-family: var(--font-mono); font-size: 12px; color: var(--lux); background: rgba(233, 220, 154, 0.08); padding: 1px 6px; border-radius: 4px; }
.player-hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); }
.player-bar {
  display: none; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.6);
}
.player.is-running .player-bar { display: flex; }
.player-bar-left { display: inline-flex; align-items: center; gap: 10px; }
.player-bar-right { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pb-btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300);
  text-decoration: none; transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.pb-btn:hover { color: var(--white); border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); }
.pb-close:hover { color: var(--ember-300); border-color: rgba(223, 108, 43, 0.5); }
.player-loading {
  position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #050507;
}
.player.is-loading .player-loading { display: flex; }
.player-loading svg { width: 60px; height: 60px; overflow: visible; }
.player-loading svg * { fill: none; stroke: var(--lux); stroke-width: 1; opacity: 0.85; transform-origin: 32px 32px; }
.player-loading svg circle:first-child { stroke-dasharray: 40 124; animation: spin 2.4s linear infinite; }
.player-loading svg rect { animation: spin 9s linear infinite reverse; opacity: 0.4; }
.player-loading svg .c { fill: var(--lux); stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* dedicated player page */
.page-play { height: 100vh; height: 100svh; overflow: hidden; }
.play-top {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line); background: var(--bg-1);
}
.play-top .nav-brand img { height: 30px; }
.play-status { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.play-status b { color: var(--ink-100); font-weight: 500; }
.play-select select {
  appearance: none; -webkit-appearance: none;
  max-width: min(46vw, 460px); height: 36px; padding: 0 34px 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%239a9aa4' stroke-width='1.2'/></svg>") no-repeat right 12px center;
  color: var(--ink-100); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
}
.play-select select:focus { outline: none; border-color: rgba(233, 220, 154, 0.6); }
.play-select option { background: #0c0c10; color: var(--ink-100); text-transform: none; letter-spacing: 0; }
.player-server { font-size: 14px; color: var(--ink-300); }
.player-server b { color: var(--lux); font-weight: 500; }
.player-server a { color: var(--ink-200); margin-left: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.server.is-current { border-color: rgba(233, 220, 154, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(233, 220, 154, 0.12), 0 30px 80px -30px rgba(0, 0, 0, 0.75); }
.server-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.server-actions > .row { justify-content: space-between; }
.server-actions .btn[disabled] { opacity: 0.45; pointer-events: none; }
.page-play .vignette { z-index: 1; }
.page-play #circuit { z-index: 0; }
.play-main { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px var(--gutter) 14px; }
.player-full { height: 100%; }
.player-full .player-stage { aspect-ratio: auto; flex: 1; min-height: 0; }
@media (max-width: 720px) {
  .play-top { height: 58px; padding: 0 14px; }
  .play-main { top: 58px; padding: 8px; }
  .play-top .btn-sm { height: 36px; padding: 0 12px; }
  .play-top .row .btn-sm:first-child { display: none; }
  .play-select select { max-width: 38vw; }
  .play-status .nowrap { display: none; }
  .player-bar { padding-left: 12px; }
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-400); font-weight: 500; }
.spec-table td:first-child { color: var(--ink-400); width: 22%; }
.spec-table td { color: var(--ink-200); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--white); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; transition: transform 0.5s var(--ease-out), border-color 0.3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--ink-200); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s; }
.faq details[open] summary i { transform: rotate(45deg); border-color: var(--lux); }
.faq details p { padding: 0 0 22px; color: var(--ink-400); max-width: 70ch; font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 20px); z-index: 90;
  padding: 12px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white);
  opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   19. TRANSMISSIONS
   -------------------------------------------------------------------------- */
.posts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post { position: relative; display: grid; grid-template-columns: 180px 1fr 140px; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background 0.4s; }
.post-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); display: flex; flex-direction: column; gap: 6px; }
.post-date b { color: var(--ink-100); font-weight: 500; }
.post-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 30px); color: var(--white); line-height: 1.15; }
.post-title button { text-align: left; font: inherit; color: inherit; transition: color 0.3s; }
.post-title button:hover { color: var(--ember-300); }
.post-excerpt { margin-top: 10px; color: var(--ink-300); font-size: 15px; max-width: 70ch; }
.post-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.post-body > div { overflow: hidden; }
.post.is-open .post-body { grid-template-rows: 1fr; }
.post-body .inner { padding-top: 18px; color: var(--ink-300); font-size: 15px; line-height: 1.7; max-width: 70ch; }
.post-body .inner p + p { margin-top: 1em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.post-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.post-tag.paralux { color: var(--lux); border-color: rgba(233, 220, 154, 0.3); }
.post-tag.studio { color: var(--ember-300); border-color: rgba(223, 108, 43, 0.3); }

/* --------------------------------------------------------------------------
   20. PRESS
   -------------------------------------------------------------------------- */
.press-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.press-block { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.press-block h3 { font-size: clamp(18px, 1.6vw, 24px); }
.logo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.logo-tile { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.logo-tile .lt-preview { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 20px; }
.logo-tile .lt-preview.dark { background: radial-gradient(80% 80% at 50% 40%, #16161c, #09090c); }
.logo-tile .lt-preview.light { background: radial-gradient(80% 80% at 50% 40%, #fbfaf6, #e6e3dc); }
.logo-tile .lt-preview img { max-height: 100%; width: auto; max-width: 86%; }
.logo-tile .lt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.logo-tile .lt-foot a { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-300); text-decoration: none; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { height: 92px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; gap: 2px; }
.swatch span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.swatch .sw-name { color: inherit; opacity: 0.85; }
.type-specimen { display: flex; flex-direction: column; gap: 14px; }
.type-specimen .spec { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.type-specimen .spec > span:last-child { font-size: 26px; color: var(--white); line-height: 1.1; }

/* --------------------------------------------------------------------------
   21. LEGAL (prose)
   -------------------------------------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); transition: color 0.3s, background 0.3s; }
.legal-nav a:hover, .legal-nav a.is-active { color: var(--white); background: rgba(255, 255, 255, 0.04); }
.prose { max-width: 72ch; color: var(--ink-300); font-size: 15.5px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); color: var(--white); margin: 0 0 20px; line-height: 1; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--white); margin: 32px 0 10px; }
.prose p { margin: 0 0 1em; }
.prose ul { list-style: disc; padding-left: 20px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose .placeholder { color: var(--ember-300); background: rgba(223, 108, 43, 0.08); padding: 0 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.9em; }
.prose section + section { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.prose .updated { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 28px; display: block; }

/* --------------------------------------------------------------------------
   22. 404
   -------------------------------------------------------------------------- */
.notfound { min-height: 100vh; min-height: 100svh; align-items: center; }
.notfound .panel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.notfound .h-hero { font-size: clamp(64px, 18vw, 260px); line-height: 0.85; }

/* --------------------------------------------------------------------------
   23. Utilities
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.hide { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .px-features { grid-template-columns: repeat(2, 1fr); }
  .servers-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-pill { display: none; }
  .burger { display: inline-flex; }
  .nav-right .btn { display: none; }
  .rail { display: none; }
  .hud-tr { display: none; }
  .split { gap: 28px; }
  .col-5, .col-6, .col-7, .col-4, .col-8, .start-7, .start-8 { grid-column: 1 / -1; }
  .canon-grid { grid-template-columns: 1fr; }
  .principle { min-height: 0; gap: 28px; }
  .worlds-grid { grid-template-columns: 1fr; }
  .world-card.featured { grid-row: auto; min-height: 440px; }
  .signal-grid { grid-template-columns: 1fr; gap: 32px; }
  .px-hero .panel { grid-template-columns: minmax(0, 1fr); }
  .px-title { font-size: clamp(38px, 11.4vw, 120px); }
  .px-side { flex-direction: row; flex-wrap: wrap; }
  .px-side .stat { flex: 1 1 160px; }
  .servers-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 12px; }
  .post-tags { justify-content: flex-start; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .press-grid > * { grid-column: 1 / -1 !important; }
  .logo-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root { --nav-h: 66px; --radius: 16px; }
  .nav-brand img { height: 30px; }
  .nav-brand .brand-text { display: none; }
  .hero { padding-bottom: 72px; }
  .hero-space { height: clamp(180px, 34vh, 320px); }
  .scroll-cue { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero-wordmark { width: min(86vw, 520px); }
  .hero-meta { display: none; }
  .hud-bl { bottom: 18px; }
  .hud-br { display: none; }
  .section { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 56px; }
  .section-head { margin-bottom: 28px; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .px-features { grid-template-columns: 1fr; }
  .px-feature { min-height: 260px; }
  .servers-summary { grid-template-columns: repeat(2, 1fr); }
  .servers-toolbar { align-items: stretch; flex-direction: column; }
  .servers-search { min-width: 0; }
  .logo-tiles { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .channel { grid-template-columns: 1fr auto; }
  .channel .ch-name { grid-column: 1 / -1; }
  .sim-readout { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-marquee { margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   24b. Modal (trailer)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(7, 7, 10, 0.82);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(1120px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #050507; transform: scale(0.96); transition: transform 0.6s var(--ease-out); }
.modal.is-open .modal-box { transform: none; }
.modal-box iframe, .modal-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close::before, .modal-close::after { content: ''; position: absolute; width: 16px; height: 1px; background: var(--white); transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }

.px-hero .scroll-cue { bottom: 22px; }
.px-posts .post { grid-template-columns: 150px 1fr; padding: 22px 0; }
.px-posts .post-title { font-size: clamp(18px, 1.6vw, 24px); }
.px-posts .post-title a { text-decoration: none; color: inherit; transition: color 0.3s; }
.px-posts .post-title a:hover { color: var(--lux); }

/* --------------------------------------------------------------------------
   25. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .split-text .char { transform: none; opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
  .hero-wordmark { opacity: 0.96; filter: none; transform: none; clip-path: none; }
  .scroll-cue { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Accounts — nav button, login / sign-up page
   -------------------------------------------------------------------------- */
.nav-account { gap: 8px; }
.nav-account-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); flex: none; }
.nav-account.is-signed-in .nav-account-dot { background: var(--lux); box-shadow: 0 0 8px rgba(233, 220, 154, 0.7); }
@media (max-width: 1024px) { .nav-right .nav-account { display: inline-flex; } }

.account-hero { min-height: 52vh; }
.account-section { padding-top: 24px; }
.account-card { max-width: 520px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.account-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.account-form { display: flex; flex-direction: column; gap: 18px; }
.account-form.is-busy { opacity: 0.7; }
.account-form .btn { align-self: flex-start; }
.account-field { display: flex; flex-direction: column; gap: 8px; }
.account-field > .mono { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-300); }
.account-field em { font-style: normal; color: var(--ink-500); text-transform: none; letter-spacing: 0; }
.account-field input {
  height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.3); color: var(--white); font: inherit; font-size: 15px; outline: none;
}
.account-field input:focus { border-color: rgba(223, 108, 43, 0.6); box-shadow: 0 0 0 4px rgba(223, 108, 43, 0.12); }
.account-field small { font-size: 12.5px; color: var(--ink-500); }
.account-error { margin: 0; min-height: 1em; font-size: 13.5px; color: var(--ember-300); }
.account-error:empty { display: none; }
.account-name { margin: 0; }
.account-facts { display: grid; gap: 14px; margin: 0; }
.account-facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.account-facts dt { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); }
.account-facts dd { margin: 0; color: var(--ink-100); text-align: right; overflow-wrap: anywhere; }
.player-login { font-size: 13.5px; color: var(--ink-300); margin: 0; }
.player-login b { color: var(--white); }
.account-error.is-ok { color: var(--lux); }
