/* ========================================
Home
======================================== */

/* Hero — full-bleed slide, title above, named rules below */
.home-hero {
    --home-hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--color-primary);
}

/* Keeps the transparent header's white ink readable on bright slides */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: calc(var(--header-height) * 2);
    background: linear-gradient(to bottom, rgb(0 0 0 / 0.45) 0%, transparent 100%);
    pointer-events: none;
}

.home-hero__swiper {
    width: 100%;
    height: 100svh;
    min-height: 36rem;
}

.home-hero__slide {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

.home-hero__media {
    position: absolute;
    inset: 0;
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.28) 38%, rgb(0 0 0 / 0.12) 68%, transparent 100%),
        linear-gradient(90deg, rgb(0 0 0 / 0.35) 0%, transparent 46%);
    pointer-events: none;
}

.home-hero__image,
.home-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placement only. Size and look come from .play-button. */
.home-hero__play {
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: auto;
}

.home-hero__slide:not(.swiper-slide-active) .home-hero__play {
    pointer-events: none;
}

/* Title sits in the lower half, clear of the navigation */
.home-hero__copy {
    position: absolute;
    inset: auto 0 8.5rem;
    z-index: 2;
    padding-inline: var(--layout-gutter-x);
}

.home-hero__title {
    width: var(--layout-col-8);
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(2.25rem, 4.2vw, 4rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-hero__line {
    display: block;
}

/* Hidden until the slider is ready, so the entrance is the first time the title is seen */
.home-hero:not(.is-ready) .home-hero__line {
    opacity: 0;
}

.home-hero__line--accent {
    color: var(--color-brand-red);
}

/* Plays once the slide is in; the outgoing slide keeps its settled title while it fades */
.home-hero__slide.is-entering .home-hero__line {
    animation: home-hero-title-in 0.85s var(--home-hero-ease) 0.9s both;
}

.home-hero__slide.is-entering .home-hero__line:nth-child(2) {
    animation-delay: 1s;
}

.home-hero__slide.is-entering .home-hero__line:nth-child(3) {
    animation-delay: 1.1s;
}

@keyframes home-hero-title-in {
    from {
        opacity: 0;
        transform: translateY(1.75rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom navigation: a rule, then the slide name */
.home-hero__nav {
    position: absolute;
    inset: auto auto 2.5rem var(--layout-gutter-x);
    z-index: 3;
    display: flex;
    gap: 1.75rem;
    width: var(--layout-col-9);
}

.home-hero__nav-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0;
    font: inherit;
    color: #fff;
    text-align: start;
    background: none;
    border: 0;
    cursor: pointer;
}

.home-hero__nav-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.home-hero__nav-line {
    position: relative;
    display: block;
    width: 100%;
    height: 2px;
    overflow: hidden;
    background-color: rgb(255 255 255 / 0.35);
    transition: width 0.55s var(--home-hero-ease);
}

.home-hero__nav-fill {
    position: absolute;
    inset: 0;
    background-color: var(--color-brand-red);
    transform: scaleX(var(--home-hero-progress, 0));
    transform-origin: left center;
    /* Live autoplay updates the scale every frame, so only the handoff animates. */
    transition: none;
}

.home-hero__nav-item:not(.is-active) .home-hero__nav-fill {
    transition: transform 0.55s var(--home-hero-ease);
}

.home-hero__nav-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.3;
    color: rgb(255 255 255 / 0.72);
    transition: color 0.55s var(--home-hero-ease);
}

.home-hero__nav-item.is-active .home-hero__nav-label,
.home-hero__nav-item:hover .home-hero__nav-label {
    color: #fff;
}

@media (min-width: 1024px) {
    .home-hero__copy {
        inset-block-end: 11rem;
        padding-inline-start: max(var(--layout-gutter-x), var(--layout-col-1));
    }

    .home-hero__title {
        width: var(--layout-col-7);
    }

    .home-hero__nav {
        inset-inline-start: max(var(--layout-gutter-x), var(--layout-col-1));
        width: var(--layout-col-10);
    }
}

@media (max-width: 767.98px) {
    .home-hero__swiper {
        height: 50svh;
        min-height: 0;
    }

    .home-hero__copy {
        inset-block-end: 5.75rem;
    }

    .home-hero__title {
        width: 100%;
        font-size: clamp(1.75rem, 7.6vw, 2.25rem);
    }

    .home-hero__nav {
        inset-inline-start: var(--layout-gutter-x);
        inset-inline-end: auto;
        inset-block-end: 1.75rem;
        align-items: center;
        gap: 0.5rem;
        width: auto;
    }

    .home-hero__nav-item {
        position: relative;
        flex: 0 0 auto;
        align-items: center;
        gap: 0;
        padding-block: 0.75rem;
    }

    .home-hero__nav-line,
    .home-hero__nav-fill {
        height: 4px;
        border-radius: 999px;
    }

    .home-hero__nav-line {
        width: 1.25rem;
    }

    .home-hero__nav-item.is-active .home-hero__nav-line {
        width: 2.25rem;
    }

    .home-hero__nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Video dialog — frame matches the player reference; backdrop is the page blur, not a black scrim */
.home-hero-player.dialog {
    --bs-dialog-width: var(--layout-col-10);
    --bs-dialog-bg: transparent;
    --bs-dialog-border-width: 0;
    --bs-dialog-border-color: transparent;
    --bs-dialog-border-radius: 0;
    --bs-dialog-box-shadow: none;
    --bs-dialog-backdrop-bg: rgb(0 0 0 / 0.2);
    --bs-dialog-backdrop-blur: 18px;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.home-hero-player.dialog:not([open]) {
    position: fixed;
    pointer-events: none;
}

.home-hero-player.dialog::backdrop {
    background-color: rgb(0 0 0 / 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.home-hero-player.dialog.hiding::backdrop {
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.home-hero-player__frame {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 9;
}

.home-hero-player__media,
.home-hero-player__media .plyr,
.home-hero-player__media .plyr__video-wrapper {
    width: 100%;
    height: 100%;
}

.home-hero-player__media .plyr {
    border-radius: inherit;
}

/* YouTube draws its title inside the iframe. Shift the frame up so that bar sits outside the crop. */
.home-hero-player__media .plyr--youtube .plyr__video-embed > iframe {
    position: absolute;
    top: -12%;
    left: 0;
    width: 100%;
    height: 112%;
}

.home-hero-player__close {
    position: fixed;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: #fff;
    background-color: transparent;
    border: 1px solid rgb(255 255 255 / 0.85);
    border-radius: 50%;
    cursor: pointer;
}

.home-hero-player__close:focus {
    outline: none;
}

.home-hero-player__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.home-hero-player__close-icon {
    display: block;
    width: 1rem;
    height: 1rem;
}

@media (max-width: 767.98px) {
    .home-hero__play {
        --play-button-size: 4.75rem;
    }

    .home-hero-player.dialog {
        --bs-dialog-width: calc(100% - 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__slide.is-entering .home-hero__line {
        animation: none;
    }

    .home-hero__nav-line,
    .home-hero__nav-fill,
    .home-hero__nav-label {
        transition: none;
    }

    .home-hero-player.dialog,
    .home-hero-player.dialog::backdrop {
        transition: none;
    }
}

/* ========================================
Home About — headline + stats
0–1023: 2×2 stats with rules · ≥1024: 1×4 row, no rules
======================================== */
.home-about {
    background-color: var(--color-background);
    color: var(--color-text);
}

.home-about__inner {
    width: var(--layout-col-10);
    margin-inline: auto;
    padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.home-about__headline {
    width: 100%;
    margin: 0 0 clamp(2.75rem, 7vw, 5.5rem);
    font-family: var(--font-manrope);
    font-size: clamp(1.375rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.home-about__headline strong {
    font-weight: 700;
    color: var(--color-brand-red);
}

.home-about__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 4vw, 2.5rem);
    row-gap: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-about__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    gap: 0.5rem;
    padding-block-end: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.home-about__stat-value {
    font-family: var(--font-manrope);
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.home-about__stat:hover .home-about__stat-value {
    color: var(--color-brand-red);
}

.home-about__stat-label {
    font-family: var(--font-manrope);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
}

@media (min-width: 1024px) {
    .home-about__inner {
        padding-block: clamp(5rem, 8vw, 8rem);
    }

    .home-about__headline {
        width: var(--layout-col-6);
        margin-block-end: clamp(4rem, 6vw, 6.5rem);
        font-size: clamp(2.0625rem, 2.6vw, 2.5rem);
    }

    .home-about__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 2rem;
        row-gap: 0;
    }

    .home-about__stat {
        padding-block-end: 0;
        border-bottom: 0;
    }

    .home-about__stat-value {
        font-size: clamp(3.75rem, 4.2vw, 4.75rem);
    }

    .home-about__stat-label {
        font-size: var(--font-size-lg);
    }
}

/* ========================================
Home Investors — split media + brand-blue copy
======================================== */
.home-investors {
    background-color: var(--color-brand-blue);
    color: #fff;
}

.home-investors__row {
    --bs-gutter-x: 0;
}

.home-investors__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 18rem;
    height: 100%;
    background-color: color-mix(in srgb, var(--color-brand-blue) 70%, #000);
}

.home-investors__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-investors__media .home-investors__image {
    position: absolute;
    inset: 0;
}

.home-investors__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2.5rem, 6vw, 4rem);
    height: 100%;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    background-color: var(--color-brand-blue);
}

.home-investors__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.home-investors__download-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.home-investors__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: min(100%, var(--layout-col-10));
}

.home-investors__title {
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-investors__description p {
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.88);
}

@media (max-width: 991.98px) {
    .home-investors__media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .home-investors__content {
        padding-block: clamp(2.5rem, 8vw, 3.5rem);
        padding-inline: var(--layout-gutter-x);
    }

    .home-investors__copy {
        width: 100%;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .home-investors__row {
        display: grid;
        grid-template-columns: 5fr 8fr;
        min-height: clamp(28rem, 52vw, 40rem);
    }

    .home-investors__row > [class*="col"] {
        width: 100%;
        max-width: none;
    }

    .home-investors__media {
        min-height: 100%;
    }

    .home-investors__copy {
        width: min(100%, var(--layout-col-9));
    }
}
