:root {
    --page-bg: #08111a;
    --panel-bg: rgba(9, 18, 28, 0.7);
    --panel-border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(5, 10, 18, 0.78);
    --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --text-primary: #f4f7fb;
    --text-secondary: #b8c4d2;
    --text-muted: #8c99a8;
    --accent: #f2b84b;
    --accent-soft: rgba(242, 184, 75, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.35);
    --content-width: min(1120px, calc(100vw - 3rem));
    --header-height: 5.25rem;
    --radius-lg: 2rem;
    --radius-md: 1.25rem;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    background:
        radial-gradient(circle at top left, rgba(25, 72, 114, 0.4), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(242, 184, 75, 0.14), transparent 25%),
        linear-gradient(135deg, #04080e 0%, #0b1622 45%, #111f2d 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
    pointer-events: none;
    z-index: -2;
}

.page-shell {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.ambient {
    position: fixed;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: floatGlow 10s ease-in-out infinite;
}

.ambient-left {
    top: 8rem;
    left: -10rem;
    background: rgba(91, 128, 168, 0.28);
}

.ambient-right {
    right: -8rem;
    bottom: 3rem;
    background: rgba(242, 184, 75, 0.16);
    animation-delay: -4s;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: linear-gradient(180deg, var(--header-bg), rgba(5, 10, 18, 0.46));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    width: var(--content-width);
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-inner h1 {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    text-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

.header-status {
    margin: 0;
    font-family: var(--font-body);
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.site-main {
    width: var(--content-width);
    margin: 0 auto;
    min-height: 0;
    width: 100%;
    max-width: var(--content-width);
    padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    display: grid;
}

.hero {
    min-height: 0;
    display: grid;
    place-items: center;
}

.hero-frame {
    position: relative;
    width: 100%;
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--panel-border);
    box-shadow: 0 2rem 5rem var(--shadow-color);
    overflow: hidden;
    isolation: isolate;
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(242, 184, 75, 0.08), transparent 35%, rgba(255, 255, 255, 0.04) 70%, transparent);
    pointer-events: none;
    z-index: -1;
}

.hero-video-wrap {
    position: relative;
    min-height: clamp(20rem, 58vw, 38rem);
    border-radius: calc(var(--radius-lg) - 0.5rem);
    overflow: hidden;
    background: #030608;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.05) brightness(0.52);
    transform: scale(1.03);
}

.video-grid,
.video-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.video-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 5.5rem 5.5rem;
    opacity: 0.22;
    mix-blend-mode: soft-light;
}

.video-vignette {
    background:
        linear-gradient(180deg, rgba(4, 8, 14, 0.28), rgba(4, 8, 14, 0.62)),
        radial-gradient(circle at center, transparent 38%, rgba(4, 8, 14, 0.72) 100%);
}

.hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        margin 0.45s ease;
}

.eyebrow.is-hidden {
    opacity: 0;
    transform: translateY(-0.75rem);
    margin-bottom: 0;
}

.hero-title,
.hero-subtitle {
    max-width: 18ch;
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease;
    filter: blur(10px);
}

.hero-title {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.75vw, 4.05rem);
    line-height: 0.95;
    text-wrap: balance;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 0.75rem 2.5rem rgba(242, 184, 75, 0.28);
}

.hero-subtitle {
    margin: 0;
    padding: 0 1.25rem;
    max-width: 38rem;
    border-radius: var(--radius-md);
    max-height: 0;
    overflow: hidden;
    background: rgba(4, 8, 14, 0.5);
    border: 1px solid transparent;
    color: var(--text-primary);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.6;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease,
        max-height 0.8s ease,
        margin-top 0.8s ease,
        padding 0.8s ease,
        border-color 0.8s ease;
}

body.is-ready .reveal-step.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

body.is-ready .hero-subtitle.is-visible {
    margin-top: 1.2rem;
    padding: 1rem 1.25rem;
    max-height: 12rem;
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -1.8rem, 0) scale(1.08);
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0.9rem 0;
    }

    .site-main {
        padding-top: 1rem;
    }

    .hero-video-wrap {
        min-height: clamp(18rem, 72vw, 32rem);
    }

    .hero-copy {
        padding: 1.5rem;
    }

    .hero-subtitle {
        max-width: 32rem;
    }
}

@media (max-width: 640px) {
    :root {
        --content-width: min(100vw - 1.25rem, 100%);
        --header-height: 6.25rem;
    }

    .site-main {
        min-height: auto;
        padding-bottom: 0.75rem;
    }

    .hero-frame {
        padding: 0.75rem;
        border-radius: 1.5rem;
    }

    .hero-video-wrap {
        min-height: 25rem;
        border-radius: 1.1rem;
    }

    .hero-copy {
        justify-content: center;
        background: linear-gradient(180deg, rgba(4, 8, 14, 0.12), rgba(4, 8, 14, 0.55) 62%, rgba(4, 8, 14, 0.74) 100%);
    }

    .eyebrow {
        margin-bottom: 0.7rem;
        letter-spacing: 0.24em;
    }

    .hero-title {
        max-width: 11ch;
    }

    .hero-subtitle {
        font-size: 0.96rem;
    }

    body.is-ready .hero-subtitle.is-visible {
        margin-top: 1rem;
        padding: 0.9rem 1rem;
    }

    .header-status {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ambient,
    .hero-title,
    .hero-subtitle {
        animation: none;
        transition: none;
    }

    .hero-title,
    .hero-subtitle {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-subtitle {
        max-height: none;
        margin-top: 1.2rem;
        padding: 1rem 1.25rem;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .eyebrow {
        opacity: 0;
        margin-bottom: 0;
    }
}