/* ============================================================
   Crown of Ash & Starlight — V2
   Bellevoire-inspired design: elegant, dark, animated
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #0b0b0f;
    --bg2:      #111117;
    --bg3:      #18181f;
    --surface:  #1e1e27;
    --border:   rgba(255,255,255,.08);
    --text:     #d4d4dc;
    --muted:    #8a8a99;
    --heading:  #f0ece4;
    --gold:     #c9a84c;
    --gold-dim: #a08434;
    --accent:   #e8c36a;
    --red:      #92342e;
    --serif:    'Cormorant Garamond', Georgia, serif;
    --sans:     'Inter', -apple-system, sans-serif;
    --ease:     cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
input { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.label {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--heading);
    font-weight: 400;
    line-height: 1.15;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 2rem;
}

h2 em, h1 em {
    font-style: italic;
    color: var(--gold);
}


/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-block;
    padding: .95rem 2.4rem;
    background: var(--gold);
    color: #0b0b0f;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .04em;
    border-radius: 0;
    transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    padding: .95rem 2.4rem;
    border: 1px solid var(--border);
    color: var(--heading);
    font-weight: 500;
    font-size: .875rem;
    letter-spacing: .04em;
    border-radius: 0;
    transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.btn-ghost:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,.06);
    transform: translateY(-2px);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    transition: background .4s, padding .4s, backdrop-filter .4s;
}
.nav.scrolled {
    background: rgba(11,11,15,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--heading);
    letter-spacing: .02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.nav-links a {
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .3s;
}
.nav-links a:hover { color: var(--heading); }
.nav-cta {
    padding: .55rem 1.6rem !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    transition: background .3s, color .3s !important;
}
.nav-cta:hover {
    background: var(--gold) !important;
    color: #0b0b0f !important;
}

.nav-menu { display: none; flex-direction: column; gap: 5px; }
.nav-menu span {
    width: 22px;
    height: 1.5px;
    background: var(--heading);
    transition: transform .3s, opacity .3s;
}
.nav-menu.active span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav-menu.active span:last-child  { transform: rotate(-45deg) translate(4px, -4px); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: 8rem clamp(1.5rem, 4vw, 3rem) 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    max-width: 560px;
}

.hero-label {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.8rem;
}

.hero-tagline {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* ----- HERO ANIMATIONS ----- */
.anim-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--d, 0) * .15s + .3s);
}
body.loaded .anim-up {
    opacity: 1;
    transform: translateY(0);
}

/* Image reveal: clip-path + scale */
.anim-reveal {
    opacity: 0;
    transition: opacity .01s;
    transition-delay: calc(var(--d, 0) * .15s + .2s);
}
.anim-reveal .hero-image-inner {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.15);
    transition: clip-path 1.2s var(--ease-out), transform 1.4s var(--ease-out);
    transition-delay: calc(var(--d, 0) * .15s + .4s);
    overflow: hidden;
    border-radius: 2px;
}
body.loaded .anim-reveal {
    opacity: 1;
}
body.loaded .anim-reveal .hero-image-inner {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


/* ---------- FULL COVER SHOWCASE ---------- */
.full-cover-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg);
    overflow: hidden;
}

.full-cover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
    pointer-events: none;
}

.full-cover-showcase img {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(201,168,76,.15);
    box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 60px rgba(201,168,76,.06);
    position: relative;
    z-index: 1;
}

.full-cover-caption {
    margin-top: 2rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--muted);
    text-align: center;
    position: relative;
    z-index: 1;
}


/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: marquee-slide 35s linear infinite;
}

.marquee-track span {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--muted);
    flex-shrink: 0;
}

.marquee-track .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

@keyframes marquee-slide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================================
   SCROLL-IN ANIMATIONS (Bellevoire style)
   ============================================================ */
.scroll-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.scroll-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.details-grid .scroll-in:nth-child(2) { transition-delay: .1s; }
.details-grid .scroll-in:nth-child(3) { transition-delay: .2s; }
.details-grid .scroll-in:nth-child(4) { transition-delay: .3s; }

.review-grid .scroll-in:nth-child(2) { transition-delay: .1s; }
.review-grid .scroll-in:nth-child(3) { transition-delay: .2s; }

.social-grid .scroll-in:nth-child(2) { transition-delay: .1s; }
.social-grid .scroll-in:nth-child(3) { transition-delay: .2s; }


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.about-left h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.about-right p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.85;
}

.about-right .closer {
    color: var(--heading);
    font-size: 1.05rem;
}


/* ============================================================
   IMAGE BREAK
   ============================================================ */
.image-break {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.image-break-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-break-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(.45) saturate(.8);
}

.image-break-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(11,11,15,.3) 0%, rgba(11,11,15,.7) 100%);
}

.image-break-overlay h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 0;
}

.image-break-2 .image-break-inner img {
    object-position: center 40%;
}


/* ============================================================
   DETAILS (numbered cards)
   ============================================================ */
.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.detail-item {
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: border-color .4s, background .4s;
}
.detail-item:hover {
    border-color: rgba(201,168,76,.25);
    background: var(--bg2);
}

.detail-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.detail-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--sans);
    margin-bottom: .8rem;
    color: var(--heading);
}

.detail-item p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
}


/* ============================================================
   CHARACTERS (portrait cards with cropped cover art)
   ============================================================ */
.characters > .container > .label,
.characters > .container > h2 { text-align: center; }

.char-portraits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.char-portrait {
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .4s;
}
.char-portrait:hover { border-color: rgba(201,168,76,.25); }

.char-portrait-img {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.char-portrait-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.char-portrait:hover .char-portrait-img img {
    transform: scale(1.05);
}

.char-portrait-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none;
}

.char-portrait-info {
    padding: 2rem 2.5rem 2.5rem;
}

.char-portrait-info .char-title {
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: .4rem;
}

.char-portrait-info h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.char-portrait-info p {
    color: var(--text);
    font-size: .92rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.char-portrait-info blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--muted);
    border-left: 2px solid var(--gold-dim);
    padding-left: 1.2rem;
}


/* ============================================================
   TRILOGY
   ============================================================ */
.trilogy > .container { margin-bottom: 3rem; }

.trilogy-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.trilogy-scroll::-webkit-scrollbar { display: none; }

.trilogy-track {
    display: flex;
    gap: 2.5rem;
    padding-bottom: 2rem;
    min-width: min-content;
}

.trilogy-card {
    flex: 0 0 380px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .4s;
}
.trilogy-card:hover { border-color: rgba(201,168,76,.2); }

.trilogy-cover {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
}

.trilogy-cover img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.trilogy-card:hover .trilogy-cover img {
    transform: scale(1.03);
}

/* Coming-soon book jacket covers */
.coming-cover {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cover-art-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.coming-cover.red {
    background: linear-gradient(175deg, #0f0505 0%, #2a0e0e 30%, #4a1a1a 60%, #2a0e0e 100%);
    border-bottom: 1px solid rgba(180,60,50,.25);
}
.coming-cover.red .cover-art-bg {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(200,60,40,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(255,120,40,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(180,40,30,.1) 0%, transparent 50%);
}

.coming-cover.silver {
    background: linear-gradient(175deg, #080810 0%, #12121f 30%, #1a1a30 60%, #0d0d18 100%);
    border-bottom: 1px solid rgba(180,180,220,.12);
}
.coming-cover.silver .cover-art-bg {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(160,160,220,.1) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(200,200,255,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(220,220,255,.08) 0%, transparent 40%);
}

/* Inner border frame on covers */
.coming-cover::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255,255,255,.06);
    pointer-events: none;
    z-index: 2;
}
.coming-cover.red::after { border-color: rgba(200,80,60,.15); }
.coming-cover.silver::after { border-color: rgba(180,180,220,.1); }

.coming-inner {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 3;
}

.cover-ornament {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: .4;
}
.coming-cover.red .cover-ornament { color: #c85040; }
.coming-cover.silver .cover-ornament { color: #a0a0d0; }

.coming-series {
    display: block;
    font-size: .6rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: .5;
}
.coming-cover.red .coming-series { color: #d09080; }
.coming-cover.silver .coming-series { color: #a0a0c0; }

.coming-inner h4 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 400;
}
.coming-cover.red h4 { color: #e8c0a0; }
.coming-cover.red h4 em { color: #d08060; font-style: italic; }
.coming-cover.silver h4 { color: #d0d0e8; }
.coming-cover.silver h4 em { color: #a0a8d0; font-style: italic; }

.cover-rule {
    width: 40px;
    height: 1px;
    margin: 1.2rem auto;
}
.coming-cover.red .cover-rule { background: rgba(200,80,60,.3); }
.coming-cover.silver .cover-rule { background: rgba(180,180,220,.2); }

.coming-author {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
}
.coming-cover.red .coming-author { color: rgba(220,160,140,.5); }
.coming-cover.silver .coming-author { color: rgba(180,180,210,.45); }

.coming-num {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    display: block;
    margin-top: 1.5rem;
    line-height: 1;
    opacity: .25;
}
.coming-cover.red .coming-num  { color: #c85040; }
.coming-cover.silver .coming-num { color: #a0a0d0; }

.trilogy-info {
    padding: 2rem;
}

.status-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
}
.status-badge.available {
    background: rgba(201,168,76,.15);
    color: var(--gold);
}
.status-badge.coming {
    background: rgba(255,255,255,.06);
    color: var(--muted);
}

.trilogy-info h3 {
    font-size: 1.4rem;
    margin-bottom: .8rem;
}

.trilogy-info p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.trilogy-price {
    display: block;
    font-size: .85rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}


/* ============================================================
   3D FLIPPING BOOK (like Framer interactive book)
   ============================================================ */
.reader-section h2 { text-align: center; }
.reader-section .label { text-align: center; }

.flipbook-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    padding: 2rem 0;
    min-height: 660px;
}

.flipbook {
    width: 440px;
    height: 620px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    /* Keep centered — offset by half width so spine stays in place */
    margin-left: 0;
    margin-right: 0;
}

/* Each page is a card that flips around its LEFT edge */
.flip-page {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.645, .045, .355, 1);
    /* Paper edge shadow */
    border-radius: 0 6px 6px 0;
}

.flip-page.flipped {
    transform: rotateY(-180deg);
}

/* Front and back of each page */
.flip-face {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 2rem 1.2rem;
    overflow: hidden;
    border-radius: 0 6px 6px 0;
}

.flip-front {
    background:
        linear-gradient(135deg, #f5f0e6 0%, #f8f4ec 40%, #f2ece0 100%);
    box-shadow:
        inset -4px 0 12px rgba(0,0,0,.05),
        4px 4px 20px rgba(0,0,0,.25),
        1px 0 0 #d8d0c2;
    border-left: 3px solid #c8c0b0;
}

.flip-back {
    background:
        linear-gradient(225deg, #f5f0e6 0%, #f8f4ec 40%, #f0ead8 100%);
    transform: rotateY(180deg);
    box-shadow:
        inset 4px 0 12px rgba(0,0,0,.05),
        -4px 4px 20px rgba(0,0,0,.2),
        -1px 0 0 #d8d0c2;
    border-right: 3px solid #c8c0b0;
    border-radius: 6px 0 0 6px;
}

/* Page number */
.flip-page-num {
    font-family: var(--serif);
    font-size: .68rem;
    color: #a09080;
    text-align: center;
    margin-bottom: .6rem;
}

/* Page body */
.flip-page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flip-page-body p {
    font-family: var(--serif);
    font-size: .9rem;
    line-height: 1.75;
    color: #2a2520;
    margin-bottom: .7rem;
    text-align: justify;
    hyphens: auto;
}

.flip-page-body p:last-child {
    margin-bottom: 0;
}

.flip-page-body p em {
    color: #1a1510;
}

.flip-page-body .drop-cap::first-letter {
    font-family: var(--serif);
    font-size: 3.4rem;
    float: left;
    line-height: .75;
    margin: .05em .1em 0 0;
    color: #8b6914;
    font-weight: 600;
}

/* Footer */
.flip-page-foot {
    font-family: var(--serif);
    font-size: .5rem;
    color: #b8a898;
    text-align: center;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: .4rem;
}

/* Book cover page (first page of flipbook) */
.flip-cover .flip-front {
    padding: 0;
    background: #1a1510;
    overflow: hidden;
}

.flip-cover .flip-front .flip-page-num,
.flip-cover .flip-front .flip-page-foot {
    display: none;
}

.book-cover-page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1510, #241e16);
}

.book-cover-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 6px 6px 0;
}

/* CTA pages (dark) */
.flip-cta .flip-front,
.flip-cta .flip-back {
    background: linear-gradient(135deg, #1a1510, #241e16);
    border-color: rgba(201,168,76,.15);
}

.book-cta-page {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.book-cta-page h3 {
    font-size: 1.4rem;
    color: var(--heading);
    margin-bottom: 1rem;
}

.book-cta-page p {
    font-family: var(--serif) !important;
    color: var(--text) !important;
    text-align: center !important;
    font-size: .88rem !important;
    margin-bottom: .8rem !important;
}

.book-cta-tagline {
    font-style: italic;
    color: var(--gold) !important;
    margin-bottom: 1.5rem !important;
}

.book-cta-sub {
    display: block;
    margin-top: 1rem;
    font-size: .75rem;
    color: var(--muted);
}

.book-cta-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    height: 100%;
    justify-content: center;
}

.book-cta-cover img {
    max-width: 160px;
    border: 1px solid rgba(201,168,76,.2);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

/* Shadow on the left side (simulates binding) */
.flipbook::before {
    content: '';
    position: absolute;
    top: -2px; bottom: -2px;
    left: -8px;
    width: 12px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(60,50,35,.15) 30%,
        rgba(60,50,35,.35) 70%,
        rgba(60,50,35,.5) 100%);
    border-radius: 4px 0 0 4px;
    z-index: 100;
    pointer-events: none;
}

/* Stacked page edges visible on the right side */
.flipbook::after {
    content: '';
    position: absolute;
    top: 3px; bottom: 3px;
    right: -4px;
    width: 6px;
    background: repeating-linear-gradient(180deg,
        #e8e0d0 0px, #d8d0c0 1px, #ece4d4 2px);
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 2px 6px rgba(0,0,0,.2);
    z-index: 0;
    pointer-events: none;
}

/* Book controls */
.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.book-btn {
    padding: .7rem 1.8rem;
    border: 1px solid var(--border);
    color: var(--heading);
    font-size: .85rem;
    letter-spacing: .04em;
    transition: border-color .3s, background .3s;
}
.book-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: rgba(201,168,76,.06);
}
.book-btn:disabled {
    opacity: .3;
    cursor: default;
}

.book-progress {
    font-size: .8rem;
    color: var(--muted);
}


/* ============================================================
   REVIEWS
   ============================================================ */
.reviews > .container > .label,
.reviews > .container > h2 { text-align: center; }

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: border-color .4s, background .4s;
}
.review-card:hover {
    border-color: rgba(201,168,76,.2);
    background: var(--bg2);
}

.review-stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: .15em;
    margin-bottom: 1.2rem;
}

.review-card p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--heading);
    margin-bottom: 1.5rem;
}

.review-card span {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}


/* ============================================================
   COMMUNITY / SOCIAL
   ============================================================ */
.community > .container > .label,
.community > .container > h2 { text-align: center; }

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.social-card {
    display: block;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.social-card:hover {
    border-color: rgba(201,168,76,.25);
    background: var(--bg2);
    transform: translateY(-4px);
}

.social-card h3 {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

.social-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.social-card span {
    font-size: .82rem;
    color: var(--gold);
    font-weight: 500;
}


/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem);
    border: 1px solid var(--border);
    background: var(--bg2);
}

.newsletter-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.newsletter-inner p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: .95rem;
}

.nl-form {
    display: flex;
    gap: .5rem;
    max-width: 440px;
    margin: 0 auto 1rem;
}

.nl-form input {
    flex: 1;
    padding: .9rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--heading);
    font-size: .9rem;
    outline: none;
    transition: border-color .3s;
}
.nl-form input::placeholder { color: var(--muted); }
.nl-form input:focus { border-color: var(--gold); }

.nl-form .btn-primary {
    white-space: nowrap;
}

.newsletter-inner small {
    font-size: .78rem;
    color: var(--muted);
}


/* ============================================================
   BUY
   ============================================================ */
.buy > .container > .label,
.buy > .container > h2 { text-align: center; }

.buy-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.buy-cover {
    border: 1px solid rgba(201,168,76,.12);
    overflow: hidden;
}

.buy-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s var(--ease);
}

.buy-cover:hover img {
    transform: scale(1.03);
}

.buy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.buy-card {
    padding: 3rem 2.5rem;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: border-color .4s, background .4s;
}
.buy-card:hover {
    border-color: rgba(201,168,76,.2);
    background: var(--bg2);
}

.buy-card.featured {
    border-color: var(--gold-dim);
    background: var(--bg2);
}

.buy-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #0b0b0f;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem 1.2rem;
}

.buy-card h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: .5rem;
}

.buy-price {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--heading);
    margin-bottom: 1rem;
    line-height: 1;
}

.buy-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--heading);
}

.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .04em;
    transition: color .3s;
}
.footer-links a:hover { color: var(--heading); }

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    color: var(--muted);
    transition: color .3s, transform .3s;
    display: flex;
    align-items: center;
}

.footer-socials a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

footer small {
    font-size: .78rem;
    color: var(--muted);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .details-grid { grid-template-columns: repeat(2, 1fr); }
    .trilogy-card { flex: 0 0 340px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(11,11,15,.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-menu { display: flex; z-index: 1001; }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 7rem;
        text-align: center;
    }
    .hero-text { max-width: 100%; }
    .hero-tagline { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-image { max-width: 340px; margin: 0 auto; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .details-grid { grid-template-columns: 1fr; }
    .char-portraits { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .review-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr; }
    .buy-layout { grid-template-columns: 1fr; max-width: 400px; margin: 3rem auto 0; }
    .buy-cover { max-width: 280px; margin: 0 auto; }
    .buy-grid { grid-template-columns: 1fr; }
    .full-cover-showcase img { max-width: 300px; }

    /* Flipbook on mobile */
    .flipbook { width: 320px; height: 480px; }
    .flip-page-body p { font-size: .82rem; }
    .book-controls { gap: 1rem; }
    .book-btn { padding: .6rem 1.2rem; font-size: .8rem; }

    .image-break { height: 50vh; }

    .trilogy-card { flex: 0 0 300px; }

    .nl-form { flex-direction: column; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .btn-primary, .btn-ghost { width: 100%; text-align: center; }
    .char-initial { font-size: 4rem; }
}


/* ============================================================
   FALLBACK: force visibility after 2.5s if observer doesn't fire
   ============================================================ */
@keyframes force-visible {
    to { opacity: 1; transform: none; }
}
