:root {
    --bg: #0b0a09;
    --ink: #fff8ed;
    --muted: rgba(255, 248, 237, 0.72);
    --line: rgba(255, 248, 237, 0.18);
    --gold: #f1b64b;
    --red: #b83c44;
    --green: #4b927a;
    --panel: rgba(15, 12, 10, 0.62);
    --radius: 8px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
}

.stage-shell {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.034) 1px, transparent 1px) 0 0 / 88px 88px,
        radial-gradient(circle at 74% 44%, rgba(184, 60, 68, 0.24), transparent 23rem),
        linear-gradient(135deg, #0b0a09 0%, #18120f 45%, #16231f 100%);
}

#tns-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
}

.stage-shade {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 10, 9, 0.88), rgba(11, 10, 9, 0.28) 42%, rgba(11, 10, 9, 0.12) 70%, rgba(11, 10, 9, 0.68)),
        linear-gradient(180deg, rgba(11, 10, 9, 0.34), transparent 38%, rgba(11, 10, 9, 0.82));
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: 0.8rem clamp(1rem, 3vw, 2.4rem);
    background: linear-gradient(180deg, rgba(11, 10, 9, 0.9), rgba(11, 10, 9, 0.2));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.78rem;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    flex: 0 0 3.15rem;
    color: #10100d;
    background: linear-gradient(135deg, var(--gold), #fff6e5 54%, var(--green));
    border-radius: 50%;
    font-weight: 950;
}

.brand strong,
.brand small {
    display: block;
    white-space: nowrap;
}

.brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.05;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.topnav a {
    min-height: 2.55rem;
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.78rem;
    border-radius: var(--radius);
    color: rgba(255, 248, 237, 0.82);
    text-decoration: none;
    font-weight: 850;
}

.topnav a:hover {
    color: #11100d;
    background: var(--gold);
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: 7rem clamp(1rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.hero-copy {
    width: min(48rem, 100%);
    padding-bottom: clamp(2rem, 8vh, 5rem);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    max-width: 10.8ch;
    font-size: clamp(3.8rem, 9.2vw, 9.9rem);
    line-height: 0.86;
    letter-spacing: 0;
}

.particle-word,
.particle-letter {
    display: inline-block;
}

.particle-word {
    white-space: nowrap;
}

.particle-letter {
    opacity: 0;
    transform: translate3d(var(--px), var(--py), 0) scale(0.08) rotate(var(--pr));
    filter: blur(1.5rem);
    transition:
        opacity 2800ms ease,
        transform 3400ms cubic-bezier(.12, .92, .18, 1),
        filter 3400ms ease;
    transition-delay: var(--pd);
}

.is-particle-ready .particle-letter {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(0);
}

.hero p:not(.eyebrow) {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.24rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.45rem;
}

.button {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.button.primary {
    color: #11100d;
    background: var(--gold);
}

.button.ghost {
    color: var(--ink);
    background: rgba(255, 248, 237, 0.07);
    border-color: var(--line);
}

.intro-section {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: center;
    min-height: 100svh;
    padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
    background:
        linear-gradient(90deg, rgba(11, 10, 9, 0.98), rgba(11, 10, 9, 0.76) 45%, rgba(11, 10, 9, 0.96)),
        radial-gradient(circle at 12% 22%, rgba(75, 146, 122, 0.18), transparent 24rem),
        #0d0b0a;
    border-top: 1px solid var(--line);
}

.intro-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    opacity: 0;
    filter: blur(1.65rem) saturate(0.72);
    transform: translate3d(-6rem, 1.2rem, 0) scale(0.9);
    transition:
        opacity 2100ms ease,
        transform 2400ms cubic-bezier(.16, .88, .2, 1),
        filter 2200ms ease;
}

.intro-media::before {
    content: "";
    position: absolute;
    inset: -2.2rem;
    z-index: -1;
    background:
        radial-gradient(circle at 28% 20%, rgba(118, 96, 255, 0.58), transparent 18rem),
        radial-gradient(circle at 78% 72%, rgba(75, 146, 122, 0.46), transparent 16rem),
        rgba(255, 248, 237, 0.08);
    filter: blur(2.1rem);
}

.intro-media.is-visible {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    transform: translate3d(0, 0, 0);
}

.intro-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.intro-copy {
    position: relative;
    max-width: 42rem;
}

.intro-object {
    position: absolute;
    top: -8rem;
    right: -6rem;
    z-index: 0;
    width: clamp(18rem, 28vw, 30rem);
    aspect-ratio: 1;
    pointer-events: none;
    opacity: 0.9;
    filter:
        drop-shadow(0 1.8rem 2.4rem rgba(0, 0, 0, 0.66))
        drop-shadow(0 0 2rem rgba(241, 182, 75, 0.2));
}

.intro-copy > .eyebrow,
.intro-copy h2,
.assemble-text,
[data-assemble-text] {
    position: relative;
    z-index: 1;
}

#spotlight-stage {
    width: 100%;
    height: 100%;
    display: block;
}

.intro-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: 0;
    opacity: 0;
    filter: blur(1rem);
    transform: translate3d(0, 2.4rem, 0) scale(0.96);
    transition:
        opacity 2600ms ease,
        transform 3200ms cubic-bezier(.16, .88, .18, 1),
        filter 3200ms ease;
}

.intro-copy h2.is-title-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.assemble-text {
    margin: 1.4rem 0 0;
    color: var(--soft, #fff8ed);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.72;
}

.assemble-text span {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 2rem, 0) rotateX(70deg) scale(0.9);
    filter: blur(0.85rem);
    transition:
        opacity 850ms ease,
        transform 1040ms cubic-bezier(.16, .88, .18, 1),
        filter 1040ms ease;
    transition-delay: var(--delay);
    transform-origin: 50% 100%;
}

.assemble-text span.is-space {
    width: 0.32em;
}

.assemble-text.is-assembled span {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
}

.audio-toggle {
    position: fixed;
    right: clamp(1rem, 3vw, 2.4rem);
    bottom: clamp(1rem, 3vw, 2.4rem);
    z-index: 40;
    min-height: 2.5rem;
    padding: 0.52rem 0.78rem;
    color: var(--ink);
    background: rgba(15, 12, 10, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
}

.audio-toggle[aria-pressed="true"] {
    color: #11100d;
    background: var(--gold);
}

.audio-toggle:disabled {
    color: rgba(255, 248, 237, 0.5);
    cursor: default;
}

.scene-status {
    position: fixed;
    right: clamp(1rem, 3vw, 2.4rem);
    bottom: clamp(4.2rem, 6vw, 5.4rem);
    z-index: 8;
    display: grid;
    gap: 0.15rem;
    min-width: 12rem;
    padding: 0.85rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
}

.scene-status span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.scene-status strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1;
}

body.is-loaded .scene-status {
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 420ms ease, transform 420ms ease;
    pointer-events: none;
}

@media (max-width: 760px) {
    body {
        overflow: auto;
    }

    .stage-shell {
        min-height: 178svh;
    }

    #tns-stage {
        position: absolute;
        top: 78svh;
        height: 92svh;
    }

    .stage-shade {
        position: absolute;
        top: 78svh;
        bottom: auto;
        height: 92svh;
        background:
            linear-gradient(180deg, rgba(11, 10, 9, 0.12), rgba(11, 10, 9, 0.72) 72%, rgba(11, 10, 9, 0.94)),
            radial-gradient(circle at 52% 38%, rgba(11, 10, 9, 0.08), rgba(11, 10, 9, 0.68) 72%);
    }

    .topbar {
        align-items: flex-start;
        min-height: 72px;
    }

    .brand strong {
        max-width: 12rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topnav {
        display: none;
    }

    .hero {
        align-items: start;
        min-height: 178svh;
        padding-top: 6.5rem;
        padding-bottom: 0;
    }

    .hero-copy {
        min-height: 72svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 0;
    }

    .hero h1 {
        width: min(100%, 22rem);
        max-width: 100%;
        font-size: clamp(2.65rem, 11.8vw, 4.7rem);
        line-height: 0.9;
    }

    .scene-status {
        left: 1rem;
        right: 1rem;
        bottom: 4rem;
    }

    .audio-toggle {
        right: 1rem;
        bottom: 1rem;
    }

    .intro-section {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: auto;
        padding: 0;
    }

    .intro-copy {
        order: -1;
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        padding: 6.5rem 1rem 5rem;
    }

    .intro-copy > .eyebrow {
        order: 1;
        max-width: 12rem;
    }

    .intro-object {
        position: relative;
        top: auto;
        right: auto;
        order: 2;
        align-self: flex-end;
        width: min(82vw, 24rem);
        margin: -4.4rem -3.1rem -1.2rem 0;
        opacity: 0.92;
    }

    .intro-copy h2 {
        order: 3;
        max-width: 8.6ch;
        font-size: clamp(3.1rem, 18vw, 5.6rem);
    }

    .assemble-text,
    [data-assemble-text] {
        order: 4;
        margin-top: 2.2rem;
        font-size: 1.08rem;
        line-height: 1.74;
    }

    .intro-media {
        width: 100%;
        margin: 0;
        border-radius: 0;
        transform: translate3d(-3.5rem, 2rem, 0) scale(0.92);
    }

    .intro-media img {
        aspect-ratio: 4 / 5;
        border-radius: 0;
    }
}
