
/* ================================
   DESIGN TOKENS
================================ */

:root {
    --bg: #080808;
    --surface: #101010;

    --text: #f2f2ef;
    --muted: #969696;
    --border: #252525;

    --accent: #ff7300;

    --max-width: 1200px;
    --nav-height: 82px;

    --ease: cubic-bezier(.22, 1, .36, 1);
}


/* ================================
   RESET
================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--accent);
    color: #000;
}


/* ================================
   GLOBAL
================================ */

.container {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin-inline: auto;
}

.accent {
    color: var(--accent);
}

.eyebrow {
    color: var(--accent);

    font-size: .72rem;
    font-weight: 600;

    letter-spacing: .16em;
    text-transform: uppercase;
}


/* ================================
   NAVIGATION
================================ */

.site-header {
    position: fixed;
    inset: 0 0 auto;

    z-index: 100;

    height: var(--nav-height);

    border-bottom: 1px solid transparent;

    transition:
        background .4s var(--ease),
        border-color .4s var(--ease);
}

.site-header.scrolled {
    background: rgba(8, 8, 8, .82);
    border-color: var(--border);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
    z-index: 2;

    font-size: .85rem;
    font-weight: 700;

    letter-spacing: .08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    position: relative;

    color: var(--muted);

    font-size: .82rem;
    font-weight: 500;

    transition: color .3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 100%;
    height: 1px;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform .35s var(--ease);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);

    background: transparent;
    color: var(--text);
}


/* ================================
   HERO
================================ */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(255, 115, 0, .09),
            transparent 28%
        );

    animation:
        background-drift
        12s
        ease-in-out
        infinite
        alternate;
}

.hero-background::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: .15;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 75%
        );
}


/* ================================
   TECHNOLOGY ORB
================================ */

.tech-orb {
    position: absolute;

    top: 50%;
    left: 74%;

    width: 330px;
    aspect-ratio: 1;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,.10),
            rgba(255,115,0,.035) 35%,
            transparent 68%
        );

    border:
        1px solid rgba(255,255,255,.10);

    box-shadow:
        0 0 80px rgba(255,115,0,.06),
        inset 0 0 60px rgba(255,255,255,.025);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    opacity: .85;

    animation:
        orb-float
        8s
        ease-in-out
        infinite;
}


/* Inner glow */

.orb-core {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 54px;
    height: 54px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,115,0,.45),
            rgba(255,115,0,.08) 45%,
            transparent 70%
        );

    box-shadow:
        0 0 35px rgba(255,115,0,.18);
}


/* Orbital rings */

.orb-ring {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 78%;
    height: 26%;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-28deg);
}

.orb-ring-one {
    animation:
        ring-one
        12s
        linear
        infinite;
}

.orb-ring-two {
    width: 88%;
    height: 34%;

    border-color:
        rgba(255,115,0,.20);

    transform:
        translate(-50%, -50%)
        rotate(58deg);

    animation:
        ring-two
        16s
        linear
        infinite
        reverse;
}

.orb-ring-three {
    width: 62%;
    height: 90%;

    border-color:
        rgba(255,255,255,.07);

    transform:
        translate(-50%, -50%)
        rotate(25deg);

    animation:
        ring-three
        18s
        linear
        infinite;
}


/* ================================
   ORB ANIMATIONS
================================ */

@keyframes orb-float {

    0%,
    100% {
        transform:
            translate(-50%, -50%)
            translateY(0);
    }

    50% {
        transform:
            translate(-50%, -50%)
            translateY(-12px);
    }
}

@keyframes ring-one {

    from {
        transform:
            translate(-50%, -50%)
            rotate(-28deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(332deg);
    }
}

@keyframes ring-two {

    from {
        transform:
            translate(-50%, -50%)
            rotate(58deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(-302deg);
    }
}

@keyframes ring-three {

    from {
        transform:
            translate(-50%, -50%)
            rotate(25deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(385deg);
    }
}


/* ================================
   HERO CONTENT
================================ */

.hero-content {
    position: relative;
    z-index: 1;

    padding-top: var(--nav-height);
}

.hero-title {
    max-width: 950px;

    margin-top: 18px;

    font-size:
        clamp(
            3.5rem,
            8vw,
            8rem
        );

    font-weight: 600;

    line-height: .92;
    letter-spacing: -.055em;
}

.hero-description {
    max-width: 540px;

    margin-top: 32px;

    color: var(--muted);

    font-size: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;

    gap: 28px;

    margin-top: 38px;
    padding: 14px 18px;

    border:
        1px solid var(--border);

    background: transparent;
    color: var(--text);

    font-size: .82rem;
    font-weight: 600;

    transition:
        background .35s var(--ease),
        border-color .35s var(--ease),
        color .35s var(--ease),
        transform .35s var(--ease);
}

.button span:last-child {
    color: var(--accent);

    transition:
        transform .35s var(--ease);
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);

    color: #000;

    transform:
        translateY(-3px);
}

.button:hover span:last-child {
    color: #000;

    transform:
        translate(3px, -3px);
}

.scroll-indicator {
    position: absolute;

    right: 24px;
    bottom: 28px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--muted);

    font-size: .65rem;

    letter-spacing: .12em;
    text-transform: uppercase;

    writing-mode: vertical-rl;
}

.scroll-indicator span {
    width: 1px;
    height: 44px;

    background: var(--accent);

    animation:
        scroll-line
        2s
        ease-in-out
        infinite;
}


/* ================================
   SECTIONS
================================ */

.section {
    padding: 150px 0;
}

.section-heading h2 {
    max-width: 800px;

    margin-top: 20px;

    font-size:
        clamp(
            2.8rem,
            6vw,
            6rem
        );

    font-weight: 500;

    line-height: .98;
    letter-spacing: -.045em;
}

.section-content {
    max-width: 620px;

    margin: 70px 0 0 auto;

    color: var(--muted);

    font-size: 1.15rem;

    line-height: 1.8;
}


/* ================================
   CONTACT
================================ */

.contact-layout {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;
}

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.form-group label {
    color: var(--muted);

    font-size: .75rem;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 14px 0;

    border: 0;
    border-bottom:
        1px solid var(--border);

    outline: none;

    background: transparent;
    color: var(--text);

    resize: vertical;

    transition:
        border-color .3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.submit-button {
    align-self: flex-start;
}

.form-status {
    min-height: 24px;

    color: var(--muted);

    font-size: .85rem;
}


/* ================================
   FOOTER
================================ */

.footer {
    border-top:
        1px solid var(--border);

    padding: 26px 0;

    color: var(--muted);

    font-size: .7rem;

    letter-spacing: .05em;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


/* ================================
   REVEAL ANIMATIONS
================================ */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity .8s var(--ease),
        transform .8s var(--ease);
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* ================================
   KEYFRAMES
================================ */

@keyframes background-drift {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes scroll-line {

    0%,
    100% {
        transform: scaleY(.5);

        transform-origin: top;
    }

    50% {
        transform: scaleY(1);

        transform-origin: top;
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 800px) {

    :root {
        --nav-height: 70px;
    }

    .container {
        width: min(
            calc(100% - 32px),
            var(--max-width)
        );
    }


    /* Mobile navigation */

    .nav-links {
        position: fixed;

        inset:
            var(--nav-height)
            0
            0;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: flex-start;

        padding: 32px;

        background:
            rgba(8, 8, 8, .97);

        transform:
            translateX(100%);

        transition:
            transform .5s var(--ease);
    }

    .nav-links.open {
        transform:
            translateX(0);
    }

    .nav-links a {
        font-size: 2rem;

        letter-spacing: -.03em;
    }


    /* Mobile menu button */

    .menu-toggle {
        position: relative;

        z-index: 2;

        display: flex;

        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 6px;
    }

    .menu-toggle span {
        display: block;

        width: 16px;
        height: 1px;

        background: var(--text);

        transition:
            transform .35s var(--ease),
            opacity .35s ease;
    }

    .menu-toggle.open span:first-child {
        transform:
            translateY(3.5px)
            rotate(45deg);
    }

    .menu-toggle.open span:last-child {
        transform:
            translateY(-3.5px)
            rotate(-45deg);
    }


    /* Mobile orb */

    .tech-orb {
        left: 82%;

        width: 230px;

        opacity: .45;
    }


    /* Mobile hero */

    .hero-title {
        font-size:
            clamp(
                3.2rem,
                15vw,
                6rem
            );
    }

    .scroll-indicator {
        display: none;
    }


    /* Mobile sections */

    .section {
        padding: 100px 0;
    }

    .section-content {
        margin-top: 45px;
    }


    /* Mobile contact */

    .contact-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }
}


/* ================================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}

