/* === RESET & FLAT-DESIGN ENFORCEMENT === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none;
    text-shadow: none;
}

:root {
    --hadal-navy: #0a1628;
    --bathyal-blue: #0f2440;
    --photic-mist: #d8e8f0;
    --bio-teal: #00c9a7;
    --abyssal-cyan: #1e6f8a;
    --foam-white: #e4eff5;
    --thermocline-gray: #7a9bb5;
    --meso-slate: #1e3a5c;
    --font-width: 125;
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --ease-ripple: cubic-bezier(0.0, 0.0, 0.2, 1.0);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--hadal-navy);
    color: var(--foam-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.72;
    overflow-x: hidden;
}

/* === DEPTH INDICATOR === */
#depth-indicator {
    position: fixed;
    left: 8px;
    top: 0;
    width: 1px;
    height: 0%;
    background-color: var(--bio-teal);
    z-index: 1000;
    transition: height 0.1s linear;
}

/* === SECTIONS === */
.section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.section--dark {
    background-color: var(--hadal-navy);
}

.section--deeper {
    background-color: var(--bathyal-blue);
}

.section--abyss {
    background-color: var(--meso-slate);
}

.section--interlude {
    background-color: var(--bathyal-blue);
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section--hadal {
    background-color: var(--photic-mist);
    color: var(--hadal-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === HORIZON LINE === */
.horizon-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--meso-slate);
    transition: height 0.4s var(--ease-smooth), background-color 0.4s var(--ease-smooth);
}

.horizon-line.active {
    height: 2px;
    background-color: var(--bio-teal);
}

/* === SURFACE / HERO === */
.surface-content {
    position: absolute;
    left: 8vw;
    top: 38%;
}

.hero-title {
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    font-stretch: calc(var(--font-width) * 1%);
    font-size: clamp(4rem, 14vw, 11rem);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--foam-white);
    line-height: 1;
}

.hero-subtitle {
    display: block;
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thermocline-gray);
    margin-top: 1rem;
}

/* === SECTION STATEMENTS === */
.section-statement {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 5rem 8vw;
}

.statement-large {
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    text-transform: lowercase;
    line-height: 1.15;
    max-width: 18ch;
    color: var(--foam-white);
}

.statement-large--dark {
    color: var(--hadal-navy);
    text-align: center;
    max-width: 22ch;
}

/* === READING COLUMNS === */
.reading-column {
    max-width: 38ch;
    padding: 3rem 8vw 8rem;
}

.reading-column--right {
    margin-left: auto;
    margin-right: 12vw;
}

.reading-column--left {
    margin-left: 12vw;
    margin-right: auto;
}

.reading-column p {
    margin-bottom: 2rem;
}

.reading-column p:last-child {
    margin-bottom: 0;
}

/* === LABELS & LOGIC NOTATION === */
.label-mono {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thermocline-gray);
    margin-bottom: 3rem;
}

.label-mono--dark {
    color: var(--abyssal-cyan);
}

.logic-notation {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    letter-spacing: 0.08em;
    color: var(--bio-teal);
    padding: 1rem 0;
}

/* === GATE INTERLUDES === */
.gate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.gate-glyph svg {
    display: block;
}

.gate-label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thermocline-gray);
}

/* === HADAL (INVERTED) === */
.hadal-content {
    text-align: center;
    padding: 5rem 8vw;
    position: relative;
    z-index: 1;
}

/* === LOGIC STARS === */
.logic-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--bio-teal);
    opacity: 0.15;
    pointer-events: none;
}

/* === CONSTELLATION LINES === */
.constellation-line {
    position: absolute;
    height: 1px;
    background-color: var(--meso-slate);
    transform-origin: 0 0;
    pointer-events: none;
}

/* === RIPPLE === */
.ripple-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--bio-teal);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-expand 1.8s var(--ease-ripple) forwards;
}

.ripple-ring--1 { opacity: 0.30; width: 200px; height: 200px; }
.ripple-ring--2 { opacity: 0.15; width: 200px; height: 200px; animation-delay: 0.1s; }
.ripple-ring--3 { opacity: 0.05; width: 200px; height: 200px; animation-delay: 0.2s; }

@keyframes ripple-expand {
    0% { transform: scale(0); }
    100% { transform: scale(1); opacity: 0; }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transition: opacity 0.6s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
}

/* === STAR PULSE === */
@keyframes star-pulse {
    0%, 100% { opacity: 0.10; }
    50% { opacity: 0.20; }
}
