:root {
    --black: #000000;
    --ink: #000000;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.6);
    --gold: #C9A84C;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', Arial, sans-serif;
}

body {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

.hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(32px, 6vw, 80px);
    padding-bottom: 18vh;
    background: var(--black);
}

.hero::before,
.hero::after {
    display: none;
}

.hero-content {
    width: min(980px, 100%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 0ms linear 400ms;
}

.hero-content.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms ease;
}

.hero-content.exiting {
    animation: hero-title-exit 600ms ease forwards;
}

.hero h1 {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(4.2rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.82;
    text-shadow: 0 0 42px rgba(255, 210, 30, 0.14);
}

.htitle-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.16em;
    color: var(--white);
}

.htitle-word {
    display: inline-flex;
}

.htitle-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-64px) scaleY(1.08);
    animation: letter-drop 700ms cubic-bezier(0.2, 0.95, 0.24, 1) forwards;
}

.htitle-line .htitle-word:nth-child(1) span:nth-child(1) {
    animation-delay: 3800ms;
}

.htitle-line .htitle-word:nth-child(1) span:nth-child(2) {
    animation-delay: 3870ms;
}

.htitle-line .htitle-word:nth-child(1) span:nth-child(3) {
    animation-delay: 3940ms;
}

.htitle-line .htitle-word:nth-child(1) span:nth-child(4) {
    animation-delay: 4010ms;
}

.htitle-line .htitle-word:nth-child(2) span:nth-child(1) {
    animation-delay: 4080ms;
}

.htitle-line .htitle-word:nth-child(2) span:nth-child(2) {
    animation-delay: 4150ms;
}

.htitle-line .htitle-word:nth-child(2) span:nth-child(3) {
    animation-delay: 4220ms;
}

.htitle-line .htitle-word:nth-child(2) span:nth-child(4) {
    animation-delay: 4290ms;
}

.htitle-line .htitle-word:nth-child(2) span:nth-child(5) {
    animation-delay: 4360ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(1) {
    animation-delay: 4430ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(2) {
    animation-delay: 4500ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(3) {
    animation-delay: 4570ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(4) {
    animation-delay: 4640ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(5) {
    animation-delay: 4710ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(6) {
    animation-delay: 4780ms;
}

.htitle-line .htitle-word:nth-child(3) span:nth-child(7) {
    animation-delay: 4850ms;
}

.htitle-year {
    display: block;
    margin-top: clamp(8px, 1.2vw, 16px);
    color: var(--yellow);
    font-size: 1.6em;
    opacity: 0;
    transform: scale(1.3);
    text-shadow: 0 0 34px rgba(255, 210, 30, 0.95);
}

.htitle-year.year-show {
    animation: x-hit 520ms cubic-bezier(0.18, 1.25, 0.32, 1) forwards;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: transparent;
    pointer-events: none;
}

.loader::before,
.loader::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    width: 50.2%;
    content: "";
    background: #000;
    animation: panel-split 420ms cubic-bezier(0.82, 0, 0.18, 1) 3.12s forwards;
}

.loader::before {
    left: 0;
    transform-origin: left center;
}

.loader::after {
    right: 0;
    transform-origin: right center;
}

.loader-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;
    animation: mark-exit 360ms ease 3.08s forwards;
}

.logo-mark-container {
    position: relative;
    width: clamp(600px, 85vw, 1600px);
    aspect-ratio: 16 / 10;
    z-index: 1;
    opacity: 0;
    animation: logo-fade-in 1200ms ease 400ms forwards;
}

@keyframes logo-fade-in {
    to {
        opacity: 1;
    }
}

.symbol-top {
    position: absolute;
    top: -10%;
    left: 25%;
    width: 45%;
    z-index: 2;
    transform: none;
    margin-left: 100px;
    margin-top: 130px;
    mix-blend-mode: screen;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letter-rise 600ms ease forwards;
}


.symbol-bottom {
    position: absolute;
    bottom: -10%;
    right: 20%;
    width: 45%;
    z-index: 1;
    transform: none;
    margin-right: 200px;
    margin-bottom: 210px;
    mix-blend-mode: screen;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letter-rise 600ms ease forwards;
}


.brand-word {
    position: absolute;
    top: 38%;
    left: 8%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.15em;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3rem, 7.5vw, 6.8rem);
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--white);
    text-transform: uppercase;
}

.brand-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letter-rise 600ms ease forwards;
}

.brand-word .gold-x {
    color: var(--gold);
}

.brand-word .gold-x {
    color: var(--gold);
    display: inline-block;
    animation: letter-rise 600ms ease 1320ms forwards, gold-x-pulse 1000ms ease 2400ms;
}

@keyframes gold-x-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(2);
        text-shadow: 0 0 40px var(--gold), 0 0 80px var(--gold);
    }

    100% {
        transform: scale(1);
        text-shadow: none;
    }
}


@keyframes letter-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    position: absolute;
    bottom: 8%;
    right: 6%;
    z-index: 3;
    margin: 0;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 400;
    opacity: 0;
    animation: subtitle-in 100ms ease 2.8s forwards;
    margin: 80px;
}

@keyframes subtitle-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Outro Screen Overlay */
.outro-screen {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18vh;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: #030303;
    border-top: 1px solid var(--gold);
    transform: translateY(100%);
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.outro-screen.show {
    transform: translateY(0);
}

.outro-label {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--white);
    opacity: 0.5;
    text-transform: uppercase;
}

.outro-brand {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.18em;
    margin: 0;
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.outro-brand .yellow {
    color: var(--yellow);
}

.outro-brand .white {
    color: var(--white);
    white-space: nowrap;
}

.outro-brand .group-word {
    display: inline-block;
    margin-left: 0.08em;
    font-size: 0.82em;
    text-transform: none;
}

.outro-underline {
    display: none;
}

.outro-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    color: var(--white);
    opacity: 0;
    transform: translateY(12px);
    margin: 0;
    letter-spacing: 0.05em;
}

/* Outro Animations */
.outro-screen.show .outro-label {
    animation: none;
}

.outro-screen.show .outro-brand {
    animation: none;
}

.outro-screen.show .outro-subtitle {
    animation: none;
}

.outro-screen.show .outro-underline {
    animation: none;
}

@keyframes outro-fade-in {
    to {
        opacity: 0.5;
    }
}

@keyframes outro-brand-bounce {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes outro-fade-up {
    to {
        opacity: 0.45;
        transform: translateY(0);
    }
}

@keyframes outro-line-grow {
    to {
        width: min(280px, 80vw);
    }
}

/* Existing Animations */
@keyframes letter-drop {
    0% {
        opacity: 0;
        transform: translateY(-64px) scaleY(1.08);
    }

    70% {
        opacity: 1;
        transform: translateY(8px) scaleY(0.94);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes x-expand {
    0% {
        color: var(--white);
        font-size: 1em;
        letter-spacing: 0;
        text-shadow: none;
    }

    40% {
        color: var(--yellow);
        font-size: 2.2em;
        letter-spacing: 0.06em;
        text-shadow: 0 0 28px rgba(255, 210, 30, 0.95), 0 0 64px rgba(255, 210, 30, 0.5);
    }

    100% {
        color: var(--white);
        font-size: 1em;
        letter-spacing: 0;
        text-shadow: none;
    }
}

@keyframes x-hit {
    0% {
        opacity: 0;
        transform: scale(1.3);
    }

    60% {
        opacity: 1;
        transform: scale(0.94);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-title-exit {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes subtitle-in {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes mark-exit {
    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

@keyframes panel-split {
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 620px) {   /* Mobile Adjustments */
    .brand-word {
        gap: 1px;
    }

    .loader-mark {
        width: 96vw;
    }

    .subtitle {
        white-space: nowrap;
    }

    .outro-brand {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 621px) {

    .logo-mark-container {
        width: 140vw;
        aspect-ratio: 16 / 10;
        zoom: 0.65;
        margin-left: -20vw;
    }
}

/* Mobile */
@media (max-width: 620px) {
    .logo-mark-container {
        width: 100vw;
        aspect-ratio: 16/10;
        zoom: 1;
        margin-left: 0;
        transform: scale(0.4);
        transform-origin: center top;
    }

    .brand-word {
        left: 50%;
        transform: translateX(-50%);
    }

    .symbol-top {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: 0;
        top: 10%;
    }

    .symbol-bottom {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
        margin-bottom: 0;
        bottom: 10%;
    }

    .subtitle {
        white-space: nowrap;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        margin: 0;
    }
}
