/* Header 2: direction follows the document, layers stay clipped to the hero. */

.home-main > .home-rail[data-home-rail="header2"] {
    width: 100%;
    max-width: 100%;
}

.header2 {
    width: min(100%, var(--h2-width, 100%));
    max-width: 100%;
    margin-inline: auto;
    color: var(--ink, #f4f7fb);
}

.header2__bar {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 50;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    overflow: visible;
}

.header2__start {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
    padding-inline-end: 7rem;
}

.header2__logo-slot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: calc(8.5rem * (var(--media-size, 100) / 100));
    min-width: 4.5rem;
    min-height: calc(2.6rem * (var(--media-size, 100) / 100));
    position: relative;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.header2__logo-slot .logo-wrap {
    pointer-events: auto;
    transform-origin: inline-start center;
}

.header2--hosted-nav .header2__start {
    display: none;
}

.header2__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
    z-index: 6;
    isolation: isolate;
    pointer-events: auto;
}

.header2__link,
.header2__store {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 6;
}

.header2__link {
    color: var(--ink, #f4f7fb);
    background: color-mix(in srgb, var(--brand-bg, #07090f) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-neon, #b8ff3c) 35%, transparent);
}

.header2__store {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #10200a;
    background: var(--h2-fill, var(--brand-neon, #b8ff3c));
}

.site-header--with-h2-nav .logo-wrap {
    flex: 0 0 auto;
    max-width: none;
    position: relative;
    z-index: 1;
    transform-origin: inline-start center;
}

.site-header--with-h2-nav .logo-wrap.media-styled {
    transform-origin: inline-start center;
    margin-inline-end: max(0.75rem, calc((var(--media-size, 100) / 100 - 1) * 3.25rem + 0.75rem));
}

.site-header .header2__links--site {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    position: relative;
    z-index: 6;
}

.site-header--with-h2-nav .header-actions {
    position: relative;
    z-index: 7;
    margin-inline-start: auto;
}

.header2-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: var(--h2-height, 72vh);
    min-height: 320px;
    overflow: hidden;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--brand-bg, #07090f) 88%, #fff 6%);
    touch-action: pan-y;
}

.header2-stage,
.header2-scene {
    position: absolute;
    inset: 0;
}

.header2-scene {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.header2-scene.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header2-layer--1 {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0.16;
    transition: opacity 0.45s ease;
}

.header2.is-live .header2-scene.is-active .header2-layer--1 {
    opacity: 1;
}

.header2-layer--1.is-fill .header2-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header2-layer--1.is-custom .header2-media {
    width: min(100%, var(--m1w, 70%));
    height: min(100%, var(--m1h, 70%));
    object-fit: contain;
}

.header2-pair {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    width: var(--m2w, 280px);
    height: var(--m2h, 360px);
    max-width: none;
    max-height: none;
    overflow: visible;
    transform: translate(-50%, -50%);
}

.header2-cluster,
.header2-layer--4 {
    --h2-w: var(--h2-w-d, 140px);
    --h2-h: var(--h2-h-d, 140px);
    width: var(--h2-w);
    height: var(--h2-h);
    max-width: none;
    max-height: none;
}

.header2-cluster {
    position: absolute;
    overflow: visible;
    z-index: 2;
}

.header2-cluster > .header2-layer--3 {
    inset: 0;
    width: auto;
    height: auto;
}

.header2-layer--2,
.header2-layer--3,
.header2-layer--4 {
    position: absolute;
}

.header2-layer--2 {
    inset: 0;
}

.header2-layer--3,
.header2-layer--4 {
    overflow: visible;
    pointer-events: auto;
    cursor: pointer;
    transform: none;
}

.header2-layer--3[data-tilt="1"],
.header2-layer--4[data-tilt="1"] {
    transform-origin: 50% 90%;
}

.header2-layer--4 {
    z-index: 2;
}

.header2-layer--2 .header2-media,
.header2-enter,
.header2-fx,
.header2-fx .header2-media {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.header2-layer--2 .header2-media,
.header2-layer--3 .header2-media,
.header2-layer--4 .header2-media {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: fill;
}

.header2-enter {
    transform-origin: center;
    opacity: 0;
}

.header2-enter.is-on,
.header2-layer--2[data-enter="none"] .header2-enter {
    opacity: 1;
}

.header2-layer--2[data-enter="pop"] .header2-enter.is-on {
    animation: header2-enter-pop 0.32s cubic-bezier(0.2, 0.85, 0.3, 1.15) both;
}

.header2-layer--2[data-enter="fade"] .header2-enter.is-on {
    animation: header2-enter-fade 0.26s ease-out both;
}

.header2-layer--2[data-enter="rise"] .header2-enter.is-on {
    animation: header2-enter-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header2-layer--2[data-enter="drop"] .header2-enter.is-on {
    animation: header2-enter-drop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header2-layer--2[data-enter="zoom"] .header2-enter.is-on {
    animation: header2-enter-zoom 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header2-layer--2[data-enter="snap"] .header2-enter.is-on {
    animation: header2-enter-snap 0.34s cubic-bezier(0.18, 0.9, 0.32, 1.12) both;
}

@keyframes header2-enter-pop {
    0% { opacity: 0; transform: scale(0.62); }
    70% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes header2-enter-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes header2-enter-rise {
    0% { opacity: 0; transform: translateY(28px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes header2-enter-drop {
    0% { opacity: 0; transform: translateY(-28px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes header2-enter-zoom {
    0% { opacity: 0; transform: scale(1.28); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes header2-enter-snap {
    0% { opacity: 0; transform: rotate(-14deg) scale(0.72); }
    100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

.header2-media {
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.header2-fx {
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.header2-fx.is-squash { animation: header2-squash 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.header2-fx.is-spin { animation: header2-spin 0.38s linear both; }
.header2-fx.is-flash { animation: header2-flash 0.28s steps(2, end) both; }
.header2-fx.is-pop { animation: header2-fx-pop 0.28s cubic-bezier(0.2, 0.85, 0.3, 1.15) both; }
.header2-fx.is-bounce { animation: header2-fx-bounce 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.header2-fx.is-wobble { animation: header2-fx-wobble 0.34s ease-in-out both; }
.header2-fx.is-pulse { animation: header2-fx-pulse 0.3s ease-out both; }
.header2-fx.is-flip { animation: header2-fx-flip 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.header2-fx.is-hop { animation: header2-fx-hop 0.32s cubic-bezier(0.2, 0.85, 0.3, 1) both; }
.header2-fx.is-jiggle { animation: header2-fx-jiggle 0.3s ease-in-out both; }
.header2-fx.is-squeeze { animation: header2-fx-squeeze 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.header2-fx.is-swirl { animation: header2-fx-swirl 0.34s cubic-bezier(0.18, 0.9, 0.32, 1.12) both; }
.header2-fx.is-blink { animation: header2-fx-blink 0.26s steps(2, end) both; }
.header2-fx.is-slam { animation: header2-fx-slam 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.header2-fx.is-shake { animation: header2-fx-shake 0.28s ease-in-out both; }
.header2-fx.is-nudge { animation: header2-fx-nudge 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes header2-squash {
    0% { transform: scale(1, 1); }
    35% { transform: scale(1.22, 0.74); }
    68% { transform: scale(0.88, 1.16); }
    100% { transform: scale(1, 1); }
}

@keyframes header2-spin {
    0% { transform: rotate(0deg); }
    78% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

@keyframes header2-flash {
    0%, 100% { opacity: 1; }
    45% { opacity: 0; }
}

@keyframes header2-fx-pop {
    0% { transform: scale(0.72); }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes header2-fx-bounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-18px) scale(1.04, 0.96); }
    58% { transform: translateY(6px) scale(0.98, 1.04); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes header2-fx-wobble {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    70% { transform: rotate(-6deg); }
}

@keyframes header2-fx-pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.16); }
}

@keyframes header2-fx-flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes header2-fx-hop {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-22px) scale(0.96, 1.06); }
}

@keyframes header2-fx-jiggle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px) rotate(-4deg); }
    50% { transform: translateX(7px) rotate(4deg); }
    75% { transform: translateX(-4px) rotate(-2deg); }
}

@keyframes header2-fx-squeeze {
    0%, 100% { transform: scale(1, 1); }
    40% { transform: scale(0.72, 1.18); }
    70% { transform: scale(1.1, 0.9); }
}

@keyframes header2-fx-swirl {
    0% { transform: rotate(0deg) scale(1); }
    40% { transform: rotate(-18deg) scale(1.08); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes header2-fx-blink {
    0%, 100% { opacity: 1; }
    30% { opacity: 0; }
    60% { opacity: 1; }
}

@keyframes header2-fx-slam {
    0% { transform: scale(1.35) translateY(-12px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes header2-fx-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes header2-fx-nudge {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    35% { transform: translateX(14px) rotate(6deg); }
    70% { transform: translateX(-4px) rotate(-2deg); }
}

.header2-picks {
    position: absolute;
    z-index: 30;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.75rem;
    width: max-content;
    max-width: calc(100% - 1rem);
    pointer-events: auto;
}

.header2-picks--row { flex-direction: row; }
.header2-picks--column { flex-direction: column; }
.header2-picks--top-left { top: 0; left: 0; }
.header2-picks--top-right { top: 0; right: 0; }
.header2-picks--bottom-left { bottom: 0; left: 0; }
.header2-picks--bottom-right { bottom: 0; right: 0; }
.header2-picks--bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
}

.header2-pick {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    padding: 0.35rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--h2-fill, #b8ff3c);
    color: #10200a;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    font-weight: 800;
    appearance: none;
}

.header2-pick .header2-media {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.header2-pick.is-active {
    outline: 2px solid var(--brand-secondary, #ff6a3d);
    outline-offset: 2px;
}

.header2-social {
    position: absolute;
    z-index: 3;
    max-width: calc(100% - 5rem);
    padding: 0.75rem;
}

.header2-social--bottom-left { left: 0; bottom: 0; }
.header2-social--bottom-right { right: 0; bottom: 0; }
.header2-social--top-left { left: 0; top: 0; }
.header2-social--top-right { right: 0; top: 0; }
.header2-social--bottom-center {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.header2-social .social-links {
    justify-content: flex-start;
}

@media (max-width: 720px) {
    .header2__bar {
        align-items: center;
        min-height: 3.6rem;
    }

    .header2__start {
        padding-inline-end: 5.5rem;
        flex-wrap: wrap;
    }

    .header2--hide-links-mobile .header2__links,
    .site-header--hide-h2-links .header2__links--site {
        display: none;
    }

    .site-header--with-h2-nav .logo-wrap {
        flex: 0 1 auto;
    }

    .header2__logo-slot {
        width: calc(6.5rem * (var(--media-size, 100) / 100));
        min-width: 3.6rem;
        min-height: calc(2.2rem * (var(--media-size, 100) / 100));
    }

    .header2-hero {
        min-height: 460px;
        border-radius: 0;
    }

    .header2-layer--1.is-custom .header2-media {
        width: min(100%, var(--m1w-m, var(--m1w, 70%)));
        height: min(100%, var(--m1h-m, var(--m1h, 70%)));
    }

    .header2-pick {
        width: 2.7rem;
        height: 2.7rem;
    }

    .header2-social--m-bottom-left {
        left: 0;
        right: auto;
        top: auto;
        bottom: 0;
        transform: none;
    }

    .header2-social--m-bottom-right {
        right: 0;
        left: auto;
        top: auto;
        bottom: 0;
        transform: none;
    }

    .header2-social--m-top-left {
        left: 0;
        right: auto;
        top: 0;
        bottom: auto;
        transform: none;
    }

    .header2-social--m-top-right {
        right: 0;
        left: auto;
        top: 0;
        bottom: auto;
        transform: none;
    }

    .header2-social--m-bottom-center {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {
    .header2-hero {
        overflow: visible;
    }

    .header2-pair {
        inset: auto !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: translate(-50%, -50%);
        width: var(--m2w-m, var(--m2w, 180px)) !important;
        height: var(--m2h-m, var(--m2h, 230px)) !important;
        max-width: none !important;
        max-height: none !important;
    }

    .header2-cluster,
    .header2-layer--4 {
        --h2-w: var(--h2-w-m, var(--h2-w-d, 140px));
        --h2-h: var(--h2-h-m, var(--h2-h-d, 140px));
        width: var(--h2-w) !important;
        height: var(--h2-h) !important;
        max-width: none !important;
        max-height: none !important;
    }
}

.header2.is-compact .header2-hero {
    overflow: visible;
}

.header2.is-compact .header2-pair {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    width: var(--m2w-m, var(--m2w, 180px)) !important;
    height: var(--m2h-m, var(--m2h, 230px)) !important;
    max-width: none !important;
    max-height: none !important;
}

.header2.is-compact .header2-cluster,
.header2.is-compact .header2-layer--4 {
    --h2-w: var(--h2-w-m, var(--h2-w-d, 140px));
    --h2-h: var(--h2-h-m, var(--h2-h-d, 140px));
    width: var(--h2-w) !important;
    height: var(--h2-h) !important;
    max-width: none !important;
    max-height: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .header2-scene,
    .header2-layer--1,
    .header2-fx,
    .header2-enter {
        transition: none;
        animation: none !important;
        opacity: 1;
    }
}
