/* ==========================================================================
   Landing page — "The Descent"
   The page is a dive: every section sits deeper in the water column, a depth
   gauge ticks as you scroll, marine snow drifts past, and at the bottom the
   Kraken wakes up.

   Layering (root stacking context — no section creates its own):
     z 0  section art + haze (hero painting, radial glows)
     z 1  marine snow canvas (fixed)
     z 2  content
     z 30 depth gauge · z 45 menu · z 50 nav
   ========================================================================== */

body {
  background:
    linear-gradient(180deg, #030a12 0, #04101c 16%, #030b15 38%, #02080f 60%, #010409 80%, #010307 100%);
}

.snow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

main > section { position: relative; }
main > section > .container,
main > section > .shelf__track,
main > section > .crew__marquee,
.hero__inner,
.hero__base,
.lair__inner { position: relative; z-index: 2; }

/* ---------- Shared section rhythm ---------- */

.dive, .shelf, .arsenal, .assistant, .faq { padding-block: var(--section); }
.shelf { padding-bottom: calc(var(--section) * 0.6); }

.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.sec-head h2 { margin-top: 4px; }
.sec-head .lede { max-width: 620px; }

/* Water gets a little less blue with every section */
.dive::before, .shelf::before, .arsenal::before, .assistant::before, .faq::before, .lair::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dive::before { background: radial-gradient(ellipse 75% 55% at 50% 0%, rgba(23, 68, 99, 0.30), transparent 70%); }
.shelf::before { background: radial-gradient(ellipse 55% 45% at 85% 25%, rgba(23, 68, 99, 0.18), transparent 70%); }
.arsenal::before { background: radial-gradient(ellipse 55% 50% at 15% 45%, rgba(15, 45, 72, 0.22), transparent 70%); }
.assistant::before { background: radial-gradient(ellipse 45% 40% at 78% 38%, rgba(var(--glow-rgb), 0.07), transparent 70%); }
.faq::before { background: radial-gradient(ellipse 50% 40% at 20% 30%, rgba(12, 34, 56, 0.25), transparent 70%); }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s, height 0.4s;
}
.nav.is-scrolled {
  background: rgba(3, 10, 18, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--line);
}
.nav__inner {
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(150, 205, 240, 0.07); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__signin {
  padding: 8px 10px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
}
.nav__signin:hover { opacity: 1; color: var(--glow-hi); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(150, 205, 240, 0.05);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle .i { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-grid; }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .nav__signin { display: none; }
  .brand__word { font-size: 18px; }
  .brand__mark { width: 27px; height: 27px; }
  .nav__actions .btn--sm { --h: 36px; padding: 0 12px; font-size: 13.5px; }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 96px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: rgba(2, 7, 13, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 clamp(26px, 7vw, 34px)/1.15 var(--font-display);
  letter-spacing: -0.015em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  animation: menu-in 0.6s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms + 60ms);
}
.menu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   DEPTH GAUGE
   ========================================================================== */

.gauge {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 30;
  width: 14px;
  height: 44vh;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.gauge.is-on { opacity: 1; }
.gauge__track { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.gauge__fill {
  position: absolute; left: 0; top: 0;
  width: 1px;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, rgba(var(--glow-rgb), 0.2), var(--glow));
  box-shadow: 0 0 8px rgba(var(--glow-rgb), 0.6);
}
.gauge__zones i { position: absolute; left: -3px; width: 7px; height: 1px; background: var(--line-3); }
.gauge__marker {
  position: absolute;
  right: 0;
  top: calc(var(--p, 0) * 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 22px;
  transform: translateY(-50%);
}
.gauge__marker::after {
  content: "";
  position: absolute;
  right: 3px; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 3px rgba(var(--glow-rgb), 0.16), 0 0 14px rgba(var(--glow-rgb), 0.9);
  transform: translateY(-50%);
}
.gauge__depth { font: 500 12px/1 var(--font-mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gauge__zone { font: 500 9px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.readout {
  position: fixed;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(3, 10, 18, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 11px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.readout::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.readout span + span { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.readout.is-on { opacity: 1; transform: none; }

@media (max-width: 1519px) { .gauge { display: none; } }
@media (min-width: 1520px) { .readout { display: none; } }

/* ==========================================================================
   HERO — 0 m
   ========================================================================== */

.hero {
  min-height: max(800px, 100svh);
  display: flex;
  flex-direction: column;
  padding: clamp(104px, 13vh, 150px) 0 26px;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(var(--hx, 0px), calc(var(--hero-shift, 0px) + var(--hy, 0px)), 0) scale(1.02);
  will-change: transform;
}
.hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.04);
}
.hero__paint {
  animation: paint-in 2.8s var(--ease-out) both;
}
.hero__glow {
  mix-blend-mode: screen;
  opacity: 0;
  animation: layer-in 2.8s var(--ease-out) both, glow-wake 3.4s var(--ease-out) 1.1s forwards, glow-breathe 7s ease-in-out 4.5s infinite;
}
.hero__glow--bloom {
  filter: blur(7px) saturate(1.5) brightness(1.3);
  animation-delay: 0s, 1.25s, 5.6s;
}
@keyframes paint-in {
  from { transform: scale(1.14); filter: brightness(0.35) blur(6px); }
  to { transform: scale(1.04); filter: brightness(1) blur(0); }
}
@keyframes layer-in { from { transform: scale(1.14); } to { transform: scale(1.04); } }
@keyframes glow-wake { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes glow-breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Moving light shafts over the painted ones */
.hero__rays {
  position: absolute;
  inset: -6% 0 auto;
  height: 78%;
  mix-blend-mode: screen;
  opacity: 0;
  animation: fade-in 3s ease 0.5s forwards;
  -webkit-mask-image: linear-gradient(180deg, #000 5%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 5%, transparent 92%);
}
.hero__rays i {
  position: absolute;
  top: -12%;
  width: clamp(36px, 6vw, 110px);
  height: 124%;
  background: linear-gradient(180deg, rgba(175, 228, 255, 0.2), rgba(175, 228, 255, 0));
  filter: blur(16px);
  transform-origin: 50% 0;
  transform: rotate(var(--r));
  animation: ray-sway var(--t, 10s) ease-in-out infinite alternate;
}
.hero__rays i:nth-child(1) { left: 26%; --r: 17deg; --t: 11s; }
.hero__rays i:nth-child(2) { left: 35%; --r: 10deg; --t: 9s; animation-delay: -3s; }
.hero__rays i:nth-child(3) { left: 45%; --r: 3deg; --t: 12s; animation-delay: -6s; }
.hero__rays i:nth-child(4) { left: 53%; --r: -4deg; --t: 10s; animation-delay: -2s; }
.hero__rays i:nth-child(5) { left: 61%; --r: -11deg; --t: 13s; animation-delay: -8s; }
.hero__rays i:nth-child(6) { left: 69%; --r: -17deg; --t: 9.5s; animation-delay: -5s; }
@keyframes ray-sway {
  from { opacity: 0.25; transform: rotate(var(--r)) translateX(-14px); }
  to { opacity: 0.9; transform: rotate(calc(var(--r) + 3deg)) translateX(14px); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 36% at 50% 36%, rgba(3, 10, 18, 0.6), transparent 72%),
    linear-gradient(180deg, rgba(3, 10, 18, 0.45) 0%, transparent 16%, transparent 72%, rgba(3, 10, 18, 0.45) 90%, #030a12 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title { display: flex; flex-direction: column; align-items: center; gap: 26px; font-weight: inherit; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(var(--glow-rgb), 0.26);
  border-radius: 999px;
  background: rgba(3, 14, 24, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow-hi);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.2s forwards;
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.hero__display {
  display: block;
  font-size: clamp(60px, 9.2vw, 138px);
  font-weight: 520;
  line-height: 0.92;
  letter-spacing: -0.036em;
  word-spacing: 0.06em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
}
.hero__line { display: inline-block; overflow: hidden; padding: 0.02em 0.06em 0.1em; margin: -0.02em -0.06em -0.1em; vertical-align: top; }
.hero__line > span { display: inline-block; transform: translateY(108%); animation: rise 1.3s var(--ease-out) forwards; }
.hero__line:nth-child(1) > span { animation-delay: 0.32s; }
.hero__line:nth-child(2) > span { animation-delay: 0.46s; }
.hero__display em { font-weight: 420; padding-right: 0.08em; }

.hero__lede {
  max-width: 700px;
  margin-top: 22px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.72s forwards;
}

/* ---------- The prompt ---------- */

.prompt {
  position: relative;
  width: min(740px, 100%);
  margin-top: 32px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 34, 56, 0.66), rgba(5, 18, 32, 0.78));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  opacity: 0;
  animation: fade-up 1.05s var(--ease-out) 0.9s forwards;
}
/* hairline that lights up on focus: turquoise meets lure */
.prompt::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(var(--glow-rgb), 0.7), transparent 34%, transparent 66%, rgba(var(--lure-rgb), 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.4s;
}
.prompt:focus-within::before { opacity: 1; }

.prompt__formats {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.prompt__formats::-webkit-scrollbar { display: none; }
.prompt__formats label { position: relative; flex: none; }
.prompt__formats input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.prompt__formats span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.prompt__formats label:hover span { color: var(--ink); }
.prompt__formats input:checked + span {
  color: var(--glow-hi);
  background: rgba(var(--glow-rgb), 0.12);
  box-shadow: inset 0 0 0 1px rgba(var(--glow-rgb), 0.34);
}
.prompt__formats input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }

.prompt__field {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(1, 6, 12, 0.55);
}
.prompt__field textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  max-height: 140px;
  padding: 13px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}
.prompt__ghost {
  position: absolute;
  left: 16px;
  top: 19px;
  right: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-3);
  pointer-events: none;
}
.prompt__ghost::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--glow);
  animation: blink 1.05s steps(1) infinite;
}
.prompt__ghost.is-hidden { visibility: hidden; }
.prompt__go { flex: none; height: 48px; }

.prompt__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 6px 2px;
  font-size: 13px;
  color: var(--ink-3);
}
.prompt__meta span { display: inline-flex; align-items: center; gap: 6px; }
.prompt__meta .i { width: 15px; height: 15px; color: var(--glow); stroke-width: 2; }

.prompt.is-sending .prompt__go { pointer-events: none; }
.prompt.is-sending .prompt__go span::after { content: "…"; }

/* ---------- Soundings + cue ---------- */

.hero__base {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin-top: auto;
  padding-top: 40px;
  font: 400 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fade-in 1.2s ease 1.3s forwards;
}
.hero__soundings { display: flex; flex-direction: column; gap: 8px; justify-self: start; }
.hero__soundings p, .hero__depth { display: flex; align-items: baseline; gap: 9px; }
.hero__soundings b, .hero__depth b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__depth { justify-self: end; }
.hero__depth b { color: var(--glow-hi); }

.hero__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  opacity: 0;
  animation: fade-in 1.2s ease 1.6s forwards;
}
.hero__cue:hover { color: var(--glow-hi); }
.hero__cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: linear-gradient(180deg, rgba(var(--glow-rgb), 0.5), transparent); }
.hero__cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--glow-hi);
  box-shadow: 0 0 8px var(--glow);
  animation: sound 2.4s var(--ease-in-out) infinite;
}
@keyframes sound { to { top: 100%; } }

@media (max-width: 640px) {
  .hero { padding-top: 104px; min-height: 100svh; }
  .hero__title { gap: 20px; }
  .hero__kicker { font-size: 10px; letter-spacing: 0.14em; }
  .hero__display { font-size: clamp(56px, 17vw, 84px); }
  .hero__lede { margin-top: 20px; font-size: 16.5px; }
  .prompt { margin-top: 28px; padding: 10px; border-radius: 18px; }
  .prompt__field { flex-wrap: wrap; padding: 6px; }
  /* the format row scrolls sideways on phones: fade the edge so it reads as more */
  .prompt__formats { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .prompt__field textarea { flex-basis: 100%; padding: 11px 10px; font-size: 16px; }
  .prompt__ghost { left: 16px; right: 16px; top: 17px; font-size: 16px; }
  .prompt__go { width: 100%; }
  .prompt__meta { gap: 6px 14px; font-size: 12.5px; }
  .hero__base { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding-top: 32px; }
  .hero__soundings { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 18px; justify-self: center; }
  .hero__depth { display: none; }
}

/* ==========================================================================
   THE DIVE — 200 m
   ========================================================================== */

.dive__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 64px;
}

.steps { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 112px; }
.step {
  display: flex;
  gap: 16px;
  padding: 20px 20px 20px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  transition: background-color 0.5s, border-color 0.5s;
}
.step__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink-3);
  transition: color 0.5s, border-color 0.5s, box-shadow 0.5s, background-color 0.5s;
}
.step__icon .i { width: 20px; height: 20px; }
.step__num { margin-bottom: 8px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); transition: color 0.5s; }
.step h3 { margin-bottom: 6px; font-size: 19px; color: var(--ink-2); transition: color 0.5s; }
.step p:not(.step__num) { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.step.is-active {
  background: linear-gradient(90deg, rgba(var(--glow-rgb), 0.09), rgba(var(--glow-rgb), 0));
  border-color: rgba(var(--glow-rgb), 0.18);
}
.step.is-active .step__icon {
  color: var(--glow-hi);
  border-color: rgba(var(--glow-rgb), 0.5);
  background: rgba(var(--glow-rgb), 0.08);
  box-shadow: 0 0 26px -4px rgba(var(--glow-rgb), 0.6);
}
.step.is-active .step__num { color: var(--glow); }
.step.is-active h3 { color: var(--ink); }
.step.is-done .step__icon { color: var(--glow); border-color: rgba(var(--glow-rgb), 0.3); }

/* ---------- The console ---------- */

.console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(9, 28, 46, 0.8), rgba(4, 14, 25, 0.92));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 35% at 0% 0%, rgba(var(--glow-rgb), 0.08), transparent 70%);
  pointer-events: none;
}

.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.console__tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.console__tabs::-webkit-scrollbar { display: none; }
.console__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.console__tab small { font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.console__tab:hover { color: var(--ink); }
.console__tab[aria-selected="true"] { color: var(--ink); background: rgba(150, 205, 240, 0.07); border-color: var(--line-2); }
.console__tab[aria-selected="true"] small { color: var(--glow); }
.console__label { flex: none; font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); }

.console__body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 16px; }

.console__prompt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(1, 6, 12, 0.5);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
}
.console__caret { color: var(--lure); font-weight: 700; }
.console__cursor { flex: none; width: 2px; height: 1.15em; margin-top: 2px; background: var(--glow); animation: blink 1.05s steps(1) infinite; }

.console__stage { opacity: 0.28; transition: opacity 0.5s; }
.console__stage.is-live, .console__stage.is-done { opacity: 1; }

.console__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.console__h .i { width: 14px; height: 14px; color: var(--glow); }
.console__ping { position: relative; width: 8px; height: 8px; margin-left: 2px; }
.console__stage.is-live .console__ping::before,
.console__stage.is-live .console__ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--glow);
  animation: ping 1.4s var(--ease-out) infinite;
}
.console__stage.is-live .console__ping::after { animation-delay: 0.7s; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

.queries { display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.queries li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font: 400 12px/1.3 var(--font-mono);
  color: var(--ink-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), background-color 0.4s;
}
.queries li.is-in { opacity: 1; transform: none; }
.queries li.is-reading { background: rgba(var(--glow-rgb), 0.06); }
.queries li > .i { flex: none; width: 14px; height: 14px; color: var(--ink-4); }
.queries li .q-ok { margin-left: auto; width: 15px; height: 15px; color: var(--glow); opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s var(--ease-spring); }
.queries li.is-read .q-ok { opacity: 1; transform: none; }
.queries li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.console__count { margin-left: auto; font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.console__count b { color: var(--ink); font-weight: 500; }
.console__meter { height: 3px; margin-bottom: 8px; overflow: hidden; border-radius: 3px; background: var(--line); }
.console__meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--glow), var(--glow-hi)); box-shadow: 0 0 12px var(--glow); transition: width 0.3s linear; }

.rows {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 232px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}
.row {
  flex: none;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  animation: row-in 0.45s var(--ease-out) both;
}
.row:last-child { background: rgba(var(--glow-rgb), 0.05); }
.row img { width: 36px; height: 26px; border-radius: 4px; object-fit: cover; object-position: 50% 27%; background: var(--abyss-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.row__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.row__name small { margin-left: 8px; font: 400 9.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.row__cost { display: inline-flex; gap: 2px; }
.row__cost .pip { width: 15px; height: 15px; }
.row__price { text-align: right; font: 400 11.5px/1 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row--more { grid-template-columns: 1fr; color: var(--ink-3); font-size: 13px; }
.row--more span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.console__stage--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.checks { display: flex; flex-direction: column; gap: 3px; }
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.checks li.is-in { opacity: 1; transform: none; }
.checks .i { flex: none; width: 16px; height: 16px; color: var(--glow); stroke-width: 2; }
.checks .pips { margin-left: 2px; }
.checks .pip { width: 14px; height: 14px; }

.curve { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 6px; height: 96px; }
.curve__bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.curve__bar i {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--glow-hi), rgba(var(--glow-rgb), 0.3));
  box-shadow: 0 0 16px -5px rgba(var(--glow-rgb), 0.9);
  transition: height 0.9s var(--ease-out);
  transition-delay: calc(var(--k, 0) * 60ms);
}
.curve__bar span { margin-top: 6px; font: 400 9.5px/1 var(--font-mono); color: var(--ink-4); }

.console__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(1, 6, 12, 0.35);
}
.console__foot p { display: flex; align-items: center; gap: 10px; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.console__led { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); transition: background-color 0.3s, box-shadow 0.3s; }
.console[data-state="running"] .console__led { background: var(--lure); box-shadow: 0 0 10px var(--lure); animation: dot-pulse 1s ease-in-out infinite; }
.console[data-state="done"] .console__led { background: var(--glow); box-shadow: 0 0 10px var(--glow); }

@media (max-width: 960px) {
  .dive__grid { grid-template-columns: 1fr; }
  .steps { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .step { flex-direction: column; gap: 12px; padding: 16px; }
  .step p:not(.step__num) { display: none; }
  .step h3 { font-size: 15.5px; margin: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; align-items: center; padding: 10px 12px; }
  .step__num { margin-bottom: 4px; }
  .step__icon { width: 36px; height: 36px; }
  .console__tabs { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .console__body { padding: 14px 12px 12px; }
  .console__stage--split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 32px minmax(0, 1fr) auto; font-size: 13.5px; }
  .row__price { display: none; }
  .row__name small { display: none; }
  .rows { height: 200px; }
}

/* ==========================================================================
   FRESH DECKS — 700 m
   ========================================================================== */

.shelf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.shelf__nav { display: flex; align-items: center; gap: 20px; }
.shelf__arrows { display: flex; gap: 8px; }

.round {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(150, 205, 240, 0.05);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, opacity 0.25s;
}
.round:hover { background: rgba(150, 205, 240, 0.1); border-color: var(--line-3); }
.round:disabled { opacity: 0.3; cursor: default; }
.round .i { width: 20px; height: 20px; }

.shelf__track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex;
  gap: 18px;
  padding: 48px var(--edge) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  outline: none;
}
.shelf__track::-webkit-scrollbar { display: none; }

.deck {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  width: clamp(250px, 23vw, 290px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12, 32, 52, 0.72), rgba(5, 16, 28, 0.94));
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.55s var(--ease-out), border-color 0.4s, box-shadow 0.55s;
}
.deck:hover, .deck:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(var(--glow-rgb), 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 0 44px -14px rgba(var(--glow-rgb), 0.4);
}
.deck__art { position: relative; aspect-ratio: 626 / 457; overflow: hidden; background: var(--abyss-3); }
.deck__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.9);
  transition: transform 1.4s var(--ease-out), filter 0.6s;
}
.deck:hover .deck__art img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
.deck__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(5, 16, 28, 0.92) 100%); }
.deck__format {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(2, 8, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.deck__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 6px; margin-top: -28px; padding: 0 16px 16px; }
.deck__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 500 22px/1.14 var(--font-display);
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}
.deck__cmdr { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--ink-3); }
.deck__cmdr span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deck__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.deck__by { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deck__by b { font-weight: 600; color: var(--ink-2); }
.deck__stat { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 400 11px/1 var(--font-mono); }
.deck__stat .i { width: 14px; height: 14px; }
.deck--more {
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  border-style: dashed;
  background: rgba(8, 24, 40, 0.35);
}
.deck--more b { font: 500 26px/1.1 var(--font-display); }
.deck--more span { font-size: 14px; color: var(--ink-3); }
.deck--more .round { pointer-events: none; }
.deck--ghost .deck__art { animation: shimmer 1.6s ease-in-out infinite; }
.deck--ghost .deck__name { width: 70%; height: 22px; border-radius: 6px; background: var(--line); }
@keyframes shimmer { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

@media (max-width: 640px) {
  .shelf__arrows { display: none; }
  .deck { width: 76vw; }
}

/* ==========================================================================
   ARSENAL — 1,000 m  (a diver's torch lights the grid)
   ========================================================================== */

.torch {
  --mx: 50%;
  --my: 40%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  /* the 1px gaps are the grid lines; they glow where the torch points */
  background: radial-gradient(560px circle at var(--mx) var(--my), rgba(var(--glow-rgb), 0.55), rgba(150, 205, 240, 0.09) 62%);
}
.torch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--glow-rgb), 0.08), transparent 70%);
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 224px;
  padding: 32px 30px 30px;
  background: rgb(3, 11, 20);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.4s;
}
.tool:hover { background: rgb(5, 16, 28); }
.tool__i { width: 30px; height: 30px; stroke-width: 1.35; color: var(--ink-3); transition: color 0.4s, filter 0.4s; }
.tool:hover .tool__i, .tool:focus-visible .tool__i { color: var(--glow-hi); filter: drop-shadow(0 0 10px rgba(var(--glow-rgb), 0.9)); }
.tool h3 { margin-top: 14px; font-size: 19px; }
.tool p { max-width: 32ch; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.tool__go {
  position: absolute;
  top: 32px; right: 28px;
  width: 20px; height: 20px;
  color: var(--glow);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.tool:hover .tool__go, .tool:focus-visible .tool__go { opacity: 1; transform: none; }

@media (max-width: 900px) { .torch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .torch { grid-template-columns: 1fr; margin-top: 44px; }
  .tool { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 18px; }
  .tool__i { width: 24px; height: 24px; }
  .tool h3 { margin: 0; font-size: 16.5px; }
  .tool p { display: none; }
  .tool__go { position: static; margin-left: auto; width: 18px; height: 18px; opacity: 1; transform: none; color: var(--ink-4); }
}

/* ==========================================================================
   ARENA ASSISTANT — 4,000 m
   ========================================================================== */

.assistant__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.feats { display: flex; flex-direction: column; gap: 22px; margin-top: 38px; }
.feats li { display: flex; gap: 16px; }
.feats li > .i { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--glow); }
.feats h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; }
.feats p { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.tag {
  padding: 5px 7px;
  border: 1px solid rgba(var(--glow-rgb), 0.25);
  border-radius: 5px;
  background: rgba(var(--glow-rgb), 0.1);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-hi);
}
.assistant__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.fine { margin-top: 16px; font-size: 13px; color: var(--ink-4); }

.assistant__media { position: relative; margin: 0; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: #000;
  box-shadow: var(--shadow-deep), 0 0 90px -30px rgba(var(--glow-rgb), 0.5);
}
.screen__video { width: 100%; height: 100%; object-fit: cover; }
.coach {
  position: absolute;
  left: -30px;
  bottom: -30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
  padding: 14px 16px 15px;
  border: 1px solid rgba(var(--glow-rgb), 0.3);
  border-radius: 14px;
  background: rgba(6, 20, 34, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.85), 0 0 34px -12px rgba(var(--glow-rgb), 0.45);
  animation: bob 7s ease-in-out infinite;
}
.coach__who { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow-hi); }
.coach__who svg { width: 16px; height: 16px; }
.coach__msg { font-size: 15px; line-height: 1.45; color: var(--ink); transition: opacity 0.35s, transform 0.35s var(--ease-out); }
.coach__msg.is-out { opacity: 0; transform: translateY(4px); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin-top: 104px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: rgba(8, 24, 40, 0.55);
}
.plan header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan h3 { font: 500 24px/1 var(--font-display); letter-spacing: -0.01em; }
.plan__price { font: 500 34px/1 var(--font-display); letter-spacing: -0.02em; }
.plan__price span { margin-left: 4px; font: 400 14px var(--font-ui); letter-spacing: 0; color: var(--ink-3); }
.plan ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--glow); stroke-width: 2; }
.plan li b { font-weight: 650; color: var(--ink); }
.plan .btn { margin-top: auto; }
.plan--pro {
  border-color: rgba(241, 197, 108, 0.36);
  background: linear-gradient(180deg, rgba(46, 33, 12, 0.5), rgba(10, 20, 30, 0.72));
  box-shadow: 0 0 70px -34px rgba(241, 197, 108, 0.55);
}
.plan--pro h3 { color: var(--gold); }
.plan--pro li .i { color: var(--gold); }
.plan__flag {
  position: absolute;
  top: -11px; left: 30px;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--gold);
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #251600;
}

@media (max-width: 960px) {
  .assistant__grid { grid-template-columns: 1fr; }
  .assistant__media { margin-inline: 12px; }
  .coach { left: -12px; bottom: -34px; max-width: min(340px, 86%); }
  .plans { margin-top: 88px; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px; }
}

/* ==========================================================================
   FAQ — 5,200 m
   ========================================================================== */

.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 112px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 500 clamp(18px, 1.8vw, 21px)/1.35 var(--font-display);
  letter-spacing: -0.006em;
  list-style: none;
  cursor: pointer;
  transition: color 0.25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--glow-hi); }
.qa summary .i { flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform 0.45s var(--ease-out), color 0.3s; }
.qa[open] summary .i { transform: rotate(45deg); color: var(--glow); }
.qa__a { padding: 0 48px 26px 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.qa__a a { color: var(--glow-hi); text-decoration-color: rgba(var(--glow-rgb), 0.4); text-underline-offset: 3px; }

@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .qa__a { padding-right: 0; }
}

/* ==========================================================================
   CREW — supporters
   ========================================================================== */

.crew { padding-block: 40px 20px; overflow: hidden; }
.crew__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.crew__head p { font: 500 clamp(20px, 2.2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.crew__head b { font-weight: 500; color: var(--glow-hi); }
.crew__marquee {
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.crew__row { display: flex; gap: 10px; width: max-content; animation: marquee var(--dur, 90s) linear infinite; }
.crew__row--rev { animation-direction: reverse; }
.crew__marquee:hover .crew__row { animation-play-state: paused; }
.crew__set { display: flex; gap: 10px; padding-right: 10px; }
.mate {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 24, 40, 0.5);
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.mate:hover { border-color: rgba(var(--glow-rgb), 0.4); color: var(--ink); }
.mate img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--abyss-3); }
.mate--t2 { border-color: rgba(241, 197, 108, 0.22); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   THE LAIR — 10,994 m
   ========================================================================== */

.lair {
  padding: clamp(110px, 13vw, 190px) 0 clamp(120px, 12vw, 180px);
  overflow: hidden;
  text-align: center;
}
.lair::before {
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%, rgba(255, 150, 50, calc(0.03 + var(--eye-open, 0) * 0.07)), transparent 62%),
    linear-gradient(180deg, transparent, rgba(1, 3, 7, 0.9) 35%);
  transition: background 1.2s;
}
.lair__tentacles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.lair__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.eye { width: min(460px, 84vw); margin: 16px 0 4px; }
.eye__svg { width: 100%; height: auto; overflow: visible; }
.eye__lids {
  transform-box: view-box;
  transform-origin: 220px 120px;
  transform: scaleY(var(--lid, 0.035));
  transition: transform 0.16s var(--ease-in-out);
}
.eye.is-opening .eye__lids { transition-duration: 1.1s; transition-timing-function: var(--ease-spring); }
.eye__rim { stroke: rgba(var(--glow-rgb), 0.62); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(var(--glow-rgb), 0.85)); }
.eye__fold { stroke: rgba(var(--glow-rgb), 0.13); stroke-width: 1.2; stroke-linecap: round; }
.eye__halo { opacity: calc(0.15 + var(--eye-open, 0) * 0.85); transition: opacity 1.4s; }
.eye__pupil {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--pupil-x, 1), var(--pupil-y, 1));
  transition: transform 0.7s var(--ease-out);
}
.eye.is-excited { --pupil-x: 1.16; --pupil-y: 2.4; }
.eye__spots circle { fill: var(--glow); opacity: 0.2; animation: twinkle var(--tw, 3s) ease-in-out infinite; animation-delay: var(--td, 0s); }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.95; } }

.lair__title { font-size: clamp(54px, 8.4vw, 118px); line-height: 0.94; letter-spacing: -0.034em; }
.lair__lede { max-width: 560px; }
.lair__cta { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 12px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.foot { position: relative; z-index: 2; padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--abyss-0); }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__brand p { max-width: 34ch; margin: 16px 0 20px; font-size: 15px; color: var(--ink-3); }
.foot__social {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.foot__social:hover { color: var(--ink); border-color: var(--line-3); }
.foot__social .i { width: 16px; height: 16px; }
.foot__col { display: flex; flex-direction: column; gap: 11px; }
.foot__label { margin-bottom: 5px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); }
.foot__col a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.foot__col a:hover { color: var(--ink); }
.foot__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-4);
}
.foot__legal a { color: var(--ink-3); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: var(--ink-3); }

@media (max-width: 860px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Shared keyframes
   ========================================================================== */

@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

@media (prefers-reduced-motion: reduce) {
  .hero__line > span, .hero__kicker, .hero__lede, .prompt, .hero__soundings, .hero__cue, .hero__rays { opacity: 1; transform: none; animation: none; }
  .hero__glow { opacity: 0.6; animation: none; }
  .hero__paint { animation: none; }
  .crew__row { animation: none; flex-wrap: wrap; width: auto; }
}
