/* home.css */

/* ══════════════════════════════
   ① AUTHOR NAME HERO
══════════════════════════════ */
.hero-author {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .7;
}

.hero-author-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.2rem;
}
.hero-serpent-logo {
  width: 120px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(201,168,76,.24));
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease .4s forwards;
}

.hero-author-name {
  font-family: var(--display);
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: .92;
  color: var(--parchment);
  letter-spacing: -.02em;
  opacity: 0;
  animation: fadeUp 1.2s ease .7s forwards;
}
.hero-author-name .initial { color: var(--gold); }

.hero-author-sub {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1.2s ease 1s forwards;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 40%, rgba(26,20,40,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(42,58,40,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(30,45,53,0.4) 0%, transparent 60%),
    linear-gradient(180deg, #0d0b0e 0%, #111a10 35%, #0d0b0e 70%, #0b0d14 100%);
}
 
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120vh) translateX(var(--drift)); }
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: .5rem;
  opacity: 0;
  animation: fadeIn 1s ease 2.2s forwards;
}
.hero-scroll span {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scrollPulse {
  0%,100% { opacity:.3; transform:scaleY(1); }
  50%      { opacity:1;  transform:scaleY(1.1); }
}

/* ══════════════════════════════
   ② BOOK FEATURE SECTION
══════════════════════════════ */
.hero-book {
  padding: 6rem 3rem 7rem;
  background: linear-gradient(180deg, var(--ink) 0%, #0e130e 50%, var(--ink) 100%);
  position: relative;
}
.hero-book::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.hero-book-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6rem;
  align-items: center;
}

/* ── 3D Book ── */
.book-3d-wrap {
  perspective: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.book-3d {
  width: 210px; height: 315px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-22deg);
  animation: bookFloat 7s ease-in-out infinite;
  cursor: pointer;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
}
.book-3d:hover { transform: rotateY(-10deg) translateY(-8px); }

@keyframes bookFloat {
  0%,100% { transform: rotateY(-22deg) translateY(0); }
  50%      { transform: rotateY(-18deg) translateY(-12px); }
}

.book-face-front {
  background-image: url('images/HFITF-front-cover.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute; inset: 0;
  transform: translateZ(14px);
  /* background: linear-gradient(160deg, #1a1428 0%, #0d1a10 50%, #1e1228 100%); */
  border: 1px solid rgba(201,168,76,.45);
  border-radius: 2px 6px 6px 2px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .9rem;
  overflow: hidden;
  box-shadow: inset -5px 0 14px rgba(0,0,0,.5);
}
.book-shadow {
  width: 160px; height: 18px;
  background: radial-gradient(ellipse, rgba(0,0,0,.65) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: -.4rem;
}

/* ── Synopsis column ── */
.hero-book-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--parchment);
  margin: .8rem 0 1rem;
}
.hero-book-title em {
  display: block;
  font-style: italic;
  color: var(--gold-lt);
}

.genre-tags {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: .4rem .2rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: .4rem;
}
.genre-tags .sep { color: var(--gold); opacity: .55; }

.hero-synopsis {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text);
  border-left: 2px solid rgba(201,168,76,.25);
  padding-left: 1.4rem;
  margin: 1rem 0 .5rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

/* ══════════════════════════════
   ③ ABOUT TEASER
══════════════════════════════ */
.teaser {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, var(--ink) 0%, #0e1510 50%, var(--ink) 100%);
}
.teaser-inner {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem; align-items: center;
}
.teaser-bio {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text);
  margin-top: 1.2rem;
}

/* Portrait */
.teaser-portrait { display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: 260px; aspect-ratio: 3/4;
}
.portrait-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1428, #0d1a0d);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.portrait-border {
  position: absolute;
  top: -10px; left: -10px; right: 10px; bottom: 10px;
  border: 1px solid rgba(201,168,76,.18);
  pointer-events: none;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 860px) {
  .hero-book { padding: 5rem 2rem 6rem; }
  .hero-book-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    justify-items: center;
  }
  .hero-book-text { text-align: center; }
  .hero-synopsis { border-left: none; padding-left: 0; }
  .hero-actions { justify-content: center; }
  .genre-tags { justify-content: center; }
}

@media (max-width: 700px) {
  .teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
  .teaser-portrait { order: -1; }
  .portrait-frame { width: 200px; }
  .hero-author-name { font-size: clamp(3.5rem, 14vw, 6rem); }
  .hero-serpent-logo { width: 96px; height: 110px; }
  .book-3d { width: 170px; height: 255px; }
  .book-face-front { transform: translateZ(11px); }
}