.studio-showcase {
    --studio-showcase-top: 0px;
    --studio-showcase-stage: clamp(360px, calc(100svh - var(--studio-showcase-top)), 900px);
    --studio-showcase-progress: 0;
    position: relative;
    min-height: calc(var(--studio-showcase-stage) + min(1130px, 122svh));
    background: #0b1016;
    scroll-margin-top: var(--studio-showcase-top);
}

.studio-showcase__stage {
    position: sticky;
    top: var(--studio-showcase-top);
    height: var(--studio-showcase-stage);
    width: 100%;
    isolation: isolate;
    overflow: hidden;
    color: #f4faff;
    background: #0b1016;
}

.studio-showcase__media,
.studio-showcase__still,
.studio-showcase__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.studio-showcase__media {
    overflow: hidden;
    pointer-events: none;
}

.studio-showcase__still,
.studio-showcase__video {
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0;
}

.studio-showcase__stage.has-frame .studio-showcase__video {
    opacity: 1;
}

.studio-showcase__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgb(6 9 14 / .78) 0%, rgb(6 9 14 / .49) 32%, transparent 74%),
        linear-gradient(0deg, rgb(5 8 12 / .9) 0%, transparent 58%);
}

.studio-showcase__captions {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 6.3vw, 110px);
    right: 24px;
    bottom: clamp(36px, 9svh, 88px);
    display: grid;
    pointer-events: none;
}

.studio-showcase__copy {
    grid-area: 1 / 1;
    align-self: end;
    max-width: 650px;
    opacity: 0;
    visibility: hidden;
    translate: 0 11px;
    transition: opacity 210ms ease-out, translate 240ms ease-out, visibility 210ms;
}

.studio-showcase__copy.is-current {
    visibility: visible;
    opacity: 1;
    translate: none;
}

.studio-showcase__copy h2 {
    margin: 0 0 .15em;
    color: #f7fcff;
    font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
    font-size: clamp(2.5rem, 7.3vw, 7rem);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -.012em;
    text-transform: uppercase;
    text-wrap: balance;
}

.studio-showcase__copy p {
    margin: .8rem 0 0;
    max-width: 44ch;
    color: #f2f8fc;
    font-size: clamp(.98rem, 1.4vw, 1.24rem);
    line-height: 1.45;
    text-wrap: pretty;
}

.studio-showcase__skip {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: clamp(15px, 3.8vw, 60px);
    color: #fff;
    background: rgb(9 15 22 / .9);
    border: 1px solid rgb(206 235 245 / .55);
    border-radius: 40px;
    padding: .35rem .85rem;
    font: 650 .79rem/1.5 system-ui, sans-serif;
    text-decoration: none;
}

.studio-showcase__skip:hover,
.studio-showcase__skip:focus-visible {
    color: #a8faff;
    border-color: #a8faff;
}

.studio-showcase__skip:focus-visible {
    outline: 2px solid #a8faff;
    outline-offset: 3px;
}

.studio-showcase__meter {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgb(220 245 253 / .19);
}

.studio-showcase__meter::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(var(--studio-showcase-progress));
    transform-origin: left;
    background: #8af3ee;
}

.studio-showcase__end {
    position: relative;
    height: 1px;
}

.studio-showcase__transcript {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 680px) {
    .studio-showcase {
        --studio-showcase-stage: clamp(290px, calc(100svh - var(--studio-showcase-top)), 790px);
        min-height: calc(var(--studio-showcase-stage) + 106svh);
    }

    .studio-showcase__stage::after {
        background: linear-gradient(0deg, rgb(5 8 12 / .96), rgb(5 8 12 / .60) 30%, transparent 73%);
    }

    .studio-showcase__captions {
        left: 20px;
        right: 20px;
        bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-showcase, .studio-showcase__end { display: none; }
}
