/* ═══════════════════════════════════════════════════════
   🌹 Happy Birthday Clara — V2 Stylesheet
   Theme: Warm & Cozy, Romantic Scrapbook
   Fonts: Playfair Display, Lora, Caveat, Source Sans 3
   ═══════════════════════════════════════════════════════ */

:root {
    /* Palette */
    --bg-parchment: #F5EDE0;
    --bg-linen: #EDE3D5;
    --bg-cream: #FAF6F0;
    --bg-rose-mist: #FFF5F5;
    --text-main: #3B2A1A;
    --text-soft: #6B5744;
    --text-muted: #8B7A68;
    --accent-rose: #C4707A;
    --accent-deep-rose: #A85860;
    --accent-terracotta: #C67D5B;
    --accent-sage: #8FA87A;
    --accent-gold: #C9A96E;
    --accent-blush: #E8C4C4;
    --accent-warm-white: #FFFDF9;

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-hand: 'Caveat', cursive;
    --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;

    /* Motion */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
    scroll-behavior: smooth;
    font-size: 17px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-parchment);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

::selection {
    background: var(--accent-blush);
    color: var(--text-main);
}

img {
    max-width: 100%;
    display: block;
}


/* ── Floating Petals ───────────────────────── */
.petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    opacity: 0;
    pointer-events: none;
    animation: petalFall linear forwards;
    will-change: transform, opacity;
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg) scale(var(--size, 1));
    }
    8% { opacity: var(--peak-opacity, 0.6); }
    85% { opacity: calc(var(--peak-opacity, 0.6) * 0.5); }
    100% {
        opacity: 0;
        transform: translateY(105vh) translateX(var(--drift, 80px)) rotate(var(--spin, 360deg)) scale(var(--size, 1));
    }
}


/* ── Layout: Chapters ──────────────────────── */
.chapter {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 28px;
    position: relative;
    overflow: hidden;
}

.chapter__inner {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.chapter__inner--wide {
    max-width: 960px;
}

.chapter__label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}

.chapter__heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}

.chapter__subheading {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 52px;
}


/* ── Reveal Animations ─────────────────────── */
.reveal-fade,
.reveal-slide,
.reveal-timeline,
.reveal-note {
    opacity: 0;
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-out-expo);
}

.reveal-fade { transform: translateY(24px); }
.reveal-slide { transform: translateY(44px); }
.reveal-timeline.timeline__entry--left { transform: translateX(-60px); }
.reveal-timeline.timeline__entry--right { transform: translateX(60px); }
.reveal-note { transform: translateY(30px) rotate(var(--rotation, 0deg)) scale(0.92); }

.reveal-fade.is-visible,
.reveal-slide.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.reveal-timeline.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-note.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotation, 0deg)) scale(1);
}


/* ═══════════════════════════════════════════════
   CHAPTER 0 — THE OPENING (Enhanced)
   Confetti, hearts, sparkles, glows
   ═══════════════════════════════════════════════ */
.chapter--opening {
    background: var(--bg-cream);
    text-align: center;
    min-height: 100vh;
}

/* ── Multi-layer Glow ── */
.opening__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(196, 112, 122, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

.opening__glow--2 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 60%);
    animation: glowPulse2 6s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

@keyframes glowPulse2 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

/* ── Confetti Canvas ── */
.opening__confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── Floating Hearts Background ── */
.opening__hearts-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.opening-heart {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    animation: heartRise linear forwards;
}

@keyframes heartRise {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(var(--h-scale, 1)) rotate(0deg);
    }
    10% { opacity: var(--h-opacity, 0.5); }
    80% { opacity: calc(var(--h-opacity, 0.5) * 0.4); }
    100% {
        opacity: 0;
        transform: translateY(-110vh) translateX(var(--h-drift, 40px)) scale(var(--h-scale, 1)) rotate(var(--h-spin, 20deg));
    }
}

/* ── Sparkle Stars ── */
.opening__sparkles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    color: var(--accent-gold);
    font-size: 1rem;
    opacity: 0;
    animation: sparkleTwinkle ease-in-out infinite;
}

.sparkle--1  { top: 10%; left: 8%;  font-size: 1.2rem; animation-duration: 2.5s; animation-delay: 0s; }
.sparkle--2  { top: 15%; right: 12%; font-size: 0.8rem; animation-duration: 3.2s; animation-delay: 0.8s; }
.sparkle--3  { top: 25%; left: 15%; font-size: 1rem;  animation-duration: 2.8s; animation-delay: 1.5s; }
.sparkle--4  { top: 8%;  right: 25%; font-size: 1.1rem; animation-duration: 3s;   animation-delay: 0.3s; }
.sparkle--5  { top: 70%; left: 5%;  font-size: 0.9rem; animation-duration: 2.6s; animation-delay: 2s; }
.sparkle--6  { top: 80%; right: 8%; font-size: 1.3rem; animation-duration: 3.5s; animation-delay: 1.2s; }
.sparkle--7  { top: 60%; left: 20%; font-size: 0.7rem; animation-duration: 2.2s; animation-delay: 0.6s; }
.sparkle--8  { top: 35%; right: 6%; font-size: 1rem;  animation-duration: 2.9s; animation-delay: 1.8s; }
.sparkle--9  { top: 50%; left: 3%;  font-size: 0.8rem; animation-duration: 3.1s; animation-delay: 0.4s; }
.sparkle--10 { top: 85%; left: 30%; font-size: 1rem;  animation-duration: 2.7s; animation-delay: 2.3s; }
.sparkle--11 { top: 20%; right: 3%; font-size: 0.9rem; animation-duration: 3.3s; animation-delay: 1s; }
.sparkle--12 { top: 90%; right: 20%; font-size: 0.7rem; animation-duration: 2.4s; animation-delay: 1.6s; }

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    20% { opacity: 0.9; transform: scale(1.2) rotate(20deg); }
    40% { opacity: 0.3; transform: scale(0.8) rotate(-10deg); }
    60% { opacity: 0.8; transform: scale(1.1) rotate(15deg); }
    80% { opacity: 0.2; transform: scale(0.7) rotate(-5deg); }
}

/* ── Heart Burst (on title reveal) ── */
.opening__heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 0;
    pointer-events: none;
}

.burst-heart {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    animation: burstOut 1.8s var(--ease-out-expo) forwards;
    will-change: transform, opacity;
}

@keyframes burstOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.3);
    }
    30% { opacity: 0.9; }
    100% {
        opacity: 0;
        transform: translate(var(--bx, 100px), var(--by, -100px)) scale(var(--bs, 1)) rotate(var(--br, 30deg));
    }
}

/* ── Text Styles ── */
.opening__prelude {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--text-soft);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.opening__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-main);
    position: relative;
}

.text-accent {
    color: var(--accent-rose);
    position: relative;
    display: inline-block;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 3px;
    background: var(--accent-gold);
    opacity: 0.5;
    border-radius: 2px;
    animation: underlineGrow 1.2s var(--ease-out-expo) 1.2s both;
}

@keyframes underlineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.rose {
    display: inline-block;
    animation: rosePulse 2.5s ease-in-out infinite;
}

@keyframes rosePulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(8deg); }
}

.opening__date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.opening__tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.opening__scroll-hint {
    font-family: var(--font-hand);
    font-size: 1.05rem;
    color: var(--accent-terracotta);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-arrow span {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--accent-terracotta);
    border-bottom: 2px solid var(--accent-terracotta);
    transform: rotate(45deg);
    animation: arrowBounce 1.8s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.5;
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 0.4; }
}


/* ═══════════════════════════════════════════════
   CHAPTER 1 — THE LOVE LETTER (with envelope)
   ═══════════════════════════════════════════════ */
.chapter--letter {
    background: var(--bg-linen);
    padding-top: 80px;
    padding-bottom: 100px;
}

/* ── Envelope ── */
.envelope-wrapper {
    max-width: 400px;
    margin: 0 auto 0;
    perspective: 800px;
    cursor: pointer;
    transition: opacity 0.6s, transform 0.6s, max-height 0.6s;
}

.envelope-wrapper.is-opened {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.envelope {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: linear-gradient(135deg, #E8D5C0, #DEC9B0);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(59, 42, 26, 0.12);
}

.envelope__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #D4BFA8, #DEC9B0);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.8s var(--ease-smooth);
    z-index: 2;
}

.envelope:hover .envelope__flap {
    transform: rotateX(40deg);
}

.envelope__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.envelope__heart {
    font-size: 2.5rem;
    animation: heartFloat 2s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.envelope__label {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-soft);
}

/* ── Letter Card ── */
.letter-card {
    background: var(--accent-warm-white);
    border-radius: 3px;
    padding: 56px 48px 48px;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    box-shadow:
        0 1px 3px rgba(59, 42, 26, 0.06),
        0 8px 32px rgba(59, 42, 26, 0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-out-expo);
}

.letter-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.letter-card__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-rose), var(--accent-gold), var(--accent-sage), var(--accent-rose));
    background-size: 200% 100%;
    animation: ribbonShimmer 6s linear infinite;
    border-radius: 3px 3px 0 0;
}

@keyframes ribbonShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.letter__greeting {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent-rose);
    margin-bottom: 28px;
}

.letter__body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: left;
}

.letter__body--animated {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-out-expo);
}

.letter__body--animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.letter__closing-block {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.3);
}

.letter__closing {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--accent-deep-rose);
    margin-bottom: 20px;
    text-align: center;
}

.letter__signature {
    font-family: var(--font-hand);
    font-size: 1.7rem;
    color: var(--text-main);
    text-align: right;
    white-space: pre-line;
    line-height: 1.5;
}

.letter__ps {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--bg-cream);
    border-radius: 4px;
    border-left: 3px solid var(--accent-gold);
}

.letter__ps p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-soft);
    line-height: 1.7;
}

.letter-card__footer {
    font-family: var(--font-hand);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 32px;
    font-style: italic;
}


/* ═══════════════════════════════════════════════
   CHAPTER 2 — TIMELINE
   ═══════════════════════════════════════════════ */
.chapter--timeline {
    background: var(--bg-parchment);
    padding-top: 100px;
    padding-bottom: 120px;
}

.timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-rose), var(--accent-gold));
    transform: translateX(-50%);
    transition: height 0.05s linear;
    opacity: 0.6;
}

.timeline__entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 72px;
    position: relative;
}

.timeline__entry:last-child { margin-bottom: 0; }

.timeline__entry--left {
    flex-direction: row;
    padding-right: calc(50% + 40px);
}

.timeline__entry--right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.timeline__dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--accent-warm-white);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.25);
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}

.timeline__entry:hover .timeline__dot {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
}

.timeline__card {
    background: var(--accent-warm-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 42, 26, 0.05), 0 6px 20px rgba(59, 42, 26, 0.04);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s;
    width: 100%;
}

.timeline__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(59, 42, 26, 0.1), 0 20px 48px rgba(59, 42, 26, 0.07);
}

.timeline__photo-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-linen);
    overflow: hidden;
    position: relative;
}

.timeline__photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.timeline__card:hover .timeline__photo-frame img {
    transform: scale(1.06);
}

.timeline__photo-placeholder,
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    opacity: 0.45;
    background: linear-gradient(135deg, var(--bg-linen), var(--bg-cream));
}

.timeline__photo-emoji { font-size: 2.5rem; }
.timeline__photo-label { font-family: var(--font-sans); font-size: 0.7rem; }
.photo-placeholder span { font-size: 2.5rem; }
.photo-placeholder small { font-family: var(--font-sans); font-size: 0.7rem; }
.photo-placeholder--large span { font-size: 3.5rem; }

.timeline__text {
    padding: 20px 24px 26px;
}

.timeline__date {
    font-family: var(--font-hand);
    font-size: 1.05rem;
    color: var(--accent-terracotta);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.timeline__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.timeline__subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.timeline__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.75;
}


/* ═══════════════════════════════════════════════
   CHAPTER 3 — REASONS I LOVE YOU
   ═══════════════════════════════════════════════ */
.chapter--reasons {
    background: var(--bg-linen);
    padding: 100px 28px 120px;
}

.reasons-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.reason-note {
    background: var(--accent-warm-white);
    padding: 28px 22px 22px;
    border-radius: 2px;
    position: relative;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
    box-shadow: 0 2px 8px rgba(59, 42, 26, 0.06);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reason-note:nth-child(3n+1) { background: #FFF8F2; }
.reason-note:nth-child(3n+2) { background: #FFF5F5; }
.reason-note:nth-child(3n)   { background: #F5F8F2; }

.reason-note:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(59, 42, 26, 0.12);
    z-index: 2;
}

.reason-note__tape {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 48px;
    height: 14px;
    background: rgba(201, 169, 110, 0.35);
    border-radius: 1px;
}

.reason-note__number {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.reason-note__text {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.45;
    text-align: center;
}


/* ═══════════════════════════════════════════════
   CHAPTER 4 — SMOKEY & CLARA
   ═══════════════════════════════════════════════ */
.chapter--smokey {
    background: var(--bg-cream);
    text-align: center;
    padding: 100px 28px 120px;
}

.smokey__paw-prints {
    font-size: 1.5rem;
    letter-spacing: 16px;
    margin-bottom: 20px;
    opacity: 0.4;
    animation: pawWalk 3s ease-in-out infinite;
}

@keyframes pawWalk {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.chapter__heading--smokey {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 48px;
}

.smokey-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.smokey-split__photo {
    text-align: center;
}

.smokey-split__frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
    margin-bottom: 12px;
}

.smokey-split__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smokey-split__label {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--accent-terracotta);
    font-weight: 600;
}

.smokey-split__heart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.smokey-split__date {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-rose);
}

.smokey-split__emoji {
    font-size: 2rem;
    animation: cakeBounce 1.5s ease-in-out infinite;
}

@keyframes cakeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.smokey-text {
    max-width: 620px;
    margin: 0 auto;
}

.smokey-text__line {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: center;
}

.smokey-text__line:first-child {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
}

.smokey-text__line:last-child {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--accent-rose);
    margin-top: 24px;
}


/* ═══════════════════════════════════════════════
   CHAPTER 5 — LOVE IN NUMBERS
   ═══════════════════════════════════════════════ */
.chapter--numbers {
    background: var(--bg-parchment);
    text-align: center;
    padding: 100px 28px 120px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 780px;
    margin: 0 auto;
}

.number-card {
    padding: 24px 16px;
    border-radius: 8px;
    transition: transform 0.3s var(--ease-smooth);
}

.number-card:hover {
    transform: translateY(-4px);
}

.number-card__value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-rose);
    display: block;
    line-height: 1;
}

.number-card__value--infinity {
    font-size: 3.5rem;
    color: var(--accent-gold);
}

.number-card__value--text {
    font-size: 2.2rem;
}

.number-card__suffix {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--accent-terracotta);
}

.number-card__label {
    font-family: var(--font-hand);
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-top: 8px;
    line-height: 1.3;
}

.number-card--special {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08), rgba(196, 112, 122, 0.08));
    border-radius: 8px;
}

.number-card--wide {
    grid-column: 1 / -1;
    padding: 32px;
    background: linear-gradient(135deg, rgba(196, 112, 122, 0.06), rgba(201, 169, 110, 0.06));
    border-radius: 8px;
}


/* ═══════════════════════════════════════════════
   CHAPTER 6 — THE CLOSING
   ═══════════════════════════════════════════════ */
.chapter--closing {
    background: var(--bg-cream);
    text-align: center;
    min-height: 100vh;
    padding: 100px 28px 80px;
}

.closing__glow {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 5s ease-in-out infinite;
}

.closing__photo-frame {
    width: min(300px, 75vw);
    height: min(300px, 75vw);
    margin: 0 auto 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-gold);
    box-shadow: 0 8px 40px rgba(201, 169, 110, 0.25);
}

.closing__photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closing__name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--accent-rose);
    margin-bottom: 24px;
}

.closing__text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-soft);
    margin-bottom: 28px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.closing__declaration {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 40px;
}

.closing__headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 24px;
    text-shadow: 0 2px 12px rgba(201, 169, 110, 0.2);
}

.closing__from {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 40px;
}

.closing__taylor {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-bottom: 60px;
}

.closing__footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .chapter { padding: 72px 20px; }

    /* Timeline → single column */
    .timeline__line { left: 20px; }

    .timeline__entry--left,
    .timeline__entry--right {
        flex-direction: row;
        padding-left: 56px;
        padding-right: 0;
    }

    .timeline__dot {
        left: 20px;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .timeline__entry { margin-bottom: 48px; }
    .timeline__title { font-size: 1.2rem; }
    .timeline__desc { font-size: 0.9rem; }

    /* Letter */
    .letter-card { padding: 36px 24px 32px; }
    .letter__body { font-size: 0.98rem; }
    .letter__greeting { font-size: 1.5rem; }
    .envelope-wrapper { max-width: 300px; }

    /* Reasons */
    .reasons-wall {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Smokey */
    .smokey-split { gap: 20px; }
    .smokey-split__frame { width: 140px; height: 140px; }

    /* Numbers */
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .number-card__value { font-size: 2.4rem; }

    /* Closing */
    .closing__photo-frame { width: 220px; height: 220px; }
}

@media (max-width: 480px) {
    .opening__title { font-size: 2.2rem; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .smokey-split__frame { width: 120px; height: 120px; }
    .smokey-split { gap: 16px; }
}


/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-fade, .reveal-slide, .reveal-timeline, .reveal-note,
    .letter__body--animated, .letter-card {
        opacity: 1;
        transform: none;
    }

    .envelope-wrapper { display: none; }
    .letter-card { opacity: 1; transform: none; }
}
