@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================================================
   DESIGN TOKENS
   =================================================================== */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0A0A0C;
    --bg-card: #0f0f12;
    --bg-card-alt: #121218;
    --accent-red: #8B0000;
    --accent-red-bright: #B11226;
    --accent-gold: #C8A74E;
    --accent-gold-dim: rgba(200, 167, 78, 0.12);
    --text-primary: #f0ece4;
    --text-secondary: rgba(240, 236, 228, 0.6);
    --text-muted: rgba(240, 236, 228, 0.35);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(10, 10, 12, 0.8);
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 12px;
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: clip; }
::selection { background: var(--accent-red); color: #fff; }
.serif { font-family: var(--font-serif); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===================================================================
   NAVIGATION
   =================================================================== */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 9000; padding: 0 2rem; transition: background 0.4s ease, border-color 0.4s ease; border-bottom: 1px solid transparent; }
nav.scrolled { background: var(--glass-bg); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-bottom-color: var(--glass-border); }
.nav-container { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-size: 1.1rem; font-weight: 500; letter-spacing: 2px; color: var(--text-primary); white-space: nowrap; }
.nav-center { display: flex; gap: 1.8rem; align-items: center; flex-wrap: nowrap; }
.nav-center a { font-size: 0.68rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); transition: color 0.3s; position: relative; }
.nav-center a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent-gold); transition: width 0.3s var(--ease-out-expo); }
.nav-center a:hover { color: var(--text-primary); }
.nav-center a:hover::after { width: 100%; }
.nav-cta { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.2); padding: 0.55rem 1.4rem; border-radius: 4px; transition: all 0.3s ease; }
.nav-cta:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; z-index: 9001; }
.nav-hamburger span { display: block; width: 100%; height: 1.5px; background: var(--text-primary); position: absolute; left: 0; transition: all 0.3s ease; }
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }
.nav-hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile */
.nav-mobile { display: none; flex-direction: column; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 0.85rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); padding: 0 2rem; transition: color 0.3s; }
.nav-mobile a:hover { color: var(--text-primary); }
.nav-cta-mobile { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff !important; background: var(--accent-red); padding: 0.7rem 1.5rem; border-radius: 4px; text-align: center; margin: 0 2rem; }

/* Tablet: reduce nav gaps */
@media (max-width: 1100px) {
    .nav-center { gap: 1rem; }
    .nav-center a { font-size: 0.6rem; letter-spacing: 1px; }
    .nav-cta { font-size: 0.6rem; padding: 0.45rem 1rem; letter-spacing: 1.5px; }
}
@media (max-width: 900px) {
    .nav-center, .nav-cta { display: none; }
    .nav-hamburger { display: block; }
}

/* ===================================================================
   SCROLL SEQUENCE
   =================================================================== */
.sequence-wrapper { position: relative; height: 500vh; }
.canvas-viewport { position: sticky; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; background: var(--bg-primary); }
#bookCanvas { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); will-change: transform; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.canvas-overlay { position: absolute; inset: 0; background: rgba(5, 5, 5, 0.45); z-index: 1; pointer-events: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 30%, rgba(5,5,5,0.75) 100%); z-index: 2; }

/* ===================================================================
   STORY SECTIONS
   =================================================================== */
.story-section {
    position: absolute; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo);
}
.story-section.visible { opacity: 1; pointer-events: auto; }
.story-content { max-width: 900px; padding: 2rem; }
.story-center { text-align: center; margin: 0 auto; }

.story-eyebrow {
    display: inline-block; font-size: 0.65rem; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase; color: var(--accent-gold);
    margin-bottom: 1.5rem;
    opacity: 0; transform: translateY(20px) scale(0.95);
    transition: all 0.7s var(--ease-out-expo) 0.1s;
}
.story-section.visible .story-eyebrow { opacity: 1; transform: translateY(0) scale(1); }

.story-heading {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500; line-height: 1.1; letter-spacing: -1px;
    margin-bottom: 1.2rem; color: #fff;
    text-shadow: 0 4px 60px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(40px) scale(0.92);
    transition: all 1s var(--ease-out-expo) 0.15s;
}
.story-heading-hero {
    font-size: clamp(3rem, 8.5vw, 8rem);
    letter-spacing: -3px; line-height: 0.95; margin-bottom: 1.5rem;
    white-space: nowrap;
}
.hero-accent { color: var(--accent-red-bright); }
.story-section.visible .story-heading { opacity: 1; transform: translateY(0) scale(1); }

.story-subheading {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 400; font-style: italic;
    color: rgba(255,255,255,0.7); margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(25px);
    transition: all 0.8s var(--ease-out-expo) 0.3s;
}
.story-section.visible .story-subheading { opacity: 1; transform: translateY(0); }

.story-body {
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    color: rgba(255,255,255,0.6); font-weight: 300;
    line-height: 1.7; font-style: italic;
    text-shadow: 0 1px 15px rgba(0,0,0,0.5);
    max-width: 550px; margin-left: auto; margin-right: auto;
    opacity: 0; transform: translateY(25px);
    transition: all 0.8s var(--ease-out-expo) 0.35s;
}
.story-section.visible .story-body { opacity: 1; transform: translateY(0); }

.authority-badges { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.65rem; opacity: 0; transform: translateY(20px); transition: all 0.8s var(--ease-out-expo) 0.5s; }
.authority-badges-center { align-items: center; }
.story-section.visible .authority-badges { opacity: 1; transform: translateY(0); }
.badge { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.65); letter-spacing: 0.5px; }
.badge i { color: var(--accent-gold); font-size: 0.85rem; width: 20px; text-align: center; }

.reveal-ctas { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: all 0.8s var(--ease-out-expo) 0.5s; }
.story-section.visible .reveal-ctas { opacity: 1; transform: translateY(0); }
.cta-btn { display: inline-block; padding: 0.9rem 2rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border-radius: 4px; transition: all 0.35s ease; cursor: pointer; }
.cta-primary { background: var(--accent-red); color: #fff; border: 1px solid var(--accent-red); }
.cta-primary:hover { background: var(--accent-red-bright); border-color: var(--accent-red-bright); box-shadow: 0 8px 30px rgba(139, 0, 0, 0.4); transform: translateY(-2px); }
.cta-secondary { background: transparent; color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.cta-secondary:hover { background: var(--accent-gold); color: var(--bg-primary); box-shadow: 0 8px 30px rgba(200, 167, 78, 0.3); transform: translateY(-2px); }
.cta-ghost { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); }
.cta-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; transform: translateY(-2px); }

.scroll-hint { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; opacity: 0; animation: fadeInHint 1s var(--ease-out-expo) 1s forwards; }
@keyframes fadeInHint { to { opacity: 0.5; } }
.scroll-hint span { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.scroll-mouse { width: 18px; height: 28px; border: 1.5px solid var(--text-muted); border-radius: 12px; position: relative; }
.scroll-wheel { width: 2px; height: 5px; background: var(--text-muted); border-radius: 2px; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); animation: wheelScroll 1.5s infinite; }
@keyframes wheelScroll { 0% { top: 5px; opacity: 1; } 100% { top: 16px; opacity: 0; } }

/* ===================================================================
   SHARED SECTION STYLES
   =================================================================== */
.section-author, .section-media, .section-honors,
.section-book, .section-excerpt, .section-reviews, .section-buy {
    background: var(--bg-primary); position: relative; z-index: 10;
    border-top: 1px solid var(--glass-border);
}
.section-author { background: var(--bg-secondary); }
.section-media { background: var(--bg-primary); }
.section-honors { background: var(--bg-secondary); }
.section-book { background: var(--bg-primary); }
.section-excerpt { background: var(--bg-secondary); }
.section-reviews { background: var(--bg-primary); }

.section-inner { max-width: 1200px; margin: 0 auto; padding: 7rem 2rem; }

/* Section Eyebrow with underline */
.section-eyebrow {
    display: block; text-align: center;
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--accent-gold); margin-bottom: 1.2rem;
    position: relative; padding-bottom: 1rem;
}
.section-eyebrow::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
}

.section-title { text-align: center; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; font-size: 1.05rem; color: var(--text-secondary); font-weight: 300; margin-bottom: 3.5rem; max-width: 550px; margin-left: auto; margin-right: auto; }

/* ===================================================================
   ABOUT THE AUTHOR
   =================================================================== */
.author-layout { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; margin-top: 1rem; }
.author-photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.author-photo-frame::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(200, 167, 78, 0.15); border-radius: var(--radius); pointer-events: none; }
.author-photo-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.author-bio-col p { font-size: 0.95rem; color: var(--text-secondary); font-weight: 300; line-height: 1.8; margin-bottom: 1.2rem; }
.author-bio-col strong { color: var(--text-primary); font-weight: 500; }
.author-bio-lead { font-family: var(--font-serif); font-size: 1.3rem !important; color: var(--accent-gold) !important; font-style: italic; margin-bottom: 1.5rem !important; }
.author-stats { display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.stat-item { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-number { font-size: 2rem; font-weight: 500; color: var(--accent-gold); line-height: 1; }
.stat-label { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; max-width: 120px; }

@media (max-width: 768px) {
    .author-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .author-photo-frame { max-width: 260px; margin: 0 auto; }
    .author-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* ===================================================================
   MEDIA CARDS — Mouse-tracking spotlight effect
   =================================================================== */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.media-card {
    position: relative; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2.5rem 2rem;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.spotlight-glow {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.4s ease;
    pointer-events: none; z-index: 0;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(200, 167, 78, 0.12) 0%,
        transparent 70%
    );
}
.media-card:hover .spotlight-glow { opacity: 1; }
.media-card:hover { border-color: rgba(200, 167, 78, 0.15); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.media-card > *:not(.spotlight-glow) { position: relative; z-index: 1; }
.media-card i { font-size: 1.8rem; color: var(--accent-gold); margin-bottom: 1.5rem; display: block; transition: transform 0.3s ease; }
.media-card:hover i { transform: scale(1.12); }
.media-card h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.8rem; color: var(--text-primary); }
.media-card p { font-size: 0.88rem; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }

/* ===================================================================
   HONORS & ACCOLADES — Tilt (kept)
   =================================================================== */
.honors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.honor-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center;
    transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden;
}
.honor-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-gold), transparent); opacity: 0; transition: opacity 0.4s ease; }
.honor-card:hover::before { opacity: 1; }
.honor-card:hover { border-color: var(--accent-gold-dim); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(200, 167, 78, 0.05); }
.honor-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(200, 167, 78, 0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; transition: all 0.4s ease; }
.honor-card:hover .honor-icon { background: rgba(200, 167, 78, 0.2); box-shadow: 0 0 30px rgba(200, 167, 78, 0.15); transform: scale(1.1); }
.honor-icon i { font-size: 1.3rem; color: var(--accent-gold); }
.honor-card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-primary); }
.honor-card p { font-size: 0.85rem; color: var(--text-secondary); font-weight: 300; line-height: 1.6; margin-bottom: 0.8rem; }
.honor-year { display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold); background: rgba(200, 167, 78, 0.08); padding: 0.35rem 0.9rem; border-radius: 20px; }
.tilt-card { transform-style: preserve-3d; transition: all 0.4s var(--ease-out-expo); }

/* ===================================================================
   ABOUT THE BOOK — Red bottom-bar reveal
   =================================================================== */
.book-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.book-detail-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden;
}
.book-detail-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--accent-red), var(--accent-red-bright), var(--accent-red));
    transform: scaleX(0); transition: transform 0.5s var(--ease-out-expo); transform-origin: left;
}
.book-detail-card:hover::before { transform: scaleX(1); }
.book-detail-card:hover { border-color: rgba(139, 0, 0, 0.2); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.book-detail-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(139, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: all 0.3s ease; }
.book-detail-card:hover .book-detail-icon { background: rgba(139, 0, 0, 0.25); transform: scale(1.08); }
.book-detail-icon i { font-size: 1.2rem; color: var(--accent-red-bright); }
.book-detail-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.8rem; color: var(--text-primary); }
.book-detail-card p { font-size: 0.88rem; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }

.book-quote { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--glass-border); margin-top: 1rem; }
.book-quote p { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-style: italic; color: var(--text-primary); margin-bottom: 1rem; line-height: 1.5; }
.book-quote cite { font-size: 0.75rem; font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold); font-weight: 600; }

/* ===================================================================
   EXCERPT / FLIPBOOK — Natural aspect ratio, no stretching
   =================================================================== */
.flipbook-wrapper { max-width: 960px; margin: 0 auto; }
.flipbook-container {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
}
.flipbook-book {
    display: flex; align-items: stretch; justify-content: center;
    gap: 0; background: #1a1a1e; border-radius: 8px; overflow: hidden;
    position: relative;
}
.flipbook-page {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: #faf9f6; position: relative; overflow: hidden;
    /* Natural page height — set by JS based on PDF aspect ratio */
    min-height: 420px;
}
.flipbook-page-left { box-shadow: inset -8px 0 16px rgba(0,0,0,0.06); }
.flipbook-page-right { box-shadow: inset 8px 0 16px rgba(0,0,0,0.06); }

.flipbook-spine {
    width: 6px; flex-shrink: 0; z-index: 2;
    background: linear-gradient(180deg, #d4c5a0, #b8a67a, #d4c5a0);
    box-shadow: -3px 0 8px rgba(0,0,0,0.15), 3px 0 8px rgba(0,0,0,0.15);
}

/* Canvas sits naturally — no forced stretch */
.flipbook-page canvas {
    display: block; max-width: 100%; height: auto;
}

/* Page turn animation — realistic page curl */
.flipbook-page-right.turning {
    animation: pageCurlRight 0.7s ease-in-out;
    transform-origin: left center;
}
.flipbook-page-left.turning {
    animation: pageCurlLeft 0.7s ease-in-out;
    transform-origin: right center;
}
@keyframes pageCurlRight {
    0% { transform: perspective(800px) rotateY(0deg) scale(1); box-shadow: none; }
    20% { transform: perspective(800px) rotateY(-8deg) scale(1.01); }
    45% { transform: perspective(800px) rotateY(-35deg) scale(1.02); box-shadow: -15px 0 30px rgba(0,0,0,0.25); }
    70% { transform: perspective(800px) rotateY(-12deg) scale(1.01); }
    100% { transform: perspective(800px) rotateY(0deg) scale(1); box-shadow: none; }
}
@keyframes pageCurlLeft {
    0% { transform: perspective(800px) rotateY(0deg) scale(1); box-shadow: none; }
    20% { transform: perspective(800px) rotateY(8deg) scale(1.01); }
    45% { transform: perspective(800px) rotateY(35deg) scale(1.02); box-shadow: 15px 0 30px rgba(0,0,0,0.25); }
    70% { transform: perspective(800px) rotateY(12deg) scale(1.01); }
    100% { transform: perspective(800px) rotateY(0deg) scale(1); box-shadow: none; }
}

/* Page fold shadow overlay during turn */
.flipbook-page.turning::after {
    content: ''; position: absolute; inset: 0;
    pointer-events: none;
    animation: foldShadow 0.7s ease-in-out;
}
.flipbook-page-right.turning::after {
    background: linear-gradient(to left, transparent 40%, rgba(0,0,0,0.15) 100%);
}
.flipbook-page-left.turning::after {
    background: linear-gradient(to right, transparent 40%, rgba(0,0,0,0.15) 100%);
}
@keyframes foldShadow {
    0% { opacity: 0; }
    30% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.flipbook-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}
.flip-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--glass-border); background: var(--bg-card-alt);
    color: var(--text-primary); font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.flip-btn:hover { background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold); transform: scale(1.08); box-shadow: 0 5px 20px rgba(200, 167, 78, 0.3); }
.flip-btn:active { transform: scale(0.95); }
.flip-btn-fullscreen { margin-left: 1rem; }
.flip-page-info { font-size: 0.75rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); min-width: 140px; text-align: center; }
.flipbook-hint { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 1rem; letter-spacing: 1px; }
.flipbook-hint i { margin-right: 0.3rem; color: var(--accent-gold); }

/* Fullscreen flipbook */
.flipbook-fullscreen-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.96);
    display: none; align-items: center; justify-content: center;
}
.flipbook-fullscreen-overlay.active { display: flex; }
.flipbook-fullscreen-inner {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%; height: 100%; padding: 2rem;
}
.flip-fullscreen-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; z-index: 10001;
}
.flip-fullscreen-close:hover { background: var(--accent-red); border-color: var(--accent-red); }
.flipbook-fullscreen-book {
    display: flex; align-items: stretch;
    max-width: 90vw; max-height: 80vh; width: auto;
}
.flipbook-fullscreen-book .flipbook-page {
    min-height: auto; flex: none; /* Don't stretch — let canvas dictate size */
}
.flipbook-fullscreen-book canvas {
    max-height: 78vh; width: auto; max-width: 44vw;
}
.flipbook-fullscreen-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin-top: 1.5rem;
}

/* ===================================================================
   TESTIMONIALS — Glassmorphism showcase with pill nav
   =================================================================== */
.testimonial-stage { max-width: 750px; margin: 0 auto; position: relative; }

/* Ambient glow behind the active card */
.testimonial-glow {
    position: absolute; top: 50%; left: 50%;
    width: 400px; height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(200, 167, 78, 0.08) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Glass card */
.testimonial-glass {
    position: relative; z-index: 1;
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3.5rem 3rem 3rem;
    min-height: 280px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}

.testimonial-quote-mark {
    font-size: 5rem; line-height: 0.5;
    color: rgba(200, 167, 78, 0.2);
    margin-bottom: 1.5rem;
    user-select: none;
}

.testimonial-slides { position: relative; width: 100%; }
.testimonial-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(15px) scale(0.98);
    transition: all 0.6s var(--ease-out-expo);
    pointer-events: none;
}
.testimonial-slide.active {
    opacity: 1; transform: translateY(0) scale(1);
    pointer-events: auto; position: relative;
}

.testimonial-text {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-style: italic; font-weight: 400;
    color: var(--text-secondary); line-height: 1.8;
    max-width: 580px; margin-bottom: 2rem;
}

.testimonial-meta { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.testimonial-stars { color: var(--accent-gold); font-size: 0.85rem; letter-spacing: 3px; }
.testimonial-name {
    font-size: 0.85rem; font-weight: 500;
    color: var(--accent-gold); letter-spacing: 1.5px;
}

/* Pill navigation */
.testimonial-pills {
    display: flex; justify-content: center; gap: 0.6rem;
    margin-top: 2rem; position: relative; z-index: 1;
}
.testimonial-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; padding: 0.45rem 1.1rem;
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 1px; color: var(--text-muted);
    cursor: pointer; transition: all 0.35s ease;
}
.testimonial-pill:hover { border-color: rgba(200, 167, 78, 0.3); color: var(--text-secondary); }
.testimonial-pill.active {
    background: linear-gradient(135deg, var(--accent-gold), #b8932d);
    border-color: var(--accent-gold);
    color: var(--bg-primary); font-weight: 600;
    box-shadow: 0 4px 16px rgba(200, 167, 78, 0.3);
}

/* ===================================================================
   BUY GRID — Radial glow
   =================================================================== */
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.store-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; background: var(--bg-card);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 3rem 2rem; transition: all 0.4s var(--ease-out-expo);
    cursor: pointer; position: relative; overflow: hidden;
}
.store-card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(circle at 50% 100%, rgba(139,0,0,0.15), transparent 70%);
    pointer-events: none;
}
.store-card:hover { border-color: var(--accent-red); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(139,0,0,0.2); }
.store-card:hover::after { opacity: 1; }
.store-card i { font-size: 2.5rem; color: var(--text-secondary); margin-bottom: 1.2rem; transition: all 0.3s ease; }
.store-card:hover i { color: var(--accent-gold); transform: scale(1.15); }
.store-name { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--text-primary); }
.store-detail { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--glass-border); text-align: center; padding: 5rem 2rem 3rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { display: block; font-size: 1.5rem; font-weight: 400; letter-spacing: 3px; margin-bottom: 0.5rem; color: var(--text-primary); }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; }
.footer-links { margin-bottom: 2rem; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 0.5rem; border-radius: 50%; border: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.95rem; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--accent-gold); border-color: var(--accent-gold); transform: translateY(-2px); }
.footer-copy { font-size: 0.7rem; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) { .honors-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
    nav { padding: 0 1.25rem; }
    .nav-mobile { padding-top: 1rem; gap: 1.1rem; }
    .story-heading-hero { font-size: clamp(2.2rem, 10vw, 4rem); white-space: nowrap; }
    .story-heading { font-size: clamp(1.8rem, 6vw, 3rem); }
    .story-content { padding: 1.5rem; }
    .reveal-ctas { flex-direction: column; align-items: center; }
    .cta-btn { width: 100%; max-width: 280px; text-align: center; }
    .section-inner { padding: 5rem 1.25rem; }
    .media-grid, .book-content-grid { grid-template-columns: 1fr; }
    .honors-grid { grid-template-columns: 1fr; }
    .buy-grid { grid-template-columns: 1fr 1fr; }
    .book-quote { padding: 2rem 1rem; }

    /* Flipbook — single page on mobile, no spine */
    .flipbook-book { flex-direction: column; }
    .flipbook-spine { display: none; }
    .flipbook-page-right { display: none; }
    .flipbook-page-left { min-height: auto; }
    .flipbook-page canvas { max-width: 100%; }
    .flipbook-container { padding: 1rem; }
    /* Fullscreen mobile: also single page */
    .flipbook-fullscreen-book { flex-direction: column; }
    .flipbook-fullscreen-book .flipbook-spine { display: none; }
    .flipbook-fullscreen-book .flipbook-page-right { display: none; }
    .flipbook-fullscreen-book canvas { max-height: 80vh; max-width: 92vw; }

    /* Testimonials */
    .testimonial-glass { padding: 2.5rem 1.5rem 2rem; }
    .testimonial-pills { flex-wrap: wrap; }
    .testimonial-pill { font-size: 0.65rem; padding: 0.35rem 0.8rem; }
}

@media (max-width: 480px) {
    .buy-grid { grid-template-columns: 1fr; }
    .nav-brand { font-size: 0.9rem; letter-spacing: 1px; }
    .author-stats { flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
    .stat-label { max-width: none; }
    .story-heading-hero { font-size: clamp(1.8rem, 11vw, 3rem); }
}