.hero-2 {
    --hero-2-bg: #111b18;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--hero-2-bg);
    outline: none;
    transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-2::before {
    z-index: 2;
    background:
        radial-gradient(circle at 68% 28%, rgba(175, 255, 0, 0.17), transparent 28%),
        radial-gradient(circle at 50% 110%, rgba(175, 255, 0, 0.1), transparent 42%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 36%);
}

.hero-2::after {
    z-index: 24;
    background:
        linear-gradient(90deg, rgba(5, 8, 8, 0.62) 0%, rgba(5, 8, 8, 0.12) 42%, transparent 68%),
        linear-gradient(0deg, rgba(5, 8, 8, 0.72) 0%, transparent 35%);
}

.hero-2__background,
.hero-2__tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-2__background {
    z-index: 0;
    background-image: url('/static/images/background-image-hero-home.png?v=20260819-1');
    background-image: image-set(
        url('/static/images/background-image-hero-home.avif?v=20260819-1') type('image/avif'),
        url('/static/images/background-image-hero-home.webp?v=20260819-1') type('image/webp'),
        url('/static/images/background-image-hero-home.png?v=20260819-1') type('image/png')
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.52) contrast(1.08) saturate(0.82);
    transform: scale(1.012);
}

.hero-2__tint {
    z-index: 1;
    background-color: var(--hero-2-tint, #111b18);
    opacity: 0.62;
    transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color;
}

.hero-2__grain {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.hero-2__ghost {
    position: absolute;
    top: 15%;
    left: clamp(2rem, 4.5vw, 5.5rem);
    z-index: 3;
    margin: 0;
    color: rgba(255, 255, 255, 0.28);
    font-family: var(--font-body);
    font-size: clamp(5.5rem, 8.3vw, 9.75rem);
    font-weight: 700;
    line-height: 0.9;
    font-kerning: none;
    font-feature-settings: "kern" 0;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    transition:
        opacity 420ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-2--ghost-pending .hero-2__ghost {
    opacity: 0;
    transform: translateY(0.6rem);
}

.hero-2__ghost span {
    display: block;
}

.hero-2 .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-2__stage {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transform: none;
    transform-origin: center bottom;
    transition:
        opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-2--players-pending .hero-2__stage {
    opacity: 0;
    transform: translateY(3%) scale(0.98);
}

.hero-2--players-pending .hero-2__controls {
    pointer-events: none;
}

.hero-2__player {
    --hero-2-center-scale: 1.34;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(31vw, 500px);
    height: 88%;
    margin: 0;
    transform-origin: bottom center;
    transition:
        transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
        filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
        left 650ms cubic-bezier(0.4, 0, 0.2, 1),
        height 650ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter, opacity, left;
}

.hero-2__player[data-player-framing="upright"] {
    --hero-2-center-scale: 1.15;
}

.hero-2__player img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.4));
    user-select: none;
}

.hero-2__player picture {
    display: contents;
}

.hero-2__player--load-failed {
    opacity: 0 !important;
}

.hero-2__player[data-role="hidden"] {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) scale(0.82);
}

.hero-2__player[data-role="center"] {
    left: 60%;
    z-index: 20;
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) scale(var(--hero-2-center-scale));
}

.hero-2__player[data-role="left"],
.hero-2__player[data-role="right"] {
    z-index: 10;
    height: 34%;
    opacity: 0.68;
    filter: blur(1.5px) saturate(0.82);
    transform: translateX(-50%) scale(1);
}

.hero-2__player[data-role="left"] {
    left: 38%;
}

.hero-2__player[data-role="right"] {
    left: 84%;
}

.hero-2__player[data-role="back"] {
    left: 62%;
    z-index: 5;
    height: 26%;
    opacity: 0.42;
    filter: blur(3px) saturate(0.7);
    transform: translateX(-50%) scale(1);
}

.hero-2__content {
    position: absolute;
    left: clamp(1.25rem, 5vw, 6rem);
    bottom: clamp(2rem, 8vh, 6.5rem);
    z-index: 30;
    width: min(46rem, 50vw);
    opacity: 1;
    transform: none;
    transition:
        opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-2__title {
    max-width: 10em;
    margin: 0 0 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-weight: var(--font-heading-weight);
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.62);
}

.hero-2__title-accent {
    display: block;
    margin-bottom: 0.12em;
    color: var(--color-primary);
}

.hero-2__description {
    max-width: 40rem;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 300;
    line-height: 1.4;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.hero-2__cta {
    min-height: 58px;
    padding-inline: 1.75rem;
}

.hero-2__controls {
    position: absolute;
    right: clamp(1.25rem, 4vw, 4.5rem);
    bottom: clamp(2rem, 7vh, 5.5rem);
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 1;
    transform: none;
    transition:
        opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-2--content-pending .hero-2__content,
.hero-2--content-pending .hero-2__controls {
    opacity: 0;
    transform: translateY(2rem);
    pointer-events: none;
}

.hero-2__control {
    display: grid;
    width: 3.75rem;
    height: 3.75rem;
    padding: 0;
    place-items: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(8, 12, 11, 0.12);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.hero-2__control:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.hero-2__control:disabled {
    cursor: default;
}

.hero-2__control:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.hero-2__control svg {
    width: 1.65rem;
    height: 1.65rem;
}

.hero-2__counter {
    min-width: 4.4rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-align: center;
}

.hero-2__counter span:first-child {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (min-width: 769px) {
    .hero-2__ghost-padel {
        margin-top: 0.08em;
    }
}

@media (max-width: 1024px) {
    .hero-2__content {
        width: min(42rem, 56vw);
    }

    .hero-2__player[data-role="center"] {
        left: 64%;
    }

    .hero-2__player[data-role="left"] {
        left: 43%;
    }
}

@media (min-width: 769px) and (max-height: 800px) {
    .hero-2__player[data-player-framing="upright"] {
        --hero-2-center-scale: 1.05;
    }
}

@media (max-width: 768px) {
    .hero-2 {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero-2::after {
        background: linear-gradient(0deg, rgba(5, 8, 8, 0.93) 0%, rgba(5, 8, 8, 0.48) 37%, transparent 66%);
    }

    .hero-2__background {
        background-position: 50% center;
        filter: brightness(0.46) contrast(1.1) saturate(0.78);
    }

    .hero-2__tint {
        opacity: 0.67;
    }

    .hero-2__ghost {
        top: 18%;
        left: 50%;
        width: 100%;
        font-size: clamp(3.45rem, 15.2vw, 4.25rem);
        line-height: 0.94;
        text-align: center;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.24);
    }

    .hero-2--ghost-pending .hero-2__ghost {
        transform: translateX(-50%) translateY(0.6rem);
    }

    .hero-2__player {
        --hero-2-center-scale: 1.22;
        width: min(64vw, 390px);
        height: 57%;
        bottom: 25%;
    }

    .hero-2__player[data-player-framing="upright"] {
        --hero-2-center-scale: 1.05;
    }

    .hero-2__player[data-role="center"] {
        left: 50%;
        transform: translateX(-50%) scale(var(--hero-2-center-scale));
    }

    .hero-2__player[data-role="left"],
    .hero-2__player[data-role="right"] {
        bottom: 33%;
        width: 34vw;
        height: 21%;
        opacity: 0.58;
    }

    .hero-2__player[data-role="left"] {
        left: 11%;
    }

    .hero-2__player[data-role="right"] {
        left: 89%;
    }

    .hero-2__player[data-role="back"] {
        left: 50%;
        bottom: 34%;
        width: 28vw;
        height: 17%;
        opacity: 0.35;
    }

    .hero-2__content {
        left: 1.25rem;
        right: 1.25rem;
        bottom: calc(max(2rem, env(safe-area-inset-bottom)) + 5svh);
        width: auto;
    }

    .hero-2__copy {
        position: absolute;
        left: 0;
        bottom: 6.5rem;
        width: 100%;
        transform: translateY(22%);
    }

    .hero-2__description {
        max-width: 34rem;
        margin-bottom: 1rem;
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .hero-2__title {
        max-width: 10em;
        margin-bottom: 0.75rem;
        font-size: clamp(2.3rem, 9.5vw, 3.2rem);
        line-height: 0.92;
    }

    .hero-2__cta {
        min-height: 52px;
        padding-inline: 1.25rem;
    }

    .hero-2__controls {
        right: 1.25rem;
        bottom: calc(max(2rem, env(safe-area-inset-bottom)) + 5svh);
        gap: 0.45rem;
    }

    .hero-2__control {
        width: 3.15rem;
        height: 3.15rem;
    }

    .hero-2__counter {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-2__cta .btn__icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-2--ghost-pending .hero-2__ghost,
    .hero-2--content-pending .hero-2__content,
    .hero-2--content-pending .hero-2__controls {
        opacity: 1;
        transform: none;
    }

    .hero-2,
    .hero-2__tint,
    .hero-2__ghost,
    .hero-2__content,
    .hero-2__controls,
    .hero-2__stage,
    .hero-2__player,
    .hero-2__control {
        transition-duration: 0.01ms !important;
    }
}
