/* Hero: Cinematic full-bleed (John Grisham style)
   Section 2: Two-panel editorial (white left / dark navy right) */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

img {
    max-width: 100%;
    height: auto;
}

:root {
    --navy:     #0D1117;
    --deep:     #080d14;
    --mid-blue: #162040;
    --gold:     #C9A84C;
    --gold-dim: rgba(201,168,76,0.13);
    --ice:      #E8EDF5;
    --muted:    rgba(232,237,245,0.42);
    --paper:    #F2EDE4;
    --cream:    #FAF7F2;
    --ink:      #1a1a2a;
    --ink-mid:  rgba(26,26,42,0.6);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior:smooth; }
body {
    background: var(--navy);
    color: var(--ice);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    padding: 24px 60px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.5s, border-color 0.5s, padding 0.4s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(8,13,20,0.94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom-color: rgba(201,168,76,0.12);
    padding: 16px 60px;
}
.nav-logo {
    font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 600;
    color: #fff; text-decoration: none; letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 42px; list-style: none; }
.nav-links a {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: #fff; text-decoration: none;
    position: relative; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 1px; background: #fff; transition: width 0.35s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Panel 1 (top): Cinematic full-width mosaic + author photo
   Panel 2 (bottom): Separate dark-navy book announcement band */


.hero-panel-top {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background: #050a12;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Book-cover mosaic grid fills entire top panel */
.hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    z-index: 0;
}
.hero-mosaic-tile {
    overflow: hidden;
    position: relative;
}
.hero-mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(55%) brightness(0.5);
    transition: filter 0.6s;
}

/* Overlays */
.hero-ov-dark {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(5,10,18,0.45);
}
.hero-ov-vign {
    position: absolute; inset: 0; z-index: 2;
    background: radial-gradient(ellipse 100% 100% at 40% 50%,
        transparent 25%, rgba(5,10,18,0.72) 100%);
}


.hero-photo-zone {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 45%;
    z-index: 3;
    pointer-events: none;
}
.hero-author-photo {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-mask-image:
        linear-gradient(to right,
            transparent 0%,
            rgba(0,0,0,0.4) 18%,
            black 45%),
        linear-gradient(to bottom,
            transparent 0%,
            black 5%,
            black 92%,
            transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right,
            transparent 0%,
            rgba(0,0,0,0.4) 18%,
            black 45%),
        linear-gradient(to bottom,
            transparent 0%,
            black 5%,
            black 92%,
            transparent 100%);
    mask-composite: intersect;
}

/* Social icons */
.hero-socials-top {
    position: absolute; top: 84px; right: 50px;
    display: flex; gap: 10px;
    z-index: 10;
    opacity: 0;
    animation: fadeDown 0.8s ease 1.4s forwards;
}
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid rgba(201,168,76,0.22);
    color: var(--muted); text-decoration: none;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.social-icon:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,0.07); }

/* Center content block (name + creds + tagline) */
.hero-panel-top-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 20px;
    /* push left so it lives in the left 55% (photo occupies right 45%) */
    margin-right: 45%;
}

/* Credential strip */
.hero-cred-strip {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 18px;
}
.hc-item {
    font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
}
.hc-sep { color: var(--gold); opacity: 0.45; font-size: 0.7rem; }


.hero-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    margin-bottom: 14px;
}
.hero-name-line1 {
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    color: var(--gold);
    letter-spacing: 0.02em;
    display: block;
    line-height: 1.05;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* Tagline */
.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(232,237,245,0.6);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero-tagline::before,
.hero-tagline::after {
    content: '';
    display: inline-block;
    width: 32px; height: 1px;
    background: rgba(201,168,76,0.35);
}


.hero-panel-bottom {
    width: 100%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 48px 10%;
    position: relative;
    overflow: hidden;
}
/* Subtle top separator line */
.hero-panel-bottom::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255,255,255,0.05) 50%,
        transparent 100%);
}

/* LEFT: text block */
.hpb-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 40px;
}
.hpb-eyebrow {
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(232,237,245,0.5);
    margin-bottom: 12px;
}
.hpb-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hpb-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.hpb-desc {
    font-size: 0.9rem; line-height: 1.65;
    color: rgba(232,237,245,0.6);
    max-width: 420px;
    margin-bottom: 24px;
}
.hpb-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 34px;
    background: var(--gold);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 22px rgba(201,168,76,0.3);
}
.hpb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(201,168,76,0.5);
}

/* RIGHT: standing book cover */
.hpb-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-left: 20px;
}
.hpb-book-wrap {
    position: relative;
    width: 280px;
    filter:
        drop-shadow(-15px 0 30px rgba(0,0,0,0.8))
        drop-shadow(0 40px 60px rgba(0,0,0,0.9));
    transform: perspective(1000px) rotateY(-15deg) translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease;
}
.hpb-book-img {
    width: 100%;
    display: block;
    border-radius: 2px 4px 4px 2px;
}
/* Spine left edge illusion */
.hpb-book-spine {
    position: absolute;
    top: 0; left: -12px; bottom: 0;
    width: 12px;
    background: linear-gradient(to right,
        rgba(0,0,0,0.7) 0%,
        rgba(30,25,20,0.8) 60%,
        rgba(50,40,30,0.4) 100%);
    transform: skewY(-0.5deg);
    border-radius: 2px 0 0 2px;
}
/* Floor shadow */
.hpb-book-floor-shadow {
    position: absolute;
    bottom: -18px; left: -10%; right: -10%;
    height: 18px;
    background: radial-gradient(ellipse 85% 60% at 55% 0%,
        rgba(0,0,0,0.55) 0%, transparent 100%);
    pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 28px; right: 60px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 10;
    opacity: 0;
    animation: fadeUp 1s ease 2s forwards;
}
.scroll-indicator span {
    font-size: 0.55rem; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--muted);
}
.scroll-track {
    width: 1px; height: 46px;
    background: rgba(201,168,76,0.14);
    position: relative; overflow: hidden;
}
.scroll-track::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: var(--gold); animation: scrollPulse 2.4s ease infinite;
}

/* KEYFRAMES */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scrollPulse {
    0%   { transform: translateY(-100%); opacity: 1; }
    60%  { transform: translateY(200%);  opacity: 1; }
    100% { transform: translateY(200%);  opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DEDICATION SECTION */
.dedication-section {
    background: var(--navy);
    padding: 80px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.dedication-content {
    max-width: 800px;
}
.dedication-content p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold);
    line-height: 1.4;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
}
.dedication-content p br { display: none; }
@media (min-width: 768px) {
    .dedication-content p br { display: block; }
}

/* PANEL A (Cream / About & Grid) */
.s2a-panel {
    display: flex;
    min-height: 80vh;
    background: var(--cream);
    position: relative;
    overflow: hidden;
    margin: 60px auto;
    max-width: 1400px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* Subtle watermark pattern */
.s2a-panel::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle, rgba(201,168,76,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}


.s2a-left {
    width: 45%;
    padding: 80px 4% 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.s2a-eyebrow {
    font-size: 0.85rem; letter-spacing: 0.25em;
    font-weight: 700;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 20px;
}
.s2a-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem; line-height: 1.1;
    color: var(--ink); margin-bottom: 24px;
}
.s2a-heading em {
    font-style: italic; color: var(--gold);
}
.s2a-body {
    font-size: 1.05rem; line-height: 1.7;
    color: var(--ink-mid); margin-bottom: 20px;
    max-width: 500px;
}
.s2a-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic; font-size: 1.2rem;
    color: var(--ink); margin: 30px 0;
    padding-left: 20px; border-left: 2px solid var(--gold);
}
.s2a-cta-row {
    display: flex; align-items: center; gap: 20px;
    margin-top: 10px;
}
.s2a-btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--ink);
    padding: 14px 28px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}
.s2a-btn-primary:hover {
    background: #d4b55b; transform: translateY(-2px);
}
.s2a-btn-ghost {
    background: transparent; border: none; color: var(--ink);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; cursor: pointer;
    border-bottom: 1px solid var(--gold); padding-bottom: 4px;
    transition: color 0.3s;
}
.s2a-btn-ghost:hover {
    color: var(--gold);
}

.s2a-right {
    width: 55%;
    padding: 60px 4% 60px 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.s2a-quad-cards {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.s2a-card {
    position: absolute;
    height: 550px;
    width: 390px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

/* Default stacked state - staggered slightly for 3D effect */
.s2a-card-4 { transform: translate(15px, 15px); z-index: 1; }
.s2a-card-3 { transform: translate(5px, 5px); z-index: 2; }
.s2a-card-2 { transform: translate(-5px, -5px); z-index: 3; }
.s2a-card-1 { transform: translate(-15px, -15px); z-index: 4; }

/* 2x2 Grid on hover */
.s2a-quad-cards:hover .s2a-card-4 { transform: translate(-100px, -140px) scale(0.48); z-index: 4; opacity: 0.8; }
.s2a-quad-cards:hover .s2a-card-3 { transform: translate(100px, -140px) scale(0.48); z-index: 4; opacity: 0.8; }
.s2a-quad-cards:hover .s2a-card-2 { transform: translate(-100px, 140px) scale(0.48); z-index: 4; opacity: 0.8; }
.s2a-quad-cards:hover .s2a-card-1 { transform: translate(100px, 140px) scale(0.48); z-index: 4; opacity: 0.8; }

/* Pop up specific hovered card in the grid to full size! */
.s2a-quad-cards:hover .s2a-card:hover {
    transform: translate(0, 0) scale(1) !important;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    z-index: 10 !important;
    opacity: 1 !important;
}

/* PANEL B (Dark Navy) */
.s2b-panel {
    display: flex;
    min-height: 80vh;
    background: var(--navy);
    position: relative;
    color: var(--ice);
}
.s2b-left {
    width: 50%;
    padding: 80px 4% 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.s2b-eyebrow {
    font-size: 0.65rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
}
.s2b-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; line-height: 1.2;
    margin-bottom: 40px; color: #fff;
}
.s2b-index {
    list-style: none; padding: 0; margin: 0 0 40px 0;
    max-width: 500px;
}
.s2b-item {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer; transition: all 0.3s ease;
}
.s2b-item:hover, .s2b-item.active {
    border-bottom-color: var(--gold);
}
.s2b-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700;
    color: rgba(255,255,255,0.15); transition: color 0.3s;
    width: 35px;
}
.s2b-item:hover .s2b-num, .s2b-item.active .s2b-num {
    color: var(--gold);
}
.s2b-item-body {
    flex: 1; display: flex; flex-direction: column;
}
.s2b-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem; font-weight: 600;
    color: rgba(255,255,255,0.4); transition: color 0.3s;
}
.s2b-item:hover .s2b-title, .s2b-item.active .s2b-title {
    color: #fff;
}
.s2b-subtitle {
    font-size: 0.8rem; color: rgba(255,255,255,0.25);
    margin-top: 4px; transition: color 0.3s;
}
.s2b-item:hover .s2b-subtitle, .s2b-item.active .s2b-subtitle {
    color: rgba(255,255,255,0.6);
}
.s2b-arrow {
    width: 20px; height: 20px; color: var(--gold);
    opacity: 0; transform: translateX(-10px); transition: all 0.3s;
}
.s2b-item.active .s2b-arrow, .s2b-item:hover .s2b-arrow {
    opacity: 1; transform: translateX(0);
}
.s2b-cta-row {
    display: flex; align-items: center; gap: 24px;
}
.s2b-btn-amazon {
    display: inline-block; padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; transition: all 0.3s;
}
.s2b-btn-amazon:hover {
    background: rgba(255,255,255,0.05); border-color: var(--gold);
}
.s2b-btn-ghost {
    background: transparent; border: none; color: rgba(255,255,255,0.6);
    font-size: 0.8rem; font-style: italic; font-family: 'Playfair Display', serif;
    cursor: pointer; transition: color 0.3s;
}
.s2b-btn-ghost:hover {
    color: var(--gold);
}

.s2b-right {
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 4%;
}
.s2b-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.s2b-book-display {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}
.s2b-book-wrap {
    position: relative;
    width: 220px;
    perspective: 1000px;
    margin-bottom: -70px; /* pull down further into the card */
    z-index: 3;
}
.s2b-book-cover {
    width: 100%; height: auto; display: block;
    box-shadow: 20px 30px 50px rgba(0,0,0,0.6), -5px 0 15px rgba(255,255,255,0.08) inset;
    border-radius: 3px 6px 6px 3px;
}
/* Left spine edge simulation */
.s2b-spine {
    position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
    background: linear-gradient(to right, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 3px 0 0 3px;
}
.s2b-card-container {
    position: relative;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    /* Clip the flying cards */
    overflow: hidden;
}
.s2b-chapter-card {
    background: linear-gradient(to bottom, rgba(30,35,50,0.4) 0%, rgba(15,20,30,0.8) 100%);
    border: 1px solid rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 40px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    /* GSAP will animate opacity and transform for new cards, 
       but we remove the CSS transition so it doesn't fight GSAP */
}

.s2b-chapter-photo-frame {
    width: 100%;
    height: 600px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.s2b-chapter-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.s2b-chapter-card:hover .s2b-chapter-img {
    transform: scale(1.05);
}
.s2b-avail {
    position: absolute; bottom: 40px; right: 40px;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.s2b-avail-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* Stats strip at bottom of right panel */
.s2-stats-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 0;
    padding: 20px 32px;
    background: rgba(5,10,18,0.5);
    border-top: 1px solid rgba(201,168,76,0.1);
    z-index: 5;
}
.s2-stat {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1;
}
.s2-stat strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--gold); line-height: 1;
}
.s2-stat span {
    font-size: 0.58rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(232,237,245,0.4);
}
.s2-stat-sep {
    width: 1px; height: 36px;
    background: rgba(201,168,76,0.15);
    flex-shrink: 0;
    margin: 0 16px;
}


/* EXPLORE FULLY MODAL */
.read-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8, 13, 20, 0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease;
}
.read-modal.open { opacity: 1; pointer-events: auto; }
.btn-close-modal {
    position: absolute; top: 40px; right: 40px;
    background: transparent; border: none; color: var(--ice);
    cursor: pointer; transition: color 0.3s, transform 0.3s; z-index: 10000;
}
.btn-close-modal:hover { color: var(--gold); transform: rotate(90deg); }
.read-modal-content {
    background: var(--paper);
    width: 45%; max-width: 800px; height: 85vh;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden; display: flex; flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.read-modal.open .read-modal-content { transform: translateY(0); }
.book-pages-scroll {
    padding: 60px 80px; overflow-y: auto; height: 100%;
}
.book-pages-scroll::-webkit-scrollbar { width: 6px; }
.book-pages-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.book-pages-scroll::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
.book-pages-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.book-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; color: var(--ink);
    margin-bottom: 40px; text-align: center;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding-bottom: 20px;
}
.book-text-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; line-height: 1.8;
    color: var(--ink-mid); margin-bottom: 24px; text-indent: 2em;
}

/* SECTION 3: AUTHOR JOURNEY */
.journey-section {
    background: var(--paper);
    position: relative;
    margin: 60px auto;
    max-width: 1400px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    padding-bottom: 160px;
    overflow: hidden;
}
/* Removed old gradient transitions to make floating pages seamless */
.journey-section::before,
.journey-section::after {
    display: none;
}
.journey-section-header {
    text-align: center; margin-bottom: 80px;
    padding: 140px 5% 0;
    position: relative; z-index: 11;
}
.journey-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px;
}
.journey-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400; color: var(--ink); line-height: 1.1;
}
.journey-heading em { font-style: italic; color: var(--gold); }

.journey-row {
    display: flex; align-items: stretch;
    min-height: 70vh; margin-bottom: 0;
}
.journey-img-half {
    flex: 0 0 52%; position: relative; overflow: hidden;
}
.journey-img {
    width: 100%; height: 100%; min-height: 500px;
    object-fit: cover; display: block;
    opacity: 1;
    transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-anim .journey-img { opacity: 0; }
.js-anim .journey-img.is-visible { opacity: 1; }
.img-left .journey-img {
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%),
        linear-gradient(to right, black 0%, black 85%, rgba(0,0,0,0.5) 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%),
        linear-gradient(to right, black 0%, black 85%, rgba(0,0,0,0.5) 92%, transparent 100%);
    mask-composite: intersect;
}
.img-right .journey-img {
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%),
        linear-gradient(to left, black 0%, black 85%, rgba(0,0,0,0.5) 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%),
        linear-gradient(to left, black 0%, black 85%, rgba(0,0,0,0.5) 92%, transparent 100%);
    mask-composite: intersect;
}
.journey-text-half {
    flex: 0 0 48%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 6%;
    opacity: 1; transform: translateY(0);
    transition:
        opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}
.js-anim .journey-text-half { opacity: 0; transform: translateY(24px); }
.js-anim .journey-text-half.is-visible { opacity: 1; transform: translateY(0); }
.text-right { padding-left: 8%; }
.text-left { padding-right: 8%; text-align: right; align-items: flex-end; }
.j-number {
    font-family: 'Playfair Display', serif;
    font-size: 6rem; font-weight: 900; line-height: 1;
    color: rgba(201, 168, 76, 0.10); display: block;
    margin-bottom: -20px; letter-spacing: -0.02em;
}
.j-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: 20px;
}
.j-title em { font-style: italic; color: var(--gold); }
.j-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; line-height: 1.75; color: var(--ink-mid); max-width: 420px;
}
.text-left .j-desc { margin-left: auto; }

/* SECTION 4: GALLERY (3D CAROUSEL) */
.gallery-section {
    background: #000; color: #fff;
    padding: 80px 0; position: relative; overflow: hidden;
}

/* SECTION 4: ABOUT THE AUTHOR (with Flip Gallery) */
.author-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--navy);
    padding: 80px 5%;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.author-left {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.author-right {
    flex: 1;
}
.author-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.author-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff; /* Visible font in blue background */
    line-height: 1.2;
    margin-bottom: 20px;
}
.author-heading em {
    font-style: italic;
    color: var(--gold);
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}
.author-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(232, 237, 245, 0.85); /* Light text on blue background */
}

.flip-gallery-container {
    position: relative;
    width: 280px; 
    height: 426px; /* Slightly wider aspect ratio */
    text-align: center;
    perspective: 800px;
}
@media (min-width: 600px) {
    .flip-gallery-container {
        width: 350px;
        height: 498px;
    }
}
.flip-gallery-container::after {
    content: '';
    position: absolute;
    background-color: black;
    width: 100%;
    height: 4px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 5;
}
.flip-gallery-container .unite {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background-size: 280px 426px;
    background-repeat: no-repeat;
}
@media (min-width: 600px) {
    .flip-gallery-container .unite {
        background-size: 350px 498px;
    }
}
.flip-gallery-container .top,
.flip-gallery-container .overlay-top {
    top: 0;
    transform-origin: bottom;
    background-position: top;
    z-index: 2;
}
.flip-gallery-container .bottom,
.flip-gallery-container .overlay-bottom {
    bottom: 0;
    transform-origin: top;
    background-position: bottom;
    z-index: 2;
}
.flip-gallery-container .overlay-top { z-index: 4; }
.flip-gallery-container .overlay-bottom { z-index: 4; }

/* AUTHOR NOTE */
.author-note-section {
    background: var(--navy);
    padding: 100px 5%;
}
.note-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 80px;
    align-items: center;
}
.note-content {
    flex: 1;
}
.note-eyebrow {
    font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px; font-weight: 600;
}
.note-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1;
    color: #fff; margin-bottom: 30px;
}
.note-title em {
    font-style: italic; color: var(--gold);
}
.note-body {
    font-size: 1.1rem; line-height: 1.8;
    color: #d1d5db; margin-bottom: 40px;
}
.note-body p { margin-bottom: 20px; }
.note-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic; font-size: 1.4rem; line-height: 1.5;
    color: #fff; padding-left: 24px; border-left: 2px solid var(--gold);
    margin: 0;
}
.note-quote footer {
    display: block; font-family: 'Inter', sans-serif; font-style: normal;
    font-size: 0.85rem; color: #9ca3af; margin-top: 15px;
    letter-spacing: 0.05em; text-transform: uppercase;
    background: transparent; padding: 0;
}
.note-image {
    flex: 1;
}
.note-photo-frame {
    position: relative;
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    aspect-ratio: 4/5;
}
.note-img {
    width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 900px) {
    .note-container { flex-direction: column; gap: 40px; }
}

/* FOOTER */
.site-footer { background: var(--paper); color: var(--ink); padding: 80px 5% 20px; }
.footer-top { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 250px; }
.brand-col { flex: 2; }
.footer-book-cover { cursor: pointer; }
.footer-book-cover img { height: 160px; width: auto; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); margin-bottom: 20px; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 5px; color: var(--ink); }
.footer-name em { color: var(--gold); font-style: italic; }
.footer-tagline { color: var(--ink-mid); font-size: 0.95rem; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.links-col ul { list-style: none; padding: 0; margin: 0; }
.links-col li { margin-bottom: 10px; }
.links-col a { color: var(--ink-mid); text-decoration: none; transition: color 0.3s; }
.links-col a:hover { color: var(--gold); }
.contact-col p { margin-bottom: 20px; }
.contact-col a { color: var(--ink-mid); text-decoration: none; transition: color 0.3s; }
.contact-col a:hover { color: var(--gold); }
.social-links { display: flex; gap: 15px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.05); border-radius: 50%;
    transition: background 0.3s, color 0.3s; color: var(--ink-mid);
}
.social-links a:hover { background: var(--gold); color: var(--paper); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; color: var(--ink-mid); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-panel-top-content { margin-right: 40%; }
    .hero-photo-zone { width: 42%; }
    .hero-panel-bottom { padding: 40px 6%; }
    .s2-left-inner { padding: 60px 40px; }
}

/* Old 768px block removed — replaced by comprehensive mobile overhaul below */

/* SECTION 5: LIVE FEEDBACK */
.reviews-section {
    background: var(--paper); color: var(--ink);
    padding: 100px 5% 120px;
    position: relative;
    margin: 60px auto;
    max-width: 1400px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.reviews-header { text-align: center; margin-bottom: 80px; position: relative; z-index: 2; }
.reviews-title { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 500; }
.reviews-title em { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); }
.reviews-subtitle { font-size: 1.1rem; color: var(--ink-mid); margin-top: 10px; }

.reviews-container { max-width: 1200px; margin: 0 auto; display: flex; gap: 60px; position: relative; z-index: 2; }
.review-form-wrapper { flex: 1; background: rgba(255,255,255,0.5); padding: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); }

.feedback-form .form-group { margin-bottom: 20px; }
.feedback-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.feedback-form input, .feedback-form textarea {
    width: 100%; padding: 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 4px;
    background: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; transition: border-color 0.3s;
}
.feedback-form input:focus, .feedback-form textarea:focus { outline: none; border-color: var(--gold); }
.btn-submit {
    background: var(--navy); color: #fff; border: none; padding: 14px 24px;
    font-size: 1rem; border-radius: 4px; cursor: pointer; width: 100%; transition: background 0.3s;
}
.btn-submit:hover { background: var(--gold); }

.review-list-wrapper {
    flex: 1; display: flex; flex-direction: column; max-height: 500px; overflow-y: auto; padding-right: 20px;
}
.review-list-wrapper::-webkit-scrollbar { width: 6px; }
.review-list-wrapper::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.review-list-wrapper::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-card {
    background: #fff; padding: 24px; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.03);
    animation: fadeIn 0.5s ease forwards;
}
.review-text { font-size: 1.1rem; line-height: 1.6; color: var(--ink); margin-bottom: 12px; font-style: italic; }
.review-author { font-size: 0.9rem; font-weight: 600; color: var(--gold); }

/* STAR RATING INPUT */
.star-row {
    display: flex; gap: 4px; font-size: 1.5rem; color: #ccc; margin-bottom: 8px;
}
.star-row .star.filled {
    color: var(--gold);
}
.star-input .star {
    cursor: pointer; transition: color 0.2s, transform 0.2s;
}
.star-input .star:hover {
    transform: scale(1.1);
}

/* FILTER BUTTONS */
.review-filter-row {
    display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; justify-content: flex-start;
}
.filter-btn {
    background: rgba(0,0,0,0.05); border: none; border-radius: 20px; padding: 6px 16px;
    font-size: 0.9rem; color: var(--ink); cursor: pointer; transition: 0.3s;
}
.filter-btn:hover {
    background: rgba(0,0,0,0.1);
}
.filter-btn.active {
    background: var(--gold); color: #fff;
}
.no-reviews {
    color: var(--ink-mid); font-style: italic; text-align: center; margin-top: 40px;
}

/* Every Chapter Built For You Section */
.s2b-features-section {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.s2b-features-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
    margin-top: 0;
}
.s2b-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}
.s2b-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.s2b-feature-item:last-child {
    margin-bottom: 0;
}
.s2b-feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-right: 12px;
}
.s2b-feature-icon svg {
    width: 20px;
    height: 20px;
}
.s2b-feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}
.s2b-feature-head {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.s2b-feature-desc {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   MOBILE RESPONSIVE OVERHAUL — max-width: 767px
   ============================================================ */
@media (max-width: 991px) {

    /* ── NAVBAR ── */
    .navbar { padding: 16px 20px; }
    .navbar.scrolled { padding: 12px 20px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.6rem; letter-spacing: 0.12em; }

    /* ── HERO PANEL TOP ── */
    .hero-panel-top {
        height: auto;
        min-height: 100svh;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 40px;
    }
    .hero-photo-zone {
        position: absolute;
        width: 100%;
        right: 0; top: 0; bottom: 0;
        opacity: 0.35;
    }
    .hero-panel-top-content {
        margin-right: 0;
        padding: 0 24px;
        text-align: center;
        position: relative;
        z-index: 6;
    }
    .hero-name-line1 { font-size: clamp(2.6rem, 11vw, 4rem); }
    .hero-cred-strip { flex-wrap: wrap; gap: 6px; justify-content: center; }
    .hero-socials-top { top: 70px; right: 20px; }

    /* ── HERO PANEL BOTTOM ── */
    .hero-panel-bottom {
        flex-direction: column;
        padding: 40px 24px 48px;
        gap: 32px;
        text-align: center;
    }
    .hpb-left { padding-right: 0; align-items: center; }
    .hpb-right { padding-left: 0; margin-top: 20px; }
    .hpb-book-wrap { width: 180px; }
    .hpb-desc { font-size: 0.88rem; }

    /* ── DEDICATION ── */
    .dedication-section { padding: 60px 24px; }
    .dedication-content p { font-size: clamp(1.4rem, 5.5vw, 2rem); }

    /* ── SECTION 2A: WHY THIS BOOK ── */
    .s2a-panel {
        flex-direction: column;
        min-height: auto;
        margin: 32px 16px;
        border-radius: 16px;
    }
    .s2a-left {
        width: 100%;
        padding: 48px 24px 32px;
    }
    .s2a-heading { font-size: 2.4rem; }
    .s2a-right {
        width: 100%;
        padding: 0 24px 48px;
    }
    .s2a-quad-cards {
        height: 320px;
    }
    .s2a-card {
        height: 280px;
        width: 200px;
    }
    /* Mobile 2x2 Grid on hover */
    .s2a-quad-cards:hover .s2a-card-4 { transform: translate(-52px, -72px) scale(0.48); }
    .s2a-quad-cards:hover .s2a-card-3 { transform: translate(52px, -72px) scale(0.48); }
    .s2a-quad-cards:hover .s2a-card-2 { transform: translate(-52px, 72px) scale(0.48); }
    .s2a-quad-cards:hover .s2a-card-1 { transform: translate(52px, 72px) scale(0.48); }
    .s2a-cta-row { flex-wrap: wrap; gap: 12px; }

    /* ── SECTION 2B: TABLE OF CONTENTS ── */
    .s2b-panel {
        flex-direction: column;
        min-height: auto;
    }
    .s2b-left {
        width: 100%;
        padding: 48px 24px 32px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .s2b-right {
        width: 100%;
        padding: 32px 24px 48px;
    }
    .s2b-heading { font-size: 1.8rem; }
    .s2b-book-wrap { width: 150px; margin-bottom: -40px; }
    .s2b-chapter-photo-frame { height: 220px; }
    .s2b-features-section { max-width: 100%; }
    .s2-stats-strip { gap: 0; padding: 16px 12px; }
    .s2-stat strong { font-size: 1.2rem; }
    .s2-stat span { font-size: 0.5rem; }

    /* JOURNEY SECTION */
    .journey-section {
        margin: 32px 16px;
        border-radius: 16px;
        padding-bottom: 80px;
    }
    .journey-section-header { padding: 80px 24px 0; margin-bottom: 48px; }
    .journey-heading { font-size: clamp(2rem, 7vw, 3rem); }

    /* Stack image on top, text below */
    .journey-row,
    .journey-row.row-flip {
        flex-direction: column;
        min-height: auto;
    }
    .journey-img-half {
        flex: 0 0 auto;
        width: 100%;
        height: 56vw;
        min-height: 220px;
        max-height: 300px;
    }
    .journey-img {
        min-height: 220px;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .img-left .journey-img,
    .img-right .journey-img {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .journey-text-half {
        flex: 0 0 auto;
        width: 100%;
        padding: 32px 24px;
        text-align: left !important;
        align-items: flex-start !important;
    }
    .text-left {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .text-left .j-desc { margin-left: 0 !important; }
    .j-number { font-size: 3.5rem; }
    .j-title { font-size: clamp(1.6rem, 5.5vw, 2rem); }
    .j-desc { font-size: 1rem; }

    /* ── AUTHOR SECTION ── */
    .author-panel {
        flex-direction: column;
        padding: 48px 24px;
        gap: 36px;
        align-items: center;
        text-align: center;
    }
    .author-left {
        flex: 0 0 auto;
        width: 100%;
    }
    .author-right {
        width: 100%;
        text-align: left;
    }
    .author-heading { font-size: 2rem; }
    .author-body { font-size: 1rem; }
    .flip-gallery-container {
        width: 220px;
        height: 334px;
        margin: 0 auto;
    }
    .flip-gallery-container .unite {
        background-size: 220px 334px;
    }

    /* ── AUTHOR NOTE SECTION ── */
    .note-container {
        flex-direction: column;
        gap: 32px;
        padding: 0 24px;
    }

    /* ── REVIEWS SECTION ── */
    .reviews-section {
        margin: 32px 16px;
        border-radius: 16px;
        padding: 60px 20px 80px;
    }
    .reviews-title { font-size: clamp(2rem, 7vw, 3rem); }
    .reviews-container {
        flex-direction: column;
        gap: 32px;
    }
    .review-form-wrapper { padding: 24px 20px; }
    .review-list-wrapper { max-height: 360px; padding-right: 8px; }
    .review-filter-row { gap: 6px; }
    .filter-btn { padding: 5px 12px; font-size: 0.8rem; }

    /* ── READ MORE MODAL ── */
    .read-modal-content {
        width: 94%;
        height: 90vh;
    }
    .book-pages-scroll { padding: 36px 24px; }

    /* ── FOOTER ── */
    .site-footer { padding: 60px 24px 20px; }
    .footer-top { flex-direction: column; gap: 32px; margin-bottom: 40px; }
    .footer-col { min-width: unset; }
    .brand-col { flex: unset; }
    .footer-name { font-size: 1.6rem; }

    /* ── GALLERY SECTION ── */
    .gallery-section { padding: 60px 0; }
}

/* ── SMALL PHONES (≤400px) ── */
@media (max-width: 400px) {
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.55rem; }
    .s2a-heading { font-size: 2rem; }
    .s2a-card { height: 230px; width: 160px; }
    .s2a-quad-cards { height: 260px; }
    .author-heading { font-size: 1.7rem; }
    .flip-gallery-container { width: 180px; height: 273px; }
    .flip-gallery-container .unite { background-size: 180px 273px; }
}

/* Charity Notice */
.charity-notice { margin-top: 15px; font-size: 1em; color: rgba(255, 255, 255, 0.85); display: flex; align-items: flex-start; gap: 8px; font-family: var(--font-sans); line-height: 1.4; }
.charity-notice svg { flex-shrink: 0; margin-top: 2px; }
.charity-notice a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(212, 175, 55, 0.4); text-underline-offset: 3px; transition: all 0.3s ease; }
.charity-notice a:hover { color: #fff; text-decoration-color: var(--gold); }
.charity-notice.dark-text { color: rgba(0, 0, 0, 0.7); }
.charity-notice.dark-text a:hover { color: #000; }

/* Checkout Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1; pointer-events: auto;
}
.checkout-modal-content {
    background: #0f172a; padding: 40px; border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3); width: 90%; max-width: 500px; position: relative;
    transform: translateY(20px); transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-overlay.active .checkout-modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 28px;
    background: none; border: none; color: #fff; cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--gold);
}
#btn-proceed-payment:disabled {
    opacity: 0.5; cursor: not-allowed;
}
