/* ============================================================
   LAMBRA — PSYCHOLOGICAL HORROR NOVEL SITE
   Style Engine v2.0 — Aaryan Agrawal / Prospero Universe
   ============================================================ */

:root {
  --bg:          #030203;
  --bg2:         #07050a;
  --red:         #c20000;
  --red-bright:  #ff1a1a;
  --red-glow:    rgba(194, 0, 0, 0.45);
  --red-dim:     rgba(160, 0, 0, 0.12);
  --text:        #ddd5cc;
  --text-muted:  #8a7f7a;
  --text-dim:    #534d4a;
  --accent:      #ff7070;
  --gold:        #c9a96e;
  --green-dim:   rgba(0, 255, 60, 0.06);
  --mono:        'Share Tech Mono', monospace;
  --serif:       'IM Fell English', Georgia, serif;
  --title:       'Cinzel Decorative', 'Cinzel', serif;
  --body-font:   'Cinzel', Georgia, serif;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  cursor: none;
}

body {
  min-height: 100vh;
  font-family: var(--serif);
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(120,0,0,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 40%,  rgba(60,0,0,0.10) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%,  rgba(80,0,0,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(30,0,0,0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
}

/* ===================== CUSTOM CURSOR ===================== */
#bloodDot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999999;
  transition: transform 0.08s ease;
  box-shadow: 0 0 8px var(--red-glow), 0 0 20px rgba(200,0,0,0.3);
  transform: translate(-50%, -50%);
}

#cursorTrail {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999998;
}

.trail-dot {
  width: 4px; height: 4px;
  background: var(--red);
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* ===================== ATMOSPHERIC LAYERS ===================== */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 11;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 0.15s steps(1) infinite;
}

@keyframes grainShift {
  0%  { background-position: 0px 0px; }
  25% { background-position: -40px 15px; }
  50% { background-position: 20px -30px; }
  75% { background-position: -10px 40px; }
}

.scanlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.92) 100%);
}

/* ===================== AUDIO DOCK ===================== */
.audio-dock {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
}

.audio-dock-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6, 0, 0, 0.88);
  border: 1px solid rgba(194, 0, 0, 0.3);
  padding: 12px 18px;
  border-radius: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(194,0,0,0.08);
}

.audio-icon-wrap {
  color: var(--accent);
  cursor: none;
  padding: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.audio-icon-wrap:hover { opacity: 1; }

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vol-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.vol-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: none;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  cursor: none;
  box-shadow: 0 0 6px var(--red-glow);
}

.vol-value {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 22px;
  text-align: right;
}

/* ===================== WHISPER OVERLAY ===================== */
#whisperOverlay { position: fixed; inset: 0; pointer-events: none; z-index: 8000; }

.whisper-msg {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(160, 0, 0, 0.55);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease, transform 2s ease;
  white-space: nowrap;
}

/* ===================== STATIC FLICKER ===================== */
#staticFlicker {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 7000;
  opacity: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ===================== BLOOD DRIPS ===================== */
.blood-drip-container {
  position: fixed; top: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 12;
  overflow: hidden;
}

.drip {
  position: absolute;
  top: 0;
  width: 2px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(160,0,0,0.9), rgba(80,0,0,0.2));
  animation: dripDown var(--dur, 4s) ease-in var(--delay, 0s) infinite;
  transform-origin: top center;
}

@keyframes dripDown {
  0%   { height: 0; opacity: 1; }
  70%  { opacity: 1; }
  100% { height: var(--len, 80px); opacity: 0; }
}

/* ===================== LAYOUT ===================== */
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  position: relative; z-index: 2;
}

/* ===================== HERO ===================== */
.hero {
  padding: 160px 20px 100px;
  text-align: center;
  position: relative;
}

.hero-top-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.eyebrow-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
  flex-shrink: 0;
}

.eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--red), transparent);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.8;
}

/* Title */
.title-wrap { position: relative; display: inline-block; margin-bottom: 0; }

.glitch-title {
  font-family: var(--title);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  display: block;
  text-shadow:
    0 0 10px rgba(255,0,0,0.3),
    0 0 40px rgba(180,0,0,0.2),
    0 0 80px rgba(120,0,0,0.1);
  animation: titleBreath 6s ease-in-out infinite;
}

@keyframes titleBreath {
  0%, 100% { text-shadow: 0 0 10px rgba(255,0,0,0.3), 0 0 40px rgba(180,0,0,0.2); }
  50%       { text-shadow: 0 0 20px rgba(255,0,0,0.5), 0 0 60px rgba(180,0,0,0.35), 0 0 100px rgba(120,0,0,0.2); }
}

.title-shadow-text {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--title);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 900;
  color: transparent;
  letter-spacing: 0.18em;
  -webkit-text-stroke: 1px rgba(160,0,0,0.15);
  user-select: none;
  pointer-events: none;
  z-index: -1;
}

/* Tagline */
.tagline {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: rgba(220, 180, 160, 0.8);
  letter-spacing: 0.08em;
  margin: 28px auto 20px;
  font-style: italic;
}

.tag-deco { color: var(--red); opacity: 0.6; margin: 0 10px; font-style: normal; }

.intro {
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.9;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.blood-rule {
  width: 80px; height: 1px;
  background: var(--red);
  margin: 32px auto;
  box-shadow: 0 0 8px var(--red-glow);
  position: relative;
}
.blood-rule::before, .blood-rule::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
}
.blood-rule::before { left: -8px; }
.blood-rule::after  { right: -8px; }

/* CTAs */
.ctaRow {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 38px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover .btn-glow { opacity: 1; }

.btn.primary {
  background: var(--red);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 28px rgba(194, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn.primary:hover {
  background: #e00000;
  box-shadow: 0 14px 40px rgba(255,0,0,0.5), 0 0 40px rgba(255,0,0,0.15);
  transform: translateY(-3px);
}

.btn.ghost {
  border: 1px solid rgba(194,0,0,0.35);
  color: rgba(220,180,160,0.8);
  background: rgba(120,0,0,0.05);
  position: relative;
}

.btn-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.6); }
}

.btn.ghost:hover {
  background: rgba(194,0,0,0.1);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(194,0,0,0.2);
}

/* Hero Stats */
.hero-footer-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--title);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-divider {
  color: rgba(194,0,0,0.2);
  font-size: 1.5rem;
}

/* ===================== PANEL / SECTION ===================== */
.section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--red);
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.panel {
  background: rgba(8, 4, 8, 0.75);
  border: 1px solid rgba(194,0,0,0.07);
  border-top: 1px solid rgba(194,0,0,0.2);
  padding: 56px 56px 48px;
  border-radius: 2px;
  margin-bottom: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(194,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 20% 0%, rgba(80,0,0,0.07), transparent 50%);
  pointer-events: none;
}

.panel h2 {
  font-family: var(--title);
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-red { color: var(--red); }

/* ===================== MANIFESTO ===================== */
.manifesto-line {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 22px;
  color: #c8c0ba;
}

.m-marker {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--red);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.redacted-block {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.4);
  border-left: 3px solid rgba(194,0,0,0.3);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.redacted {
  background: rgba(0,0,0,0.8);
  color: #2a0000;
  border-radius: 1px;
  padding: 0 3px;
  user-select: none;
  transition: all 0.3s;
}
.redacted:hover {
  color: var(--red);
  background: transparent;
}

/* ===================== GRID / CARDS ===================== */
.gridSection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.gridSection .panel { margin-bottom: 0; }

.card p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.card-footer-tag {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(194,0,0,0.1);
}

.card-footer-tag span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===================== CHARACTERS ===================== */
.characterGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.character-card {
  background: rgba(5,2,8,0.9);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 36px 28px 28px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.character-card:hover {
  border-color: rgba(194,0,0,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(194,0,0,0.06);
}

.char-number {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--red);
  opacity: 0.4;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.char-status-dot {
  position: absolute;
  top: 20px; right: 20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

.char-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(120,0,0,0.15), transparent 70%);
  pointer-events: none;
}

.character-card h3 {
  font-family: var(--title);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.char-role {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.25em;
  margin-bottom: 18px;
  opacity: 0.8;
}

.character-card p {
  font-family: var(--serif);
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.char-meter { margin-top: auto; }
.meter-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.meter-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(120,0,0,0.5), var(--red));
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
}

/* ===================== TIMELINE ===================== */
.timeline { padding-left: 20px; }

.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(194,0,0,0.07);
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 28px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

.tl-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.tl-content h4 {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: #ddd;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tl-content p {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tl-redacted .tl-content h4,
.tl-redacted .tl-content p,
.tl-redacted .tl-time { color: rgba(100,0,0,0.6); }

.tl-glitch {
  animation: textGlitch 3s ease-in-out infinite;
}
@keyframes textGlitch {
  0%,90%,100% { color: inherit; }
  91% { color: #fff; text-shadow: 2px 0 #ff0000; }
  93% { color: var(--red); text-shadow: none; }
  95% { color: #fff; text-shadow: -2px 0 #00ffff; }
}

/* ===================== PULL QUOTE ===================== */
.quote-section {
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: rgba(210,185,175,0.85);
  line-height: 1.7;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
}

.q-mark {
  font-family: var(--title);
  font-size: 4rem;
  color: var(--red);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -24px;
}

.q-cite {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  display: block;
}

/* ===================== RITUAL FORM ===================== */
.ritual-box {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.ritual-bg-text {
  position: absolute;
  font-family: var(--title);
  font-size: 11rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(194,0,0,0.04);
  letter-spacing: 0.2em;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.ritual-box h2 { margin-bottom: 12px; }
.ritual-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.75;
  font-size: 0.98rem;
}

.dark-form {
  margin: 0 auto;
  max-width: 480px;
  text-align: left;
}

.input-group {
  position: relative;
  margin-bottom: 32px;
}

.dark-form input {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.dark-form label {
  position: absolute;
  left: 0; top: 18px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.dark-form input:focus ~ label,
.dark-form input:not(:placeholder-shown) ~ label {
  top: -14px;
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.2em;
}

.dark-form .bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px; width: 0;
  background: var(--red);
  transition: width 0.4s ease;
  box-shadow: 0 0 6px var(--red-glow);
}

.dark-form input:focus ~ .bar { width: 100%; }

.form-submit { width: 100%; justify-content: center; }

.ritual-disclaimer {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 16px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ===================== AUTHOR ===================== */
.author-panel {
  border-left: 3px solid var(--red);
  background: linear-gradient(110deg, rgba(18,2,2,0.55) 0%, rgba(8,4,12,0.75) 100%);
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.author-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.author-bio {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.empire-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px dashed rgba(255,112,112,0.4);
  transition: all 0.3s;
}

.empire-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 10px rgba(255,112,112,0.5);
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: none;
}

.contact-btn.wa {
  background: rgba(37,211,102,0.15);
  color: #25d366;
  border: 1px solid rgba(37,211,102,0.3);
}

.contact-btn.wa:hover {
  background: rgba(37,211,102,0.25);
  transform: translateY(-2px);
}

.contact-btn.mail {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-btn.mail:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-2px);
}

/* Author sigil */
.author-sigil {
  width: 100px; height: 100px;
  position: relative;
  flex-shrink: 0;
}

.sigil-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(194,0,0,0.3);
  border-radius: 50%;
  animation: sigRotate 20s linear infinite;
}

.sigil-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(194,0,0,0.15);
  border-radius: 50%;
}

@keyframes sigRotate { to { transform: rotate(360deg); } }

.sigil-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sigil-inner span:first-child {
  font-family: var(--title);
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  opacity: 0.7;
}

.sigil-sub {
  font-family: var(--mono);
  font-size: 0.45rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: 90px 20px 60px;
  text-align: center;
  border-top: 1px solid rgba(194,0,0,0.08);
  position: relative;
}

.footer-cave-art {
  font-size: 0.7rem;
  color: rgba(80,0,0,0.3);
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}

.whisper-text {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(100,0,0,0.6);
  font-size: 0.92rem;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.footer-logo {
  font-family: var(--title);
  font-size: 2.5rem;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 8px;
  opacity: 0.7;
  text-shadow: 0 0 20px rgba(194,0,0,0.3);
}

.footer-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--red); }
.footer-links span { color: var(--text-dim); }

.copyright {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(80,70,65,0.6);
  letter-spacing: 0.08em;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== GREETING OVERLAY ===================== */
.greeting-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.greeting-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.greeting-box {
  text-align: center;
  padding: 60px 40px;
  max-width: 480px;
  position: relative;
}

.greeting-static {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px, transparent 3px
  );
  pointer-events: none;
  animation: grainShift 0.12s steps(1) infinite;
  opacity: 0.5;
}

.greeting-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.greeting-name {
  font-family: var(--title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 8px 0 24px;
  text-shadow: 0 0 30px rgba(255,0,0,0.4), 0 0 60px rgba(200,0,0,0.2);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s;
}

.greeting-overlay.active .greeting-line { opacity: 1; transform: translateY(0); }
.greeting-overlay.active .greeting-name { opacity: 1; transform: scale(1); }

.greeting-close {
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.4s ease 1.2s;
}
.greeting-overlay.active .greeting-close { opacity: 1; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero { padding: 120px 10px 70px; }
  .panel { padding: 36px 24px; }
  .gridSection { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .author-sigil { display: none; }
  .audio-dock { bottom: 16px; right: 16px; }
  .vol-slider { width: 70px; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 0 60px; }
  .gridSection { gap: 20px; }
  .characterGrid { grid-template-columns: 1fr; }
  .glitch-title { letter-spacing: 0.1em; }
}

/* Make sure normal cursor is visible */
body {
  cursor: default;
}

/* Blood dot should NOT block clicks */
#bloodDot {
  pointer-events: none;
  cursor: default;
}

/* Trail dots should NOT block clicks */
.trail-dot {
  pointer-events: none;
}

/* Whisper overlay should NOT block clicks */
#whisperOverlay {
  pointer-events: none;
}

/* All effect overlays should NOT block clicks */
#staticFlicker,
#cursorTrail {
  pointer-events: none;
}