/* ═══════════════════════════════════════════════════════════
   RadheShyam Official — Hero Section
   hero.css  (includes all animation keyframes — ONE FILE)
   Class prefix: qpv-
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --qpv-ink:      #0b0705;
  --qpv-ink2:     #120a06;
  --qpv-gold:     #e8a820;
  --qpv-gold-lt:  #f5d485;
  --qpv-gold-dk:  #c47d0e;
  --qpv-gold-mid: #c9a84c;
  --qpv-cream:    #f0e6d0;
  --qpv-cream-d:  #b8a882;
  --qpv-muted:    #6b5c45;
  --qpv-glow:     rgba(232,168,32,0.20);
  --qpv-nav-h:    72px;

  --ff-disp:  'Cinzel Decorative', serif;
  --ff-head:  'Playfair Display', serif;
  --ff-body:  'Crimson Pro', serif;
  --ff-acc:   'IM Fell English', serif;
  --ff-book:  'Libre Baskerville', serif;
}

/* ── HARD RESET (scoped to hero only) ───────────────────── */
.qpv-hero,
.qpv-hero *,
.qpv-hero *::before,
.qpv-hero *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;          /* kills ALL browser default borders */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Body push-down so content sits below fixed navbar */
body { padding-top: var(--qpv-nav-h); margin: 0; background: var(--qpv-ink); }

/* ═══════════════════════════════════════════════════════════
   SECTION SHELL
═══════════════════════════════════════════════════════════ */
.qpv-hero {
  position: relative;
  min-height: calc(100vh - var(--qpv-nav-h));
  background: radial-gradient(ellipse at 32% 40%, #1e0f08 0%, #0e0804 48%, #060300 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Canvas */
.qpv-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Vignette */
.qpv-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.52) 100%);
}

/* Ambient word container */
.qpv-ambient-wrap {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   INK DRIPS (top edge)
═══════════════════════════════════════════════════════════ */
.qpv-drip-row {
  position: absolute; top: 0; left: 0; right: 0;
  height: 50px; z-index: 3; pointer-events: none;
}

.qpv-drip {
  position: absolute; top: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--qpv-gold), transparent);
  border-radius: 0 0 4px 4px;
  transform-origin: top;
  opacity: 0;
  animation: qpvDrip 1.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ═══════════════════════════════════════════════════════════
   MAIN GRID
═══════════════════════════════════════════════════════════ */
.qpv-grid {
  position: relative; z-index: 10;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(44px,7vh,86px) clamp(20px,5vw,60px) clamp(36px,5vh,72px);
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: clamp(28px,4vw,64px);
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   LEFT COLUMN
═══════════════════════════════════════════════════════════ */
.qpv-col-left {
  display: flex; flex-direction: column;
  gap: clamp(12px,1.8vh,20px);
}

/* Every direct child of left col fades up on load */
.qpv-col-left > * {
  opacity: 0;
  transform: translateY(16px);
  animation: qpvFadeUp 0.85s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── Eyebrow ── */
.qpv-eyebrow {
  display: flex; align-items: center; gap: 10px;
}
.qpv-ey-line {
  display: block; height: 1px;
  width: clamp(20px,4vw,44px);
  background: linear-gradient(90deg, transparent, var(--qpv-gold-dk));
}
.qpv-ey-line-r {
  background: linear-gradient(90deg, var(--qpv-gold-dk), transparent);
}
.qpv-ey-txt {
  font-family: var(--ff-acc); font-style: italic;
  font-size: clamp(11px,1.25vw,13px);
  color: var(--qpv-gold-mid); letter-spacing: 0.18em; white-space: nowrap;
}

/* ── "Written by" ── */
.qpv-by-label {
  font-family: var(--ff-acc); font-style: italic;
  font-size: clamp(13px,1.35vw,15px);
  color: var(--qpv-muted); letter-spacing: 0.1em;
}

/* ── Author name ──
   CRITICAL FIXES:
   1. white-space:nowrap  → never wraps
   2. font-size clamp()   → scales down on small screens automatically
   3. letter-spacing tight so it fits on one line
──────────────────────────────────────────────────────────── */
.qpv-author-name {
  font-family: var(--ff-head);
  font-weight: 900;
  /* Clamp: min 38px · preferred 7vw · max 80px */
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.0;
  color: var(--qpv-cream);
  letter-spacing: -0.01em;
  white-space: nowrap;       /* ← NEVER wraps to next line */
  overflow: visible;
  display: block;
  /* Perspective for letter drop animation */
  perspective: 500px;
}

/* Individual letters — JS wraps each char in <span> */
.qpv-author-name .qpv-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(42px);
  animation: qpvLetterDrop 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── Quill underline SVG ── */
.qpv-quill-svg {
  width: clamp(240px, 75%, 560px);
  height: auto; display: block;
  margin-top: -4px; overflow: visible;
}

.qpv-quill-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: qpvQuillDraw 2s 1.0s cubic-bezier(0.22,1,0.36,1) forwards;
}

.qpv-quill-dot {
  opacity: 0;
  animation: qpvDotPop 0.4s 2.9s ease forwards;
}

/* ── Genre pills ── */
.qpv-pills {
  display: flex; flex-wrap: wrap; gap: 7px 9px;
}

.qpv-pill {
  font-family: var(--ff-body);
  font-size: clamp(11px,1.15vw,13px);
  letter-spacing: 0.09em;
  padding: 5px 13px;
  /* Gold border only — NO white */
  border: 1px solid rgba(232,168,32,0.30) !important;
  border-radius: 2px;
  background: rgba(232,168,32,0.05);
  color: var(--qpv-gold-lt);
  cursor: default;
  opacity: 0;
  animation: qpvPillPop 0.5s cubic-bezier(0.22,1,0.36,1) both;
  transition: background .28s, border-color .28s, box-shadow .28s;
}
.qpv-pill:hover {
  background: rgba(232,168,32,0.13);
  border-color: var(--qpv-gold) !important;
  box-shadow: 0 0 10px var(--qpv-glow);
}

/* ── Typewriter tagline ── */
.qpv-tagline-row {
  font-family: var(--ff-acc); font-style: italic;
  font-size: clamp(14px,1.7vw,19px);
  color: var(--qpv-cream);
  min-height: 26px;
  display: flex; align-items: center; gap: 2px;
}
.qpv-tag-slash { color: var(--qpv-gold-dk); font-style: normal; font-family: monospace; font-size: .85em; }
.qpv-tag-text  { color: var(--qpv-cream); }
.qpv-tag-cur   { color: var(--qpv-gold); animation: qpvCursorBlink .8s step-end infinite; }

/* ── Bio ── */
.qpv-bio {
  font-family: var(--ff-body); font-weight: 300;
  font-size: clamp(14px,1.6vw,18px);
  color: var(--qpv-cream-d); line-height: 1.85;
  max-width: 520px;
}
.qpv-bio em { color: var(--qpv-gold-lt); font-weight: 400; font-style: italic; }

/* ── CTA buttons ── */
.qpv-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 4px;
}

.qpv-btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--qpv-gold-dk), var(--qpv-gold));
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--ff-disp); font-size: clamp(10px,1.2vw,12px);
  font-weight: 700; color: #120800; letter-spacing: .12em;
  overflow: hidden;
  transition: filter .28s, transform .28s;
}
.qpv-btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.qpv-btn-primary:active { transform: translateY(0); }
.qpv-btn-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.28), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.qpv-btn-primary:hover .qpv-btn-shine { opacity: 1; }
.qpv-btn-arr { transition: transform .28s; display: inline-block; }
.qpv-btn-primary:hover .qpv-btn-arr { transform: translateX(4px); }

.qpv-btn-ghost {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  border: 1px solid rgba(232,168,32,0.32) !important;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--ff-disp); font-size: clamp(10px,1.2vw,12px);
  color: var(--qpv-gold-mid); letter-spacing: .1em;
  transition: border-color .28s, color .28s, background .28s, box-shadow .28s;
}
.qpv-btn-ghost:hover {
  border-color: var(--qpv-gold) !important; color: var(--qpv-gold-lt);
  background: rgba(232,168,32,.07);
  box-shadow: 0 0 14px var(--qpv-glow);
}

/* ── Stats ── */
.qpv-stats {
  display: flex; align-items: center;
  gap: clamp(14px,2.5vw,28px);
  padding-top: 8px;
  border-top: 1px solid rgba(232,168,32,0.13) !important;
}
.qpv-stat { display: flex; flex-direction: column; gap: 2px; }
.qpv-stat-n {
  font-family: var(--ff-disp); font-size: clamp(20px,2.8vw,30px);
  font-weight: 900; color: var(--qpv-gold-lt); line-height: 1;
}
.qpv-stat-sfx {
  font-family: var(--ff-disp); font-size: .55em;
  color: var(--qpv-gold); vertical-align: super;
}
.qpv-stat-l {
  font-family: var(--ff-acc); font-style: italic;
  font-size: clamp(9px,1vw,11px); color: var(--qpv-muted);
  letter-spacing: .04em; white-space: nowrap;
}
.qpv-stat-sep {
  width: 1px; height: 32px;
  background: rgba(232,168,32,0.16);
}

/* ═══════════════════════════════════════════════════════════
   RIGHT COLUMN — MANUSCRIPT BOOK
═══════════════════════════════════════════════════════════ */
.qpv-col-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

/* ── Manuscript Frame ──
   KEY FIX: only ONE animation — the reveal.
   The "disappearing" was caused by the float animation
   overwriting transform and wiping the reveal's end state.
   Solution: reveal sets final state with animation-fill-mode:forwards,
   then float uses a SEPARATE CSS custom property approach via
   a wrapper element so they don't conflict.
──────────────────────────────────────────────────────────── */
.qpv-ms-frame {
  position: relative;
  width: 100%; max-width: 520px;
  /* Start invisible */
  opacity: 0;
  /* Reveal animation — fills forwards so it STAYS visible */
  animation: qpvBookReveal 1.3s 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Idle float is on a CHILD wrapper — not the frame itself
   so it never resets opacity to 0 */
.qpv-book-floater {
  animation: qpvBookFloat 7s 2.1s ease-in-out infinite;
}

/* ── Orb ring ── */
.qpv-orbs {
  position: absolute; inset: -50px;
  pointer-events: none; z-index: 5;
}

.qpv-orb {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(12,7,4,0.92);
  /* Gold border only */
  border: 1px solid rgba(232,168,32,0.32) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; cursor: default;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.qpv-orb:hover {
  border-color: var(--qpv-gold) !important;
  box-shadow: 0 0 18px var(--qpv-glow);
  transform: scale(1.18) !important;
  z-index: 10;
}

.qpv-orb-1 { top:6%;  left:-2%;  animation: qpvOrbA 8s ease-in-out infinite; }
.qpv-orb-2 { top:-2%; left:40%;  animation: qpvOrbB 9s ease-in-out infinite; }
.qpv-orb-3 { top:6%;  right:-2%; animation: qpvOrbC 7s ease-in-out infinite; }
.qpv-orb-4 { bottom:9%; right:0;  animation: qpvOrbD 10s ease-in-out infinite; }
.qpv-orb-5 { bottom:2%; left:35%; animation: qpvOrbE 8.5s ease-in-out infinite; }
.qpv-orb-6 { bottom:9%; left:-2%; animation: qpvOrbF 9.5s ease-in-out infinite; }

/* ── Book ── */
.qpv-book {
  position: relative;
  display: flex;
  border-radius: 3px 7px 7px 3px;
  overflow: hidden;
  z-index: 2;
  /* Shadow only — no solid border ring */
  box-shadow:
    -14px 0 36px rgba(0,0,0,0.75),
    0 28px 70px rgba(0,0,0,0.65),
    0 0 0 1px rgba(232,168,32,0.12),   /* very subtle gold ring */
    0 0 50px rgba(232,168,32,0.03) inset;
}

/* ── Pages ── */
.qpv-page {
  flex: 1;
  padding: clamp(14px,2.5vw,26px) clamp(12px,2.2vw,22px);
  min-height: clamp(300px,42vh,460px);
  position: relative; overflow: hidden;
}

/* Parchment ruled-line texture */
.qpv-page::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    transparent, transparent 22px,
    rgba(200,160,50,0.04) 23px
  );
}

.qpv-pg-left  { background: linear-gradient(140deg, #1e1309 0%, #160e06 100%); }
.qpv-pg-right { background: linear-gradient(140deg, #160e06 0%, #1a1208 100%); }

/* Spine */
.qpv-spine {
  width: 13px; flex-shrink: 0;
  background: linear-gradient(90deg, #0b0603, #241608, #0b0603);
  border-left:  1px solid rgba(232,168,32,0.18) !important;
  border-right: 1px solid rgba(232,168,32,0.18) !important;
  position: relative;
}
.qpv-spine::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(232,168,32,0.14) 0%, transparent 25%,
    transparent 75%, rgba(232,168,32,0.10) 100%);
}

/* Page content */
.qpv-pg-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; gap: 10px;
}

.qpv-pg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(200,160,50,0.18) !important;
}
.qpv-pg-num {
  font-family: var(--ff-book); font-size: 10px;
  color: var(--qpv-muted); letter-spacing: .2em;
}
.qpv-pg-ch {
  font-family: var(--ff-acc); font-style: italic;
  font-size: 10px; color: var(--qpv-muted); letter-spacing: .1em;
}

/* Manuscript typed lines */
.qpv-mlines {
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.qpv-mline {
  height: 1.5px;
  background: rgba(200,160,50,0.13);
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  animation: qpvLineWrite linear forwards;
}

/* Drop cap */
.qpv-dropcap-row {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(200,160,50,0.10) !important;
}
.qpv-dropcap {
  font-family: var(--ff-disp);
  font-size: clamp(32px,4.5vw,48px);
  line-height: .88; color: var(--qpv-gold);
  text-shadow: 0 0 14px var(--qpv-glow);
}
.qpv-droptxt {
  font-family: var(--ff-body); font-style: italic;
  font-size: clamp(10px,1.2vw,12px);
  color: var(--qpv-cream-d); line-height: 1.6; padding-top: 3px;
}

/* Blockquote — no browser default, gold left border only */
.qpv-blockquote {
  padding-left: 10px !important;
  border-left: 2px solid var(--qpv-gold-dk) !important;
  margin: 2px 0 !important;
  background: transparent;
}
.qpv-blockquote p {
  font-family: var(--ff-body); font-style: italic;
  font-size: clamp(12px,1.4vw,14px);
  color: var(--qpv-cream); line-height: 1.75;
}
.qpv-blockquote cite {
  display: block; margin-top: 7px;
  font-family: var(--ff-acc); font-size: 10px; font-style: normal;
  color: var(--qpv-gold-mid); letter-spacing: .1em;
}

/* Flourish */
.qpv-flourish svg { width: 100%; height: auto; display: block; }

/* Book genre tags */
.qpv-book-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto;
}
.qpv-btag {
  font-family: var(--ff-body); font-size: 9px;
  color: var(--qpv-muted); padding: 2px 7px;
  border: 1px solid rgba(200,160,50,0.14) !important;
  border-radius: 1px; letter-spacing: .07em;
}

/* Quill icon */
.qpv-quill-ico {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 22px; opacity: .18;
  animation: qpvQuillBob 4s ease-in-out infinite;
}

/* Ink pool glow */
.qpv-ink-pool {
  position: absolute; bottom: -18px; left: 50%;
  transform: translateX(-50%);
  width: 68%; height: 18px;
  background: radial-gradient(ellipse, rgba(232,168,32,0.10) 0%, transparent 70%);
  filter: blur(7px); z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL INVITE
═══════════════════════════════════════════════════════════ */
.qpv-scroll-inv {
  position: absolute; bottom: 46px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  animation: qpvFadeIn 1s 3.0s ease forwards;
  transition: opacity .4s ease, transform .4s ease;
}
.qpv-sc-line {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--qpv-gold-dk));
}
.qpv-sc-line-r { background: linear-gradient(90deg, var(--qpv-gold-dk), transparent); }
.qpv-sc-txt {
  font-family: var(--ff-acc); font-style: italic;
  font-size: 11px; color: var(--qpv-muted);
  letter-spacing: .14em; white-space: nowrap;
  animation: qpvScrollBob 2.6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM TICKER
═══════════════════════════════════════════════════════════ */
.qpv-ticker-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 30px; z-index: 15;
  background: rgba(7,4,2,0.93);
  border-top: 1px solid rgba(232,168,32,0.16) !important;
  overflow: hidden;
  display: flex; align-items: center;
  backdrop-filter: blur(5px);
}
.qpv-ticker-inner {
  display: inline-flex; white-space: nowrap;
  font-family: var(--ff-acc); font-style: italic;
  font-size: clamp(10px,1.2vw,12px);
  color: var(--qpv-gold-mid); letter-spacing: .07em;
  animation: qpvTickLeft 55s linear infinite;
  will-change: transform;
}
.qpv-ticker-inner span { display: inline-block; }
.qpv-ticker-bar:hover .qpv-ticker-inner { animation-play-state: paused; }

/* Gold shimmer top-edge */
.qpv-hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--qpv-gold-dk), var(--qpv-gold-lt), var(--qpv-gold), var(--qpv-gold-dk), transparent);
  background-size: 200% 100%;
  animation: qpvTopShimmer 4s linear infinite; z-index: 20;
}

/* ═══════════════════════════════════════════════════════════
   AMBIENT WORDS (JS-spawned)
═══════════════════════════════════════════════════════════ */
.qpv-ambient-word {
  position: absolute;
  font-family: 'Playfair Display', serif; font-style: italic;
  color: rgba(232,168,32,0.10);
  pointer-events: none; user-select: none; white-space: nowrap;
  animation: qpvWordRise linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   ALL KEYFRAMES
═══════════════════════════════════════════════════════════ */

/* Generic utilities */
@keyframes qpvFadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes qpvFadeIn {
  from { opacity:0; } to { opacity:1; }
}

/* Ink drip */
@keyframes qpvDrip {
  0%   { opacity:0; transform:scaleY(0); }
  40%  { opacity:.9; transform:scaleY(1); }
  100% { opacity:.55; transform:scaleY(1); }
}

/* Quill underline draw */
@keyframes qpvQuillDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes qpvDotPop {
  0%  { opacity:0; } 60%  { opacity:1; } 100% { opacity:.65; }
}

/* Author letters fall in */
@keyframes qpvLetterDrop {
  from { opacity:0; transform:translateY(42px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Genre pill pop */
@keyframes qpvPillPop {
  from { opacity:0; transform:scale(.82) translateY(6px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

/* Cursor */
@keyframes qpvCursorBlink {
  0%,100% { opacity:1; } 50% { opacity:0; }
}

/* ── BOOK REVEAL ──
   Uses animation-fill-mode: forwards so opacity stays at 1
   after animation ends — this is the FIX for disappearing book
──────────────────────────────────────────────────────────── */
@keyframes qpvBookReveal {
  0%   { opacity:0; transform:perspective(700px) rotateY(-20deg) translateX(36px) scale(0.92); }
  65%  { opacity:1; transform:perspective(700px) rotateY(2deg)   translateX(-3px)  scale(1.01); }
  100% { opacity:1; transform:perspective(700px) rotateY(0deg)   translateX(0)     scale(1); }
}

/* ── BOOK IDLE FLOAT ──
   Applied to inner .qpv-book-floater div — NEVER touches opacity
   so it cannot conflict with the reveal on .qpv-ms-frame
──────────────────────────────────────────────────────────── */
@keyframes qpvBookFloat {
  0%,100% { transform:perspective(700px) rotateY(-1deg) translateY(0); }
  50%      { transform:perspective(700px) rotateY(1.5deg) translateY(-8px); }
}

/* Manuscript line write */
@keyframes qpvLineWrite {
  from { transform:scaleX(0); opacity:0; }
  to   { transform:scaleX(1); opacity:1; }
}

/* Quill icon bob */
@keyframes qpvQuillBob {
  0%,100% { transform:rotate(-10deg) translateY(0); }
  50%      { transform:rotate(-6deg)  translateY(-5px); }
}

/* Orb floats */
@keyframes qpvOrbA { 0%,100%{transform:translate(0,0) rotate(0)}  33%{transform:translate(-7px,-13px) rotate(7deg)}  66%{transform:translate(5px,-5px) rotate(-4deg)} }
@keyframes qpvOrbB { 0%,100%{transform:translateY(0)}              50%{transform:translateY(-16px)} }
@keyframes qpvOrbC { 0%,100%{transform:translate(0,0) rotate(0)}   40%{transform:translate(9px,-11px) rotate(9deg)}  80%{transform:translate(-3px,-5px) rotate(-5deg)} }
@keyframes qpvOrbD { 0%,100%{transform:translate(0,0)}             50%{transform:translate(7px,13px)} }
@keyframes qpvOrbE { 0%,100%{transform:translate(0,0) rotate(0)}   50%{transform:translate(-5px,11px) rotate(-7deg)} }
@keyframes qpvOrbF { 0%,100%{transform:translate(0,0)}             33%{transform:translate(-9px,9px)} 66%{transform:translate(3px,15px)} }

/* Scroll bob */
@keyframes qpvScrollBob {
  0%,100% { transform:translateY(0); opacity:.6; }
  50%      { transform:translateY(5px); opacity:1; }
}

/* Ticker */
@keyframes qpvTickLeft {
  from { transform:translateX(0); } to { transform:translateX(-50%); }
}

/* Top shimmer */
@keyframes qpvTopShimmer {
  0%   { background-position:0% 50%; }
  50%  { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}

/* Ambient word rise */
@keyframes qpvWordRise {
  0%   { transform:translateY(0)     rotate(var(--qpv-rot)); opacity:0; }
  8%   { opacity:.4; }
  92%  { opacity:.2; }
  100% { transform:translateY(-180px) rotate(var(--qpv-rot)); opacity:0; }
}

/* Quote cycle fade */
@keyframes qpvQuoteFade {
  0%  { opacity:0; transform:translateY(5px); }
  20% { opacity:1; transform:translateY(0); }
  80% { opacity:1; }
  100%{ opacity:0; transform:translateY(-5px); }
}
.qpv-blockquote.qpv-cycling p {
  animation: qpvQuoteFade 0.5s ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .qpv-grid {
    grid-template-columns: 1fr;
    padding-top: clamp(36px,5vh,60px);
  }
  .qpv-col-right { display: none; } /* hide book on tablet — focus on text */
  .qpv-col-left  { max-width: 680px; margin: 0 auto; }
}

@media (max-width: 600px) {
  /* Name stays on one line — font just gets smaller */
  .qpv-author-name { font-size: clamp(32px, 9vw, 52px); letter-spacing: -.01em; }
  .qpv-cta-row     { flex-direction: column; align-items: flex-start; }
  .qpv-btn-primary,
  .qpv-btn-ghost   { width: 100%; justify-content: center; }
  .qpv-stats       { gap: 12px; }
}

@media (max-width: 380px) {
  .qpv-author-name { font-size: 28px; }
  .qpv-pills       { gap: 5px 7px; }
  .qpv-pill        { font-size: 10px; padding: 4px 10px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .qpv-hero *, .qpv-hero *::before, .qpv-hero *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .qpv-quill-path { stroke-dashoffset: 0 !important; }
}

/*Second Section CSS By Rishabh Starts*/
/* ═══════════════════════════════════════════════════════════
   RadheShyam Official — Books Section
   books.css  (all styles + all @keyframes in one file)
   Class prefix: rvb-
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --rvb-ink:       #0b0705;
  --rvb-ink2:      #130c07;
  --rvb-parch:     #f5e8c8;
  --rvb-parch-d:   #e2d0a0;
  --rvb-parch-dd:  #c8b07a;
  --rvb-gold:      #e8a820;
  --rvb-gold-lt:   #f5d485;
  --rvb-gold-dk:   #c47d0e;
  --rvb-gold-mid:  #c9a84c;
  --rvb-rust:      #8b3a1a;
  --rvb-amber:     #d4751a;
  --rvb-cream:     #f0e6d0;
  --rvb-cream-d:   #b8a882;
  --rvb-muted:     #6b5c45;
  --rvb-glow:      rgba(232,168,32,0.22);
  --rvb-leaf1:     #c4621a;
  --rvb-leaf2:     #a04a10;
  --rvb-leaf3:     #d4891a;

  --ff-d:  'Cinzel Decorative', serif;
  --ff-h:  'Playfair Display', serif;
  --ff-b:  'Crimson Pro', serif;
  --ff-a:  'IM Fell English', serif;
}

/* ── RESET (scoped) ─────────────────────────────────────── */
.rvb-section,
.rvb-section *,
.rvb-section *::before,
.rvb-section *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  border: none; outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════════
   SECTION SHELL
═══════════════════════════════════════════════════════════ */
.rvb-section {
  position: relative;
  background: radial-gradient(ellipse at 60% 30%, #1c0f06 0%, #0e0804 50%, #060301 100%);
  overflow: hidden;
  padding: clamp(56px,8vh,100px) 0 clamp(40px,6vh,80px);
}

/* Canvas */
.rvb-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Vignette */
.rvb-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 28%, rgba(0,0,0,0.55) 100%);
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════════════ */
.rvb-hdr {
  position: relative; z-index: 10;
  display: flex; align-items: center;
  gap: 20px; justify-content: center;
  padding: 0 clamp(20px,5vw,60px);
  margin-bottom: clamp(40px,6vh,72px);
}

.rvb-hdr-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rvb-gold-dk), transparent);
  max-width: 200px;
  opacity: 0.5;
}

.rvb-hdr-center { text-align: center; flex-shrink: 0; }

.rvb-hdr-eyebrow {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(11px,1.3vw,13px);
  color: var(--rvb-gold-mid); letter-spacing: 0.2em;
  display: block; margin-bottom: 6px;
}

.rvb-hdr-title {
  font-family: var(--ff-d);
  font-size: clamp(22px,3.5vw,38px);
  font-weight: 700;
  color: var(--rvb-cream);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(232,168,32,0.25);
}

.rvb-hdr-sub {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(12px,1.4vw,15px);
  color: var(--rvb-muted); letter-spacing: 0.12em;
  margin-top: 5px;
}

/* ═══════════════════════════════════════════════════════════
   MAIN GRID
═══════════════════════════════════════════════════════════ */
.rvb-grid {
  position: relative; z-index: 10;
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px,5vw,72px);
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════
   LEFT PANEL — Scroll Stage
═══════════════════════════════════════════════════════════ */
.rvb-left-panel {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  min-height: 500px;
}

/* ── Scroll Stage ── */
.rvb-scroll-stage {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rvb-scroll-stage.rvb-hidden {
  opacity: 0;
  transform: scale(0.88) translateY(-20px);
  pointer-events: none;
}

/* ── String Assembly ── */
.rvb-string-assy {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rvb-str-h {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5e1a 20%, #8b5e1a 80%, transparent);
  transform: translateY(-50%);
}

.rvb-str-v {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #8b5e1a 20%, #8b5e1a 80%, transparent);
  transform: translateX(-50%);
}

.rvb-str-knot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
}

.rvb-string-assy.rvb-string-unties {
  animation: rvbStringUntie 0.7s ease forwards;
}

@keyframes rvbStringUntie {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
  60%  { opacity: 0.6; transform: translate(-50%,-50%) scale(1.3) rotate(20deg); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0) rotate(45deg); }
}

/* ── Rolled Scroll / Cylinder ── */
.rvb-roll {
  width: clamp(180px, 40vw, 280px);
  display: flex; flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.7));
}

.rvb-roll:hover {
  transform: translateY(-4px) rotate(-1deg);
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.8)) drop-shadow(0 0 12px rgba(232,168,32,0.25));
}

/* Rounded end caps of the cylinder */
.rvb-roll-cap {
  width: 100%; height: 22px;
  background: linear-gradient(180deg, #3d2008, #5a3010);
  border-radius: 50%/12px;
  position: relative; z-index: 2;
}
.rvb-roll-top-cap { border-radius: 50% 50% 20% 20% / 12px 12px 6px 6px; }
.rvb-roll-bot-cap {
  background: linear-gradient(0deg, #2a1504, #4a2808);
  border-radius: 20% 20% 50% 50% / 6px 6px 12px 12px;
}

/* Main body of the cylinder */
.rvb-roll-body {
  width: 100%;
  min-height: clamp(160px, 25vw, 240px);
  background:
    linear-gradient(135deg,
      #f5e8c0 0%,
      #ead8a0 15%,
      #d4b870 30%,
      #f0dca0 45%,
      #c8a850 60%,
      #e8d090 75%,
      #c0904a 90%,
      #b07830 100%
    );
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* Shine lines on the cylinder surface */
.rvb-roll-shine {
  position: absolute; top: 0; bottom: 0;
  left: 12%; width: 8%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events: none;
}

.rvb-roll-lines {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-evenly;
  padding: 8px 0;
  pointer-events: none;
}

.rvb-rline {
  height: 1px;
  background: rgba(160,100,30,0.3);
  margin: 0 4px;
}

.rvb-roll-label {
  font-family: var(--ff-d);
  font-size: clamp(12px, 2vw, 16px);
  color: rgba(90,45,10,0.85);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 12px;
  z-index: 2;
  position: relative;
  writing-mode: horizontal-tb;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* The roll doing the unroll animation */
.rvb-roll.rvb-unrolling {
  animation: rvbUnrollOut 1.0s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes rvbUnrollOut {
  0%   { transform: scaleY(1) translateY(0); opacity: 1; }
  40%  { transform: scaleY(0.3) translateY(-30px); opacity: 0.8; }
  100% { transform: scaleY(0) translateY(-60px); opacity: 0; }
}

/* ── Unroll Button ── */
.rvb-unroll-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--rvb-gold-dk), var(--rvb-gold));
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--ff-d);
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 700; color: #120800;
  letter-spacing: 0.1em;
  overflow: hidden;
  transition: filter 0.3s, transform 0.3s;
  animation: rvbBtnBob 2.5s ease-in-out infinite;
}

.rvb-unroll-btn:hover {
  filter: brightness(1.14);
  transform: translateY(-3px);
  animation: none;
}

.rvb-unroll-btn:active { transform: translateY(0); }

.rvb-ubtn-pulse {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.25), transparent 60%);
  animation: rvbBtnPulse 2s ease-in-out infinite;
}

.rvb-ubtn-icon { font-size: 18px; }

@keyframes rvbBtnBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@keyframes rvbBtnPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

/* ── Open Page ── */
.rvb-open-page {
  position: relative;
  width: 100%;
  background:
    linear-gradient(180deg, #fdf4dc 0%, #f5e8c0 40%, #ead8a0 100%);
  border-radius: 2px 8px 8px 2px;
  box-shadow:
    4px 4px 30px rgba(0,0,0,0.6),
    -2px 0 8px rgba(0,0,0,0.3),
    0 0 0 1px rgba(160,100,30,0.3);
  display: none;       /* JS shows this */
  flex-direction: column;
  overflow: hidden;
  /* Unroll reveal — JS adds .rvb-page-visible to trigger */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0s;
}

.rvb-open-page.rvb-page-visible {
  display: flex;
  clip-path: inset(0 0% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.22,1,0.36,1);
}

/* Ruled lines texture */
.rvb-ruled {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    transparent, transparent 27px,
    rgba(160,100,30,0.09) 28px
  );
  pointer-events: none; z-index: 0;
}

/* Page curls */
.rvb-curl-top {
  width: 100%; height: 20px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(180,120,40,0.25), transparent);
  position: relative; z-index: 2;
}

.rvb-curl-top::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(140,80,20,0.5), rgba(200,140,50,0.3), transparent);
}

.rvb-curl-bottom {
  width: 100%; height: 18px; flex-shrink: 0; margin-top: auto;
  background: linear-gradient(0deg, rgba(160,100,20,0.2), transparent);
  position: relative; z-index: 2;
}

.rvb-curl-bottom::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(120,70,15,0.4), transparent);
}

/* Page header */
.rvb-pg-hdr {
  position: relative; z-index: 2;
  text-align: center; padding: 14px 24px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.rvb-orn-svg { width: 80%; max-width: 320px; height: auto; }
.rvb-orn-flip { transform: scaleY(-1); }

.rvb-pg-title {
  font-family: var(--ff-d);
  font-size: clamp(16px,2.5vw,22px);
  font-weight: 700;
  color: #5a2e0a;
  letter-spacing: 0.08em;
}

.rvb-pg-auth {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(11px,1.3vw,13px);
  color: #8b5e1a; letter-spacing: 0.1em;
}

/* ── Story Text ── */
.rvb-story {
  position: relative; z-index: 2;
  padding: 8px 28px 16px;
  display: flex; flex-direction: column; gap: 6px;
}

/* Every story element hidden — JS reveals with stagger */
.rvb-story > * {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.rvb-story > *.rvb-line-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Drop cap first line */
.rvb-s-dropcap {
  font-family: var(--ff-b);
  font-size: clamp(15px,2vw,18px);
  color: #3a1a04;
  line-height: 1.6;
  padding-left: 52px;
  position: relative;
  min-height: 48px;
}

.rvb-s-dropcap::before {
  content: attr(data-dropcap);
  position: absolute; left: 0; top: -4px;
  font-family: var(--ff-d);
  font-size: clamp(42px,6vw,56px);
  line-height: 1;
  color: var(--rvb-rust);
  text-shadow: 2px 2px 0 rgba(139,58,26,0.2);
}

/* Regular lines */
.rvb-s-line {
  font-family: var(--ff-b); font-weight: 400;
  font-size: clamp(14px,1.8vw,17px);
  color: #3a1a04; line-height: 1.7;
  padding-left: 4px;
}

/* Quoted / italic lines */
.rvb-s-quote {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(13px,1.6vw,16px);
  color: #5a2e0a; line-height: 1.75;
  padding-left: 16px;
  border-left: 2px solid rgba(196,125,14,0.45) !important;
}

/* Dots divider */
.rvb-s-dots {
  font-family: var(--ff-b); font-size: 13px;
  color: rgba(139,94,26,0.5); letter-spacing: 0.25em;
  text-align: center; padding: 2px 0;
}

/* Final line emphasis */
.rvb-s-final {
  font-weight: 600;
  color: #5a2005 !important;
  font-style: italic;
}

/* Re-roll button */
.rvb-reroll-btn {
  align-self: center;
  margin: 4px 0 2px;
  position: relative; z-index: 2;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(139,58,26,0.4) !important;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--ff-a); font-style: italic;
  font-size: 12px; color: #8b5e1a;
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
}

.rvb-reroll-btn:hover {
  background: rgba(139,58,26,0.1);
  color: #5a2e0a;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT PANEL — Book Info
═══════════════════════════════════════════════════════════ */
.rvb-right-panel {
  display: flex; flex-direction: column;
  gap: clamp(22px,3.5vh,36px);
  opacity: 0; transform: translateX(32px);
  animation: rvbRightIn 1s 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes rvbRightIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ── 3D Book Cover ── */
.rvb-cover-wrap {
  position: relative;
  display: flex; justify-content: center;
  padding-bottom: 24px;
}

.rvb-book3d {
  position: relative;
  display: flex;
  animation: rvbBookFloat 6s ease-in-out infinite;
  cursor: pointer;
  transition: filter 0.3s;
}

.rvb-book3d:hover {
  filter: drop-shadow(0 0 24px rgba(232,168,32,0.35));
}

@keyframes rvbBookFloat {
  0%,100% { transform: translateY(0) rotateY(-5deg); }
  50%      { transform: translateY(-10px) rotateY(-2deg); }
}

/* Front face */
.rvb-book-front {
  width: clamp(150px,22vw,220px);
  position: relative; overflow: hidden;
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    0 0 0 1px rgba(232,168,32,0.15);
}

.rvb-cover-img {
  display: block; width: 100%; height: auto;
  object-fit: cover;
}

/* Fallback if image missing */
.rvb-cover-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #d4751a, #8b3a1a, #5a1e08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}

.rvb-cf-title {
  font-family: var(--ff-d); font-size: clamp(18px,3vw,26px);
  color: var(--rvb-gold-lt); text-align: center;
  line-height: 1.3; letter-spacing: 0.05em;
}

.rvb-cf-auth {
  font-family: var(--ff-a); font-style: italic;
  font-size: 12px; color: rgba(245,212,133,0.7);
}

/* Sheen on cover */
.rvb-cover-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(130deg,
    rgba(255,255,255,0.12) 0%, transparent 40%,
    transparent 60%, rgba(255,255,255,0.04) 100%);
}

/* Spine */
.rvb-book-spine {
  width: 22px;
  background: linear-gradient(90deg, #3d1808, #6a2e10, #3d1808);
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
  box-shadow: -2px 0 8px rgba(0,0,0,0.5);
}

.rvb-spine-txt {
  font-family: var(--ff-d);
  font-size: 8px; color: var(--rvb-gold-mid);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* Book shadow */
.rvb-book-shadow {
  position: absolute;
  bottom: -12px; left: 10%; right: 10%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
  filter: blur(6px);
}

/* Floating petal decoration */
.rvb-petal-deco {
  position: absolute;
  bottom: -8px; right: 20%;
  font-size: 22px;
  animation: rvbPetalSpin 8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes rvbPetalSpin {
  0%,100% { transform: rotate(-15deg) translateY(0); }
  50%      { transform: rotate(10deg) translateY(-8px); }
}

/* ── Book Meta ── */
.rvb-meta {
  display: flex; flex-direction: column; gap: 14px;
}

/* Badge */
.rvb-book-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-a); font-style: italic;
  font-size: 12px; color: var(--rvb-gold-mid);
  letter-spacing: 0.15em;
}

.rvb-bb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rvb-gold);
  box-shadow: 0 0 8px var(--rvb-gold);
  animation: rvbDotPulse 2s ease-in-out infinite;
}

@keyframes rvbDotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.5; }
}

/* Title block */
.rvb-title-block { display: flex; flex-direction: column; gap: 3px; }

.rvb-title-hi {
  font-family: var(--ff-h);
  font-size: clamp(26px,3.8vw,42px);
  font-weight: 900; color: var(--rvb-cream);
  line-height: 1.1; letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(232,168,32,0.2);
}

.rvb-title-en {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(13px,1.6vw,16px);
  color: var(--rvb-gold-mid); letter-spacing: 0.1em;
}

/* Author */
.rvb-meta-auth {
  font-family: var(--ff-b);
  font-size: clamp(13px,1.5vw,15px);
  color: var(--rvb-cream-d);
}

.rvb-auth-pre { font-style: italic; }
.rvb-auth-name { color: var(--rvb-gold-lt); font-weight: 600; }

/* Genre pills */
.rvb-genre-row { display: flex; flex-wrap: wrap; gap: 7px 9px; }

.rvb-gpill {
  font-family: var(--ff-b); font-size: clamp(11px,1.15vw,13px);
  letter-spacing: 0.08em; padding: 5px 13px;
  border: 1px solid rgba(232,168,32,0.28) !important;
  border-radius: 2px; background: rgba(232,168,32,0.05);
  color: var(--rvb-gold-lt); cursor: default;
  transition: background 0.28s, border-color 0.28s, box-shadow 0.28s;
}

.rvb-gpill:hover {
  background: rgba(232,168,32,0.13);
  border-color: var(--rvb-gold) !important;
  box-shadow: 0 0 10px var(--rvb-glow);
}

/* Book description */
.rvb-book-desc {
  display: flex; flex-direction: column; gap: 9px;
}

.rvb-book-desc p {
  font-family: var(--ff-b); font-weight: 300;
  font-size: clamp(14px,1.6vw,17px);
  color: var(--rvb-cream-d); line-height: 1.85;
}

.rvb-book-desc em { color: var(--rvb-gold-lt); font-weight: 400; }

/* Quote card */
.rvb-quote-card {
  position: relative;
  background: rgba(20,10,4,0.7);
  border-left: 2px solid var(--rvb-gold-dk) !important;
  border-radius: 0 2px 2px 0;
  padding: 16px 18px 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.rvb-qc-mark {
  position: absolute; top: -6px; left: 10px;
  font-family: var(--ff-h); font-size: 56px;
  color: var(--rvb-gold-dk); line-height: 1;
  opacity: 0.3;
}

.rvb-qc-text {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(13px,1.6vw,16px);
  color: var(--rvb-cream);
  line-height: 1.75;
  transition: opacity 0.4s ease;
}

.rvb-qc-cite {
  display: block; margin-top: 8px;
  font-family: var(--ff-b); font-style: normal;
  font-size: 11px; color: var(--rvb-gold-mid);
  letter-spacing: 0.08em;
  transition: opacity 0.4s ease;
}

.rvb-qc-dots {
  display: flex; gap: 6px; margin-top: 10px;
}

.rvb-qcd {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(232,168,32,0.25);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.rvb-qcd-on {
  background: var(--rvb-gold);
  transform: scale(1.35);
}

/* CTA row */
.rvb-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

.rvb-btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--rvb-gold-dk), var(--rvb-gold));
  border-radius: 2px;
  text-decoration: none; font-family: var(--ff-d);
  font-size: clamp(10px,1.2vw,12px); font-weight: 700;
  color: #120800; letter-spacing: 0.1em;
  overflow: hidden;
  transition: filter 0.3s, transform 0.3s;
}

.rvb-btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }

.rvb-btn-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.25), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}

.rvb-btn-primary:hover .rvb-btn-glow { opacity: 1; }

.rvb-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  border: 1px solid rgba(232,168,32,0.32) !important;
  border-radius: 2px; text-decoration: none;
  font-family: var(--ff-d); font-size: clamp(10px,1.2vw,12px);
  color: var(--rvb-gold-mid); letter-spacing: 0.08em;
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}

.rvb-btn-ghost:hover {
  border-color: var(--rvb-gold) !important; color: var(--rvb-gold-lt);
  background: rgba(232,168,32,0.07);
  box-shadow: 0 0 14px var(--rvb-glow);
}

/* Stats strip */
.rvb-stats-strip {
  display: flex; align-items: center; gap: clamp(14px,2.5vw,28px);
  padding-top: 10px;
  border-top: 1px solid rgba(232,168,32,0.12) !important;
}

.rvb-stat { display: flex; flex-direction: column; gap: 2px; }

.rvb-stat-n {
  font-family: var(--ff-d);
  font-size: clamp(16px,2.2vw,22px);
  font-weight: 700; color: var(--rvb-gold-lt); line-height: 1;
}

.rvb-stat-l {
  font-family: var(--ff-a); font-style: italic;
  font-size: clamp(9px,1vw,11px);
  color: var(--rvb-muted); white-space: nowrap;
}

.rvb-stat-sep {
  width: 1px; height: 30px;
  background: rgba(232,168,32,0.15);
}

/* ── Bottom ornament ── */
.rvb-bottom-orn {
  position: relative; z-index: 10;
  margin-top: clamp(40px,5vh,64px);
  padding: 0 clamp(20px,5vw,60px);
}

.rvb-bottom-orn svg { width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════
   LEAVES (JS-spawned .rvb-leaf elements)
═══════════════════════════════════════════════════════════ */
.rvb-leaf {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-size: 18px;
  opacity: 0;
  animation: rvbLeafFall linear forwards;
  z-index: 3;
  will-change: transform, opacity;
}

@keyframes rvbLeafFall {
  0%   { opacity: 0; transform: translate(0,0) rotate(var(--rvb-lr)) scale(var(--rvb-ls)); }
  5%   { opacity: 0.75; }
  90%  { opacity: 0.4; }
  100% { opacity: 0;
         transform: translate(var(--rvb-lx), var(--rvb-ly)) rotate(var(--rvb-lr2)) scale(var(--rvb-ls)); }
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */
@keyframes rvbFadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .rvb-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* On tablet/mobile, right panel comes first */
  .rvb-right-panel { order: -1; }

  .rvb-book-front { width: clamp(130px,38vw,180px); }

  .rvb-cover-wrap { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .rvb-hdr { flex-direction: column; gap: 10px; }
  .rvb-hdr-rule { display: none; }
  .rvb-title-hi { font-size: clamp(24px,8vw,34px); }
  .rvb-cta-row { flex-direction: column; align-items: stretch; }
  .rvb-btn-primary, .rvb-btn-ghost { justify-content: center; }
  .rvb-stats-strip { gap: 12px; }
  .rvb-story { padding: 8px 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rvb-section *,
  .rvb-section *::before,
  .rvb-section *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .rvb-open-page { display: flex !important; }
  .rvb-scroll-stage { display: none !important; }
  .rvb-story > * { opacity: 1 !important; transform: none !important; }
}
/*Second Section CSS By Rishabh Ends*/