/* =========================================================
   THE SECOND BIRTH — Author Website
   Theme derived from the book cover:
   charcoal black · antique gold · cream serif
   ========================================================= */

:root {
  --ink:        #100f0d;   /* deepest background       */
  --coal:       #161412;   /* page background          */
  --panel:      #1c1a17;   /* raised panels            */
  --line:       rgba(201, 168, 106, .22); /* hairline gold */
  --gold:       #c9a86a;
  --gold-bright:#e8cd92;
  --gold-dim:   #8a7350;
  --cream:      #ece5d8;
  --muted:      #9a9184;
  --serif-display: "Cormorant Garamond", serif;
  --serif-body:    "EB Garamond", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--coal);
  color: var(--cream);
  font-family: var(--serif-body);
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3a342a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-mark {
  display: flex; align-items: center; gap: 1.2rem;
  justify-content: center;
}
.preloader-monogram {
  font-family: var(--serif-display);
  font-size: 2.4rem;
  letter-spacing: .18em;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(201,168,106,.5);
}
.preloader-line {
  height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.preloader-line:last-child { transform: scaleX(-1); }
.preloader-text {
  margin-top: 1rem;
  font-family: var(--serif-body);
  font-size: .78rem;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--muted);
  text-transform: uppercase;
}
.preloader-bar {
  margin: 1.6rem auto 0;
  width: 220px; height: 1px;
  background: rgba(201,168,106,.15);
  overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.4rem 0;
  transition: background .45s var(--ease), padding .45s var(--ease),
              box-shadow .45s var(--ease), opacity .5s;
  opacity: 0; /* revealed by GSAP after preload */
}
#site-header.scrolled {
  /* NOTE: no backdrop-filter here — it creates a containing block that
     traps the fixed-position mobile menu overlay inside the header,
     breaking the responsive menu. */
  background: rgba(14, 13, 11, .94);
  padding: .8rem 0;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(0,0,0,.45);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark {
  font-family: var(--serif-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--cream);
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.nav-list { display: flex; gap: 2.2rem; }
.nav-cta { display: none; } /* mobile-menu-only CTA (shown ≤992px) */
.nav-list a {
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: .35rem 0;
  transition: color .3s;
}
.nav-list a::after {
  content: ""; position: absolute;
  left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.nav-list a:hover, .nav-list a.active { color: var(--gold-bright); }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--serif-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .95em 2.2em;
  border: 1px solid var(--gold-dim);
  position: relative;
  overflow: hidden;
  transition: color .35s, border-color .35s, box-shadow .35s, transform .35s;
  cursor: pointer;
  background: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  transform: translateX(-101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn-gold {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
}
.btn-gold:hover {
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 10px 34px rgba(201,168,106,.28);
  transform: translateY(-2px);
}
.btn-gold:hover::before { transform: translateX(0); }
.btn-ghost { color: var(--cream); border-color: rgba(236,229,216,.22); }
.btn-ghost:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 10px 34px rgba(201,168,106,.15);
  transform: translateY(-2px);
}
.btn-wide { width: 100%; text-align: center; }
.btn-nav { padding: .7em 1.6em; }

/* Mobile toggle (hamburger) */
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  width: 46px; height: 42px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  transition: border-color .3s;
}
#nav-toggle:hover { border-color: rgba(201,168,106,.35); }
#nav-toggle:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
#nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: transform .45s var(--ease), opacity .3s, width .45s var(--ease);
}
#nav-toggle span:nth-child(1) { width: 26px; }
#nav-toggle span:nth-child(2) { width: 20px; }
#nav-toggle span:nth-child(3) { width: 26px; }
#nav-toggle:hover span:nth-child(2) { width: 26px; }
/* morph into X */
#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); width: 26px; }
#nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 26px; }

/* Menu open → lock page scroll */
body.menu-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding: 9rem 0 6rem;
  perspective: 1200px;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 75% 35%, rgba(201,168,106,.07), transparent 60%),
    linear-gradient(180deg, #0d0c0a 0%, var(--coal) 55%, #131110 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  top: 50%; left: 68%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,205,146,.14) 0%, transparent 62%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { opacity: .8; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;  transform: translate(-50%,-50%) scale(1.08); }
}
.hero-ring {
  position: absolute;
  top: 50%; left: 68%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(201,168,106,.12);
  border-radius: 50%;
}
.ring-1 { width: 560px; height: 560px; animation: spin 60s linear infinite; }
.ring-2 { width: 760px; height: 760px; border-style: dashed; border-color: rgba(201,168,106,.07); animation: spin 120s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-vline {
  position: absolute;
  top: 0; bottom: 0; left: 68%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,168,106,.28), transparent);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(3.6rem, 9vw, 7.6rem);
  line-height: .98;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line em { font-style: italic; font-weight: 400; }
.gold-gradient {
  background: linear-gradient(100deg, #7d6842 0%, #e8cd92 30%, #fdf3d7 48%, #c9a86a 70%, #6e5c3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(201,168,106,.28));
}

/* "Birth" — recreated from the book cover lettering:
   left side (B, I) is eroded — the glyphs themselves are built from
   dense horizontal gold scratch-lines on the dark background;
   right side (…RTH) is smooth pale-champagne foil,
   with a bright glow spot near the R and streaks trailing off to the left.
   The real text stays invisible (for layout + accessibility); the two
   pseudo-elements paint the two halves of the cover treatment. */
.birth-word {
  position: relative;
  display: inline-block;
  --foil-pad: clamp(1.6rem, 4.5vw, 3.4rem); /* room for the left streaks */
  padding-left: var(--foil-pad);
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 24px rgba(201,168,106,.22));
}
/* scratched-gold left layer */
.birth-word::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: var(--foil-pad);
  background:
    radial-gradient(circle at 46% 30%, #fff3cf 0 3%, transparent 12%),
    linear-gradient(97deg, #8a6d3c 0%, #c9a254 25%, #f0d090 45%, #caa25c 65%, #93743f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-mask-image:
    repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 2px, #000 2px 3px, transparent 3px 5px, #000 5px 6px, transparent 6px 9px),
    linear-gradient(90deg, #000 0 26%, rgba(0,0,0,.7) 42%, transparent 60%);
  mask-image:
    repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 2px, #000 2px 3px, transparent 3px 5px, #000 5px 6px, transparent 6px 9px),
    linear-gradient(90deg, #000 0 26%, rgba(0,0,0,.7) 42%, transparent 60%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}
/* smooth pale-champagne right layer (…RTH) */
.birth-word::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: var(--foil-pad);
  background: linear-gradient(180deg, #fbf2dd 0%, #f1ddb6 45%, #e0c28c 80%, #cda668 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 28%, rgba(0,0,0,.5) 42%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0 28%, rgba(0,0,0,.5) 42%, #000 58%);
  pointer-events: none;
}
/* thin gold streaks trailing off the word to the left, like the cover */
.birth-streaks {
  position: absolute;
  top: 28%; left: 0;
  width: calc(var(--foil-pad) + 6%);
  height: 48%;
  background: repeating-linear-gradient(0deg,
    rgba(216,178,106,.55) 0 1px, transparent 1px 3px,
    rgba(216,178,106,.3) 3px 4px, transparent 4px 8px);
  -webkit-mask-image: linear-gradient(270deg, #000 0 45%, transparent 95%);
  mask-image: linear-gradient(270deg, #000 0 45%, transparent 95%);
  pointer-events: none;
}

.ornament {
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0 1.6rem;
  max-width: 260px;
}
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament i { color: var(--gold); font-style: normal; font-size: .9rem; }

.hero-lede {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.12rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.4rem;
}
.hero-author {
  margin-top: 2.6rem;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero-author::before {
  content: ""; display: block;
  width: 44px; height: 1px;
  background: var(--gold);
  margin-bottom: .8rem;
}

/* 3D floating book */
.hero-book-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d;
}
.hero-book {
  width: min(360px, 78%);
  position: relative;
  transform-style: preserve-3d;
  animation: float 6.5s ease-in-out infinite;
  will-change: transform;
}
.hero-book img {
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    -26px 0 0 -22px #0a0908,
    -18px 14px 40px rgba(0,0,0,.75),
    30px 44px 90px rgba(0,0,0,.6),
    0 0 90px rgba(201,168,106,.1);
  filter: brightness(1.02) contrast(1.03);
}
@keyframes float {
  0%,100% { translate: 0 0; }
  50%     { translate: 0 -18px; }
}
.book-reflection {
  position: absolute; inset: 100% 0 auto 0;
  height: 55%;
  background: inherit;
}
.book-shadow {
  width: 55%;
  height: 26px;
  margin-top: 3.4rem;
  background: radial-gradient(ellipse, rgba(0,0,0,.65) 0%, transparent 70%);
  filter: blur(6px);
  animation: shadowPulse 6.5s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%,100% { transform: scaleX(1);    opacity: .8; }
  50%     { transform: scaleX(.82);  opacity: .5; }
}

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 64px;
  background: rgba(201,168,106,.18);
  overflow: hidden;
}
.scroll-cue span {
  display: block; width: 100%; height: 40%;
  background: var(--gold-bright);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section { padding: 7.5rem 0; position: relative; }

.section-head { text-align: center; margin-bottom: 4.2rem; }
.section-head.left { text-align: left; margin-bottom: 2.2rem; }
.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .05em;
  color: var(--cream);
}
.section-title em {
  font-style: italic;
  color: var(--gold-bright);
}

/* ---------- THE BOOK ---------- */
.book-section {
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(201,168,106,.05), transparent 60%),
    var(--coal);
  border-top: 1px solid rgba(201,168,106,.08);
}
.book-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.book-visual { perspective: 1400px; display: flex; justify-content: center; }
.book-3d-card {
  position: relative;
  width: min(330px, 100%);
  transform-style: preserve-3d;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow:
    -22px 0 0 -18px #0a0908,
    -14px 12px 34px rgba(0,0,0,.7),
    26px 40px 80px rgba(0,0,0,.55);
  will-change: transform;
}
.book-3d-card img { border-radius: inherit; }
.book-3d-glare {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 28%, transparent 70%, rgba(201,168,106,.1) 100%);
  opacity: .6;
  pointer-events: none;
}
.book-copy h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.book-copy h3 em { color: var(--gold-bright); }
.book-copy p { color: var(--muted); margin-bottom: 1.2rem; }

.book-themes { margin: 2.4rem 0 2.6rem; display: grid; gap: .2rem; }
.book-themes li {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(201,168,106,.12);
  font-family: var(--serif-display);
  font-size: 1.22rem;
  color: var(--cream);
  transition: padding-left .35s var(--ease), color .35s;
}
.book-themes li:hover { padding-left: .7rem; color: var(--gold-bright); }
.theme-num {
  min-width: 2.2rem;
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--gold-dim);
}

/* ---------- CHAPTERS ---------- */
.inside-section { background: #131110; }
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.chapter-card {
  background: linear-gradient(180deg, var(--panel), #171512);
  border: 1px solid rgba(201,168,106,.12);
  padding: 2.4rem 1.8rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.chapter-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.chapter-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201,168,106,.4);
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 40px rgba(201,168,106,.06);
}
.chapter-card:hover::before { transform: scaleX(1); }
.chapter-num {
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.chapter-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.55rem;
  margin: .7rem 0 .9rem;
  color: var(--cream);
}
.chapter-card p { font-size: .95rem; color: var(--muted); }
.chapter-lines { display: flex; gap: .4rem; margin-top: 1.6rem; }
.chapter-lines i {
  height: 1px; width: 26px;
  background: var(--gold-dim);
  transition: width .4s var(--ease);
}
.chapter-card:hover .chapter-lines i:nth-child(2) { width: 44px; }
.chapter-card:hover .chapter-lines i:nth-child(3) { width: 18px; }

/* ---------- QUOTE BAND ---------- */
.quote-band {
  padding: 7rem 0;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 50%, rgba(201,168,106,.08), transparent 70%),
    #0e0d0b;
  border-top: 1px solid rgba(201,168,106,.1);
  border-bottom: 1px solid rgba(201,168,106,.1);
}
.big-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.45;
  color: var(--cream);
  max-width: 26ch;
  margin-inline: auto;
}
.big-quote em { color: var(--gold-bright); font-style: italic; }
.quote-source {
  margin-top: 1.8rem;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ---------- AUTHOR ---------- */
.author-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 5rem;
  align-items: center;
}
.author-portrait { perspective: 1200px; }
.portrait-frame {
  position: relative;
  border: 1px solid rgba(201,168,106,.35);
  padding: 14px;
  transform: rotateY(6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
  box-shadow: 24px 34px 70px rgba(0,0,0,.55);
}
.portrait-frame:hover { transform: rotateY(0) rotateX(0); }
.portrait-frame::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(201,168,106,.15);
  pointer-events: none;
}
.portrait-frame img {
  filter: grayscale(.35) sepia(.14) contrast(1.04);
}
.author-copy > p { color: var(--muted); margin-bottom: 1.2rem; }
.author-facts {
  display: flex; gap: 2.6rem; flex-wrap: wrap;
  margin: 2.2rem 0 1.4rem;
}
.fact strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--gold-bright);
}
.fact span {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.author-sign {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.9rem !important;
  color: var(--cream) !important;
  margin-top: 1.4rem;
}

/* ---------- VOICES ---------- */
.voices-section { background: #131110; }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.voice-card {
  background: linear-gradient(180deg, var(--panel), #171512);
  border: 1px solid rgba(201,168,106,.12);
  padding: 2.6rem 2rem 2rem;
  position: relative;
  transition: transform .5s var(--ease), border-color .5s;
}
.voice-card:hover { transform: translateY(-8px); border-color: rgba(201,168,106,.35); }
.voice-card.featured {
  border-color: rgba(201,168,106,.4);
  box-shadow: 0 0 60px rgba(201,168,106,.07);
}
.voice-quote-mark {
  font-family: var(--serif-display);
  font-size: 4.4rem;
  line-height: .6;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.voice-card blockquote {
  font-family: var(--serif-display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.voice-card figcaption strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
}
.voice-card figcaption span { font-size: .85rem; color: var(--muted); }

/* ---------- CTA / GET THE BOOK ---------- */
.cta-section {
  background:
    radial-gradient(900px 520px at 30% 50%, rgba(201,168,106,.09), transparent 65%),
    var(--coal);
  border-top: 1px solid rgba(201,168,106,.1);
}
.cta-inner {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.cta-book { perspective: 1200px; display: flex; justify-content: center; }
.cta-book img {
  width: min(280px, 80%);
  transform: rotateY(-14deg);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    -18px 0 0 -14px #0a0908,
    -12px 10px 30px rgba(0,0,0,.7),
    26px 40px 80px rgba(0,0,0,.55),
    0 0 80px rgba(201,168,106,.1);
  transition: transform .7s var(--ease);
}
.cta-book:hover img { transform: rotateY(-4deg); }
.cta-copy .section-title { margin-bottom: 1.2rem; }
.cta-copy > p { color: var(--muted); max-width: 52ch; margin-bottom: 2.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- CONTACT ---------- */
.contact-section { background: #131110; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-copy > p { color: var(--muted); margin-bottom: 2.4rem; }
.contact-list { display: grid; gap: 1.4rem; }
.contact-list li {
  display: flex; align-items: baseline; gap: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(201,168,106,.12);
}
.contact-list li > span {
  min-width: 7.5rem;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.contact-list a { color: var(--cream); transition: color .3s; }
.contact-list a:hover { color: var(--gold-bright); }
.socials { display: flex; gap: .8rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(201,168,106,.28);
  border-radius: 50%;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--cream);
  transition: all .35s var(--ease);
}
.socials a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(201,168,106,.3);
}

.contact-form {
  background: linear-gradient(180deg, var(--panel), #171512);
  border: 1px solid rgba(201,168,106,.14);
  padding: 2.8rem 2.4rem;
}
.field { position: relative; margin-bottom: 1.9rem; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(236,229,216,.2);
  color: var(--cream);
  font-family: var(--serif-body);
  font-size: 1rem;
  padding: .7rem 0;
  resize: vertical;
  transition: border-color .35s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field label {
  position: absolute; left: 0; top: .7rem;
  color: var(--muted);
  font-size: .95rem;
  pointer-events: none;
  transition: all .3s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -.75rem;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-note {
  margin-top: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: #0c0b09;
  padding: 4.5rem 0 2.2rem;
  border-top: 1px solid rgba(201,168,106,.12);
}
.footer-orn {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 3.2rem;
}
.footer-orn span { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.footer-orn span:last-child { transform: scaleX(-1); }
.footer-orn i { color: var(--gold); font-style: normal; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}
.footer-title {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  letter-spacing: .16em;
  color: var(--cream);
}
.footer-tag {
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: .4rem;
}
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.8rem; }
.footer-nav a {
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--gold-bright); }
.footer-social { display: flex; justify-content: flex-end; gap: .7rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(201,168,106,.22);
  border-radius: 50%;
  font-size: .66rem;
  color: var(--muted);
  transition: all .3s;
}
.footer-social a:hover { color: var(--gold-bright); border-color: var(--gold); }
.footer-bottom {
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201,168,106,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
  color: var(--muted);
}
.back-top i { font-style: normal; color: var(--gold); }
.back-top:hover { color: var(--gold-bright); }

/* =========================================================
   REVEAL DEFAULTS (GSAP takes over — this is fallback)
   ========================================================= */
.js-anim .section .reveal-up,
.js-anim .quote-band .reveal-up { opacity: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 4.5rem; }
  .hero-copy { order: 2; }
  .hero-book-wrap { order: 1; }
  .hero-glow, .hero-ring, .hero-vline { left: 50%; }
  .ornament { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  /* "Birth" — drop the foil pad & streaks so the word sits dead center */
  .birth-word { padding-left: 0; }
  .birth-streaks { display: none; }
  .hero-actions, .hero-author { justify-content: center; }
  .hero-author { display: inline-block; text-align: left; }
  .hero-book { width: min(300px, 70%); }
  .book-grid, .author-grid, .cta-inner, .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-social { justify-content: center; }
}

@media (max-width: 992px) {
  /* Full-screen overlay menu */
  .nav-list {
    position: fixed; inset: 0;
    background: rgba(12, 11, 9, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .6s var(--ease), visibility .6s;
    z-index: 1000;
  }
  .nav-list.open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
  }
  /* staggered link entrance */
  .nav-list li {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .nav-list.open li { opacity: 1; transform: translateY(0); }
  .nav-list.open li:nth-child(1) { transition-delay: .15s; }
  .nav-list.open li:nth-child(2) { transition-delay: .22s; }
  .nav-list.open li:nth-child(3) { transition-delay: .29s; }
  .nav-list.open li:nth-child(4) { transition-delay: .36s; }
  .nav-list.open li:nth-child(5) { transition-delay: .43s; }
  .nav-list.open li.nav-cta { transition-delay: .5s; }
  .nav-list a { font-size: 1.05rem; letter-spacing: .34em; color: var(--cream); }
  .nav-list a:hover, .nav-list a.active { color: var(--gold-bright); }

  /* keep brand & toggle above the overlay */
  .brand { position: relative; z-index: 1002; }
  #nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .nav-cta { display: none; }
  .nav-list.open .nav-cta { display: block; }
  .nav-cta .btn { font-size: .72rem; padding: .85em 2.4em; }

  .section { padding: 5.5rem 0; }
}

@media (max-width: 560px) {
  .chapters-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .author-facts { gap: 1.6rem; }
  .footer-bottom { flex-direction: column; gap: .8rem; }
  .contact-form { padding: 2rem 1.4rem; }
  .brand-sub { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   LANGUAGE SWITCH (header)
   ========================================================= */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--muted);
  border: 1px solid rgba(201,168,106,.25);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  transition: color .35s, border-color .35s, box-shadow .35s;
  white-space: nowrap;
}
.lang-switch svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold-dim); transition: color .3s; }
.lang-switch:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(201,168,106,.18);
}
.lang-switch:hover svg { color: var(--gold-bright); }
@media (max-width: 1024px) {
  .lang-switch span { display: none; } /* icon-only pill */
  .lang-switch { padding: .55rem .65rem; }
}

/* =========================================================
   ARABIC VERSION — slightly lighter theme + RTL
   ========================================================= */
body.lang-ar {
  /* lifted warm-charcoal palette — same identity, airier feel */
  --ink:        #1e1a15;
  --coal:       #26221b;
  --panel:      #2e281f;
  --line:       rgba(201, 168, 106, .3);
  --cream:      #f4ecdc;
  --muted:      #b3a894;
  font-family: "Amiri", var(--serif-body);
}
body.lang-ar .section-title,
body.lang-ar .hero-title,
body.lang-ar .big-quote,
body.lang-ar .chapter-card h3,
body.lang-ar .voice-card blockquote,
body.lang-ar .book-copy h3,
body.lang-ar .brand-mark,
body.lang-ar .footer-title,
body.lang-ar .author-sign,
body.lang-ar .preloader-monogram {
  font-family: "Amiri", var(--serif-display);
}
body.lang-ar .hero {
  background:
    radial-gradient(1200px 700px at 75% 35%, rgba(201,168,106,.09), transparent 60%),
    linear-gradient(180deg, #1a1712 0%, var(--coal) 55%, #23201a 100%);
}
body.lang-ar .inside-section,
body.lang-ar .voices-section,
body.lang-ar .contact-section { background: #211d17; }
body.lang-ar .quote-band {
  background:
    radial-gradient(700px 320px at 50% 50%, rgba(201,168,106,.1), transparent 70%),
    #1d1a14;
}
body.lang-ar #site-footer { background: #1b1812; }
body.lang-ar .chapter-card,
body.lang-ar .voice-card,
body.lang-ar .contact-form { background: linear-gradient(180deg, var(--panel), #272219); }
body.lang-ar .nav-list { background: transparent; } /* desktop row */
@media (max-width: 992px) {
  body.lang-ar .nav-list { background: rgba(26, 23, 18, .98); }
}

/* Arabic typography corrections */
body.lang-ar .eyebrow,
body.lang-ar .preloader-text,
body.lang-ar .nav-list a,
body.lang-ar .btn,
body.lang-ar .hero-author,
body.lang-ar .brand-sub,
body.lang-ar .chapter-num,
body.lang-ar .quote-source,
body.lang-ar .fact span,
body.lang-ar .contact-list li > span,
body.lang-ar .footer-nav a,
body.lang-ar .footer-tag,
body.lang-ar .lang-switch,
body.lang-ar .hero-title,
body.lang-ar .section-title { letter-spacing: 0; }
body.lang-ar .hero-title { line-height: 1.35; }
body.lang-ar .hero-lede,
body.lang-ar .book-copy p,
body.lang-ar .author-copy > p { line-height: 2; }

/* --- RTL layout fixes --- */
[dir="rtl"] .nav-list a::after { left: auto; right: 0; }
[dir="rtl"] .hero-glow,
[dir="rtl"] .hero-ring { left: 32%; }
[dir="rtl"] .hero-vline { left: 32%; }
[dir="rtl"] .book-themes li:hover { padding-left: 0; padding-right: .7rem; }
[dir="rtl"] .field label { left: auto; right: 0; }
[dir="rtl"] .portrait-frame { transform: rotateY(-6deg) rotateX(2deg); }
[dir="rtl"] .portrait-frame:hover { transform: rotateY(0) rotateX(0); }
[dir="rtl"] .cta-book img { transform: rotateY(14deg); }
[dir="rtl"] .cta-book:hover img { transform: rotateY(4deg); }
[dir="rtl"] .back-top i { display: inline-block; }
