:root {
    /* Font source notes: "IBM Plex Mono" (Google Fonts), "IBM Plex Sans" (Google Fonts), "Space Grotesk" (Google Fonts). Closing sequence reads a closing statement. Then nothing. The page ends. Intersection Observer at `threshold: 0.2` handles scroll-triggered reveals — no external libraries. */
    --void-black: #0a0a0a;
    --chrome-white: #e8e8e8;
    --grid-silver: #2a2a2a;
    --fog-gray: #6b6b6b;
    --surface-gray: #1a1a1a;
    --highlight-zinc: #d4d4d4;
    --accent-pulse: #b0b0ff;
    --sphere-dark: #3a3a3a;
    --grid-opacity: 0.3;
    --sphere-scale: 1;
}

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

html {
    scroll-behavior: smooth;
    background: var(--void-black);
}

body {
    min-height: 400vh;
    overflow-x: hidden;
    background: var(--void-black);
    color: var(--chrome-white);
    font-family: "IBM Plex Sans", Inter, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    background:
        radial-gradient(circle at 62% 38%, rgba(176, 176, 255, 0.06), transparent 24vw),
        radial-gradient(circle at 10% 80%, rgba(232, 232, 232, 0.025), transparent 34vw);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--grid-opacity);
    background-image:
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, #2a2a2a 0px, #2a2a2a 1px, transparent 1px, transparent 80px);
    background-position: 0 0;
    animation: gridDrift 90s linear infinite reverse;
    transition: opacity 0.3s linear;
}

.site-shell {
    position: relative;
    z-index: 2;
}

.hero {
    position: relative;
    min-height: 200vh;
    background: var(--void-black);
}

.hero-plane {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    align-items: center;
    padding: clamp(24px, 5vw, 80px);
    overflow: hidden;
}

.domain-name {
    grid-column: 1 / 6;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    margin-left: clamp(0px, 3vw, 46px);
    color: var(--chrome-white);
    font-family: "Dela Gothic One", "Space Grotesk", sans-serif;
    font-size: clamp(4rem, 12vw, 14rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.88;
    text-transform: none;
    z-index: 3;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 42px 80px rgba(0, 0, 0, 0.75);
}

.sphere {
    grid-column: 4 / 7;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    width: clamp(200px, 40vw, 480px);
    height: clamp(200px, 40vw, 480px);
    margin-top: 20vh;
    border-radius: 50%;
    transform: translateZ(0) scale(var(--sphere-scale));
    transform-origin: 50% 50%;
    background:
        radial-gradient(circle at 38% 28%, rgba(176, 176, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 35% 30%, #3a3a3a 0%, #1a1a1a 40%, #0a0a0a 70%);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        inset 0 -20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 10px 20px -5px rgba(255, 255, 255, 0.05),
        inset 28px 18px 54px rgba(176, 176, 255, 0.035);
    z-index: 2;
    transition: transform 0.08s linear;
}

.sphere::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 40%, rgba(232, 232, 232, 0.03) 50%, transparent 60%);
    animation: rotateHighlight 60s linear infinite;
}

.sphere::after {
    content: "";
    position: absolute;
    inset: 11% 17% 59% 24%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 176, 255, 0.32), rgba(176, 176, 255, 0.04) 46%, transparent 70%);
    filter: blur(2px);
}

.scroll-indicator {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    z-index: 8;
    width: 34px;
    height: 34px;
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    color: var(--fog-gray);
    cursor: pointer;
}

.chevron-down {
    display: block;
    width: 24px;
    height: 24px;
    margin: 5px auto;
    fill: none;
    stroke: #6b6b6b;
    stroke-width: 1;
    animation: pulse 4s ease-in-out infinite;
}

.story {
    position: relative;
    padding: 0 0 160px;
    background: linear-gradient(180deg, var(--void-black), var(--surface-gray) 35%, var(--void-black));
}

.content-stratum {
    position: relative;
    min-height: 68vh;
    margin: 160px 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    align-items: center;
    padding: clamp(48px, 8vw, 110px) clamp(24px, 5vw, 80px);
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-stratum::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        repeating-linear-gradient(90deg, rgba(42, 42, 42, 0.65) 0px, rgba(42, 42, 42, 0.65) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(42, 42, 42, 0.65) 0px, rgba(42, 42, 42, 0.65) 1px, transparent 1px, transparent 80px);
    opacity: 0.28;
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.content-stratum.visible {
    opacity: 1;
    transform: translateX(0);
}

.stratum-content {
    position: relative;
    z-index: 2;
    grid-column: 3 / 5;
    max-width: 540px;
    margin: 0 auto;
    padding: 38px 0;
}

.stratum-1 .stratum-content,
.stratum-3 .stratum-content {
    grid-column: 2 / 5;
}

.stratum-2 .stratum-content {
    grid-column: 3 / 6;
}

.meta,
.ambient-note {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #6b6b6b;
}

.meta {
    margin-bottom: 1.1rem;
}

h2 {
    margin-bottom: 1.2rem;
    color: var(--highlight-zinc);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

p {
    max-width: 60ch;
    color: var(--chrome-white);
    font-size: 1rem;
    line-height: 1.75;
}

.chrome-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, #6b6b6b 20%, #d4d4d4 50%, #6b6b6b 80%, transparent);
}

.ambient-note {
    position: absolute;
    z-index: 4;
    white-space: nowrap;
    text-transform: lowercase;
}

.note-left {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.note-right {
    position: fixed;
    right: 18px;
    top: 38.2%;
    transform: translateY(-50%) rotate(90deg);
}

.stratum-note {
    left: clamp(18px, 3vw, 48px);
    top: 50%;
    transform: rotate(90deg);
}

.dissolution {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--void-black);
}

.closing-line {
    max-width: 620px;
    padding: 0 28px;
    color: #6b6b6b;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(0.78rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.dissolution.visible .closing-line {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes gridDrift {
    to {
        background-position: 80px 80px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .hero-plane,
    .content-stratum {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .hero-plane {
        align-content: center;
        padding: 28px;
    }

    .domain-name {
        grid-column: 1 / 3;
        align-self: end;
        font-size: clamp(3.2rem, 18vw, 6rem);
    }

    .sphere {
        grid-column: 1 / 3;
        justify-self: end;
        align-self: start;
        width: clamp(170px, 68vw, 300px);
        height: clamp(170px, 68vw, 300px);
        margin-top: -4vh;
    }

    .story {
        padding-bottom: 80px;
    }

    .content-stratum {
        min-height: 72vh;
        margin: 80px 0;
        padding: 56px 28px;
    }

    .stratum-content,
    .stratum-1 .stratum-content,
    .stratum-2 .stratum-content,
    .stratum-3 .stratum-content {
        grid-column: 1 / 3;
        max-width: 540px;
    }

    .note-left,
    .note-right {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
