:root {
    --dusk-ash: #1A1019;
    --twilight-plum: #2D1B2E;
    --ember-haze: #3D2233;
    --horizon-coral: #E8734A;
    --molten-amber: #F2A93B;
    --dusk-rose: #C4587A;
    --fading-violet: #6B4C7D;
    --ash-silk: #E8DDD4;
    --smoke-pearl: #9B8E8A;
    --solar-flare: #FFD194;
    --grain-intensity: 0.12;
    color-scheme: dark;
}

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

body {
    background-color: var(--dusk-ash);
    color: var(--ash-silk);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: soft-light;
    opacity: var(--grain-intensity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' seed='42' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

/* Aurora Elements */
.aurora {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(100px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.aurora-1 {
    width: 50vw;
    height: 50vw;
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(232, 115, 74, 0.08), transparent 70%);
    animation: auroraDrift1 60s ease-in-out infinite;
}

.aurora-2 {
    width: 40vw;
    height: 40vw;
    top: 30%;
    right: -5%;
    background: radial-gradient(circle, rgba(242, 169, 59, 0.06), transparent 70%);
    animation: auroraDrift2 75s ease-in-out infinite;
}

.aurora-3 {
    width: 45vw;
    height: 45vw;
    bottom: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 209, 148, 0.10), transparent 70%);
    animation: auroraDrift3 90s ease-in-out infinite;
}

@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8vw, 5vh); }
    50% { transform: translate(3vw, -8vh); }
    75% { transform: translate(-5vw, 3vh); }
}

@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-6vw, 8vh); }
    66% { transform: translate(4vw, -4vh); }
}

@keyframes auroraDrift3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5vw, -6vh); }
    50% { transform: translate(-8vw, 3vh); }
    75% { transform: translate(2vw, 7vh); }
}

/* Navigation */
.nav-glyph {
    position: fixed;
    top: 32px;
    left: 3.5vw;
    z-index: 200;
    cursor: pointer;
    padding: 12px;
}

.nav-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--horizon-coral);
    border-radius: 1px;
    animation: navPulse 4s ease-in-out infinite;
    transition: width 0.4s ease;
}

.nav-glyph:hover .nav-line {
    width: 48px;
}

@keyframes navPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: linear-gradient(175deg, rgba(26, 16, 25, 0.92), rgba(45, 27, 46, 0.92), rgba(107, 76, 125, 0.92));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 3.5vw;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-anchor {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    color: var(--ash-silk);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-anchor:hover {
    opacity: 1;
    color: var(--horizon-coral);
}

/* Thermal Glow */
.thermal-glow {
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 169, 59, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Scenes */
.scene {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.scene-approach {
    min-height: 100vh;
    background: linear-gradient(175deg, var(--dusk-ash) 0%, var(--twilight-plum) 40%, var(--ember-haze) 100%);
}

.scene-golden {
    min-height: 150vh;
    background: linear-gradient(175deg, var(--ember-haze) 0%, var(--twilight-plum) 60%, var(--ember-haze) 100%);
}

.scene-silhouette {
    min-height: 120vh;
    background: linear-gradient(175deg, var(--ember-haze) 0%, var(--fading-violet) 40%, var(--twilight-plum) 100%);
}

.scene-afterglow {
    min-height: 80vh;
    background: linear-gradient(175deg, var(--twilight-plum) 0%, var(--dusk-ash) 100%);
    flex-direction: column;
    justify-content: center;
}

/* Content positioning */
.scene-content {
    position: relative;
    z-index: 10;
    padding: 0 3.5vw;
    width: 100%;
}

.col-left {
    max-width: 50%;
    margin-left: calc(100% / 12);
}

.col-right {
    max-width: 45%;
    margin-left: calc(100% / 12 * 6);
}

/* Typography */
.display-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: clamp(4rem, 12vw, 9rem);
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: var(--ash-silk);
    text-shadow: 0 0 40px rgba(232, 115, 74, 0.15);
}

.section-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: var(--ash-silk);
    margin-bottom: 2rem;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: var(--ash-silk);
    margin-bottom: 1.5rem;
    max-width: 58ch;
    line-height: 1.75;
}

.emphasis {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    color: var(--horizon-coral);
}

.afterglow-line {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: var(--ash-silk);
    opacity: 0.75;
}

.scene-meta {
    position: absolute;
    bottom: 8vh;
    left: calc(100% / 12);
    padding: 0 3.5vw;
    z-index: 10;
}

.meta-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--smoke-pearl);
    opacity: 0.35;
}

/* Silhouettes */
.silhouette {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.sil-svg {
    height: 200px;
    width: auto;
}

.sil-wide {
    width: min(600px, 80vw);
    height: auto;
}

.silhouette-tower {
    bottom: 10%;
    right: 10%;
}

.silhouette-bridge {
    bottom: 5%;
    left: 5%;
    right: 5%;
}

.silhouette-bridge .sil-wide {
    width: 100%;
}

.silhouette-pylons {
    bottom: 8%;
    left: 10%;
}

/* Reveal Animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .col-left,
    .col-right {
        max-width: 90%;
        margin-left: 5%;
    }

    .display-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .nav-overlay {
        padding-left: 8vw;
    }

    .scene-meta {
        left: 5%;
    }

    .silhouette-tower {
        right: 5%;
        bottom: 5%;
    }

    .silhouette-pylons {
        left: 5%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .aurora {
        animation: none;
    }

    .nav-line {
        animation: none;
        opacity: 0.7;
    }

    .grain-overlay {
        opacity: 0.08;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
