.hero {
        position: relative;
    height: var(--hero-h);
    min-height: 640px;
    width: 100%;
    overflow: hidden;
    background: #0a0c12;
    color: var(--paper-on-night);
}

.hero-slides {
        position: absolute;
    inset: 0;
}

.hero-slide {
        position: absolute;
    inset: 0;
    background: #0a0c12 center/cover no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition:
        opacity 1.4s ease,
        transform 8s ease-out;
}

.hero-slide.is-active {
        opacity: 1;
    transform: scale(1);
}

.hero-slide img {
        position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slides::after {
        content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.42);
}

.hero-inner {
        position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    padding-bottom: clamp(96px, 11vh, 140px);
}

.hero-spacer {
    flex: 1;
}

.hero-title {
        display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 48px;
}

.hero-title .hero-display {
        margin: 0;
    max-width: clamp(420px, 56vw, 880px);
    padding-right: 20px;
}

.hero-sub {
        margin: 22px 0 0;
    max-width: 46ch;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    letter-spacing: 0;
}

.hero-cta {
        display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-meta {
        display: flex;
    gap: 36px;
    font-family: var(--font-mono);
    font-size: var(--fs-label-l);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    opacity: 0.85;
    padding-top: 32px;
    padding-bottom: 8px;
    white-space: nowrap;
}

.hero-meta b {
        display: block;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: none;
    font-family: var(--font-sans);
    margin-top: 4px;
    opacity: 1;
    color: #fff;
}

.hero-pager {
        position: absolute;
    bottom: 44px;
    left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-pager button {
        width: 38px;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    transition:
        background 0.35s ease,
        height 0.25s ease;
    position: relative;
    overflow: hidden;
}

.hero-pager button.is-active {
        background: rgba(255, 255, 255, 0.85);
    height: 3px;
}

.hero-pager button.is-active::after {
        content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
        to {
        transform: translateX(0);
    }
}

.scroll-cue {
        position: absolute;
    bottom: 44px;
    right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    font-family: var(--font-mono);
    font-size: var(--fs-label-m);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scroll-cue::after {
        content: "";
    width: 1px;
    height: 28px;
    background: currentColor;
    display: block;
    animation: cueDrop 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cueDrop {
        0%,
    100% {
        transform: scaleY(0.3);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.meta-strip {
        background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.meta-strip-inner {
        display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.hero-crumbs {
        font-family: var(--font-mono);
    font-size: var(--fs-label-m);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-crumbs a {
        opacity: 0.85;
    transition: opacity 0.2s;
}

.hero-crumbs a:hover {
    opacity: 1;
}

.hero-crumbs .sep {
    opacity: 0.4;
}

.hero-crumbs .cur {
    opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
            transform: none;
        transition: opacity 0.3s ease;
    }

    .hero-slide.is-active {
        transform: none;
    }

    .hero-pager button.is-active::after {
            animation: none;
        transform: none;
    }

    .scroll-cue::after {
        animation: none;
    }
}

@media (max-width: 1240px) {
    .hero-title {
        grid-template-columns: 1fr;
    }

    .hero-meta {
            padding-top: 28px;
        padding-bottom: 0;
    }
}

@media (max-width: 960px) {
    .scroll-cue {
        display: none;
    }

    .meta-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        grid-template-columns: 1fr;
    }

    .hero-meta {
            flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-height: 720px) {
    .hero-inner {
            padding-top: 96px;
        padding-bottom: clamp(76px, 10vh, 110px);
    }

    .hero-cta {
        margin-top: 22px;
    }

    .hero-meta {
        padding-top: 22px;
    }

    .hero-pager {
        bottom: 30px;
    }

    .scroll-cue {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 600px;
    }

    .hero-inner {
            padding-top: 104px;
        padding-bottom: 120px;
    }

    .hero-title .hero-display {
            max-width: 100%;
        padding-right: 0;
    }

    .hero-sub {
            margin-top: 18px;
        max-width: 34ch;
    }

    .hero-cta {
            margin-top: 26px;
        gap: 10px;
    }

    .hero-cta .btn {
            flex: 1 1 auto;
        justify-content: center;
        padding: 13px 16px;
        white-space: nowrap;
    }

    .hero-meta {
            gap: 16px 22px;
        padding-top: 26px;
    }

    .hero-pager {
            bottom: 28px;
        left: var(--gutter);
        right: var(--gutter);
    }

    .hero-pager button {
            flex: 1;
        width: auto;
    }

    .meta-strip-inner {
        grid-template-columns: 1fr;
    }

    .hero-crumbs {
            font-size: var(--fs-label-s);
        gap: 10px;
    }
}

@media (min-width: 961px) {
    .meta-strip-inner {
        display: flex;
    }

    html[data-hero="compact"] .hero-inner {
        padding-bottom: 132px;
    }
}

@media (max-height: 720px) and (min-width: 961px) {
    .hero .scroll-cue {
        display: flex;
    }
}
