/* ============================================================
   BREAK THE SYSTEM — Premium homepage v3
   Same mission. Higher craft.
   ============================================================ */
:root {
  --bg: #000;
  --elev: #080b0a;
  --card: #0c100e;
  --line: rgba(0, 255, 200, 0.14);
  --line-2: rgba(0, 255, 200, 0.32);
  --cyan: #00ffc8;
  --cyan-2: #1ad4a8;
  --cyan-dim: #0a8f72;
  --glow: rgba(0, 255, 200, 0.4);
  --text: #eef5f1;
  --muted: #8b9b94;
  --amber: #ffb020;
  --red: #ff4d42;
  --font: "Inter", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
  --header: 112px;
  --hero-gap: 2.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent horizontal rubber-band scroll jank on iOS */
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Notch / home-indicator safe padding */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* Prevent iOS zoom-on-focus for form fields */
input, select, textarea, button {
  font: inherit;
  font-size: 16px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
button { cursor: pointer; background: none; border: none; color: inherit; }
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
img { border-style: none; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible,
.film-card:focus-visible,
.cast-card:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.container {
  width: min(var(--max), calc(100% - 1.5rem));
  max-width: 100%;
  margin-inline: auto;
}
.container.narrow { width: min(720px, calc(100% - 1.5rem)); }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  /* Static grain — animated noise costs continuous repaint */
}

/* Global scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, #00ffc8, #7dffc8, #00ffc8);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.55);
  animation: progressShimmer 2.5s linear infinite;
}
@keyframes progressShimmer {
  to { background-position: 200% 0; }
}

/* Page load flash */
.page-flash {
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(0, 255, 180, 0.18), transparent 55%), #000;
  animation: pageFlash 1.1s var(--ease) both;
}
@keyframes pageFlash {
  0% { opacity: 1; }
  55% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6d7f77;
  margin-bottom: 0.9rem;
}
.eyebrow.cyan { color: var(--cyan-2); }
.eyebrow.center { text-align: center; }

.display {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.98;
  color: #f4f4f4;
}
.display em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0, 255, 200, 0.28);
}
.display.center { text-align: center; }

.lede {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40ch;
}
.lede.center { margin-inline: auto; text-align: center; }
.body-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 42ch;
  margin: 1rem 0 1.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
}
.btn.primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 28px rgba(0, 255, 200, 0.22);
}
.btn.primary:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 36px var(--glow);
  transform: translateY(-2px);
}
.btn.ghost {
  border-color: var(--line-2);
  color: var(--cyan);
  background: transparent;
}
.btn.ghost:hover {
  background: rgba(0, 255, 200, 0.08);
  color: #fff;
  border-color: var(--cyan);
}
.btn.sm { padding: 0.7rem 1.1rem; font-size: 0.68rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 8, 6, 0.78) 55%, transparent 100%);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(0, 6, 4, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 255, 160, 0.06);
  border-bottom-color: rgba(0, 255, 200, 0.18);
}
.topbar-inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0.75rem 0 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}
.brand img {
  height: clamp(36px, 4.5vw, 48px);
  width: auto;
  max-width: min(300px, 58vw);
  object-fit: contain;
  filter: drop-shadow(0 0 16px var(--glow));
  transition: filter 0.3s, transform 0.3s;
}
.brand:hover img {
  filter: drop-shadow(0 0 26px rgba(0, 255, 200, 0.65));
  transform: scale(1.02);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(0, 14, 10, 0.72);
  border: 1px solid rgba(0, 255, 200, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(0, 255, 160, 0.04);
  backdrop-filter: blur(12px);
}
.nav a {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8ddd4;
  padding: 0.48rem 0.95rem;
  position: relative;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.25s, text-shadow 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.25s var(--ease), left 0.25s var(--ease);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav a:hover {
  color: #fff;
  background: rgba(0, 255, 200, 0.1);
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.45);
}
.nav a.on {
  color: #04120e;
  background: linear-gradient(180deg, #5dffc8 0%, var(--cyan) 100%);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: none;
  font-weight: 600;
}
.nav a:hover::after { width: 40%; }
.nav a.on::after { display: none; }

.menu-btn {
  display: none;
  position: absolute;
  right: 0;
  top: 0.85rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(0, 16, 12, 0.85);
  border: 1px solid rgba(0, 255, 200, 0.4);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 0 16px rgba(0, 255, 160, 0.15);
  z-index: 5;
}
.menu-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 255, 200, 0.3);
}
.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--cyan);
  display: block;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(0, 255, 200, 0.5);
  transition: transform 0.25s, opacity 0.2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
  /* Clear space under fixed menu + signal bar */
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  isolation: isolate;
}
.hero::before {
  /* Top safe-zone shade so content doesn't collide with menu */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--header) + var(--hero-gap) + 2.5rem);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 8, 6, 0.55) 45%,
    transparent 100%
  );
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.8) contrast(1.08) brightness(0.7) hue-rotate(12deg);
  animation: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,8,4,0.25) 18%, transparent 32%, transparent 52%, rgba(0,0,0,0.95) 100%),
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(0, 40, 24, 0.12) 0%, transparent 55%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 20, 10, 0.12) 2px,
    rgba(0, 20, 10, 0.12) 4px
  );
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero-ui {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + var(--hero-gap) + 3.5rem) 0 5.5rem;
}
.hero-status {
  position: absolute;
  top: calc(var(--header) + var(--hero-gap) + 0.35rem);
  left: 4vw;
  right: 4vw;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 6;
}
.pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  background: rgba(0, 8, 6, 0.65);
  backdrop-filter: blur(10px);
  color: var(--cyan-2);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pill.live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.mono {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(0, 8, 6, 0.55);
  padding: 0.4rem 0.7rem;
  backdrop-filter: blur(10px);
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(52px, 5.8vw, 80px);
  height: clamp(52px, 5.8vw, 80px);
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
  /* left/top only — avoid will-change bloat */
  filter: drop-shadow(0 0 12px rgba(0, 255, 160, 0.35));
  animation: nodeIn 0.75s var(--ease) both;
  animation-delay: var(--delay, 0s);
  transition: filter 0.35s ease, opacity 0.3s ease;
}
.hero-node.is-outer {
  width: clamp(44px, 4.8vw, 68px);
  height: clamp(44px, 4.8vw, 68px);
  z-index: 4;
  opacity: 0.88;
}
.hero-node.is-outer .label {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}
.hero-node.is-outer .orb {
  border-width: 1px;
  box-shadow: 0 0 16px rgba(0, 255, 140, 0.28), inset 0 0 14px rgba(0, 255, 160, 0.12);
}
.hero-node.is-outer .orb-ring {
  inset: -5px;
}
@keyframes nodeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-node .orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 35% 30%, rgba(0, 255, 140, 0.22), rgba(0, 12, 8, 0.88) 70%);
  border: 1px solid rgba(0, 255, 160, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 140, 0.25), inset 0 0 18px rgba(0, 255, 120, 0.1);
  transition: border-color 0.35s, box-shadow 0.4s, transform 0.35s;
}
.hero-node .orb-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 140, 0.22);
  animation: orbPulse 3.2s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  pointer-events: none;
}
.hero-node .orb-ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 160, 0.15);
  animation: orbSpin 14s linear infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.85; }
}
@keyframes orbSpin {
  to { transform: rotate(360deg); }
}
.hero-node img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  /* Matrix green cast — no red hover swap */
  filter: grayscale(0.35) sepia(0.55) hue-rotate(70deg) saturate(2.4) brightness(1.15)
    drop-shadow(0 0 10px rgba(0, 255, 140, 0.55));
  transition: filter 0.35s, transform 0.35s, opacity 0.3s;
}
.hero-node .hover-img {
  display: none; /* never flash red/alt art */
}
.hero-node .label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dffc8;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(0, 255, 160, 0.7), 0 2px 10px #000;
  transition: opacity 0.3s;
}
/* Soft cyan/green glow only — no red, no hard highlight */
.hero-node.is-frozen,
.hero-node:hover,
.hero-node.is-active {
  z-index: 12;
  filter: drop-shadow(0 0 18px rgba(0, 255, 160, 0.75)) drop-shadow(0 0 36px rgba(0, 255, 120, 0.45));
}
.hero-node.is-frozen .orb,
.hero-node:hover .orb,
.hero-node.is-active .orb {
  border-color: rgba(120, 255, 200, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 255, 160, 0.35),
    0 0 32px rgba(0, 255, 140, 0.55),
    0 0 60px rgba(0, 255, 100, 0.25),
    inset 0 0 24px rgba(0, 255, 160, 0.2);
  transform: scale(1.06);
}
.hero-node.is-frozen .orb-ring,
.hero-node:hover .orb-ring,
.hero-node.is-active .orb-ring {
  border-color: rgba(0, 255, 180, 0.55);
  animation-duration: 1.6s;
}
.hero-node.is-frozen img,
.hero-node:hover img,
.hero-node.is-active img {
  filter: grayscale(0.15) sepia(0.45) hue-rotate(72deg) saturate(2.8) brightness(1.28)
    drop-shadow(0 0 16px rgba(0, 255, 160, 0.9));
  transform: scale(1.04);
}
.hero-node.is-frozen .label,
.hero-node:hover .label,
.hero-node.is-active .label { opacity: 1; }

.hero-center {
  position: relative;
  z-index: 6;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
  pointer-events: none;
  /* Extra air under menu so title sits in clear zone */
  margin-top: auto;
}
.hero-hint {
  color: var(--cyan) !important;
  border-color: rgba(0, 255, 200, 0.35) !important;
  animation: signalTick 2s ease-in-out infinite;
}

.hero-center h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 6px 50px rgba(0,0,0,0.85);
}
.hero-center h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(180deg, #fff 10%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px var(--glow));
}
.hero-center .sub {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #9aaba4;
  text-shadow: 0 2px 16px #000;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
  pointer-events: auto;
}

/* Dossier sheet */
.sheet {
  position: absolute;
  right: 3.5vw;
  bottom: 5rem;
  z-index: 20;
  width: min(340px, 90vw);
  padding: 1.4rem 1.3rem 1.3rem;
  background: rgba(4, 10, 8, 0.88);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 40px rgba(0,255,200,0.1);
  animation: sheetIn 0.35s var(--ease);
}
.sheet[hidden] { display: none; }
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.sheet-x {
  position: absolute;
  top: 0.45rem;
  right: 0.65rem;
  background: none;
  border: none;
  color: #777;
  font-size: 1.4rem;
  line-height: 1;
}
.sheet-x:hover { color: var(--cyan); }
.sheet-stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 200, 0.55);
  background: rgba(0, 255, 160, 0.06);
  box-shadow: 0 0 16px rgba(0, 255, 160, 0.2);
  padding: 0.22rem 0.45rem;
  transform: rotate(-2deg);
  margin-bottom: 0.75rem;
}
.sheet-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.65rem;
  filter: grayscale(0.3) sepia(0.5) hue-rotate(70deg) saturate(2.2) brightness(1.15)
    drop-shadow(0 0 14px rgba(0, 255, 160, 0.65));
}
#dossier-title {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  color: #7dffc8;
  text-shadow: 0 0 18px rgba(0, 255, 160, 0.35);
  margin-bottom: 0.5rem;
}
#dossier-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--cyan-2);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-bottom: 0.9rem;
}

/* ---------- Sections ---------- */
.sec {
  position: relative;
  padding: clamp(3.75rem, 7vw, 6rem) 0;
  isolation: isolate;
  overflow: hidden;
}
/* content-visibility only where well supported — avoids Safari scroll jumps */
@supports (content-visibility: auto) {
  @media (min-width: 900px) and (hover: hover) {
    .sec.docs,
    .sec.news,
    .sec.curriculum,
    .sec.quotes,
    .sec.camelot,
    .stories {
      content-visibility: auto;
      contain-intrinsic-size: auto 640px;
    }
  }
}
.sec-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.8) brightness(0.45);
  z-index: 0;
  pointer-events: none;
}
.sec-bg.dim { opacity: 0.12; }
.sec > .container,
.sec > .film-strip,
.sec > .cast-rail { position: relative; z-index: 1; }

.sec-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.sec-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin-inline: auto; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.lede-hint,
.mono-hint {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 255, 200, 0.55);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal] .reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
[data-reveal].is-in .reveal-child {
  opacity: 1;
  transform: none;
}

/* Ambient section glow */
.sec-glow {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(0, 255, 160, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(0, 120, 90, 0.07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.sec-glow.strong {
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(0, 255, 160, 0.1), transparent 65%);
}

.sec-cta { margin-top: 1.75rem; }

/* One-shot card fade — no transform (avoids hover/glitch fights) */
[data-reveal].is-in .film-card,
[data-reveal].is-in .cast-card,
[data-reveal].is-in .doc,
[data-reveal].is-in .topic-card,
[data-reveal].is-in .news-card {
  animation: cardFade 0.55s ease both;
}
@keyframes cardFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
[data-reveal].is-in .film-card:nth-child(n) { animation-delay: 0.06s; }
[data-reveal].is-in .cast-card:nth-child(n) { animation-delay: 0.06s; }
[data-reveal].is-in .doc:nth-child(n) { animation-delay: 0.08s; }
[data-reveal].is-in .topic-card:nth-child(n) { animation-delay: 0.08s; }
[data-reveal].is-in .news-card:nth-child(n) { animation-delay: 0.08s; }

/* Manifesto */
.manifesto {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(0, 70, 50, 0.12), transparent 55%),
    #000;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}
.manifesto-copy {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.2rem, 3vw, 1.75rem);
}
.manifesto-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.manifesto-copy strong { color: #fff; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0, 255, 200, 0.2);
  border: 1px solid rgba(0, 255, 200, 0.25);
  box-shadow: 0 0 40px rgba(0, 255, 160, 0.06);
}
.metrics > div {
  background: linear-gradient(180deg, #0a1210 0%, #060a08 100%);
  padding: 1.45rem 1rem;
  text-align: center;
  transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.metrics > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 160, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}
.metrics > div:hover {
  background: #0c1612;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 255, 160, 0.1);
  z-index: 1;
}
.metrics > div:hover::before { opacity: 1; }
.metrics b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--cyan);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 28px rgba(0,255,200,0.4);
  position: relative;
}

.metrics span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a9e96;
  position: relative;
}

/* ============================================================
   MEDIA SCROLLER — film stills + cast (shared shell)
   ============================================================ */
.media-scroller {
  position: relative;
  z-index: 2;
  margin-top: 0.35rem;
  padding-bottom: 0.25rem;
}
.media-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem max(4.5vw, calc((100vw - var(--max)) / 2 + 0.25rem)) 1.35rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  outline: none;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.media-rail:active,
.media-rail.is-dragging { cursor: grabbing; }
.media-rail.is-dragging { scroll-behavior: auto; user-select: none; }
.media-rail::-webkit-scrollbar { display: none; }

/* Soft edge fades (no mask cut-off on cards) */
.media-scroller::before,
.media-scroller::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.6rem;
  width: clamp(2rem, 5vw, 4rem);
  z-index: 4;
  pointer-events: none;
}
.media-scroller::before {
  left: 0;
  background: linear-gradient(90deg, #000 10%, transparent);
}
.media-scroller::after {
  right: 0;
  background: linear-gradient(270deg, #000 10%, transparent);
}

/* Floating edge buttons */
.scroller-edge {
  position: absolute;
  top: 42%;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.4);
  background: rgba(0, 10, 8, 0.88);
  color: var(--cyan);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}
.scroller-edge:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  transform: scale(1.06);
  opacity: 1;
}
.scroller-edge.prev { left: max(0.75rem, calc((100vw - var(--max)) / 2 - 0.5rem)); }
.scroller-edge.next { right: max(0.75rem, calc((100vw - var(--max)) / 2 - 0.5rem)); }

.rail-progress {
  height: 3px;
  width: min(var(--max), 92vw);
  margin: 0.15rem auto 0;
  background: rgba(0, 255, 200, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.rail-progress i {
  display: block;
  height: 100%;
  width: 14%;
  margin-left: 0;
  background: linear-gradient(90deg, var(--cyan), #9bffd9);
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.55);
  border-radius: 3px;
  transition: width 0.12s linear, margin-left 0.12s linear;
}

.rail-nav {
  width: 44px !important;
  height: 44px !important;
  border-radius: 4px !important;
}

/* —— Film stills —— */
.film {
  background: #020303;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.film-strip.media-rail {
  gap: 0.9rem;
}
button.film-card,
.film-card {
  flex: 0 0 min(82vw, 360px);
  aspect-ratio: 16 / 10;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  background: #0a0e0c;
  border: 1px solid rgba(0, 255, 200, 0.14);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 1;
  pointer-events: auto;
}
button.film-card:first-child,
.film-card:first-child {
  flex-basis: min(88vw, 440px);
  border-color: rgba(0, 255, 200, 0.28);
}
button.film-card:hover,
.film-card:hover {
  border-color: rgba(0, 255, 200, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 255, 160, 0.12);
  z-index: 2;
  color: inherit;
}
.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.88);
  transition: transform 0.5s var(--ease), filter 0.35s;
  pointer-events: none;
}
.film-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(0.98);
}
.film-card .film-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 50px rgba(0, 0, 0, 0.3);
}
.film-card .film-num {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(0, 255, 200, 0.3);
  padding: 0.25rem 0.45rem;
  backdrop-filter: blur(8px);
}
.film-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.2rem 0.9rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9) 50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8ffe8;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
}
.film-card .cap-zoom {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.45);
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--cyan);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.film-card:hover .cap-zoom {
  background: var(--cyan);
  color: #000;
  transform: scale(1.06);
}

/* —— Cast & crew (portraits already framed in PNG) —— */
.cast {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0, 70, 52, 0.16), transparent 58%),
    #000;
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}
.cast .lede {
  margin-top: 0.65rem;
  max-width: 40ch;
}
.cast-rail.media-rail {
  gap: 0.85rem;
  align-items: stretch;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
/* Card shell — image is pre-circled with cyan ring baked in */
.cast-rail a.cast-card,
.cast-rail .cast-card {
  flex: 0 0 clamp(148px, 22vw, 188px);
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(0, 255, 200, 0.12);
  background:
    linear-gradient(180deg, rgba(0, 28, 22, 0.55) 0%, rgba(4, 8, 7, 0.92) 100%);
  border-radius: 14px;
  overflow: visible;
  position: relative;
  padding: 0.65rem 0.55rem 0.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.cast-rail .cast-card.is-lead {
  flex-basis: clamp(160px, 24vw, 200px);
  border-color: rgba(0, 255, 200, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 40, 32, 0.7) 0%, rgba(4, 10, 8, 0.95) 100%);
}
.cast-rail a.cast-card:hover,
.cast-rail .cast-card:hover,
.cast-rail a.cast-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 200, 0.5);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 255, 180, 0.14);
  color: inherit;
  outline: none;
}
/* Avatar: full pre-framed PNG, no CSS re-crop / double ring */
.cast-rail .cast-card .avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: visible;
  margin: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.35s var(--ease), filter 0.35s;
}
.cast-rail .cast-card .avatar::before,
.cast-rail .cast-card .avatar::after {
  content: none !important;
  display: none !important;
}
.cast-rail .cast-card:hover .avatar {
  transform: scale(1.03);
  filter: drop-shadow(0 0 14px rgba(0, 255, 200, 0.35));
}
.cast-rail .cast-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transition: none;
  transform: none;
  pointer-events: none;
  display: block;
}
.cast-rail .cast-card:hover .avatar img {
  filter: none;
  transform: none;
}
.cast-rail .cast-card .cast-meta {
  position: relative;
  margin-top: 0.45rem;
  padding: 0.15rem 0.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  min-height: 3.6rem;
  background: none;
  border: none;
  width: 100%;
}
.cast-rail .cast-card .cast-num {
  position: static;
  order: -1;
  margin: 0 0 0.05rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: rgba(0, 255, 200, 0.55);
  background: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
}
.cast-rail .cast-card h3 {
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  letter-spacing: 0.04em;
  color: #f0f4f2;
  line-height: 1.15;
  margin: 0;
  text-align: center;
  transition: color 0.25s;
  max-width: 100%;
  word-break: break-word;
}
.cast-rail .cast-card:hover h3 { color: var(--cyan); }
.cast-rail .cast-card .role {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin: 0;
  text-align: center;
  opacity: 0.95;
  line-height: 1.35;
}
.cast-rail .cast-card .role .as {
  color: rgba(0, 255, 200, 0.4);
  letter-spacing: 0.06em;
  font-size: 0.9em;
  margin-right: 0.15em;
}
.cast-rail .cast-card .cast-cta { display: none; }

/* Cast page grid — same pre-framed treatment */
.cast-grid .cast-card {
  text-align: center;
  border: 1px solid rgba(0, 255, 200, 0.12);
  background: linear-gradient(180deg, rgba(0, 28, 22, 0.45) 0%, rgba(4, 8, 7, 0.9) 100%);
  border-radius: 14px;
  padding: 0.85rem 0.65rem 1rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.cast-grid .cast-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 200, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 255, 180, 0.12);
}
.cast-grid .cast-card .avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: visible;
  margin: 0 auto 0.65rem;
  background: transparent;
  box-shadow: none;
}
.cast-grid .cast-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.cast-grid .cast-card:hover .avatar {
  filter: drop-shadow(0 0 12px rgba(0, 255, 200, 0.3));
  box-shadow: none;
}
.cast-grid .cast-card:hover .avatar img {
  filter: none;
}

/* —— Responsive: tablets & phones —— */
@media (max-width: 900px) {
  .scroller-edge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 38%;
  }
  .scroller-edge.prev { left: 0.4rem; }
  .scroller-edge.next { right: 0.4rem; }
  .media-scroller::before,
  .media-scroller::after {
    width: 1.5rem;
  }
  .cast-rail a.cast-card,
  .cast-rail .cast-card {
    flex: 0 0 clamp(140px, 30vw, 170px);
  }
  .cast-rail .cast-card.is-lead {
    flex-basis: clamp(150px, 32vw, 180px);
  }
}
@media (max-width: 640px) {
  .media-rail {
    padding: 0.75rem max(0.85rem, env(safe-area-inset-left)) 1.15rem max(0.85rem, env(safe-area-inset-right));
    gap: 0.7rem;
    scroll-padding-inline: max(0.85rem, env(safe-area-inset-left));
  }
  button.film-card,
  .film-card {
    flex: 0 0 min(82vw, 320px);
    max-width: none;
    border-radius: 8px;
    /* Disable hover lift glitch on touch */
    transform: none !important;
  }
  button.film-card:first-child,
  .film-card:first-child {
    flex-basis: min(86vw, 340px);
  }
  .film-card .cap {
    font-size: 0.62rem;
    padding: 1.8rem 0.7rem 0.7rem;
  }
  .film-card .cap-zoom {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .film-card .film-num {
    font-size: 0.52rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  .cast-rail.media-rail {
    gap: 0.65rem;
    padding-top: 0.35rem;
  }
  .cast-rail a.cast-card,
  .cast-rail .cast-card {
    flex: 0 0 min(42vw, 156px);
    min-width: 132px;
    max-width: 168px;
    padding: 0.5rem 0.4rem 0.75rem;
    border-radius: 12px;
    transform: none !important;
  }
  .cast-rail .cast-card.is-lead {
    flex-basis: min(44vw, 164px);
  }
  .cast-rail .cast-card .cast-meta {
    min-height: 3.2rem;
  }
  .cast-rail .cast-card h3 {
    font-size: 0.95rem;
  }
  .cast-rail .cast-card .role {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
  .rail-btns {
    width: 100%;
    justify-content: flex-start;
  }
  .rail-btns .rail-nav {
    width: 40px !important;
    height: 40px !important;
  }
  .sec-head.row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .scroller-edge {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    opacity: 0.95;
  }
  /* Edge arrows sit over the rail on phones */
  .scroller-edge.prev { left: 0.35rem; }
  .scroller-edge.next { right: 0.35rem; }
}
/* Phones in landscape / small height */
@media (max-width: 900px) and (max-height: 500px) {
  .bts-lightbox img { max-height: 70vh; }
  .bts-lightbox-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .bts-lightbox-nav.prev { left: max(0.35rem, env(safe-area-inset-left)); }
  .bts-lightbox-nav.next { right: max(0.35rem, env(safe-area-inset-right)); left: auto; }
}
/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .film-card,
  .cast-card,
  .film-card img,
  .cast-card .avatar {
    transition: none !important;
  }
  .film-card:hover,
  .cast-card:hover {
    transform: none !important;
  }
}
/* Only animate lift on devices that can hover (desktop) */
@media (hover: none) {
  button.film-card:hover,
  .film-card:hover,
  .cast-rail a.cast-card:hover,
  .cast-rail .cast-card:hover {
    transform: none;
  }
  .film-card:hover img {
    transform: none;
  }
  .cast-rail .cast-card:hover .avatar {
    transform: none;
    filter: none;
  }
}

/* Lightbox gallery — viewing room + filmstrip */
.bts-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0, 40, 32, 0.35), transparent 60%),
    rgba(0, 0, 0, 0.96);
  display: grid;
  place-items: center;
  padding:
    max(3.25rem, calc(env(safe-area-inset-top) + 2.25rem))
    max(0.75rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.bts-lightbox.is-on { opacity: 1; }
.bts-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(1100px, 96vw);
  max-height: 100%;
  cursor: default;
}
.bts-lightbox-figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}
.bts-lightbox-frame {
  position: relative;
  padding: 0.45rem;
  border: 1px solid rgba(0, 255, 200, 0.22);
  border-radius: 6px;
  background: rgba(0, 8, 6, 0.85);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 255, 160, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.bts-lightbox-frame img,
.bts-lightbox img {
  max-width: min(1040px, 92vw);
  max-height: min(62vh, calc(100dvh - 14rem));
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.bts-lightbox-cap {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-2);
  text-align: center;
  max-width: 90vw;
  padding: 0 0.5rem;
  pointer-events: none;
}
.bts-lightbox-hint {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 255, 200, 0.35);
  margin: 0;
  pointer-events: none;
}
.bts-lightbox-strip {
  display: flex;
  gap: 0.45rem;
  max-width: min(960px, 96vw);
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.55rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: auto;
  cursor: default;
}
.bts-lightbox-strip::-webkit-scrollbar { display: none; }
.bts-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(0, 255, 200, 0.18);
  border-radius: 4px;
  overflow: hidden;
  background: #0a0e0c;
  opacity: 0.55;
  scroll-snap-align: center;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.bts-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  max-height: none;
  border: none;
  box-shadow: none;
  pointer-events: none;
}
.bts-thumb:hover { opacity: 0.85; border-color: rgba(0, 255, 200, 0.4); }
.bts-thumb.is-on {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.35);
  transform: translateY(-2px);
}
.bts-lightbox-x {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 255, 200, 0.4);
  background: rgba(0, 10, 8, 0.9);
  color: var(--cyan);
  font-size: 1.5rem;
  border-radius: 10px;
  z-index: 2;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.bts-lightbox-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.4);
  background: rgba(0, 10, 8, 0.88);
  color: var(--cyan);
  font-size: 1.5rem;
  z-index: 2;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.bts-lightbox-nav.prev { left: max(0.5rem, env(safe-area-inset-left)); }
.bts-lightbox-nav.next { right: max(0.5rem, env(safe-area-inset-right)); }
.bts-lightbox-nav:hover,
.bts-lightbox-x:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}
@media (max-width: 640px) {
  .bts-lightbox {
    padding:
      max(3rem, calc(env(safe-area-inset-top) + 2rem))
      0.45rem
      max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem))
      0.45rem;
  }
  .bts-lightbox-nav {
    width: 46px;
    height: 46px;
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: none;
  }
  .bts-lightbox-nav.prev { left: calc(50% - 56px); }
  .bts-lightbox-nav.next { right: calc(50% - 56px); left: auto; }
  .bts-lightbox-frame img,
  .bts-lightbox img {
    max-width: 94vw;
    max-height: min(46vh, calc(100dvh - 16rem));
  }
  .bts-lightbox-cap { font-size: 0.58rem; }
  .bts-lightbox-x {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }
  .bts-lightbox-strip {
    max-width: 100vw;
    padding-inline: 0.5rem;
  }
}
.rail-btns {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}
.rail-btns button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.35);
  background: rgba(0, 12, 8, 0.85);
  color: var(--cyan);
  font-size: 1.35rem;
  transition: all 0.25s var(--ease);
  box-shadow: 0 0 12px rgba(0, 255, 160, 0.08);
}
.rail-btns button:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(0, 255, 200, 0.35);
}

/* Shop */
.shop { background: #040706; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}
.filters button {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #7a8a84;
  transition: all 0.25s;
}
.filters button.on,
.filters button:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,255,200,0.22);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.product {
  background: linear-gradient(165deg, #0e1412, #070a08);
  border: 1px solid #171c19;
  padding: 0.65rem 0.65rem 1.15rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.product.is-hidden { display: none; }
.product:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 36px rgba(0,255,200,0.08);
}
.product .thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 0.9rem;
  border: 1px solid #121212;
}
.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product:hover .thumb img { transform: scale(1.07); }
.product .thumb .add {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  background: rgba(0,255,200,0.95);
  color: #000;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.product:hover .thumb .add { transform: none; }
.product .cat {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a64;
  margin-bottom: 0.3rem;
  padding: 0 0.2rem;
}
.product h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
  padding: 0 0.2rem;
  line-height: 1.35;
}
.product .price {
  font-family: var(--mono);
  font-size: 1rem;
  color: #ddd;
  padding: 0 0.2rem;
}

/* Docs */
.docs { background: #020303; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.doc {
  background: var(--elev);
  border: 1px solid #161a18;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
a.doc:hover { color: inherit; }
.doc:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0,255,200,0.08);
}
.doc.big {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
}
.doc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
}
.doc.big .doc-media {
  aspect-ratio: auto;
  min-height: 260px;
  height: 100%;
}
.doc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.55s var(--ease), filter 0.35s;
}
.doc:hover .doc-media img {
  transform: scale(1.06);
  filter: brightness(0.95);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(0,255,200,0.3);
  transition: transform 0.3s, background 0.3s;
}
.play::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-40%, -50%);
  border: 8px solid transparent;
  border-left: 12px solid var(--cyan);
}
.doc:hover .play,
.fd-media:hover .play {
  animation: none;
  transform: scale(1.1);
  background: var(--cyan);
}
.doc:hover .play::after,
.fd-media:hover .play::after { border-left-color: #000; }
.doc-body { padding: 1.15rem 1.2rem 1.3rem; }
.doc .tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a64;
  display: block;
  margin-bottom: 0.45rem;
}
.doc h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #eee;
  transition: color 0.25s;
}
.doc.big h3 { font-size: 1.7rem; }
.doc:hover h3 { color: var(--cyan); }
.doc p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.5rem;
  line-height: 1.55;
}

/* Stories */
.stories { background: #000; }
.story {
  position: relative;
  min-height: min(78vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 200, 0.08);
}
.story > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.5) contrast(1.1);
  transition: transform 1.2s var(--ease), filter 0.7s;
  will-change: transform;
}
.story.is-in > img,
.story:hover > img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(0.6) contrast(1.12);
}
.story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,8,6,0.55) 50%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}
.story-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 255, 160, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.story:hover .story-scan { opacity: 1; }
.story.flip .story-shade {
  background: linear-gradient(270deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.2) 100%);
}
.story.flip { justify-content: flex-end; }
.story-copy {
  position: relative;
  z-index: 2;
  width: min(500px, 90vw);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  margin-left: max(4vw, calc((100vw - var(--max)) / 2));
}
.story.flip .story-copy {
  margin-left: 0;
  margin-right: max(4vw, calc((100vw - var(--max)) / 2));
  text-align: right;
}
.story.flip .story-copy .btn { margin-left: auto; }
.story-copy {
  animation: none;
}
.story.is-in .story-copy {
  animation: storyCopyIn 0.9s var(--ease) both;
}
@keyframes storyCopyIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.story-copy h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.story-copy h2 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 36px rgba(0,255,200,0.35);
}
.story-copy p:not(.eyebrow) {
  color: #b0beb8;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 36ch;
  margin-bottom: 1.4rem;
}
.story.flip .story-copy p:not(.eyebrow) { margin-left: auto; }

/* Curriculum */
.curriculum { background: #050807; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.topic-card {
  background: linear-gradient(165deg, rgba(14,20,18,0.98), rgba(5,7,6,0.99));
  border: 1px solid #1a201c;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}
a.topic-card:hover { color: inherit; }
.topic-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 36px rgba(0,255,200,0.1);
}
.topic-card .num {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--line);
  padding: 0.25rem 0.45rem;
  backdrop-filter: blur(8px);
}
.topic-card .art {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.topic-card .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75));
}
.topic-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.topic-card:hover .art img { transform: scale(1.08); }
.topic-card .body { padding: 1.1rem 1.05rem 1.3rem; }
.topic-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.topic-card p {
  font-size: 0.86rem;
  color: #8a9a94;
  line-height: 1.5;
}

/* News */
.news { background: #000; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.news-card {
  background: #070a08;
  border: 1px solid #161a18;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.35s var(--ease);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.news-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
}
.news-card.wide .news-img {
  aspect-ratio: auto;
  min-height: 260px;
  height: 100%;
}
a.news-card:hover { color: inherit; }
.news-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
}
.news-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: brightness(0.88);
}
.news-card:hover .news-img img {
  transform: scale(1.05);
  filter: brightness(1);
}
.news-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.news-body .meta {
  display: flex;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-2);
}
.news-body .meta time { color: #555; }
.news-body h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #eee;
  transition: color 0.25s;
}
.news-card:hover h3 { color: var(--cyan); }
.news-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.news-body .link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  transition: color 0.25s;
}
.news-card:hover .link { color: var(--cyan); }

/* Quotes */
.quotes {
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,55,42,0.2), #000 70%);
  text-align: center;
}
.quote-box {
  margin-top: 1rem;
  padding: 2.6rem 1.6rem;
  border: 1px solid rgba(0, 255, 200, 0.22);
  background: rgba(0,10,8,0.55);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 255, 160, 0.06), inset 0 0 40px rgba(0, 255, 120, 0.03);
  overflow: hidden;
}
.quote-box::before,
.quote-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  opacity: 0.55;
  box-shadow: 0 0 10px rgba(0, 255, 160, 0.25);
  animation: quotePulse 4s ease-in-out infinite;
}
@keyframes quotePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
.quote-box::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.quote-box::after { bottom: -1px; right: -1px; border-left: none; border-top: none; animation-delay: 2s; }
#quote-stage { position: relative; min-height: 150px; }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.quote.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.quote p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: #eef6f2;
  margin-bottom: 1.2rem;
  max-width: 26ch;
}
.quote cite {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--cyan-2);
  text-transform: uppercase;
}
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--cyan-dim);
  background: transparent;
  padding: 0;
  transition: all 0.2s;
}
.quote-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--glow);
}

/* Camelot */
.camelot { background: #000; }
.camelot-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.camelot-logo {
  height: 46px;
  width: auto;
  margin: 1.2rem 0 1.2rem;
  filter: brightness(1.15) drop-shadow(0 0 14px rgba(0,255,200,0.2));
}
.ticks {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.ticks li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d8d0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ticks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0,255,200,0.4);
  flex-shrink: 0;
}
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.mosaic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #181818;
  transition: border-color 0.35s, filter 0.4s, transform 0.5s var(--ease);
  filter: brightness(0.9);
}
.mosaic img.span2 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.mosaic img:hover {
  border-color: rgba(0, 255, 200, 0.4);
  filter: brightness(1.08);
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 255, 160, 0.15);
}
.ticks li {
  transition: transform 0.3s var(--ease), color 0.25s;
}
[data-reveal].is-in .ticks li {
  animation: tickIn 0.55s var(--ease) both;
}
[data-reveal].is-in .ticks li:nth-child(1) { animation-delay: 0.15s; }
[data-reveal].is-in .ticks li:nth-child(2) { animation-delay: 0.25s; }
[data-reveal].is-in .ticks li:nth-child(3) { animation-delay: 0.35s; }
@keyframes tickIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
.ticks li:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

/* CTA */
.cta {
  background:
    radial-gradient(ellipse 55% 80% at 50% 100%, rgba(0,90,65,0.3) 0%, transparent 55%),
    #010201;
}
.cta-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.4rem, 5vw, 3.2rem) 1.5rem;
  border: 1px solid rgba(0, 255, 200, 0.28);
  background: rgba(0,12,10,0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 255, 160, 0.08);
}
.cta-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.12);
  pointer-events: none;
  opacity: 0.7;
}
.cta-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 160, 0.14);
  box-shadow: 0 0 70px rgba(0, 255, 200, 0.06);
}
.join {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.join input {
  flex: 1 1 230px;
  background: #050a08;
  border: 1px solid var(--line);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.join input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(0,255,200,0.12);
}
.join button {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 1rem 1.4rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.join button:hover {
  background: #fff;
  box-shadow: 0 0 28px var(--glow);
}
.ok {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

/* Footer — clean terminal end-cap */
.foot {
  border-top: 1px solid rgba(0, 255, 200, 0.12);
  padding: 3.75rem 0 max(1.75rem, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 60, 45, 0.14), transparent 55%),
    linear-gradient(180deg, #040706 0%, #000 70%);
  margin-top: 1rem;
}
.foot-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0, 255, 200, 0.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 255, 200, 0.08);
  margin-bottom: 1.15rem;
  align-items: start;
}
.foot-brand-link { display: inline-block; }
.foot-logo {
  height: 36px;
  width: auto;
  max-width: 240px;
  margin-bottom: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--glow));
}
.foot-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin: 0;
}
.foot-blurb {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6a7a74;
  max-width: 28ch;
  margin: 0 0 0.85rem;
}
.foot-cta {
  font-family: var(--mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan) !important;
}
.foot-cta:hover { color: #fff !important; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}
.foot-col a {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #7a8a84;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  transition: color 0.2s, transform 0.2s;
}
.foot-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.foot-links {
  display: contents;
}
.foot-grid > .foot-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  grid-column: span 2;
}
.foot-links h4 {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 0.75rem;
}
.foot-links a {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #6a7a74;
  margin-bottom: 0.4rem;
}
.foot-links a:hover { color: #fff; }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: #4a5a54;
  letter-spacing: 0.08em;
}
.foot-base .mono { color: var(--cyan-dim); letter-spacing: 0.16em; }

.totop {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-2);
  background: rgba(0,12,10,0.9);
  color: var(--cyan);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  -webkit-tap-highlight-color: transparent;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--cyan); color: #000; }

/* Responsive */
@media (max-width: 980px) {
  .manifesto-grid,
  .docs-grid,
  .news-grid,
  .camelot-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col-signal { grid-column: 1 / -1; }
  .foot-brand { grid-column: 1 / -1; }
  .product-grid,
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .manifesto-copy {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.4rem;
  }
  .story-copy,
  .story.flip .story-copy {
    margin-inline: 4vw;
    text-align: left;
  }
  .story.flip .story-copy .btn,
  .story.flip .story-copy p:not(.eyebrow) { margin-left: 0; }
  .story-shade,
  .story.flip .story-shade {
    background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
  }
  .sheet {
    left: 4vw;
    right: 4vw;
    width: auto;
  }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
  .doc.big,
  .news-card.wide {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .doc.big .doc-media,
  .news-card.wide .news-img {
    min-height: 180px;
  }
  .docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root {
    --header: 72px;
    --hero-gap: 1.25rem;
  }
  .hero-ui {
    padding-top: calc(var(--header) + var(--hero-gap) + 2.5rem);
  }
  .hero-status {
    top: calc(var(--header) + var(--hero-gap));
  }
  .topbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    gap: 0.5rem;
  }
  .brand img { height: 36px; }
  .menu-btn { display: flex; position: relative; top: auto; right: auto; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 14px;
    background: rgba(0, 10, 8, 0.97);
    border: 1px solid rgba(0, 255, 200, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 255, 160, 0.08);
    backdrop-filter: blur(18px);
  }
  .nav.open { display: flex; }
  .nav a {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    border-radius: 10px;
    color: #e4f5ee;
    background: rgba(0, 255, 200, 0.04);
    border: 1px solid rgba(0, 255, 200, 0.1);
  }
  .nav a:hover {
    background: rgba(0, 255, 200, 0.12);
    border-color: rgba(0, 255, 200, 0.35);
  }
  .nav a.on {
    color: #04120e;
  }
  .nav a::after { display: none; }
}
@media (max-width: 640px) {
  .product-grid,
  .topic-grid,
  .docs-grid { grid-template-columns: 1fr; }
  .hero-node.is-outer .label { display: none; }
  .hero-node {
    width: clamp(48px, 11vw, 66px);
    height: clamp(48px, 11vw, 66px);
  }
  .hero-node.is-outer {
    width: clamp(36px, 8.5vw, 50px);
    height: clamp(36px, 8.5vw, 50px);
  }
}
/* Doc / topic / news polish */
.doc, .topic-card, .news-card {
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.doc:hover, .topic-card:hover, .news-card:hover {
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 28px rgba(0, 255, 160, 0.1);
}
.orb-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb-field i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 255, 160, 0.45);
  box-shadow: 0 0 12px rgba(0, 255, 160, 0.5);
  animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-18px) scale(1.4); opacity: 0.9; }
}

a.film-card { color: inherit; text-decoration: none; display: block; }
a.cast-card { display: block; }
.cast-rail a.cast-card { display: flex; }

/* ============================================================
   FUN MOTION LAYER — stable, GPU-friendly
   ============================================================ */

/* Soft cursor glow (JS positions --mx/--my on body) */
body.fun-cursor::after {
  content: "";
  position: fixed;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 180, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: screen;
  transition: opacity 0.3s;
  opacity: 0.85;
}

/* Shimmer sweep on primary buttons */
.btn.primary {
  position: relative;
  overflow: hidden;
}
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: btnShine 3.8s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 60% { transform: translateX(-120%); }
  80% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.btn.ghost {
  position: relative;
  overflow: hidden;
}
.btn.ghost:hover {
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.15);
}

/* Animated underline glow on display emphasis */
.display em,
.hero-center h1 em,
.page-hero h1 em {
  position: relative;
  display: inline-block;
}
.display em::after,
.hero-center h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.08em;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.65;
  animation: emPulse 2.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
}
@keyframes emPulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
  50% { opacity: 0.95; transform: scaleX(1); }
}

/* Eyebrow live blink */
.eyebrow.cyan::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Card shine hover (overlay only — no layout thrash) */
.hub-card,
.news-card,
.doc,
.topic-card,
.related-card,
.still,
.film-card {
  position: relative;
  overflow: hidden;
}
.hub-card::after,
.news-card::after,
.doc::after,
.topic-card::after,
.film-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(0, 255, 200, 0.12) 48%,
    transparent 62%
  );
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.hub-card:hover::after,
.news-card:hover::after,
.doc:hover::after,
.topic-card:hover::after,
.film-card:hover::after {
  transform: translateX(130%) skewX(-12deg);
}

/* Floating lift on cards */
.hub-card,
.news-card,
.doc,
.topic-card {
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.hub-card:hover,
.news-card:hover,
.doc:hover,
.topic-card:hover {
  transform: translateY(-6px);
}

/* Metric pop */
.metrics > div b {
  transition: transform 0.35s var(--ease), text-shadow 0.35s;
}
.metrics > div:hover b {
  transform: scale(1.12);
  text-shadow: 0 0 28px rgba(0, 255, 200, 0.65);
}

/* Quote fade crossfade enhancement */
.quote {
  transition: opacity 0.7s ease, transform 0.7s var(--ease) !important;
}
.quote.is-active {
  animation: quotePop 0.7s var(--ease) both;
}
@keyframes quotePop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Play button breathe (margin-centered — scale only) */
.doc .play,
.fd-media .play {
  animation: playBreathe 2.4s ease-in-out infinite;
}
@keyframes playBreathe {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 255, 200, 0.25); transform: scale(1); }
  50% { box-shadow: 0 0 28px rgba(0, 255, 200, 0.55); transform: scale(1.07); }
}

/* Marquee ticker strip */
.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(0, 255, 200, 0.15);
  background: rgba(0, 12, 8, 0.7);
  padding: 0.55rem 0;
  margin: 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: tickerMove 32s linear infinite;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-2);
  white-space: nowrap;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { opacity: 0.85; }
.ticker-track span::before {
  content: "◆";
  margin-right: 0.85rem;
  color: var(--cyan);
  opacity: 0.6;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section divider spark line */
.sec-head .display {
  position: relative;
}
[data-reveal].is-in .sec-head .display::after,
[data-reveal].is-in .manifesto .display::after {
  content: "";
  display: block;
  width: min(120px, 30%);
  height: 2px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
  animation: lineGrow 0.9s var(--ease) both;
}
.sec-head.center .display::after { margin-inline: auto; }
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to { width: min(120px, 30%); opacity: 1; }
}

/* Hero center float */
.hero-center {
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-center .sub {
  animation: fadeBlink 4s ease-in-out infinite;
}
@keyframes fadeBlink {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* Stagger fade-up for cards with delay vars */
[data-reveal].is-in .film-card,
[data-reveal].is-in .cast-card,
[data-reveal].is-in .doc,
[data-reveal].is-in .topic-card,
[data-reveal].is-in .news-card,
[data-reveal].is-in .hub-card {
  animation: cardRiseFun 0.65s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
@keyframes cardRiseFun {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Filter bar pop */
.filter-bar button {
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s !important;
}
.filter-bar button:hover {
  transform: translateY(-2px);
}
.filter-bar button.on {
  animation: filterOn 0.4s var(--ease) both;
}
@keyframes filterOn {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}

/* Aside card slide */
.aside-card {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease);
}
.aside-card:hover {
  border-color: rgba(0, 255, 200, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 255, 160, 0.06);
  transform: translateY(-2px);
}

/* Page hero entrance */
.page-hero h1 {
  animation: titleIn 0.85s var(--ease) both;
}
.page-hero .page-meta {
  animation: titleIn 0.85s 0.12s var(--ease) both;
}
.page-hero-bg {
  animation: pageHeroSlow 18s ease-in-out infinite alternate;
}
@keyframes pageHeroSlow {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

/* Totop bounce-in */
.totop.show {
  animation: totopIn 0.35s var(--ease) both;
}
@keyframes totopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

/* Loading glitch flash on brand logo hover already exists — amp slightly */
.brand img {
  transition: filter 0.3s, transform 0.35s var(--ease);
}
.brand:hover img {
  animation: logoFlicker 0.6s ease;
}
@keyframes logoFlicker {
  0%, 100% { filter: drop-shadow(0 0 16px var(--glow)); }
  30% { filter: drop-shadow(0 0 28px rgba(0, 255, 200, 0.85)) brightness(1.15); }
  50% { filter: drop-shadow(0 0 8px var(--glow)) brightness(0.95); }
  70% { filter: drop-shadow(0 0 32px rgba(0, 255, 200, 0.7)) brightness(1.1); }
}

/* Infinite glyph rain strip under hero optional */
.signal-bar {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a7a6e;
  border-bottom: 1px solid rgba(0, 255, 200, 0.12);
  background: rgba(0, 6, 4, 0.92);
  position: sticky;
  top: var(--header);
  z-index: 90;
  backdrop-filter: blur(10px);
}
.signal-bar i {
  font-style: normal;
  color: var(--cyan-2);
  opacity: 0.7;
  animation: signalTick 2.2s ease-in-out infinite;
}
.signal-bar i:nth-child(2) { animation-delay: 0.3s; }
.signal-bar i:nth-child(3) { animation-delay: 0.6s; }
.signal-bar i:nth-child(4) { animation-delay: 0.9s; }
@keyframes signalTick {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(0, 255, 200, 0.5); }
}

/* Image ken-burns on card media */
.hub-card img,
.news-img img,
.doc-media img,
.topic-card .art img,
.related-card img {
  transition: transform 0.7s var(--ease), filter 0.4s, opacity 0.4s;
  will-change: transform;
}
.hub-card:hover img,
.news-card:hover .news-img img,
.doc:hover .doc-media img,
.topic-card:hover .art img,
.related-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.08);
}

/* Click ripple */
.ripple-host {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 255, 200, 0.35);
  transform: scale(0);
  animation: rippleOut 0.65s ease-out forwards;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes rippleOut {
  to { transform: scale(1); opacity: 0; }
}

/* Typewriter caret */
.sub.is-typing::after {
  content: "▌";
  margin-left: 2px;
  color: var(--cyan);
  animation: caretBlink 0.8s step-end infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

/* Section scanline wash on enter */
[data-reveal].is-in {
  position: relative;
}
[data-reveal].is-in::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.55), transparent);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.4);
  animation: scanWash 1.1s var(--ease) both;
  pointer-events: none;
  z-index: 4;
}
@keyframes scanWash {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(80px); opacity: 0; }
}

/* Story copy stagger children */
.story.is-in .story-copy > * {
  animation: storyCopyIn 0.7s var(--ease) both;
}
.story.is-in .story-copy > *:nth-child(1) { animation-delay: 0.05s; }
.story.is-in .story-copy > *:nth-child(2) { animation-delay: 0.15s; }
.story.is-in .story-copy > *:nth-child(3) { animation-delay: 0.25s; }
.story.is-in .story-copy > *:nth-child(4) { animation-delay: 0.35s; }

/* Join form focus glow */
.join input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 200, 0.15), 0 0 24px rgba(0, 255, 200, 0.2);
}
.join button {
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.join button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(0, 255, 200, 0.4);
}

/* Footer link sweep */
.foot-col a {
  position: relative;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.foot-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s var(--ease);
  transform: translateY(-50%);
  opacity: 0;
}
.foot-col a:hover {
  padding-left: 0.7rem;
  color: #fff;
}
.foot-col a:hover::before {
  width: 0.4rem;
  opacity: 1;
}

/* Body depth classes for ambient tweaks */
body.scrolled-deep .topbar {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 255, 160, 0.08);
}
body.scrolled-deep .noise { opacity: 0.05; }

/* Dossier sheet entrance polish */
.sheet:not([hidden]) {
  animation: sheetIn 0.4s var(--ease) both, sheetGlow 2.5s ease-in-out infinite alternate;
}
@keyframes sheetGlow {
  from { box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 30px rgba(0,255,200,0.08); }
  to { box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 48px rgba(0,255,200,0.18); }
}

/* Pill live stronger */
.pill.live {
  animation: pillPulse 2s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { border-color: rgba(0, 255, 200, 0.35); }
  50% { border-color: rgba(0, 255, 200, 0.75); box-shadow: 0 0 16px rgba(0, 255, 200, 0.2); }
}

/* HUD mono digits tick */
#hud-time {
  font-variant-numeric: tabular-nums;
  color: var(--cyan-2);
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal] .reveal-child { opacity: 1; transform: none; }
  .story-scan, .sec-glow, .cta-ring,
  .btn.primary::after, .ticker-track, .hero-center, .page-hero-bg,
  body.fun-cursor::after, .page-flash, .noise, .scroll-progress { animation: none !important; }
  body.fun-cursor::after, .page-flash { display: none; }
  html { scroll-behavior: auto; }
}

/* Mobile / low-power tidy: less continuous animation cost */
@media (max-width: 720px), (pointer: coarse) {
  body.fun-cursor::after { display: none !important; }
  .noise { opacity: 0.025; }
  .page-flash { display: none; }
  .sec-glow { opacity: 0.65; }
  .story-scan { display: none; }
  .btn.primary::after { animation: none; }
  .ticker-track { animation-duration: 48s; }
  .hero-node .orb-ring { animation: none; }
  [data-reveal] {
    transform: translateY(16px);
    transition-duration: 0.45s;
  }
  .sec {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
  }
  .sec-head { margin-bottom: 1.25rem; }
  .metrics {
    gap: 0.75rem !important;
  }
}

/* Tighter section rhythm on desktop */
@media (min-width: 900px) {
  .sec.film,
  .sec.cast {
    padding-top: clamp(3.5rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
  }
  .media-scroller {
    margin-top: 0.15rem;
  }
}

/* ============================================================
   CROSS-DEVICE / CROSS-BROWSER COMPAT
   ============================================================ */

/* Backdrop-filter prefixes for Safari */
.nav,
.scroller-edge,
.bts-lightbox-x,
.bts-lightbox-nav,
.sheet,
.menu-btn {
  -webkit-backdrop-filter: blur(12px);
}

/* Sticky/fixed stacking on iOS Safari */
.topbar,
.bts-lightbox,
.totop {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Join form: stack cleanly on narrow screens */
.join {
  flex-wrap: wrap;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.join input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 48px;
  font-size: 16px !important; /* iOS: no auto-zoom */
  border-radius: 4px;
}
.join button {
  flex: 0 0 auto;
  min-height: 48px;
  min-width: 140px;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Touch targets */
.rail-nav,
.scroller-edge,
.quote-dot,
.menu-btn {
  min-width: 44px;
  min-height: 44px;
}

/* Prevent media rail images from being drag-ghosted */
.media-rail img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Body lock when mobile menu open */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Mobile nav full-safe overlay panel */
@media (max-width: 720px) {
  .topbar-inner {
    width: min(1200px, calc(100% - 1rem));
    position: relative;
  }
  .nav.open {
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .hero {
    min-height: 100vh; /* older iOS */
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero-center h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    word-break: break-word;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
    text-align: center;
    justify-content: center;
  }
  .display {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .camelot-grid,
  .mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .foot {
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }
  /* Hide edge arrows when they crowd small phones — use swipe */
  .scroller-edge {
    opacity: 0.75;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .container { width: calc(100% - 1rem); }
  .btn { padding: 0.75rem 1rem; font-size: 0.65rem; }
  .cast-rail a.cast-card,
  .cast-rail .cast-card {
    flex: 0 0 46vw;
    min-width: 120px;
  }
  button.film-card,
  .film-card {
    flex: 0 0 86vw;
  }
}

/* Tablets */
@media (min-width: 721px) and (max-width: 1024px) {
  :root { --header: 96px; }
  .hero-node {
    width: clamp(50px, 6vw, 72px);
    height: clamp(50px, 6vw, 72px);
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Landscape phones — keep hero usable */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-center {
    padding-bottom: 0.5rem;
  }
  .hero-center .sub { display: none; }
  .hero-status { display: none; }
  .hero-node .label { display: none; }
  .page-flash { display: none; }
}

/* High-DPI image sharpening */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .film-card img,
  .doc-media img,
  .news-img img {
    image-rendering: auto;
  }
}

/* Prefer reduced data: lighter continuous effects */
@media (prefers-reduced-data: reduce) {
  .noise,
  .page-flash,
  .orb-field,
  .story-scan { display: none !important; }
  .sec-bg { opacity: 0.08; }
}

/* Forced colors / high contrast */
@media (forced-colors: active) {
  .btn,
  .film-card,
  .cast-card,
  .doc,
  .news-card,
  .nav a {
    border: 1px solid CanvasText;
  }
  .bts-lightbox {
    background: Canvas;
  }
}

/* Print: readable archive */
@media print {
  .noise, .page-flash, .scroll-progress, .topbar, .totop,
  .hero-canvas, .scroller-edge, .rail-nav, .ticker, .signal-bar,
  body.fun-cursor::after, .orb-field {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  a { color: #000; text-decoration: underline; }
  .sec, .hero { min-height: 0; overflow: visible; padding: 1rem 0; }
  [data-reveal], [data-reveal] .reveal-child { opacity: 1 !important; transform: none !important; }
}

/* Firefox scrollbar hide for rails */
.media-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Ensure sheets/dossier don't overflow mobile */
.sheet {
  max-width: min(340px, calc(100vw - 2rem));
  max-height: min(80vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Video embeds responsive (article/docs pages) */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Avoid 100vw horizontal scroll (scrollbar width) */
html, body { width: 100%; }
img[width][height] { height: auto; }

/* color-scheme for form controls in dark UIs */
:root { color-scheme: dark; }

/* Brand selection + scrollbar */
::selection {
  background: rgba(0, 255, 200, 0.28);
  color: #fff;
}
::-moz-selection {
  background: rgba(0, 255, 200, 0.28);
  color: #fff;
}
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 200, 0.35) #050807;
}
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: #050807; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 200, 0.45), rgba(0, 140, 110, 0.35));
  border-radius: 8px;
  border: 2px solid #050807;
}
html::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 200, 0.65);
}

/* Unified card surface language */
.doc,
.news-card,
.topic-card {
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 200, 0.12);
  background: linear-gradient(180deg, rgba(0, 22, 18, 0.55) 0%, rgba(4, 8, 7, 0.92) 100%);
  overflow: hidden;
}
.doc:hover,
.news-card:hover,
.topic-card:hover {
  border-color: rgba(0, 255, 200, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 255, 160, 0.1);
}
.doc .tag,
.news-card .meta,
.topic-card .num {
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Film section atmosphere */
.sec.film .sec-head .lede { max-width: 46ch; }
.film-scroller {
  margin-top: 0.25rem;
}

/* Hide outer mesh density on phones — cleaner hero hierarchy */
@media (max-width: 720px) {
  .hero-node.is-outer {
    transform: scale(0.88);
    opacity: 0.55;
  }
  .hero-node.is-outer .label { display: none !important; }
  .bts-lightbox-frame img,
  .bts-lightbox img {
    max-height: min(48vh, calc(100dvh - 16rem));
  }
  .bts-thumb { flex-basis: 64px; width: 64px; height: 42px; }
  .bts-lightbox-hint { display: none; }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-col-signal { grid-column: 1 / -1; }
  .foot-top { margin-bottom: 1.5rem; padding-bottom: 1.25rem; }
}
@media (max-width: 520px) {
  .hero-node.is-outer { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* JS adds .is-touch on coarse pointers */
html.is-touch body.fun-cursor::after { display: none !important; }
html.is-touch .film-card:hover,
html.is-touch .cast-card:hover,
html.is-touch .doc:hover,
html.is-touch .news-card:hover,
html.is-touch .topic-card:hover {
  transform: none;
}
html.is-touch .scroller-edge {
  opacity: 0.9;
}

/* ============================================================
   UI v4 POLISH � Hero � Section rhythm � Cards � Chrome
   ============================================================ */

/* �� Pass A: Hero clarity �� */
.hero-center {
  max-width: min(720px, 92vw);
  padding: 1.1rem 1.25rem 1.35rem;
  margin-bottom: 0.25rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 10, 8, 0.15) 0%, rgba(0, 8, 6, 0.72) 40%, rgba(0, 6, 4, 0.88) 100%);
  border: 1px solid rgba(0, 255, 200, 0.12);
  box-shadow:
    0 -20px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 255, 160, 0.04),
    inset 0 1px 0 rgba(0, 255, 200, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  pointer-events: none;
}
.hero-center .hero-actions { pointer-events: auto; }
.hero-center h1 {
  font-size: clamp(2.2rem, 6.2vw, 3.85rem);
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 8px 40px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(0, 255, 160, 0.12);
}
.hero-eyebrow {
  margin-bottom: 0.55rem;
  opacity: 0.9;
}
.hero-center .sub {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #8fa89e;
  max-width: 42ch;
  margin-inline: auto;
  line-height: 1.55;
}
.hero-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem auto 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 255, 200, 0.55);
}
.hero-cue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0, 255, 160, 0.4);
  animation: pulse 1.6s ease-in-out infinite;
}
.hero-actions {
  margin-top: 1.15rem;
  gap: 0.65rem;
}
.hero-actions .btn {
  min-height: 44px;
  padding: 0.85rem 1.25rem;
}
/* Nodes sit above the docked copy */
.hero-stage { z-index: 5; }
.hero-nodes { z-index: 5; }
.hero-center { z-index: 4; }
.hero-node {
  width: clamp(56px, 6.2vw, 86px);
  height: clamp(56px, 6.2vw, 86px);
  filter: drop-shadow(0 0 14px rgba(0, 255, 160, 0.4));
}
.hero-node .label {
  top: calc(100% + 6px);
  font-size: 0.56rem;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  background: rgba(0, 8, 6, 0.75);
  border: 1px solid rgba(0, 255, 160, 0.18);
  opacity: 0.35; /* subtle always-on affordance */
}
.hero-node:hover .label,
.hero-node.is-frozen .label,
.hero-node.is-active .label {
  opacity: 1;
  border-color: rgba(0, 255, 200, 0.45);
}
/* Gentle idle pulse so nodes invite interaction */
.hero-node .orb-ring {
  animation: orbPulse 2.8s ease-in-out infinite;
}
.hero-status {
  gap: 0.45rem;
  opacity: 0.92;
}
.hero-status .pill,
.hero-status .mono {
  font-size: 0.58rem;
  padding: 0.32rem 0.55rem;
}
/* When dossier open, soften center dock */
.hero:has(.sheet:not([hidden])) .hero-center {
  opacity: 0.28;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.hero-center {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.sheet {
  border-radius: 12px;
  border-color: rgba(0, 255, 200, 0.32);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(0, 255, 160, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* �� Pass B: Section rhythm �� */
.sec {
  padding: clamp(3.5rem, 6.5vw, 5.75rem) 0;
}
.sec-tone-deep {
  background:
    radial-gradient(ellipse 70% 55% at 10% 0%, rgba(0, 90, 65, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(0, 40, 30, 0.12), transparent 50%),
    #000;
}
.sec-tone-cinema {
  background:
    linear-gradient(180deg, #000 0%, #040606 40%, #020303 100%);
  padding-bottom: clamp(3.25rem, 6vw, 5rem);
}
.sec-tone-cinema .sec-bg { opacity: 0.22; }
.sec-tone-people {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 80, 58, 0.2), transparent 55%),
    #010302;
}
.sec-tone-archive {
  background:
    radial-gradient(ellipse 60% 45% at 80% 20%, rgba(0, 55, 42, 0.1), transparent 55%),
    #030504;
}
.sec-tone-grid {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 50, 38, 0.14), transparent 55%),
    #040706;
}
.sec-tone-feed {
  background:
    linear-gradient(180deg, #000 0%, #050807 50%, #020303 100%);
}
.sec-tone-quiet {
  background:
    radial-gradient(ellipse 65% 70% at 50% 50%, rgba(0, 45, 35, 0.22), #000 72%);
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}
.sec-tone-prod {
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(0, 70, 50, 0.1), transparent 55%),
    #020403;
}
.sec-tone-signal {
  background:
    radial-gradient(ellipse 55% 85% at 50% 100%, rgba(0, 100, 70, 0.32) 0%, transparent 58%),
    #010201;
}

/* Manifesto � bolder type, clearer split */
.display-xl {
  font-size: clamp(2.65rem, 6.2vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0.035em;
  max-width: 14ch;
}
.manifesto-grid {
  gap: clamp(2.25rem, 5.5vw, 4.5rem);
  margin-bottom: 2.75rem;
  align-items: end;
}
.manifesto-copy {
  border-left-color: rgba(0, 255, 200, 0.22);
  padding-left: clamp(1.35rem, 3.2vw, 2rem);
}
.manifesto-copy p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #9aada4;
}
.metrics {
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 255, 160, 0.05);
}
.metrics > div {
  padding: 1.55rem 1rem 1.4rem;
}
.metrics b {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

/* Signal bar + ticker � quieter bridge (keep sticky under header) */
.signal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 10, 8, 0.94);
  border-block: 1px solid rgba(0, 255, 200, 0.12);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 255, 200, 0.55);
  position: sticky;
  top: var(--header);
  z-index: 90;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.signal-bar i {
  font-style: normal;
  position: relative;
}
.signal-bar i:not(:last-child)::after {
  content: "�";
  position: absolute;
  right: -0.75rem;
  color: rgba(0, 255, 200, 0.25);
}
.ticker {
  padding: 0.45rem 0;
  border-block-color: rgba(0, 255, 200, 0.1);
  background: rgba(0, 8, 6, 0.85);
}
.ticker-track {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  opacity: 0.9;
}

/* Film strip � more cinematic */
.sec-tone-cinema .film-strip.media-rail {
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
.sec-tone-cinema button.film-card,
.sec-tone-cinema .film-card {
  flex: 0 0 min(78vw, 400px);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border-color: rgba(0, 255, 200, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.sec-tone-cinema button.film-card:first-child,
.sec-tone-cinema .film-card:first-child {
  flex-basis: min(86vw, 520px);
  border-color: rgba(0, 255, 200, 0.32);
}
.sec-tone-cinema .film-card .cap {
  padding: 2.6rem 1rem 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* Section heads � tighter, more editorial */
.sec-head .display {
  letter-spacing: 0.045em;
}
.sec-head .lede {
  color: #8b9c94;
  font-size: 1.02rem;
  max-width: 38ch;
}

/* �� Pass C: Cards (docs / news / stories / topics) �� */
.docs-grid {
  gap: 1.2rem;
}
.doc {
  border-radius: 10px;
  border-color: rgba(0, 255, 200, 0.1);
  background: linear-gradient(165deg, #0c1210 0%, #070a08 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.doc.big {
  border-color: rgba(0, 255, 200, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 255, 160, 0.06);
}
.doc.big .doc-media {
  min-height: 300px;
}
.doc.big h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  letter-spacing: 0.04em;
}
.doc-media {
  aspect-ratio: 16 / 9;
}
.doc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
}
.doc-media .play { z-index: 2; }
.doc-body {
  padding: 1.25rem 1.3rem 1.4rem;
}
.doc .tag {
  color: var(--cyan-2);
  opacity: 0.85;
  letter-spacing: 0.14em;
}
.doc h3 {
  font-size: 1.35rem;
  line-height: 1.12;
}

.news-grid { gap: 1.2rem; }
.news-card {
  border-radius: 10px;
  border-color: rgba(0, 255, 200, 0.1);
  background: linear-gradient(165deg, #0a100e, #060908);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.news-card.wide {
  border-color: rgba(0, 255, 200, 0.2);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(0, 255, 160, 0.05);
}
.news-card.wide .news-img {
  min-height: 280px;
}
.news-card.wide h3 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}
.news-body {
  padding: 1.3rem 1.35rem 1.45rem;
  gap: 0.6rem;
}
.news-body .link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.25rem;
  color: rgba(0, 255, 200, 0.55);
}

/* Stories � taller, more cinematic */
.story {
  min-height: min(82vh, 680px);
  border-bottom: none;
}
.story + .story {
  border-top: 1px solid rgba(0, 255, 200, 0.08);
}
.story > img {
  filter: saturate(0.8) brightness(0.45) contrast(1.12);
}
.story.is-in > img,
.story:hover > img {
  filter: saturate(1.02) brightness(0.55) contrast(1.14);
}
.story-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,6,4,0.7) 42%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.story.flip .story-shade {
  background:
    linear-gradient(270deg, rgba(0,0,0,0.94) 0%, rgba(0,6,4,0.65) 48%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.story-copy {
  width: min(540px, 92vw);
  padding: clamp(2.75rem, 6.5vw, 5rem);
}
.story-copy h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  margin-bottom: 1rem;
}
.story-copy .btn {
  min-height: 44px;
  margin-top: 0.25rem;
}

/* Topics */
.topic-grid { gap: 1.15rem; }
.topic-card {
  border-radius: 10px;
  border-color: rgba(0, 255, 200, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.topic-card .body {
  padding: 1.15rem 1.1rem 1.35rem;
}
.topic-card h3 {
  font-size: 1.35rem;
}

/* �� Pass D: Cast � quotes � CTA � footer � chrome �� */
.cast-rail a.cast-card,
.cast-rail .cast-card {
  border-radius: 16px;
  border-color: rgba(0, 255, 200, 0.14);
  padding: 0.75rem 0.6rem 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.cast-rail .cast-card.is-lead {
  border-color: rgba(0, 255, 200, 0.35);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(0, 255, 160, 0.1);
}
.cast-rail .cast-card h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  letter-spacing: 0.05em;
}
.cast-rail .cast-card .role {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: #6dffc0;
}

.quote-box {
  border-radius: 12px;
  padding: clamp(2.4rem, 5vw, 3.2rem) 1.75rem;
  border-color: rgba(0, 255, 200, 0.18);
  background: rgba(0, 10, 8, 0.65);
}
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.quote-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.4);
  background: transparent;
  padding: 0;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.quote-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.55);
  transform: scale(1.15);
}

.cta-card {
  border-radius: 16px;
  padding: clamp(2.6rem, 5.5vw, 3.6rem) 1.75rem;
  border-color: rgba(0, 255, 200, 0.32);
  box-shadow:
    0 0 80px rgba(0, 255, 160, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.join {
  gap: 0.55rem;
  margin-top: 1.65rem;
}
.join input {
  border-radius: 8px;
  min-height: 48px;
  border-color: rgba(0, 255, 200, 0.18);
  font-size: 16px; /* no iOS zoom */
}
.join button {
  border-radius: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 1rem 1.5rem;
  box-shadow: 0 0 24px rgba(0, 255, 200, 0.2);
}

/* Footer */
.foot {
  border-top: 1px solid rgba(0, 255, 200, 0.12);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 40, 30, 0.15), transparent 55%),
    #000;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 200, 0.1);
}
.foot-logo {
  filter: drop-shadow(0 0 14px rgba(0, 255, 160, 0.25));
}
.foot-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7a72;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 0.85rem;
}
.foot-col a {
  display: block;
  color: #8a9a92;
  font-size: 0.9rem;
  padding: 0.28rem 0;
  transition: color 0.2s, padding-left 0.2s;
}
.foot-col a:hover {
  color: #fff;
  padding-left: 0.25rem;
}
.foot-cta {
  display: inline-flex !important;
  margin-top: 0.65rem;
  color: var(--cyan) !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 255, 200, 0.08);
}

/* Header chrome � slightly tighter scrolled state */
.topbar.scrolled .brand img {
  height: clamp(32px, 3.8vw, 42px);
  transition: height 0.3s var(--ease), filter 0.3s, transform 0.3s;
}
.topbar.scrolled .nav a {
  padding: 0.4rem 0.8rem;
}
.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* Scroll progress quieter */
.scroll-progress {
  height: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
}

/* Buttons � consistent height */
.btn {
  min-height: 44px;
  border-radius: 4px;
}
.btn.sm {
  min-height: 40px;
}

/* �� Responsive hero dock + mobile nodes �� */
@media (max-width: 720px) {
  .hero-ui {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    justify-content: flex-end;
  }
  .hero-center {
    max-width: 100%;
    width: calc(100% - 1.25rem);
    margin-inline: auto;
    padding: 1rem 1rem 1.15rem;
    border-radius: 14px;
  }
  .hero-center h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }
  .hero-cue { font-size: 0.52rem; }
  .hero-node {
    width: clamp(58px, 14vw, 74px);
    height: clamp(58px, 14vw, 74px);
  }
  .hero-node .label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    max-width: 9ch;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .display-xl {
    font-size: clamp(2.15rem, 9vw, 3.1rem);
    max-width: none;
  }
  .story {
    min-height: min(72vh, 520px);
  }
  .story-copy h2 {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }
  .doc.big,
  .news-card.wide {
    border-radius: 10px;
  }
  .signal-bar {
    gap: 0.35rem 0.85rem;
    font-size: 0.52rem;
  }
  .signal-bar i:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  /* Outer ring hidden via JS; ensure leftovers stay gone */
  .hero-node.is-outer { display: none !important; }
  .hero-status {
    left: 0.75rem;
    right: 0.75rem;
  }
  .hero-status .hero-hint { display: none; }
  .metrics > div {
    padding: 1.15rem 0.75rem;
  }
  .cta-card {
    padding: 2rem 1.15rem;
    border-radius: 12px;
  }
  .join {
    flex-direction: column;
  }
  .join input,
  .join button {
    width: 100%;
    flex: none;
  }
}
@media (hover: none) {
  .hero-node .label {
    opacity: 0.55; /* always readable on touch */
  }
  .hero-node:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cue-dot,
  .hero-node .orb-ring,
  .pill.live i {
    animation: none !important;
  }
  .hero:has(.sheet:not([hidden])) .hero-center {
    transform: none;
  }
}

/* Short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-center {
    padding: 0.65rem 1rem;
  }
  .hero-center h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .hero-cue,
  .hero-eyebrow {
    display: none;
  }
  .hero-actions {
    margin-top: 0.55rem;
  }
  .hero-actions .btn {
    min-height: 40px;
    padding: 0.55rem 0.9rem;
  }
}

/* ============================================================
   HOME v4 — boot, doors, featured intel, restraint
   ============================================================ */
.home-v4 .page-flash { display: none; }
.home-v4 .ticker { display: none !important; }
.home-v4 .signal-bar--solo {
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 255, 200, 0.12);
  border-bottom: 1px solid rgba(0, 255, 200, 0.12);
  background: linear-gradient(180deg, rgba(0, 20, 14, 0.9), rgba(0, 0, 0, 0.95));
}
.home-v4 .scroll-progress {
  animation: none;
  background: linear-gradient(90deg, #00ffc8, #5dffc8);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.35);
  height: 2px;
}
/* Quieter hero scanlines on home */
.home-v4 .hero-shade::after { opacity: 0.18; }

/* Boot */
.mesh-boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--cyan);
  font-family: var(--mono);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.mesh-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mesh-boot__panel {
  width: min(480px, 92vw);
  border: 1px solid rgba(0, 255, 200, 0.4);
  background: linear-gradient(180deg, rgba(0, 255, 200, 0.06), transparent 45%), #030706;
  box-shadow: 0 0 60px rgba(0, 255, 200, 0.12), inset 0 0 40px rgba(0, 255, 160, 0.04);
  padding: 1.5rem 1.35rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.mesh-boot__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 255, 200, 0.035) 0 1px, transparent 1px 3px);
  animation: bootScan 2.2s linear infinite;
}
@keyframes bootScan {
  from { transform: translateY(-6%); }
  to { transform: translateY(6%); }
}
.mesh-boot__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 230, 210, 0.7);
  margin-bottom: 1rem;
  position: relative;
}
.mesh-boot__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: 0.12em;
  color: #e8fff6;
  text-shadow: 0 0 24px rgba(0, 255, 200, 0.35);
  margin-bottom: 1rem;
  position: relative;
}
.mesh-boot__log {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  position: relative;
  min-height: 6.5rem;
}
.mesh-boot__log li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #4a5f56;
  padding: 0.28rem 0;
  opacity: 0.45;
  transition: color 0.25s, opacity 0.25s;
}
.mesh-boot__log li.is-on {
  color: var(--cyan);
  opacity: 1;
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.35);
}
.mesh-boot__log li.is-ok {
  color: #7ab89e;
  opacity: 0.85;
}
.mesh-boot__log li.is-ok::before {
  content: "✓ ";
  color: var(--cyan-2);
}
.mesh-boot__bar {
  height: 2px;
  background: rgba(0, 255, 200, 0.12);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.mesh-boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.35s var(--ease);
}
.mesh-boot__skip {
  position: relative;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 200, 0.35);
  background: rgba(0, 255, 200, 0.05);
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mesh-boot__skip:hover {
  background: rgba(0, 255, 200, 0.12);
  border-color: var(--cyan);
  color: #fff;
}
body.booting { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mesh-boot__scan { animation: none; }
}

/* Dossier scrim */
.sheet-scrim {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: scrimIn 0.25s var(--ease);
}
.sheet-scrim[hidden] { display: none; }
@keyframes scrimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.dossier-open .hero-center {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s;
}
.hero-cue.is-done {
  opacity: 0;
  transition: opacity 0.6s;
}

/* Three doors */
.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.door-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(0, 255, 200, 0.16);
  background: linear-gradient(160deg, rgba(0, 30, 22, 0.45), rgba(4, 8, 7, 0.95));
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
  min-height: 100%;
}
.door-card:hover {
  border-color: rgba(0, 255, 200, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 160, 0.1);
  color: inherit;
}
.door-card--feature {
  border-color: rgba(0, 255, 200, 0.35);
  box-shadow: 0 0 24px rgba(0, 255, 160, 0.08);
}
.door-num {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--cyan-2);
}
.door-card strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #f2f8f5;
  font-weight: 400;
}
.door-card em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.brief-quote {
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 255, 200, 0.12);
  font-size: 0.95rem;
  color: #b8c9c0;
  line-height: 1.55;
  max-width: 36ch;
}
.brief-quote cite {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.12em;
  color: var(--cyan-dim);
  text-transform: uppercase;
}

/* Featured intel */
.sec.intel { padding-bottom: 4rem; }
.spotlight {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  min-height: 320px;
  border: 1px solid rgba(0, 255, 200, 0.18);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0 1.75rem;
  background: #060a08;
}
.spotlight-media {
  position: relative;
  min-height: 280px;
}
.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.spotlight-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(4, 8, 7, 0.55) 100%);
  pointer-events: none;
}
.spotlight-copy {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spotlight-copy h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #f2f8f5;
  margin-bottom: 0.75rem;
}
.spotlight-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 38ch;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.intel-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 255, 200, 0.12);
  background: #080c0a;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
  animation: cardIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.intel-card:hover {
  border-color: rgba(0, 255, 200, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 255, 160, 0.1);
  color: inherit;
}
.intel-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050807;
}
.intel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.intel-card:hover .intel-img img { transform: scale(1.04); }
.intel-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.intel-body .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-2);
}
.intel-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #eef5f1;
  font-weight: 400;
}
.intel-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.intel-body .link {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 0.35rem;
}

.signal-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #5a6e66;
  text-transform: uppercase;
}

.film-head-pro .btn-row { margin-top: 1.1rem; margin-bottom: 0.5rem; }

/* Page hero pro (subpages) */
.page-hero.pro {
  position: relative;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header) + 2rem) 0 2.5rem;
  overflow: hidden;
}
.page-hero.pro .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(0.75) brightness(0.45);
  animation: pageKen 28s ease-in-out infinite alternate;
}
@keyframes pageKen {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}
.page-hero.pro .page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.75) 0%, transparent 35%, rgba(0,0,0,0.92) 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 40, 28, 0.25), transparent 70%);
}
.page-hero.pro .container { position: relative; z-index: 2; }
.page-hero.pro h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 0.98;
}
@media (prefers-reduced-motion: reduce) {
  .page-hero.pro .page-hero-bg { animation: none; }
}

@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-shade {
    background: linear-gradient(180deg, transparent 30%, rgba(4, 8, 7, 0.9) 100%);
  }
  .spotlight-media { min-height: 200px; max-height: 240px; }
  .intel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .intel-grid { grid-template-columns: 1fr; }
  .spotlight-copy { padding: 1.35rem 1.15rem 1.5rem; }
}
