/* ============================================================
   THE SILENT VEIL — STYLESHEET v2
   All bugs fixed. Redaction bars. No pipe characters.
   ============================================================ */

:root {
  --void: #000000;
  --deep: #050505;
  --mist: #080808;
  --blood: #7a0000;
  --crimson: #b0000a;
  --ember: #e01010;
  --bone: #d4c9b0;
  --fog: #6b6560;
  --pale: #9a9288;
  --white: #f0ece4;
  --font-display: 'Cinzel Decorative', serif;
  --font-title: 'Cinzel', serif;
  --font-body: 'IM Fell English', serif;
  --font-mono: 'Share Tech Mono', monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* ── CONSERVATIVE GPU ACCELERATION (only for heavy elements) ── */
.player-screen, #static-canvas, #scene-canvas {
  will-change: transform;
  transform: translateZ(0);
}

/* Hero bg promoted to own GPU layer to prevent repaint choppiness */
.hero-bg::before {
  will-change: transform;
}

/* Fog layers — contained so blur doesn't trigger full-page repaint */
.hero-bg {
  isolation: isolate;
}

/* No will-change on hero/fog elements - prevents blanking on scroll back */
.hero-bg, .fog-layer {
  transform: translateZ(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .fog-layer {
    filter: blur(30px) !important;
  }
  .vhs-lines {
    opacity: 0.5;
  }
  #grain {
    opacity: 0.02;
  }
}

.terminal-body {
  will-change: scroll-position;
}

/* ── ULTRA-RESPONSIVE CUSTOM CURSOR ── */
#custom-cursor {
  position: fixed;
  width: 16px; height: 16px;
  border: 1.5px solid rgba(192,0,10,0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: border-color 0.1s ease;
  box-shadow: 0 0 4px rgba(192,0,10,0.4);
}

/* Hover effect - cursor expands slightly on interactive elements */
a:hover ~ #custom-cursor,
button:hover ~ #custom-cursor,
.btn-primary:hover ~ #custom-cursor,
.morse-btn:hover ~ #custom-cursor {
  border-color: rgba(255,0,20,1);
  box-shadow: 0 0 8px rgba(192,0,10,0.8);
  transform: translate3d(0, 0, 0) scale(1.2);
}

/* But since sibling selector doesn't work well, use JavaScript approach via class */
#custom-cursor.hovering {
  border-color: rgba(255,0,20,1);
  box-shadow: 0 0 8px rgba(192,0,10,0.8);
  transform: translate3d(0, 0, 0) scale(1.2);
}

#cursor-trail {
  position: fixed;
  width: 5px; height: 5px;
  background: rgba(192,0,10,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  top: 0; left: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  filter: blur(0.5px);
}

/* Hover effect for cursor */
#custom-cursor.hovering {
  border-color: rgba(255,0,20,1);
  box-shadow: 0 0 8px rgba(192,0,10,0.8);
  transform: translate3d(0, 0, 0) scale(1.2);
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  #custom-cursor, #cursor-trail {
    display: none;
  }
  body, a, button, input {
    cursor: auto !important;
  }
}

/* Hide on touch devices */
@media (pointer: coarse) {
  #custom-cursor, #cursor-trail {
    display: none;
  }
  body, a, button, input {
    cursor: auto !important;
  }
}

/* ── GRAIN — CSS-only, reduced animation frames ── */
#grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9989;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  /* NO ANIMATION — static grain still visible, zero repaint cost */
}

#glitch-overlay {
  background: repeating-linear-gradient(
    0deg,
    rgba(255,0,0,0.02) 0px,
    rgba(255,0,0,0.02) 2px,
    transparent 2px,
    transparent 6px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── VHS LINES ── */
.vhs-lines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9988;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.025) 0px,
    rgba(0,0,0,0.025) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ── REDACTED BARS — the proper fix ── */
.redacted-bar {
  display: inline-block;
  height: 14px;
  background: var(--bone);
  border-radius: 1px;
  vertical-align: middle;
  margin: 0 3px;
  position: relative;
  top: -1px;
  opacity: 0.85;
}
.full-bar {
  display: block;
  width: 100%;
  height: 16px;
  margin: 8px 0;
  opacity: 0.7;
}

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0;
  background: var(--void);
  z-index: 99999;
  display: flex;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-vhs { text-align: center; position: relative; z-index: 2; }
.loader-text {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  color: var(--crimson); letter-spacing: 0.35em;
  display: block; margin-bottom: 22px;
  animation: flicker 0.2s infinite alternate;
}
.loader-bar {
  width: 260px; height: 2px;
  background: rgba(139,0,0,0.25);
  margin: 0 auto 16px; overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--crimson));
  width: 0%;
  box-shadow: 0 0 10px var(--crimson);
  transition: width 0.15s ease;
}
.loader-sub {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: rgba(139,0,0,0.5); letter-spacing: 0.5em;
  animation: pulse-opacity 2s infinite;
}
.loader-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,0,0,0.012) 2px, rgba(255,0,0,0.012) 4px);
}

/* ── TOP BAR ── */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 28px;
  border-bottom: 1px solid rgba(139,0,0,0.2);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.25em;
  color: rgba(176,0,10,0.7);
}
.classified-tag { animation: flicker 4s infinite alternate; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 80px 20px 60px;
}

/* ── HERO BACKGROUND IMAGE ── */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-bg::before {
  content: '';
  position: absolute; inset: -8%;
  background: url('theSilentVeil.jpg') center center / cover no-repeat;
  opacity: 0.38;
  animation: ken-burns 28s ease-in-out infinite alternate;
  filter: grayscale(30%) brightness(0.55);
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

/* Dark overlay so text stays readable */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.72) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}

@keyframes ken-burns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, 1%); }
}

.fog-layer {
  position: absolute;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  /* NO BLUR — using gradient + transparency instead */
  opacity: 0.12;
  will-change: transform;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(130,0,0,0.25) 0%, transparent 70%);
  mix-blend-mode: screen;
}
@keyframes fog-drift-light {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to { transform: translate(25px, 12px) rotate(2deg) scale(1.02); }
}
.fog-1 {
  background: radial-gradient(ellipse, rgba(130,0,0,0.9) 0%, transparent 70%);
  top: -50%; left: -30%;
  animation: fog-drift-light 28s infinite alternate ease-in-out;
}
.fog-2 {
  background: radial-gradient(ellipse, rgba(70,0,0,0.7) 0%, transparent 60%);
  top: 20%; right: -40%;
  animation: fog-drift-light 20s infinite alternate-reverse ease-in-out;
}
.fog-3 {
  background: radial-gradient(ellipse, rgba(15,0,0,0.95) 0%, transparent 70%);
  bottom: -30%; left: 10%;
  animation: fog-drift-light 35s infinite alternate ease-in-out;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.97) 100%);
  z-index: 2;
}
.red-bleed {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(90,0,0,0.1) 0%, transparent 60%);
  animation: pulse-opacity 5s infinite alternate;
  z-index: 2;
}

/* Eyes */
.eyes-container {
  position: absolute; top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 80px; opacity: 0.2;
  transition: opacity 1.5s; pointer-events: none;
  z-index: 5;
}
.eyes-container.awakened { opacity: 0.8; }
.eye-outer {
  width: 88px; height: 36px;
  background: rgba(4,0,0,0.97);
  border-radius: 50%;
  border: 1px solid rgba(130,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(130,0,0,0.25), inset 0 0 10px rgba(0,0,0,0.9);
  transition: transform 0.08s;
}
.eye-mid {
  width: 28px; height: 28px;
  background: radial-gradient(circle, #180000 0%, #000 60%);
  border-radius: 50%; border: 1px solid rgba(130,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.pupil {
  width: 9px; height: 9px;
  background: var(--crimson); border-radius: 50%;
  box-shadow: 0 0 8px var(--crimson), 0 0 20px rgba(176,0,10,0.4);
}

/* Hero content */
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; }
.prelude-text {
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1.4vw, 0.78rem);
  letter-spacing: 0.5em; color: var(--crimson);
  margin-bottom: 28px;
  opacity: 0; animation: fade-in-up 1.2s 0.5s var(--ease) forwards;
}
.main-title {
  display: flex; flex-direction: column; align-items: center;
  line-height: 0.9; margin-bottom: 10px;
  opacity: 0; animation: title-reveal 2s 0.9s var(--ease) forwards;
}
.title-the {
  font-family: var(--font-title); font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 400; letter-spacing: 0.8em; color: var(--fog); margin-left: 0.8em;
}
.title-silent {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 13vw, 9.5rem); font-weight: 900;
  letter-spacing: 0.05em; color: var(--white);
  text-shadow: 0 0 40px rgba(176,0,10,0.4), 0 0 80px rgba(130,0,0,0.15), 2px 2px 0 rgba(130,0,0,0.25);
}
.title-veil {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 7.5rem); font-weight: 700;
  letter-spacing: 0.2em; color: var(--crimson);
  text-shadow: 0 0 50px rgba(176,0,10,0.7), 0 0 100px rgba(130,0,0,0.3);
  margin-left: 0.2em;
}
.title-underline {
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  margin: 18px auto;
  animation: expand-line 1.5s 1.8s var(--ease) forwards;
}
.tagline {
  font-family: var(--font-body); font-style: italic;
  font-size: clamp(0.9rem, 2.2vw, 1.2rem); color: var(--fog);
  max-width: 580px; margin: 0 auto 36px; line-height: 1.85;
  opacity: 0; animation: fade-in-up 1.5s 2s var(--ease) forwards;
}
.tagline em { color: var(--pale); }
.cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 36px; flex-wrap: wrap;
  opacity: 0; animation: fade-in-up 1.5s 2.4s var(--ease) forwards;
}
.btn-primary {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  padding: 17px 46px;
  font-family: var(--font-title); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.3em; color: var(--white);
  border: 1px solid var(--crimson); overflow: hidden; cursor: none;
  transition: border-color 0.3s;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blood); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { border-color: var(--ember); }
.btn-text { position: relative; z-index: 1; }
.btn-glow {
  position: absolute; inset: -2px;
  border: 1px solid rgba(176,0,10,0.3);
  pointer-events: none; animation: pulse-border 2.5s infinite;
}
.share-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.3em; color: var(--fog); }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(139,0,0,0.35); font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--fog); cursor: none; transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.share-btn:hover { color: var(--white); border-color: var(--crimson); background: rgba(130,0,0,0.2); }

/* Sound toggle */
.sound-toggle {
  margin-top: 28px; display: inline-block;
  background: none; border: none;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em;
  color: rgba(139,0,0,0.5); cursor: none;
  transition: color 0.3s;
  opacity: 0; animation: fade-in-up 1.5s 2.8s var(--ease) forwards;
}
.sound-toggle:hover { color: var(--crimson); }
.sound-toggle.active { color: var(--crimson); }

.scroll-indicator {
  position: absolute; bottom: 28px;
  left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  opacity: 0; animation: fade-in-up 1s 3.2s forwards;
  z-index: 10;
  width: 100%;
}
.scroll-text { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.4em; color: rgba(139,0,0,0.45); display: block; margin-bottom: 8px; }
.scroll-arrow { color: var(--crimson); animation: bounce 1.5s infinite; font-size: 1.1rem; }

/* ── SECTIONS SHARED ── */
section { position: relative; padding: clamp(60px, 10vw, 120px) clamp(20px, 6vw, 80px); overflow: hidden; }
.section-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(1.7rem, 5.5vw, 3.8rem);
  text-align: center; color: var(--white); letter-spacing: 0.15em; margin-bottom: 14px;
}
.section-subheading {
  text-align: center; font-family: var(--font-body); font-style: italic;
  color: var(--fog); font-size: 1.03rem; margin-bottom: 56px;
}

/* ── TERMINAL ── */
.terminal-section { background: #020202; border-top: 1px solid rgba(139,0,0,0.15); padding: 60px clamp(20px,6vw,80px); }
.terminal-wrap {
  max-width: 760px; margin: 0 auto;
  border: 1px solid rgba(139,0,0,0.35);
  background: rgba(3,0,0,0.97);
  box-shadow: 0 0 40px rgba(139,0,0,0.08), 0 0 80px rgba(0,0,0,0.6);
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(139,0,0,0.1);
  border-bottom: 1px solid rgba(139,0,0,0.2);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: rgba(192,0,10,0.7); }
.term-dot.amber { background: rgba(120,80,0,0.5); }
.term-dot.dim { background: rgba(60,60,60,0.5); }
.term-title {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: rgba(139,0,0,0.5); letter-spacing: 0.2em; margin-left: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: calc(100% - 60px);
}
.terminal-body {
  min-height: 220px; max-height: 340px; overflow-y: auto;
  padding: 20px 24px;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7;
  color: rgba(192,0,10,0.9);
  scrollbar-width: thin; scrollbar-color: rgba(139,0,0,0.3) transparent;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(139,0,0,0.4); }
.term-line { margin-bottom: 4px; }
.term-line.input-line { color: rgba(176,130,100,0.8); }
.term-line.output { color: rgba(180,0,10,0.75); }
.term-line.output.secret { color: rgba(140,180,140,0.7); }
.term-line.system { color: rgba(100,100,100,0.6); font-size: 0.7rem; }
.term-cursor { display: inline-block; width: 7px; height: 13px; background: var(--crimson); animation: blink-cursor 0.9s infinite; vertical-align: middle; margin-left: 2px; }
@keyframes blink-cursor { 0%,49%{opacity:1}50%,100%{opacity:0} }
.terminal-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-top: 1px solid rgba(139,0,0,0.15);
}
.term-prompt { font-family: var(--font-mono); color: var(--crimson); font-size: 0.9rem; }
.term-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--bone); caret-color: var(--crimson);
}
.term-input::placeholder { color: rgba(107,101,96,0.35); }
.term-hint {
  padding: 8px 24px 14px;
  font-family: var(--font-mono); font-size: 0.58rem;
  color: rgba(107,101,96,0.4); letter-spacing: 0.15em;
}
.term-hint code { color: rgba(139,0,0,0.55); }

/* ── TRANSMISSION ── */
.transmission { background: var(--deep); border-top: 1px solid rgba(139,0,0,0.12); }
.transmission-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px; flex-wrap: wrap; gap: 10px;
}
.tx-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.25em; color: var(--crimson); }
.tx-timestamp { font-family: var(--font-mono); font-size: 0.62rem; color: var(--fog); }

/* Video Player */
.fake-player {
  max-width: 760px; margin: 0 auto 48px;
  border: 1px solid rgba(139,0,0,0.3);
  background: #000;
  box-shadow: 0 0 40px rgba(139,0,0,0.12), 0 0 80px rgba(0,0,0,0.9);
}
.player-screen {
  position: relative; aspect-ratio: 16/9;
  background: #000; overflow: hidden; cursor: none;
}
#static-canvas, #scene-canvas { width: 100%; height: 100%; display: block; }
.player-play { position: absolute; inset: 0; }
.player-play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  cursor: none;
}
.play-ring {
  width: 68px; height: 68px; border-radius: 50%;
  border: 1px solid rgba(176,0,10,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: pulse-border 2.5s infinite; position: relative;
}
.play-icon { font-size: 1.3rem; color: var(--crimson); text-shadow: 0 0 20px var(--crimson); position: absolute; }
.play-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.28em; color: rgba(176,0,10,0.65); }
.player-hud { position: absolute; inset: 0; pointer-events: none; }
.player-vhs-overlay {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: multiply;
}
.player-timestamp {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--crimson);
  letter-spacing: 0.1em; animation: flicker 0.6s infinite alternate;
}
.player-tracking {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(176,0,10,0.35); animation: tracking-glitch 9s infinite;
}
.player-quote-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  font-family: var(--font-body); font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.5rem);
  color: rgba(212,201,176,0.9); text-align: center;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  line-height: 1.6; letter-spacing: 0.02em;
}
.player-controls {
  padding: 12px 16px; border-top: 1px solid rgba(139,0,0,0.18);
  display: flex; flex-direction: column; gap: 8px;
}
.player-bar { height: 2px; background: rgba(139,0,0,0.18); }
.player-bar-fill { height: 100%; background: var(--crimson); width: 0%; box-shadow: 0 0 6px var(--crimson); transition: width 1s linear; }
.player-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; color: var(--fog); }
.transmission-text { max-width: 680px; margin: 0 auto; }
.tx-body { font-family: var(--font-body); font-size: 1.08rem; line-height: 1.95; color: var(--bone); margin-bottom: 20px; }

/* ── COUNTDOWN ── */
.countdown-section {
  background: var(--void); border-top: 1px solid rgba(139,0,0,0.12);
  border-bottom: 1px solid rgba(139,0,0,0.12);
  text-align: center; padding: 80px 20px;
}
.countdown-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.5em; color: var(--fog); margin-bottom: 42px; }
.countdown-grid { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9.5vw, 5.8rem);
  color: var(--white); text-shadow: 0 0 28px rgba(176,0,10,0.45);
  line-height: 1; font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}
.cd-num.flip { transform: scale(1.05); color: var(--ember); }
.cd-label { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.4em; color: var(--fog); }
.cd-sep {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7.5vw, 4.8rem);
  color: var(--blood); line-height: 1; padding-bottom: 22px;
  animation: pulse-opacity 1s infinite;
}
.countdown-sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.25em; color: rgba(139,0,0,0.35); margin-top: 28px; }

/* ── CASE FILES ── */
.lore-section { background: var(--mist); }
.lore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1px; max-width: 1200px; margin: 0 auto; }
.lore-card {
  position: relative; border: 1px solid rgba(139,0,0,0.18);
  overflow: hidden; opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.3s;
}
.lore-card.visible { opacity: 1; transform: translateY(0); }
.lore-card.featured { border-color: rgba(176,0,10,0.4); }
.lore-card:hover { border-color: rgba(176,0,10,0.5); }
.lore-card:hover .card-hover-effect { opacity: 1; }
.lore-card-inner { padding: 38px 30px; position: relative; z-index: 1; }
.case-num { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.3em; color: var(--crimson); display: block; margin-bottom: 14px; }
.case-title { font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.1em; color: var(--white); margin-bottom: 14px; }
.case-body { font-family: var(--font-body); font-size: 0.94rem; line-height: 1.85; color: var(--fog); margin-bottom: 22px; }
.case-classified { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.25em; color: rgba(176,0,10,0.55); border: 1px solid rgba(176,0,10,0.25); padding: 6px 12px; display: inline-block; }
.card-hover-effect {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
  background: repeating-linear-gradient(0deg, rgba(176,0,10,0.025) 0px, rgba(176,0,10,0.025) 1px, transparent 1px, transparent 4px);
}

/* ── MORSE ── */
.morse-section {
  background: #030000; border-top: 1px solid rgba(139,0,0,0.15);
  text-align: center;
}
.morse-wrap { max-width: 620px; margin: 0 auto; }
.morse-top-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.4em; color: var(--crimson); margin-bottom: 8px; }
.morse-sub-label { font-family: var(--font-body); font-style: italic; color: var(--fog); font-size: 0.95rem; margin-bottom: 36px; }
.morse-signal-display {
  background: rgba(0,0,0,0.8); border: 1px solid rgba(139,0,0,0.3);
  padding: 20px 28px; margin: 0 auto 16px;
  min-height: 64px; display: flex; align-items: center; justify-content: center;
}
.morse-input-display {
  font-family: var(--font-mono); font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--crimson); letter-spacing: 0.3em; word-break: break-all;
  text-shadow: 0 0 10px rgba(176,0,10,0.4);
}
.morse-current-char { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--fog); margin-bottom: 28px; }
.morse-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.morse-btn {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  padding: 12px 22px; border: 1px solid rgba(139,0,0,0.35);
  background: rgba(0,0,0,0.8); color: var(--fog); cursor: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.1s;
}
.morse-btn:hover { color: var(--white); border-color: var(--crimson); background: rgba(139,0,0,0.15); }
.morse-btn:active { transform: scale(0.95); }
.morse-btn.dot:hover, .morse-btn.dash:hover { background: rgba(139,0,0,0.2); }
.morse-btn.clear { border-color: rgba(80,0,0,0.3); }
.morse-hint { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--fog); margin-bottom: 16px; }
.morse-code-to-solve { color: var(--bone); }
.morse-status { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; color: rgba(139,0,0,0.45); animation: pulse-opacity 2s infinite; }
.morse-decoded {
  margin-top: 28px; padding: 28px;
  border: 1px solid rgba(139,0,0,0.4);
  background: rgba(5,0,0,0.9);
  animation: fade-in-up 0.8s var(--ease) forwards;
}
.decoded-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.4em; color: var(--crimson); display: block; margin-bottom: 14px; animation: flicker 0.25s infinite alternate; }
.decoded-msg { font-family: var(--font-body); font-style: italic; color: var(--bone); font-size: 1.02rem; line-height: 1.75; }

/* ── DOCUMENT ── */
.doc-section { background: var(--deep); }
.classified-document {
  max-width: 720px; margin: 0 auto;
  border: 1px solid rgba(200,180,150,0.18);
  background: rgba(8,5,4,0.97); padding: 50px;
  position: relative; opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.classified-document::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid rgba(200,180,150,0.06); pointer-events: none;
}
.classified-document.visible { opacity: 1; transform: translateY(0); }
.doc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 38px; padding-bottom: 18px; border-bottom: 1px solid rgba(200,180,150,0.08); }
.doc-stamp {
  font-family: var(--font-title); font-size: 0.78rem; letter-spacing: 0.4em;
  color: var(--blood); border: 2px solid var(--blood); padding: 6px 14px;
  transform: rotate(-3deg); box-shadow: inset 0 0 0 1px rgba(122,0,0,0.3);
}
.doc-meta { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; color: var(--fog); display: flex; flex-direction: column; gap: 6px; text-align: right; }
.doc-para { font-family: var(--font-body); font-size: 1rem; line-height: 1.92; color: var(--bone); margin-bottom: 20px; }
.doc-footer { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(200,180,150,0.08); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.58rem; color: var(--fog); letter-spacing: 0.2em; }

/* ── EMAIL SIGNAL ── */
.signal-section { background: var(--void); border-top: 1px solid rgba(139,0,0,0.18); text-align: center; }
.signal-inner { max-width: 560px; margin: 0 auto; }
.signal-icon { font-size: 2.8rem; color: var(--crimson); display: block; margin-bottom: 18px; animation: pulse-opacity 2s infinite alternate; text-shadow: 0 0 28px var(--crimson); }
.signal-title { font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2.6rem); color: var(--white); letter-spacing: 0.15em; margin-bottom: 14px; }
.signal-body { font-family: var(--font-body); font-style: italic; color: var(--fog); font-size: 1.03rem; line-height: 1.82; margin-bottom: 38px; }
.signal-form { display: flex; max-width: 480px; margin: 0 auto 14px; }
.input-wrap { flex: 1; position: relative; }
.signal-input {
  width: 100%; padding: 17px 18px;
  background: rgba(8,3,3,0.95); border: 1px solid rgba(139,0,0,0.38); border-right: none;
  color: var(--bone); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; outline: none; transition: border-color 0.3s;
}
.signal-input:focus { border-color: var(--crimson); }
.signal-input::placeholder { color: rgba(107,101,96,0.5); }
.input-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 20px rgba(176,0,10,0.1); transition: opacity 0.3s; }
.signal-input:focus + .input-glow { opacity: 1; }
.signal-submit {
  padding: 17px 26px; background: var(--blood); border: 1px solid rgba(122,0,0,0.6);
  color: var(--white); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.25em;
  cursor: none; transition: background 0.3s;
}
.signal-submit:hover { background: var(--crimson); }
.signal-confirm { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--crimson); margin: 14px 0; animation: flicker 0.25s infinite alternate; }
.signal-disclaimer { font-family: var(--font-body); font-style: italic; font-size: 0.78rem; color: rgba(107,101,96,0.45); margin-top: 12px; }

/* ── SOCIAL ── */
.social-section { background: var(--mist); border-top: 1px solid rgba(139,0,0,0.12); text-align: center; }
.social-hashtag { font-family: var(--font-display); font-size: clamp(1.9rem, 7.5vw, 4.8rem); color: var(--white); letter-spacing: 0.05em; margin-bottom: 18px; text-shadow: 0 0 36px rgba(176,0,10,0.25); }
.social-body { font-family: var(--font-body); font-style: italic; color: var(--fog); font-size: 1.03rem; margin: 0 auto 38px; max-width: 480px; line-height: 1.8; }
.social-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-share-link { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.25em; padding: 14px 26px; border: 1px solid rgba(139,0,0,0.35); color: var(--fog); cursor: none; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.social-share-link:hover { color: var(--white); border-color: var(--crimson); background: rgba(139,0,0,0.14); }

/* ── FOOTER ── */
.site-footer { background: var(--void); border-top: 1px solid rgba(139,0,0,0.12); padding: 56px 20px; text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.3em; color: rgba(107,101,96,0.35); margin-bottom: 14px; }
.footer-copy { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; color: rgba(107,101,96,0.28); margin-bottom: 10px; }
.footer-tagline { font-family: var(--font-body); font-style: italic; color: rgba(122,0,0,0.28); font-size: 0.88rem; }
.footer-secret { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; color: rgba(139,0,0,0.12); margin-top: 20px; cursor: none; transition: color 0.4s; }
.footer-secret:hover { color: rgba(139,0,0,0.5); }

/* ── JUMPSCARE ── */
#jumpscare { position: fixed; inset: 0; z-index: 999999; pointer-events: none; }
#jumpscare-canvas { width: 100%; height: 100%; display: block; }

/* ── WHISPER ── */
#whisper-container { position: fixed; inset: 0; pointer-events: none; z-index: 9985; }
.whisper-word {
  position: absolute; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em;
  color: rgba(139,0,0,0.4); opacity: 0; transition: opacity 1.2s;
  text-transform: lowercase;
}

/* ── GLITCH TEXT ── */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.glitch-text::before { color: var(--crimson); animation: glitch-1 5s infinite; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
.glitch-text::after { color: rgba(0,240,180,0.4); animation: glitch-2 5s infinite; clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }

/* ── KEYFRAMES ── */
@keyframes fade-in-up { from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)} }
@keyframes title-reveal { 0%{opacity:0;filter:blur(12px);transform:scale(1.04)}100%{opacity:1;filter:blur(0);transform:scale(1)} }
@keyframes expand-line { from{width:0}to{width:280px} }
@keyframes fog-drift { from{transform:translate(0,0) rotate(0deg)}to{transform:translate(35px,18px) rotate(4deg)} }
@keyframes flicker { 0%,92%{opacity:1}93%{opacity:0.4}95%{opacity:1}97%{opacity:0.2}100%{opacity:1} }
@keyframes pulse-opacity { from{opacity:0.35}to{opacity:1} }
@keyframes pulse-border { 0%,100%{opacity:0.35;transform:scale(1)}50%{opacity:0.7;transform:scale(1.07)} }
@keyframes bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(6px)} }
@keyframes tracking-glitch { 0%,84%,100%{transform:translateX(0) scaleY(1);opacity:0.35}86%{transform:translateX(-5px) scaleY(3);opacity:0.7}88%{transform:translateX(4px) scaleY(1);opacity:0.25}90%{transform:translateX(-2px) scaleY(2);opacity:0.5} }
@keyframes glitch-1 { 0%,89%,100%{transform:translate(0);opacity:0}90%{transform:translate(-2px,1px);opacity:0.8}93%{transform:translate(2px,-1px);opacity:0.5}95%{transform:translate(0);opacity:0} }
@keyframes glitch-2 { 0%,87%,100%{transform:translate(0);opacity:0}88%{transform:translate(2px,2px);opacity:0.5}92%{transform:translate(-3px,-1px);opacity:0.35}94%{transform:translate(0);opacity:0} }

/* ── RESPONSIVE ── */
@media(max-width:768px){
  .eyes-container{gap:36px}
  .eye-outer{width:58px;height:24px}
  .eye-mid{width:20px;height:20px}
  .pupil{width:7px;height:7px}
  .cta-row{flex-direction:column;gap:20px}
  .lore-grid{grid-template-columns:1fr}
  .classified-document{padding:28px 20px}
  .doc-header{flex-direction:column;gap:14px}
  .doc-meta{text-align:left}
  .signal-form{flex-direction:column}
  .signal-input{border-right:1px solid rgba(139,0,0,0.38);border-bottom:none}
  .signal-submit{border:1px solid rgba(122,0,0,0.6)}
  .social-links{flex-direction:column;align-items:center}
  .transmission-header{flex-direction:column;gap:6px}
  .top-bar{padding:9px 14px;font-size:0.55rem}
  .countdown-grid{gap:5px}
  .cd-sep{font-size:1.7rem;padding-bottom:18px}
  .morse-btns{gap:8px}
  .morse-btn{padding:10px 16px;font-size:0.66rem}
  .terminal-body{min-height:160px}

  /* Terminal header — hide long title, keep dots visible */
  .terminal-header { overflow: hidden; }
  .term-title {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 56px);
  }

  /* Scroll indicator — guaranteed centre on mobile */
  .scroll-indicator {
    left: 0; right: 0;
    transform: none;
    align-items: center;
  }
  .scroll-text { text-align: center; width: 100%; }
  .scroll-arrow { text-align: center; width: 100%; display: block; }

  /* Hero bg image — slightly more visible on mobile */
  .hero-bg::before { opacity: 0.28; }
}
@media(max-width:480px){
  .title-silent{font-size:clamp(2.8rem,17vw,4.5rem)}
  .title-veil{font-size:clamp(2.4rem,13vw,3.8rem)}
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:3px}
::-webkit-scrollbar-track{background:var(--void)}
::-webkit-scrollbar-thumb{background:var(--blood)}
