﻿/* =============================================
   SHREYA BIRTHDAY — LOVE SITE  style.css v5
   Deep romantic dark · cinematic · emotional
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Dancing+Script:wght@400;600&family=Inter:wght@300;400;500&display=swap');

/* ── RESET & TOKENS ──────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rose: #f2a7b8;
    --rose-deep: #c2184e;
    --rose-soft: #ff8ab0;
    --gold: #f6d16a;
    --bg: #05020d;
    --bg2: #0a040f;
    --fg: #f5eef8;
    --fg-dim: rgba(245, 238, 248, 0.50);
    --fg-muted: rgba(245, 238, 248, 0.30);
    --glow-pink: rgba(194, 24, 78, 0.22);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: 'Dancing Script', cursive;
    --sans: 'Inter', system-ui, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── PARTICLE CANVAS ─────────────────────── */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── PROGRESS BAR ────────────────────────── */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--rose-deep), var(--rose), var(--gold));
    z-index: 9999;
    pointer-events: none;
    will-change: width;
    box-shadow: 0 0 10px rgba(242, 107, 157, 0.6);
}

/* ══════════════════════════════════════════
   MUSIC PLAYER
══════════════════════════════════════════ */
.music-player {
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 500;
    width: 60px;
    overflow: hidden;
    background: rgba(8, 2, 16, 0.50);
    border: 1px solid rgba(255, 107, 157, 0.18);
    border-radius: 40px;
    padding: 9px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(50px);
    opacity: 0;
    transition:
        width 0.45s var(--ease),
        border-radius 0.45s var(--ease),
        padding 0.45s var(--ease),
        background 0.35s ease,
        opacity 0.7s ease,
        transform 0.7s var(--ease),
        box-shadow 0.35s ease;
    pointer-events: none;
    cursor: grab;
    user-select: none;
}

.music-player .mp-meta,
.music-player .music-bars,
.music-player .mp-seek-row {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.music-player.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.music-player.expanded,
.music-player:hover {
    width: 278px;
    border-radius: 20px;
    padding: 14px 16px 12px;
    background: rgba(8, 2, 16, 0.96);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.82), 0 0 70px rgba(180, 24, 90, 0.14);
}

.music-player.expanded .mp-meta,
.music-player:hover .mp-meta,
.music-player.expanded .music-bars,
.music-player:hover .music-bars,
.music-player.expanded .mp-seek-row,
.music-player:hover .mp-seek-row {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    transition-delay: 0.1s;
}

.music-player.dragging {
    cursor: grabbing;
    opacity: 0.88;
    transition: none;
}

.mp-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mp-art {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #8b1040 0%, #3a0018 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 18px rgba(194, 24, 78, 0.5);
}

.mp-meta {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-family: var(--sans);
    font-size: 0.6rem;
    color: var(--rose-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.music-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #ff6b9d 0%, #e01e5a 42%, #7a0836 100%);
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 5px 22px rgba(224, 30, 90, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.music-btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 55%;
    height: 220%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
    pointer-events: none;
}

.music-btn:hover::before {
    left: 130%;
}

.music-btn:hover {
    transform: scale(1.13);
    box-shadow: 0 0 0 8px rgba(255, 107, 157, 0.18), 0 10px 36px rgba(224, 30, 90, 0.9);
}

.music-btn:active {
    transform: scale(0.9);
}

.music-ripple {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 157, 0.6);
    opacity: 0;
    pointer-events: none;
}

.music-btn.playing .music-ripple {
    animation: ripplePulse 1.7s ease-out infinite;
}

@keyframes ripplePulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 10px;
    padding: 0 2px;
    flex-shrink: 0;
}

.music-bars span {
    display: block;
    flex: 1;
    border-radius: 3px;
    height: 2px;
    background: linear-gradient(to top, #e01e5a, #ffacd0);
    transition: height 0.3s;
}

.music-bars.playing span:nth-child(1) {
    animation: eqBar 0.85s ease-in-out infinite alternate;
}

.music-bars.playing span:nth-child(2) {
    animation: eqBar 0.65s ease-in-out 0.10s infinite alternate;
}

.music-bars.playing span:nth-child(3) {
    animation: eqBar 1.05s ease-in-out 0.20s infinite alternate;
}

.music-bars.playing span:nth-child(4) {
    animation: eqBar 0.75s ease-in-out 0.05s infinite alternate;
}

.music-bars.playing span:nth-child(5) {
    animation: eqBar 0.95s ease-in-out 0.15s infinite alternate;
}

@keyframes eqBar {
    0% {
        height: 2px;
    }

    100% {
        height: 10px;
    }
}

.mp-seek-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mp-time {
    font-family: var(--sans);
    font-size: 0.58rem;
    color: rgba(255, 210, 230, 0.55);
    min-width: 26px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.mp-slider-wrap {
    position: relative;
    flex: 1;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mp-seek {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    margin: 0;
}

.mp-slider-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    z-index: 1;
}

.mp-seek-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #c2184e, #ff6b9d, #ffb347);
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    transition: width 0.1s linear;
}

.mp-slider-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--thumb-pos, 0%);
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.25), 0 0 10px rgba(255, 107, 157, 0.6);
    z-index: 4;
    pointer-events: none;
    transition: left 0.1s linear;
}


/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(120, 10, 55, 0.35) 0%, transparent 70%),
        var(--bg);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: glowDrift 18s ease-in-out infinite alternate;
}

.glow-a {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(180, 15, 70, 0.36) 0%, transparent 65%);
    top: -120px;
    left: -100px;
}

.glow-b {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 167, 184, 0.2) 0%, transparent 65%);
    bottom: -80px;
    right: -80px;
    animation-duration: 14s;
    animation-delay: -7s;
}

@keyframes glowDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(55px, 40px) scale(1.12);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-date {
    font-family: var(--sans);
    font-size: clamp(0.65rem, 2vw, 0.78rem);
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--fg);
    text-shadow: 0 0 90px rgba(242, 107, 157, 0.35);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ht-line1 {
    display: block;
}

.ht-line2 {
    display: block;
    font-size: 0.55em;
    letter-spacing: 0.15em;
    color: var(--rose-soft);
}

.hero-sub {
    font-family: var(--script);
    font-size: clamp(1.1rem, 3.5vw, 1.85rem);
    color: var(--fg-dim);
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0;
}

.hero-hint {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fg-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
}

.hint-icon {
    font-size: 1.2rem;
    animation: bounceDown 2.2s ease-in-out infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}



/* ══════════════════════════════════════════
   JOURNEY SECTION
══════════════════════════════════════════ */
.journey {
    position: relative;
    z-index: 1;
    padding: 0 0 100px;
    overflow: hidden;
}

.journey-intro {
    text-align: center;
    padding: 140px 32px 80px;
}

.journey-eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.65;
    margin-bottom: 18px;
}

.journey-heading {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--fg);
}

.journey-heading em {
    font-style: italic;
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Gallery Row Wrapper ────────────────── */
.gallery-row-wrap {
    overflow: hidden;
    padding: 14px 0;
    /* Fade edges for depth */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    opacity: 0;
    /* fades in via GSAP ScrollTrigger */
}

/* ── Gallery Row ────────────────────────── */
.gallery-row {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
    /* contain layout so painting stays inside */
    contain: layout style;
}

.gallery-row.row-ltr {
    animation: rowScrollLTR 38s linear infinite;
}

.gallery-row.row-rtl {
    animation: rowScrollRTL 32s linear infinite;
}

@keyframes rowScrollLTR {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes rowScrollRTL {
    0% {
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* ── Gallery Card ───────────────────────── */
.gallery-card {
    position: relative;
    flex-shrink: 0;
    width: 270px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(242, 107, 157, 0.10) inset;
    /* Only transform and opacity on compositor thread — butter smooth */
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.gallery-card:hover {
    transform: scale(1.06) translateY(-5px);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1.5px rgba(246, 209, 106, 0.35) inset,
        0 0 55px rgba(242, 107, 157, 0.22);
    z-index: 10;
}

/* Landscape video card */
.gallery-card.card-landscape {
    width: 380px;
}

/* ── Image / Video wrapper ──────────────── */
.gallery-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-card.card-landscape .gallery-img-wrap {
    aspect-ratio: 16 / 9;
}

.gallery-card.card-portrait .gallery-img-wrap {
    aspect-ratio: 9 / 16;
}

.gallery-img-wrap img,
.gallery-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Cinematic color grade — GPU composited */
    filter: contrast(1.06) saturate(1.12) brightness(0.95);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    will-change: transform;
}

.gallery-card:hover .gallery-img-wrap img,
.gallery-card:hover .gallery-img-wrap video {
    transform: scale(1.10);
    filter: contrast(1.08) saturate(1.20) brightness(1.02);
}

/* ── Caption ────────────────────────────── */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 14px 14px;
    background: linear-gradient(to top, rgba(5, 2, 12, 0.88) 0%, transparent 100%);
    font-family: var(--script);
    font-size: 0.88rem;
    color: var(--fg);
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    border-radius: 0 0 16px 16px;
}

.gallery-card:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ── Number badge ───────────────────────── */
.gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(5, 2, 12, 0.78);
    border: 1px solid rgba(242, 167, 184, 0.28);
    color: var(--rose);
    font-family: var(--sans);
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 5;
}

/* ── Video indicator badge ────────────────── */
.gallery-vid-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(5, 2, 12, 0.78);
    border: 1px solid rgba(242, 167, 184, 0.28);
    font-size: 0.9rem;
    padding: 2px 7px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Emotion quote cards between rows ───── */
.emotion-card {
    position: relative;
    z-index: 1;
    padding: 70px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.emotion-text {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4.5vw, 3.4rem);
    font-weight: 300;
    color: var(--fg);
    line-height: 1.35;
    max-width: 700px;
    text-shadow: 0 0 80px rgba(242, 107, 157, 0.25);
    opacity: 0;
    transform: translateY(30px);
}

.emotion-text em {
    font-style: italic;
    color: var(--rose);
}


/* ══════════════════════════════════════════
   FINALE
══════════════════════════════════════════ */
.finale {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background: radial-gradient(ellipse 70% 70% at 50% 55%, rgba(140, 10, 55, 0.32) 0%, transparent 70%),
        var(--bg2);
}

.finale-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: glowDrift 22s ease-in-out infinite alternate;
}

.glow-fa {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(180, 15, 65, 0.3) 0%, transparent 65%);
    top: -150px;
    right: -120px;
}

.glow-fb {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(246, 209, 106, 0.15) 0%, transparent 65%);
    bottom: -100px;
    left: -100px;
    animation-delay: -11s;
}

/* Petals */
#petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.petal {
    position: absolute;
    top: -5%;
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    opacity: 0;
    pointer-events: none;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(-5vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    90% {
        opacity: 0.55;
    }

    100% {
        transform: translateY(110vh) rotate(540deg) translateX(60px);
        opacity: 0;
    }
}

.finale-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 780px;
}

.finale-eyebrow {
    font-family: var(--sans);
    font-size: clamp(0.62rem, 2vw, 0.78rem);
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.65;
    opacity: 0;
    /* animated in by JS */
}

.finale-heart {
    font-size: clamp(2.5rem, 6vw, 4rem);
    animation: heartBeat 1.6s ease-in-out infinite;
    opacity: 0;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

.finale-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--fg);
    text-shadow: 0 0 100px rgba(242, 107, 157, 0.4);
    opacity: 0;
}

.finale-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.finale-rule {
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0;
}

.finale-verse {
    font-family: var(--script);
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    color: var(--fg-dim);
    line-height: 1.6;
    opacity: 0;
}

.finale-verse.accent {
    color: var(--rose);
    text-shadow: 0 0 30px rgba(242, 107, 157, 0.45);
}

.finale-sig {
    font-family: var(--sans);
    font-size: clamp(0.7rem, 1.8vw, 0.86rem);
    color: var(--fg-muted);
    letter-spacing: 0.05em;
    margin-top: 8px;
    opacity: 0;
}


/* ══════════════════════════════════════════
   FULLSCREEN MODAL
══════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.modal.open {
    pointer-events: all;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 1, 8, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 26px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--fg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.3s;
}

.modal-close:hover {
    background: rgba(242, 107, 157, 0.22);
    transform: rotate(90deg);
}

.modal-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
    width: min(94vw, 860px);
    transform: scale(0.92) translateY(18px);
    transition: transform 0.45s var(--ease);
}

.modal.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content img {
    max-width: 100%;
    max-height: 72svh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 0 40px rgba(242, 107, 157, 0.45));
    pointer-events: none;
}

.modal-content video {
    display: none;
    max-width: 100%;
    max-height: 72svh;
    width: auto;
    border-radius: 12px;
    background: #000;
}

.modal-content video.active {
    display: block;
}

.modal-caption {
    font-family: var(--script);
    font-size: clamp(1.05rem, 3.2vw, 1.55rem);
    color: var(--rose);
    text-align: center;
    line-height: 1.55;
    text-shadow: 0 0 20px rgba(242, 107, 157, 0.4);
}

/* scrollbar */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--rose-deep);
    border-radius: 4px;
}

/* ── Mobile ───────────────────────────────── */
@media (max-width: 768px) {
    .gallery-card {
        width: 210px;
    }

    .gallery-card.card-landscape {
        width: 290px;
    }

    .gallery-row {
        gap: 12px;
    }

    .gallery-row.row-ltr {
        animation-duration: 28s;
    }

    .gallery-row.row-rtl {
        animation-duration: 24s;
    }

    .finale-inner {
        padding: 60px 24px;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .music-player {
        bottom: 14px;
        right: 12px;
    }

    .music-player.expanded,
    .music-player:hover {
        width: 248px;
    }
}


/* ══════════════════════════════════════════
   TEASE GATE  — "There are moments only we know…"
══════════════════════════════════════════ */
.tease-gate {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background:
        radial-gradient(ellipse 90% 60% at 50% 50%, rgba(110, 8, 50, 0.38) 0%, transparent 72%),
        linear-gradient(180deg, var(--bg) 0%, #0a0214 50%, var(--bg) 100%);
}

.tease-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    animation: glowDrift 20s ease-in-out infinite alternate;
}

.tg-a {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(180, 12, 65, 0.30) 0%, transparent 65%);
    top: -80px;
    right: -120px;
}

.tg-b {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(246, 185, 120, 0.14) 0%, transparent 65%);
    bottom: -60px;
    left: -80px;
    animation-duration: 15s;
    animation-delay: -8s;
}

.tease-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    text-align: center;
    padding: 40px 32px;
}

/* The italic serif line */
.tease-line {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--fg);
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-shadow:
        0 0 80px rgba(242, 107, 157, 0.30),
        0 2px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(24px);
    animation: teaseLineIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes teaseLineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* The reveal button */
.reveal-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, rgba(180, 12, 65, 0.85) 0%, rgba(110, 4, 44, 0.95) 60%, rgba(60, 2, 30, 1) 100%);
    color: #fce8ef;
    font-family: var(--sans);
    font-size: clamp(0.78rem, 2.2vw, 0.92rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    /* Soft border */
    box-shadow:
        0 0 0 1px rgba(255, 130, 170, 0.28),
        0 8px 40px rgba(180, 12, 65, 0.50),
        0 0 60px rgba(242, 107, 157, 0.18);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        opacity 0.6s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    animation: revealBtnIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

@keyframes revealBtnIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulsing glow ring */
.reveal-btn-glow {
    position: absolute;
    inset: -6px;
    border-radius: 66px;
    border: 1.5px solid rgba(255, 130, 160, 0.55);
    animation: btnGlowPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnGlowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 18px rgba(242, 107, 157, 0.4);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.06);
        box-shadow: 0 0 46px rgba(242, 107, 157, 0.18);
    }
}

.reveal-btn-icon {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.reveal-btn-text {
    position: relative;
    z-index: 1;
}

/* Hover state */
.reveal-btn:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 160, 190, 0.45),
        0 14px 55px rgba(200, 15, 75, 0.65),
        0 0 90px rgba(242, 107, 157, 0.28);
}

.reveal-btn:hover .reveal-btn-icon {
    transform: rotate(-12deg) scale(1.18);
}

/* Active press */
.reveal-btn:active {
    transform: scale(0.98) translateY(0);
}

/* Fading out after click */
.reveal-btn.fading {
    opacity: 0 !important;
    transform: scale(0.92) translateY(10px) !important;
    pointer-events: none;
}

.tease-gate.fading-out {
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    pointer-events: none;
}


/* ══════════════════════════════════════════
   LOVE REVEAL WRAPPER  — hidden until click
══════════════════════════════════════════ */
.love-reveal-wrap {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition:
        opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.love-reveal-wrap.revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}


/* ══════════════════════════════════════════
   OUR STORY TIMELINE
══════════════════════════════════════════ */
.timeline-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px 120px;
}

.tl-heading {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tl-eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.78;
}

.tl-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 5.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--fg);
}

.tl-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 55%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tl-rule {
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.55;
}

/* Central spine */
.tl-track {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.tl-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(242, 107, 157, 0.35) 8%,
            rgba(242, 107, 157, 0.35) 92%,
            transparent 100%);
}

.tl-item {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    align-items: center;
    padding: 28px 0;
}

.tl-item[data-side="left"] .tl-card {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    padding-right: 36px;
}

.tl-item[data-side="left"] .tl-dot {
    grid-column: 2;
    grid-row: 1;
}

.tl-item[data-side="right"] .tl-dot {
    grid-column: 2;
    grid-row: 1;
}

.tl-item[data-side="right"] .tl-card {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    padding-left: 36px;
}

.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--rose);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(242, 107, 157, 0.14), 0 0 18px rgba(242, 107, 157, 0.35);
    justify-self: center;
    align-self: center;
    transition: box-shadow 0.4s ease;
}

.tl-card {
    background: rgba(18, 4, 28, 0.72);
    border: 1px solid rgba(242, 107, 157, 0.14);
    border-radius: 16px;
    padding: 26px 28px;
    max-width: 380px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 107, 157, 0.06) inset;
    opacity: 0;
    transform: translateY(30px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tl-card:hover {
    border-color: rgba(242, 107, 157, 0.32);
    box-shadow: 0 14px 55px rgba(0, 0, 0, 0.65), 0 0 55px rgba(242, 107, 157, 0.14), 0 0 0 1px rgba(242, 107, 157, 0.14) inset;
}

.tl-card-emoji {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.tl-card-date {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.8;
    margin-bottom: 10px;
}

.tl-card-text {
    font-family: var(--serif);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--fg);
    line-height: 1.65;
    opacity: 0.88;
}

@media (max-width: 640px) {
    .tl-track::before {
        left: 18px;
    }

    .tl-item {
        grid-template-columns: 28px 1fr;
        padding: 16px 0;
    }

    .tl-item[data-side="left"] .tl-dot,
    .tl-item[data-side="right"] .tl-dot {
        grid-column: 1;
        grid-row: 1;
    }

    .tl-item[data-side="left"] .tl-card,
    .tl-item[data-side="right"] .tl-card {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        padding-left: 20px;
        padding-right: 0;
        max-width: 100%;
    }
}


/* ══════════════════════════════════════════
   HEART LOCK GATE SECTION
══════════════════════════════════════════ */
.hl-gate {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 65% at 50% 50%, rgba(130, 5, 35, 0.4) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #0c0014 50%, var(--bg) 100%);
}

.hl-gate-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: glowDrift 18s ease-in-out infinite alternate;
}

.hl-ga {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 10, 55, 0.3) 0%, transparent 65%);
    top: -80px;
    left: -80px;
}

.hl-gb {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 100, 140, 0.14) 0%, transparent 65%);
    bottom: -50px;
    right: -60px;
    animation-duration: 13s;
    animation-delay: -6s;
}

.hl-gate-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 48px 32px;
    max-width: 700px;
}

.hl-pre {
    font-family: var(--sans);
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.6;
}

.hl-quote {
    font-family: var(--serif);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    color: var(--fg);
    text-shadow: 0 0 80px rgba(242, 107, 157, 0.35), 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hl-sub {
    font-family: var(--serif);
    font-size: clamp(0.88rem, 2.2vw, 1.1rem);
    font-style: italic;
    color: rgba(245, 238, 248, 0.45);
    line-height: 1.6;
    max-width: 480px;
}

/* ── The Button ─────────────────────────── */
.hl-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 20px 48px;
    margin-top: 12px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, rgba(185, 8, 58, 0.9) 0%, rgba(110, 2, 38, 0.98) 55%, rgba(55, 0, 22, 1) 100%);
    color: #fce8ef;
    font-family: var(--sans);
    font-size: clamp(0.75rem, 2vw, 0.88rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 120, 160, 0.28),
        0 10px 45px rgba(190, 8, 58, 0.55),
        0 0 70px rgba(242, 107, 157, 0.2);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    animation: hlBtnBreath 3.2s ease-in-out infinite;
}

@keyframes hlBtnBreath {

    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(255, 120, 160, 0.28), 0 10px 45px rgba(190, 8, 58, 0.55), 0 0 50px rgba(242, 107, 157, 0.18);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(255, 160, 190, 0.45), 0 12px 60px rgba(210, 10, 65, 0.75), 0 0 90px rgba(242, 107, 157, 0.35);
    }
}

.hl-btn-ring {
    position: absolute;
    inset: -6px;
    border-radius: 66px;
    border: 1.5px solid rgba(255, 130, 160, 0.5);
    animation: hlRingPulse 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hlRingPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.08;
        transform: scale(1.08);
    }
}

.hl-btn-icon {
    font-size: 1.15rem;
    display: inline-block;
    transition: transform 0.35s ease;
}

.hl-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.hl-btn:hover .hl-btn-icon {
    transform: scale(1.2);
}

.hl-btn:active {
    transform: scale(0.97);
}

/* Hidden timeline */
.hl-timeline-hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hl-timeline-hidden.hl-revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}


/* ══════════════════════════════════════════
   HEART OVERLAY MODAL
══════════════════════════════════════════ */
.heart-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.heart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Dark veil */
.heart-overlay-veil {
    position: absolute;
    inset: 0;
    background: rgba(4, 0, 12, 0.92);
    backdrop-filter: blur(12px) saturate(0.5);
    -webkit-backdrop-filter: blur(12px) saturate(0.5);
}

/* Content panel */
.heart-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 28px;
    user-select: none;
    -webkit-user-select: none;
}

/* SVG heart wrapper — touch / click target */
.heart-svg-wrap {
    position: relative;
    width: clamp(240px, 55vw, 340px);
    cursor: pointer;
    touch-action: none;
}

.heart-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
    transform-origin: center;
}

/* Progress ring overlaid on heart */
.heart-progress-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hpr-track {
    fill: none;
    stroke: rgba(255, 80, 120, 0.15);
    stroke-width: 4;
}

.hpr-fill {
    fill: none;
    stroke: rgba(255, 80, 120, 0.8);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 804;
    /* 2π × 128 ≈ 804 */
    stroke-dashoffset: 804;
    transform: rotate(-90deg);
    transform-origin: 160px 145px;
    transition: stroke-dashoffset 0.05s linear;
    filter: drop-shadow(0 0 8px rgba(255, 80, 120, 0.8));
}

/* Heartbeat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    12% {
        transform: scale(1.09);
    }

    24% {
        transform: scale(0.98);
    }

    36% {
        transform: scale(1.06);
    }

    52% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.heart-svg.beating {
    animation: heartBeat 0.75s ease-in-out infinite;
    filter: drop-shadow(0 0 22px rgba(255, 60, 100, 0.85)) drop-shadow(0 0 55px rgba(200, 10, 50, 0.45));
}

/* Intensified beat on success */
@keyframes heartBeatIntense {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.14);
    }

    22% {
        transform: scale(0.96);
    }

    34% {
        transform: scale(1.10);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.heart-svg.beat-intense {
    animation: heartBeatIntense 0.6s ease-in-out infinite;
    filter: drop-shadow(0 0 35px rgba(255, 60, 100, 1)) drop-shadow(0 0 80px rgba(200, 10, 50, 0.65));
}

/* Text below heart */
.heart-prompt {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(245, 220, 228, 0.9);
    text-align: center;
    text-shadow: 0 0 30px rgba(242, 107, 157, 0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.heart-hint {
    font-family: var(--sans);
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(242, 107, 157, 0.5);
    text-align: center;
    transition: opacity 0.6s ease;
}

.heart-hint.hidden {
    opacity: 0;
}


/* ══════════════════════════════════════════
   EMOTION CARD — Heart Button
   (injected under "You are my safest place.")
══════════════════════════════════════════ */
.ec-heart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 17px 42px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg,
            rgba(185, 8, 58, 0.88) 0%,
            rgba(100, 1, 35, 0.98) 60%,
            rgba(48, 0, 18, 1) 100%);
    color: #fce8ef;
    font-family: var(--sans);
    font-size: clamp(0.72rem, 2vw, 0.85rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(255, 110, 155, 0.28),
        0 8px 40px rgba(190, 8, 58, 0.5),
        0 0 60px rgba(242, 107, 157, 0.18);
    animation: ecHeartBreath 3s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ecHeartBreath {

    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(255, 110, 155, 0.28),
            0 8px 38px rgba(190, 8, 58, 0.5),
            0 0 50px rgba(242, 107, 157, 0.16);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(255, 160, 190, 0.48),
            0 12px 55px rgba(215, 10, 68, 0.72),
            0 0 85px rgba(242, 107, 157, 0.32);
    }
}

.ec-heart-ring {
    position: absolute;
    inset: -7px;
    border-radius: 66px;
    border: 1.5px solid rgba(255, 130, 160, 0.48);
    animation: ecRingPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ecRingPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.06;
        transform: scale(1.09);
    }
}

.ec-heart-icon {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.35s ease;
}

.ec-heart-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.ec-heart-btn:hover .ec-heart-icon {
    transform: scale(1.25);
}

.ec-heart-btn:active {
    transform: scale(0.97);
}


/* ══════════════════════════════════════════
   OPEN OUR MEMORIES TEASE SECTION
══════════════════════════════════════════ */
.om-tease {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(90, 4, 40, 0.4) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #0a0017 50%, var(--bg) 100%);
}

.om-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    animation: glowDrift 20s ease-in-out infinite alternate;
}

.om-ga {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(190, 8, 58, 0.28) 0%, transparent 65%);
    top: -70px;
    right: -90px;
}

.om-gb {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 100, 140, 0.14) 0%, transparent 65%);
    bottom: -40px;
    left: -60px;
    animation-duration: 14s;
    animation-delay: -7s;
}

.om-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
    padding: 48px 32px;
}

.om-eyebrow {
    font-family: var(--sans);
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.65;
}

.om-line {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 5.5vw, 3.6rem);
    font-weight: 300;
    font-style: italic;
    color: var(--fg);
    line-height: 1.35;
    text-shadow: 0 0 80px rgba(242, 107, 157, 0.3), 0 2px 35px rgba(0, 0, 0, 0.6);
}

.om-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 18px 46px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg,
            rgba(160, 6, 50, 0.86) 0%,
            rgba(88, 1, 30, 0.97) 60%,
            rgba(40, 0, 16, 1) 100%);
    color: #fce8ef;
    font-family: var(--sans);
    font-size: clamp(0.74rem, 2vw, 0.87rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(255, 120, 160, 0.28),
        0 10px 44px rgba(185, 8, 55, 0.52),
        0 0 65px rgba(242, 107, 157, 0.18);
    animation: ecHeartBreath 3.4s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.om-btn-ring {
    position: absolute;
    inset: -6px;
    border-radius: 66px;
    border: 1.5px solid rgba(255, 120, 158, 0.5);
    animation: ecRingPulse 3.4s ease-in-out infinite;
    pointer-events: none;
}

.om-btn-icon {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.35s ease;
}

.om-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.om-btn:hover .om-btn-icon {
    transform: rotate(-12deg) scale(1.2);
}

.om-btn:active {
    transform: scale(0.97);
}


/* ══════════════════════════════════════════
   SMALLER BUTTON SIZES (override)
══════════════════════════════════════════ */
.ec-heart-btn {
    padding: 11px 28px !important;
    font-size: clamp(0.6rem, 1.6vw, 0.72rem) !important;
    letter-spacing: 0.18em !important;
    gap: 9px !important;
    margin-top: 22px !important;
}

.ec-heart-icon {
    font-size: 0.9rem !important;
}

/* Open Memories btn when inside an emotion card (small inline) */
.om-btn.om-inline {
    padding: 11px 28px;
    font-size: clamp(0.6rem, 1.6vw, 0.72rem);
    letter-spacing: 0.18em;
    gap: 9px;
    margin-top: 22px;
}

.om-btn.om-inline .om-btn-icon {
    font-size: 0.9rem;
}


/* ══════════════════════════════════════════
   HEART IMAGE (replaces SVG)
══════════════════════════════════════════ */
.heart-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 22px rgba(200, 20, 60, 0.75)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
    transform-origin: center;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
    transition: filter 0.3s ease;
}

.heart-svg-wrap {
    width: clamp(220px, 50vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
}

/* Heartbeat animation applied to img instead of svg */
.heart-img.beating {
    animation: heartBeat 0.75s ease-in-out infinite;
    filter:
        drop-shadow(0 0 32px rgba(255, 40, 80, 0.95)) drop-shadow(0 0 60px rgba(200, 10, 45, 0.55)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}


/* ══════════════════════════════
   PREVENT browser long-press menu on heart image
══════════════════════════════ */
#heartSvgWrap,
#heartSvgWrap * {
    -webkit-touch-callout: none !important;
    /* iOS: kills image callout */
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.heart-img {
    pointer-events: none;
    /* let parent div handle all touch; img gets no native menu */
}


/* ══════════════════════════════════════════
   Timeline: override hidden state for in-place reveal
   (JS handles the actual transition via inline styles)
══════════════════════════════════════════ */
#ourStory.hl-timeline-hidden {
    display: block !important;
    /* keep in layout flow once moved */
    opacity: 0;
    transform: translateY(28px);
    pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════
   PAUSE THIS MOMENT — Cinematic Time Freeze
   Independent of Heartbeat & Timeline sections
══════════════════════════════════════════════════════════════ */

/* ── The Button ──────────────────────────────────────────── */
.ptm-btn-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 32px 56px;
}

.ptm-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 38px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg,
            rgba(246, 209, 106, 0.12) 0%,
            rgba(255, 180, 60, 0.08) 50%,
            rgba(246, 209, 106, 0.12) 100%);
    border: 1px solid rgba(246, 209, 106, 0.32);
    cursor: pointer;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 400;
    font-style: italic;
    color: #f6d16a;
    letter-spacing: 0.06em;
    text-shadow: 0 0 22px rgba(246, 209, 106, 0.55);
    box-shadow:
        0 0 28px rgba(246, 209, 106, 0.10),
        0 4px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(246, 209, 106, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    animation: ptmBreathe 3.2s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    will-change: transform;
}

@keyframes ptmBreathe {

    0%,
    100% {
        box-shadow:
            0 0 28px rgba(246, 209, 106, 0.10),
            0 4px 24px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(246, 209, 106, 0.18);
    }

    50% {
        box-shadow:
            0 0 55px rgba(246, 209, 106, 0.28),
            0 6px 36px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(246, 209, 106, 0.28);
    }
}

.ptm-btn:hover {
    transform: scale(1.055) translateY(-2px);
    border-color: rgba(246, 209, 106, 0.60);
    box-shadow:
        0 0 70px rgba(246, 209, 106, 0.30),
        0 12px 50px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(246, 209, 106, 0.35);
    animation-play-state: paused;
}

.ptm-btn:active {
    transform: scale(0.97);
}

/* Shimmer sweep on hover */
.ptm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(246, 209, 106, 0.18),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.ptm-btn:hover::before {
    left: 150%;
}

.ptm-btn-icon {
    font-size: 1.1em;
    display: inline-block;
    line-height: 1;
}

.ptm-btn-ring {
    position: absolute;
    inset: -5px;
    border-radius: 60px;
    border: 1px solid rgba(246, 209, 106, 0.22);
    pointer-events: none;
    animation: ptmRingPulse 3.2s ease-in-out infinite;
}

@keyframes ptmRingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.03);
    }
}


/* ── Main Cinematic Overlay ──────────────────────────────── */
#ptmOverlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#ptmOverlay.ptm-active {
    pointer-events: all;
    opacity: 1;
}

/* Dark veil */
#ptmVeil {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition:
        background 1.2s ease,
        backdrop-filter 1.2s ease,
        -webkit-backdrop-filter 1.2s ease;
}

#ptmOverlay.ptm-active #ptmVeil {
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Ripple distortion flash */
#ptmRipple {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    z-index: 1;
}

#ptmRipple.ptm-ripple-go {
    animation: ptmRippleDistort 0.85s ease-out forwards;
}

@keyframes ptmRippleDistort {
    0% {
        opacity: 0;
        background: radial-gradient(ellipse at 50% 50%, rgba(246, 209, 106, 0.35) 0%, transparent 60%);
    }

    20% {
        opacity: 1;
    }

    70% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        background: radial-gradient(ellipse at 50% 50%, rgba(246, 209, 106, 0) 0%, transparent 60%);
    }
}

/* Dust particles canvas */
#ptmDust {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.8s ease 1s;
}

#ptmOverlay.ptm-active #ptmDust {
    opacity: 1;
}

/* ── Cinematic Text Container ────────────────────────────── */
#ptmTextWrap {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px;
    pointer-events: none;
    gap: 0;
}

.ptm-line {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(245, 238, 248, 0.95);
    text-shadow:
        0 0 40px rgba(246, 209, 106, 0.35),
        0 2px 20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.4;
    will-change: opacity, transform;
}

.ptm-line.ptm-gold {
    color: #f6d16a;
    text-shadow:
        0 0 50px rgba(246, 209, 106, 0.55),
        0 2px 20px rgba(0, 0, 0, 0.7);
    font-size: clamp(1.9rem, 6vw, 3.8rem);
}

.ptm-line-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(245, 238, 248, 0.55);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 22px;
    letter-spacing: 0.04em;
    line-height: 1.75;
}

/* Second sub-paragraph — warmer, slightly bolder emotional payoff */
.ptm-line-sub2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.95rem, 2.7vw, 1.38rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(246, 209, 106, 0.72);
    text-shadow:
        0 0 30px rgba(246, 209, 106, 0.25),
        0 2px 14px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 32px;
    letter-spacing: 0.04em;
    line-height: 1.85;
}

.ptm-line.visible,
.ptm-line-sub.visible,
.ptm-line-sub2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Divider between lines */
.ptm-divider {
    width: 0px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 209, 106, 0.45), transparent);
    margin: 20px auto;
    opacity: 0;
    transition: width 1s ease 0.2s, opacity 0.8s ease 0.2s;
}

.ptm-divider.visible {
    width: 80px;
    opacity: 1;
}

/* ── Resume Button ───────────────────────────────────────── */
#ptmResumeWrap {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
    white-space: nowrap;
}

#ptmResumeWrap.visible {
    opacity: 1;
    pointer-events: all;
}

#ptmResumeBtn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 32px;
    border-radius: 50px;
    border: 1px solid rgba(245, 238, 248, 0.22);
    background: rgba(245, 238, 248, 0.06);
    color: rgba(245, 238, 248, 0.8);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-style: italic;
    letter-spacing: 0.05em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

#ptmResumeBtn:hover {
    background: rgba(245, 238, 248, 0.12);
    border-color: rgba(245, 238, 248, 0.42);
    transform: scale(1.06);
}

#ptmResumeBtn:active {
    transform: scale(0.96);
}


/* ── Grayscale applied to page content ───────────────────── */
body.ptm-frozen .journey,
body.ptm-frozen .tease-gate,
body.ptm-frozen .hero,
body.ptm-frozen .finale,
body.ptm-frozen .timeline-section {
    filter: grayscale(1) brightness(0.55);
    transition: filter 1.4s ease;
}

/* The spotlight image stays in color */
body.ptm-frozen .ptm-spotlight-img {
    filter: grayscale(0) brightness(1) contrast(1.06) saturate(1.18) !important;
    transition: filter 1.4s ease, transform 5s ease !important;
    transform: scale(1.03) !important;
    box-shadow: 0 0 60px rgba(246, 209, 106, 0.45), 0 0 120px rgba(246, 209, 106, 0.18) !important;
    z-index: 10 !important;
    position: relative !important;
    border-radius: 16px;
}

/* Restore on unfreeze */
body.ptm-restored .journey,
body.ptm-restored .tease-gate,
body.ptm-restored .hero,
body.ptm-restored .finale,
body.ptm-restored .timeline-section {
    filter: none;
    transition: filter 1.4s ease;
}

body.ptm-restored .ptm-spotlight-img {
    filter: contrast(1.06) saturate(1.12) brightness(0.95) !important;
    transform: scale(1) !important;
    box-shadow: none !important;
    transition: filter 1.4s ease, transform 2s ease !important;
}

/* ── Freeze / Resume gallery row marquee scrolling ─────────── */
body.ptm-frozen .gallery-row {
    animation-play-state: paused !important;
}

body.ptm-restored .gallery-row {
    animation-play-state: running !important;
}