/**
 * Hero layouts — cover, centered, slider, plus combinatorial variants.
 */

.hero-cover {
    position: relative;
    min-height: clamp(440px, 58vh, 620px);
    display: flex;
    align-items: flex-start;
    color: #fff;
    overflow: hidden;
}

.hero-cover-bg {
    position: absolute;
    inset: 0;
    background: var(--theme-primary-dark);
}

.hero-cover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-cover-bg img {
    opacity: 0.5;
}

.hero-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, color-mix(in srgb, var(--theme-primary-dark) 92%, transparent) 0%, color-mix(in srgb, var(--theme-primary-dark) 72%, transparent) 42%, color-mix(in srgb, var(--theme-primary) 55%, transparent) 100%),
        linear-gradient(0deg, color-mix(in srgb, var(--theme-primary-dark) 35%, transparent), transparent 45%);
}

.hero-cover-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 35%);
    pointer-events: none;
}

.hero-cover .container {
    position: relative;
    z-index: 2;
    width: min(var(--container-max), calc(100% - 2 * var(--container-gutter)));
    margin-inline: auto;
    padding-top: clamp(1.25rem, 5vw, 2.5rem);
}

.hero-cover .hero-content {
    max-width: 40rem;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero-cover-center {
    align-items: center;
    text-align: center;
}

.hero-cover-center .hero-content {
    max-width: 46rem;
    margin-inline: auto;
}

.hero-cover-center .hero-title,
.hero-cover-center .hero-lead {
    margin-inline: auto;
}

.hero-cover-center .hero-actions {
    justify-content: center;
}

.hero-cover .hero-title {
    color: #fff;
    font-family: var(--font-display, var(--font-sans));
    font-size: clamp(2.35rem, 5.5vw, 4rem);
    max-width: 20ch;
    line-height: 1.08;
    letter-spacing: 0;
    word-spacing: 0.06em;
    text-wrap: balance;
}

.hero-cover .hero-lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 44ch;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.55;
}

.hero-cover .hero-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

@media (max-width: 1023px) {
    .hero-cover {
        min-height: clamp(360px, 52vh, 520px);
    }

    .hero-cover .container {
        padding-top: clamp(1.25rem, 5vw, 2rem);
    }

    .hero-cover .hero-content {
        padding-block: clamp(1rem, 3vw, 1.75rem);
    }
}

.hero-slider {
    position: relative;
    min-height: clamp(460px, 64vh, 700px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--theme-primary-dark);
}

.hero-slider-stage,
.hero-slider-slide,
.hero-slider-veil {
    position: absolute;
    inset: 0;
}

.hero-slider-slide {
    margin: 0;
    overflow: hidden;
}

.hero-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-slider-veil {
    z-index: 2;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-primary-dark) 18%, transparent) 0%, color-mix(in srgb, var(--theme-primary-dark) 88%, #000) 100%);
    pointer-events: none;
}

.hero-slider-copy {
    position: relative;
    z-index: 3;
    padding-block: clamp(2rem, 6vw, 3.75rem);
}

.hero-slider .hero-content {
    max-width: 38rem;
}

.hero-slider .hero-title {
    color: #fff;
    font-family: var(--font-display, var(--font-sans));
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    max-width: 16ch;
    line-height: 1.04;
}

.hero-slider .hero-lead {
    color: var(--theme-on-ink-muted, rgba(255, 255, 255, 0.88));
}

.hero-slider .hero-badge {
    background: transparent;
    color: #fff;
    border-color: color-mix(in srgb, #fff 35%, transparent);
}

.hero-slider-pager {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-slider-tick {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 3.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, #fff 55%, transparent);
    cursor: pointer;
}

.hero-slider-tick em {
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.hero-slider-tick i {
    display: block;
    height: 2px;
    background: color-mix(in srgb, #fff 28%, transparent);
}

.hero-slider-tick.is-active {
    color: #fff;
}

.hero-slider-tick.is-active i {
    background: #fff;
}

.hero-slider.is-wipe .hero-slider-slide {
    z-index: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slider.is-wipe .hero-slider-slide.is-active {
    z-index: 1;
    clip-path: inset(0 0 0 0);
}

.hero-slider.is-wipe .hero-slider-slide.is-active img {
    animation: hero-slider-drift 6.5s linear both;
}

.hero-slider.is-rise .hero-slider-slide {
    opacity: 0;
    transform: translate3d(0, 14%, 0) scale(1.08);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider.is-rise .hero-slider-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: none;
}

.hero-slider.is-reveal .hero-slider-slide {
    clip-path: inset(18% 22% 18% 22%);
    filter: blur(10px);
    opacity: 0.35;
    transition: clip-path 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
}

.hero-slider.is-reveal .hero-slider-slide.is-active {
    z-index: 1;
    clip-path: inset(0);
    filter: none;
    opacity: 1;
}

@keyframes hero-slider-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(0, -2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-slide,
    .hero-slider-slide img {
        animation: none !important;
        transition: none !important;
        clip-path: none !important;
        filter: none !important;
        transform: none !important;
        opacity: 0;
    }

    .hero-slider-slide.is-active {
        opacity: 1;
    }
}

.hero-photo.hero-split,
.hero-photo.hero-panel,
.hero-photo.hero-framed,
.hero-photo.hero-compact,
.hero-photo.hero-cards,
.hero-photo.hero-wave,
.hero-photo.hero-minimal {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--theme-primary-dark);
}

.hero-photo.hero-split,
.hero-photo.hero-panel,
.hero-photo.hero-framed,
.hero-photo.hero-cards,
.hero-photo.hero-wave,
.hero-photo.hero-minimal {
    min-height: clamp(440px, 58vh, 620px);
}

.hero-photo.hero-compact {
    min-height: clamp(280px, 38vh, 400px);
}

.hero-split-scrim,
.hero-panel-scrim,
.hero-framed-scrim,
.hero-cards-scrim,
.hero-wave-scrim,
.hero-minimal-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-split-scrim {
    background: linear-gradient(
        98deg,
        color-mix(in srgb, var(--theme-primary-dark) 90%, transparent) 0%,
        color-mix(in srgb, var(--theme-primary-dark) 62%, transparent) 46%,
        color-mix(in srgb, var(--theme-primary) 18%, transparent) 100%
    );
}

.hero-panel-scrim,
.hero-framed-scrim,
.hero-cards-scrim,
.hero-wave-scrim,
.hero-minimal-scrim {
    background:
        linear-gradient(118deg, color-mix(in srgb, var(--theme-primary-dark) 88%, transparent) 0%, color-mix(in srgb, var(--theme-primary-dark) 58%, transparent) 48%, color-mix(in srgb, var(--theme-primary) 32%, transparent) 100%),
        linear-gradient(0deg, color-mix(in srgb, var(--theme-primary-dark) 28%, transparent), transparent 42%);
}

.hero-photo :is(.hero-split-scrim, .hero-panel-scrim, .hero-framed-scrim, .hero-cards-scrim, .hero-wave-scrim, .hero-minimal-scrim) + .container,
.hero-photo.hero-compact .container,
.hero-photo.hero-cards .hero-cards-layout {
    position: relative;
    z-index: 2;
    width: min(var(--container-max), calc(100% - 2 * var(--container-gutter)));
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero-photo:is(.hero-split, .hero-panel, .hero-framed, .hero-compact, .hero-cards, .hero-wave, .hero-minimal) .hero-content {
    max-width: 40rem;
}

.hero-photo.hero-split .hero-title,
.hero-photo.hero-panel .hero-title,
.hero-photo.hero-framed .hero-title,
.hero-photo.hero-compact .hero-title,
.hero-photo.hero-cards .hero-title,
.hero-photo.hero-wave .hero-title,
.hero-photo.hero-minimal .hero-title {
    color: #fff;
    font-family: var(--font-display, var(--font-sans));
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    max-width: 18ch;
    line-height: 1.08;
}

.hero-photo.hero-split .hero-lead,
.hero-photo.hero-panel .hero-lead,
.hero-photo.hero-framed .hero-lead,
.hero-photo.hero-compact .hero-lead,
.hero-photo.hero-cards .hero-lead,
.hero-photo.hero-wave .hero-lead,
.hero-photo.hero-minimal .hero-lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 42ch;
}

.hero-photo.hero-split .hero-badge,
.hero-photo.hero-panel .hero-badge,
.hero-photo.hero-framed .hero-badge,
.hero-photo.hero-compact .hero-badge,
.hero-photo.hero-cards .hero-badge,
.hero-photo.hero-wave .hero-badge,
.hero-photo.hero-minimal .hero-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

.hero-overlay {
    position: relative;
    min-height: clamp(460px, 62vh, 680px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero-overlay-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 18%, color-mix(in srgb, var(--theme-primary-dark) 88%, #000) 100%);
}

.hero-overlay .container {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-overlay .hero-title {
    color: #fff;
    font-family: var(--font-display, var(--font-sans));
    font-size: clamp(2.35rem, 5.5vw, 4rem);
    max-width: 20ch;
    line-height: 1.08;
}

.hero-overlay .hero-lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-framed-copy {
    max-width: 36rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: color-mix(in srgb, var(--theme-primary-dark) 48%, transparent);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
}

.hero-panel-board {
    position: relative;
    max-width: 38rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: color-mix(in srgb, var(--theme-primary-dark) 62%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
}

.hero-panel-copy {
    position: relative;
    z-index: 1;
}

.hero-panel-dock {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-panel-dock li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.hero-panel-dock span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-cards-layout {
    display: grid;
    gap: 1.75rem;
}

.hero-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hero-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hero-cards-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: center;
    }
}

.hero-stat-card {
    background: color-mix(in srgb, var(--theme-primary-dark) 55%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-stat-card strong {
    display: block;
    font-size: var(--text-xl);
}

.hero-stat-card span {
    color: rgba(255, 255, 255, 0.75);
}

.hero-wave {
    padding-bottom: 4.5rem;
}

.hero-wave-edge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 4.5rem;
    fill: var(--theme-surface, var(--surface-1));
    z-index: 3;
}

.hero-minimal-rule {
    width: 6rem;
    height: 3px;
    margin-top: 1.5rem;
    background: color-mix(in srgb, #fff 82%, var(--theme-accent));
}

@media (max-width: 1023px) {
    .hero-photo.hero-split,
    .hero-photo.hero-panel,
    .hero-photo.hero-framed,
    .hero-photo.hero-cards,
    .hero-photo.hero-wave,
    .hero-photo.hero-minimal {
        min-height: clamp(360px, 52vh, 520px);
    }

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