html {
    scroll-behavior: auto;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body.cinematic-active .header,
body.cinematic-active .sticky-bottom {
    opacity: 0 !important;
    pointer-events: none !important;
}

.cinematic-stage {
    position: relative;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: #0a0d0f;
    isolation: isolate;
}

.cinematic-viewport {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: #0a0d0f;
    z-index: 500;
}

#cinematic-film {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #0a0d0f;
    filter: saturate(.88) contrast(1.03) brightness(.96);
}

.cinematic-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 8, 10, .44), transparent 29%, transparent 63%, rgba(5, 8, 10, .62)),
        radial-gradient(circle at 50% 46%, transparent 34%, rgba(0, 0, 0, .26) 100%);
}

.cinematic-grain {
    position: absolute;
    inset: -25%;
    z-index: 9;
    pointer-events: none;
    opacity: .055;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
    animation: cinematicGrain .32s steps(2) infinite;
}

@keyframes cinematicGrain {
    0% { transform: translate3d(-2%, 1%, 0); }
    33% { transform: translate3d(2%, -1%, 0); }
    66% { transform: translate3d(-1%, -2%, 0); }
    100% { transform: translate3d(1%, 2%, 0); }
}

.cinematic-loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    color: #fff;
    background: #0b1120;
    transition: opacity .55s ease, visibility .55s ease;
}

.cinematic-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.cinematic-loader__inner {
    width: min(72vw, 280px);
    text-align: center;
}

.cinematic-loader__mark {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    color: #fff;
    filter: drop-shadow(0 0 24px rgba(0, 182, 122, .3));
}

.cinematic-loader__label,
.cinematic-meta,
.cinematic-kicker {
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.cinematic-loader__track {
    height: 1px;
    margin-top: 13px;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
}

.cinematic-loader__bar {
    display: block;
    width: 0;
    height: 100%;
    background: #00b67a;
    transition: width .12s linear;
}

.cinematic-panel {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 7;
    color: #0b1120;
    background:
        linear-gradient(rgba(11, 17, 32, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 17, 32, .035) 1px, transparent 1px),
        #f6f7f3;
    background-size: 42px 42px;
}

.cinematic-panel--top {
    top: 0;
    height: 15svh;
    min-height: 104px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(11, 17, 32, .1);
}

.cinematic-panel--bottom {
    bottom: 0;
    height: 31svh;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(11, 17, 32, .1);
}

.cinematic-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cinematic-brand svg {
    width: 27px;
    height: 27px;
}

.cinematic-brand strong {
    font-size: 13px;
    letter-spacing: .07em;
}

.cinematic-kicker {
    margin-bottom: 12px;
    color: #78818d;
}

.cinematic-panel h2 {
    margin: 0 0 20px;
    font-size: clamp(34px, 9.6vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.cinematic-panel h2 span {
    color: #00a36c;
}

.cinematic-panel__foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.cinematic-panel__foot p {
    max-width: 240px;
    color: #697380;
    font-size: 11px;
    line-height: 1.5;
}

.cinematic-chrome {
    position: absolute;
    top: max(17px, env(safe-area-inset-top));
    left: 18px;
    right: 18px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, .72);
    opacity: 0;
    pointer-events: none;
}

.cinematic-chrome span:last-child {
    color: #79e3ba;
}

.cinematic-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 8;
    max-width: 430px;
    padding: 20px 22px 22px;
    color: #0b1120;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 20px;
    box-shadow: 0 26px 74px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(34px);
    pointer-events: none;
}

.cinematic-caption__num {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 12px;
    color: #00a36c;
    background: rgba(0, 182, 122, .1);
    border: 1px solid rgba(0, 182, 122, .22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cinematic-caption__dot {
    width: 6px;
    height: 6px;
    background: #00b67a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 182, 122, .18);
}

.cinematic-caption h3 {
    margin-bottom: 8px;
    font-size: clamp(23px, 6.4vw, 32px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.cinematic-caption p {
    max-width: 330px;
    color: #596473;
    font-size: 13px;
    line-height: 1.55;
}

.cinematic-enter {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 10px 10px 22px;
    color: #fff;
    background: rgba(10, 15, 18, .68);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.92);
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
}

.cinematic-enter::before {
    content: '';
    position: absolute;
    top: -80%;
    left: -70%;
    z-index: -1;
    width: 48%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: rotate(18deg);
    animation: cinematicShimmer 3.2s ease-in-out infinite;
}

@keyframes cinematicShimmer {
    0%, 55% { left: -70%; }
    100% { left: 130%; }
}

.cinematic-enter span {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.cinematic-enter i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: #00b67a;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 182, 122, .34);
    font-size: 18px;
    font-style: normal;
    transition: transform .25s ease;
}

.cinematic-enter:active i {
    transform: rotate(45deg) scale(.92);
}

.cinematic-enter:focus-visible {
    outline: 3px solid rgba(124, 228, 188, .8);
    outline-offset: 5px;
}

.cinematic-enter:disabled {
    cursor: default;
}

.cinematic-exit {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 52%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72) 36%, #fff 78%);
}

.cinematic-stage + .mobile-wrapper {
    position: relative;
    z-index: 20;
    background: #fff;
    box-shadow: 0 -28px 80px rgba(4, 8, 12, .22);
}

@media (min-width: 721px) {
    .cinematic-panel--top,
    .cinematic-panel--bottom {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .cinematic-caption {
        left: 6vw;
        right: auto;
        bottom: 7vh;
        padding: 30px 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-grain,
    .cinematic-enter::before {
        animation: none;
    }
}
