.brand-intro {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    place-items: center;
    overflow: hidden;
    padding: clamp(24px, 6vw, 72px);
    background: rgba(2, 5, 8, 0.64);
    backdrop-filter: blur(7px) saturate(0.58);
    color: #eef2f4;
    cursor: pointer;
    isolation: isolate;
}

.brand-intro::before {
    content: "";
    position: absolute;
    inset: -28%;
    z-index: -1;
    background: conic-gradient(from 210deg, transparent, rgba(239, 52, 52, 0.09), transparent 34%);
    animation: brand-intro-ambient 2.2s ease-in-out both;
}

.brand-intro-show .brand-intro {
    display: grid;
}

.brand-intro__content {
    width: min(760px, 88vw);
    padding: clamp(48px, 8vw, 86px) clamp(30px, 9vw, 96px);
    background: radial-gradient(
        ellipse at center,
        rgba(27, 34, 39, 0.94) 0%,
        rgba(18, 24, 29, 0.76) 42%,
        rgba(10, 15, 19, 0.3) 62%,
        transparent 76%
    );
    filter: drop-shadow(0 34px 62px rgba(0, 0, 0, 0.46));
    text-align: center;
}

.brand-intro__logo {
    position: relative;
    width: 100%;
    aspect-ratio: 3000 / 993;
    margin-inline: auto;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.36));
}

.brand-intro__logo img,
.brand-intro__color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.brand-intro__logo img {
    display: block;
    object-fit: contain;
}

.brand-intro__mono {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.7;
}

.brand-intro__color {
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: brand-intro-color-fill 1.35s cubic-bezier(0.65, 0, 0.35, 1) 0.18s forwards;
}

.brand-intro__color::after {
    content: "";
    position: absolute;
    top: 5%;
    right: -18px;
    bottom: 5%;
    width: 32px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
    filter: blur(3px);
}

.brand-intro__color img {
    opacity: 0.62;
    filter: saturate(1.22) contrast(1.08);
}

.brand-intro__progress {
    position: relative;
    width: min(320px, 58vw);
    height: 2px;
    margin: clamp(18px, 4vw, 30px) auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.brand-intro__progress::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #d8e0e4, #ef3434);
    transform: scaleX(0);
    transform-origin: left;
    animation: brand-intro-progress 1.35s cubic-bezier(0.65, 0, 0.35, 1) 0.18s forwards;
}

.brand-intro.is-leaving {
    pointer-events: none;
    animation: brand-intro-exit 0.44s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes brand-intro-color-fill {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes brand-intro-progress {
    to { transform: scaleX(1); }
}

@keyframes brand-intro-ambient {
    0% { opacity: 0; transform: rotate(-8deg) scale(0.96); }
    45% { opacity: 1; }
    100% { opacity: 0.42; transform: rotate(0deg) scale(1.02); }
}

@keyframes brand-intro-exit {
    to { opacity: 0; visibility: hidden; transform: scale(1.015); }
}

@media (max-width: 520px) {
    .brand-intro__content {
        width: min(92vw, 520px);
        padding: 54px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-intro {
        display: none !important;
    }

    .brand-intro *,
    .brand-intro::before,
    .brand-intro *::before,
    .brand-intro *::after {
        animation: none !important;
    }
}
