/* ============================================================
   CHRONOFALL — dark neon gaming site
   ============================================================ */

:root {
  --bg: #07040d;
  --bg2: #0d0716;
  --purple: #a855f7;
  --purple-deep: #6b21a8;
  --purple-soft: #c084fc;
  --pink: #f0abfc;
  --text: #ede9f6;
  --text-dim: #8b819f;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* NOTE: html must have NO overflow property. With html untouched, body's
   overflow-x:hidden propagates to the viewport and body itself stays
   non-clipping, so position:sticky (the scroll-video heroes) works. Any
   overflow value on html stops that propagation, turns body into a clip
   container, and silently breaks every sticky element on the page. */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

a, button { cursor: none; }

/* shared scroll lock used by all overlays (menu, lightbox, easter egg) */
body.is-locked { overflow: hidden; }

::selection { background: var(--purple); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple-deep), var(--purple));
  border-radius: 5px;
}

/* ============ Custom cursor ============ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--purple), 0 0 30px var(--purple);
  transition: width .2s, height .2s, background .2s;
}
.cursor.is-hover {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--pink);
}
.cursor-trail {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(168, 85, 247, .5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
@media (hover: none), (pointer: coarse) {
  body, a, button { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
}

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple), var(--pink));
  box-shadow: 0 0 10px var(--purple);
  z-index: 9000;
}

/* ============ Noise ============ */
.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 8000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  z-index: 7000;
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(7, 4, 13, .8);
  backdrop-filter: blur(14px);
  padding: .7rem 3rem;
  border-bottom: 1px solid rgba(168, 85, 247, .2);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(168, 85, 247, .8);
}
.nav__logo-mark { color: var(--purple-soft); }
.nav__links {
  display: flex; gap: 2.4rem; list-style: none;
}
.nav__links a {
  position: relative;
  font-size: .75rem;
  letter-spacing: .25em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s, text-shadow .25s;
}
.nav__links a:hover {
  color: var(--pink);
  text-shadow: 0 0 12px var(--purple);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  transition: width .3s;
}
.nav__links a:hover::after { width: 100%; }
.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__sound {
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  background: none;
  border: 1px solid rgba(168, 85, 247, .3);
  padding: .6rem .9rem;
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.nav__sound:hover {
  color: var(--pink);
  border-color: var(--purple);
}
.nav__sound.is-on {
  color: var(--pink);
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(168, 85, 247, .5), inset 0 0 10px rgba(168, 85, 247, .15);
  text-shadow: 0 0 8px var(--purple);
}
.nav__sound span { color: inherit; }
.nav__cta {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .2em;
  color: #fff;
  text-decoration: none;
  padding: .65rem 1.4rem;
  border: 1px solid var(--purple);
  background: rgba(168, 85, 247, .12);
  box-shadow: 0 0 16px rgba(168, 85, 247, .35), inset 0 0 16px rgba(168, 85, 247, .15);
  transition: background .25s, box-shadow .25s;
}
.nav__cta:hover {
  background: var(--purple);
  box-shadow: 0 0 30px var(--purple);
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .2em;
  text-decoration: none;
  padding: 1rem 2.2rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--neon {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  box-shadow: 0 0 24px rgba(168, 85, 247, .55), inset 0 0 12px rgba(255, 255, 255, .12);
}
.btn--neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(168, 85, 247, .9);
}
.btn--ghost {
  color: var(--purple-soft);
  border: 1px solid rgba(168, 85, 247, .5);
}
.btn--ghost:hover {
  background: rgba(168, 85, 247, .12);
  box-shadow: 0 0 24px rgba(168, 85, 247, .35);
}
.btn--big { font-size: 1rem; padding: 1.3rem 3rem; }

/* ============ Hero: scroll-driven cinematic ============ */
.scrollvideo {
  position: relative;
  height: 480vh; /* scroll runway: the video scrubs across this distance */
}
.scrollvideo__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.scrollvideo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scrollvideo__tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 50%, rgba(7, 4, 13, .55)),
    linear-gradient(to bottom, rgba(7, 4, 13, .45), transparent 30%, transparent 75%, rgba(7, 4, 13, .8));
  pointer-events: none;
}

/* Caption stages — opacity/transform driven by JS from scroll progress */
.vstage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.vstage.is-active { pointer-events: auto; }
.vstage--left {
  align-items: flex-start;
  text-align: left;
  padding-left: clamp(2rem, 10vw, 10rem);
  padding-right: clamp(2rem, 30vw, 30rem);
}
.vstage--right {
  align-items: flex-end;
  text-align: right;
  padding-right: clamp(2rem, 10vw, 10rem);
  padding-left: clamp(2rem, 30vw, 30rem);
}

/* Hunters cinematic: slightly shorter runway than the hero */
.scrollvideo--hunters { height: 380vh; }
.vstage__small {
  font-size: .68rem;
  letter-spacing: .5em;
  color: var(--purple-soft);
  text-shadow: 0 0 10px var(--purple);
  margin-bottom: 1.4rem;
}
.vstage__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 16px rgba(168, 85, 247, .8), 0 0 60px rgba(168, 85, 247, .5);
}
.vstage__big em {
  font-style: normal;
  color: var(--purple-soft);
}
.vstage__meet {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: #fff;
  text-shadow: 0 0 16px rgba(168, 85, 247, .9), 0 0 70px rgba(168, 85, 247, .6);
}
.vstage__meet em {
  font-style: normal;
  color: var(--pink);
}
.vstage__copy {
  margin-top: 1.4rem;
  max-width: 44ch;
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.vstage__tag {
  margin-top: 1.6rem;
  font-size: .62rem;
  letter-spacing: .4em;
  color: var(--purple-soft);
}
.vstage__cta { margin-top: 2.2rem; }

/* Scrub progress dial */
.scrollvideo__dial {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 60px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, .6));
}
.scrollvideo__dial svg { width: 60px; height: 60px; }
.scrollvideo__dial span {
  display: block;
  margin-top: .3rem;
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--purple-soft);
  font-variant-numeric: tabular-nums;
}

/* Live dwell counter — pendant to the dial, bottom left of the hero */
.scrollvideo__yourclock {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 10;
  font-family: var(--font-display);
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--purple-soft);
  text-shadow: 0 0 10px rgba(168, 85, 247, .6);
  font-variant-numeric: tabular-nums;
}
.scrollvideo__yourclock span { color: var(--pink); font-variant-numeric: tabular-nums; }

.hero__kicker {
  font-size: .7rem;
  letter-spacing: .5em;
  color: var(--purple-soft);
  margin-bottom: 1.6rem;
  text-shadow: 0 0 10px var(--purple);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 9rem);
  line-height: .95;
  color: #fff;
  text-shadow:
    0 0 10px rgba(168, 85, 247, .9),
    0 0 40px rgba(168, 85, 247, .7),
    0 0 90px rgba(168, 85, 247, .5);
}
.hero__tagline {
  margin-top: 1.8rem;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-dim);
}
.hero__actions {
  margin-top: 2.6rem;
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
}
.hero__scrollhint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: .6rem; letter-spacing: .4em;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  z-index: 10;
}
.hero__scrollhint span {
  display: block; width: 1px; height: 50px;
  background: linear-gradient(var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Glitch effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  overflow: hidden;
}
.glitch::before {
  color: var(--pink);
  text-shadow: none;
  animation: glitchA 3.5s infinite steps(1);
  clip-path: inset(0 0 0 0);
  opacity: .8;
}
.glitch::after {
  color: #60a5fa;
  text-shadow: none;
  animation: glitchB 3.5s infinite steps(1);
  opacity: .8;
}
@keyframes glitchA {
  0%, 91%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  92% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, 2px); }
  94% { clip-path: inset(50% 0 20% 0); transform: translate(5px, -2px); }
  96% { clip-path: inset(80% 0 5% 0); transform: translate(-3px, 1px); }
  98% { clip-path: inset(30% 0 45% 0); transform: translate(4px, -1px); }
}
@keyframes glitchB {
  0%, 90%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  91% { clip-path: inset(65% 0 10% 0); transform: translate(6px, -2px); }
  93% { clip-path: inset(15% 0 70% 0); transform: translate(-5px, 2px); }
  95% { clip-path: inset(40% 0 40% 0); transform: translate(3px, 1px); }
  97% { clip-path: inset(5% 0 85% 0); transform: translate(-4px, -1px); }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(168, 85, 247, .25);
  border-bottom: 1px solid rgba(168, 85, 247, .25);
  background: rgba(168, 85, 247, .05);
  padding: .9rem 0;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--purple-soft);
  text-shadow: 0 0 10px rgba(168, 85, 247, .6);
  padding-right: 2rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections (shared) ============ */
.section {
  position: relative;
  padding: 9rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
}
.section__head { margin-bottom: 4.5rem; }
.section__kicker {
  font-size: .7rem;
  letter-spacing: .5em;
  color: var(--purple);
  margin-bottom: 1.2rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
}
.section__title em {
  font-style: normal;
  color: var(--purple-soft);
  text-shadow: 0 0 20px rgba(168, 85, 247, .8), 0 0 60px rgba(168, 85, 247, .5);
}
.section__sub {
  margin-top: 1.4rem;
  color: var(--text-dim);
  max-width: 46ch;
  line-height: 1.7;
}

/* ============ About (plain intro) ============ */
.about__grid { max-width: 64rem; }
.about__lead {
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  max-width: 62ch;
}
.about__lead strong { color: var(--pink); font-weight: 700; }
.about__cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.about__cta-note {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ How to play (three plain steps) ============ */
.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.how__step {
  position: relative;
  padding: 2.4rem 2rem;
  background: linear-gradient(160deg, rgba(168, 85, 247, .08), rgba(13, 7, 22, .9));
  border: 1px solid rgba(168, 85, 247, .25);
}
.how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--purple);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--purple-soft);
  box-shadow: 0 0 20px rgba(168, 85, 247, .35);
  margin-bottom: 1.2rem;
}
.how__step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .8rem;
  color: var(--pink);
}
.how__step p { color: var(--text-dim); line-height: 1.7; font-size: .92rem; }

/* Footer play button */
.footer__play { margin: 1.4rem 0 .4rem; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============ World ============ */
.world__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.world-card {
  position: relative;
  padding: 2.4rem 2rem;
  background: linear-gradient(160deg, rgba(168, 85, 247, .08), rgba(13, 7, 22, .9));
  border: 1px solid rgba(168, 85, 247, .25);
  transition: border-color .3s, box-shadow .3s, transform .15s ease-out;
  will-change: transform;
}
.world-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(168, 85, 247, .25), inset 0 0 40px rgba(168, 85, 247, .06);
}
.world-card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(168, 85, 247, .35);
  margin-bottom: 1.2rem;
}
.world-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--pink);
}
.world-card p { color: var(--text-dim); line-height: 1.7; font-size: .92rem; }

.world__quote {
  margin-top: 6rem;
  text-align: center;
}
.world__quote blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--text);
  text-shadow: 0 0 30px rgba(168, 85, 247, .5);
}
.world__quote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: .75rem;
  letter-spacing: .35em;
  color: var(--purple);
}

/* ============ Clock section ============ */
.clock { max-width: none; overflow: hidden; }
.clock .section__head { max-width: 1300px; margin-left: auto; margin-right: auto; }
.clock__bg {
  position: absolute; inset: -20% 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(107, 33, 168, .25), transparent);
  pointer-events: none;
  will-change: transform;
}
.clock__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}
.liveclock {
  width: min(70vw, 520px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, .35));
}
.liveclock__numerals text {
  font-family: var(--font-display);
  font-size: 30px;
  fill: var(--purple-soft);
  text-anchor: middle;
  dominant-baseline: central;
}
#liveTicks line { stroke: var(--purple-deep); }
#liveTicks line.major { stroke: var(--purple-soft); }
#handHour, #handMinute, #handSecond { filter: drop-shadow(0 0 5px var(--purple)) drop-shadow(0 0 14px var(--purple-deep)); }

.clock__readout { text-align: center; }
.clock__digital {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  text-shadow: 0 0 16px var(--purple), 0 0 50px var(--purple);
  font-variant-numeric: tabular-nums;
}
.clock__spent {
  margin-top: 1.4rem;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--text-dim);
}
.clock__spent span { color: var(--pink); font-variant-numeric: tabular-nums; }
.clock__warning {
  margin-top: 1rem;
  font-size: .65rem;
  letter-spacing: .3em;
  color: var(--purple);
  animation: warnBlink 2.4s steps(2) infinite;
}
@keyframes warnBlink { 50% { opacity: .25; } }

/* ============ Hunters ============ */
.hunters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.hunter {
  position: relative;
  padding: 2.6rem 2.1rem;
  background: linear-gradient(200deg, rgba(168, 85, 247, .1), rgba(7, 4, 13, .95) 70%);
  border: 1px solid rgba(168, 85, 247, .25);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .15s ease-out;
  will-change: transform;
}
.hunter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(240, 171, 252, .12), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.hunter:hover { border-color: var(--pink); box-shadow: 0 0 50px rgba(168, 85, 247, .3); }
.hunter:hover::before { opacity: 1; }
.hunter__portrait {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, .45));
  transition: filter .35s, transform .35s;
}
.hunter:hover .hunter__portrait {
  filter: drop-shadow(0 0 36px rgba(240, 171, 252, .7));
  transform: translateY(-4px);
}
.hunter__glyph {
  font-size: 3rem;
  color: var(--purple);
  text-shadow: 0 0 24px var(--purple);
  margin-bottom: 1.4rem;
}
.hunter__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .08em;
  color: #fff;
}
.hunter__class {
  margin-top: .4rem;
  font-size: .65rem;
  letter-spacing: .4em;
  color: var(--purple-soft);
}
.hunter__bio {
  margin-top: 1.3rem;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.hunter__stats { margin-top: 1.8rem; display: grid; gap: .7rem; }
.hunter__stats div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: .8rem;
}
.hunter__stats span {
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--text-dim);
}
.hunter__stats i {
  display: block;
  height: 4px;
  background: rgba(168, 85, 247, .15);
  position: relative;
}
.hunter__stats i::after {
  content: '';
  position: absolute; inset: 0;
  width: var(--v);
  background: linear-gradient(90deg, var(--purple-deep), var(--pink));
  box-shadow: 0 0 10px var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .3s;
}
.hunter.is-in .hunter__stats i::after { transform: scaleX(1); }

/* ============ Countdown ============ */
.countdown { text-align: center; overflow: visible; }
.countdown__rings {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.countdown__rings span {
  position: absolute;
  border: 1px solid rgba(168, 85, 247, .2);
  border-radius: 50%;
  animation: ringPulse 5s ease-in-out infinite;
}
.countdown__rings span:nth-child(1) { width: min(480px, 88vw); height: min(480px, 88vw); }
.countdown__rings span:nth-child(2) { width: 680px; height: 680px; animation-delay: 1.2s; }
.countdown__rings span:nth-child(3) { width: 900px; height: 900px; animation-delay: 2.4s; }
@keyframes ringPulse {
  0%, 100% { opacity: .15; transform: scale(.97); }
  50% { opacity: .5; transform: scale(1); }
}
.countdown .section__head { text-align: center; }
.countdown__timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(.4rem, 2vw, 1.6rem);
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.countdown__unit b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 6.5rem);
  color: #fff;
  text-shadow: 0 0 14px var(--purple), 0 0 50px var(--purple), 0 0 110px var(--purple-deep);
  font-variant-numeric: tabular-nums;
}
.countdown__unit span {
  display: block;
  margin-top: .6rem;
  font-size: .62rem;
  letter-spacing: .45em;
  color: var(--text-dim);
}
.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 4rem);
  color: var(--purple);
  animation: warnBlink 1s steps(2) infinite;
}
.countdown__date {
  font-size: .82rem;
  letter-spacing: .3em;
  color: var(--purple-soft);
  margin-bottom: 1rem;
  text-shadow: 0 0 14px rgba(168, 85, 247, .5);
}
.countdown__fineprint {
  font-size: .62rem;
  letter-spacing: .35em;
  color: var(--text-dim);
  margin-bottom: 2.6rem;
}

/* ============ Editions ============ */
.editions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.edition {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.6rem 2.1rem;
  background: rgba(13, 7, 22, .8);
  border: 1px solid rgba(168, 85, 247, .25);
  text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .15s ease-out;
  will-change: transform;
}
.edition:hover { border-color: var(--purple); box-shadow: 0 0 40px rgba(168, 85, 247, .25); }
.edition--featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(168, 85, 247, .14), rgba(13, 7, 22, .9));
  box-shadow: 0 0 50px rgba(168, 85, 247, .3);
}
.edition__badge {
  position: absolute; top: -1px; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: .58rem;
  letter-spacing: .3em;
  color: #fff;
  background: var(--purple);
  padding: .45rem 1.1rem;
  box-shadow: 0 0 20px var(--purple);
  white-space: nowrap;
}
.edition h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .25em;
  color: var(--pink);
}
.edition__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: #fff;
  margin: 1.4rem 0;
  text-shadow: 0 0 20px rgba(168, 85, 247, .7);
}
.edition__price span { font-size: 1.2rem; color: var(--text-dim); }
.edition ul {
  list-style: none;
  margin-bottom: 2.2rem;
  flex: 1;
}
.edition li {
  padding: .55rem 0;
  font-size: .88rem;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(168, 85, 247, .15);
}
.edition li:last-child { border-bottom: none; }
.edition .btn[disabled] {
  opacity: .8;
  pointer-events: none;
}

/* The fourth card: the edition you already bought */
.edition--you {
  border-style: dashed;
  border-color: rgba(168, 85, 247, .4);
  background: linear-gradient(180deg, rgba(7, 4, 13, .9), rgba(13, 7, 22, .7));
}
.edition--you h3 { color: var(--text); }
.edition--you .edition__price {
  color: var(--purple-soft);
  text-shadow: 0 0 18px rgba(168, 85, 247, .4);
}
.edition--you li span { color: var(--pink); font-variant-numeric: tabular-nums; }

/* ============ Truth — the mask falls (Akt III, tone shift) ============
   Deliberately cooler than the rest of the page: Neon glow pulled back,
   body copy in --text/--text-dim, calmer type. The page stops performing. */
.truth {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 33, 168, .12), transparent 60%),
    var(--bg);
  max-width: none;
}
.truth > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.truth .section__head { margin-bottom: 3rem; }
.truth .section__title { color: var(--text); }
.truth__beat { margin-bottom: 3.2rem; }
.truth__beat p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--text);
}
.truth__beat p + p { margin-top: 1.2rem; color: var(--text-dim); }

.truth__table {
  border: 1px solid rgba(139, 129, 159, .25);
  margin-bottom: 3.5rem;
}
.truth__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.truth__row > span {
  padding: 1rem 1.4rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-dim);
  border-top: 1px solid rgba(139, 129, 159, .18);
}
.truth__row > span:first-child {
  border-right: 1px solid rgba(139, 129, 159, .18);
  color: var(--text);
}
.truth__row:first-child > span { border-top: none; }
.truth__row--head > span {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--purple-soft);
}
.truth__row span span { color: var(--pink); font-variant-numeric: tabular-nums; }

/* The one element that still glows: the strongest line */
.truth__verdict {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 18px rgba(168, 85, 247, .7), 0 0 60px rgba(168, 85, 247, .4);
  margin: 0 auto 3.8rem;
  max-width: 22ch;
}
.truth__verdict em { font-style: normal; color: var(--purple-soft); }

/* Beleg-Tafel — ledger-slip aesthetic, deliberately plain */
.truth__receipt {
  border: 1px solid rgba(139, 129, 159, .25);
  background: rgba(7, 4, 13, .6);
  padding: 2rem 2.2rem;
}
.truth__receipt-head {
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--purple-soft);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
.truth__receipt ul { list-style: none; }
.truth__receipt li {
  padding: .7rem 0;
  font-size: .92rem;
  color: var(--text-dim);
  border-top: 1px dashed rgba(139, 129, 159, .2);
}
.truth__receipt li:first-child { border-top: none; }
.truth__receipt b {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: .06em;
  margin-right: .4rem;
}

/* ============ Descent — the crossing into the app (a fall) ============ */
.descent {
  text-align: center;
  max-width: none;
  background:
    linear-gradient(to bottom, transparent, rgba(7, 4, 13, .4) 60%, var(--bg)),
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(168, 85, 247, .22), transparent 70%);
  overflow: hidden;
}
.descent__over {
  font-size: .72rem;
  letter-spacing: .4em;
  color: var(--purple-soft);
  margin-bottom: 2.6rem;
  text-shadow: 0 0 12px rgba(168, 85, 247, .5);
}
.descent__shaft {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 3rem 0 4rem;
}
.descent__shaft::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple), transparent);
  box-shadow: 0 0 18px var(--purple);
  opacity: .5;
}
.descent__cta {
  font-size: 1.1rem;
  padding: 1.4rem 3.4rem;
  position: relative;
  transition: transform .35s cubic-bezier(.6, 0, .8, .2), box-shadow .35s, letter-spacing .35s;
}
.descent__cta:hover {
  transform: translateY(10px);
  letter-spacing: .34em;
  box-shadow: 0 18px 60px rgba(168, 85, 247, .8), 0 0 80px rgba(168, 85, 247, .5);
}
.descent__url {
  font-size: .62rem;
  letter-spacing: .3em;
  color: var(--text-dim);
}

/* The fall gesture before navigation */
body.is-falling { overflow: hidden; }
body.is-falling::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  animation: fallDark .6s cubic-bezier(.6, 0, .9, .3) forwards;
}
body.is-falling #descentCta {
  animation: fallAway .6s cubic-bezier(.6, 0, .9, .3) forwards;
}
@keyframes fallDark { to { opacity: 1; } }
@keyframes fallAway {
  to { transform: translateY(60vh) scale(.6); opacity: 0; }
}

/* ============ Credits — the cast ============ */
.credits { text-align: center; }
.credits .section__head { margin-bottom: 3.5rem; }
.credits .section__kicker { color: var(--purple-soft); }
.credits .section__title { font-weight: 300; }
.credits__cast {
  list-style: none;
  max-width: 720px;
  margin: 0 auto 4.5rem;
  display: grid;
  gap: 1.6rem;
}
.credits__cast li {
  display: grid;
  gap: .4rem;
}
.credits__cast b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .18em;
  color: var(--pink);
}
.credits__cast span {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.credits__card {
  padding: 3rem 1.5rem 1rem;
  border-top: 1px solid rgba(168, 85, 247, .2);
}
.credits__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 0 20px rgba(168, 85, 247, .7), 0 0 70px rgba(168, 85, 247, .4);
}
.credits__sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--purple-soft);
}
.credits__line {
  margin-top: .8rem;
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--text-dim);
}

/* ============ Footer ============ */
.footer {
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-top: 1px solid rgba(168, 85, 247, .2);
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(107, 33, 168, .2), transparent);
}
.footer__clock {
  font-size: 3rem;
  color: var(--purple);
  text-shadow: 0 0 30px var(--purple);
  animation: footSpin 20s linear infinite;
  display: inline-block;
}
@keyframes footSpin { to { transform: rotate(360deg); } }
.footer__title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .35em;
  margin: 1.4rem 0 1.2rem;
  color: #fff;
  text-shadow: 0 0 16px rgba(168, 85, 247, .7);
}
.footer__small { font-size: .78rem; color: var(--text-dim); line-height: 1.8; }
.footer__ts {
  margin-top: 2rem;
  font-size: .62rem;
  letter-spacing: .35em;
  color: var(--purple);
}
.footer__ts span { color: var(--pink); }

/* ============ Burger + mobile menu ============ */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid rgba(168, 85, 247, .35);
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--purple-soft);
  box-shadow: 0 0 6px var(--purple);
  transition: transform .3s, opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  background: rgba(7, 4, 13, .96);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobilemenu.is-open { opacity: 1; pointer-events: auto; }
.mobilemenu ul {
  list-style: none;
  text-align: center;
  display: grid;
  gap: 1.2rem;
}
.mobilemenu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .3em;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(168, 85, 247, .6);
}
.mobilemenu a:not(.btn):active { color: var(--pink); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 760px) {
  .nav { padding: 1rem 1.2rem; }
  .nav.is-scrolled { padding: .7rem 1.2rem; }
  .nav__sound-word { display: none; }
  .nav__cta { display: none; } /* lives in the mobile menu instead */
  .nav__right { gap: .7rem; }
  .section { padding: 6rem 1.4rem; }
  .clock__stage { gap: 3rem; }
  .countdown__rings span:nth-child(2),
  .countdown__rings span:nth-child(3) { display: none; }

  /* scroll-video captions: centered and readable on small screens */
  .vstage--left, .vstage--right {
    align-items: center;
    text-align: center;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
  .vstage__copy { max-width: 36ch; }
  .scrollvideo__dial { right: 1rem; bottom: 1rem; width: 44px; }
  .scrollvideo__dial svg { width: 44px; height: 44px; }
  .scrollvideo__yourclock { left: 1rem; bottom: 1rem; font-size: .5rem; letter-spacing: .12em; }
  .credits__title { font-size: clamp(1.8rem, 9vw, 3rem); letter-spacing: .04em; }
  .credits__cast b { letter-spacing: .1em; }
  .truth__row { grid-template-columns: 1fr; }
  .truth__row > span:first-child { border-right: none; }
  .truth__row--head { display: none; }
  .truth__row > span { border-top: 1px solid rgba(139, 129, 159, .18); }
  .truth__row:first-child > span:first-child { border-top: none; }
  .hero__actions .btn { padding: .9rem 1.5rem; font-size: .72rem; }
  .hunter__portrait { height: 200px; }
  .world__quote { margin-top: 4rem; }
  .footer { padding: 4rem 1.4rem 3rem; }
}

/* small-viewport-height units where supported (mobile browser chrome) */
@supports (height: 100svh) {
  .scrollvideo__sticky { height: 100svh; }
  .vstage { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
