/* ==========================================================================
   IMMORTALISATION — Design Tokens
   Signature motif: the runed archway/portal from the cover art recurs as
   the divider between every section, echoing the book's central image.
   ========================================================================== */

:root{
  /* Color */
  --void:        #070a14;   /* deepest background */
  --deep-blue:   #0f1730;   /* primary background */
  --storm:       #1b1436;   /* purple-blue storm */
  --storm-2:     #2a1f4d;   /* lighter storm accent */
  --portal:      #bfe8ff;   /* cold portal / sword glow */
  --portal-dim:  #7fb8d9;
  --gold:        #d4af6a;   /* aged gold accent */
  --gold-bright: #f2d38a;   /* bright ember gold */
  --ink:         #e9e6f2;   /* primary text */
  --ink-dim:     #a8a4c0;   /* secondary text */
  --ink-faint:   #6c6890;   /* tertiary / captions */
  --glass:       rgba(20, 24, 48, 0.45);
  --glass-brd:   rgba(212, 175, 106, 0.18);
  --line:        rgba(212, 175, 106, 0.16);

  /* Type */
  --font-display: 'Cinzel', serif;
  --font-accent:  'Cormorant Garamond', serif;
  --font-body:    'Manrope', sans-serif;

  /* Scale */
  --fs-hero: clamp(2.6rem, 6vw, 5.2rem);
  --fs-h2:   clamp(2rem, 4vw, 3.2rem);
  --fs-h3:   clamp(1.3rem, 2.4vw, 1.8rem);

  /* Layout */
  --max-w: 1240px;
  --gap: 24px;
  --radius: 18px;
  --radius-sm: 10px;

  /* Motion */
  --ease-soft: cubic-bezier(.22,.68,.32,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .9s;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ margin:0; font-family: var(--font-display); font-weight:600; letter-spacing:.02em; }
p{ margin:0; }
section{ position:relative; }

::selection{ background: var(--gold); color: var(--void); }

/* Custom scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--void); }
::-webkit-scrollbar-thumb{
  background: linear-gradient(var(--gold), var(--storm-2));
  border-radius: 10px;
  border: 2px solid var(--void);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before{
  content:'';
  width: 26px; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head{
  max-width: 640px;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.section-head h2{
  margin-top: .5rem;
  font-size: var(--fs-h2);
  color: var(--ink);
}
.section-head .lede{
  margin-top: 1rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-dim);
}

/* ==========================================================================
   Ambient background layers (shared: stars / fog / vignette)
   ========================================================================== */
.bg-fixed{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(45,31,71,.55), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(20,25,60,.6), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--deep-blue) 50%, var(--void) 100%);
}
#stars-canvas{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Cursor glow */
#cursor-glow{
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(191,232,255,.08), transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .4s;
  will-change: transform;
  mix-blend-mode: screen;
}
@media (hover:none){ #cursor-glow{ display:none; } }

/* ==========================================================================
   Loader — animated book opening
   ========================================================================== */
#loader{
  position: fixed; inset:0; z-index: 999;
  display:flex; align-items:center; justify-content:center;
  background: var(--void);
  transition: opacity .8s var(--ease-soft), visibility .8s;
}
#loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-book{
  position:relative;
  width: 140px; height: 100px;
  perspective: 800px;
}
.loader-book .cover{
  position:absolute; top:0; bottom:0; width:70px;
  background: linear-gradient(135deg, var(--storm-2), var(--deep-blue));
  border: 1px solid var(--glass-brd);
  box-shadow: 0 0 40px rgba(191,232,255,.25);
}
.loader-book .cover.left{ left:0; border-radius: 4px 0 0 4px; transform-origin: right center; animation: coverOpenLeft 2.2s var(--ease-soft) infinite; }
.loader-book .cover.right{ right:0; border-radius: 0 4px 4px 0; transform-origin: left center; animation: coverOpenRight 2.2s var(--ease-soft) infinite; }
.loader-book .glow{
  position:absolute; left:50%; top:50%; width: 10px; height:10px;
  background: var(--gold-bright);
  border-radius:50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 30px 12px rgba(242,211,138,.55);
  animation: pageGlow 2.2s ease-in-out infinite;
}
@keyframes coverOpenLeft{
  0%,100%{ transform: rotateY(0deg); }
  50%{ transform: rotateY(-130deg); }
}
@keyframes coverOpenRight{
  0%,100%{ transform: rotateY(0deg); }
  50%{ transform: rotateY(130deg); }
}
@keyframes pageGlow{
  0%,100%{ opacity:.3; transform: translate(-50%,-50%) scale(.7); }
  50%{ opacity:1; transform: translate(-50%,-50%) scale(1.4); }
}
.loader-title{
  position:absolute;
  bottom: -46px; left:50%; transform: translateX(-50%);
  font-family: var(--font-display);
  letter-spacing: .3em;
  font-size: .8rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Scroll progress bar */
#scroll-progress{
  position: fixed; top:0; left:0; height: 3px;
  background: linear-gradient(90deg, var(--portal), var(--gold-bright));
  box-shadow: 0 0 12px rgba(242,211,138,.6);
  z-index: 950;
  width: 0%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#site-nav{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  padding: 22px 0;
  transition: padding .4s var(--ease-soft), background .4s, backdrop-filter .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#site-nav.scrolled{
  padding: 12px 0;
  background: rgba(9,12,25,.65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-brd);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  max-width: var(--max-w); margin:0 auto; padding: 0 clamp(20px,5vw,48px);
}
.brand{
  display:flex; align-items:center; gap:.7em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--ink);
}
.brand svg{ width:30px; height:30px; }
.brand small{
  display:block; font-family: var(--font-body); font-size:.6rem;
  letter-spacing:.3em; color: var(--gold); font-weight:600;
}

.nav-links{
  display:flex; gap: 2.4rem;
}
.nav-links a{
  position:relative;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color .3s;
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0; height:1px; width:0;
  background: linear-gradient(90deg, var(--gold), var(--portal));
  transition: width .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

.nav-cta{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  padding: .7em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  color: var(--gold-bright);
  background: rgba(212,175,106,.06);
  transition: all .35s var(--ease-out);
}
.nav-cta:hover{ background: rgba(212,175,106,.16); box-shadow: 0 0 24px rgba(212,175,106,.25); transform: translateY(-1px); }

.hamburger{
  display:none;
  flex-direction:column; gap:5px;
  width: 30px; background:none; border:none; padding:6px;
  z-index: 510;
}
.hamburger span{
  display:block; height:2px; width:100%; background: var(--gold-bright);
  transition: transform .35s var(--ease-out), opacity .35s;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

#mobile-menu{
  position: fixed; inset:0; z-index: 480;
  background: rgba(7,10,20,.97);
  backdrop-filter: blur(20px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 2rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-soft);
}
#mobile-menu.open{ transform: translateY(0); }
#mobile-menu a{
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing:.08em; color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */
#hero{
  min-height: 100svh;
  display:flex; align-items:center;
  position:relative;
  overflow: hidden;
  padding-top: 90px;
}
.hero-grid{
  max-width: var(--max-w); margin:0 auto; width:100%;
  padding: 0 clamp(20px,5vw,48px);
  display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,60px);
  align-items:center;
}
.hero-copy .eyebrow{ margin-bottom: 1.4rem; }
.hero-copy h1{
  font-size: var(--fs-hero);
  line-height: 1.08;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(191,232,255,.15);
}
.hero-copy h1 .accent{
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--portal));
  -webkit-background-clip: text; background-clip:text; color:transparent;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer{ to{ background-position: 200% center; } }

.hero-copy .sub{
  margin-top: 1.6rem;
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 46ch;
}
.hero-actions{
  margin-top: 2.6rem;
  display:flex; flex-wrap:wrap; gap: 1rem;
}

/* Magnetic / ripple buttons */
.btn{
  position: relative;
  overflow:hidden;
  display:inline-flex; align-items:center; gap:.6em;
  padding: 1em 2em;
  font-size: .82rem;
  letter-spacing:.14em;
  text-transform: uppercase;
  border-radius: 999px;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.btn-primary{
  color: var(--void);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 60%, var(--portal));
  background-size: 220% auto;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(212,175,106,.25);
}
.btn-primary:hover{ background-position: right center; transform: translateY(-3px); box-shadow: 0 14px 40px rgba(212,175,106,.4); }
.btn-ghost{
  color: var(--ink);
  border: 1px solid var(--glass-brd);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{ border-color: var(--gold); box-shadow: 0 0 24px rgba(212,175,106,.18); transform: translateY(-3px); }
.ripple{
  position:absolute; border-radius:50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: rippleAnim .7s var(--ease-out);
  pointer-events:none;
}
@keyframes rippleAnim{ to{ transform: scale(3); opacity:0; } }

/* Hero visual / book stage */
.hero-visual{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  perspective: 1200px;
}
.book-glow{
  position:absolute;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(191,232,255,.28), rgba(120,90,200,.14) 45%, transparent 70%);
  filter: blur(6px);
  animation: glowPulse 5s ease-in-out infinite;
  z-index:0;
}
@keyframes glowPulse{ 0%,100%{ opacity:.7; transform: scale(1); } 50%{ opacity:1; transform: scale(1.08); } }

.book-frame{
  position: relative;
  z-index: 2;
  width: min(380px, 82vw);
  border-radius: 14px;
  overflow:hidden;
  transform-style: preserve-3d;
  animation: floatBook 6s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(212,175,106,.25), 0 0 60px rgba(191,232,255,.12);
  will-change: transform;
}
.book-frame img{ width:100%; }
@keyframes floatBook{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-18px); }
}

.hero-particles, .hero-fog{ position:absolute; inset:-10%; z-index:1; pointer-events:none; }
.particle{
  position:absolute;
  width: 3px; height:3px;
  border-radius:50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px 2px rgba(242,211,138,.7);
  animation: floatParticle linear infinite;
  opacity:.8;
}
@keyframes floatParticle{
  0%{ transform: translateY(0) translateX(0); opacity:0; }
  10%{ opacity:.9; }
  90%{ opacity:.6; }
  100%{ transform: translateY(-140px) translateX(20px); opacity:0; }
}
.fog-layer{
  position:absolute; bottom:-10%; left:-20%;
  width: 140%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(120,100,180,.18), transparent 70%);
  filter: blur(20px);
  animation: fogDrift 14s ease-in-out infinite alternate;
}
.fog-layer.f2{ animation-duration: 20s; opacity:.6; bottom:-20%; }
@keyframes fogDrift{
  from{ transform: translateX(-4%) scale(1); }
  to{ transform: translateX(4%) scale(1.05); }
}

.clouds{
  position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.5;
}
.cloud{
  position:absolute;
  width: 320px; height:120px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 70%);
  filter: blur(10px);
  animation: cloudMove linear infinite;
}
@keyframes cloudMove{
  from{ transform: translateX(-20vw); }
  to{ transform: translateX(120vw); }
}

.scroll-cue{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.5em;
  color: var(--ink-faint);
  font-size:.7rem; letter-spacing:.22em; text-transform:uppercase;
}
.scroll-cue .stem{
  width:1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue{ 0%,100%{ opacity:.2; } 50%{ opacity:1; } }

/* Sticky buy now pill */
#sticky-buy{
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 400;
  transform: translateY(140%);
  transition: transform .5s var(--ease-soft);
}
#sticky-buy.show{ transform: translateY(0); }

/* ==========================================================================
   Portal Divider — signature element (echoes the archway in the cover art)
   ========================================================================== */
.portal-divider{
  display:flex; align-items:center; justify-content:center;
  padding: 10px 0;
  opacity:.85;
}
.portal-divider svg{ width: 120px; height:auto; }
.portal-divider .arch-line{ stroke: var(--gold); stroke-width:1; fill:none; opacity:.6; }
.portal-divider .arch-glow{ fill: var(--portal); filter: drop-shadow(0 0 8px var(--portal)); }

/* ==========================================================================
   Reveal-on-scroll utility classes
   ========================================================================== */
[data-reveal]{
  opacity:0;
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
  transition-delay: var(--rd, 0s);
}
[data-reveal="up"]{ transform: translateY(50px); }
[data-reveal="left"]{ transform: translateX(-60px); }
[data-reveal="right"]{ transform: translateX(60px); }
[data-reveal="zoom"]{ transform: scale(.85); }
[data-reveal="scale"]{ transform: scale(.92); }
[data-reveal="rotate"]{ transform: rotate(-4deg) translateY(30px); }
[data-reveal].in-view{
  opacity:1;
  transform: translate(0,0) scale(1) rotate(0);
}

/* ==========================================================================
   About the Book
   ========================================================================== */
#about-book{ padding: clamp(80px,10vw,140px) 0; }
.book-layout{
  display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px,6vw,80px);
  align-items:start;
}
.book-cover-wrap{ position:relative; }
.book-cover-card{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px var(--glass-brd);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.book-cover-card:hover{ transform: translateY(-8px) rotateZ(-.6deg); box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 40px rgba(191,232,255,.2); }
.deco-orb{
  position:absolute; border-radius:50%;
  background: radial-gradient(circle, rgba(212,175,106,.5), transparent 70%);
  filter: blur(6px);
  animation: orbFloat 8s ease-in-out infinite;
}
.deco-orb.o1{ width:60px; height:60px; top:-20px; right:-16px; animation-delay:0s;}
.deco-orb.o2{ width:36px; height:36px; bottom:20%; left:-24px; animation-delay:2s; background: radial-gradient(circle, rgba(191,232,255,.5), transparent 70%);}
.deco-orb.o3{ width:22px; height:22px; bottom:-14px; right:20%; animation-delay:4s;}
@keyframes orbFloat{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-16px); } }

.book-desc h2{ font-size: var(--fs-h2); margin-bottom:1.2rem; position:relative; display:inline-block; }
.book-desc h2::after{
  content:'';
  position:absolute; left:0; bottom:-10px; height:2px; width:0%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 1.2s var(--ease-out);
}
.book-desc.in-view h2::after{ width:100%; }
.book-desc p{ color: var(--ink-dim); max-width: 62ch; margin-bottom: 1.6rem; }

.meta-grid{
  display:grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 14px;
  margin: 2rem 0 2.6rem;
}
.meta-item{
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  transition: border-color .3s, transform .3s;
}
.meta-item:hover{ border-color: var(--gold); transform: translateY(-3px); }
.meta-item .label{ font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color: var(--gold); display:block; margin-bottom:6px; }
.meta-item .value{ font-family: var(--font-display); font-size:1rem; color: var(--ink); }

/* Timeline */
.timeline{
  position:relative;
  margin-top: 3rem;
  padding-left: 34px;
}
.timeline::before{
  content:'';
  position:absolute; left:9px; top:6px; bottom:6px; width:1px;
  background: linear-gradient(var(--gold), transparent 90%);
}
.timeline-step{ position:relative; padding-bottom: 2.4rem; }
.timeline-step:last-child{ padding-bottom:0; }
.timeline-step::before{
  content:'';
  position:absolute; left:-34px; top:2px;
  width:18px; height:18px; border-radius:50%;
  background: var(--void);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,106,.08);
}
.timeline-step.in-view::before{ animation: dotGlow 1.6s var(--ease-soft); }
@keyframes dotGlow{ 0%{ box-shadow:0 0 0 0 rgba(242,211,138,.7);} 100%{ box-shadow:0 0 0 10px rgba(242,211,138,0);} }
.timeline-step h4{ font-size:1.05rem; color: var(--ink); margin-bottom:.35rem; }
.timeline-step p{ color: var(--ink-dim); font-size:.94rem; max-width:52ch; }

/* ==========================================================================
   Buy the Book
   ========================================================================== */
#buy-book{ padding: clamp(80px,10vw,140px) 0; }
.buy-layout{
  display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px,6vw,80px);
  align-items:start;
}
.buy-cover{ position:relative; }
.buy-card{
  padding: clamp(26px,3vw,44px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
}
.buy-card h3{ font-size: var(--fs-h3); margin: .5rem 0 .6rem; color: var(--ink); }
.buy-desc{ color: var(--ink-dim); font-size: .92rem; margin-bottom: 1.6rem; }

.price-row{
  display:flex; align-items:baseline; gap: .8rem; flex-wrap:wrap;
  margin-bottom: 1.4rem;
}
.price{
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-bright);
}
.price-old{
  font-size: 1.1rem;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.price-tag{
  font-size: .68rem; letter-spacing:.12em; text-transform:uppercase;
  padding: .4em .8em; border-radius:999px;
  border: 1px solid var(--glass-brd);
  color: var(--portal);
  background: rgba(191,232,255,.06);
}

.buy-points{ margin: 0 0 2rem; padding:0; list-style:none; }
.buy-points li{
  position:relative; padding-left: 1.6em; margin-bottom: .7em;
  color: var(--ink-dim); font-size: .92rem;
}
.buy-points li::before{
  content:'';
  position:absolute; left:0; top:.5em;
  width:8px; height:8px; border-radius:50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,106,.6);
}

.razorpay-wrap{
  margin-bottom: 1.8rem;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--glass-brd);
  background: rgba(255,255,255,.02);
}
.razorpay-wrap form{ display:flex; justify-content:center; min-height: 44px; }
.razorpay-fallback{
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--ink-faint);
  text-align:center;
}
.razorpay-fallback a{ color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.trust-row{
  display:flex; flex-wrap:wrap; gap: 1.4rem;
}
.trust-row span{
  display:inline-flex; align-items:center; gap:.5em;
  font-size: .78rem; color: var(--ink-faint);
}
.trust-row svg{ width:16px; height:16px; color: var(--gold); flex-shrink:0; }

/* ==========================================================================
   About the Author
   ========================================================================== */
#about-author{ padding: clamp(80px,10vw,140px) 0; }
.author-layout{
  display:grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px,6vw,80px);
  align-items:center;
}
.author-card{
  position:relative;
  padding: 3px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(212,175,106,.35), rgba(191,232,255,.12));
}
.author-card-inner{
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  padding: clamp(24px,3vw,40px);
  text-align:center;
  transition: box-shadow .4s;
}
.author-card:hover .author-card-inner{ box-shadow: 0 0 60px rgba(212,175,106,.2); }
.author-photo{
  width: 150px; height:150px; border-radius:50%;
  margin: 0 auto 1.4rem;
  background: linear-gradient(160deg, var(--storm-2), var(--deep-blue));
  border: 1px solid var(--glass-brd);
  display:flex; align-items:center; justify-content:center;
  animation: floatBook 7s ease-in-out infinite;
  overflow:hidden;
}
.author-photo svg{ width: 60%; opacity:.65; }
.author-name{ font-size:1.3rem; color: var(--ink); }
.author-role{ margin-top:.4rem; font-size:.78rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gold); }
.author-signature{
  margin-top: 1.6rem;
  height: 46px;
}
.author-signature path{
  fill:none; stroke: var(--gold-bright); stroke-width:2; stroke-linecap:round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
}
.author-card.in-view .author-signature path{
  animation: signDraw 2.4s var(--ease-out) forwards .3s;
}
@keyframes signDraw{ to{ stroke-dashoffset:0; } }

.author-socials{ display:flex; justify-content:center; gap:.9rem; margin-top:1.6rem; }
.social-btn{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--glass-brd);
  color: var(--ink-dim);
  transition: all .3s var(--ease-out);
}
.social-btn:hover{ color: var(--void); background: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(212,175,106,.35); }
.social-btn svg{ width:16px; height:16px; }

.author-bio h2{ font-size: var(--fs-h2); margin-bottom:1.2rem; }
.author-bio p{ color: var(--ink-dim); max-width: 60ch; margin-bottom:1.1rem; }
.author-bio p:last-child{ margin-bottom:0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
#gallery{ padding: clamp(80px,10vw,140px) 0; }
.masonry{
  columns: 3 240px;
  column-gap: 18px;
}
.masonry-item{
  break-inside: avoid;
  margin-bottom: 18px;
  position:relative;
  border-radius: var(--radius-sm);
  overflow:hidden;
  cursor: pointer;
  border: 1px solid var(--glass-brd);
}
.masonry-item .ph{
  width:100%;
  display:flex; align-items:center; justify-content:center;
  aspect-ratio: var(--ar, 1/1);
  background: linear-gradient(150deg, var(--storm-2), var(--deep-blue));
  transition: transform .6s var(--ease-out);
  color: var(--ink-faint);
}
.masonry-item .ph svg{ width:34%; opacity:.5; }
.masonry-item:hover .ph{ transform: scale(1.08) rotate(-.6deg); }
.masonry-caption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(7,10,20,.9), transparent);
  transform: translateY(100%);
  transition: transform .4s var(--ease-out);
}
.masonry-item:hover .masonry-caption{ transform: translateY(0); }
.masonry-caption .tag{ font-size:.65rem; letter-spacing:.16em; text-transform:uppercase; color: var(--gold); }
.masonry-caption .title{ font-size:.9rem; color: var(--ink); margin-top:2px; }

#lightbox{
  position: fixed; inset:0; z-index: 800;
  display:flex; align-items:center; justify-content:center;
  background: rgba(4,5,12,.92);
  backdrop-filter: blur(10px);
  opacity:0; visibility:hidden;
  transition: opacity .4s var(--ease-soft), visibility .4s;
}
#lightbox.open{ opacity:1; visibility:visible; }
.lightbox-box{
  width: min(560px, 86vw);
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--storm-2), var(--deep-blue));
  border: 1px solid var(--glass-brd);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 1rem;
  transform: scale(.85);
  transition: transform .4s var(--ease-soft);
}
#lightbox.open .lightbox-box{ transform: scale(1); }
.lightbox-box svg{ width: 60px; opacity:.6; }
.lightbox-box .cap{ color: var(--ink-dim); font-size:.85rem; letter-spacing:.05em; }
#lightbox-close{
  position:absolute; top: 26px; right: clamp(20px,5vw,48px);
  width:44px; height:44px; border-radius:50%;
  border:1px solid var(--glass-brd); background: rgba(255,255,255,.03);
  color: var(--ink); font-size:1.2rem;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-nav{
  position:absolute; top:50%; transform: translateY(-50%);
  width:46px; height:46px; border-radius:50%;
  border:1px solid var(--glass-brd); background: rgba(255,255,255,.03);
  color: var(--ink); display:flex; align-items:center; justify-content:center;
}
#lightbox-prev{ left: clamp(10px,4vw,40px); }
#lightbox-next{ right: clamp(10px,4vw,40px); }

/* ==========================================================================
   Contact
   ========================================================================== */
#contact{ padding: clamp(80px,10vw,140px) 0; }
.contact-layout{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px);
}
.contact-form{
  padding: clamp(24px,3vw,40px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
}
.field{ position:relative; margin-bottom: 1.8rem; }
.field input, .field textarea{
  width:100%;
  background: transparent;
  border:none; border-bottom: 1px solid var(--glass-brd);
  padding: 12px 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .3s;
}
.field textarea{ resize: vertical; min-height: 90px; }
.field label{
  position:absolute; left:2px; top:12px;
  color: var(--ink-faint);
  font-size:1rem;
  pointer-events:none;
  transition: all .25s var(--ease-out);
}
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--gold); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label{
  top: -14px; font-size:.7rem; letter-spacing:.1em; color: var(--gold);
  text-transform: uppercase;
}
.field .err{
  display:block; margin-top:6px; font-size:.75rem; color:#e39494; min-height: 1em;
}
.btn-send{
  width:100%; justify-content:center;
  border:none;
}
.form-note{
  margin-top: 1rem; font-size: .85rem; color: var(--ink-faint); text-align:center; min-height:1.2em;
  transition: background .2s, border-color .2s;
}
.form-note:empty{ display:none; }
.form-note.success{
  color: var(--gold-bright); font-weight: 600; font-size: .98rem;
  background: linear-gradient(180deg, rgba(111,207,151,.12), rgba(212,175,106,.06));
  border: 1px solid rgba(212,175,106,.4);
  border-radius: 12px; padding: 15px 18px;
}
.form-note.success::before{ content:'✓ '; color:#6fcf97; font-weight:700; }
.form-note.error{
  color: #e79a9a;
  background: rgba(224,117,117,.08);
  border: 1px solid rgba(224,117,117,.3);
  border-radius: 12px; padding: 13px 16px;
}

.contact-side .info-card{
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  margin-bottom: 18px;
  display:flex; gap: 14px; align-items:flex-start;
}
.info-card svg{ width:22px; height:22px; color: var(--gold); flex-shrink:0; margin-top:2px; }
.info-card h4{ font-size:.95rem; color: var(--ink); margin-bottom:2px; }
.info-card p{ color: var(--ink-dim); font-size:.88rem; }

.map-placeholder{
  margin-top: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd);
  height: 200px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(150deg, var(--storm-2), var(--deep-blue));
  display:flex; align-items:center; justify-content:center;
}
.map-placeholder::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(212,175,106,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,106,.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.map-placeholder span{ position:relative; color: var(--ink-faint); font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer{
  position:relative;
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  overflow:hidden;
}
.footer-stars{ position:absolute; inset:0; pointer-events:none; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p{ color: var(--ink-faint); margin-top: 1rem; max-width: 34ch; font-size:.9rem; }
.footer-col h5{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a{ display:block; color: var(--ink-dim); font-size:.9rem; margin-bottom:.7rem; transition: color .3s; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-socials{ display:flex; gap:.8rem; margin-top: 1rem; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size:.8rem;
}
#back-to-top{
  width:42px; height:42px; border-radius:50%;
  border: 1px solid var(--glass-brd);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
  transition: all .3s var(--ease-out);
}
#back-to-top:hover{ background: var(--gold); color: var(--void); transform: translateY(-4px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .hamburger{ display:flex; }
  .hero-grid{ grid-template-columns: 1fr; text-align:center; }
  .hero-actions{ justify-content:center; }
  .hero-copy .sub{ margin-left:auto; margin-right:auto; }
  .hero-visual{ order:-1; margin-bottom: 20px; }
  .book-layout, .buy-layout, .author-layout, .contact-layout{ grid-template-columns: 1fr; }
  .author-layout{ text-align:center; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .masonry{ columns: 2 160px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .meta-grid{ grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   BUY NOW MODAL
   ========================================================================== */
.buy-action{ margin-top: 6px; }
.buy-action .btn{ width: 100%; }

.buy-modal{
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.buy-modal.open{ display: flex; }
.buy-modal-overlay{
  position: absolute; inset: 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bmFade .25s ease;
}
.buy-modal-panel{
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #141a33 0%, #0f1730 100%);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(212,175,106,.08) inset;
  padding: 30px 30px 26px;
  animation: bmRise .32s cubic-bezier(.2,.8,.2,1);
}
@keyframes bmFade{ from{ opacity:0 } to{ opacity:1 } }
@keyframes bmRise{ from{ opacity:0; transform: translateY(18px) scale(.98) } to{ opacity:1; transform:none } }

.buy-modal-close{
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--ink-dim); font-size: 22px; line-height: 1;
  cursor: pointer; transition: .2s;
}
.buy-modal-close:hover{ color: var(--gold-bright); border-color: var(--gold); background: rgba(212,175,106,.1); }

.buy-modal-head{ text-align: center; margin-bottom: 20px; }
.buy-modal-head h3{
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--ink); margin: 4px 0 6px;
}
.buy-modal-price{ color: var(--gold-bright); font-size: .95rem; letter-spacing: .02em; }

.buy-form{ display: flex; flex-direction: column; gap: 14px; }
.bf-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bf-row-3{ grid-template-columns: 1fr 1fr 1fr; }
.bf-field{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bf-field label{
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 600;
}
.bf-field .req{ color: var(--gold); }

.bf-field input,
.bf-field select,
.bf-field textarea{
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--ink); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bf-field textarea{ resize: vertical; min-height: 52px; }
.bf-field select{
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8a4c0' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px; cursor: pointer;
}
.bf-field select option{ background: #141a33; color: var(--ink); }
.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,106,.15);
  background: rgba(255,255,255,.06);
}
.bf-field input::placeholder,
.bf-field textarea::placeholder{ color: var(--ink-faint); }
.bf-field .invalid{ border-color: #e07575 !important; box-shadow: 0 0 0 3px rgba(224,117,117,.14) !important; }

.bf-err{ color: #e79a9a; font-size: .76rem; min-height: 0; }
.bf-err:empty{ display: none; }

/* ---- Searchable select (combobox) ---- */
.ss{ position: relative; }
.ss-input{
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 34px 11px 13px;
  color: var(--ink); font-family: var(--font-body); font-size: .95rem;
  cursor: text;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8a4c0' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ss-input:focus{
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,106,.15);
  background-color: rgba(255,255,255,.06);
}
.ss-input::placeholder{ color: var(--ink-faint); }
.ss-input.invalid{ border-color: #e07575 !important; box-shadow: 0 0 0 3px rgba(224,117,117,.14) !important; }

.ss-panel{
  display: none;
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 220px; overflow-y: auto;
  background: #141a33;
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  padding: 4px;
}
.ss.open .ss-panel{ display: block; }
.ss-opt{
  padding: 9px 11px; border-radius: 7px; font-size: .92rem; color: var(--ink);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-opt:hover, .ss-opt.active{ background: rgba(212,175,106,.14); color: var(--gold-bright); }
.ss-empty{ padding: 10px 11px; font-size: .86rem; color: var(--ink-faint); }
.ss-input:disabled{ opacity: .55; cursor: not-allowed; }
/* thin scrollbar for the panel */
.ss-panel::-webkit-scrollbar{ width: 8px; }
.ss-panel::-webkit-scrollbar-thumb{ background: rgba(212,175,106,.25); border-radius: 8px; }

.bf-submit{
  margin-top: 6px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.bf-submit .bf-spinner{
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.25); border-top-color: rgba(0,0,0,.7);
  display: none; animation: bfSpin .7s linear infinite;
}
.bf-submit.loading{ opacity: .8; cursor: progress; }
.bf-submit.loading .bf-spinner{ display: inline-block; }
@keyframes bfSpin{ to{ transform: rotate(360deg) } }

.bf-note{ text-align: center; font-size: .9rem; color: var(--ink-dim); min-height: 0; margin-top: 2px; }
.bf-note:empty{ display: none; }
.bf-note.ok{ color: var(--gold-bright); }
.bf-note.err{ color: #e79a9a; }

@media (max-width: 520px){
  .buy-modal-panel{ padding: 26px 18px 22px; border-radius: 16px; }
  .bf-row, .bf-row-3{ grid-template-columns: 1fr; }
}

/* ---- Order success modal ---- */
.success-panel{ text-align: center; max-width: 460px; }
.success-check{
  width: 78px; height: 78px; margin: 4px auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(111,207,151,.28), rgba(111,207,151,.08));
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(111,207,151,.35), 0 0 40px rgba(111,207,151,.25);
}
.success-check svg{ width: 52px; height: 52px; }
.success-check circle{ stroke: #6fcf97; stroke-width: 2.5; opacity: .5;
  stroke-dasharray: 151; stroke-dashoffset: 151; animation: scDraw .5s ease forwards; }
.success-check path{ stroke: #6fcf97; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: scDraw .4s .35s ease forwards; }
@keyframes scDraw{ to{ stroke-dashoffset: 0; } }

.success-head h3{ font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin: 0 0 8px; }
.success-sub{ color: var(--ink-dim); font-size: .96rem; margin: 0 0 4px; }
.success-sub strong{ color: var(--gold-bright); font-weight: 600; }
.success-order{ color: var(--ink-faint); font-size: .82rem; letter-spacing: .03em; margin: 6px 0 0; }

.ship-card{
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0 16px;
}
.ship-card-title{
  display: flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  margin-bottom: 10px;
}
.ship-card-title svg{ width: 18px; height: 18px; }
.ship-name{ font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.ship-phone{ color: var(--ink-dim); font-size: .9rem; margin-top: 2px; }
.ship-address{ color: var(--ink-dim); font-size: .9rem; margin-top: 8px; line-height: 1.5; }

.success-note{ color: var(--ink-faint); font-size: .84rem; line-height: 1.55; margin: 0 0 20px; }
.success-note strong{ color: var(--ink-dim); }
.success-contact{ font-size: .86rem; color: var(--ink-dim); margin: 0 0 18px; }
.success-contact a{ color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(242,211,138,.4); }
.success-contact a:hover{ border-bottom-color: var(--gold-bright); }
.success-done{ width: 100%; }
