/* ============ Design tokens ============ */
:root {
  --bg: #030608;
  --cyan: #0ff;
  --cyan-soft: #7df9ff;
  --magenta: #f0f;
  --ink: #eaffff;
  --muted: #9fb8c2;
  --body-font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --display-font: 'Orbitron', sans-serif;
  --mono-font: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
}

/* ============ Reset & base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: #fff;
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(0, 255, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============ Space backdrop + WebGL world + vignette ============ */
/* CSS nebula + starfield: shows before the WebGL world is ready and is the no-WebGL fallback. */
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 10% 6%, rgba(0, 255, 255, 0.14), transparent 60%),
    radial-gradient(55vmax 45vmax at 94% 96%, rgba(255, 0, 255, 0.11), transparent 60%),
    radial-gradient(40vmax 30vmax at 62% 38%, rgba(125, 249, 255, 0.05), transparent 70%),
    var(--bg);
}
.space-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 23% 37%, rgba(200, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 71% 12%, rgba(200, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 48% 81%, rgba(125, 249, 255, 0.85), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(255, 140, 255, 0.7), transparent);
  background-size: 180px 180px, 260px 260px, 330px 330px, 410px 410px;
  opacity: 0.6;
  transition: opacity 1.2s ease;
}
.world-ready .space-backdrop::after { opacity: 0; }

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#world.is-ready { opacity: 1; }
.is-ship-hover body { cursor: pointer; }

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 20%, transparent 0%, rgba(0, 0, 0, 0.35) 65%, rgba(0, 0, 0, 0.65) 100%);
}


/* ============ Scroll-reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============ Shared section rhythm ============ */
.section { width: min(1180px, 92vw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(7, 16, 26, 0.55);
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.section-subtitle { color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

/* ============ Hero ============ */
/* Full-bleed: the WebGL ship flies upper-right (above the copy on portrait), copy anchors bottom-left. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) clamp(6rem, 13vh, 8.5rem);
}
.hero__inner { width: min(1180px, 100%); margin: 0 auto; }
.hero__inner > * { animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.hero__inner > :nth-child(3) { animation-delay: 0.2s; }
.hero__inner > :nth-child(4) { animation-delay: 0.28s; }
.hero__inner > :nth-child(5) { animation-delay: 0.36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(7, 16, 26, 0.55);
  backdrop-filter: blur(6px);
  color: #9fe8ee;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #39ffb0;
  box-shadow: 0 0 8px #39ffb0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }

/* ---- Wordmark: decrypt reveal + shimmering gradient ---- */
.hero-title {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2rem, 8.4vw, 8rem); /* JACKWASHERE is ~9.15em wide: 8rem keeps it inside the 1180px column */
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
  cursor: default;
}
/* inline-block: the box (and so the clipped gradient) always spans the full word */
.hero-title-line { display: inline-block; white-space: nowrap; }
.hero-title-line--accent {
  color: transparent;
  background: linear-gradient(90deg, var(--ink) 0%, var(--cyan-soft) 30%, var(--magenta) 60%, var(--cyan-soft) 85%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(0, 255, 255, 0.22));
  animation: heroShine 8s linear infinite;
}
@keyframes heroShine { to { background-position: -200% center; } }
.hero-title .char {
  display: inline-block;
  text-align: center;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
.hero-title .char.is-locked { opacity: 1; }

.hero__ticker {
  display: flex;
  align-items: center;
  min-height: 1.6em;
  font-family: var(--mono-font);
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.7rem;
}
.hero__caret {
  width: 0.55em; height: 1.1em;
  margin-left: 4px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hero__subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease-out, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
  color: #04141a;
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
.btn--ghost {
  border-color: rgba(0, 255, 255, 0.5);
  color: var(--cyan);
  background: rgba(3, 6, 8, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(0, 255, 255, 0.12); border-color: var(--cyan); }

/* ---- HUD corners (decorative) ---- */
.hero__hud { position: absolute; inset: 0; pointer-events: none; }
.hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 232, 238, 0.7);
}
.hud b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud i { font-style: normal; color: var(--magenta); }
.hud--tl, .hud--tr { top: 6.5rem; }
.hud--bl, .hud--br { bottom: 2rem; }
.hud--tl, .hud--bl { left: clamp(1.25rem, 4vw, 3rem); }
.hud--tr, .hud--br { right: clamp(1.25rem, 4vw, 3rem); }
.hud__bar {
  width: 70px; height: 4px;
  border-radius: 2px;
  background: rgba(125, 249, 255, 0.15);
  overflow: hidden;
}
.hud__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform-origin: left;
  transform: scaleX(0.04);
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-soft);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue__line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--cyan-soft), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  animation: scrollCueTravel 1.8s ease-in-out infinite;
}
@keyframes scrollCueTravel { to { top: 100%; } }

@media (max-width: 760px) {
  .hero__hud { display: none; }
  .hero { padding-bottom: 6.5rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-line--accent, .hero__caret { animation: none; }
}


/* ============ Arcade reel (assets/js/home/reel.js) ============ */
/* Default (mobile, reduced motion, no JS): native swipe row with scroll-snap.
   .reel--pinned (desktop, set by reel.js): full-height pinned stage, the track is moved by scroll. */
.reel {
  --reel-gutter: max(4vw, calc((100vw - 1180px) / 2));
  --card-h: min(30rem, 56svh);
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.reel--pinned {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5.5rem;   /* clears the fixed navbar while pinned */
}

.reel__head {
  width: min(1180px, 92vw);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.reel__head .section-heading { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin-bottom: 0.4rem; }
.reel__head .section-subtitle { max-width: 54ch; }
.reel__stats { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.reel__stat { display: flex; flex-direction: column; gap: 0.2rem; }
.reel__stat b {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.reel__stat span {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.reel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--reel-gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reel__viewport::-webkit-scrollbar { display: none; }
.reel--pinned .reel__viewport { overflow: hidden; scroll-snap-type: none; }

.reel__track {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  width: max-content;
  padding: 1.25rem var(--reel-gutter) 1.75rem;
  will-change: transform;
}

/* ---- Poster card ---- */
.reel-card {
  flex: 0 0 auto;
  height: var(--card-h);
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--ink);
  perspective: 900px;
  border-radius: 20px;
}
.reel-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #060d14;
  border: 1px solid rgba(125, 249, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.reel-card__inner.is-tilting { transition: transform 0.12s linear, box-shadow 0.35s ease, border-color 0.35s ease; }
.reel-card:hover .reel-card__inner,
.reel-card:focus-visible .reel-card__inner {
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(0, 255, 255, 0.22);
}
.reel-card:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: 5px; }

/* Cursor-following spotlight border */
.reel-card__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--cyan), rgba(255, 0, 255, 0.6) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.reel-card:hover .reel-card__inner::before { opacity: 1; }

.reel-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reel-card:hover .reel-card__img { transform: scale(1.06); }
.reel-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 8, 0.35) 0%, transparent 22%, transparent 42%, rgba(3, 6, 8, 0.82) 68%, rgba(3, 6, 8, 0.96) 100%);
}
.reel-card__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent 45%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.reel-card:hover .reel-card__glare { opacity: 1; }

.reel-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.reel-badge {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.reel-badge--house { background: rgba(255, 0, 255, 0.18); border: 1px solid rgba(255, 0, 255, 0.55); color: #ffb3ff; }
.reel-badge--new { background: rgba(57, 255, 176, 0.16); border: 1px solid rgba(57, 255, 176, 0.6); color: #8dffd2; }
.reel-card__index {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  font-family: var(--display-font);
  font-size: 0.85rem;
  color: rgba(234, 255, 255, 0.55);
}

.reel-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.2rem;
}
.reel-card__tag {
  font-family: var(--mono-font);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.reel-card__title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}
.reel-card__blurb {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.35rem;
  font-family: var(--display-font);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.reel-card__cta span { transition: transform 0.25s ease; }
.reel-card:hover .reel-card__cta span { transform: translateX(4px); }

/* ---- End card: link to the full lobby ---- */
.reel-card--end .reel-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.5rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 0, 255, 0.22), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(0, 255, 255, 0.2), transparent 60%),
    rgba(6, 13, 20, 0.85);
  border-style: dashed;
  border-color: rgba(125, 249, 255, 0.4);
}
.reel-card__end-icon {
  margin-bottom: auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 255, 255, 0.6);
  color: var(--cyan);
  font-size: 1.3rem;
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.25), inset 0 0 18px rgba(0, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}
.reel-card--end:hover .reel-card__end-icon { transform: scale(1.12); background: var(--cyan); color: #04141a; }
.reel-card__end-kicker {
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.reel-card__end-title {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
}

/* ---- Scroll progress ---- */
.reel__progress {
  width: min(1180px, 92vw);
  height: 2px;
  margin: 0.25rem auto 0;
  background: rgba(125, 249, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  display: none;
}
.reel--pinned .reel__progress { display: block; }
.reel__progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 760px) {
  .reel { --card-h: min(26rem, 62svh); }
  .reel__head { align-items: flex-start; }
}

/* ============ Portal doors (assets/js/home/paths.js) ============ */
.doors__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.doors__head .section-heading { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin-bottom: 0.4rem; }

.doors__list {
  list-style: none;
  border-bottom: 1px solid rgba(125, 249, 255, 0.14);
}
.door {
  border-top: 1px solid rgba(125, 249, 255, 0.14);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.door.is-in { opacity: 1; transform: none; }

.door__link {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 30ch) 3.75rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2rem) 0.5rem;
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
  transition: opacity 0.35s ease;
}
/* Light sweep behind the hovered row */
.door__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.06) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.door__link:hover::before,
.door__link:focus-visible::before { transform: scaleX(1); }
.door__link:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: -2px; }
/* Spotlight the hovered row by dimming its siblings */
.doors__list:hover .door__link:not(:hover) { opacity: 0.38; }

.door__num {
  font-family: var(--mono-font);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
}
.door__thumb { display: none; }
.door__title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, text-shadow 0.3s ease;
}
.door__link:hover .door__title,
.door__link:focus-visible .door__title {
  transform: translateX(18px);
  color: var(--cyan-soft);
  text-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
}
.door__blurb { font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.door__arrow {
  justify-self: end;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 249, 255, 0.35);
  color: var(--cyan-soft);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.door__arrow svg { width: 1.3rem; height: 1.3rem; transform: rotate(-45deg); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.door__link:hover .door__arrow,
.door__link:focus-visible .door__arrow { background: var(--cyan); border-color: var(--cyan); color: #04141a; box-shadow: 0 0 24px rgba(0, 255, 255, 0.45); }
.door__link:hover .door__arrow svg,
.door__link:focus-visible .door__arrow svg { transform: rotate(0deg); }

/* ---- Floating cursor preview (fine pointers; created by paths.js) ---- */
.doors__preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: clamp(260px, 24vw, 380px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
}
.doors__preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(125, 249, 255, 0.45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 255, 255, 0.2);
  clip-path: inset(50% 50% 50% 50% round 18px);
  opacity: 0;
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.doors__preview.is-open .doors__preview-frame { clip-path: inset(0 0 0 0 round 18px); opacity: 1; }
.doors__preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.35s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.doors__preview-frame img.is-active { opacity: 1; transform: scale(1); }

/* ---- Touch / small screens: compact rows with thumbnails ---- */
@media (hover: none), (max-width: 760px) {
  .door__link {
    grid-template-columns: 5.5rem minmax(0, 1fr) 2.5rem;
    grid-template-areas: "thumb title arrow" "thumb blurb arrow";
    gap: 0.25rem 1rem;
    padding: 1rem 0.25rem;
  }
  .door__num { display: none; }
  .door__thumb {
    display: block;
    grid-area: thumb;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(125, 249, 255, 0.25);
  }
  .door__title { grid-area: title; align-self: end; font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .door__blurb { grid-area: blurb; align-self: start; font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .door__arrow { grid-area: arrow; width: 2.5rem; height: 2.5rem; }
  .door__arrow svg { width: 1rem; height: 1rem; }
  .doors__list:hover .door__link:not(:hover) { opacity: 1; }
}
@media (min-width: 761px) and (max-width: 1000px) and (hover: hover) {
  .door__link { grid-template-columns: 3rem minmax(0, 1fr) 3.25rem; }
  .door__blurb { display: none; }
}

/* ============ Transmission console (assets/js/home/transmission.js) ============ */
.console {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: linear-gradient(160deg, rgba(4, 14, 20, 0.9), rgba(6, 10, 18, 0.94));
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.12), 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
/* CRT scanlines */
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.18);
  background: rgba(0, 255, 255, 0.04);
}
.console__lights { display: inline-flex; gap: 6px; }
.console__lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; }
.console__lights i:nth-child(2) { background: #ffc94d; }
.console__lights i:nth-child(3) { background: #39ffb0; }
.console__title {
  flex: 1;
  font-family: var(--mono-font);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.console__title span { color: rgba(159, 184, 194, 0.65); }
.console__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #39ffb0;
}
.console__live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #39ffb0;
  box-shadow: 0 0 8px #39ffb0;
  animation: pulseDot 1.8s ease-in-out infinite;
}

.console__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.console__stats {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  padding: 1.5rem 1.4rem;
  border-right: 1px solid rgba(0, 255, 255, 0.14);
}
.console__stats dt {
  font-family: var(--mono-font);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.2rem;
}
.console__stats dd {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.console__main {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  padding: 1.5rem 1.6rem;
  font-family: var(--mono-font);
  font-size: 0.9rem;
}
.console__greet { color: #39ffb0; line-height: 1.5; }
.console__prompt { color: var(--cyan); }
.console.is-member .console__greet { color: var(--cyan-soft); text-shadow: 0 0 12px rgba(0, 255, 255, 0.35); }

.console__log { list-style: none; display: grid; gap: 0.75rem; }
.console__log li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  line-height: 1.55;
  color: #cfe9ee;
}
.console__log time { color: rgba(255, 120, 255, 0.85); }
.log__cell { position: relative; }
.log__ghost { color: transparent; }
.log__typed { position: absolute; inset: 0; }

.console__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 255, 255, 0.16);
}
.console__cursor { color: var(--cyan); }
.console__cursor i {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--cyan);
  opacity: 0;
}
.console.is-typed .console__cursor i { opacity: 1; animation: caretBlink 1s steps(2) infinite; }

@media (max-width: 760px) {
  .console__body { grid-template-columns: 1fr; }
  .console__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.14);
    padding: 1.2rem;
  }
  .console__main { padding: 1.2rem; font-size: 0.85rem; }
  .console__log li { grid-template-columns: 1fr; gap: 0.15rem; }
  .console__foot .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============ Manifesto + Pac-Man dot row (assets/js/home/manifesto.js) ============ */
.manifesto {
  position: relative;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.manifesto__text {
  max-width: 1050px;
  margin: 0 auto;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
.manifesto__accent {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255, 0, 255, 0.35));
}

/* Maze corridor: blue walls, peach dots, blinking power pellets */
.manifesto__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1000px, 100%);
  height: 60px;
  margin: clamp(2.75rem, 5vw, 4rem) auto 0;
  padding: 0 28px;
  border-block: 2px solid rgba(64, 128, 255, 0.6);
  border-radius: 30px;
  box-shadow: 0 0 18px rgba(64, 128, 255, 0.3), inset 0 0 18px rgba(64, 128, 255, 0.18);
}
.manifesto__track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffcfb0;
  box-shadow: 0 0 8px rgba(255, 190, 140, 0.8);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.manifesto__track i.is-pellet {
  width: 15px;
  height: 15px;
  animation: pelletBlink 0.9s steps(2) infinite;
}
.manifesto__track i.is-eaten { transform: scale(0); opacity: 0; }
@keyframes pelletBlink { 50% { opacity: 0.25; } }

@media (max-width: 760px) {
  .manifesto__track { height: 48px; padding: 0 18px; }
  .manifesto__track i { width: 6px; height: 6px; }
  .manifesto__track i.is-pellet { width: 12px; height: 12px; }
}

/* ============ Footer (assets/js/home/footer.js) ============ */
.site-foot {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid rgba(0, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(3, 6, 8, 0.2), rgba(3, 6, 8, 0.85) 40%);
  overflow: hidden;
}
.site-foot__inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem 4rem;
}
.site-foot__logo {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
}
.site-foot__brand p { margin: 0.75rem 0 1.25rem; max-width: 34ch; color: var(--muted); line-height: 1.6; }
.site-foot__warp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.06);
  color: var(--cyan);
  font: 700 0.8rem var(--display-font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.site-foot__warp:hover { background: rgba(0, 255, 255, 0.14); box-shadow: 0 0 24px rgba(0, 255, 255, 0.35); transform: translateY(-2px); }
.site-foot__warp span { transition: transform 0.3s ease; }
.site-foot__warp:hover span { transform: translateY(-3px); }

.site-foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-foot__title {
  margin-bottom: 0.9rem;
  font: 600 0.7rem var(--mono-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.site-foot__nav ul { list-style: none; display: grid; gap: 0.55rem; }
.site-foot__nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-foot__nav a:hover { opacity: 1; color: var(--cyan-soft); }
.site-foot__nav .site-foot__social { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.site-foot__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(125, 249, 255, 0.25);
  opacity: 1;
}
.site-foot__social a:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0, 255, 255, 0.3); }
.site-foot__icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* Giant outlined wordmark across the bottom */
.site-foot__mark {
  margin-top: 0.5rem;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2rem, 10.2vw, 13rem); /* ~9.15em wide: always fits the viewport */
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(125, 249, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.1), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.site-foot__bar {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 1.1rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-foot__bar a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.site-foot__bar a:hover { text-decoration: underline; }
.site-foot__heart { color: var(--cyan); }
.site-foot__kbd {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.site-foot__kbd:hover { color: var(--ink); }
.site-foot__kbd kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(125, 249, 255, 0.08);
  font: 600 0.72rem var(--mono-font);
  color: var(--cyan-soft);
}

@media (max-width: 860px) {
  .site-foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__bar { justify-content: center; text-align: center; }
  .site-foot__kbd { display: none; }
}

/* ============ Smooth scroll (Lenis, see assets/js/home/scroll.js) ============ */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; } /* the base rule sets smooth, which fights Lenis */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* ============ Command palette + hyperdrive (assets/js/home/palette.js) ============ */
/* Sits above the navbar (1000) and below the login modal (9999). */
.palette {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: min(16vh, 140px) 16px 16px;
  visibility: hidden;
  pointer-events: none;
}
.palette.is-open { visibility: visible; pointer-events: auto; }
.palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.palette.is-open .palette__backdrop { opacity: 1; }
.palette__box {
  position: relative;
  width: min(620px, 100%);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background: linear-gradient(170deg, rgba(6, 16, 24, 0.97), rgba(4, 8, 14, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 255, 255, 0.16);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.palette.is-open .palette__box { opacity: 1; transform: none; }

.palette__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.16);
  color: var(--cyan-soft);
}
.palette__search svg { width: 20px; height: 20px; flex: none; }
.palette__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1.05rem var(--body-font);
}
.palette__search input::placeholder { color: rgba(159, 184, 194, 0.6); }
.palette kbd, .hero__kbd kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(125, 249, 255, 0.08);
  font: 600 0.72rem var(--mono-font);
  color: var(--cyan-soft);
}

.palette__list {
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
}
.palette__group {
  padding: 0.75rem 0.75rem 0.35rem;
  font: 600 0.66rem var(--mono-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 184, 194, 0.7);
}
.palette__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.palette__item[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.16), rgba(255, 0, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.35);
}
.palette__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(125, 249, 255, 0.08);
  color: var(--cyan);
  font-size: 0.9rem;
}
.palette__title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__hint { font: 0.75rem var(--mono-font); color: var(--muted); white-space: nowrap; }
.palette__empty { padding: 1.5rem; text-align: center; color: var(--muted); font-family: var(--mono-font); font-size: 0.85rem; }
.palette__foot {
  display: flex;
  gap: 1.25rem;
  padding: 0.65rem 1.1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.12);
  font: 0.72rem var(--mono-font);
  color: var(--muted);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 0.3rem; }
.palette-open body { overflow: hidden; }

/* Hero hint chip */
.hero__kbd {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  padding: 0.35rem 0.6rem 0.35rem 0.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 0.8rem var(--body-font);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.hero__kbd span { margin-left: 0.35rem; }
.hero__kbd:hover { border-color: rgba(125, 249, 255, 0.3); color: var(--ink); background: rgba(125, 249, 255, 0.06); }
.hero__inner > :nth-child(6) { animation-delay: 0.44s; }

/* Hyperdrive: the world shifts hue, a status toast confirms it */
#world { transition: opacity 1.2s ease, filter 1.2s ease; }
.is-hyperdrive #world { filter: hue-rotate(70deg) saturate(1.6) brightness(1.15); }
.jwh-toast {
  position: fixed;
  left: 50%;
  top: 5.75rem;
  z-index: 1500;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.55);
  background: rgba(10, 4, 16, 0.85);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.35);
  font: 700 0.78rem var(--display-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb3ff;
  opacity: 0;
  transform: translate(-50%, -16px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.jwh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .palette { padding-top: 12vh; }
  .palette__hint { display: none; }
  .palette__foot { display: none; }
}

