/* ============================================================
   DER ABSTIEG — 10.984 m
   Palette: Oberflächen-Cyan → Mitternacht → absolutes Schwarz
   ============================================================ */

@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: block;
}

:root {
  --ink: #eef7f7;
  --ink-dim: rgba(228, 244, 244, 0.62);
  --cyan: #6ef0dd;
  --abyss: #010409;
  --pad: clamp(22px, 6vw, 72px);
}

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

html { background: var(--abyss); }
html, body { overscroll-behavior: none; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: var(--abyss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#spacer { width: 1px; }

/* ---------- Bühne ---------- */
#stage {
  position: fixed; inset: 0;
  overflow: hidden;
}
#gl, #fx, #veil {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
#fx { mix-blend-mode: screen; }

#dot {
  position: absolute;
  left: 42%; top: 38%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #eafffb;
  box-shadow:
    0 0 10px 2px rgba(160, 255, 240, 0.9),
    0 0 34px 10px rgba(90, 230, 210, 0.45),
    0 0 90px 30px rgba(40, 160, 150, 0.22);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- Anglerfisch ---------- */
#lureGlow {
  position: absolute;
  width: 130vmin; height: 130vmin;
  left: 42%; top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(38, 120, 150, 0.5) 0%,
    rgba(18, 70, 100, 0.28) 30%,
    rgba(4, 20, 38, 0.0) 68%);
  opacity: 0; pointer-events: none;
}
#angler {
  position: absolute;
  width: min(78vw, 460px);
  left: 42%; top: 38%;
  opacity: 0; pointer-events: none;
  /* Origin = Köderpunkt (Esca), damit Scale das Licht nicht verschiebt */
  transform-origin: 13% 19.3%;
  filter: drop-shadow(0 0 40px rgba(20, 90, 110, 0.25));
}
#s-angler { justify-content: flex-end; padding-bottom: 16vh; }

/* ---------- Szenen ---------- */
#world {
  /* Eigene volle Fläche: darf transformiert werden (Shake), ohne
     dass die absolut positionierten Szenen kollabieren */
  position: absolute; inset: 0;
}
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  padding-right: calc(var(--pad) + 14px);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  max-width: 760px;
}

.eyebrow, .zone {
  font-family: 'Space Mono', monospace;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.34em;
  color: var(--ink-dim);
  margin-bottom: clamp(14px, 3.4vh, 26px);
  text-transform: uppercase;
}
.zone.dim { margin-top: 10px; opacity: 0.75; }

.display {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 15.5vw, 150px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 3.6vh, 34px);
  overflow: visible;
}
.display.small { font-size: clamp(30px, 8.4vw, 76px); margin-bottom: 8px; }
.display.huge  { font-size: clamp(64px, 19vw, 210px); margin-bottom: clamp(14px, 3vh, 28px); }
.display.glow  { text-shadow: 0 0 34px rgba(110, 240, 221, 0.45), 0 0 90px rgba(110, 240, 221, 0.2), 0 3px 26px rgba(0,0,0,0.75); }

/* Lesbarkeit über leuchtenden Hintergründen */
.display, .lede, .body-copy, .caption, .whisper {
  text-shadow: 0 2px 22px rgba(1, 6, 12, 0.65), 0 0 6px rgba(1, 6, 12, 0.3);
}

.kinetic .ch { display: inline-block; will-change: transform, opacity; }
.kinetic .sp { display: inline-block; width: 0.32em; }

.lede {
  font-size: clamp(16px, 4.2vw, 22px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  max-width: 30em;
}

.body-copy {
  font-size: clamp(15.5px, 4vw, 21px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-dim);
  max-width: 28em;
}
.body-copy .pill { color: #000; }

.caption {
  font-family: 'Space Mono', monospace;
  font-size: clamp(10.5px, 2.7vw, 12.5px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(180, 214, 218, 0.5);
  margin-top: clamp(18px, 4vh, 34px);
}
.caption.low { margin-top: clamp(26px, 6vh, 48px); }

.whisper {
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 3.4vw, 17px);
  letter-spacing: 0.22em;
  color: rgba(210, 240, 240, 0.85);
  text-align: center;
  align-self: center;
}

/* Betonungs-Pill: Invertierung statt Anführungszeichen */
.pill {
  display: inline-block;
  background: var(--ink);
  color: #000;
  padding: 0.02em 0.28em;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}
#s-storm .pill, #s-meso .pill { background: var(--cyan); }

/* ---------- Hero Extras ---------- */
/* Auf hellem Oberflächen-Wasser: dunkle Auszeichnungen */
#s-hero .eyebrow { color: rgba(3, 40, 46, 0.78); text-shadow: none; }
#s-hero .hint { color: rgba(3, 40, 46, 0.72); }
#s-hero .hint-line {
  background: linear-gradient(to bottom, transparent, rgba(3, 40, 46, 0.85));
}
#s-hero .lede { text-shadow: 0 1px 18px rgba(2, 30, 36, 0.55); }
#s-hero .display { text-shadow: 0 4px 34px rgba(2, 30, 36, 0.45); }

.hint {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom), 4vh);
  left: var(--pad);
  display: flex; align-items: center; gap: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.hint-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: hintDrop 2.2s ease-in-out infinite;
}
@keyframes hintDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: top; }
  56%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Druck-Szene ---------- */
.crush-wrap { margin-bottom: clamp(16px, 3vh, 30px); }
.giant {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(90px, 26vw, 280px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  will-change: transform;
}
.giant-label {
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 3.6vw, 20px);
  letter-spacing: 0.5em;
  margin-top: 8px;
  color: var(--ink-dim);
}

/* ---------- Schluss-Szene ---------- */
.stats {
  list-style: none;
  margin: clamp(14px, 3vh, 26px) 0;
  border-top: 1px solid rgba(238, 247, 247, 0.16);
  max-width: 30em;
}
.stats li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding: clamp(9px, 1.6vh, 14px) 0;
  border-bottom: 1px solid rgba(238, 247, 247, 0.16);
  font-size: clamp(13px, 3.4vw, 16px);
}
.stats li span { color: var(--ink-dim); }
.stats li b {
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 0.95em;
  white-space: nowrap;
}
.credits {
  margin-top: clamp(20px, 4.5vh, 42px);
  font-family: 'Space Mono', monospace;
  font-size: clamp(9.5px, 2.5vw, 11.5px);
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: rgba(180, 214, 218, 0.42);
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  top: max(env(safe-area-inset-top), 16px);
  left: var(--pad);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0;
  pointer-events: none;
}
.hud-row { display: flex; gap: 10px; line-height: 1.9; }
.hud-k { color: rgba(190, 220, 224, 0.45); width: 5.2em; }
.hud-v { color: rgba(235, 250, 250, 0.92); font-variant-numeric: tabular-nums; }

/* ---------- Rail ---------- */
#rail {
  position: absolute;
  top: 12vh; bottom: 12vh;
  right: calc(var(--pad) * 0.45);
  width: 2px;
  pointer-events: none;
}
.rail-line {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(238, 247, 247, 0.28),
    rgba(238, 247, 247, 0.06));
}
.rail-dot {
  position: absolute;
  left: 50%; top: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(180, 240, 235, 0.8);
  transform: translate(-50%, -50%);
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .scene { max-width: 960px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hint-line { animation: none; }
}
