/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
    --obsidian: #07040d;
    --midnight: #0b0916;
    --ink: #12101a;
    --ink-soft: #1a1624;
    --platinum: rgba(235, 228, 220, 0.9);
    --platinum-dim: rgba(235, 228, 220, 0.5);
    --platinum-ghost: rgba(235, 228, 220, 0.15);
    --warm: #c8a882;
    --warm-soft: rgba(200, 168, 130, 0.55);
    --warm-ghost: rgba(200, 168, 130, 0.12);
    --amber-glow: rgba(185, 130, 70, 0.07);
    --border-subtle: rgba(200, 168, 130, 0.12);
    --border-soft: rgba(200, 168, 130, 0.22);
    --transition: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--obsidian);
    color: var(--platinum);
    height: 100%;
    overflow: hidden;
    cursor: default;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   AMBIENT PARTICLES
───────────────────────────────────────── */
.particle-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--warm);
    animation: particleDrift linear infinite;
    opacity: 0;
    will-change: transform, opacity; /* Force hardware acceleration */
}

@keyframes particleDrift {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
    20%  { opacity: 0.4; }
    80%  { opacity: 0.15; }
    100% { opacity: 0; transform: translate3d(0, -100vh, 0) scale(0.3); }
}

/* ─────────────────────────────────────────
   COMETS
───────────────────────────────────────── */
.comet-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.comet {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(235,228,220,0.8), transparent);
    border-radius: 1px;
    animation: cometFly 8s linear infinite;
    opacity: 0;
    will-change: transform, opacity; /* Force hardware acceleration */
}

.comet:nth-child(1) { top: 12%; left: 15%; width: 80px; animation-delay: 0s; }
.comet:nth-child(2) { top: 5%;  left: 40%; width: 55px; animation-delay: 1.8s; }
.comet:nth-child(3) { top: 22%; left: 65%; width: 70px; animation-delay: 3.5s; }
.comet:nth-child(4) { top: 8%;  left: 75%; width: 45px; animation-delay: 5.2s; }
.comet:nth-child(5) { top: 18%; left: 30%; width: 60px; animation-delay: 6.7s; }

@keyframes cometFly {
    0%   { opacity: 0; transform: translate3d(0,0,0) rotate(-38deg); }
    8%   { opacity: 0.6; }
    60%  { opacity: 0.2; }
    100% { opacity: 0; transform: translate3d(-35vw, 90vh, 0) rotate(-38deg); }
}

/* ─────────────────────────────────────────
   CANDLE AMBIENT GLOW
───────────────────────────────────────── */
.candle-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,130,55,0.09) 0%, transparent 70%);
    animation: candlePulse 5s ease-in-out infinite;
}

.slide-1 .candle-glow,
.slide-closing .candle-glow {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.glow-left  { width: 500px; height: 500px; top: 30%; left: -80px; }
.glow-right { width: 500px; height: 500px; top: 20%; right: -80px; }
.glow-center { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

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

.glow-left, .glow-right {
    animation: candlePulseSide 6s ease-in-out infinite;
}

@keyframes candlePulseSide {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.9; }
}

/* ─────────────────────────────────────────
   SLIDE SYSTEM — CSS scroll-snap (no JS transform)
───────────────────────────────────────── */
.slide-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.slide-container::-webkit-scrollbar { display: none; }

/* each slide */
.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    background: var(--obsidian);
}

/* subtle grain overlay */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* slide background variants */
.slide-1 {
    background:
        radial-gradient(ellipse 80% 60% at 50% 60%, rgba(14, 10, 28, 0.95) 0%, transparent 100%),
        var(--obsidian);
}

.slide-story {
    background:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(20, 14, 35, 0.8) 0%, transparent 70%),
        var(--midnight);
    justify-content: center;
    align-items: flex-start;
    padding: 60px clamp(32px, 8vw, 120px);
}

.slide-photobox {
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%, rgba(12, 8, 22, 0.95) 0%, transparent 100%),
        var(--ink);
    padding: 40px clamp(24px, 5vw, 72px);
}

.slide-closing {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(20, 12, 35, 0.9) 0%, transparent 100%),
        var(--obsidian);
    text-align: center;
}

/* ─────────────────────────────────────────
   INK STAMP NUMBERING
───────────────────────────────────────── */
.stamp-num {
    position: absolute;
    top: 32px;
    right: 44px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 5px;
    color: rgba(200, 168, 130, 0.2);
    text-transform: uppercase;
    z-index: 2;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY SYSTEM
───────────────────────────────────────── */
.overline {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--warm-soft);
    margin-bottom: 20px;
}

.display-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--platinum);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.display-title em {
    font-style: italic;
    color: var(--warm);
    font-weight: 300;
}

.subtitle-cap {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(235, 228, 220, 0.25);
    margin-bottom: 32px;
}

.rule-thin {
    width: 40px;
    height: 1px;
    background: var(--border-soft);
    margin: 0 auto 28px;
}

.body-serif {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--platinum-dim);
    letter-spacing: 0.01em;
}

.word-love {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-style: italic;
    font-weight: 400;
    color: var(--warm);
    margin-top: 18px;
    letter-spacing: 0.05em;
    animation: sofPulse 4s ease-in-out infinite;
}

@keyframes sofPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ─────────────────────────────────────────
   SLIDE 1 — OPENING
───────────────────────────────────────── */
.s1-content {
    text-align: center;
    /* max-width: 560px; */
    z-index: 2;
    animation: riseUp 1.2s var(--transition) both;
}

.s1-content .rule-thin { margin: 0 auto 28px; }

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: riseUp 1.6s var(--transition) both;
}

.scroll-label {
    font-size: 9px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(200, 168, 130, 0.3);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--warm-soft), transparent);
    animation: scrollBob 1.8s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.4; }
    50% { transform: scaleY(1.2); opacity: 0.8; }
}

/* ─────────────────────────────────────────
   STORY CARD (slides 2-4)
───────────────────────────────────────── */
.story-card {
    z-index: 2;
    width: 100%;
    /* max-width: 680px; */
    animation: riseUp 0.9s var(--transition) both;
}

.card-chapter {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--warm-soft);
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 300;
    color: var(--platinum);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.card-title em {
    font-style: italic;
    color: var(--warm);
}

.ellipsis { color: rgba(200, 168, 130, 0.4); }

.card-divider {
    width: 32px;
    height: 1px;
    background: var(--border-soft);
    margin-bottom: 24px;
}

.card-body {
    overflow-y: auto;
    max-height: 62vh;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(200,168,130,0.15) transparent;
}

.card-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.95;
    color: rgba(235, 228, 220, 0.65);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.card-body p em {
    font-style: italic;
    color: rgba(235, 228, 220, 0.85);
}

/* photo placeholder slot */
.photo-slot {
    width: 100%;
    height: 140px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
    background: var(--warm-ghost);
    position: relative;
    overflow: hidden;
}

.photo-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(200,168,130,0.025) 12px,
        rgba(200,168,130,0.025) 13px
    );
}

.photo-slot-icon {
    font-size: 16px;
    color: rgba(200,168,130,0.3);
    z-index: 1;
}

.photo-slot p {
    font-family: 'Jost', sans-serif;
    font-size: 9px !important;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(200,168,130,0.3) !important;
    margin: 0 !important;
    z-index: 1;
}

/* ─────────────────────────────────────────
   PHOTOBOX SLIDE
───────────────────────────────────────── */
.pb-wrapper {
    display: flex;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    width: 100%;
    max-width: 860px;
    z-index: 2;
}

/* left */
.pb-left { flex: 1; min-width: 0; }

.pb-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--platinum);
    margin-bottom: 10px;
    line-height: 1.1;
}

.pb-title em {
    font-style: italic;
    color: var(--warm);
}

.pb-desc {
    margin-bottom: 24px;
    font-size: 15px;
}

.pb-status-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pb-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(200,168,130,0.4);
    transition: background 0.3s;
}

.pb-dot.active { background: #7dbb8a; box-shadow: 0 0 6px rgba(125,187,138,0.5); }
.pb-dot.error  { background: #bb7d7d; }

.pb-status {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--warm-soft);
}

.pb-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 190px;
}

.pb-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: rgba(235,228,220,0.7);
    padding: 10px 18px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
    cursor: pointer;
    border-radius: 1px;
    transition: all 0.25s ease;
}

.pb-btn:hover:not(:disabled) {
    background: var(--warm-ghost);
    border-color: var(--border-soft);
    color: var(--platinum);
}

.pb-btn:disabled {
    opacity: 0.22;
    cursor: not-allowed;
}

.pb-btn-primary {
    border-color: var(--border-soft);
    color: var(--warm);
}

/* right */
.pb-right {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-shrink: 0;
}

/* camera preview */
.pb-preview-wrap {
    position: relative;
    width: 230px;
    height: 172px;
    background: #06030e;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

#pb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

.pb-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    font-weight: 300;
    color: var(--platinum);
    text-shadow: 0 0 30px rgba(0,0,0,0.9);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.pb-shutter {
    position: absolute;
    inset: 0;
    background: rgba(235,228,220,0.7);
    pointer-events: none;
    opacity: 0;
    border-radius: 2px;
}

.pb-shutter.flash {
    animation: shutterFlash 0.25s ease forwards;
}

@keyframes shutterFlash {
    0%   { opacity: 0.7; }
    100% { opacity: 0; }
}

/* film strip */
.pb-strip {
    width: 108px;
    background: #08030d;
    border: 1px solid rgba(200,168,130,0.1);
    border-radius: 2px;
    padding: 10px 7px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strip-header,
.strip-footer {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 7.5px;
    color: rgba(200,168,130,0.4);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.strip-frames {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strip-frame {
    width: 94px;
    height: 70px;
    background: #120818;
    border: 1px solid rgba(200,168,130,0.06);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.strip-frame.empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 9px,
        rgba(200,168,130,0.025) 9px,
        rgba(200,168,130,0.025) 10px
    );
}

.strip-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    filter: sepia(25%) contrast(105%) saturate(85%);
    display: block;
}

.strip-frame.pop {
    animation: framePop 0.35s ease;
}

@keyframes framePop {
    0%   { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* ─────────────────────────────────────────
   CLOSING SLIDE
───────────────────────────────────────── */
.closing-content {
    z-index: 2;
    animation: riseUp 0.9s var(--transition) both;
}

.closing-title {
    margin-bottom: 24px;
}

.closing-rule {
    margin: 0 auto 28px;
}

.closing-heart {
    font-size: 2.4rem;
    color: var(--warm);
    margin-top: 36px;
    display: inline-block;
    animation: heartThump 1.6s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s;
}

.closing-heart:hover {
    transform: scale(1.2);
}

@keyframes heartThump {
    0%, 100% { transform: scale(1); }
    15%  { transform: scale(1.2); }
    30%  { transform: scale(1); }
    45%  { transform: scale(1.1); }
    60%  { transform: scale(1); }
}

/* ─────────────────────────────────────────
   FLOATING HEARTS (closing)
───────────────────────────────────────── */
.fheart {
    position: fixed;
    bottom: -60px;
    pointer-events: none;
    font-size: 1.1rem;
    animation: floatHeart linear forwards;
    z-index: 10;
    color: var(--warm);
}

@keyframes floatHeart {
    0%   { opacity: 0.8; transform: translateY(0) rotate(0deg); }
    40%  { opacity: 0.5; transform: translateY(-50vh) rotate(12deg); }
    100% { opacity: 0; transform: translateY(-110vh) rotate(-8deg); }
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes riseUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   MOBILE
───────────────────────────────────────── */
@media (max-width: 600px) {
    .slide { padding: 40px 24px; }
    .slide-story { padding: 48px 24px; }

    .pb-wrapper { flex-direction: column; align-items: flex-start; }
    .pb-right { width: 100%; justify-content: center; }
    .pb-preview-wrap { width: 180px; height: 135px; }
    .pb-controls { max-width: 100%; flex-direction: row; flex-wrap: wrap; }

    .display-title { font-size: clamp(2rem, 8vw, 2.8rem); }
    .card-body { max-height: 55vh; }
}

@media (max-width: 380px) {
    .pb-right { flex-direction: column; align-items: center; }
}

/* ─────────────────────────────────────────
   SLIDE — OUR PHOTOS (Infinite Marquee)
───────────────────────────────────────── */
.slide-photos {
    background:
        radial-gradient(ellipse 70% 50% at 50% 40%, rgba(16, 10, 30, 0.9) 0%, transparent 100%),
        var(--midnight);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}

/* ── Header contained width ── */
.slide-photos .s1-content {
    padding: 0 48px;
    width: 100%;
    text-align: center;
}

/* ── Marquee Container ── */
.photo-marquee-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    z-index: 2;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* ── Single Marquee Row ── */
.marquee-row {
    overflow: hidden;
    width: 100%;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 12px;
    will-change: transform;
}

/* Row 1 & 3 — scroll left */
.row-left .marquee-track {
    animation: marqueeLeft 28s linear infinite;
}

/* Row 2 — scroll right */
.row-right .marquee-track {
    animation: marqueeRight 32s linear infinite;
}

@keyframes marqueeLeft {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
    0%   { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* ── Photo Cards ── */
.marquee-item {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(200, 168, 130, 0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.marquee-item:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(200, 168, 130, 0.18);
    z-index: 5;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(15%) saturate(85%) contrast(105%);
    transition: filter 0.3s ease;
}

.marquee-item:hover img {
    filter: sepia(0%) saturate(100%) contrast(108%);
}

/* ── Pause on hover ── */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

/* ─────────────────────────────────────────
   SLIDE — OUR LDR TIMELINE
───────────────────────────────────────── */
.slide-timeline {
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(20, 14, 35, 0.8) 0%, transparent 70%),
        var(--midnight);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px clamp(24px, 5vw, 72px);
}

.slide-timeline .s1-content {
    text-align: left;
    width: 100%;
    max-width: 860px;
}

/* ── Timeline Wrapper ── */
.timeline-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 2;
    animation: riseUp 0.9s var(--transition) both;
    margin-top: 12px;
}

/* ── Horizontal Connecting Line ── */
.timeline-line {
    position: absolute;
    top: 22px;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--border-soft) 10%,
        var(--warm-soft) 40%,
        var(--warm-soft) 70%,
        var(--border-soft) 90%,
        transparent 100%
    );
    z-index: 0;
}

/* ── Nodes Row ── */
.timeline-nodes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* ── Single Node ── */
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
    gap: 16px;
}

/* ── Dot ── */
.node-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #c8a882, #7a5c38);
    border: 1px solid rgba(200, 168, 130, 0.45);
    box-shadow:
        0 0 0 4px rgba(200, 168, 130, 0.08),
        0 0 18px rgba(200, 168, 130, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
}

.node-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 230, 200, 0.8);
    box-shadow: 0 0 6px rgba(245, 230, 200, 0.6);
}

.glow-dot:hover {
    box-shadow:
        0 0 0 6px rgba(200, 168, 130, 0.15),
        0 0 30px rgba(200, 168, 130, 0.35);
    transform: scale(1.1);
}

/* ── Next? Dot Special Styling ── */
.next-dot {
    background: radial-gradient(circle at 40% 35%, rgba(200, 168, 130, 0.3), rgba(10, 8, 20, 0.9));
    border: 1px dashed rgba(200, 168, 130, 0.4);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--warm-soft);
    box-shadow:
        0 0 0 4px rgba(200, 168, 130, 0.05),
        0 0 12px rgba(200, 168, 130, 0.12);
    animation: nextDotPulse 3s ease-in-out infinite;
}

.next-dot::before {
    display: none;
}

@keyframes nextDotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(200, 168, 130, 0.05), 0 0 12px rgba(200, 168, 130, 0.12); }
    50%       { box-shadow: 0 0 0 8px rgba(200, 168, 130, 0.1), 0 0 24px rgba(200, 168, 130, 0.3); }
}

/* ── Node Content ── */
.node-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.node-time {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--warm-soft);
}

.node-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 300;
    color: var(--platinum);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.node-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(235, 228, 220, 0.5);
    letter-spacing: 0.01em;
    max-width: 160px;
}

/* ── Connector dots between nodes ── */
.timeline-nodes::before {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(200, 168, 130, 0.2);
    font-size: 10px;
    pointer-events: none;
}

/* ── Mobile Timeline — stack vertically ── */
@media (max-width: 700px) {
    .timeline-line {
        top: 28px;
        left: 22px;
        right: 22px;
    }

    .node-desc {
        font-size: 11px;
        max-width: 120px;
    }

    .node-dot {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .timeline-line {
        display: none;
    }

    .timeline-nodes {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .timeline-node {
        flex-direction: row;
        max-width: 100%;
        gap: 18px;
    }

    .node-content {
        align-items: flex-start;
        text-align: left;
    }

    .node-desc {
        max-width: 220px;
    }
}

/* ── Marquee Mobile ── */
@media (max-width: 600px) {
    .marquee-item {
        width: 140px;
        height: 100px;
    }
}