/* ==========================================================================
   ACTIVATE 26 · Protocol 2088
   Mobile first. Ember = humanity, signal cyan = the machines.
   ========================================================================== */

:root {
  --void: #07060b;
  --ash: #13101a;
  --ash-2: #1b1724;
  --line: rgba(243, 237, 228, 0.12);
  --line-strong: rgba(243, 237, 228, 0.24);
  --ember: #ff5a1f;
  --ember-soft: rgba(255, 90, 31, 0.16);
  --haze: #ff8a7a;
  --amber: #ffb547;
  --signal: #5ee6ff;
  --signal-soft: rgba(94, 230, 255, 0.14);
  --bone: #f3ede4;
  --dust: #a49bb0;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(18px, 5vw, 64px);
  --maxw: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  /* every section, the nav, the HUD and the story share this left/right edge */
  --gutter: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  --fs-hero: clamp(2.3rem, 11.2vw, 7.6rem);
  --fs-display: clamp(2.05rem, 6.6vw, 4.6rem);
  --fs-h3: clamp(1.12rem, 1.9vw, 1.32rem);
  --fs-lead: clamp(1rem, 1.5vw, 1.15rem);
  --fs-label: 0.72rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--void); }

.mono { font-family: var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.display {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0 -0.04em; /* optical: Unbounded's side bearing would push it right of the kicker */
  font-size: var(--fs-display);
  text-wrap: balance;
}
.accent {
  background: linear-gradient(92deg, var(--amber), var(--ember) 55%, var(--haze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  font-size: var(--fs-label);
  line-height: 1.4;
  color: var(--signal);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.muted { color: var(--dust); font-weight: 400; }
.lead { color: var(--dust); font-size: var(--fs-lead); line-height: 1.6; max-width: 52ch; margin: 22px 0 0; text-wrap: pretty; }
p { text-wrap: pretty; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ember); color: var(--void); padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg);
  font: 600 0.98rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
}
.btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn--primary {
  --bg: var(--ember);
  border-color: transparent; color: #140703;
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5), 0 12px 40px -12px rgba(255, 90, 31, 0.8);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.18), 0 18px 50px -12px rgba(255, 90, 31, 0.9); }
.btn--ghost { background: rgba(7, 6, 11, 0.62); }
.btn--ghost:hover { border-color: var(--signal); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--void);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { display: grid; justify-items: center; gap: 20px; color: var(--bone); }
.boot__mark { width: 64px; height: 64px; }
.boot__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.boot__mark path + path { animation-delay: 0.25s; }
.boot__line { font-size: 0.7rem; color: var(--dust); margin: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.js) .boot { display: none; }

/* ---------- World (3D canvas) ---------- */
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.world canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.8s var(--ease); }
.world__fallback {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s;
  background:
    radial-gradient(60% 45% at 50% 78%, rgba(255, 90, 31, 0.35), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(94, 230, 255, 0.12), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #1a0f2e, var(--void) 70%);
}
.no-webgl .world__fallback { opacity: 1; }
.no-webgl .world canvas { display: none; }
.world.is-dim canvas { opacity: 0.18; }
.world.is-off canvas { opacity: 0; }

.grain {
  position: fixed; inset: -10%; z-index: 60; pointer-events: none; opacity: 0.06; will-change: transform;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@media (pointer: coarse) { .grain { animation: none; } }
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-2%, -4%); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 59; pointer-events: none; opacity: 0.22;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--signal), var(--ember));
}

/* custom cursor (fine pointers only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid rgba(94, 230, 255, 0.7); border-radius: 50%;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), border-color 0.3s, background 0.3s;
  }
  .cursor span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--signal); }
  .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ember); background: rgba(255, 90, 31, 0.08); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.4s, transform 0.5s var(--ease);
}
.nav.is-solid { background: rgba(9, 7, 13, 0.92); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 0.95rem var(--f-display); letter-spacing: 0.04em; }
.nav__brand sup { color: var(--ember); font-size: 0.6em; margin-left: 2px; }
.nav__links { display: none; margin-left: auto; gap: 26px; }
.nav__links a { text-decoration: none; font-size: 0.9rem; color: var(--dust); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__cta { margin-left: auto; }
.nav__burger {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(7, 6, 11, 0.4); display: grid; place-content: center; gap: 6px; cursor: pointer;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 979px) {
  .nav { gap: 10px; }
  .nav__brand { font-size: 0.85rem; gap: 8px; }
  .nav__cta { padding: 0 14px; }
}
@media (max-width: 370px) { .nav__brand span { display: none; } }
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 12px; }
  .nav__burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(7, 6, 11, 0.98);
  padding: calc(var(--nav-h) + 30px) var(--gutter) calc(30px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  font: 800 clamp(1.6rem, 8vw, 2.6rem)/1.15 var(--f-display);
  opacity: 0; transform: translateY(16px);
  animation: menuIn 0.6s var(--ease) forwards;
}
.menu nav a span { font-size: 0.7rem; color: var(--ember); }
.menu nav a:nth-child(2) { animation-delay: 0.04s; } .menu nav a:nth-child(3) { animation-delay: 0.08s; }
.menu nav a:nth-child(4) { animation-delay: 0.12s; } .menu nav a:nth-child(5) { animation-delay: 0.16s; }
.menu nav a:nth-child(6) { animation-delay: 0.2s; } .menu nav a:nth-child(7) { animation-delay: 0.24s; }
.menu nav a:nth-child(8) { animation-delay: 0.28s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.menu__foot { font-size: 0.66rem; color: var(--dust); }

/* ---------- HUD bits ---------- */
.hud { position: absolute; font-size: 0.66rem; color: var(--dust); z-index: 2; display: flex; align-items: center; gap: 8px; }
.hud--tl { top: calc(var(--nav-h) + 14px); left: var(--gutter); }
.hud--tr { top: calc(var(--nav-h) + 14px); right: var(--gutter); }
.hud--bl { bottom: calc(22px + var(--safe-b)); left: var(--gutter); }
.hud--br { bottom: calc(22px + var(--safe-b)); right: var(--gutter); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--nav-h) + 40px) var(--gutter) calc(120px + var(--safe-b));
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 45%, rgba(7, 6, 11, 0.55), transparent 75%);
}
.hero__content { display: grid; justify-items: center; width: 100%; max-width: 980px; }
.hero__content > * { max-width: 100%; }
.hero .kicker { flex-wrap: wrap; justify-content: center; text-align: center; }
.hero__tagline, .hero__meta, .hero .kicker, .logo__sub { text-shadow: 0 2px 14px rgba(7, 6, 11, 0.95), 0 0 2px rgba(7, 6, 11, 0.8); }
@media (max-width: 520px) { .hero .kicker::before { display: none; } .logo__sub { letter-spacing: 0.28em; } }
.logo { margin: 0; display: grid; justify-items: center; gap: 10px; }
.logo__mark { width: clamp(64px, 16vw, 104px); height: auto; filter: drop-shadow(0 0 22px rgba(255, 90, 31, 0.55)); }
.logo__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-ready .logo__mark path { animation: draw 1.4s var(--ease) forwards; }
.is-ready .logo__mark .logo__a { animation-delay: 0.35s; }
.is-ready .logo__mark .logo__bar { animation-delay: 0.9s; }
.logo__word {
  display: flex;
  font: 900 var(--fs-hero)/0.9 var(--f-display);
  letter-spacing: -0.035em;
  filter: drop-shadow(0 6px 30px rgba(255, 90, 31, 0.35));
}
.logo__word span {
  display: inline-block; opacity: 0; transform: translateY(0.35em) scale(0.96);
  background: linear-gradient(180deg, #fff 10%, var(--bone) 45%, #c9b9a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.is-ready .logo__word span { animation: letterOn 0.9s var(--ease) forwards, flicker 2.6s 1.2s; }
.is-ready .logo__word span:nth-child(1) { animation-delay: 0.5s, 1.3s; }
.is-ready .logo__word span:nth-child(2) { animation-delay: 0.56s, 1.8s; }
.is-ready .logo__word span:nth-child(3) { animation-delay: 0.62s, 2.3s; }
.is-ready .logo__word span:nth-child(4) { animation-delay: 0.68s, 1.5s; }
.is-ready .logo__word span:nth-child(5) { animation-delay: 0.74s, 2.6s; }
.is-ready .logo__word span:nth-child(6) { animation-delay: 0.8s, 1.9s; }
.is-ready .logo__word span:nth-child(7) { animation-delay: 0.86s, 2.2s; }
.is-ready .logo__word span:nth-child(8) { animation-delay: 0.92s, 1.6s; }
@keyframes letterOn { to { opacity: 1; transform: none; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 4% { opacity: 0.3; } 6% { opacity: 1; } 8% { opacity: 0.5; } 10% { opacity: 1; } }
.logo__sub { font-size: clamp(0.62rem, 2.4vw, 0.8rem); color: var(--signal); letter-spacing: 0.4em; }
.logo__sub b { color: var(--ember); }
.hero__tagline { margin: 28px 0 0; font-size: clamp(1.05rem, 3.4vw, 1.45rem); line-height: 1.4; color: var(--bone); }
.hero__tagline span, .hero__tagline em { display: block; }
.hero__tagline em { font-style: normal; color: var(--amber); }
.hero__content { will-change: transform, opacity; }
.hero__meta { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; font-size: 0.7rem; color: rgba(243, 237, 228, 0.78); }
.hero__meta b { color: var(--bone); font-weight: 500; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .ic { width: 15px; height: 15px; color: var(--signal); }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__countdown {
  position: absolute; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%);
  display: flex; gap: 6px;
}
.hero__countdown div {
  display: grid; justify-items: center; min-width: 58px; padding: 8px 6px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 6, 11, 0.45);
}
.hero__countdown b { font: 600 1.15rem var(--f-mono); color: var(--bone); letter-spacing: 0.02em; }
.hero__countdown span { font-size: 0.55rem; color: var(--dust); }
.hero__scroll { display: none; }
@media (min-width: 760px) {
  .hero__countdown { left: auto; right: var(--gutter); transform: none; }
  .hero__scroll {
    position: absolute; left: var(--gutter); bottom: calc(30px + var(--safe-b));
    display: flex; align-items: center; gap: 12px; font-size: 0.66rem; color: var(--dust);
  }
  .hero__scroll span { width: 1px; height: 40px; background: linear-gradient(var(--signal), transparent); animation: drip 2s infinite; transform-origin: top; }
}
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 520px) {
  .hud--tr { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__cta { width: 100%; max-width: 360px; }
}

/* ---------- Story ---------- */
.story { position: relative; height: 520vh; }
.story__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; align-items: end;
  padding: 0 var(--gutter) calc(70px + var(--safe-b));
}
.story__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 6, 11, 0.94) 0%, rgba(7, 6, 11, 0.45) 36%, transparent 62%);
}
.story__chapters { position: relative; min-height: 260px; width: 100%; }
.chapter {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.chapter > * { max-width: 640px; }
@media (min-width: 760px) {
  .chapter { align-items: flex-start; text-align: left; }
  .chapter:nth-child(even) { align-items: flex-end; text-align: right; padding-right: 110px; }
  .chapter:nth-child(even) .chapter__year, .chapter:nth-child(even) .chapter__title { margin-left: 0; margin-right: -0.04em; }
  .chapter:last-child { align-items: center; text-align: center; padding-right: 0; }
  .chapter:last-child .chapter__year, .chapter:last-child .chapter__title { margin-left: 0; }
}
.chapter__year {
  font: 900 clamp(3.4rem, 17vw, 9.5rem)/0.82 var(--f-display);
  letter-spacing: -0.04em; margin: 0 0 18px;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 228, 0.55);
}
.chapter__title { font: 800 clamp(1.5rem, 5.4vw, 3rem)/1.06 var(--f-display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; max-width: 18ch; }
.chapter__text { color: var(--dust); margin: 16px 0 0; max-width: 44ch; font-size: var(--fs-lead); line-height: 1.6; }
.chapter > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.chapter.is-active > * { opacity: 1; transform: none; }
.chapter.is-active .chapter__title { transition-delay: 0.08s; }
.chapter.is-active .chapter__text { transition-delay: 0.16s; }
.chapter.is-past > * { opacity: 0; transform: translate3d(0, -26px, 0); }
.chapter[data-i="2"] .chapter__year { -webkit-text-stroke-color: var(--signal); }
.chapter[data-i="3"] .chapter__year, .chapter[data-i="4"] .chapter__year { -webkit-text-stroke-color: var(--ember); }
.chapter[data-i="4"] .chapter__title { color: var(--amber); }
.story__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: none; gap: 14px; align-items: center; font-size: 0.66rem; color: var(--dust); }
.story__rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.story__rail li { transition: color 0.3s; }
.story__rail li.is-active { color: var(--bone); }
.story__railbar { width: 1px; height: 180px; background: var(--line); position: relative; }
.story__railbar i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--signal), var(--ember)); }
@media (min-width: 760px) { .story__rail { display: flex; } }
.story__mobilebar { display: none; }

/* ---------- Remnants ---------- */
.remnants { position: relative; min-height: 180vh; overflow-x: clip; }
.remnants__stage {
  position: sticky; top: 0; min-height: 100svh;
  display: grid; align-content: end; justify-items: center; text-align: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) calc(56px + var(--safe-b));
  background: linear-gradient(0deg, rgba(7, 6, 11, 0.85), transparent 55%);
  overflow: hidden;
}
.remnants .display { margin-left: 0; }
.remnants .display .line { display: block; }
.remnants .kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 34px auto 0; width: 100%; max-width: 820px; text-align: left; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: rgba(9, 7, 13, 0.82); padding: 16px 18px; }
.stats dt { font-size: 0.62rem; color: var(--dust); }
.stats dd { margin: 4px 0 0; font: 800 clamp(1.8rem, 7vw, 3rem)/1 var(--f-display); color: var(--amber); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(88px, 12vw, 150px) var(--gutter);
  background: var(--void);
}

.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 70%);
}
.mission { background: linear-gradient(180deg, transparent, var(--void) 220px); }
.section__head { margin-bottom: clamp(36px, 6vw, 64px); position: relative; }

[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-motion [data-reveal], html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* protocols */
.protocols { display: grid; gap: 14px; }
@media (min-width: 760px) { .protocols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .protocols { grid-template-columns: repeat(4, 1fr); } }
.protocol {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ash-2), var(--ash));
  border: 1px solid var(--line); overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.4s, transform 0.5s var(--ease);
  --mx: 50%; --my: 50%;
}
.protocol::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 90, 31, 0.22), transparent 70%);
}
.protocol:hover { border-color: rgba(255, 90, 31, 0.5); }
.protocol:hover::before { opacity: 1; }
.protocol__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; position: relative; }
.protocol__code { font: 900 2.6rem/0.9 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--line-strong); letter-spacing: -0.02em; }
.protocol h3 { font: 700 var(--fs-h3)/1.2 var(--f-display); margin: 0 0 10px; position: relative; }
.protocol p { margin: 0; color: var(--dust); position: relative; font-size: 0.96rem; }
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--signal); border-style: solid; opacity: 0.6; }
.corner--tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.corner--br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* ---------- Outposts ---------- */
.outposts__grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .outposts__grid { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.radar {
  position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 230, 255, 0.08), rgba(7, 6, 11, 0.9) 70%);
  border: 1px solid rgba(94, 230, 255, 0.35);
  box-shadow: inset 0 0 60px rgba(94, 230, 255, 0.1), 0 0 80px -20px rgba(94, 230, 255, 0.35);
  overflow: hidden;
  touch-action: manipulation;
}
.radar__rings i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(94, 230, 255, 0.16); }
.radar__rings i:nth-child(1) { width: 33%; height: 33%; } .radar__rings i:nth-child(2) { width: 66%; height: 66%; }
.radar__rings i:nth-child(3) { width: 100%; height: 1px; border: 0; background: rgba(94, 230, 255, 0.16); border-radius: 0; }
.radar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(94, 230, 255, 0.16); }
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(94, 230, 255, 0.4), rgba(94, 230, 255, 0) 70deg, transparent 360deg);
  animation: sweep 4.5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; font-size: 0.6rem; color: var(--ember); text-align: center; z-index: 2; pointer-events: none; }
.radar__center span { color: var(--dust); font-size: 0.5rem; }
.radar__center::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.25), 0 0 30px var(--ember); margin-bottom: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(255, 90, 31, 0), 0 0 30px var(--ember); } }
.blip {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.blip i {
  width: calc(6px + var(--s, 0) * 10px); height: calc(6px + var(--s, 0) * 10px); border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 14px var(--signal);
  animation: blipPing 3s calc(var(--d, 0) * 1s) infinite;
  transition: transform 0.3s var(--ease);
}
.blip:hover i, .blip.is-on i { transform: scale(1.5); background: var(--amber); box-shadow: 0 0 16px var(--amber); }
.blip.is-host { display: none; }
@keyframes blipPing { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.radar__tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px));
  background: rgba(7, 6, 11, 0.92); border: 1px solid var(--signal); color: var(--bone);
  padding: 7px 10px; border-radius: 8px; font-size: 0.62rem; white-space: nowrap; pointer-events: none;
}
.board { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19, 16, 26, 0.7); padding: 18px; }
.board__head { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--dust); padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.board__list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; overscroll-behavior: contain; }
.board__list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid rgba(243, 237, 228, 0.05); font-size: 0.95rem; }
.board__list li.is-host .name::after { content: "OC"; font: 500 0.55rem var(--f-mono); letter-spacing: 0.1em; color: var(--void); background: var(--ember); padding: 2px 6px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.board__list li.is-on { background: rgba(94, 230, 255, 0.06); }
.board__list .rank { font: 500 0.7rem var(--f-mono); color: var(--dust); }
.board__list .bar { grid-column: 2 / 4; height: 3px; background: rgba(243, 237, 228, 0.06); border-radius: 3px; overflow: hidden; margin-top: -4px; }
.board__list .bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); background: linear-gradient(90deg, var(--signal), var(--ember)); transition: width 1.2s var(--ease); }
.board__list .count { font: 600 0.95rem var(--f-mono); color: var(--amber); }
.board__total { font-size: 0.62rem; color: var(--dust); margin: 14px 4px 0; }
.board__total span:first-child { color: var(--amber); }

/* ---------- Council ---------- */
.council__group { font-size: 0.7rem; color: var(--dust); margin: 52px auto 18px; display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.council__group::before, .council__group::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4;
  border: 1px solid var(--line); background: var(--ash);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card:hover { border-color: rgba(94, 230, 255, 0.5); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 11, 0.95)); }
.card > div { position: relative; z-index: 1; }
.card h4 { font: 700 1rem/1.2 var(--f-display); margin: 0; }
.card p { margin: 4px 0 0; font-size: 0.66rem; color: var(--signal); }
.card--locked { background: repeating-linear-gradient(135deg, rgba(243, 237, 228, 0.03) 0 10px, transparent 10px 20px), var(--ash); }
.card--locked .glyphs { position: absolute; inset: 14px 14px auto; font: 500 0.62rem/1.5 var(--f-mono); color: rgba(94, 230, 255, 0.35); word-break: break-all; height: 55%; overflow: hidden; }
.card--locked .lock { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 1.1rem; color: var(--ember); background: rgba(7, 6, 11, 0.7); z-index: 1; }
.card--locked h4 { color: var(--dust); }
.council__chair .card { aspect-ratio: auto; min-height: 260px; max-width: 760px; margin-inline: auto; align-items: center; text-align: center; }
@media (min-width: 760px) { .council__chair .card { min-height: 340px; } }
.council__chair .card h4 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
.council__chair .card .lock { width: 64px; height: 64px; font-size: 1.4rem; }
.council__note { color: var(--dust); font-size: 0.8rem; margin-top: 18px; text-align: center; }

/* ---------- Game ---------- */
.game__frame {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(94, 230, 255, 0.3);
  background: radial-gradient(120% 90% at 50% 110%, rgba(255, 90, 31, 0.35), transparent 60%), linear-gradient(180deg, #0c0a14, #120d1a);
  aspect-ratio: 3 / 4; max-height: 78svh; width: 100%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.game__frame.is-playing { touch-action: none; }
@media (min-width: 760px) { .game__frame { aspect-ratio: 16 / 9; } }
.game__frame canvas { width: 100%; height: 100%; }
.game__hud { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--dust); pointer-events: none; gap: 8px; }
.game__hud b { color: var(--bone); font-weight: 600; }
.game__combo { color: var(--amber); min-width: 3ch; }
.game__lives { display: flex; gap: 4px; }
.game__lives i { width: 10px; height: 10px; border: 1px solid var(--ember); transform: rotate(45deg); }
.game__lives i.on { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.game__screen {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px;
  padding: 24px; background: rgba(7, 6, 11, 0.72);
}
.game__screen p.mono { font-size: 0.66rem; color: var(--signal); margin: 0; }
.game__screen h3 { font: 800 clamp(1.6rem, 6vw, 2.6rem)/1.05 var(--f-display); margin: 0; }
.game__screen > p:not(.mono) { margin: 0; color: var(--dust); max-width: 34ch; }
.game__best, .game__final { color: var(--dust) !important; }
.game__best b, .game__final b { color: var(--amber); }
.game__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- Register ---------- */
.register { background: radial-gradient(90% 60% at 20% 30%, rgba(255, 90, 31, 0.08), transparent 70%), var(--void); }
.reg { display: grid; gap: 18px; }
@media (min-width: 980px) { .reg { grid-template-columns: 340px 1fr; gap: 40px; align-items: start; } }
.reg__buddy { position: relative; }
@media (min-width: 980px) { .reg__buddy { position: sticky; top: calc(var(--nav-h) + 30px); } }
.reg__panel {
  position: relative; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 23, 36, 0.92), rgba(15, 12, 21, 0.96));
  padding: clamp(18px, 4vw, 36px);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
}
.reg__panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(94, 230, 255, 0.5), transparent 30%, transparent 70%, rgba(255, 90, 31, 0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Bolt */
.bolt { display: flex; align-items: center; gap: 12px; user-select: none; -webkit-user-select: none; }
@media (min-width: 980px) { .bolt { flex-direction: column; align-items: center; } }
.bolt__svg { width: 104px; flex: none; cursor: pointer; overflow: visible; touch-action: manipulation; }
@media (min-width: 980px) { .bolt__svg { width: 230px; } }
.bolt__float { animation: hover 3.2s ease-in-out infinite; transform-origin: 100px 200px; }
@keyframes hover { 50% { transform: translateY(-7px); } }
.bolt__shadow { fill: rgba(94, 230, 255, 0.25); animation: shadow 3.2s ease-in-out infinite; transform-origin: 100px 220px; }
@keyframes shadow { 50% { transform: scaleX(0.8); opacity: 0.6; } }
.bolt__jet { animation: jet 0.18s steps(2) infinite; transform-origin: 100px 186px; }
@keyframes jet { 50% { transform: scaleY(0.75); } }
.bolt__head { transform-origin: 100px 120px; transition: transform 0.15s linear; }
.bolt__eyes { fill: var(--signal); stroke: var(--signal); }
.bolt__eyes .e-open { stroke: none; transition: transform 0.12s; transform-box: fill-box; transform-origin: center; }
.bolt__eyes .e-emote { display: none; fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.bolt__eyes .e-love path, .bolt__eyes .e-load circle, .bolt__eyes .e-worry circle, .bolt__eyes .e-wink rect { fill: var(--signal); stroke: none; }
.bolt__eyes .e-love path { fill: #ff6b8b; }
.bolt.is-blink .e-open { transform: scaleY(0.1); }
.bolt[data-emote] .eye { display: none; }
.bolt[data-emote="happy"] .e-happy, .bolt[data-emote="tickle"] .e-tickle, .bolt[data-emote="sleep"] .e-sleep,
.bolt[data-emote="worry"] .e-worry, .bolt[data-emote="love"] .e-love, .bolt[data-emote="load"] .e-load,
.bolt[data-emote="wink"] .e-wink { display: block; }
.bolt[data-emote="surprise"] .eye { display: block; }
.bolt[data-emote="surprise"] .e-open { transform: scale(1.25); }
.bolt__cheeks { opacity: 0; transition: opacity 0.3s; }
.bolt[data-emote="happy"] .bolt__cheeks, .bolt[data-emote="tickle"] .bolt__cheeks, .bolt[data-emote="love"] .bolt__cheeks { opacity: 0.85; }
.bolt__e-load circle { animation: blink 0.9s infinite; }
.bolt[data-emote="load"] .e-load circle:nth-child(2) { animation: blink 0.9s 0.15s infinite; }
.bolt[data-emote="load"] .e-load circle:nth-child(3) { animation: blink 0.9s 0.3s infinite; }
.bolt[data-emote="load"] .e-load circle:nth-child(1) { animation: blink 0.9s infinite; }
.bolt__antenna { animation: blink 1.4s infinite; }
.bolt__core { animation: core 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes core { 50% { opacity: 0.55; transform: scale(0.85); } }
.bolt__arm { transition: transform 0.45s var(--ease); }
.bolt__arm--l { transform-origin: 50px 136px; }
.bolt__arm--r { transform-origin: 150px 136px; }
.bolt__hands { opacity: 0; transition: opacity 0.25s, transform 0.45s var(--ease); transform: translateY(70px); }
.bolt.is-shy .bolt__hands { opacity: 1; transform: none; }
.bolt.is-shy .bolt__arm { opacity: 0; }
.bolt.is-shy.is-peek .hand--r { transform: translate(14px, 10px); }
.hand { transition: transform 0.3s var(--ease); }
.bolt.is-wave .bolt__arm--r { animation: wave 0.5s 3 ease-in-out; }
@keyframes wave { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-110deg); } }
.bolt.is-tickled .bolt__float { animation: wiggle 0.12s 5 linear, hover 3.2s ease-in-out infinite; }
@keyframes wiggle { 25% { transform: rotate(-6deg) translateX(-3px); } 75% { transform: rotate(6deg) translateX(3px); } }
.bolt.is-jump .bolt__float { animation: jump 0.6s var(--ease) 2; }
@keyframes jump { 40% { transform: translateY(-34px) rotate(-6deg); } 60% { transform: translateY(-34px) rotate(6deg); } }
.bolt.is-spin .bolt__float { animation: spin 0.8s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.bolt.is-nod .bolt__head { animation: nod 0.5s 2; }
@keyframes nod { 50% { transform: translateY(5px) rotate(0); } }
.bolt.is-tap .bolt__float { animation: tap 0.15s; }
@keyframes tap { 50% { transform: translateY(2px) scaleY(0.98); } }
.bolt__zzz { opacity: 0; fill: var(--dust); font-size: 13px; }
.bolt[data-emote="sleep"] .bolt__zzz { opacity: 1; }
.bolt[data-emote="sleep"] .bolt__zzz text { animation: zzz 2s infinite; }
.bolt[data-emote="sleep"] .bolt__zzz text:nth-child(2) { animation-delay: 0.4s; }
.bolt[data-emote="sleep"] .bolt__zzz text:nth-child(3) { animation-delay: 0.8s; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.bolt__bubble {
  position: relative; flex: 1; min-height: 52px;
  background: rgba(7, 6, 11, 0.8); border: 1px solid rgba(94, 230, 255, 0.4);
  border-radius: 16px; padding: 12px 14px; font-size: 0.93rem; line-height: 1.4; color: var(--bone);
}
.bolt__bubble::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; background: inherit; border-left: 1px solid rgba(94, 230, 255, 0.4); border-bottom: 1px solid rgba(94, 230, 255, 0.4); transform: rotate(45deg); }
@media (min-width: 980px) {
  .bolt__bubble { width: 100%; text-align: center; }
  .bolt__bubble::before { left: 50%; top: -7px; margin-left: -6px; transform: rotate(135deg); }
}
.bolt__bubble.is-pop { animation: pop 0.35s var(--ease); }
@keyframes pop { 0% { transform: scale(0.94); } 60% { transform: scale(1.03); } }

/* form */
.form { display: grid; gap: 18px; }
.form__progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.64rem; color: var(--signal); }
.form__bars { display: flex; gap: 4px; }
.form__bars i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background 0.4s; }
.form__bars i.is-done { background: var(--ember); }
.form__bars i.is-now { background: var(--signal); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; gap: 16px; }
.step.is-active { display: grid; animation: stepIn 0.55s var(--ease); }
.step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.step__title { font: 800 clamp(1.3rem, 4.6vw, 1.8rem)/1.15 var(--f-display); padding: 0; margin: 0 0 14px -0.03em; }
.step__note { color: var(--dust); margin: -12px 0 4px; font-size: 0.92rem; line-height: 1.5; }
.field { display: grid; gap: 8px; }
.field > label, .field > .field__label { font-size: 0.86rem; color: var(--dust); font-weight: 500; }
.field__hint { font-size: 0.8rem; color: var(--dust); margin: -2px 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: rgba(7, 6, 11, 0.7); border: 1px solid var(--line-strong); border-radius: 14px;
  font-size: 16px; /* no iOS zoom */ color: var(--bone);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(135deg, var(--signal) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px;
}
.field select option { background: var(--ash); color: var(--bone); }
.field input::placeholder { color: rgba(164, 155, 176, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); background: rgba(7, 6, 11, 0.9); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.field.is-valid input, .field.is-valid select { border-color: rgba(94, 230, 255, 0.45); }
.field__pw { position: relative; }
.field__pw input { padding-right: 82px; letter-spacing: 0.2em; font-family: var(--f-mono); }
.field__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--ash-2); color: var(--signal); font: 500 0.66rem var(--f-mono); letter-spacing: 0.1em; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; background: rgba(7, 6, 11, 0.6);
  transition: all 0.25s var(--ease);
}
.choice span small { color: var(--amber); font-family: var(--f-mono); font-size: 0.72rem; }
.choice input:checked + span { border-color: var(--ember); background: var(--ember-soft); color: #fff; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12); }
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.docs { display: grid; gap: 12px; }
@media (min-width: 640px) { .docs { grid-template-columns: repeat(2, 1fr); } }
.doc {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: 16px; border: 1px dashed var(--line-strong); background: rgba(7, 6, 11, 0.5);
  cursor: pointer; transition: border-color 0.3s, background 0.3s; min-height: 88px;
}
.doc:hover { border-color: var(--signal); }
.doc input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.doc__thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--ash-2) center / cover no-repeat; display: grid; place-items: center; color: var(--signal); font: 500 0.6rem var(--f-mono); border: 1px solid var(--line); overflow: hidden; }
.doc__name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.doc__name em { font-style: normal; color: var(--ember); }
.doc__state { font: 500 0.64rem var(--f-mono); letter-spacing: 0.08em; color: var(--dust); margin-top: 4px; text-transform: uppercase; }
.doc__tpl { position: relative; z-index: 2; font-size: 0.8rem; color: var(--signal); }
.doc.is-ready { border-style: solid; border-color: rgba(94, 230, 255, 0.5); background: rgba(94, 230, 255, 0.05); }
.doc.is-ready .doc__state { color: var(--signal); }
.doc.is-busy .doc__state { color: var(--amber); }
.doc.is-invalid { border-color: var(--ember); }

.summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 16px; border-radius: 14px; background: rgba(7, 6, 11, 0.55); border: 1px solid var(--line); font-size: 0.95rem; }
.summary dt { color: var(--dust); font-size: 0.8rem; }
.summary dt:not(:first-child) { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(243, 237, 228, 0.06); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .summary { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 10px 18px; }
  .summary dt:not(:first-child), .summary dt:not(:first-child) + dd { margin-top: 0; padding-top: 10px; border-top: 1px solid rgba(243, 237, 228, 0.06); }
}
.refund { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.refund div { background: rgba(19, 16, 26, 0.95); padding: 10px 12px; }
.refund span { display: block; font: 500 0.62rem var(--f-mono); color: var(--dust); letter-spacing: 0.06em; text-transform: uppercase; }
.refund b { font: 700 1.05rem var(--f-display); color: var(--amber); }
@media (min-width: 640px) { .refund { grid-template-columns: repeat(4, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--ember); flex: none; margin-top: 1px; }

.form__error { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 90, 31, 0.1); border: 1px solid rgba(255, 90, 31, 0.5); color: #ffd0bd; font-size: 0.92rem; }
.form__nav { display: flex; gap: 10px; justify-content: space-between; }
.form__nav .btn--primary { flex: 1; }
@media (min-width: 640px) { .form__nav { justify-content: flex-end; } .form__nav .btn--primary { flex: 0 0 auto; min-width: 200px; } .form__nav #prevBtn { margin-right: auto; } }
.form__upload { display: flex; align-items: center; gap: 12px; }
.form__upload span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.form__upload i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--signal), var(--ember)); transition: width 0.2s; }
.form__upload b { font-size: 0.72rem; color: var(--signal); min-width: 4ch; text-align: right; }

.reg__closed h3 { font: 800 1.6rem var(--f-display); margin: 0 0 8px; }
.reg__closed p { color: var(--dust); margin: 0; }

.done { display: grid; gap: 14px; justify-items: start; outline: none; }
.done[hidden] { display: none; }
.done .kicker { margin: 0; color: var(--ember); }
.done__title { font: 800 clamp(1.4rem, 5vw, 2.2rem)/1.1 var(--f-display); margin: 0; }
.done > p { margin: 0; color: var(--dust); }
.done .done__code { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; color: var(--amber); letter-spacing: 0.12em; margin: 4px 0; padding: 10px 16px; border: 1px dashed var(--amber); border-radius: 12px; }
.done__card { width: min(100%, 420px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 90, 31, 0.5); }
.done__card canvas { width: 100%; height: auto; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Base camp ---------- */
.basecamp__grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .basecamp__grid { grid-template-columns: 1fr 1.3fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: rgba(19, 16, 26, 0.85); display: grid; gap: 14px; align-content: start; justify-items: start; }
.panel__label { font-size: 0.64rem; color: var(--signal); margin: 0; }
.venue h3 { font: 800 clamp(1.4rem, 4vw, 2rem)/1.1 var(--f-display); margin: 0; }
.venue__meta { margin: 0; color: var(--dust); font-size: 0.74rem; line-height: 1.8; }
.panel .refund { width: 100%; }
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(19, 16, 26, 0.7); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 1.4rem var(--f-mono); color: var(--signal); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--ember); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--dust); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--void); border-top: 1px solid var(--line); padding: 60px var(--gutter) calc(40px + var(--safe-b)); display: grid; justify-items: center; text-align: center; gap: 14px; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 700px; height: 400px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 90, 31, 0.3), transparent); pointer-events: none; }
.footer__mark { display: grid; justify-items: center; gap: 10px; }
.footer__mark .display { font-size: clamp(2.2rem, 10vw, 5rem); }
.footer__mark sup { color: var(--ember); font-size: 0.4em; }
.footer__line { font-size: 0.64rem; color: var(--dust); margin: 0; }
.footer__small { color: var(--dust); font-size: 0.86rem; margin: 0; }
.footer__small a { color: var(--bone); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); z-index: 85;
  background: rgba(7, 6, 11, 0.94); border: 1px solid var(--signal); padding: 12px 16px; border-radius: 12px;
  font-size: 0.68rem; color: var(--bone); max-width: calc(100% - 32px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
  .logo__word span, .logo__mark path { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   Icons + layout system (v2)
   ========================================================================== */
.ic {
  --ic-a: var(--ember);
  width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.btn .ic { width: 18px; height: 18px; --ic-a: currentColor; transition: transform 0.4s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary .ic { stroke-width: 2; }

/* a framed icon, used on cards */
.badge {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid rgba(94, 230, 255, 0.28);
  background: radial-gradient(circle at 30% 20%, rgba(94, 230, 255, 0.14), rgba(7, 6, 11, 0.6) 70%);
  color: var(--bone);
}
.badge .ic { width: 24px; height: 24px; }
.badge::after { content: ""; position: absolute; right: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.protocol:hover .badge { border-color: rgba(255, 90, 31, 0.6); }

/* section heads: centred, with the kicker framed by a line on each side */
.section__head { display: grid; justify-items: center; text-align: center; max-width: 920px; margin-inline: auto; }
.section__head .display { margin-left: 0; }
.section__head .lead { margin-inline: auto; max-width: 56ch; }
.section__head .kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; }

/* stat labels */
.stats dt { display: flex; align-items: center; gap: 8px; }
.stats dt .ic { width: 16px; height: 16px; color: var(--signal); }
.board__head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.board__head .ic { width: 16px; height: 16px; color: var(--signal); }

/* game screens */
.game__badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(94, 230, 255, 0.4); color: var(--signal); background: rgba(94, 230, 255, 0.06); margin-bottom: 4px; }
.game__badge .ic { width: 30px; height: 30px; }

/* form controls with a leading icon */
.field__control { position: relative; }
.field__control > .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--dust); pointer-events: none; transition: color 0.25s; --ic-a: var(--dust); }
.field__control:focus-within > .ic { color: var(--signal); --ic-a: var(--ember); }
.field__control input[type="text"], .field__control input[type="email"], .field__control input[type="tel"], .field__control input[type="password"] { padding-left: 48px; }
.field__eye { display: inline-flex; align-items: center; gap: 6px; }
.field__eye .ic { width: 16px; height: 16px; --ic-a: var(--signal); }

/* document tiles */
.doc__thumb { position: relative; color: var(--signal); }
.doc__thumb > .ic { width: 28px; height: 28px; }
.doc__add { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #160803; font: 700 0.8rem var(--f-mono); box-shadow: 0 0 0 3px var(--ash); }
.doc__add .ic { width: 14px; height: 14px; stroke-width: 2.2; --ic-a: currentColor; }
.doc__add.is-ok { background: var(--signal); }
.doc__ext { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 600 0.5rem var(--f-mono); letter-spacing: 0.1em; color: var(--dust); }
.doc__thumb { overflow: visible; }
.doc__tpl { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.doc__tpl .ic { width: 14px; height: 14px; }

/* misc */
.done .kicker::before { display: none; }
.done .kicker .ic { width: 18px; height: 18px; --ic-a: var(--signal); }
.panel__label { display: inline-flex; align-items: center; gap: 8px; }
.panel__label .ic { width: 16px; height: 16px; }
.faq__title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: var(--fs-label); color: var(--dust); margin: 48px 0 14px; font-weight: 500; }
.faq__title .ic { width: 18px; height: 18px; color: var(--signal); }
.faq { margin-top: 0; max-width: 860px; margin-inline: auto; }
.card--locked .lock .ic { width: 22px; height: 22px; --ic-a: var(--ember); color: var(--bone); }
.council__group, .council__chair, .cards, .council__note { max-width: none; }

/* ==========================================================================
   Rounds (prices come from Rouh)
   ========================================================================== */
.hero__round {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; justify-content: center; max-width: 100%;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-size: 0.66rem; color: var(--bone); background: rgba(9, 7, 13, 0.78);
  border: 1px solid rgba(255, 181, 71, 0.45);
}
.hero__round b { color: var(--amber); font-weight: 600; }
.hero__round span { white-space: nowrap; }
.hero__round .ic { width: 14px; height: 14px; color: var(--amber); }

.round-list { display: grid; gap: 14px; max-width: 1080px; margin-inline: auto; }
@media (min-width: 760px) { .round-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.round {
  position: relative; border-radius: var(--radius); padding: 24px 22px 20px;
  background: linear-gradient(160deg, var(--ash-2), var(--ash)); border: 1px solid var(--line);
  display: grid; gap: 14px; align-content: start; text-align: center; justify-items: center; overflow: hidden;
}
.round[data-state="open"] { border-color: rgba(255, 90, 31, 0.65); box-shadow: 0 30px 80px -40px rgba(255, 90, 31, 0.8); }
.round[data-state="open"]::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(255, 90, 31, 0.16), transparent 70%); pointer-events: none; }
.round[data-state="closed"], .round[data-state="full"] { opacity: 0.55; }
.round[data-state="closed"] .round__price b, .round[data-state="full"] .round__price b { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255, 90, 31, 0.7); }
.round__top { width: 100%; display: flex; justify-content: space-between; align-items: center; position: relative; }
.round__index { font-size: 0.62rem; color: var(--dust); }
.round__status { font-size: 0.6rem; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--dust); }
.round[data-state="open"] .round__status { background: var(--ember); border-color: var(--ember); color: #160803; }
.round[data-state="upcoming"] .round__status { color: var(--signal); border-color: rgba(94, 230, 255, 0.5); }
.round__name { font: 800 var(--fs-h3) var(--f-display); margin: 6px 0 0; position: relative; }
.round__price { margin: 0; display: flex; align-items: baseline; gap: 8px; position: relative; }
.round__price b { font: 900 clamp(2.4rem, 7vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.03em; color: var(--bone); }
.round[data-state="open"] .round__price b { color: var(--amber); }
.round__price span { font-size: 0.8rem; color: var(--dust); }
.round__note { margin: -6px 0 0; color: var(--dust); font-size: 0.9rem; }
.round__dates { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 4px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.round__dates div { background: rgba(9, 7, 13, 0.9); padding: 10px 8px; }
.round__dates dt { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.56rem; color: var(--dust); }
.round__dates dt .ic { width: 13px; height: 13px; }
.round__dates dd { margin: 4px 0 0; font-size: 0.74rem; color: var(--bone); }
.round__cap { width: 100%; display: grid; gap: 6px; font-size: 0.6rem; color: var(--dust); }
.round__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.round__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--signal), var(--ember)); }
.round__clock { margin: 0; min-height: 1em; font-size: 0.7rem; color: var(--amber); }

.reg__round {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255, 181, 71, 0.4);
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.12), rgba(255, 181, 71, 0.04));
}
.reg__round-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.6rem; color: var(--dust); width: 100%; }
.reg__round-label .ic { width: 14px; height: 14px; }
.reg__round b { font: 700 1.05rem var(--f-display); }
.reg__round-price { margin-left: auto; font: 800 1.3rem var(--f-display); color: var(--amber); }
.reg__round-price small { font-size: 0.6rem; color: var(--dust); }
.reg__closed { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 20px 4px; }
