.srp-hero {
    --hero-bg-a: #080810;
    --hero-bg-b: #2a1844;
    --hero-text: #f8f7fb;
    --hero-muted: rgba(248,247,251,.72);
    --hero-accent: #aeb6ff;
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--hero-text);
    background:
        radial-gradient(circle at 78% 28%, rgba(174,182,255,.14), transparent 30%),
        linear-gradient(135deg,var(--hero-bg-a),var(--hero-bg-b));
    transition: background 620ms cubic-bezier(.2,.75,.2,1),color 420ms ease;
}

.srp-hero[data-state="1"],
.srp-hero[data-state="3"],
.srp-hero[data-state="5"] {
    --hero-bg-a: #aeb6ff;
    --hero-bg-b: #d7dcff;
    --hero-text: #17151e;
    --hero-muted: rgba(23,21,30,.7);
    --hero-accent: #5b3df5;
    background:
        radial-gradient(circle at 76% 24%, rgba(255,255,255,.42), transparent 28%),
        linear-gradient(135deg,var(--hero-bg-a),var(--hero-bg-b));
}

.srp-hero[data-state="0"],
.srp-hero[data-state="2"],
.srp-hero[data-state="4"] {
    --hero-bg-a: #080810;
    --hero-bg-b: #3a2456;
    --hero-text: #f8f7fb;
    --hero-muted: rgba(248,247,251,.72);
    --hero-accent: #aeb6ff;
}

.srp-hero__inner {
    position: relative;
    display: grid;
    min-height: 100svh;
    align-items: center;
    padding-top: clamp(7.5rem,9vw,9.5rem);
    padding-bottom: clamp(4rem,6vw,6rem);
}

.srp-hero__slides {
    position: relative;
    min-height: clamp(30rem,56vh,39rem);
}

.srp-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    max-width: 70rem;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1.7rem);
    transition: opacity 360ms ease,transform 560ms cubic-bezier(.2,.75,.2,1);
}

.srp-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.srp-hero-slide__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.4rem;
    color: var(--hero-muted);
    font-size: clamp(.7rem,.64rem + .12vw,.82rem);
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.srp-hero-slide__number {
    color: var(--hero-accent);
    font-weight: 900;
}

.srp-hero__title {
    display: grid;
    max-width: 66rem;
    margin: 0;
    font-family: var(--srp-font-heavy);
    font-size: clamp(4rem,7vw,8.2rem);
    font-weight: 900;
    letter-spacing: -.078em;
    line-height: .82;
    text-transform: uppercase;
}

.srp-hero__title-line {
    display: block;
    overflow: hidden;
    padding-bottom: .05em;
}

.srp-hero__title-line b {
    display: block;
    font: inherit;
    transform: translateY(112%);
    transition: transform 680ms cubic-bezier(.18,.8,.2,1);
}

.srp-hero-slide.is-active .srp-hero__title-line b { transform: translateY(0); }
.srp-hero-slide.is-active .srp-hero__title-line:nth-child(2) b { transition-delay: 70ms; }

.srp-punctuation {
    color: var(--hero-accent);
    font: inherit;
    font-style: normal;
}

.srp-hero__text {
    max-width: 39rem;
    margin: clamp(1.4rem,2.2vw,2.2rem) 0 0;
    color: var(--hero-muted);
    font-size: clamp(1.04rem,.98rem + .22vw,1.22rem);
    font-weight: 500;
    line-height: 1.58;
}

.srp-hero .srp-actions { margin-top: clamp(1.8rem,3vw,2.8rem); }

.srp-hero[data-state="1"] .srp-button--secondary,
.srp-hero[data-state="3"] .srp-button--secondary,
.srp-hero[data-state="5"] .srp-button--secondary {
    color: #17151e;
    border-color: rgba(23,21,30,.22);
    background: rgba(255,255,255,.2);
}

.srp-button--outline-dark {
    color: #17151e;
    border-color: rgba(23,21,30,.25);
    background: transparent;
    box-shadow: none;
}

.srp-hero-progress {
    position: absolute;
    right: var(--srp-gutter);
    bottom: clamp(1.4rem,2.5vw,2.5rem);
    display: flex;
    align-items: center;
    gap: .55rem;
}

.srp-hero-progress b {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: color-mix(in srgb,var(--hero-text) 24%,transparent);
    transition: transform .35s ease,background-color .35s ease,box-shadow .35s ease;
}

.srp-hero-progress b.is-active {
    background: var(--hero-accent);
    box-shadow: 0 0 0 .26rem color-mix(in srgb,var(--hero-accent) 14%,transparent);
    transform: scale(1.18);
}

.srp-hero[data-state="1"] .srp-hero-progress b:not(.is-active),
.srp-hero[data-state="3"] .srp-hero-progress b:not(.is-active),
.srp-hero[data-state="5"] .srp-hero-progress b:not(.is-active) {
    background: rgba(23,21,30,.24);
}

@media (max-width: 39.9375rem) {
    .srp-hero { min-height: 100svh; }

    .srp-hero__inner {
        min-height: 100svh;
        padding-top: 5.8rem;
        padding-bottom: 3.3rem;
    }

    .srp-hero__slides {
        min-height: 23rem;
    }

    .srp-hero-slide {
        justify-content: center;
        max-width: none;
    }

    .srp-hero-slide__meta {
        margin-bottom: .85rem;
        font-size: .62rem;
        line-height: 1.35;
    }

    .srp-hero__title {
        font-size: clamp(3.15rem,13.8vw,4.65rem);
        line-height: .84;
        letter-spacing: -.076em;
    }

    .srp-hero__text {
        max-width: 31rem;
        margin-top: 1rem;
        font-size: .95rem;
        line-height: 1.5;
    }

    .srp-hero .srp-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .55rem;
        margin-top: 1.35rem;
    }

    .srp-hero .srp-button {
        min-height: 2.95rem;
        padding-inline: .65rem;
        font-size: .68rem;
    }

    .srp-hero-progress {
        right: auto;
        left: var(--srp-gutter);
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .srp-hero-slide,
    .srp-hero__title-line b { transition: none; }
}
