/* =========================================
   CINEMATIC RISING SUN LOADER (DMK THEME)
   ========================================= */
#loader-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
}

.loader-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Brighter gradient to illuminate the page slowly */
    background: radial-gradient(circle at center bottom, #a11b00 0%, #050505 80%);
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.sun-container {
    position: absolute;
    bottom: 15%; /* Resting height behind mountains */
    left: 50%;
    transform: translateX(-50%);
    width: clamp(150px, 30vw, 250px);
    height: clamp(150px, 30vw, 250px);
    z-index: 2;
}

.rising-sun {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffcc00 10%, #d12200 70%, #800000 100%);
    box-shadow: 0 0 60px rgba(209, 34, 0, 0.8), inset 0 0 20px rgba(255, 204, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Start just below the horizon so it feels less 'stuck' */
    transform: translateY(120%) scale(0.8);
    /* Removed transform transition so JS requestAnimationFrame runs perfectly smooth */
    transition: filter 1s ease;
    filter: brightness(0.4);
}

.loader-line-container {
    position: absolute;
    top: 25%; /* Pushed up to avoid touching the rising sun */
    left: 10%;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 5;
}

.loader-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 204, 0, 0.4);
    max-width: 25%;
}

#loading-percentage {
    color: rgba(255, 204, 0, 0.4); /* Extremely faint */
    font-family: 'Inter', sans-serif;
    font-size: 10px; 
    font-weight: 100;
    letter-spacing: 8px;
    text-shadow: none; 
    display: inline-block;
    transform: scale(0.5); /* Forces visual size down to 5px */
}

.mountain-silhouette {
    position: absolute;
    bottom: -5px;
    left: -2%;
    width: 104%;
    height: 40dvh;
    z-index: 3;
    filter: drop-shadow(0 -10px 20px rgba(0,0,0,0.9));
}

/* Load Complete Soft Transition */
#loader-screen.burst .rising-sun {
    /* Softly expand and fade into a golden mist */
    transform: translateY(0) scale(15);
    filter: brightness(2) blur(40px);
    opacity: 0;
    transition: transform 2s ease-in-out, filter 2s ease-in-out, opacity 1.5s ease-in 0.5s;
}
#loader-screen.burst .loader-background {
    opacity: 0.3; /* Keep it soft */
}
#loader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* =========================================
   BASE STYLES
   ========================================= */
:root {
    --bg-color: #0a0a0a;
    --text-primary: #fdfbf7;
    --text-secondary: #e0e0e0;
    --accent-gold: #d4af37;
    --glow-color: rgba(212, 175, 55, 0.4);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Basic setup, perspective applied in JS container */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    left: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-gold), #d12200);
    z-index: 1001;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

#model-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto; /* Allow hotspot clicks */
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10,10,10,0.5) 0%, var(--bg-color) 100%);
    z-index: 2;
    pointer-events: none;
}

/* =========================================
   UI TOP BAR & ARCHIVE MODAL
   ========================================= */
#ui-top-bar {
    position: fixed;
    top: 20px; 
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1000;
}

#ui-top-left {
    position: fixed;
    top: 20px; 
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 1000;
}

@media (min-width: 768px) {
    #ui-top-bar {
        top: 25px;
        right: 30px;
        gap: 12px;
    }
    #ui-top-left {
        top: 25px;
        left: 30px;
        gap: 12px;
    }
}

.glass-btn {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .glass-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

.glass-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
}

.glass-btn .icon {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .glass-btn .icon {
        font-size: 1.1rem;
    }
}

/* Top Navigation Dots */
#top-nav-dots {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}

@media (min-width: 768px) {
    #top-nav-dots {
        top: 30px;
        gap: 20px;
    }
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    outline: none;
    transition: all 0.4s ease;
    padding: 0;
}

.nav-dot:hover {
    background-color: rgba(212, 175, 55, 0.6);
    border-color: rgba(212, 175, 55, 0.8);
    transform: scale(1.2);
}

.nav-dot.is-active {
    background-color: rgba(212, 175, 55, 1);
    border-color: rgba(212, 175, 55, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.4);
}

/* Majestic Info Panel */
#info-panel {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) translateX(20px);
    width: 350px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.85) 0%, rgba(5, 5, 5, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(212, 175, 55, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    z-index: 100;
}

#info-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

#close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease;
}

#close-panel:hover {
    transform: scale(1.2);
}

#panel-title {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

#panel-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom right, #ffffff, #d4af37, #aa8529);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
    letter-spacing: 0.05em;
}

h2 { font-size: 2rem; color: var(--text-primary); font-style: italic; font-weight: 400; margin-bottom: 1rem; opacity: 0.9; }
h3 { font-size: 1.8rem; color: var(--accent-gold); margin-bottom: 1rem; letter-spacing: 0.05em; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.85); text-shadow: 0 2px 4px rgba(0,0,0,0.9); font-weight: 300; }

/* =========================================
   SCROLLYTELLING & PLACARDS
   ========================================= */
.scroll-container {
    width: 100%;
    height: 100dvh;
    overflow-y: hidden; /* Disable native scroll */
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.scroll-stop {
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    pointer-events: none;
}

/* Placards inside Scroll Stops */
.placard-container {
    width: 100%;
    height: 100dvh;
    padding: 80px 5vw 40px 5vw;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    box-sizing: border-box;
}

.placard {
    width: 100%;
    max-width: 480px;
    max-height: 48dvh;
    overflow-y: auto;
    background: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 20px 24px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-left: 4px solid var(--accent-gold);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    text-align: left;
}

/* Custom Scrollbar for Placard */
.placard::-webkit-scrollbar {
    width: 4px;
}
.placard::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.placard::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

/* When a section is intersecting */
.scroll-stop.is-active .placard {
    opacity: 1;
    transform: translateY(0);
}

.placard h3 {
    font-size: clamp(1.2rem, 3vh, 1.45rem);
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    text-align: left;
}

.placard p.quote {
    font-size: clamp(0.88rem, 2.3vh, 1rem);
    color: #f1e4b8;
    font-style: italic;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.45;
    text-align: left;
    border-left: 2px solid rgba(212, 175, 55, 0.6);
    padding-left: 12px;
}

.placard p {
    font-size: clamp(0.85rem, 2vh, 0.95rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    font-weight: 300;
    text-align: left;
}

.placard strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Desktop Enhancements & Alternate Left/Right Alignment */
@media (min-width: 768px) {
    .placard-container {
        align-items: center;
        padding: 100px 7vw 40px 7vw;
    }
    
    .placard-container.right {
        justify-content: flex-end;
    }

    .placard-container.left {
        justify-content: flex-start;
    }

    .placard {
        max-width: 440px;
        padding: 28px 32px;
        max-height: 40dvh;
    }

    .placard.slide-from-right {
        transform: translateX(40px);
    }
    
    .placard.slide-from-left {
        transform: translateX(-40px);
    }

    .scroll-stop.is-active .placard.slide-from-right,
    .scroll-stop.is-active .placard.slide-from-left {
        transform: translateX(0);
    }
}

/* Mobile Side Padding Safety & Edge Margins */
@media (max-width: 640px) {
    .placard-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .placard {
        width: 100% !important;
        max-width: calc(100vw - 2.5rem) !important;
        padding: 16px 18px !important;
        box-sizing: border-box !important;
    }

    .departure-container {
        padding: 0 1.25rem 2.5dvh 1.25rem !important;
    }

    .departure-content {
        width: 100% !important;
        max-width: calc(100vw - 2.5rem) !important;
        padding: 1.1rem 1.2rem !important;
        box-sizing: border-box !important;
    }
}
#scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
}

#loading-percentage {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.subtitle { color: var(--accent-gold); font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.8rem; }

.divider {
    width: 2px;
    height: 50px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto;
    box-shadow: 0 0 10px var(--accent-gold);
}

@media (max-width: 768px) {
    #info-panel {
        top: auto;
        bottom: 5%;
        right: 50%;
        transform: translateX(50%) translateY(20px);
        width: 90%;
    }
    #info-panel.visible {
        transform: translateX(50%) translateY(0);
    }
}

/* Scroll track */
#scrolly-content {
    height: 500vh;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 15px;
    opacity: 0.8;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent-gold);
    animation: drop 2s infinite ease-in-out;
}

@keyframes drop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* =========================================
   DMK SILHOUETTE SUNRISE (CLIMAX)
   ========================================= */
#model-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 0;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: var(--bg-black);
    --poster-color: transparent;
}

/* Parallax Dust Overlay */
#dust-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -1; /* Behind model, in front of sun */
    pointer-events: none;
}

#dmk-sun-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -2; /* Behind the dust canvas and 3D model */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
    overflow: hidden;
}

body.silhouette-active #dmk-sun-container {
    opacity: 1;
}

/* God Rays */
.dmk-rays {
    position: absolute;
    bottom: -150vh;
    width: 200vh;
    height: 200vh;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 10deg,
        rgba(255, 100, 0, 0.2) 10deg 20deg
    );
    border-radius: 50%;
    mask-image: radial-gradient(circle, #fff 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle, #fff 10%, transparent 60%);
    transition: bottom 3s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: spinRays 80s linear infinite;
    opacity: var(--audio-pulse, 1); /* Reacts to voice */
}

@keyframes spinRays {
    100% { transform: rotate(360deg); }
}

body.silhouette-active .dmk-rays {
    bottom: -40vh; /* Rises with sun */
}

/* The Graphic Sun */
.dmk-sun {
    position: absolute;
    bottom: -60vh; /* Starts hidden below screen */
    width: clamp(300px, 60vh, 800px);
    height: clamp(300px, 60vh, 800px);
    border-radius: 50%;
    background: radial-gradient(circle at center, #ffcc00 10%, #d12200 60%, #800000 100%);
    box-shadow: 0 0 calc(100px * var(--audio-pulse, 1)) rgba(209, 34, 0, 0.9), inset 0 0 50px rgba(255, 204, 0, 0.8);
    transform: scale(var(--audio-pulse, 1)); /* Pulses with voice */
    transition: bottom 3s cubic-bezier(0.2, 0.8, 0.2, 1); /* Slow, epic rise */
}

body.silhouette-active .dmk-sun {
    bottom: 20vh; /* Rises to center frame */
}

/* Text Container (Foreground) */
#dmk-text-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 10; /* In front of 3D model */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Golden Signature Text */
.dmk-signature {
    z-index: 2;
    margin-top: 25vh; /* Push lower into the silhouette */
    font-family: 'Noto Sans Tamil', serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #ffea8c 0%, #d4af37 50%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.3s ease 0s, transform 0.3s ease 0s; /* Fast disappear when inactive */
}

body.silhouette-active .dmk-signature {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 2s ease 2s, transform 2s ease 2s; /* Delayed smooth reveal when active */
}

/* Subtitle */
.dmk-subtitle {
    z-index: 2;
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0s, transform 0.3s ease 0s; /* Fast disappear when inactive */
}

body.silhouette-active .dmk-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2s ease 3s, transform 2s ease 3s; /* Delayed smooth reveal when active */
}

/* =========================================
   SILHOUETTE 3D MODEL EFFECT
   ========================================= */
body.silhouette-active #kalaignar-model {
    /* Turn the 3D model into a stark black silhouette against the sun */
    filter: brightness(0) contrast(2) drop-shadow(0 0 20px rgba(209, 34, 0, 0.4));
    transition: filter 3s ease;
}

/* =========================================
   PLACARD ICONS & SLIDE ANIMATIONS
   ========================================= */
.placard-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

/* Slide from right: starts 60px right, invisible */
.placard.slide-from-right {
    transform: translateY(30px) translateX(60px);
}
.placard.slide-from-left {
    transform: translateY(30px) translateX(-60px);
}
/* When active both merge into the default .is-active transform */
.placard.is-active.slide-from-right,
.placard.is-active.slide-from-left {
    transform: translateY(0) translateX(0);
}

/* =========================================
   STOP 6: THE DEPARTURE
   ========================================= */
.departure-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1.25rem 2dvh 1.25rem;
    z-index: 20;
    pointer-events: none;
    box-sizing: border-box;
}

.departure-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2rem 1.8rem;
    width: 100%;
    max-width: min(480px, calc(100vw - 2.5rem));
    box-sizing: border-box;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    background: rgba(8, 8, 8, 0.55);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

#stop-6.is-active .departure-content {
    opacity: 1;
    transform: translateY(0);
}

.departure-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 2.1vw, 1.18rem);
    font-style: italic;
    color: #f0e6c8;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.departure-author-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.7rem;
}

.departure-pen {
    font-size: 1.15rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
    animation: penFloat 3s ease-in-out infinite;
}

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

.departure-attribution {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.departure-torch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.7rem;
}

.departure-date {
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.85;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.departure-line {
    width: 70px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    margin: 0.6rem auto 1rem;
    opacity: 0.5;
}

.departure-cta {
    display: inline-block;
    padding: 0.65rem 2.2rem;
    border: 1px solid rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(0, 0, 0, 0.85));
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 100;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.departure-cta:hover {
    background: linear-gradient(135deg, var(--primary-red), #b91c1c);
    color: #fff;
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
    transform: translateY(-2px);
}

/* =========================================
   REMEMBRANCE FLAME MICRORITUAL (Stop 6)
   ========================================= */
/* =========================================
   DOUBLE CONTAINER TORCH CAPSULE (Stop 6)
   ========================================= */
#flame-ambient-aura {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    background: radial-gradient(circle at center 75%, rgba(245, 158, 11, 0.45) 0%, rgba(229, 9, 20, 0.22) 45%, transparent 75%);
}

#flame-ambient-aura.is-lit {
    opacity: 0.06; /* Subtle 95% reduced torch backlight */
}

.torch-capsule-double {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    margin: 8px auto 0 auto;
    vertical-align: middle;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.torch-prompt-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.torch-capsule-double.is-active .torch-prompt-text {
    color: #ffffff;
}

.torch-capsule-double:hover {
    background: rgba(25, 20, 15, 0.95);
    border-color: rgba(245, 158, 11, 0.8);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.95), 0 0 15px rgba(245, 158, 11, 0.5);
}

.torch-capsule-double.is-active {
    background: linear-gradient(135deg, rgba(45, 12, 12, 0.95), rgba(55, 26, 5, 0.95));
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7), inset 0 0 10px rgba(229, 9, 20, 0.4);
    animation: capsuleGlowPulse 2.5s infinite ease-in-out;
}

.torch-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    transition: all 0.3s ease;
}

.torch-capsule-double.is-active .torch-icon-wrapper {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.torch-icon {
    font-size: 0.8rem;
    color: #f59e0b;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.torch-capsule-double.is-active .torch-icon {
    color: #ff4500;
    animation: torchFlameLit 1.2s infinite alternate ease-in-out;
}

.torch-inner-badge {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.65);
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.torch-capsule-double.is-active .torch-inner-badge {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
    color: #ffffff;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.8);
}

@keyframes torchFlameLit {
    0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 3px #f59e0b); }
    50% { transform: scale(1.25) translateY(-1px) rotate(-4deg); filter: drop-shadow(0 0 7px #ff4500); }
    100% { transform: scale(1.15) translateY(0) rotate(4deg); filter: drop-shadow(0 0 5px #f59e0b); }
}

@keyframes capsuleGlowPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 20px rgba(229, 9, 20, 0.6); }
}

@keyframes flamePulse {
    0%, 100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); }
    50% { box-shadow: 0 0 45px rgba(229, 9, 20, 0.85); }
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(-6deg); filter: drop-shadow(0 0 14px #ff4500); }
    100% { transform: scale(1.15) rotate(6deg); filter: drop-shadow(0 0 10px #f59e0b); }
}

/* =========================================
   FALLING PETALS (Stop 5 Climax)
   ========================================= */
.petal {
    position: fixed;
    top: -40px;
    width: 10px;
    height: 14px;
    border-radius: 50% 0 50% 0;
    background: radial-gradient(circle, rgba(255,200,100,0.7), rgba(209,34,0,0.4));
    pointer-events: none;
    z-index: 6;
    opacity: 0;
}

@keyframes petalFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
