/* ==========================================================================
   Alan J. Kobs · Growing A Youth Group
   Palette from reference/color-theme.html · Fonts matched to the book cover
   ========================================================================== */

:root {
  /* Navy (theme navy-900 / navy-800 / hero base) */
  --navy-950: #0a1122;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;

  /* Gold (theme gold-200 / 400 / 500 / 600) */
  --gold-200: #fde68a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309; /* small gold text on light backgrounds (AA contrast) */

  /* Surfaces & text */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f9fafb;   /* theme gray-50 */
  --bg-warm: #fff7ed;   /* theme orange-50 */
  --text: #1f2937;      /* theme gray-800 */
  --text-muted: #4b5563;
  --text-on-dark: #e5e7eb;
  --text-on-dark-muted: #cbd5e1;
  --line: #e5e7eb;

  /* Type */
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow: 0 14px 40px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);
  --glow: 0 0 24px rgba(251, 191, 36, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 4px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.75;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--gold-500); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; background: var(--gold-400); color: var(--navy-900); padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700);
}
.eyebrow .icon { width: 1.3em; height: 1.3em; padding: 3px; border-radius: 50%; background: rgba(245, 158, 11, .14); box-sizing: content-box; }
.eyebrow--light { color: var(--gold-400); }
.eyebrow--light .icon { background: rgba(251, 191, 36, .15); }

.section-title {
  font-family: var(--font-serif); font-weight: 700; color: var(--navy-900);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 18px;
}
.section-title--light { color: var(--white); }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }
.section-lead--light { color: var(--text-on-dark-muted); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.lead { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.6; color: var(--navy-900); margin-bottom: 18px; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 12px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; line-height: 1.2; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .88rem; }
.btn--lg { min-height: 58px; padding: 14px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-400); color: var(--navy-900); box-shadow: var(--glow); }
.btn--gold:hover { background: var(--gold-500); box-shadow: 0 12px 30px -8px rgba(245, 158, 11, .7); }
.btn--outline-light { border-color: var(--gold-400); color: var(--white); background: rgba(15, 23, 42, .25); }
.btn--outline-light:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--outline-dark { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline-dark:hover { background: var(--navy-900); color: var(--gold-400); }

.link-btn, .inline-link, .footer__linkbtn { text-align: left; }
.link-btn {
  display: inline-flex; align-items: center; gap: .4em; margin-top: 12px; font-weight: 700; color: var(--gold-400);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.link-btn:hover { background-size: 100% 2px; }
.link-btn .icon { transition: transform .3s var(--ease); }
.link-btn:hover .icon { transform: translateX(4px); }
.inline-link { color: var(--gold-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--navy-900); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--navy-950);
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 14px; animation: preIn .5s var(--ease) both; }
.preloader__icon { width: 54px; height: 54px; color: var(--gold-400); stroke-width: 1.4; animation: prePulse 1.2s ease-in-out infinite; }
.preloader__title { font-family: var(--font-serif); color: var(--white); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
@keyframes preIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes prePulse { 50% { transform: scale(1.08); opacity: .75; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1100; height: var(--header-h); color: var(--white);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(15, 23, 42, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); --header-h: 66px; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--gold-400); white-space: nowrap; }
.logo__icon { width: 1.4em; height: 1.4em; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .35); color: var(--white); transition: background-color .3s; }
.nav-toggle:hover { background: rgba(251, 191, 36, .12); }
.nav-toggle .icon { width: 24px; height: 24px; }

/* Mobile slide-in nav */
.nav {
  position: fixed; top: 0; right: 0; z-index: 1150; height: 100vh; height: 100dvh; width: min(330px, 86vw);
  display: flex; flex-direction: column; gap: 24px; padding: 22px 24px 32px; overflow-y: auto;
  background: var(--navy-900); border-left: 1px solid rgba(251, 191, 36, .25); box-shadow: -20px 0 50px rgba(0, 0, 0, .35);
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.nav__head { display: flex; justify-content: space-between; align-items: center; }
.nav__title { font-family: var(--font-serif); color: var(--gold-400); font-weight: 700; }
.nav__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); }
.nav__close:hover { background: rgba(255, 255, 255, .08); }
.nav__close .icon { width: 24px; height: 24px; }
.nav__list { display: grid; gap: 4px; }
.nav__link { position: relative; display: block; padding: 12px 4px; font-weight: 600; font-size: 1.05rem; color: var(--text-on-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .25s; }
.nav__link:hover, .nav__link.is-active { color: var(--gold-400); }
.nav__cta { margin-top: auto; }
.nav-overlay { position: fixed; inset: 0; z-index: 1090; background: rgba(10, 17, 34, .6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--navy-950);
  padding: calc(var(--header-h) + 48px) 0 88px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: -10% -10% -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 100%, rgba(253, 230, 138, .55), rgba(245, 158, 11, .35) 40%, transparent 72%),
    radial-gradient(circle at 15% 15%, rgba(30, 41, 59, .9), transparent 50%);
}
.hero__bg::after { /* subtle doorway lines, echoing the cover */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(251, 191, 36, .04) 119px 120px);
}
.hero__frame { position: absolute; inset: calc(var(--header-h) + 8px) 14px 14px; z-index: 1; border: 1.5px solid rgba(251, 191, 36, .7); pointer-events: none; }
.hero__frame::after { content: ""; position: absolute; inset: 5px; border: .5px solid rgba(253, 230, 138, .45); }
.hero__grid { position: relative; z-index: 2; display: grid; gap: 56px; align-items: center; }
.hero .hero__grid { padding-inline: 34px; } /* keep content inside the gold frame */
.hero__content { text-align: center; }
.hero__title {
  font-family: var(--font-serif); font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em;
  font-size: clamp(2.4rem, 1.4rem + 5.2vw, 5rem); margin-bottom: 16px; text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.hero__title span { display: block; color: var(--white); }
.hero__subtitle { font-size: clamp(1.1rem, .95rem + .8vw, 1.5rem); font-weight: 600; color: var(--gold-200); margin-bottom: 20px; }
.hero__hook { max-width: 560px; margin: 0 auto 32px; color: var(--text-on-dark); font-size: 1.04rem; }
.hero__hook strong { display: block; color: var(--white); font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 6px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 34px; }
.hero__badges li { display: flex; align-items: center; gap: 12px; text-align: left; font-size: .92rem; color: var(--text-on-dark); line-height: 1.35; }
.hero__badges strong { display: block; color: var(--white); font-size: 1.05rem; }
.hero__badge-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(251, 191, 36, .5); color: var(--gold-400); background: rgba(251, 191, 36, .08); }

/* 3D book */
.hero__visual { display: flex; justify-content: center; }
.book-float { position: relative; animation: float 6s ease-in-out infinite; }
.book-scene { perspective: 1400px; }
.book {
  --thick: 26px; position: relative; width: min(300px, 64vw); aspect-ratio: 855 / 1360;
  transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg); transition: transform .5s var(--ease);
}
.book__front { position: absolute; inset: 0; transform: translateZ(calc(var(--thick) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: inset 4px 0 10px rgba(0,0,0,.2); }
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.08) 0, rgba(0,0,0,.25) 2%, rgba(255,255,255,.12) 4%, transparent 9%, transparent 70%, rgba(255,255,255,.08)); }
.book__pages {
  position: absolute; top: 4px; bottom: 4px; left: calc(100% - var(--thick) / 2); width: var(--thick);
  transform: rotateY(90deg) translateZ(-2px);
  background: repeating-linear-gradient(90deg, #fdfbf6 0 2px, #e9e3d6 2px 3px);
}
.book__back { position: absolute; inset: 0; transform: translateZ(calc(var(--thick) / -2)); background: var(--navy-900); border-radius: 2px 6px 6px 2px; box-shadow: 20px 30px 60px rgba(0, 0, 0, .55); }
.book-shadow { position: absolute; left: 10%; right: 10%; bottom: -36px; height: 28px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .55), transparent 70%); filter: blur(4px); animation: shadowPulse 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes shadowPulse { 50% { transform: scale(.85); opacity: .7; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; background: var(--gold-400); color: var(--navy-900); padding: 18px 0; border-block: 1px solid var(--gold-500); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__group li { display: flex; align-items: center; font-family: var(--font-serif); font-weight: 700; font-size: clamp(1rem, .9rem + .6vw, 1.35rem); white-space: nowrap; padding-right: 28px; }
.marquee__group li::after { content: "✦"; margin-left: 28px; font-size: .8em; color: var(--navy-800); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }

/* Decorative shapes */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.shape--ring { width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(251, 191, 36, .08); }
.shape--tl { top: -120px; left: -140px; }
.shape--dots { width: 220px; height: 220px; background-image: radial-gradient(rgba(245, 158, 11, .35) 2px, transparent 2.5px); background-size: 20px 20px; }
.shape--br { right: -40px; bottom: 30px; }
.section > .container { position: relative; z-index: 1; }

/* Section dividers: thin gold line with a center ornament */
.section + .section::before, .stats + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(220px, 50%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* ---------- About the book ---------- */
.about-book__grid { display: grid; gap: 56px; align-items: center; }
.about-book__media { position: relative; max-width: 380px; margin-inline: auto; padding: 0 0 28px 20px; }
.about-book__frame { position: relative; border-radius: var(--radius-lg); padding: 26px; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.about-book__frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--gold-400); border-radius: var(--radius-lg); z-index: -1; }
.about-book__frame img { border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: transform .6s var(--ease); }
.about-book__frame:hover img { transform: scale(1.03) rotate(-1deg); }
.float-card {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--gold-500);
  animation: float 7s ease-in-out infinite;
}
.float-card__num { font-family: var(--font-serif); font-weight: 900; font-size: 2rem; color: var(--navy-900); line-height: 1; }
.float-card__label { font-size: .8rem; line-height: 1.35; color: var(--text-muted); font-weight: 600; }
.about-book__text p + p { margin-top: 14px; }
.about-book__text > div > p { color: var(--text-muted); }

.key-points { display: grid; gap: 16px; margin-top: 32px; }
.key-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.key-points li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(245, 158, 11, .5); }
.key-points__icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--navy-900); color: var(--gold-400); }
.key-points h3 { font-family: var(--font-serif); font-size: 1.02rem; color: var(--navy-900); line-height: 1.35; margin-bottom: 2px; }
.key-points p { font-size: .9rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Cards (themes) ---------- */
.card-grid { display: grid; gap: 24px; }
.card {
  position: relative; overflow: hidden; padding: 34px 28px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 18px; background: rgba(245, 158, 11, .12); color: var(--gold-700); transition: background-color .4s, color .4s, transform .4s var(--ease); }
.card__icon .icon { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--navy-900); color: var(--gold-400); transform: rotate(-6deg); }
.card__title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy-900); line-height: 1.35; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; line-height: 1.65; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.audience-card {
  text-align: center; padding: 30px 18px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s;
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.audience-card__icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); box-shadow: 0 0 0 6px rgba(251, 191, 36, .18); transition: transform .5s var(--ease); }
.audience-card__icon .icon { width: 30px; height: 30px; }
.audience-card:hover .audience-card__icon { transform: scale(1.08) rotate(8deg); }
.audience-card h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy-900); margin-bottom: 6px; }
.audience-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Stats ---------- */
.stats { position: relative; padding: clamp(56px, 7vw, 84px) 0; background: var(--navy-900); color: var(--white); border-block: 4px solid var(--gold-500); overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 90% at 50% 120%, rgba(245, 158, 11, .25), transparent 70%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
.stat { text-align: center; }
.stat__icon { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold-400); stroke-width: 1.5; }
.stat__num { font-family: var(--font-serif); font-weight: 900; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem); line-height: 1; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: .9rem; color: var(--text-on-dark-muted); line-height: 1.45; max-width: 220px; margin-inline: auto; }

/* ---------- Author ---------- */
.author__grid { display: grid; gap: 56px; align-items: center; }
.author__media { position: relative; max-width: 420px; margin-inline: auto; padding: 0 22px 22px 0; }
.author__media::before { content: ""; position: absolute; inset: 22px 0 0 22px; border-radius: var(--radius-lg); background: var(--navy-900); }
.author__photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 4px solid var(--white); box-shadow: var(--shadow-lg); }
.author__photo img { width: 100%; transition: transform .8s var(--ease); }
.author__photo:hover img { transform: scale(1.05); }
.author__badge {
  position: absolute; right: -6px; top: 26px; display: grid; justify-items: center; width: 112px; height: 112px; place-content: center; text-align: center;
  border-radius: 50%; background: var(--gold-400); color: var(--navy-900); box-shadow: var(--shadow); border: 4px solid var(--white);
  animation: float 7s ease-in-out infinite reverse;
}
.author__badge strong { font-family: var(--font-serif); font-size: 1.8rem; line-height: 1; }
.author__badge span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.25; margin-top: 4px; }
.author__role { color: var(--gold-700); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: -6px 0 22px; }
.author__text p { color: var(--text-muted); }
.author__text p + p { margin-top: 14px; }
.author__text strong { color: var(--navy-900); }
.author__creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.author__creds li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid rgba(245, 158, 11, .35); font-size: .86rem; font-weight: 600; color: var(--navy-900); }
.author__creds .icon { color: var(--gold-700); }
.signature { margin-top: 24px !important; font-family: var(--font-script); font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); line-height: 1; color: var(--navy-800) !important; }

/* ---------- Inside / pull-quote ---------- */
.inside__grid { display: grid; gap: 40px; align-items: start; }
.pull-quote {
  position: relative; padding: 48px 32px 36px; border-radius: var(--radius-lg); color: var(--white);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-lg); overflow: hidden;
}
.pull-quote::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(251, 191, 36, .35); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.pull-quote::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(245, 158, 11, .35), transparent 70%); }
.pull-quote__mark { position: absolute; top: -10px; left: 22px; font-family: var(--font-serif); font-size: 7rem; line-height: 1; color: var(--gold-400); opacity: .9; }
.pull-quote blockquote { position: relative; z-index: 1; margin: 0; }
.pull-quote blockquote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.65; }
.pull-quote figcaption { position: relative; z-index: 1; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(251, 191, 36, .3); font-size: .9rem; color: var(--gold-200); }
.pull-quote cite { font-style: italic; }

/* ---------- Inside: excerpt + table of contents ---------- */
.collapse { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s linear .5s; }
.collapse.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease); }
.collapse > div { overflow: hidden; min-height: 0; }
.collapse-chev { transition: transform .4s var(--ease); }
[aria-expanded="true"] > .collapse-chev { transform: rotate(180deg); }


.pull-quote--wide { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 920px; text-align: center; }
.pull-quote--wide .pull-quote__mark { left: 50%; transform: translateX(-50%); }
.pull-quote--wide blockquote p { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); }

/* ---------- Flipbook excerpt ---------- */
:root { --font-book: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif; --font-book-sans: "Jost", "Futura", "Century Gothic", sans-serif; --paper: #fffefa; }
.flipbook__stage {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(20px, 4vw, 48px) clamp(8px, 2vw, 24px); border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 30%, #4b5563, #374151 60%, #1f2937); box-shadow: inset 0 0 60px rgba(0, 0, 0, .35);
  touch-action: pan-y;
}
.flipbook__book { position: relative; display: flex; width: 100%; max-width: min(520px, 100%, (100vh - 200px) * 2 / 3); }
html:not(.js) .flipbook__book { flex-direction: column; gap: 16px; }
.bpage {
  position: relative; flex: 1 1 0; min-width: 0; background: var(--paper); color: #1a1a1a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); container-type: inline-size;
}
.js .bpage:not(.is-shown) { display: none; } /* without JS every page shows, stacked */
.bpage + .bpage { margin-top: 0; }
.bpage__inner { position: relative; }
.bpage__text { font-family: var(--font-book); color: #1a1a1a; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.bpage__text p + p { text-indent: 1.6em; }
.bpage__cont { text-indent: 0; }
.bpage__dropcap::first-letter { float: left; font-family: var(--font-book); font-size: 3.15em; line-height: .82; margin: .06em .06em 0 0; color: #1a1a1a; }
.bpage__chapnum { display: grid; place-items: center; background: #5f6062; color: #fff; font-family: var(--font-book-sans); font-weight: 300; line-height: 1; }
.bpage__chaptitle { font-family: var(--font-book-sans); font-weight: 400; text-transform: uppercase; text-align: center; letter-spacing: .14em; line-height: 1.2; color: #1a1a1a; }
.bpage__epigraph { font-family: var(--font-book-sans); font-weight: 300; text-align: center; color: #1a1a1a; }
.bpage__epigraph figcaption { text-transform: uppercase; letter-spacing: .1em; }
.bpage__epigraph figcaption::before { content: "\2014"; }
.bpage__runhead { font-family: var(--font-book); text-align: center; color: #333; }
.bpage__folio { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--font-book); color: #333; }
.bpage--title .bpage__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--font-book-sans); color: #1a1a1a; }
.bpage__kicker { font-family: var(--font-book); font-style: italic; color: #555; }
.bpage__booktitle { font-weight: 400; text-transform: uppercase; letter-spacing: .12em; line-height: 1.15; }
.bpage__booksub { font-weight: 300; color: #333; }
.bpage__rule { display: block; background: var(--gold-500); }
.bpage__bookauthor { text-transform: uppercase; letter-spacing: .2em; font-weight: 400; }
.bpage__hint { font-family: var(--font-book); font-style: italic; color: var(--gold-700); }
.bpage__booktitle span { display: block; }
.bpage__bt-small { font-size: .55em; letter-spacing: .16em; }
.bpage--back { background: var(--navy-900); color: var(--white); }
.bpage--back::before { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(251, 191, 36, .55); }
.bpage--back .bpage__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bpage__backcover { box-shadow: 0 14px 30px rgba(0, 0, 0, .5); border-radius: 2px; }
.bpage__endtitle { font-family: var(--font-book-sans); text-transform: uppercase; letter-spacing: .22em; color: var(--gold-400); }
.bpage__endtext { font-family: var(--font-book); color: var(--text-on-dark); }

/* Fixed book-page proportions (6 x 9 in) once a page is wide enough to read comfortably */
@media (min-width: 600px) {
  .bpage { aspect-ratio: 2 / 3; overflow: hidden; }
  .bpage__inner { height: 100%; padding: 12cqi 11.5cqi 14cqi; }
  .bpage__text { font-size: 2.62cqi; line-height: 1.5; }
  .bpage__runhead { font-size: 2.05cqi; letter-spacing: .03em; margin: -4.5cqi 0 4.5cqi; }
  .bpage__folio { bottom: 6.5cqi; font-size: 2.2cqi; }
  .bpage--opener .bpage__inner { padding-top: 0; }
  .bpage__chapnum { width: 20cqi; height: 26cqi; margin: 0 auto; font-size: 11cqi; }
  .bpage__chaptitle { font-size: 4cqi; margin: 5.5cqi 6cqi 5cqi; }
  .bpage__epigraph { font-size: 2.6cqi; line-height: 1.42; margin: 0 5cqi 5cqi; }
  .bpage__epigraph figcaption { font-size: 2.3cqi; margin-top: .6cqi; }
  .bpage--title .bpage__inner { padding: 14cqi 12cqi; gap: 0; }
  .bpage__kicker { font-size: 3cqi; margin-bottom: 7cqi; }
  .bpage__booktitle { font-size: 7.6cqi; }
  .bpage__booksub { font-size: 3cqi; margin-top: 4cqi; }
  .bpage__rule { width: 12cqi; height: .5cqi; margin: 9cqi 0; }
  .bpage__bookauthor { font-size: 3.2cqi; }
  .bpage__hint { font-size: 2.8cqi; margin-top: 18cqi; }
  .bpage--back::before { inset: 4.5cqi; }
  .bpage--back .bpage__inner { padding: 12cqi; }
  .bpage__backcover { width: 34cqi; margin-bottom: 8cqi; }
  .bpage__endtitle { font-size: 2.8cqi; margin-bottom: 3cqi; }
  .bpage__endtext { font-size: 3.2cqi; line-height: 1.5; max-width: 60cqi; }
  .bpage--back .btn { margin-top: 6cqi; }
}
/* Phones: same design, reflowed at a readable size */
@media (max-width: 599.98px) {
  .bpage__inner { padding: 34px 22px 52px; }
  .bpage__text { font-size: 16.5px; line-height: 1.65; }
  .bpage__runhead { font-size: 12.5px; margin: -14px 0 18px; }
  .bpage__folio { bottom: 18px; font-size: 13px; }
  .bpage--opener .bpage__inner { padding-top: 0; }
  .bpage__chapnum { width: 64px; height: 96px; margin: 0 auto; font-size: 42px; }
  .bpage__chaptitle { font-size: 18px; margin: 24px 0 20px; }
  .bpage__epigraph { font-size: 15px; line-height: 1.5; margin: 0 4px 26px; }
  .bpage__epigraph figcaption { font-size: 12.5px; margin-top: 4px; }
  .bpage--title .bpage__inner { min-height: 440px; padding: 48px 24px; }
  .bpage__kicker { font-size: 16px; margin-bottom: 22px; }
  .bpage__booktitle { font-size: 30px; }
  .bpage__booksub { font-size: 15px; margin-top: 14px; }
  .bpage__rule { width: 48px; height: 2px; margin: 28px 0; }
  .bpage__bookauthor { font-size: 14px; }
  .bpage__hint { font-size: 15px; margin-top: 44px; }
  .bpage--back::before { inset: 12px; }
  .bpage--back .bpage__inner { min-height: 440px; padding: 44px 28px; }
  .bpage__backcover { width: 110px; margin-bottom: 24px; }
  .bpage__endtitle { font-size: 13px; margin-bottom: 10px; }
  .bpage__endtext { font-size: 17px; line-height: 1.5; }
  .bpage--back .btn { margin-top: 18px; }
  .bpage__text { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
  .flipbook__stage { flex-wrap: wrap; padding: 16px 12px 14px; gap: 14px 20px; }
  .flipbook__book { order: -1; flex-basis: 100%; }
}
/* 3D flipbook (desktop): cover shown alone, then two-page spreads that turn around the spine */
.flipbook.is-3d .flipbook__book {
  display: block; max-width: min(1100px, 100%, (100vh - 170px) * 4 / 3); aspect-ratio: 4 / 3;
  perspective: 2800px; transition: transform .8s cubic-bezier(.645, .045, .355, 1);
}
.fb-leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%;
  transform-style: preserve-3d; transition: transform .9s cubic-bezier(.645, .045, .355, 1); cursor: pointer;
}
.fb-leaf.is-flipped { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 40px -12px rgba(0, 0, 0, .55); }
.fb-face--back { transform: rotateY(180deg); }
.fb-face .bpage { width: 100%; height: 100%; box-shadow: none; }
.fb-face--front .bpage { background: linear-gradient(90deg, #dfd9cb, var(--paper) 7%); }
.fb-face--back .bpage { background: linear-gradient(90deg, var(--paper) 93%, #dfd9cb); }
.fb-face--front .bpage--title { background: linear-gradient(90deg, #e9e4d8, var(--paper) 4%); }
.fb-face--back .bpage--back { background: linear-gradient(90deg, var(--navy-900) 92%, #070d1a); }
.fb-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 30%, transparent 70%, rgba(0, 0, 0, .14)); }
.fb-leaf.is-turning .fb-face::after { animation: fbShade .9s ease; }
@keyframes fbShade { 50% { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .fb-leaf.is-top:not(.is-flipped):not(.is-turning):hover { transform: rotateY(-7deg); }
  .fb-leaf.is-top.is-flipped:not(.is-turning):hover { transform: rotateY(-173deg); }
}
.flipbook.is-3d .flipbook__stage { padding-block: clamp(24px, 3vw, 40px); }
@media (prefers-reduced-motion: reduce) { .fb-leaf, .flipbook.is-3d .flipbook__book { transition: none; } }
.flipbook__arrow {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(15, 23, 42, .75); color: var(--white); border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .3s, color .3s, transform .3s var(--ease), opacity .3s;
}
.flipbook__arrow .icon { width: 24px; height: 24px; }
.flipbook__arrow:hover:not(:disabled) { background: var(--gold-400); color: var(--navy-900); }
.flipbook__arrow:disabled { opacity: .3; cursor: default; }
.flipbook__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.flipbook__status { font-weight: 600; font-size: .9rem; color: var(--text-muted); min-width: 120px; }
.flipbook__dots { display: flex; gap: 8px; }
.flipbook__dots button { width: 10px; height: 10px; border-radius: 999px; background: #d1d5db; transition: width .3s var(--ease), background-color .3s; }
.flipbook__dots button[aria-current="true"] { width: 26px; background: var(--gold-500); }
.flipbook__source { margin-top: 14px; font-size: .8rem; color: var(--text-muted); text-align: center; }
@media (max-width: 599.98px) { .flipbook__bar { justify-content: center; text-align: center; } }

.inside__lower { margin-top: clamp(48px, 6vw, 72px); }
.inside__lower .pull-quote--wide { margin: 0 auto; }

/* ---------- Testimonials slider ---------- */
.slider { max-width: 860px; margin-inline: auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); touch-action: pan-y; }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.t-slide { flex: 0 0 100%; padding: 44px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; user-select: none; }
.t-slide blockquote p { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--navy-900); }
.t-slide blockquote p::before { content: "\201C"; display: block; font-size: 4rem; line-height: .8; color: var(--gold-500); }
.t-slide { display: flex; flex-direction: column; justify-content: center; }
.t-slide blockquote p { line-height: 1.75; }
.t-slide figcaption { margin-top: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.t-slide__avatar { display: grid; place-items: center; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); font-family: var(--font-serif); font-weight: 700; box-shadow: 0 0 0 4px rgba(251, 191, 36, .25); }
.t-slide__who { display: grid; gap: 2px; }
.t-slide__who strong { color: var(--navy-900); font-family: var(--font-serif); }
.t-slide__who span { font-size: .9rem; color: var(--gold-700); font-weight: 600; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.slider__arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy-900); transition: background-color .3s, color .3s, transform .3s; }
.slider__arrow:hover { background: var(--navy-900); color: var(--gold-400); transform: translateY(-2px); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 12px; height: 12px; border-radius: 999px; background: #d1d5db; transition: width .3s var(--ease), background-color .3s; }
.slider__dots button[aria-current="true"] { width: 30px; background: var(--gold-500); }

/* ---------- Buy CTA ---------- */
.buy { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0; color: var(--white); background: var(--navy-950); isolation: isolate; }
.buy__bg { position: absolute; inset: -25% 0; z-index: -1; overflow: hidden; background: var(--navy-950); }
.buy__bg::before { /* the cover, heavily blurred, gives the section its warm doorway light */
  content: ""; position: absolute; inset: -40px; opacity: .55; filter: blur(18px);
  background: url("../assets/book-cover-480.jpg") center 70% / cover no-repeat;
}
.buy__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 55%, rgba(245, 158, 11, .25), transparent 70%),
    linear-gradient(180deg, rgba(10, 17, 34, .9), rgba(15, 23, 42, .78) 50%, rgba(10, 17, 34, .94));
}
.buy__grid { display: grid; gap: 48px; align-items: center; }
.buy__cover { max-width: 280px; margin-inline: auto; }
.buy__cover img { border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(251, 191, 36, .3); transform: rotate(-3deg); transition: transform .6s var(--ease); }
.buy__cover:hover img { transform: rotate(0) scale(1.03); }
.buy__text { text-align: center; }
.buy__lead { color: var(--text-on-dark); font-size: 1.08rem; max-width: 560px; margin: 0 auto 30px; }
.buy__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(80px, 9vw, 120px) 0; background: var(--navy-900); color: var(--white); border-top: 8px solid var(--gold-500); overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: 100%; transform: translate(-50%, -45%); border-radius: 50%; background: radial-gradient(rgba(245, 158, 11, .22), transparent 70%); }
.contact > .container { position: relative; }
.contact__cards { display: grid; gap: 20px; }
.contact-card { padding: 28px 24px; text-align: center; border-radius: var(--radius-lg); background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .06); transition: transform .4s var(--ease), border-color .4s; }
.contact-card:hover { transform: translateY(-8px); border-color: rgba(251, 191, 36, .45); }
.contact-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); }
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card h3 { font-family: var(--font-serif); font-size: 1.08rem; margin-bottom: 6px; }
.contact-card p { font-size: .92rem; color: var(--text-on-dark-muted); line-height: 1.6; }
.contact__action { margin-top: 44px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding-top: 72px; font-size: .95rem; }
.footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
.logo--footer { font-size: 1.45rem; margin-bottom: 14px; }
.footer__brand p { max-width: 340px; line-height: 1.7; }
.footer__title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold-500); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a, .footer__linkbtn {
  color: var(--text-on-dark-muted); transition: color .25s;
  background-image: linear-gradient(var(--gold-400), var(--gold-400)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: color .25s, background-size .35s var(--ease);
}
.footer__col a:hover, .footer__linkbtn:hover { color: var(--gold-400); background-size: 100% 1px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer__powered { color: var(--gold-400); font-weight: 600; transition: color .25s; }
.footer__powered:hover { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating UI ---------- */
.float-buy {
  position: fixed; left: 50%; bottom: 18px; z-index: 900; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; background: var(--gold-400); color: var(--navy-900); font-weight: 700; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .45s, visibility 0s linear .45s;
}
.float-buy.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .45s; }
.back-to-top {
  position: fixed; right: 16px; bottom: 18px; z-index: 900; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400); border: 1px solid rgba(251, 191, 36, .5); box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .35s var(--ease), visibility 0s linear .35s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--ease); }
.back-to-top:hover { background: var(--gold-400); color: var(--navy-900); }
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 2100; padding: 12px 22px; border-radius: 999px; background: var(--navy-900); color: var(--white);
  font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border: 1px solid var(--gold-400);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 17, 34, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__dialog {
  position: relative; width: min(100%, 480px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 44px 28px 30px; text-align: center;
  border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); border-top: 6px solid var(--gold-500);
  transform: scale(.9) translateY(20px); transition: transform .4s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog:focus { outline: none; }
.modal__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy-900); transition: background-color .25s, transform .3s var(--ease); }
.modal__close:hover { background: var(--bg-soft); transform: rotate(90deg); }
.modal__close .icon { width: 22px; height: 22px; }
.modal__icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); box-shadow: 0 0 0 8px rgba(251, 191, 36, .18); }
.modal__icon .icon { width: 30px; height: 30px; }
.modal__title { font-family: var(--font-serif); font-size: 1.55rem; color: var(--navy-900); margin-bottom: 10px; }
.modal__desc { color: var(--text-muted); font-size: .96rem; line-height: 1.65; }
.modal__email { margin: 20px 0 22px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-warm); border: 1px dashed var(--gold-500); font-weight: 700; color: var(--navy-900); word-break: break-all; }
.modal__actions { display: grid; gap: 12px; }
.modal__actions .btn { padding-inline: 18px; white-space: nowrap; }
.modal__fallback { display: inline-block; margin-top: 18px; font-size: .9rem; color: var(--gold-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.modal__fallback:hover { color: var(--navy-900); }

/* ---------- Scroll reveal (JS only) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="up"] { transform: translateY(36px); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 480px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .hero__frame { inset: calc(var(--header-h) + 10px) 22px 22px; }
  .hero .hero__grid { padding-inline: 48px; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .key-points { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid rgba(251, 191, 36, .2); }
  .contact__cards { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .modal__dialog { padding: 52px 44px 36px; }
  .modal__actions { grid-template-columns: 1fr 1fr; }
  .t-slide { padding: 56px 64px; }
  .float-buy { display: none; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .nav-toggle, .nav__head, .nav__cta { display: none; }
  .nav-overlay { display: none; }
  .nav {
    position: static; height: auto; width: auto; padding: 0; overflow: visible; flex-direction: row;
    background: none; border: 0; box-shadow: none; transform: none; visibility: visible; transition: none;
  }
  .nav__list { display: flex; gap: 4px; }
  .nav__link { padding: 8px 14px; font-size: .93rem; border: 0; color: var(--white); }
  .nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gold-400); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero__content { text-align: left; }
  .hero__hook { margin-left: 0; }
  .hero__actions, .hero__badges { justify-content: flex-start; }
  .book { width: 340px; }
  .hero__bg { background:
    radial-gradient(ellipse 45% 70% at 78% 95%, rgba(253, 230, 138, .55), rgba(245, 158, 11, .35) 40%, transparent 72%),
    radial-gradient(circle at 15% 15%, rgba(30, 41, 59, .9), transparent 50%); }

  .about-book__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .about-book__media { margin: 0; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .audience-grid { grid-template-columns: repeat(6, 1fr); }
  .author__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .author__media { margin: 0; }
  .pull-quote { padding: 64px 48px 44px; }
  .buy__grid { grid-template-columns: .7fr 1.3fr; gap: 72px; }
  .buy__cover { max-width: 320px; }
  .buy__text { text-align: left; }
  .buy__lead { margin-left: 0; }
  .buy__buttons { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
}

@media (min-width: 1440px) {
  :root { --container: 1280px; }
  body { font-size: 1.04rem; }
  .book { width: 380px; }
}

/* Small phones */
@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .logo { font-size: 1.12rem; }
  .header-cta { display: none; }
  .btn { padding-inline: 22px; }
  .hero .hero__grid { padding-inline: 28px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .book-float, .float-card, .author__badge, .book-shadow { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .preloader, .scroll-progress, .float-buy, .back-to-top, .modal, .marquee { display: none !important; }
  .hero, .buy, .contact, .stats { color: #000; background: none; }
}
