/* Scoped to the existing homepage hero frame. */
.landing-hero .hero-visual { min-width: 0; }
.hero-story-carousel {
    aspect-ratio: 4 / 3;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    isolation: isolate;
    background: #0c1020;
}
.hero-story-slide {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 650ms cubic-bezier(.22, .61, .36, 1);
}
.hero-story-slide.is-active {
    transform: translateX(0);
    visibility: visible;
    z-index: 2;
}
.hero-story-slide.is-exiting {
    transform: translateX(100%);
    visibility: visible;
    z-index: 1;
}
.hero-story-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #0c1020;
}
.hero-story-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    padding: 38px 16px 12px;
    background: linear-gradient(transparent, rgba(9, 17, 35, .82) 45%, rgba(9, 17, 35, .96));
    color: #fff;
}
.hero-story-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    text-align: left;
}
.hero-story-title { font-size: .95rem; font-weight: 600; }
.hero-story-count { font-size: .75rem; color: #e8cd87; font-variant-numeric: tabular-nums; }
.hero-story-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hero-story-navigation, .hero-story-positions { display: flex; align-items: center; gap: 2px; }
.hero-story-carousel button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    cursor: pointer;
}
.hero-story-carousel button:hover { background: rgba(56, 189, 248, .16); }
.hero-story-carousel button:focus-visible { outline: 2px solid #e8cd87; outline-offset: -2px; }
.hero-story-carousel svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-story-positions button { min-width: 30px; }
.hero-story-positions button::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}
.hero-story-positions button[aria-current="true"]::after { background: #e8cd87; width: 18px; border-radius: 3px; }
.hero-story-timer { min-width: 32px; text-align: right; font-size: .75rem; color: #e8cd87; font-variant-numeric: tabular-nums; }
.hero-story-progress { height: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 2px; }
.hero-story-progress-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #e8cd87); transform: scaleX(0); transform-origin: left; }
.hero-story-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-story-carousel [hidden] { display: none; }
@media (max-width: 1024px) {
    .landing-hero .hero-visual { width: 100%; }
}
@media (max-width: 380px) {
    .hero-story-overlay { padding-right: 10px; padding-left: 10px; }
    .hero-story-controls { gap: 0; }
    .hero-story-navigation { gap: 0; }
    .hero-story-positions { gap: 0; }
    .hero-story-positions button { min-width: 22px; }
    .hero-story-title { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-story-carousel { animation: none; }
    .hero-story-slide { transition: none; transition-duration: 0s !important; }
}
