:root {
    --void: #050505;

    --c-cyan: #00f3ff;
    --c-indigo: #D3bbff;
    /* Lilac */
    --c-gold: #ff9e00;
    --c-magenta: #ff0054;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-aetosia: 'Medula One', sans-serif;
    --font-aeton: 'Nunito', sans-serif;

    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--void);
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Mobile Progress Bar - Hidden by default on Desktop */
.mobile-progress-container {
    display: none;
}

/* The Soul Canvas */
#soul-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Increased visibility */
    opacity: 0.8;
    filter: blur(30px);
    /* Sharpen slightly */
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    /* Align closer to spine */
    align-items: center;
    position: relative;
    padding-left: 15vw;
    /* Make room for spine but bring content closer */
    padding-right: 5vw;
}

.content {
    text-align: left;
    /* Editorial alignment */
    max-width: 900px;
    z-index: 10;
}

/* Typography Impact */
h1 {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--c-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.highlight {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    border-left: 1px solid var(--soul-gold);
    padding-left: 20px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    color: #fff;
}

.description {
    font-weight: 300;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    /* Unified Spacing */
}

/* Aetosia Special */
.aetosia-title {
    font-family: var(--font-aetosia) !important;
    font-size: 8rem !important;
    /* Huge */
    line-height: 0.8;
    color: var(--soul-gold);
    text-shadow: 0 0 40px rgba(212, 163, 115, 0.3);
    margin-bottom: 1rem;
}

/* AETOSIA GRADIENT FIX */
#aetosia h2.aetosia-title {
    background: linear-gradient(to right, var(--c-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 8rem;
    margin-bottom: 1rem;
    /* Consistent with others */
    text-shadow: none;
    /* Gradient text handles the effect */
}

/* Removed specific Aetosia description override to ensure consistency */

/* Buttons (Ethereal) */
.btn-ethereal {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    /* Fully rounded */
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.5s var(--ease-out);
    background: transparent;
    font-weight: 600;
}

.btn-ethereal:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.btn-ethereal.gold {
    border-color: rgba(212, 163, 115, 0.3);
    color: var(--soul-gold);
}

.btn-ethereal.gold:hover {
    border-color: var(--soul-gold);
    background: rgba(212, 163, 115, 0.05);
    box-shadow: 0 0 30px rgba(212, 163, 115, 0.15);
}

/* Scroll Indication */
.scroll-indicator {
    margin-top: 4rem;
    height: 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: drip 2s infinite;
}

@keyframes drip {
    0% {
        height: 0;
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        height: 60px;
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.5s var(--ease-out);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.visual-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 3rem auto;
    border-radius: 50%;
    /* Subtle pulsing placeholder for where the image will go */
    /* background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%); */
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.3;
    letter-spacing: 2px;
}


/* Side Flow (Corrected & Colored) */
.side-flow {
    position: fixed;
    top: 50%;
    left: 4vw;
    transform: translateY(-50%);
    height: 60vh;
    /* Consistent height */
    width: 60px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.spine-container {
    position: absolute;
    /* Start exactly inside the first icon */
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    /* End exactly at the last icon */
    height: calc(100% - 60px);
    z-index: -1;
}

.spine-bg {
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 100%;
}

.spine-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--c-cyan), var(--c-indigo), var(--c-gold), var(--c-magenta));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    /* transition: height 0.1s linear; REMOVED for performance */
}

/* PURE ICON CONTAINER - NO STYLES PERMITTED */
/* PURE ICON CONTAINER - NO STYLES PERMITTED */
.flow-node {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* DESTROY ALL CONTAINER STYLES */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: transform 0.3s ease;
    text-decoration: none;
    z-index: 2;
    overflow: visible;
    /* Allow glow to spill out */
}

/* NUCLEAR OPTION: Kill all nested styles */
.flow-node * {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ensure HOVER/ACTIVE states do not re-introduce backgrounds */
.flow-node:hover,
.flow-node.active,
.flow-node:focus,
.flow-node:hover::before,
.flow-node.active::before,
.flow-node:hover::after,
.flow-node.active::after,
.flow-node:hover .node-icon,
.flow-node.active .node-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    content: none !important;
    /* Kill pseudo elements */
}

/* COLOR MAPPING - SHARP ICONS */
.flow-node[data-target="hero"] .node-icon svg {
    stroke: var(--c-cyan);
}

.flow-node[data-target="aeton"] .node-icon svg {
    stroke: var(--c-indigo);
}

.flow-node[data-target="aetosia"] .node-icon svg {
    stroke: var(--c-gold);
}

.flow-node[data-target="future"] .node-icon svg {
    stroke: var(--c-magenta);
}

/* BASE ICON STYLE: Ultra Sharp */
.node-icon svg {
    width: 48px;
    /* Even Bigger as requested */
    height: 48px;
    fill: none;
    stroke-width: 1.5px;
    /* Thinner for sharpness, less bloated */
    filter: none;
    /* NO BLUR on base state */
    transition: all 0.3s ease;
    overflow: visible;
}

/* HOVER/ACTIVE: Only Scale */
/* HOVER/ACTIVE: NO Scale - STRICTLY NO GLOW */
.flow-node:hover .node-icon svg,
.flow-node.active .node-icon svg {
    stroke-width: 1.5px;
    /* Keep original stroke width */
    transform: none;
    /* No scaling */
    filter: none !important;
}

/* Specific Colors (Stroke Only) */
.flow-node[data-target="hero"]:hover .node-icon svg,
.flow-node.active[data-target="hero"] .node-icon svg {
    stroke: var(--c-cyan);
}

.flow-node[data-target="aeton"]:hover .node-icon svg,
.flow-node.active[data-target="aeton"] .node-icon svg {
    stroke: var(--c-indigo);
}

.flow-node[data-target="aetosia"]:hover .node-icon svg,
.flow-node.active[data-target="aetosia"] .node-icon svg {
    stroke: var(--c-gold);
}

.flow-node[data-target="future"]:hover .node-icon svg,
.flow-node.active[data-target="future"] .node-icon svg {
    stroke: var(--c-magenta);
}


/* TYPOGRAPHY COLORS */
#aeton h2 {
    color: var(--c-indigo);
    font-family: var(--font-aeton);
    text-shadow: 0 0 30px rgba(211, 187, 255, 0.4);
    font-size: 4rem;
    font-weight: 700;
}

/* AETOSIA GRADIENT FIX */
#aetosia h2.aetosia-title {
    background: linear-gradient(to right, var(--c-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 8rem;
    margin-bottom: 0.5rem;
    text-shadow: none;
    /* Gradient text handles the effect */
}


#future h2.mystery-title {
    color: var(--c-magenta);
    text-shadow: 0 0 20px rgba(255, 0, 84, 0.6);
}

/* Mystery Section - UPGRADED */
.section-mystery {
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 0, 84, 0.05) 0%, transparent 70%);
}

.mystery-title {
    font-family: 'Courier New', Courier, monospace;
    /* Terminal Look */
    font-size: 3rem;
    letter-spacing: 5px;
    color: var(--c-magenta);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: glitch 3s infinite;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.mystery-title::before,
.mystery-title::after {
    content: 'PROJECT: UNVEIL';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void);
}

.mystery-title::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.mystery-title::after {
    left: -2px;
    text-shadow: -1px 0 #ff0054;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    60% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(40px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 70px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 30px, 0);
    }
}

.mystery-blur {
    filter: blur(4px);
    transition: filter 0.8s ease;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 2px;
    margin: 2rem 0;
    opacity: 0.8;
}

.mystery-blur:hover {
    filter: blur(0px);
}

/* HERO ANIMATIONS */
.hero-title {
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-out) forwards;
    animation-delay: 0.5s;
    /* Wait for page load */
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-out) forwards;
    animation-delay: 1s;
    /* Staggered */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mystery-status {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--c-magenta);
    margin-top: 2rem;
    opacity: 1;
    border: 1px solid var(--c-magenta);
    padding: 0.5rem 1rem;
    display: inline-block;
    padding: 5px 10px;
}

/* Mobile Adaptation */
@media (max-width: 768px) {

    /* Layout Reset */
    section {
        padding: 6rem 1.5rem 8rem 1.5rem;
        /* Top padding for breathing room, Bottom for nav bar */
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .content {
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .mobile-progress-container {
        display: block;
        position: absolute;
        top: 50%;
        left: 52px;
        /* 30px padding + 22px (half icon) */
        right: 52px;
        /* Same from right */
        width: auto;
        /* Allow left/right to define width */
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-50%);
        z-index: 1;
        /* Behind icons (z-index 2) */
    }

    .mobile-progress-fill {
        width: 0%;
        height: 100%;
        background: linear-gradient(to right, var(--c-cyan), var(--c-indigo), var(--c-gold), var(--c-magenta));
        /* transition: width 0.1s linear; REMOVED for performance */
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1.1rem;
        border-left: none;
        /* Remove side border on mobile */
        border-top: 1px solid var(--soul-gold);
        /* Add top border instead */
        padding-left: 0;
        padding-top: 15px;
        margin-top: 1rem;
        display: inline-block;
    }

    .description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Aetosia Specifics */
    .aetosia-title {
        font-size: 4rem !important;
        /* Force smaller size */
        line-height: 1;
    }

    #aetosia h2.aetosia-title {
        font-size: 4rem;
    }

    #aeton h2 {
        font-size: 3rem;
    }

    .mystery-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    /* Transform Side Spine to Bottom Dock */
    .side-flow {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        height: 60px;
        flex-direction: row;
        justify-content: space-between;
        /* Push icons to defined padded edges */
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 30px;
        /* Precise padding for alignment */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Reset Fixed Positioning issues if any */
        position: fixed;
    }

    .spine-container {
        display: none;
        /* Hide the connecting line on mobile */
    }

    .flow-node {
        width: 44px;
        /* Proper touch target */
        height: 44px;
        font-size: 0;
        /* Hide text if any */
    }

    .node-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Ensure no text selection on UI elements */
    .side-flow {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Mystery Section Canvas */
    .section-mystery {
        background: radial-gradient(circle at center, rgba(255, 0, 84, 0.1) 0%, transparent 80%);
    }
}