.opening-motion[hidden] {
    display: none !important;
}

.opening-motion {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(215, 168, 110, .24), transparent 34%),
        radial-gradient(circle at 82% 72%, rgba(181, 107, 69, .34), transparent 40%),
        repeating-linear-gradient(8deg, rgba(255,255,255,.025) 0 1px, transparent 1px 12px),
        linear-gradient(135deg, #071d17 0%, #0b2d24 52%, #102f26 100%);
    isolation: isolate;
    transition: opacity .38s ease, visibility .38s ease;
}

.opening-motion__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.opening-motion.is-leaving {
    opacity: 0;
    visibility: hidden;
}

body.motion-intro-active {
    overflow: hidden;
}

.opening-motion__wash {
    position: absolute;
    inset: -45%;
    z-index: -1;
    background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .05) 46%, rgba(255, 222, 177, .38) 50%, rgba(255, 255, 255, .05) 54%, transparent 62%);
    transform: translateX(-55%) rotate(-7deg);
    animation: opening-light-sweep 1.7s cubic-bezier(.2, .75, .25, 1) .25s both;
}

.opening-motion__content {
    position: relative;
    width: min(90vw, 760px);
    padding: 2rem 1rem;
    text-align: center;
}

.opening-motion__logo {
    width: clamp(92px, 14vw, 136px);
    aspect-ratio: 1;
    margin: 0 auto 1.35rem;
    border: 4px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: transparent url('/brand-logo-clean-v4.png') center / contain no-repeat;
    border-radius: 22px;
    aspect-ratio: 4 / 3;
    width: clamp(132px, 18vw, 190px);
    box-shadow: none;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .34));
    opacity: 0;
    transform: scale(.62) rotate(-7deg);
    animation: opening-logo-in .76s cubic-bezier(.2, .9, .25, 1.2) 1.15s forwards, opening-logo-glow 1.6s ease 1.8s infinite alternate;
}

.opening-motion__logo::before,
.opening-motion__logo::after { content: none !important; }

.opening-motion__eyebrow,
.opening-motion__title {
    margin: 0;
    opacity: 0;
    transform: translateY(22px);
}

.opening-motion__eyebrow {
    color: #f2d6b5;
    font-size: clamp(.9rem, 2.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .08em;
    animation: opening-copy-in .62s ease 1.42s forwards;
}

.opening-motion__title {
    margin-top: .4rem;
    font-size: clamp(1.8rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
    text-shadow: 0 10px 35px rgba(0, 0, 0, .32);
    animation: opening-copy-in .72s cubic-bezier(.2, .75, .25, 1) 1.62s forwards;
}

.opening-motion__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.opening-motion__particles span {
    position: absolute;
    width: var(--particle-size, 5px);
    height: var(--particle-size, 5px);
    border-radius: 50%;
    background: #f6c889;
    opacity: 0;
    box-shadow: 0 0 16px rgba(246, 200, 137, .86);
    animation: opening-particle 1.65s ease-out var(--particle-delay, .2s) both;
}

.opening-motion__particles span:nth-child(1) { left: 10%; top: 76%; --particle-size: 4px; --particle-delay: .22s; }
.opening-motion__particles span:nth-child(2) { left: 18%; top: 28%; --particle-size: 7px; --particle-delay: .5s; }
.opening-motion__particles span:nth-child(3) { left: 29%; top: 84%; --particle-size: 3px; --particle-delay: .74s; }
.opening-motion__particles span:nth-child(4) { left: 37%; top: 16%; --particle-size: 5px; --particle-delay: .34s; }
.opening-motion__particles span:nth-child(5) { left: 47%; top: 75%; --particle-size: 6px; --particle-delay: .66s; }
.opening-motion__particles span:nth-child(6) { left: 58%; top: 22%; --particle-size: 3px; --particle-delay: .84s; }
.opening-motion__particles span:nth-child(7) { left: 66%; top: 82%; --particle-size: 5px; --particle-delay: .3s; }
.opening-motion__particles span:nth-child(8) { left: 74%; top: 31%; --particle-size: 7px; --particle-delay: .64s; }
.opening-motion__particles span:nth-child(9) { left: 84%; top: 71%; --particle-size: 4px; --particle-delay: .46s; }
.opening-motion__particles span:nth-child(10) { left: 91%; top: 19%; --particle-size: 3px; --particle-delay: .78s; }
.opening-motion__particles span:nth-child(11) { left: 7%; top: 42%; --particle-size: 3px; --particle-delay: .92s; }
.opening-motion__particles span:nth-child(12) { left: 79%; top: 91%; --particle-size: 4px; --particle-delay: .56s; }

.opening-motion__sound {
    position: absolute;
    inset-inline-end: clamp(1rem, 3vw, 2rem);
    inset-block-start: clamp(1rem, 3vw, 2rem);
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.opening-motion__sound:hover {
    border-color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .13);
    transform: translateY(-1px);
}

.opening-motion__sound:focus-visible {
    outline: 3px solid #f6c889;
    outline-offset: 4px;
}

@keyframes opening-logo-in {
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes opening-logo-glow {
    to { box-shadow: 0 0 0 12px rgba(215, 168, 110, 0), 0 24px 70px rgba(0, 0, 0, .34); }
}

@keyframes opening-copy-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes opening-line-in {
    to { opacity: .9; transform: scaleX(1); }
}

@keyframes opening-light-sweep {
    to { transform: translateX(55%) rotate(-7deg); }
}

@keyframes opening-particle {
    0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.4); }
    25% { opacity: .85; }
    100% { opacity: 0; transform: translate3d(0, -72px, 0) scale(1.15); }
}

@media (max-width: 520px) {
    .opening-motion__content { padding-inline: 1.25rem; }
    .opening-motion__skip { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .opening-motion,
    .opening-motion * {
        animation: none !important;
        transition: none !important;
    }
}
