/* ============================================================
   INHERITED RUINS — E. M. Reilly
   Theme palette drawn from the book cover:
   slate blue cover · pale sky · moss & vines · cream type
   ============================================================ */

:root {
    --c-slate:      #7d9cb0;   /* cover blue            */
    --c-slate-deep: #53758c;   /* deep slate            */
    --c-ink:        #24384a;   /* darkest ink           */
    --c-ink-2:      #1a2a38;   /* section dark          */
    --c-sky:        #c9d9e2;   /* pale sky              */
    --c-cream:      #f4efe6;   /* cover type cream      */
    --c-moss:       #7c8f63;   /* vine green            */
    --c-moss-deep:  #55663f;

    --font-display: 'Cinzel', serif;
    --font-body:    'Cormorant Garamond', serif;

    --ease-out:     cubic-bezier(.22, 1, .36, 1);
    --header-h:     84px;
    --radius:       18px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--c-ink);
    background: var(--c-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--c-slate); color: var(--c-cream); }

.container { width: min(1200px, 92%); margin-inline: auto; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-ink-2); }
::-webkit-scrollbar-thumb { background: var(--c-slate-deep); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-slate); }

/* ---------- Grain overlay ---------- */
.grain {
    position: fixed; inset: -50%;
    width: 200%; height: 200%;
    pointer-events: none; z-index: 2000;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 9s steps(10) infinite;
}
@keyframes grainShift {
    0%,100% { transform: translate(0,0); }
    20% { transform: translate(-2%,2%); }
    40% { transform: translate(2%,-1%); }
    60% { transform: translate(-1%,-2%); }
    80% { transform: translate(1%,2%); }
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 480px; height: 480px;
    border-radius: 50%;
    pointer-events: none; z-index: 1;
    background: radial-gradient(circle, rgba(125,156,176,.12), transparent 65%);
    transform: translate(-50%, -50%);
    will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed; inset: 0; z-index: 5000;
    background:
        radial-gradient(1200px 600px at 70% 20%, rgba(125,156,176,.35), transparent 60%),
        var(--c-ink-2);
    display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }

.preloader__book {
    width: 110px; height: 76px;
    margin: 0 auto 34px;
    position: relative;
    perspective: 700px;
}
.preloader__page, .preloader__cover {
    position: absolute; inset: 0;
    border-radius: 4px 10px 10px 4px;
    transform-origin: left center;
    backface-visibility: hidden;
}
.preloader__page {
    background: linear-gradient(90deg, #e8e2d5, #fdfaf3);
    border: 1px solid rgba(36,56,74,.15);
    animation: pageFlip 2.4s var(--ease-out) infinite;
}
.preloader__page:nth-child(1) { animation-delay: 0s; }
.preloader__page:nth-child(2) { animation-delay: .25s; }
.preloader__page:nth-child(3) { animation-delay: .5s; }
@keyframes pageFlip {
    0%   { transform: rotateY(0deg);   opacity: 1; }
    55%  { transform: rotateY(-140deg); opacity: .9; }
    100% { transform: rotateY(-140deg); opacity: 0; }
}
.preloader__cover {
    transform: translateZ(0);
    background: linear-gradient(135deg, var(--c-slate), var(--c-slate-deep));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 6px 6px 24px rgba(0,0,0,.35);
    animation: coverFloat 2.4s ease-in-out infinite;
}
@keyframes coverFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}
.preloader__mark {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.4rem;
    letter-spacing: .1em; color: var(--c-cream);
}

.preloader__title { margin-bottom: 26px; }
.preloader__word {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--c-cream);
    animation: wordIn 1.2s var(--ease-out) both;
}
.preloader__word:last-child { animation-delay: .25s; color: var(--c-sky); }
@keyframes wordIn {
    from { opacity: 0; transform: translateY(24px); letter-spacing: .55em; }
    to   { opacity: 1; transform: translateY(0);    letter-spacing: .32em; }
}

.preloader__bar {
    width: 220px; height: 2px; margin: 0 auto 14px;
    background: rgba(201,217,226,.18);
    border-radius: 2px; overflow: hidden;
}
.preloader__bar span {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--c-slate), var(--c-sky));
    transition: width .2s ease;
}
.preloader__percent {
    font-family: var(--font-display);
    font-size: .8rem; letter-spacing: .3em;
    color: var(--c-sky);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1102; /* above mobile-menu overlay so the burger/X stays clickable */
    transition: background .4s ease, height .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
    height: 68px;
    background: rgba(26,42,56,.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.header__inner {
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--c-cream); }
.brand__mark { width: 40px; height: 40px; color: var(--c-sky); transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-shadow: 0 1px 5px rgba(0,0,0,.55); }
.brand__sub  { font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--c-sky); text-shadow: 0 1px 5px rgba(0,0,0,.55); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
    position: relative;
    font-size: .95rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--c-cream);
    text-shadow: 0 1px 5px rgba(0,0,0,.55);
    padding: 6px 0;
    transition: color .3s ease;
}
.nav__link .nav__num {
    font-size: .62rem; color: var(--c-sky);
    margin-right: 6px; letter-spacing: .1em;
    vertical-align: 2px;
}
.nav__link::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--c-sky);
    transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link.active { color: var(--c-sky); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--c-slate);
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .8rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    overflow: hidden; isolation: isolate;
    transition: color .4s ease, transform .3s ease, box-shadow .4s ease;
    will-change: transform;
}
.btn__icon { transition: transform .35s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(5px); }

.btn--solid {
    background: var(--btn-bg); color: var(--c-cream);
    box-shadow: 0 10px 30px rgba(83,117,140,.35);
}
.btn--solid::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: var(--c-moss-deep);
    transform: translateY(101%);
    transition: transform .5s var(--ease-out);
}
.btn--solid:hover::before { transform: translateY(0); }
.btn--solid:hover { box-shadow: 0 14px 36px rgba(85,102,63,.45); }

.btn--ghost {
    color: var(--c-cream);
    border: 1px solid rgba(244,239,230,.6);
    background: rgba(26,42,56,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    border-color: var(--c-sky);
    color: var(--c-sky);
    background: rgba(26,42,56,.7);
}

.btn--outline-light {
    color: var(--c-cream);
    border: 1px solid rgba(244,239,230,.45);
}
.btn--outline-light:hover { border-color: var(--c-sky); color: var(--c-sky); }

.btn--lg { padding: 17px 38px; font-size: .82rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--nav { padding: 11px 24px; font-size: .72rem; }

/* ---------- Burger ---------- */
.burger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    z-index: 1101;
}
.burger span {
    display: block; width: 26px; height: 2px;
    background: var(--c-cream);
    transition: transform .4s var(--ease-out), opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0;
    transition: opacity .5s ease, visibility 0s .5s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition: opacity .5s ease; }
.mobile-menu__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 500px at 80% 10%, rgba(125,156,176,.4), transparent 60%),
        var(--c-ink-2);
}
.mobile-menu__nav {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
}
.mobile-menu__link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    color: var(--c-cream);
    padding: 10px 20px;
    letter-spacing: .08em;
    opacity: 0; transform: translateY(30px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.mobile-menu.open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: .16s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: .32s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: .40s; }
.mobile-menu__link:hover { color: var(--c-sky); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero__inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 40px;
}

.hero__kicker {
    font-family: var(--font-display);
    font-size: .8rem; font-weight: 500;
    letter-spacing: .42em; text-transform: uppercase;
    color: var(--c-cream);
    text-shadow: 0 2px 12px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.5);
    margin-bottom: 22px;
    display: flex; align-items: center; gap: 14px;
}
.hero__kicker::before { content: ''; width: 44px; height: 1px; background: var(--c-sky); }

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.2rem, 7.5vw, 6.2rem);
    line-height: 1.02;
    color: var(--c-cream);
    text-shadow: 0 4px 40px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.45);
    margin-bottom: 26px;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--accent {
    color: var(--c-cream);
    font-style: normal;
    letter-spacing: .06em;
}

.hero__tagline {
    max-width: 520px;
    font-size: 1.25rem; font-weight: 500;
    color: var(--c-cream);
    text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 3px 16px rgba(0,0,0,.65), 0 8px 36px rgba(0,0,0,.5);
    margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }

.hero__meta {
    display: flex; gap: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(244,239,230,.2);
    max-width: 480px;
}
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong {
    font-family: var(--font-display);
    font-size: 1.5rem; color: var(--c-cream);
    text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 3px 18px rgba(0,0,0,.6);
}
.hero__meta span {
    font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--c-cream);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 12px rgba(0,0,0,.6);
}

/* ---------- Floating 3D book ---------- */
.hero__book-wrap {
    position: relative;
    display: flex; justify-content: center;
    perspective: 1400px;
}
.hero__book-glow {
    position: absolute; top: 50%; left: 50%;
    width: 420px; height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201,217,226,.32), transparent 65%);
    filter: blur(10px);
    animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(1); }
    50%     { opacity: .9;  transform: translate(-50%,-50%) scale(1.12); }
}

.book3d { position: relative; width: min(330px, 68vw); aspect-ratio: 2 / 3; }
.book3d__inner {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-24deg) rotateX(6deg);
    will-change: transform;
}
.book3d__front {
    position: absolute; inset: 0;
    border-radius: 3px 10px 10px 3px;
    overflow: hidden;
    transform: translateZ(17px);
    box-shadow: -18px 24px 60px rgba(0,0,0,.45);
    background: var(--c-slate);
}
.book3d__front img { width: 100%; height: 100%; object-fit: cover; }
.book3d__shine {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 46%, transparent 60%);
    transform: translateX(-120%);
    animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine {
    0%, 55%, 100% { transform: translateX(-120%); }
    75%           { transform: translateX(120%); }
}
.book3d__spine {
    position: absolute; top: 0; left: 0;
    width: 34px; height: 100%;
    transform: rotateY(-90deg) translateZ(17px) translateX(-17px);
    background: linear-gradient(90deg, #4c6c81, var(--c-slate-deep));
    border-radius: 3px 0 0 3px;
}
.book3d__pages {
    position: absolute; top: 4px; right: 0;
    width: 30px; height: calc(100% - 8px);
    transform: rotateY(90deg) translateZ(16px) translateX(15px);
    background:
        repeating-linear-gradient(180deg, #f3ead9 0 2px, #d9cdb4 2px 3px);
    border-radius: 0 3px 3px 0;
}
.book3d__shadow {
    position: absolute; bottom: -44px; left: 50%;
    width: 70%; height: 34px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0,0,0,.4), transparent 70%);
    filter: blur(6px);
    animation: shadowPulse 5s ease-in-out infinite;
}
@keyframes shadowPulse {
    0%,100% { opacity: .6; transform: translateX(-50%) scale(1); }
    50%     { opacity: .35; transform: translateX(-50%) scale(.88); }
}

.book3d--lg { width: min(440px, 82vw); }

.float-anim { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-18px); }
}

/* ---------- Scroll hint ---------- */
.hero__scroll {
    position: absolute; left: 50%; bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-text {
    font-size: .68rem; letter-spacing: .4em; text-transform: uppercase;
    color: var(--c-cream);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 2px 12px rgba(0,0,0,.6);
}
.hero__scroll-line {
    width: 1px; height: 46px;
    background: rgba(244,239,230,.35);
    position: relative; overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute; top: -50%; left: 0;
    width: 100%; height: 50%;
    background: var(--c-sky);
    animation: scrollLine 2s var(--ease-out) infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 110%; } }

/* ---------- Floating leaves ---------- */
.leaves { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.leaf {
    position: absolute;
    width: 16px; height: 16px;
    background: radial-gradient(circle at 30% 30%, #93a877, var(--c-moss-deep));
    border-radius: 60% 0 60% 0;
    opacity: 0;
    animation: leafFall 12s linear infinite;
}
.leaf:nth-child(1) { left: 8%;  animation-delay: 0s;   --scale: .8; }
.leaf:nth-child(2) { left: 22%; animation-delay: 3s;   --scale: 1.1; }
.leaf:nth-child(3) { left: 46%; animation-delay: 6s;   --scale: .7; }
.leaf:nth-child(4) { left: 64%; animation-delay: 1.5s; --scale: .9; }
.leaf:nth-child(5) { left: 78%; animation-delay: 7.5s; --scale: 1; }
.leaf:nth-child(6) { left: 90%; animation-delay: 4.5s; --scale: .75; }
@keyframes leafFall {
    0%   { transform: translateY(-8vh) rotate(0deg) scale(var(--scale,1)); opacity: 0; }
    10%  { opacity: .8; }
    90%  { opacity: .5; }
    100% { transform: translateY(105vh) rotate(320deg) scale(var(--scale,1)); opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    background: var(--c-ink-2);
    border-block: 1px solid rgba(125,156,176,.25);
    overflow: hidden;
    padding: 18px 0;
}
.marquee__track {
    display: flex; align-items: center; gap: 34px;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
}
.marquee__track span {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 500;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--c-sky);
}
.marquee__track i { color: var(--c-moss); font-style: normal; font-size: .9rem; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { position: relative; padding: 120px 0; overflow: hidden; }

.section__head { text-align: center; margin-bottom: 72px; position: relative; z-index: 2; }
.section__kicker {
    font-family: var(--font-display);
    font-size: .74rem; letter-spacing: .42em; text-transform: uppercase;
    color: var(--c-slate-deep);
    display: inline-flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}
.section__kicker::before, .section__kicker::after {
    content: ''; width: 34px; height: 1px; background: currentColor; opacity: .5;
}
.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: var(--c-ink);
}
.section__head--light .section__title { color: var(--c-cream); }
.section__head--light .section__kicker { color: var(--c-sky); }

.section__rule {
    display: block;
    width: 64px; height: 3px; margin: 22px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--c-slate), var(--c-moss));
}

.section__bg-word {
    position: absolute; top: 8%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(6rem, 18vw, 15rem);
    letter-spacing: .05em;
    color: rgba(125,156,176,.11);
    left: -2%;
    user-select: none; pointer-events: none;
    white-space: nowrap;
}
.section__bg-word--right { left: auto; right: -2%; top: auto; bottom: 4%; }

/* ============================================================
   ABOUT THE BOOK
   ============================================================ */
.about-book { background: linear-gradient(180deg, var(--c-cream) 0%, #e9e6da 100%); }

.about-book__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
    position: relative; z-index: 2;
}
.about-book__visual { position: relative; display: flex; justify-content: center; }

.about-book__badge {
    position: absolute; right: 4%; bottom: -8px;
    display: flex; flex-direction: column; align-items: center;
    width: 96px; height: 96px;
    justify-content: center;
    background: var(--c-ink-2);
    color: var(--c-cream);
    border-radius: 50%;
    box-shadow: 0 16px 40px rgba(26,42,56,.35);
    animation: floatY 5s ease-in-out infinite reverse;
}
.about-book__badge-num {
    font-family: var(--font-display);
    font-size: 1.7rem; font-weight: 700; color: var(--c-sky); line-height: 1;
}
.about-book__badge-label {
    font-size: .56rem; letter-spacing: .18em; text-transform: uppercase;
    text-align: center; opacity: .8; padding: 0 8px;
}

.lead { font-size: 1.28rem; margin-bottom: 22px; }
.dropcap::first-letter {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.6em;
    float: left;
    line-height: .8;
    padding: 8px 14px 0 0;
    color: var(--c-slate-deep);
}
.about-book__copy p { color: rgba(36,56,74,.88); }
.about-book__copy p + p { margin-top: 18px; }

.about-book__copy .btn { margin-top: 34px; }

/* ============================================================
   ABOUT THE AUTHOR
   ============================================================ */
.about-author { background: var(--c-ink-2); color: var(--c-cream); }
.about-author__bg { position: absolute; inset: 0; }
.about-author__bg img {
    width: 100%; height: 120%;
    object-fit: cover;
    opacity: .18;
    will-change: transform;
}
.about-author__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--c-ink-2) 0%, rgba(26,42,56,.55) 45%, var(--c-ink-2) 100%);
}
.about-author .container { position: relative; z-index: 2; }

.author-side-label {
    position: absolute;
    left: 26px; top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: .66rem; font-weight: 600;
    letter-spacing: .55em; text-transform: uppercase;
    color: rgba(201,217,226,.4);
    z-index: 2;
    user-select: none;
}

.about-author__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: stretch;
}

.author-portrait {
    position: relative;
    height: 100%;
    min-height: 540px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        26px 26px 0 0 rgba(125,156,176,.22),
        0 30px 80px rgba(0,0,0,.5);
    transform: rotate(-2deg);
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.author-portrait:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
        18px 18px 0 0 rgba(124,143,99,.35),
        0 34px 90px rgba(0,0,0,.55);
}
.author-portrait::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(26,42,56,.35) 0%, rgba(26,42,56,0) 30%, rgba(26,42,56,0) 60%, rgba(26,42,56,.55) 100%);
    pointer-events: none;
}
.author-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.author-portrait:hover img { transform: scale(1.06); }

.author-portrait__tag {
    position: absolute; left: 16px; bottom: 16px;
    z-index: 2;
    background: rgba(26,42,56,.75);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(201,217,226,.25);
}
.author-portrait__tag span {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700;
    letter-spacing: .1em; font-size: .95rem;
}
.author-portrait__tag span::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-moss);
    box-shadow: 0 0 8px rgba(124,143,99,.9);
}
.author-portrait__tag small {
    font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--c-sky);
}

.author-quote {
    position: relative;
    background: rgba(125,156,176,.10);
    border: 1px solid rgba(125,156,176,.28);
    border-left: 3px solid var(--c-slate);
    border-radius: 4px 18px 18px 4px;
    padding: 30px 32px 30px 38px;
    margin-bottom: 34px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.author-quote__mark {
    position: absolute;
    top: -30px; left: 18px;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--c-slate);
    opacity: .95;
    text-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.author-quote p {
    font-family: var(--font-display);
    font-size: 1.16rem; line-height: 1.75;
    color: var(--c-sky);
    font-weight: 400;
}
.about-author__copy > p { color: rgba(244,239,230,.88); margin-bottom: 16px; }
.about-author__copy strong { color: var(--c-cream); }

.about-author__signature { margin-top: 34px; }
.signature {
    font-family: 'Cormorant', cursive;
    font-style: italic;
    font-size: 2.6rem;
    color: var(--c-sky);
    display: inline-block;
    transform: rotate(-4deg);
}
.signature::after {
    content: '';
    display: block;
    width: 150px; height: 1px;
    margin: 12px 0 0 10px;
    background: linear-gradient(90deg, rgba(201,217,226,.65), transparent);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(125,156,176,.42), transparent 62%),
        radial-gradient(800px 400px at 8% 95%, rgba(124,143,99,.15), transparent 60%),
        linear-gradient(180deg, #e9e6da 0%, var(--c-cream) 45%, #e2dfd1 100%);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative; z-index: 2;
}
.review-card {
    position: relative;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(125,156,176,.45);
    box-shadow: 0 18px 42px rgba(83,117,140,.14);
    border-radius: var(--radius);
    padding: 38px 30px;
    display: flex; flex-direction: column;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
    will-change: transform;
}
/* cracked-stone texture across the card (reusable: add .cracked / .cracked--light) */
.review-card::before,
.cracked::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%2324384a' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 0 L85 55 L72 95 L110 150 L95 210 L130 265 L118 330 L140 400'/%3E%3Cpath d='M72 95 L40 120 L18 165' stroke-opacity='.75'/%3E%3Cpath d='M110 150 L155 165 L185 205' stroke-opacity='.65'/%3E%3Cpath d='M95 210 L60 235' stroke-opacity='.55'/%3E%3Cpath d='M215 40 L200 85 L225 130 L205 180' stroke-opacity='.8'/%3E%3Cpath d='M225 130 L262 146' stroke-opacity='.55'/%3E%3Cpath d='M40 300 L76 322 L96 358' stroke-opacity='.7'/%3E%3Cpath d='M246 288 L226 330 L242 378' stroke-opacity='.65'/%3E%3Cpath d='M150 60 L138 78' stroke-opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    opacity: .2;
    pointer-events: none;
    z-index: 1;
    transition: opacity .4s;
}
/* chipped crack at the top corner */
.review-card::after,
.cracked::after {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 96px; height: 76px;
    border-radius: 0 var(--radius) 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%2324384a' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M100 2 L78 16 L70 34'/%3E%3Cpath d='M78 16 L60 10 L44 16' stroke-opacity='.7'/%3E%3Cpath d='M70 34 L52 40' stroke-opacity='.6'/%3E%3Cpath d='M84 26 L88 44' stroke-opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    opacity: .35;
    pointer-events: none;
    z-index: 1;
}
/* tilted, like fallen slabs */
.reviews-track .review-slide:nth-child(3n+1) .review-card { transform: rotate(-.55deg); }
.reviews-track .review-slide:nth-child(3n+2) .review-card { transform: rotate(.4deg); }
.reviews-track .review-slide:nth-child(3n)   .review-card { transform: rotate(-.3deg); }
.reviews-track .review-slide .review-card:hover {
    transform: rotate(0deg) translateY(-6px);
}
.review-card:hover::before,
.cracked:hover::before { opacity: .32; }
/* light cracks for dark surfaces */
.cracked--light::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23f4efe6' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 0 L85 55 L72 95 L110 150 L95 210 L130 265 L118 330 L140 400'/%3E%3Cpath d='M72 95 L40 120 L18 165' stroke-opacity='.75'/%3E%3Cpath d='M110 150 L155 165 L185 205' stroke-opacity='.65'/%3E%3Cpath d='M95 210 L60 235' stroke-opacity='.55'/%3E%3Cpath d='M215 40 L200 85 L225 130 L205 180' stroke-opacity='.8'/%3E%3Cpath d='M225 130 L262 146' stroke-opacity='.55'/%3E%3Cpath d='M40 300 L76 322 L96 358' stroke-opacity='.7'/%3E%3Cpath d='M246 288 L226 330 L242 378' stroke-opacity='.65'/%3E%3Cpath d='M150 60 L138 78' stroke-opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .14;
}
.cracked--light::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23f4efe6' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M100 2 L78 16 L70 34'/%3E%3Cpath d='M78 16 L60 10 L44 16' stroke-opacity='.7'/%3E%3Cpath d='M70 34 L52 40' stroke-opacity='.6'/%3E%3Cpath d='M84 26 L88 44' stroke-opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .28;
}
/* contact section cracks disabled — only the form column stays cracked */
.contact::before { content: none; }
.review-card:hover {
    box-shadow: 0 26px 60px rgba(83,117,140,.22);
    border-color: rgba(125,156,176,.55);
}
.review-card--featured {
    background: var(--c-slate);
    color: var(--c-cream);
    border-color: transparent;
    transform: translateY(-14px);
}
.review-card--featured .review-card__text { color: rgba(244,239,230,.95); }
.review-card--featured .review-card__meta strong { color: var(--c-cream); }
.review-card--featured .review-card__meta small { color: rgba(201,217,226,.8); }
.review-card--featured .review-card__avatar {
    background: var(--c-ink-2); color: var(--c-sky);
}

.review-card__stars {
    color: var(--c-moss);
    letter-spacing: .22em;
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.review-card--featured .review-card__stars { color: var(--c-sky); }
.review-card__text { font-size: 1.14rem; font-style: italic; color: rgba(36,56,74,.85); flex: 1; }

.review-card__meta {
    display: flex; align-items: center; gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(125,156,176,.25);
}
.review-card__avatar {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(125,156,176,.18);
    color: var(--c-slate-deep);
    font-family: var(--font-display); font-weight: 700; font-size: .9rem;
    border: 1px solid rgba(125,156,176,.4);
}
.review-card__meta strong { display: block; font-family: var(--font-display); font-size: .92rem; letter-spacing: .05em; }
.review-card__meta small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(36,56,74,.55); }

.reviews__rating { text-align: center; margin-top: 64px; }
.reviews__big-rating { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.reviews__score {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.4rem, 7vw, 5rem);
    line-height: 1;
    color: var(--c-slate-deep);
}
.reviews__stars { color: var(--c-moss); letter-spacing: .3em; font-size: 1.2rem; }
.reviews__count {
    font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
    color: rgba(36,56,74,.55);
}

/* ============================================================
   GET THE BOOK
   ============================================================ */
.get-book { background: var(--c-ink-2); padding: 110px 0; }
.get-book__card {
    position: relative;
    text-align: center;
    padding: clamp(48px, 7vw, 90px) clamp(24px, 6vw, 80px);
    border-radius: 26px;
    background:
        radial-gradient(900px 400px at 50% 0%, rgba(125,156,176,.35), transparent 70%),
        linear-gradient(160deg, #33495c 0%, var(--c-ink-2) 70%);
    border: 1px solid rgba(125,156,176,.3);
    box-shadow: 0 40px 100px rgba(0,0,0,.4);
    overflow: hidden;
}
.get-book__card::before, .get-book__card::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,143,99,.3), transparent 70%);
}
.get-book__card::before { top: -80px; left: -80px; }
.get-book__card::after { bottom: -80px; right: -80px; }

.get-book__kicker {
    font-family: var(--font-display);
    font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
    color: var(--c-sky);
}
.get-book__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    color: var(--c-cream);
    margin: 16px 0 14px;
}
.get-book__text { max-width: 540px; margin: 0 auto 38px; color: rgba(244,239,230,.8); font-size: 1.16rem; }
.get-book__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.formats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}
.format-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 40px 26px 34px;
    border-radius: 18px;
    background: rgba(244,239,230,.04);
    border: 1px solid rgba(125,156,176,.3);
    transition: transform .45s var(--ease-out), border-color .4s, background .4s, box-shadow .45s;
}
.format-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,217,226,.55);
    background: rgba(125,156,176,.1);
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.format-card--featured {
    background: linear-gradient(165deg, rgba(125,156,176,.28), rgba(125,156,176,.06));
    border-color: rgba(201,217,226,.5);
}
.format-card__tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--c-ink-2);
    background: var(--c-sky);
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}
.format-card__icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(201,217,226,.12);
    border: 1px solid rgba(201,217,226,.25);
    color: var(--c-sky);
}
.format-card__icon svg { width: 26px; height: 26px; }
.format-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 700; letter-spacing: .1em;
    color: var(--c-cream);
    margin-top: 8px;
}
.format-card p {
    font-size: 1rem; color: rgba(244,239,230,.7);
    flex: 1;
    margin: 8px 0 20px;
}

.get-book__cta { margin-top: 46px; text-align: center; position: relative; z-index: 2; }
.get-book__cta p {
    font-family: var(--font-display);
    font-size: .82rem; letter-spacing: .26em; text-transform: uppercase;
    color: rgba(201,217,226,.7);
    margin-bottom: 18px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background:
        radial-gradient(900px 440px at 10% 6%, rgba(124,143,99,.16), transparent 58%),
        radial-gradient(1000px 520px at 90% 92%, rgba(125,156,176,.24), transparent 62%),
        linear-gradient(180deg, #f0ebdf 0%, var(--c-cream) 100%);
}

.contact__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 72px;
    align-items: start;
}
.contact__info h3 {
    font-family: var(--font-display);
    font-size: 1.7rem; font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 14px;
}
.contact__info > p { color: rgba(36,56,74,.75); margin-bottom: 36px; font-size: 1.14rem; }

.contact__list { display: grid; gap: 18px; }
.contact__list li {
    display: flex; align-items: center; gap: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(125,156,176,.3);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 14px 34px rgba(83,117,140,.12);
    transition: transform .4s var(--ease-out), box-shadow .4s;
}
.contact__list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(83,117,140,.2);
}
.contact__icon {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c-slate) 0%, var(--c-slate-deep) 100%);
    color: var(--c-cream);
    box-shadow: 0 8px 20px rgba(83,117,140,.35);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__list strong {
    display: block;
    font-family: var(--font-display);
    font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
    color: rgba(36,56,74,.6);
}
.contact__list a, .contact__list span { font-size: 1.1rem; color: var(--c-ink); }
.contact__list a:hover { color: var(--c-slate-deep); }

.contact__form {
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(125,156,176,.3);
    border-radius: 22px;
    padding: 44px 40px;
    box-shadow: 0 26px 70px rgba(83,117,140,.14);
    display: grid; gap: 26px;
}

.field { position: relative; }
.field input, .field textarea, .field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.08rem;
    color: var(--c-ink);
    background: rgba(255,255,255,.85);
    border: 1.5px solid rgba(125,156,176,.4);
    border-radius: 12px;
    padding: 16px 16px;
    outline: none;
    resize: vertical;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--c-slate-deep);
    box-shadow: 0 0 0 4px rgba(125,156,176,.18);
}
.field select { cursor: pointer; padding-top: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-slate-deep); }

.field label {
    position: absolute; left: 17px; top: 17px;
    font-size: 1.02rem;
    color: rgba(36,56,74,.55);
    pointer-events: none;
    transition: all .3s var(--ease-out);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label {
    top: 2px;
    font-size: .72rem;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-slate-deep);
}
.field select { color: var(--c-ink); }

.contact__form-note {
    text-align: center;
    font-size: .92rem; font-style: italic;
    color: rgba(36,56,74,.55);
}
.contact__form-note.sent { color: var(--c-moss-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--c-ink); color: var(--c-cream); }
.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding: 76px 0 56px;
    align-items: start;
}
.footer__logo { width: 46px; height: 46px; color: var(--c-sky); display: inline-block; margin-bottom: 18px; }
.footer__quote {
    max-width: 320px;
    font-style: italic;
    font-size: 1.08rem;
    color: rgba(244,239,230,.7);
    line-height: 1.7;
}
.footer__nav {
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 8px;
}
.footer__nav a {
    width: fit-content;
    font-size: .95rem; letter-spacing: .1em;
    color: rgba(244,239,230,.75);
    transition: color .3s, transform .3s var(--ease-out);
}
.footer__nav a:hover { color: var(--c-sky); transform: translateX(6px); }

.footer__social { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.footer__social-link {
    font-family: var(--font-display);
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(244,239,230,.8);
    border: 1px solid rgba(201,217,226,.3);
    padding: 10px 18px;
    border-radius: 999px;
    transition: all .35s var(--ease-out);
}
.footer__social-link:hover {
    background: var(--c-slate);
    border-color: var(--c-slate);
    color: var(--c-cream);
    transform: translateY(-3px);
}

.footer__bottom { border-top: 1px solid rgba(201,217,226,.12); }
.footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: .88rem;
    color: rgba(244,239,230,.55);
}
.back-to-top {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--c-sky);
    transition: color .3s;
}
.back-to-top svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.back-to-top:hover svg { transform: translateY(-4px); }

/* ============================================================
   ANIMATION STATES (driven by GSAP)
   ============================================================ */
[data-reveal], [data-reveal-left], [data-reveal-right] { will-change: transform, opacity; }
.no-js-visible { opacity: 1 !important; transform: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 70px; }
    .hero__content { display: flex; flex-direction: column; align-items: center; }
    .hero__kicker { justify-content: center; }
    .hero__tagline { margin-inline: auto; }
    .hero__actions, .hero__meta { justify-content: center; }
    .hero__meta { margin-inline: auto; }
    .hero__book-wrap { order: -1; }
    .book3d { width: min(240px, 52vw); }

    .about-book__grid, .about-author__grid, .contact__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .reviews-arrow { width: 46px; height: 46px; }
    .review-slide { min-width: 50%; }
    .author-side-label { display: none; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav { display: none; }
    .burger { display: flex; }

    .section { padding: 90px 0; }
    .section__head { margin-bottom: 54px; }
    .footer__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .footer__nav { align-items: center; }
    .footer__social { justify-content: center; }
    .footer__bottom-inner { flex-direction: column; }
    .contact__form { padding: 36px 24px; }
}

@media (max-width: 560px) {
    body { font-size: 1.05rem; }
    .hero { padding-bottom: 60px; }
    .hero__meta { gap: 26px; }
    .hero__meta strong { font-size: 1.2rem; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .book3d { width: min(210px, 56vw); }
    .about-book__badge { width: 80px; height: 80px; right: 0; }
    .about-book__badge-num { font-size: 1.3rem; }
    .section__bg-word { font-size: 4.6rem; }
    .get-book__actions .btn { width: 100%; justify-content: center; }
    .dropcap::first-letter { font-size: 3em; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================================
   ENHANCEMENTS — scroll progress, hero badges, book tabs,
   excerpt page, author timeline, press strip, newsletter
   ============================================================ */

.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; z-index: 1500; pointer-events: none;
}
.scroll-progress span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--c-slate), var(--c-moss));
    transform: scaleX(0); transform-origin: left;
}

/* ---------- Hero badges ---------- */
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge-chip {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-display);
    font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--c-cream);
    border: 1px solid rgba(201,217,226,.35);
    background: rgba(26,42,56,.55);
    backdrop-filter: blur(6px);
    padding: 10px 20px;
    border-radius: 999px;
    transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.badge-chip:hover { border-color: var(--c-sky); background: rgba(125,156,176,.18); transform: translateY(-3px); }
.badge-chip i { color: var(--c-sky); font-style: normal; }

/* ---------- Reviews slider ---------- */
.reviews-slider {
    display: flex;
    align-items: stretch;
    gap: 18px;
    position: relative;
    z-index: 2;
}
.reviews-viewport { flex: 1; overflow: hidden; border-radius: var(--radius); }
.reviews-track { display: flex; will-change: transform; }
.review-slide { min-width: 33.3333%; display: flex; padding: 0 8px; }
.review-slide .review-card { flex: 1; margin: 6px; }
.reviews-arrow {
    align-self: center;
    width: 54px; height: 54px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(125,156,176,.4);
    color: var(--c-slate-deep);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(6px);
    transition: all .35s var(--ease-out);
}
.reviews-arrow svg { width: 20px; height: 20px; }
.reviews-arrow:hover {
    background: var(--c-slate-deep);
    border-color: var(--c-slate-deep);
    color: var(--c-cream);
    transform: scale(1.08);
}
.reviews-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.reviews-dot {
    width: 9px; height: 9px; border-radius: 999px;
    background: rgba(125,156,176,.35);
    transition: all .4s var(--ease-out);
}
.reviews-dot.active { width: 30px; background: var(--c-slate-deep); }

/* ---------- Footer newsletter ---------- */
.footer__newsletter {
    text-align: center;
    padding: 62px 0 48px;
    border-bottom: 1px solid rgba(201,217,226,.12);
}
.footer__newsletter-kicker {
    font-family: var(--font-display);
    font-size: .68rem; letter-spacing: .4em; text-transform: uppercase;
    color: var(--c-sky);
}
.footer__newsletter h4 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
    color: var(--c-cream);
    margin: 12px 0 10px;
}
.footer__newsletter p {
    max-width: 470px; margin: 0 auto;
    color: rgba(244,239,230,.65);
    font-size: 1.06rem;
}
.footer__newsletter-form {
    display: flex; gap: 12px; justify-content: center;
    max-width: 540px;
    margin: 28px auto 14px;
}
.footer__newsletter-form input {
    flex: 1;
    background: rgba(244,239,230,.06);
    border: 1px solid rgba(201,217,226,.3);
    border-radius: 999px;
    padding: 15px 26px;
    color: var(--c-cream);
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: border-color .3s ease, background .3s ease;
}
.footer__newsletter-form input::placeholder { color: rgba(244,239,230,.45); }
.footer__newsletter-form input:focus { border-color: var(--c-sky); background: rgba(244,239,230,.09); }
.footer__newsletter-note {
    font-size: .88rem; font-style: italic;
    color: rgba(244,239,230,.45);
}
.footer__newsletter-note.sent { color: var(--c-sky); }

/* ---------- Root vines (draw on scroll) ---------- */
.root-vine {
    position: absolute;
    top: 0;
    height: 100%;
    width: clamp(90px, 11vw, 170px);
    z-index: 1;
    pointer-events: none;
    opacity: .6;
}
.root-vine--left { left: 0; }
.root-vine--right { right: 0; transform: scaleX(-1); }
.vine-stroke {
    stroke: var(--c-moss-deep);
    stroke-width: 6;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.vine-stroke--thin { stroke-width: 3; opacity: .75; }
.vine-leaf {
    fill: var(--c-moss);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

@media (max-width: 900px) {
    .root-vine { display: none; }
}
/* ---------- Hanging vine canopy (jungle.png, screen-blend, About Book corner only) ---------- */
.vine-canopy {
    position: absolute;
    top: -2px;
    right: 0;
    width: min(420px, 55vw);
    height: auto;
    mix-blend-mode: screen;
    z-index: 3;
    pointer-events: none;
    opacity: .9;
    will-change: transform;
}

@media (max-width: 900px) {
    .vine-canopy { width: min(280px, 60vw); opacity: .75; }
}

/* ---------- Enhancements responsive ---------- */
@media (max-width: 900px) {
    .formats { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
    .footer__newsletter-form { flex-direction: column; }
    .footer__newsletter-form .btn { width: 100%; justify-content: center; }
    .hero__badges { justify-content: center; }
    .reviews-slider { flex-direction: column-reverse; gap: 16px; }
    .review-slide { min-width: 100%; padding: 0 4px; }
    .review-slide .review-card { margin: 4px; padding: 30px 24px; }
}
