@font-face {
    font-family: "KH Interference";
    src: url("../fonts/KHInterferenceSite-Light-2.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "KH Interference";
    src: url("../fonts/KHInterferenceSite-Regular-2.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KH Interference";
    src: url("../fonts/KHInterferenceSite-Bold-2.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #030303;
    --bg-soft: #0a0a0a;
    --surface: rgba(12, 12, 12, 0.88);
    --line: rgba(214, 190, 131, 0.18);
    --line-strong: rgba(214, 190, 131, 0.42);
    --text: #f5efe4;
    --muted: #d2c5b1;
    --gold: #d6be83;
    --gold-bright: #f3dfac;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    --header-height: 78px;
    --container: 1220px;
    --nav-line-height: 1px;
    --nav-tip-size: 0.32rem;
    --hero-lockup-width: 60rem;
    --orbit-line: rgba(243, 223, 172, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "KH Interference", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 24rem),
        radial-gradient(circle at 15% 18%, rgba(214, 190, 131, 0.09), transparent 18rem),
        linear-gradient(180deg, #020202 0%, #050505 42%, #070707 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 32%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.6px),
        radial-gradient(circle at 56% 14%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px),
        radial-gradient(circle at 77% 28%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.8px),
        radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.8px);
    background-size: 290px 290px, 370px 370px, 430px 430px, 520px 520px;
    opacity: 0.34;
    content: "";
    animation: starDrift 26s linear infinite;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 90;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #040404;
    transition: top 0.2s ease;
}

.skip-link:focus-visible {
    top: 1rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    background: rgba(5, 5, 5, 0.12);
    backdrop-filter: blur(14px);
    transition: background-color 0.24s ease, border-color 0.24s ease;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.82rem;
}

.brand-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.brand-text {
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.65rem;
}

.site-nav a {
    position: relative;
    padding-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.22s ease;
}

.site-nav a::before,
.site-nav a::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.site-nav a::before {
    right: 0;
    bottom: 0;
    width: 0;
    height: var(--nav-line-height);
    background: linear-gradient(90deg, rgba(214, 190, 131, 0.2) 0%, rgba(243, 223, 172, 0.96) 68%, rgba(243, 223, 172, 0.72) 100%);
    box-shadow: 0 0 10px rgba(243, 223, 172, 0.18);
    transition: width 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-nav a::after {
    bottom: calc(-0.5 * var(--nav-tip-size));
    left: calc(100% - var(--nav-tip-size));
    width: var(--nav-tip-size);
    height: var(--nav-tip-size);
    border-radius: 999px;
    opacity: 0;
    background: radial-gradient(circle, #fff5da 0%, var(--gold) 60%, rgba(243, 223, 172, 0) 76%);
    box-shadow:
        0 0 10px rgba(243, 223, 172, 0.82),
        -0.8rem 0 1px rgba(243, 223, 172, 0.28);
    transition: opacity 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #ffffff;
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a.is-active::before {
    width: 100%;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    opacity: 1;
    animation: rocketNav 0.52s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.site-nav a:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0.22rem auto;
    background: currentColor;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--header-height));
}

.hero-page {
    min-height: 86vh;
}

.hero-media,
.media-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media {
    position: absolute;
    inset: 0;
    transform: scale(1.02);
}

.hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.68) 28%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 68%, rgba(0, 0, 0, 0.72) 100%);
    content: "";
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 66%, rgba(242, 219, 157, 0.18), transparent 13rem),
        radial-gradient(circle at 56% 42%, rgba(242, 219, 157, 0.09), transparent 15rem),
        radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.06), transparent 17rem);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding-block: clamp(4rem, 11vh, 7rem) clamp(3rem, 6vw, 5rem);
}

.hero-page .hero-inner {
    min-height: 86vh;
}

.hero-copy {
    position: relative;
    width: min(100%, 58rem);
    max-width: 100%;
    text-align: center;
    padding: clamp(0.5rem, 1vw, 1rem);
}

.hero-copy::before,
.hero-copy::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero-copy::after {
    left: 50%;
    bottom: clamp(-4rem, -7vw, -2rem);
    width: min(30rem, 72vw);
    height: 6rem;
    background: radial-gradient(circle at 50% 50%, rgba(243, 223, 172, 0.12), rgba(243, 223, 172, 0) 70%);
    transform: translateX(-50%);
    filter: blur(16px);
}

.hero-kicker,
.section-kicker {
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.display,
.section-title {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 0.95;
    text-wrap: balance;
}

.display {
    max-width: 13ch;
    font-size: clamp(3.25rem, 7vw, 6.75rem);
}

.hero-lockup {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
}

.hero-banner {
    width: min(39rem, 84vw);
    margin: 0 auto;
    object-fit: contain;
    filter:
        drop-shadow(0 12px 38px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 16px rgba(243, 223, 172, 0.06));
}

.section-title {
    font-size: clamp(2rem, 4.8vw, 4rem);
}

.kinetic {
    display: inline-block;
}

.hero-subtitle,
.media-copy p,
.footer-copy {
    color: var(--muted);
    line-height: 1.72;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero-subtitle {
    max-width: min(100%, 48rem);
    margin: 0.25rem auto 0;
    color: #f3e5c0;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    letter-spacing: 0.042em;
    text-transform: uppercase;
    text-wrap: pretty;
    text-shadow: 0 0 18px rgba(243, 223, 172, 0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.95rem;
    margin-top: 1.55rem;
}

.compact-actions {
    margin-top: 1.75rem;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 rgba(243, 223, 172, 0);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.button::before,
.button::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.button::before {
    inset: 1px;
    border-radius: inherit;
    opacity: 0.72;
}

.button::after {
    top: 50%;
    left: -18%;
    width: 36%;
    height: 170%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 244, 210, 0.22), rgba(255, 255, 255, 0));
    transform: translateY(-50%) rotate(14deg);
    opacity: 0;
    transition: left 0.42s ease, opacity 0.22s ease;
}

.button span,
.button {
    isolation: isolate;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(243, 223, 172, 0.14);
}

.button:hover::after,
.button:focus-visible::after {
    left: 92%;
    opacity: 1;
}

.button-primary {
    background:
        radial-gradient(circle at 50% 0%, rgba(243, 223, 172, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(243, 223, 172, 0.22), rgba(214, 190, 131, 0.1));
    border-color: rgba(243, 223, 172, 0.42);
    color: #fff7e4;
}

.button-primary::before {
    background:
        linear-gradient(180deg, rgba(255, 250, 233, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, rgba(214, 190, 131, 0.1), rgba(214, 190, 131, 0.02));
}

.button-primary:hover,
.button-primary:focus-visible {
    border-color: rgba(243, 223, 172, 0.62);
    background:
        radial-gradient(circle at 50% 0%, rgba(243, 223, 172, 0.2), transparent 72%),
        linear-gradient(180deg, rgba(243, 223, 172, 0.28), rgba(214, 190, 131, 0.15));
}

.button-ghost {
    background:
        radial-gradient(circle at 0% 0%, rgba(243, 223, 172, 0.06), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    color: var(--text);
}

.button-ghost::before {
    background:
        radial-gradient(circle at 18% 0%, rgba(243, 223, 172, 0.08), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: rgba(243, 223, 172, 0.38);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    color: #fff7e4;
}

.feature-band {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.feature-band::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 22%),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.015) 60%, transparent 100%);
    content: "";
    pointer-events: none;
}

.media-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(1.8rem, 5vw, 4.5rem);
}

.media-grid-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.media-copy {
    max-width: 34rem;
}

.media-copy p:last-of-type {
    margin-bottom: 0;
}

.media-panel {
    position: relative;
    margin: 0;
    min-height: clamp(18rem, 42vw, 34rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.media-panel::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(243, 223, 172, 0.1);
    content: "";
    pointer-events: none;
}

.site-footer {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0 1.2rem;
    background: rgba(5, 5, 5, 0.78);
}

.site-footer::before {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(32rem, 78vw);
    height: 1px;
    background: linear-gradient(90deg, rgba(243, 223, 172, 0), rgba(243, 223, 172, 0.7), rgba(243, 223, 172, 0));
    transform: translateX(-50%);
    content: "";
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.footer-title {
    margin: 0;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.footer-copy {
    max-width: 38rem;
    margin: 0.7rem 0 0;
    color: #e9d9ad;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 1rem 1.25rem;
}

.footer-links a {
    position: relative;
    color: var(--muted);
    padding-bottom: 0.35rem;
    transition: color 0.2s ease;
}

.footer-links a::before,
.footer-links a::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.footer-links a::before {
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(214, 190, 131, 0.18) 0%, rgba(243, 223, 172, 0.98) 74%, rgba(243, 223, 172, 0.66) 100%);
    box-shadow: 0 0 8px rgba(243, 223, 172, 0.16);
    transition: width 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.footer-links a::after {
    bottom: -0.12rem;
    left: calc(100% - 0.28rem);
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 999px;
    opacity: 0;
    background: radial-gradient(circle, #fff6dc 0%, var(--gold) 60%, rgba(243, 223, 172, 0) 78%);
    box-shadow:
        0 0 10px rgba(243, 223, 172, 0.72),
        -0.55rem 0 1px rgba(243, 223, 172, 0.18);
    transition: opacity 0.14s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
    width: 100%;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
    opacity: 1;
    animation: rocketNav 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.footer-meta {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-meta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.9rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.6rem);
        right: 0;
        width: min(18rem, calc(100vw - 2rem));
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 10, 10, 0.96);
        box-shadow: var(--shadow);
        display: grid;
        gap: 0.55rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.4rem);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 0.35rem 0 0.8rem;
    }

    .hero,
    .hero-page,
    .hero-inner,
    .hero-page .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        align-items: center;
        padding-block: clamp(7rem, 18vw, 9rem) 3rem;
    }

    .media-grid,
    .media-grid-reverse,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 74px;
    }

    .container {
        width: min(calc(100% - 1.2rem), var(--container));
    }

    .brand-text {
        font-size: 0.94rem;
    }

    .display {
        max-width: 10ch;
    }

    .hero-banner {
        width: min(26rem, 88vw);
    }

    .hero-subtitle {
        max-width: min(100%, 30rem);
        letter-spacing: 0.03em;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 24%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.88) 100%),
            linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0.18) 100%);
    }

    .hero-media {
        object-position: 62% center;
    }

    .hero-actions,
    .compact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .media-panel {
        min-height: 15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes rocketNav {
    0% {
        left: calc(100% - var(--nav-tip-size));
        opacity: 0.4;
    }

    15% {
        opacity: 1;
    }

    100% {
        left: 0;
        opacity: 1;
    }
}

@keyframes starDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-18px, 12px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}
