/*
 * Home hero: Stage Manifesto.
 * A full-bleed authority image, one decisive proposition, and a compact proof rail.
 */

.home-manifesto.hero-section {
    position: relative;
    min-height: min(900px, 100svh);
    display: block;
    overflow: hidden;
    isolation: isolate;
    background: #160b0c;
    color: #fff8e8;
}

.home-manifesto__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #160b0c;
}

.home-manifesto__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity 760ms cubic-bezier(.22, 1, .36, 1), visibility 760ms, transform 6.4s cubic-bezier(.22, 1, .36, 1);
}

.home-manifesto__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.home-manifesto__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focus, 50% 48%);
    filter: saturate(.62) contrast(1.16);
    transform: scale(1.035);
}

.hero-carousel__footer {
    position: absolute;
    z-index: 6;
    right: max(28px, calc((100vw - var(--mw)) / 2 + 48px));
    top: 112px;
    bottom: auto;
    width: min(248px, calc(100% - 48px));
    padding: 9px 10px 8px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    color: #fff8e8;
    border: 1px solid rgba(255, 248, 232, .24);
    background: rgba(22, 11, 12, .72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
}

.hero-carousel__meta { min-width: 0; }
.hero-carousel__count {
    display: block;
    margin-bottom: 3px;
    color: #f1bd62;
    font-family: var(--ff);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .16em;
}
.hero-carousel__label {
    display: block;
    overflow: hidden;
    color: #fff8e8;
    font-family: var(--ff);
    font-size: .64rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hero-carousel__controls { display: none; align-items: center; gap: 6px; }
.hero-carousel.is-ready .hero-carousel__controls { display: flex; }
.hero-carousel__button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #fff8e8;
    border: 1px solid rgba(255, 248, 232, .24);
    border-radius: 50%;
    background: rgba(255, 248, 232, .06);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.hero-carousel__button:hover { color: #f1bd62; border-color: #f1bd62; background: rgba(241, 189, 98, .1); transform: translateY(-1px); }
.hero-carousel__button:focus-visible { outline: 2px solid #f1bd62; outline-offset: 3px; }
.hero-carousel__button svg { width: 12px; height: 12px; }
.hero-carousel__pause .icon-play { display: none; }
.hero-carousel__pause.is-paused .icon-pause { display: none; }
.hero-carousel__pause.is-paused .icon-play { display: block; }
.hero-carousel__dots { grid-column: 1 / -1; display: flex; gap: 6px; }
.hero-carousel__dot {
    height: 2px;
    flex: 1;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 248, 232, .24);
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}
.hero-carousel__dot.is-active { background: #f1bd62; transform: scaleY(1.7); }
.hero-carousel__dot:focus-visible { outline: 2px solid #fff8e8; outline-offset: 4px; }

.home-manifesto__media::before,
.home-manifesto__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-manifesto__media::before {
    z-index: 1;
    background: linear-gradient(90deg, rgba(18, 7, 8, .98) 0%, rgba(18, 7, 8, .89) 39%, rgba(18, 7, 8, .24) 72%, rgba(18, 7, 8, .5) 100%);
}

.home-manifesto__media::after {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(18, 7, 8, .48) 0%, transparent 24%),
        linear-gradient(0deg, #160b0c 0%, transparent 34%);
}

.home-manifesto__inner {
    width: min(100%, var(--mw));
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(128px, 16vh, 166px) 48px 146px;
    display: flex;
    align-items: center;
}

.home-manifesto__content {
    position: relative;
    z-index: 3;
    width: min(960px, 78vw);
}

.home-manifesto__eyebrow {
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1bd62;
    font-family: var(--ff);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
    animation: home-manifesto-rise .68s .06s cubic-bezier(.22, 1, .36, 1) both;
}

.home-manifesto__eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
}

.home-manifesto__title {
    max-width: 8.5ch;
    margin: 0;
    color: #fff8e8;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
    font-size: clamp(4.4rem, 8.6vw, 9.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .8;
    text-wrap: balance;
    text-transform: uppercase;
    animation: home-manifesto-rise .78s .12s cubic-bezier(.22, 1, .36, 1) both;
}

.home-manifesto__title-accent {
    display: block;
    color: #f1bd62;
}

.home-manifesto__support {
    max-width: 600px;
    margin-top: clamp(26px, 4vh, 46px);
    display: block;
    animation: home-manifesto-rise .78s .22s cubic-bezier(.22, 1, .36, 1) both;
}

.home-manifesto__summary {
    max-width: 580px;
    margin: 0;
    color: #ede2ce;
    font-family: var(--ff);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.55;
}

.home-manifesto__summary strong {
    color: #fff;
    font-weight: 700;
}

.home-manifesto__thesis {
    margin: 14px 0 0;
    color: #f1bd62;
    font-family: var(--ff);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.5;
}

.home-manifesto__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 20px;
}

.home-manifesto__cta {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #1a0d0e;
    background: #f1bd62;
    border: 1px solid #f1bd62;
    border-radius: 0;
    font-family: var(--ff);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1), background-color 220ms ease, color 220ms ease;
}

.home-manifesto__cta:hover {
    color: #160b0c;
    background: #ffd27f;
    transform: translateY(-3px);
}

.home-manifesto__cta:focus-visible {
    outline-color: #fff8e8;
    border-radius: 0;
}

.home-manifesto__cta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.home-manifesto__text-link {
    color: #fff8e8;
    font-family: var(--ff);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(241, 189, 98, .64);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.home-manifesto__text-link-wrap { margin: 0; }

.home-manifesto__text-link:hover {
    color: #f1bd62;
    text-decoration-color: currentColor;
}

.home-manifesto__proof {
    position: absolute;
    z-index: 5;
    inset: auto 0 0;
    min-height: 94px;
    padding: 0 max(48px, calc((100vw - var(--mw)) / 2 + 48px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    color: #1a0d0e;
    background: linear-gradient(105deg, #fff8e8 0%, #f8efd9 58%, #efe0bf 100%);
    animation: home-manifesto-rail-in .78s .34s cubic-bezier(.22, 1, .36, 1) both;
}

.home-manifesto__proof-item {
    position: relative;
    min-width: 0;
    padding: 4px 26px 4px 20px;
    border-left: 3px solid #c74c43;
    font-family: var(--ff);
}

.home-manifesto__proof-value,
.home-manifesto__proof-label {
    display: block;
}

.home-manifesto__proof-value {
    font-size: clamp(1.15rem, 1.7vw, 1.48rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.home-manifesto__proof-label {
    margin-top: 4px;
    color: rgba(26, 13, 14, .68);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

@keyframes home-manifesto-image-in {
    from { opacity: .35; transform: scale(1.11); }
    to { opacity: 1; transform: scale(1.035); }
}

@keyframes home-manifesto-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes home-manifesto-rail-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 960px) {
    .home-manifesto__content { width: min(780px, 88vw); }
    .home-manifesto__media::before {
        background: linear-gradient(90deg, rgba(18, 7, 8, .98) 0%, rgba(18, 7, 8, .84) 52%, rgba(18, 7, 8, .32) 100%);
    }

    .hero-carousel__footer { right: 20px; width: 238px; }
}

@media (max-width: 720px) {
    .home-manifesto.hero-section {
        min-height: max(760px, 100svh);
    }

    .home-manifesto__inner {
        padding: 96px 20px 118px;
        align-items: flex-end;
    }

    .home-manifesto__content { width: 100%; }

    .home-manifesto__eyebrow {
        max-width: 30ch;
        margin-bottom: 16px;
        font-size: .6rem;
        letter-spacing: .14em;
    }

    .home-manifesto__title {
        max-width: 8.2ch;
        font-size: clamp(3.55rem, 18vw, 5.8rem);
        line-height: .82;
    }

    .home-manifesto__support {
        margin-top: 22px;
        display: block;
    }

    .home-manifesto__summary {
        max-width: 34rem;
        font-size: .94rem;
        line-height: 1.5;
    }

    .home-manifesto__thesis {
        max-width: 33rem;
        margin-top: 10px;
        font-size: .7rem;
    }

    .home-manifesto__cta {
        width: max-content;
        max-width: 100%;
        min-height: 50px;
        margin-top: 20px;
        padding-inline: 19px;
        font-size: .68rem;
    }

    .home-manifesto__actions {
        margin-top: 20px;
    }

    .home-manifesto__actions .home-manifesto__cta { margin-top: 0; }

    .home-manifesto__slide img {
        object-position: 58% 46%;
    }

    .home-manifesto__slide[style*="top"] img { object-position: 50% 20%; }

    .hero-carousel__footer {
        top: 88px;
        right: 12px;
        bottom: auto;
        width: min(232px, calc(100% - 24px));
        padding: 8px 9px 7px 11px;
    }

    .hero-carousel__button { width: 29px; height: 29px; }

    .home-manifesto__media::before {
        background: linear-gradient(0deg, rgba(18, 7, 8, .995) 5%, rgba(18, 7, 8, .9) 42%, rgba(18, 7, 8, .48) 70%, rgba(18, 7, 8, .28) 100%);
    }

    .home-manifesto__media::after {
        background: linear-gradient(180deg, rgba(18, 7, 8, .5) 0%, transparent 24%);
    }

    .home-manifesto__proof {
        min-height: 88px;
        padding: 0 14px;
    }

    .home-manifesto__proof-item {
        padding: 2px 7px 2px 9px;
        border-left-width: 2px;
    }

    .home-manifesto__proof-value { font-size: .82rem; }
    .home-manifesto__proof-label { font-size: .5rem; letter-spacing: .065em; }
}

@media (max-width: 380px) {
    .home-manifesto.hero-section { min-height: 780px; }
    .home-manifesto__title { font-size: clamp(3.35rem, 17vw, 4.3rem); }
    .home-manifesto__summary { font-size: .88rem; }
    .home-manifesto__proof { padding-inline: 10px; }
    .home-manifesto__proof-item { padding-left: 7px; padding-right: 4px; }
}

@media (max-width: 520px) {
    .nav { padding-inline: 20px; }
    .nav__logo { white-space: nowrap; }
    .nav > .btn.btn--primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-manifesto__slide,
    .home-manifesto__eyebrow,
    .home-manifesto__title,
    .home-manifesto__support,
    .home-manifesto__proof {
        animation: none;
    }

    .home-manifesto__slide,
    .hero-carousel__button,
    .hero-carousel__dot { transition: none; }

    .hero-carousel__pause { display: none; }
}
