/* ===================== HERO ===================== *//* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,5,8,0.80) 0%, rgba(7,5,8,0.58) 42%, rgba(7,5,8,0.74) 100%),
    radial-gradient(circle at center, rgba(0,0,0,0) 44%, rgba(0,0,0,0.18) 100%),
    url("../assets/inline/hero-background-v93.webp");
  background-size: cover;
  background-position: 44% center;
  background-repeat: no-repeat;
  opacity: 0.64;
  transform: scale(1);
  filter: saturate(0.90) brightness(0.82);
  pointer-events: none;
  z-index: 0;
}
/* ambient glow behind book */
.hero-right-glow {
  position: absolute;
  right: 0; top: 0; bottom: 0; width: 60%;
  background:
    radial-gradient(ellipse at 72% 50%, rgba(201,169,110,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 55% 18%, rgba(80,30,10,0.10) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.03;
  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='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px; pointer-events: none; z-index: 1;
}
/* ── LEFT ── */
.hero-left {
  position: relative; z-index: 10;
  flex: 0 0 56%;
  padding: 150px 48px 80px 0;
  padding-left: max(32px, calc(50vw - 504px));
  display: flex; flex-direction: column;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 16px 6px 12px;
  border: 1px solid var(--border-gold); border-radius: 100px;
  font-family: var(--ff-sans); font-size: 9px; letter-spacing: 0.3em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 36px; align-self: flex-start;
  opacity: 0; animation: hFadeUp 0.8s 0.15s forwards;
}
.hero-badge-dot { width: 5px; height: 5px; background: var(--accent-red); border-radius: 50%; animation: blink 2s infinite; box-shadow: 0 0 10px rgba(156,47,47,0.35); }
.hero-badge-arr { font-size: 10px; color: var(--gold); margin-left: 3px; }
.hero-title {
  font-family: var(--ff-serif); font-weight: 300;
  font-size: clamp(48px, 5.5vw, 86px);
  line-height: 1.02; color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 0;
  text-shadow: 0 0 20px rgba(248,241,227,0.05), 0 0 36px rgba(196,138,94,0.06);
  opacity: 0; animation: hFadeUp 0.9s 0.3s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
  text-shadow: 0 0 18px rgba(212,175,55,0.16), 0 0 34px rgba(196,138,94,0.12);
}
.hero-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  opacity: 0; animation: hFadeUp 0.8s 0.45s forwards;
}
.hero-divider-line { width: 56px; height: 1px; background: var(--border-gold); }
.hero-divider-glyph { color: var(--gold-dark); font-size: 10px; }
.hero-author { font-family: var(--ff-sans); font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-muted); }
.hero-tagline {
  font-size: 17px; font-style: italic; color: var(--text-muted);
  line-height: 1.65; max-width: 460px;
  border-left: 1px solid var(--gold-dark); padding-left: 18px;
  margin-bottom: 20px;
  text-shadow: 0 0 16px rgba(232,217,168,0.03);
  opacity: 0; animation: hFadeUp 0.8s 0.55s forwards;
}
.heat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(720px, 100%);
  max-width: min(720px, 100%);
  box-sizing: border-box;
  margin: 16px 0 0;
  padding: 0 18px;
  opacity: 0;
  animation: hFadeUp 0.8s 0.65s forwards;
}
.heat-label {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.heat-flames {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-left: auto;
}
.heat-flame {
  font-size: 13px;
  filter: grayscale(1) opacity(0.2);
  transition: filter 0.2s;
}
.heat-flame.on { filter: none; }
.heat-note {
  font-family: var(--ff-sans);
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 6px;
  white-space: nowrap;
}
.hero-btn {
    min-width: 0;
    width: 100%;
    height: 36px;
    font-size: 7px;
  }
}
  .hero-btn {
    min-width: 0;
    width: 100%;
  }
}
100% { background-position: -200% 0; }
}

  100% { background-position: -200% 0; }
}

  .hero-btn,
  .read-fragment-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    font-size: 8px;
  }
}
  .hero-btn,
  .read-fragment-btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    font-size: 8px;
  }
}
  .hero-btn,
  .read-fragment-btn {
    min-width: 0;
    width: 100%;
    height: 34px;
    min-height: 34px;
    font-size: 8px;
  }
}

/* --- Tropes divider --- */
.tropes-divider-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 24px 0 30px;
  opacity: 0;
  animation: hFadeUp 0.8s 0.74s forwards;
}
.tropes-divider-line {
  position: relative;
  width: min(720px, 100%);
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(232,217,168,0.05) 0%,
      rgba(240,224,181,0.95) 18%,
      rgba(255,244,211,1) 50%,
      rgba(240,224,181,0.95) 82%,
      rgba(232,217,168,0.05) 100%);
  box-shadow:
    0 0 10px rgba(232,217,168,0.34),
    0 0 22px rgba(212,175,55,0.18);
  overflow: hidden;
}
.tropes-divider-line::before {
  content: '';
  position: absolute;
  inset: -3px 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 20%,
    rgba(255,248,220,0.0) 34%,
    rgba(255,248,220,0.85) 50%,
    rgba(255,248,220,0.0) 66%,
    rgba(255,255,255,0) 80%
  );
  background-size: 200% 100%;
  animation: tropesDividerShine 3.2s linear infinite;
  opacity: 0.9;
}
.tropes-divider-line::after {
  content: '';
  position: absolute;
  inset: -6px 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,228,155,0.22) 0%, rgba(255,228,155,0) 70%);
  filter: blur(6px);
  pointer-events: none;
}
@keyframes tropesDividerShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tropes-divider-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 24px 0 30px;
  opacity: 0;
  animation: hFadeUp 0.8s 0.74s forwards;
}

.hero-btns {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 15px 15px;
  align-items: start;
  justify-content: start;
  margin-top: 10px;
  opacity: 0;
  animation: hFadeUp 0.8s 0.82s forwards;
}
.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  max-width: max-content;
  height: 40px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(214,175,84,0.60);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 8.1px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #fff7ea;
  text-shadow:
    0 1px 0 rgba(255,248,220,0.28),
    0 0 10px rgba(255,242,214,0.16),
    0 0 20px rgba(212,175,55,0.08);
  white-space: nowrap;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,245,220,0.10) 0%, rgba(255,245,220,0.04) 10%, rgba(255,245,220,0.00) 24%),
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 8%, rgba(0,0,0,0.00) 16%),
    linear-gradient(180deg, rgba(21,18,16,0.96) 0%, rgba(11,9,9,0.98) 52%, rgba(6,5,6,0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 2px 6px rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.70),
    inset 0 -8px 18px rgba(0,0,0,0.22),
    0 12px 22px rgba(0,0,0,0.18),
    0 0 10px rgba(232,217,168,0.06),
    0 0 6px rgba(214,175,84,0.12);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    filter 0.28s ease,
    background 0.28s ease;
}
.hero-btn::before,
.read-fragment-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,244,211,0.16) 0%, rgba(255,244,211,0.05) 18%, rgba(255,244,211,0.00) 42%),
    radial-gradient(circle at 78% 76%, rgba(255,214,120,0.12) 0%, rgba(255,214,120,0.04) 20%, rgba(255,214,120,0.00) 44%),
    linear-gradient(
      135deg,
      rgba(255,255,255,0.00) 0%,
      rgba(255,245,220,0.04) 22%,
      rgba(255,232,170,0.14) 50%,
      rgba(255,245,220,0.05) 74%,
      rgba(255,255,255,0.00) 100%
    );
  background-size: 140% 140%, 135% 135%, 220% 220%;
  background-position: 0% 0%, 100% 100%, 120% 0%;
  mix-blend-mode: screen;
  opacity: 0.72;
  pointer-events: none;
  animation: plaqueInnerGlowMove 7.2s ease-in-out infinite;
}
.hero-btn:hover::before,
.read-fragment-btn:hover::before {
  opacity: 0.92;
  animation-duration: 4.8s;
}
@keyframes plaqueInnerGlowMove {
  0% {
    background-position: 0% 0%, 100% 100%, 120% 0%;
  }
  50% {
    background-position: 12% 8%, 88% 92%, 40% 100%;
  }
  100% {
    background-position: 0% 0%, 100% 100%, -20% 0%;
  }
}
  100% {
    background-position: -120% 70%;
  }
}

/* --- Asynchronous shimmer for trope chips --- */
.hero-btns .hero-btn:nth-child(1)::before { animation-duration: 4.1s; animation-delay: -0.8s; }
.hero-btns .hero-btn:nth-child(2)::before { animation-duration: 5.3s; animation-delay: -2.2s; }
.hero-btns .hero-btn:nth-child(3)::before { animation-duration: 4.7s; animation-delay: -1.4s; }
.hero-btns .hero-btn:nth-child(4)::before { animation-duration: 6.0s; animation-delay: -3.1s; }
.hero-btns .hero-btn:nth-child(5)::before { animation-duration: 4.4s; animation-delay: -2.7s; }
.hero-btns .hero-btn:nth-child(6)::before { animation-duration: 5.8s; animation-delay: -0.3s; }

.hero-btns .hero-btn:nth-child(1):hover::before { animation-duration: 2.8s; }
.hero-btns .hero-btn:nth-child(2):hover::before { animation-duration: 3.4s; }
.hero-btns .hero-btn:nth-child(3):hover::before { animation-duration: 3.0s; }
.hero-btns .hero-btn:nth-child(4):hover::before { animation-duration: 3.7s; }
.hero-btns .hero-btn:nth-child(5):hover::before { animation-duration: 2.9s; }
.hero-btns .hero-btn:nth-child(6):hover::before { animation-duration: 3.3s; }

@media (max-width: 1180px) {
  .hero-btns {
    grid-template-columns: repeat(2, max-content);
  }
}
@media (max-width: 760px) {
  .hero-btns {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-btn,
  .read-fragment-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    font-size: 8px;
  }
}
  .hero-btn,
  .read-fragment-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    font-size: 8px;
  }
}
  .hero-btn,
  .read-fragment-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    font-size: 8px;
  }
}

.hero-stats {
  display: flex; gap: 36px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  opacity: 0; animation: hFadeUp 0.8s 0.96s forwards;
}
.hero-stat-num { font-size: 26px; color: var(--gold); letter-spacing: -0.02em; }
.hero-stat-label { font-family: var(--ff-sans); font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
/* ── RIGHT: 3-D BOOK (PNG mockup) ── */
.hero-right {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  /* no perspective needed — image already has 3D baked in */
}
/* the wrapper that levitates */
.book-levitate {
  animation: bkFloat 5s ease-in-out infinite;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.book-interaction {
  position: relative;
  width: clamp(168px, 18.5vw, 276px);
  perspective: 2200px;
  transform-style: preserve-3d;
  cursor: default;
  overflow: visible;
}
.book-page-peek,
.book-cover-hint {
  display: none;
}
/* the PNG book image */
.book-3d-img {
  width: 100%;
  height: auto;
  display: block;
  /* drop-shadow respects transparency */
  filter: drop-shadow(0 34px 52px rgba(0,0,0,0.72))
          drop-shadow(0 0 64px rgba(201,169,110,0.08))
          saturate(1.03)
          contrast(1.04);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: filter 0.45s ease, transform 0.45s ease;
  cursor: pointer;
}
.book-interaction:hover .book-3d-img {
  filter:
    drop-shadow(0 34px 52px rgba(0,0,0,0.72))
    drop-shadow(0 0 22px rgba(212,175,55,0.28))
    drop-shadow(0 0 42px rgba(232,217,168,0.18))
    saturate(1.05)
    contrast(1.06);
  transform: scale(1.02);
}
/* ground shadow */
.bk-shadow {
  width: clamp(110px, 12vw, 176px);
  height: 30px;
  margin: -10px auto 0;
  background: rgba(0,0,0,0.55);
  filter: blur(22px); border-radius: 50%;
  animation: bkShadow 5s ease-in-out infinite;
}
@keyframes systemBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.24; }
}
@keyframes navSignalPulse {
  0%, 100% { opacity: 0.74; box-shadow: 0 0 8px rgba(212,175,55,0.18), 0 0 16px rgba(212,175,55,0.06); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(212,175,55,0.30), 0 0 20px rgba(212,175,55,0.12); }
}
@keyframes navGlitch {
  0% { transform: translateY(-1px) translateX(0); }
  25% { transform: translateY(-1px) translateX(1px); }
  50% { transform: translateY(-1px) translateX(-1px); }
  75% { transform: translateY(-1px) translateX(1px); }
  100% { transform: translateY(-1px) translateX(0); }
}
@keyframes ctaGlitchText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
@keyframes hFadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
@keyframes bkFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-20px); } }
@keyframes bkShadow { 0%,100% { transform:scale(1); opacity:0.55; } 50% { transform:scale(0.6); opacity:0.18; } }
@keyframes auraBreath { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.1); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

