/* alth.ing — Seapunk Professional | Dark Neon Abyssal */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #080c14;
    color: #e8edf5;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.8;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === SCROLL CONTAINER === */
.scroll-container {
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    position: relative;
    z-index: 2;
}

/* === SECTIONS === */
.section {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #080c14, #0d1a2d 50%, #080c14);
    opacity: 0.94;
    z-index: 1;
}

.section-bg--deepest {
    background: #080c14;
    opacity: 0.97;
}

.section-content {
    position: relative;
    z-index: 3;
    width: 84vw;
    max-width: 1200px;
    padding-left: 38%;
    padding-right: 8vw;
}

/* === AURORA LAYER === */
.aurora-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-band {
    position: absolute;
    width: 200%;
    height: 60vh;
    background: linear-gradient(135deg, #00e5ff 0%, #7c4dff 35%, #e040fb 65%, #1de9b6 100%);
    opacity: 0.08;
    filter: blur(80px);
    will-change: transform;
    transform: translateZ(0);
}

.aurora-band-1 {
    top: -10%;
    left: -50%;
    animation: auroraDrift1 18s ease-in-out infinite alternate;
}

.aurora-band-2 {
    top: 30%;
    left: -30%;
    animation: auroraDrift2 24s ease-in-out infinite alternate;
    opacity: 0.06;
}

.aurora-band-3 {
    top: 65%;
    left: -40%;
    animation: auroraDrift3 31s ease-in-out infinite alternate;
    opacity: 0.1;
}

@keyframes auroraDrift1 {
    0% { transform: translateX(0) translateY(0) rotate(-3deg) translateZ(0); }
    100% { transform: translateX(15%) translateY(8%) rotate(2deg) translateZ(0); }
}

@keyframes auroraDrift2 {
    0% { transform: translateX(0) translateY(0) rotate(2deg) translateZ(0); }
    100% { transform: translateX(-10%) translateY(-5%) rotate(-4deg) translateZ(0); }
}

@keyframes auroraDrift3 {
    0% { transform: translateX(0) translateY(0) rotate(1deg) translateZ(0); }
    100% { transform: translateX(12%) translateY(6%) rotate(-2deg) translateZ(0); }
}

/* === HOLOGRAPHIC MESH === */
.holographic-mesh {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 229, 255, 0.06) 0px,
            rgba(0, 229, 255, 0.06) 1px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 229, 255, 0.06) 0px,
            rgba(0, 229, 255, 0.06) 1px,
            transparent 1px,
            transparent 60px
        );
    transform: perspective(800px) rotateX(2deg);
    opacity: 0.4;
}

/* === BIOLUMINESCENT DOTS === */
.bioluminescent-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.bio-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #00e5ff 0%, transparent 70%);
    opacity: 0.2;
    animation: bioPulse 4s ease-in-out infinite;
}

.bio-dot:nth-child(1) { animation-duration: 3.2s; animation-delay: 0s; }
.bio-dot:nth-child(2) { animation-duration: 4.5s; animation-delay: 0.8s; width: 8px; height: 8px; }
.bio-dot:nth-child(3) { animation-duration: 5.1s; animation-delay: 1.4s; }
.bio-dot:nth-child(4) { animation-duration: 3.8s; animation-delay: 2.1s; width: 4px; height: 4px; }
.bio-dot:nth-child(5) { animation-duration: 6.2s; animation-delay: 0.3s; }
.bio-dot:nth-child(6) { animation-duration: 4.1s; animation-delay: 1.9s; width: 7px; height: 7px; }
.bio-dot:nth-child(7) { animation-duration: 5.5s; animation-delay: 3.2s; width: 5px; height: 5px; }
.bio-dot:nth-child(8) { animation-duration: 3.5s; animation-delay: 0.6s; }
.bio-dot:nth-child(9) { animation-duration: 6.8s; animation-delay: 2.5s; width: 4px; height: 4px; }
.bio-dot:nth-child(10) { animation-duration: 4.7s; animation-delay: 1.1s; width: 8px; height: 8px; }

@keyframes bioPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.35; }
}

/* === NAVIGATION === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8vw;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
}

.site-nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e8edf5;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a8ba8;
    text-decoration: none;
    transition: color 0.3s ease-out, text-shadow 0.3s ease-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
    color: #1de9b6;
    text-shadow: 0 0 20px rgba(29, 233, 182, 0.4);
    transform: scale(1.03);
}

/* === PORTAL SECTION === */
.section-content--portal {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 38%;
}

.portal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 6rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #e8edf5;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

.portal-aurora-hint {
    width: 60px;
    height: 3px;
    margin-top: 3rem;
    background: linear-gradient(90deg, #00e5ff, #7c4dff, #e040fb);
    border-radius: 2px;
    animation: hintPulse 3s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; width: 60px; }
    50% { opacity: 1; width: 80px; }
}

/* === MANIFESTO SECTION === */
.section-content--manifesto {
    padding-left: 38%;
    padding-right: 12vw;
}

.manifesto-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e8edf5;
    max-width: 55ch;
}

/* === CAPABILITY SECTION === */
.section-content--capability {
    padding-left: 38%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.capability-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.capability-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #00e5ff;
}

.capability-statement {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #e8edf5;
    max-width: 50ch;
}

/* === EVIDENCE SECTION === */
.section-content--evidence {
    padding-left: 38%;
}

.evidence-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evidence-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(5rem, 15vw, 12rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: #00e5ff;
    text-shadow: 0 0 60px rgba(0, 229, 255, 0.4), 0 0 120px rgba(0, 229, 255, 0.15);
}

.evidence-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a8ba8;
    margin-top: 0.5rem;
}

.evidence-context {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #7a8ba8;
    max-width: 50ch;
    margin-top: 1.5rem;
}

/* === CONTACT SECTION === */
.section-content--contact {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #e8edf5;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s ease-out, color 0.3s ease-out;
}

.contact-link:hover {
    transform: scale(1.03);
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
    color: #00e5ff;
}

.contact-subtext {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a8ba8;
    margin-top: 1.5rem;
}

/* === ELASTIC HOVER (global) === */
.elastic-hover {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s ease-out;
}

/* === FADE ANIMATION === */
.fade-element {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SECTION-SPECIFIC AURORA INTENSITY === */
.section-evidence .aurora-layer {
    opacity: 1;
}

.section-evidence .section-bg {
    opacity: 0.88;
}

.section-portal .section-bg {
    opacity: 0.96;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .aurora-band {
        animation: none;
    }

    .bio-dot {
        animation: none;
        opacity: 0.2;
    }

    .portal-aurora-hint {
        animation: none;
        opacity: 0.7;
    }

    .fade-element {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-link:hover,
    .contact-link:hover {
        transition-timing-function: ease-out;
        transition-duration: 0.2s;
    }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .section-content {
        padding-left: 5vw;
        padding-right: 5vw;
        width: 100vw;
    }

    .section-content--portal {
        padding-left: 5vw;
    }

    .section-content--manifesto {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .section-content--capability {
        padding-left: 5vw;
        gap: 3rem;
    }

    .section-content--evidence {
        padding-left: 5vw;
    }

    .portal-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .evidence-number {
        font-size: clamp(3rem, 20vw, 7rem);
    }

    .contact-link {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .aurora-band {
        filter: blur(40px);
    }

    .bio-dot:nth-child(n+7) {
        display: none;
    }

    .holographic-mesh {
        opacity: 0.2;
    }

    .nav-links {
        gap: 1rem;
    }

    .site-nav {
        padding: 1rem 5vw;
    }

    .manifesto-text {
        font-size: 1rem;
    }

    .capability-statement {
        font-size: 1rem;
    }
}

/* === SCROLL SNAP MOBILE FIX === */
@supports (height: 100svh) {
    .scroll-container {
        height: 100svh;
    }
    .section {
        min-height: 100svh;
    }
}