* {
    box-sizing: border-box;
}

:root {
    --bg: #030305;
    --text: #f4f4f7;
    --muted: rgba(244, 244, 247, 0.48);
    --line: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

#space {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grain {
    position: fixed;
    inset: -50%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.055;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");

    animation: grain 0.25s steps(2) infinite;
}

@keyframes grain {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(2%, -1%);
    }

    50% {
        transform: translate(-1%, 2%);
    }

    75% {
        transform: translate(1%, 1%);
    }

    100% {
        transform: translate(-2%, -1%);
    }
}


/* LOADER */

#loader {
    position: fixed;
    inset: 0;
    z-index: 20;

    display: grid;
    place-items: center;

    background: #030305;

    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-core {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 25px 8px rgba(170, 150, 255, 0.75);

    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        transform: scale(10);
        opacity: 0.35;
    }
}


/* HERO */

.hero {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    padding: 32px 42px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;
}

.hero-meta,
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 10px;
    letter-spacing: 0.18em;

    color: var(--muted);

    text-transform: uppercase;
}


/* PLANET */

.orb-wrap {
    position: absolute;

    left: 50%;
    top: 48%;

    width: min(48vw, 620px);
    height: min(48vw, 620px);

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.orb-glow {
    position: absolute;

    inset: -20%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(117, 94, 255, 0.24) 0%,
            rgba(50, 100, 255, 0.08) 34%,
            transparent 67%
        );

    filter: blur(28px);

    animation: breathe 6s ease-in-out infinite;
}

.orb {
    position: absolute;

    inset: 8%;

    border-radius: 50%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 34% 28%,
            rgba(255, 255, 255, 0.48),
            transparent 8%
        ),
        radial-gradient(
            circle at 50% 52%,
            #171525 0%,
            #090914 44%,
            #020205 76%
        );

    box-shadow:
        inset -55px -40px 100px rgba(0, 0, 0, 0.95),
        inset 25px 20px 60px rgba(137, 121, 255, 0.14),
        0 0 70px rgba(99, 83, 255, 0.16);

    animation: float 7s ease-in-out infinite;
}

.orb::before,
.orb::after {
    content: "";

    position: absolute;

    inset: -20%;

    background:
        repeating-linear-gradient(
            105deg,
            transparent 0 23px,
            rgba(157, 144, 255, 0.09) 24px,
            transparent 25px 48px
        );

    mix-blend-mode: screen;

    animation: drift 13s linear infinite;
}

.orb::after {
    transform: rotate(90deg);

    opacity: 0.45;

    animation-duration: 19s;
}

.orb-shine {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 27% 23%,
            rgba(255, 255, 255, 0.18),
            transparent 16%
        );
}

@keyframes breathe {
    50% {
        transform: scale(1.12);
        opacity: 0.72;
    }
}

@keyframes float {
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes drift {
    to {
        transform: translateX(80px);
    }
}


/* TITLE */

.title {
    position: relative;
    z-index: 3;

    margin: auto 0;

    pointer-events: none;
}

.eyebrow {
    margin: 0 0 18px;

    font-size: 10px;

    letter-spacing: 0.28em;

    color: var(--muted);
}

h1 {
    margin: 0;

    display: flex;
    flex-direction: column;

    font-size: clamp(62px, 11vw, 180px);

    line-height: 0.82;

    letter-spacing: -0.075em;

    font-weight: 500;
}

h1 span:last-child {
    margin-left: 9vw;

    background:
        linear-gradient(
            110deg,
            #ffffff 15%,
            #aaa0ff 52%,
            #7770ff 85%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* SCROLL */

.scroll-indicator {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    width: 1px;
    height: 54px;

    background: var(--line);

    overflow: hidden;
}

.scroll-indicator span {
    display: block;

    width: 100%;
    height: 35%;

    background: white;

    animation:
        scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(300%);
    }
}


/* INTRO */

.intro {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    padding: 15vh 8vw;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(73, 57, 150, 0.13),
            transparent 35%
        );
}

.section-number {
    font-size: 10px;

    letter-spacing: 0.2em;

    color: var(--muted);
}

.intro h2 {
    margin: 7vh 0 5vh;

    font-size: clamp(42px, 7vw, 110px);

    line-height: 0.96;

    letter-spacing: -0.055em;

    font-weight: 400;
}

.intro h2 em {
    color: #9e96ff;

    font-style: normal;
}

.intro-copy {
    color: var(--muted);

    font-size: 13px;

    letter-spacing: 0.08em;
}


/* MOBILE */

@media (max-width: 700px) {

    .hero {
        padding: 24px 22px;
    }

    .orb-wrap {
        width: 90vw;
        height: 90vw;

        top: 44%;
    }

    h1 {
        font-size: clamp(54px, 16vw, 100px);
    }

    .hero-bottom p:first-child {
        display: none;
    }

    .hero-bottom {
        justify-content: center;
    }
}
