:root {
    color-scheme: dark;
    --black: #050505;
    --text: #fffaf0;
    --muted: rgba(255, 250, 240, 0.72);
    --line: rgba(255, 250, 240, 0.2);
    --accent: #d6ff4f;
    --page-pad: clamp(22px, 4vw, 48px);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

html {
    background: var(--black);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--black);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 42px);
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--page-pad);
    padding-top: max(var(--page-pad), env(safe-area-inset-top));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    padding-bottom: max(var(--page-pad), env(safe-area-inset-bottom));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    isolation: isolate;
}

.hero__media,
.hero__video,
.hero__fallback,
.hero__shade {
    position: fixed;
    inset: 0;
}

.hero__media {
    z-index: -1;
    overflow: hidden;
    background: #070707;
    transform: translateZ(0);
}

.hero__video {
    display: block;
    object-fit: cover;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.78vh);
    width: max(100vw, 177.78svh);
    height: max(56.25vw, 100vh);
    height: max(56.25vw, 100svh);
    border: 0;
    transform: translate(-50%, -50%) scale(1.08);
    pointer-events: none;
}

.hero__fallback {
    background:
        linear-gradient(120deg, transparent 0 22%, rgba(214, 255, 79, 0.14) 22% 23%, transparent 23% 100%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.09), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 88px),
        #070707;
    background-size: 240px 100%, 100% 100%, 88px 100%, 100% 100%;
    animation: backgroundMove 18s linear infinite;
}

.hero__video + .hero__fallback {
    opacity: 0.35;
}

.hero__shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.78)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.84));
}

.hero__content {
    align-self: center;
    justify-self: center;
    display: grid;
    grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 5vw, 58px);
    width: min(100%, 1120px);
    min-height: 0;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.45);
}

.hero__copy {
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(3.4rem, 8vw, 8.8rem);
    line-height: 0.88;
    letter-spacing: 0;
}

.lead {
    max-width: 520px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.hero__footer {
    align-self: end;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    color: rgba(255, 250, 240, 0.66);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hero__footer a {
    border-bottom: 1px solid var(--line);
}

.error-page {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-content: center;
    padding: 32px;
    text-align: center;
}

@supports (height: 100dvh) {
    .hero,
    .error-page {
        min-height: 100dvh;
    }

    .hero__video {
        width: max(100vw, 177.78dvh);
        height: max(56.25vw, 100dvh);
    }
}

@keyframes backgroundMove {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 240px 0, 0 0, 88px 0, 0 0;
    }
}

@media (max-width: 820px) {
    .hero {
        --page-pad: 22px;
        gap: clamp(22px, 7vw, 34px);
    }

    .hero__content {
        grid-template-columns: 1fr;
        justify-items: center;
        align-self: center;
        text-align: center;
    }

    .brand-logo {
        width: min(84vw, 360px);
        padding: clamp(12px, 4vw, 18px);
    }

    h1 {
        max-width: 10ch;
        font-size: clamp(2.8rem, 15vw, 5.8rem);
        line-height: 0.92;
    }

    .lead {
        max-width: 34rem;
        margin-top: 18px;
    }

    .hero__footer {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .hero {
        --page-pad: 18px;
    }

    .brand-logo {
        width: min(86vw, 320px);
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 0.78rem;
    }

    h1 {
        font-size: clamp(2.42rem, 14vw, 3.6rem);
        line-height: 0.94;
    }

    .lead {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .hero__footer {
        font-size: 0.84rem;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .hero {
        min-height: 620px;
    }

    .hero__content {
        grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
        gap: 28px;
        text-align: left;
    }

    .brand-logo {
        width: min(34vw, 300px);
    }

    h1 {
        font-size: clamp(2.8rem, 8vw, 5.2rem);
    }

    .lead {
        margin-top: 16px;
    }
}

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