/* Home: hero, trust strip, categories, featured sets, collections, route builder, banners, panels, newsletter. */
@layer pages {
    /* Hero */
    .hero {
        background: var(--deep);
        color: #fff;
        position: relative;
        overflow: hidden;
        height: calc(100svh - 68px);
        min-height: 640px;
        max-height: 940px;
        /* --hero and --hero-m (phone) come inline from the Customizer image. */
        &.hub {
            --hero-bg: var(--hero);
        }
        &.hub {
            height: min(calc(100svh - 68px), 820px);
            min-height: 600px;
            background-image:
                linear-gradient(
                    90deg,
                    rgba(17, 17, 17, 0.94) 0%,
                    rgba(17, 17, 17, 0.78) 34%,
                    rgba(17, 17, 17, 0.15) 66%,
                    rgba(17, 17, 17, 0) 100%
                ),
                linear-gradient(0deg, rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0) 40%), var(--hero-bg);
            background-size: cover;
            background-position: right center;
        }
    }
    @media (max-width: 760px) {
        .hero.hub {
            --hero-bg: var(--hero-m, var(--hero));
        }
    }
    .hero-in {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: clamp(36px, 5vw, 64px);
        pointer-events: none;
        > * {
            pointer-events: auto;
        }
    }
    .hero-eyebrow {
        color: var(--orange);
        font-weight: 600;
        margin-bottom: 18px;
        animation: rise var(--t3) var(--ease) both 0.1s;
    }
    .hero h1 {
        animation: rise var(--t3) var(--ease) both 0.15s;
    }
    .hero-bot {
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
        margin-top: clamp(24px, 3vw, 36px);
        animation: rise var(--t3) var(--ease) both 0.35s;
        .lead {
            color: #d0d3d3;
            max-width: 36ch;
        }
    }
    .hero-in .hero-bot {
        max-width: calc(100% - 540px);
    }
    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(22px);
        }
    }
    .hero-show {
        position: absolute;
        left: 0;
        right: 0;
        bottom: clamp(36px, 5vw, 64px);
        pointer-events: none;
        .hs-in > * {
            pointer-events: auto;
        }
    }
    .hs-in {
        max-width: var(--max);
        margin: 0 auto;
        padding: 0 var(--pad);
        display: flex;
        justify-content: flex-end;
    }
    .hs-img {
        display: block;
        position: relative;
        width: 200px;
        flex: none;
        border-radius: 4px 0 0 4px;
        overflow: hidden;
        background: radial-gradient(110% 85% at 26% 16%, #fafbfb 0, var(--concrete) 55%, #cfd7d7 100%);
        animation: rise var(--t3) var(--ease) both 0.5s;
        & img {
            position: absolute;
            inset: 8%;
            width: 84%;
            height: 84%;
            object-fit: contain;
            transition: transform var(--t3) var(--ease);
        }
        &:hover img {
            transform: scale(1.06);
        }
    }
    .hs-tag {
        position: absolute;
        left: 10px;
        top: 10px;
        font-size: 0.75rem;
        font-weight: 600;
        background: var(--orange);
        color: var(--graphite);
        padding: 3px 9px;
        border-radius: 11px;
    }
    .hs-body {
        width: 300px;
        padding: 20px 22px;
        background: rgba(23, 23, 23, 0.88);
        border: 1px solid var(--line-d);
        border-left: 0;
        border-radius: 0 4px 4px 0;
        color: #fff;
        animation: rise var(--t3) var(--ease) both 0.6s;
    }
    .hs-col {
        font-size: 0.78125rem;
        color: var(--soft-d);
        font-weight: 500;
    }
    .hs-body {
        & h2 {
            font-size: 1.375rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.15;
            margin: 2px 0 6px;
        }
        & h2 a:hover {
            color: var(--orange);
        }
    }
    .hs-char {
        font-size: 0.875rem;
        color: #cfd2d2;
        line-height: 1.4;
    }
    .hs-chips {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 14px 0 16px;
        & li {
            font-size: 0.75rem;
            font-weight: 500;
            padding: 5px 8px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.1);
            color: #e6e8e8;
            line-height: 1;
        }
    }
    .hs-acts {
        display: flex;
        gap: 8px;
    }
    .hs-view {
        flex: 1;
        background: #fff;
        color: var(--graphite);
        &:hover {
            background: var(--orange);
        }
    }
    .hs-add {
        height: 42px;
        border-radius: 2px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        color: #fff;
        font-size: 0.84375rem;
        font-weight: 600;
        transition:
            background var(--t1) var(--ease),
            border-color var(--t1) var(--ease),
            color var(--t1) var(--ease);
        & svg {
            width: 12px;
            height: 12px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        & span {
            display: none;
        }
        &:hover {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }
        &.in {
            background: var(--mint);
            color: var(--graphite);
            border-color: var(--mint);
        }
    }
    @media (max-width: 1180px) {
        .hs-img {
            width: 160px;
        }
        .hs-body {
            width: 260px;
        }
        .hero-in .hero-bot {
            max-width: calc(100% - 440px);
        }
    }
    @media (max-width: 1000px) {
        .hero-show {
            display: none;
        }
        .hero-in .hero-bot {
            max-width: none;
        }
    }
    /* Phones and tablets: the hero grows with its content so the buttons are never cut off. */
    @media (max-width: 900px) {
        .hero,
        .hero.hub {
            height: auto;
            min-height: calc(100svh - 68px);
            max-height: none;
        }
        .hero-in {
            min-height: calc(100svh - 68px);
        }
    }
    /* Newsletter form and colour swatches */
    .uform {
        display: flex;
        gap: 0;
        margin-top: 36px;
        border-bottom: 1px solid var(--ink);
        max-width: 480px;
        & input {
            flex: 1;
            border: 0;
            background: transparent;
            outline: 0;
            padding: 16px 0;
            font-size: 1.125rem;
            min-width: 0;
        }
        & input[aria-invalid='true'] {
            color: #c93831;
        }
        & button {
            font-weight: 600;
            font-size: 0.9375rem;
            padding: 0 4px;
        }
        & button:hover {
            color: var(--orange);
        }
    }
    .swatches {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 32px;
    }
    .sw {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        position: relative;
        box-shadow:
            inset 0 -6px 10px rgba(0, 0, 0, 0.18),
            inset 0 3px 5px rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(0, 0, 0, 0.1);
        &.on::after {
            content: '';
            position: absolute;
            inset: -5px;
            border-radius: 50%;
            border: 1.5px solid var(--ink);
        }
    }
    /* Trust strip */
    .trust {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-bottom: 1px solid var(--line);
        & div {
            display: flex;
            gap: 14px;
            align-items: center;
            padding: 22px 20px 22px 0;
        }
        & div + div {
            padding-left: 20px;
            border-left: 1px solid var(--line);
        }
        & svg {
            width: 28px;
            height: 28px;
            flex: none;
            stroke: var(--ink);
            fill: none;
            stroke-width: 1.5;
        }
        & b {
            display: block;
            font-weight: 600;
            font-size: 0.9375rem;
            line-height: 1.25;
        }
        & span {
            font-size: 0.84375rem;
            color: var(--soft);
            line-height: 1.3;
            display: block;
        }
    }
    @media (max-width: 900px) {
        .trust {
            grid-template-columns: 1fr 1fr;
            & div:nth-child(3) {
                padding-left: 0;
                border-left: 0;
            }
            & div:nth-child(n + 3) {
                border-top: 1px solid var(--line);
            }
        }
    }
    @media (max-width: 520px) {
        .trust {
            grid-template-columns: 1fr;
            & div + div {
                padding-left: 0;
                border-left: 0;
                border-top: 1px solid var(--line);
            }
        }
    }
    /* Section heads, photo panels, newsletter */
    .shead {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 24px;
        margin-bottom: 32px;
        flex-wrap: wrap;
        & p {
            color: var(--soft);
            margin-top: 8px;
            max-width: 52ch;
        }
    }
    .kz-home-flush {
        padding-top: 0;
    }
    .split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .panel-x {
        position: relative;
        overflow: hidden;
        border-radius: 4px;
        background: var(--graphite);
        color: #fff;
        padding: clamp(28px, 3.4vw, 48px);
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 28px;
        & p {
            color: var(--soft-d);
            margin-top: 12px;
            max-width: 38ch;
        }
        .t2 {
            max-width: 14ch;
        }
        .btn {
            align-self: flex-start;
        }
        &.ph {
            min-height: clamp(380px, 32vw, 460px);
            background: var(--deep);
            color: #fff;
            isolation: isolate;
        }
        &.ph p {
            color: #d6d9d9;
        }
        &.ph .px-bg {
            position: absolute;
            inset: 0;
            z-index: -1;
        }
        &.ph .px-bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            mix-blend-mode: normal !important;
            transition: transform var(--t3) var(--ease);
        }
        &.ph .px-bg img[src] {
            object-position: center 30%;
        }
        &.ph.kz-home-panel1 .px-bg img {
            object-position: center 72%;
        }
        &.ph:hover .px-bg img {
            transform: scale(1.05);
        }
        &.ph .px-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(
                180deg,
                rgba(17, 17, 17, 0.88) 0%,
                rgba(17, 17, 17, 0.55) 42%,
                rgba(17, 17, 17, 0.25) 62%,
                rgba(17, 17, 17, 0.7) 100%
            );
        }
    }
    .news {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: end;
        .lead {
            margin-top: 12px;
        }
        .uform {
            margin-top: 0;
        }
    }
    .kz-home-news__err {
        margin-top: 10px;
        color: #c93831;
    }
    @media (max-width: 800px) {
        .split,
        .news {
            grid-template-columns: 1fr;
        }
    }
    /* Category accordion */
    .catx {
        display: flex;
        gap: 10px;
        height: clamp(420px, 40vw, 540px);
    }
    .cx {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        border-radius: 4px;
        overflow: hidden;
        background: var(--bg);
        color: var(--fg);
        padding: 26px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: flex-grow var(--t3) var(--ease);
        &.on {
            flex-grow: 3.4;
        }
    }
    .cx-n {
        font-size: 0.8125rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0.7;
        margin-bottom: 12px;
    }
    .cx {
        & h3 {
            font-size: 1.75rem;
            font-weight: 650;
            letter-spacing: -0.03em;
            line-height: 1;
            white-space: nowrap;
            transition: font-size var(--t3) var(--ease);
        }
        &.on h3 {
            font-size: clamp(3rem, 5.2vw, 5rem);
        }
        & p {
            width: 260px;
            font-size: 1.0625rem;
            line-height: 1.4;
            margin-top: 16px;
            opacity: 0;
            transform: translateY(10px);
            transition:
                opacity var(--t1) var(--ease),
                transform var(--t1) var(--ease);
        }
        &.on p {
            opacity: 0.78;
            transform: none;
            transition:
                opacity var(--t2) var(--ease) 0.25s,
                transform var(--t2) var(--ease) 0.25s;
        }
    }
    .cx-go {
        margin-top: auto;
        height: 48px;
        padding: 0 22px;
        border: 1.5px solid currentColor;
        border-radius: 24px;
        display: inline-flex;
        align-items: center;
        font-weight: 600;
        font-size: 0.9375rem;
        white-space: nowrap;
        opacity: 0;
        transition:
            opacity var(--t1) var(--ease),
            background var(--t1) var(--ease),
            color var(--t1) var(--ease);
        position: relative;
        z-index: 1;
    }
    .cx {
        &.on .cx-go {
            opacity: 1;
            transition:
                opacity var(--t2) var(--ease) 0.3s,
                background var(--t1) var(--ease),
                color var(--t1) var(--ease);
        }
        &.on:hover .cx-go {
            background: var(--fg);
            color: var(--bg);
        }
    }
    .cx-img {
        position: absolute;
        left: 8%;
        width: 84%;
        bottom: 9%;
        aspect-ratio: 1;
        transition:
            left var(--t3) var(--ease),
            width var(--t3) var(--ease),
            bottom var(--t3) var(--ease);
        pointer-events: none;
    }
    .cx {
        &.on .cx-img {
            left: 41%;
            width: 60%;
            bottom: -2%;
        }
        &:focus-visible {
            outline-offset: -4px;
        }
    }
    .cx-img img {
        width: 100%;
        height: 100%;
        mix-blend-mode: normal !important;
        transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--r, 0deg));
        transition: transform var(--t2) var(--ease);
    }
    @media (min-width: 801px) {
        .cx {
            &:not(.on) h3 {
                writing-mode: vertical-rl;
                transform: rotate(180deg);
                font-size: clamp(1.375rem, 2vw, 1.75rem);
                align-self: flex-start;
                max-height: 62%;
            }
            &:not(.on) .cx-n {
                opacity: 0;
            }
            .cx-n {
                transition: opacity var(--t2) var(--ease);
            }
        }
    }
    @media (max-width: 800px) {
        .catx {
            flex-direction: column;
            height: auto;
        }
        .cx,
        .cx.on {
            flex: none;
            height: 150px;
            padding: 20px;
        }
        .cx h3,
        .cx.on h3 {
            font-size: 1.875rem;
        }
        .cx p,
        .cx-go {
            display: none;
        }
        .cx-img,
        .cx.on .cx-img {
            left: auto;
            right: 4%;
            width: 150px;
            bottom: 0;
        }
    }
    /* Kept after the 800px block: closed rows stay compact on phones. */
    @media (max-width: 1100px) {
        .catx {
            gap: 6px;
        }
        .cx {
            padding: 14px;
            & h3 {
                font-size: 1.0625rem;
            }
            & p {
                width: 210px;
                font-size: 0.9375rem;
            }
        }
    }
    /* Featured slider */
    .fs-ctl {
        display: flex;
        align-items: center;
        gap: 10px;
        .tlink {
            margin-right: 12px;
        }
    }
    .fs-b {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 1px solid var(--ink);
        display: grid;
        place-items: center;
        transition:
            background var(--t1) var(--ease),
            color var(--t1) var(--ease),
            opacity var(--t1) var(--ease);
        & svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        &:hover:not(:disabled) {
            background: var(--graphite);
            color: #fff;
        }
        &:disabled {
            opacity: 0.25;
            cursor: default;
        }
    }
    .fs {
        --cw: calc(min(100vw, var(--max)) - 2 * var(--pad));
        --gut: calc((100vw - min(100vw, var(--max))) / 2 + var(--pad));
        margin: 0 calc(-1 * var(--gut));
        padding: 0 var(--gut);
        scroll-padding: 0 var(--gut);
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        cursor: grab;
        padding-bottom: 4px;
        &::-webkit-scrollbar {
            display: none;
        }
        &.drag {
            scroll-snap-type: none;
            cursor: grabbing;
            user-select: none;
        }
        .tile {
            flex: 0 0 calc((var(--cw) - 48px) / 4);
            scroll-snap-align: start;
            min-width: 0;
        }
    }
    @media (max-width: 1100px) {
        .fs .tile {
            flex-basis: calc((var(--cw) - 32px) / 3);
        }
    }
    @media (max-width: 800px) {
        .fs .tile {
            flex-basis: calc((var(--cw) - 16px) / 2);
        }
    }
    @media (max-width: 520px) {
        .fs .tile {
            flex-basis: calc(var(--cw) * 0.82);
        }
        .fs-ctl .fs-b {
            display: none;
        }
    }
    /* Collection showcase */
    .cshow .shead p {
        color: var(--soft-d);
    }
    .cs-row {
        display: grid;
        grid-template-columns: 1.45fr 1fr 1fr 1fr;
        gap: 16px;
        align-items: start;
        .tile {
            min-width: 0;
        }
        .pc-row :is(h2, h3) a {
            color: #fff;
        }
        .pc-dots i {
            box-shadow: 0 0 0 1.5px var(--deep);
        }
        .pc-dots b {
            color: var(--soft-d);
        }
        .pc-chips li {
            background: rgba(255, 255, 255, 0.1);
            color: #e6e8e8;
        }
        .pc-chips li:first-child {
            background: #fff;
            color: var(--graphite);
        }
        .pc-col {
            display: none;
        }
    }
    .cs-panel {
        position: relative;
        display: block;
        align-self: stretch;
        min-height: 100%;
        border-radius: 4px;
        overflow: hidden;
        background: var(--concrete);
        &:hover .cs-bg img {
            transform: scale(1.05);
        }
    }
    .cs-bg {
        position: absolute;
        inset: 0;
        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            mix-blend-mode: normal !important;
            transition: transform var(--t3) var(--ease);
        }
    }
    .cs-ov {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 24px;
        color: #fff;
        background: linear-gradient(
            180deg,
            rgba(17, 17, 17, 0.05) 0%,
            rgba(17, 17, 17, 0.55) 38%,
            rgba(17, 17, 17, 0.92) 72%
        );
    }
    .cs-num {
        font-size: 0.8125rem;
        color: #d0d3d3;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        & em {
            font-style: normal;
            font-size: 0.71875rem;
            font-weight: 600;
            background: var(--orange);
            color: var(--graphite);
            padding: 2px 8px;
            border-radius: 10px;
        }
    }
    .cs-name {
        font-weight: 850;
        font-style: oblique 12deg;
        text-transform: uppercase;
        line-height: 0.9;
        letter-spacing: -0.02em;
        font-size: clamp(2.75rem, 4.4vw, 4.25rem);
        margin: 8px 0 10px;
    }
    .cs-desc {
        font-size: 0.90625rem;
        line-height: 1.45;
        color: #d6d9d9;
        max-width: 34ch;
    }
    .cs-chips {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        margin: 14px 0 18px;
        & i {
            font-style: normal;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 5px 8px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.14);
        }
    }
    .cs-go {
        height: 44px;
        padding: 0 20px;
        display: inline-flex;
        align-items: center;
        border-radius: 2px;
        background: var(--orange);
        color: var(--graphite);
        font-weight: 600;
        font-size: 0.90625rem;
        transition: background var(--t1) var(--ease);
    }
    .cs-panel:hover .cs-go {
        background: var(--orange-h);
    }
    @media (max-width: 1100px) {
        .cs-row {
            grid-template-columns: 1fr 1fr;
            .tile:nth-child(4) {
                display: none;
            }
        }
        .cs-panel {
            grid-column: 1/-1;
            min-height: 380px;
        }
    }
    @media (max-width: 560px) {
        .cs-panel {
            min-height: 420px;
        }
    }
    /* Route builder: wall, holds, route line and side panel. */
    .wallsec .shead {
        margin-bottom: 28px;
    }
    .wbx {
        position: relative;
        margin-top: 0;
    }
    .wb-headx h2 {
        margin-bottom: 12px;
    }
    .wb-wall {
        position: relative;
        width: 100%;
        align-self: start;
        aspect-ratio: 1.62/1;
        border-radius: 4px;
        overflow: hidden;
        cursor: default;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
        background-color: #34332f;
        background-image:
            radial-gradient(circle, #0c0c0b 0 2.6px, rgba(255, 255, 255, 0.09) 2.7px 3.6px, transparent 3.7px),
            linear-gradient(
                90deg,
                transparent calc(25% - 1.5px),
                rgba(0, 0, 0, 0.5) calc(25% - 1.5px) calc(25% + 1.5px),
                transparent calc(25% + 1.5px)
            ),
            linear-gradient(
                0deg,
                transparent calc(50% - 1.5px),
                rgba(0, 0, 0, 0.5) calc(50% - 1.5px) calc(50% + 1.5px),
                transparent calc(50% + 1.5px)
            ),
            radial-gradient(120% 90% at 22% 0%, rgba(255, 236, 214, 0.2), transparent 60%),
            linear-gradient(160deg, #3d3b37, #2a2927);
        background-size:
            6.25% 10.1%,
            50% 100%,
            100% 100%,
            100% 100%,
            100% 100%;
        background-position:
            3.3% 5%,
            0 0,
            0 0,
            0 0,
            0 0;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.06),
            0 40px 70px -40px rgba(0, 0, 0, 0.6);
    }
    .wb-play {
        position: absolute;
        inset: 0;
        cursor: crosshair;
        touch-action: pan-y;
    }
    #wbholds {
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .wb-h {
        position: absolute;
        aspect-ratio: 1;
        transform: translate(-50%, -50%);
        cursor: grab;
        touch-action: none;
        border-radius: 50%;
        filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.5));
        & img {
            width: 100%;
            height: 100%;
            mix-blend-mode: normal !important;
            pointer-events: none;
            display: block;
            rotate: var(--r, 0deg);
        }
        &.sel {
            outline: 2px dashed #fff;
            outline-offset: 2px;
            z-index: 3;
        }
        &:focus-visible {
            outline: 2px solid var(--orange);
            outline-offset: 2px;
        }
    }
    /* Route colour: a grey render with a colour mask multiplied on top keeps the shading. */
    .tint {
        isolation: isolate;
        & img {
            filter: grayscale(1) brightness(1.75) contrast(1.1);
        }
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--hold, var(--orange));
            mask: var(--src) center / contain no-repeat;
            mix-blend-mode: multiply;
            rotate: var(--r, 0deg);
            pointer-events: none;
            transition: background-color var(--t2) var(--ease);
        }
    }
    .wb-h {
        &.drag {
            cursor: grabbing;
            z-index: 4;
            filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.5));
            scale: 1.06;
        }
        &.new {
            animation: wbin var(--t2) var(--ease) both;
        }
    }
    @keyframes wbin {
        from {
            opacity: 0;
            scale: 1.5;
        }
    }
    .wb-h.pop img,
    .wb-h.pop::after {
        animation: wbpop var(--t2) var(--ease);
    }
    @keyframes wbpop {
        35% {
            scale: 1.22;
        }
    }
    .wb-tools {
        position: absolute;
        z-index: 6;
        transform: translate(-50%, -50%);
        display: flex;
        background: #fff;
        border-radius: 18px;
        padding: 3px;
        box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
        cursor: default;
        &.below {
            translate: 0 calc(100% + 44px);
        }
        & button {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            color: var(--ink);
        }
        & button:hover {
            background: var(--concrete);
        }
        & svg {
            width: 15px;
            height: 15px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
    }
    .wb-tools[hidden],
    .wb-top[hidden] {
        display: none;
    }
    .wb-line {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        & polyline {
            fill: none;
            stroke: #fff;
            stroke-width: 5;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dashoffset: var(--len, 0);
            opacity: 0.9;
        }
        & polyline.go {
            animation: wbdraw var(--dur, 3s) linear forwards;
        }
    }
    @keyframes wbdraw {
        from {
            stroke-dashoffset: var(--len);
        }
        to {
            stroke-dashoffset: 0;
        }
    }
    .wb-top {
        position: absolute;
        z-index: 5;
        transform: translate(-50%, -50%);
        background: var(--orange);
        color: var(--graphite);
        font-weight: 850;
        font-style: oblique 12deg;
        text-transform: uppercase;
        font-size: 1.125rem;
        padding: 4px 12px;
        border-radius: 3px;
        animation: wbin var(--t2) var(--ease) both;
        pointer-events: none;
    }
    .wb-hint {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1rem;
        pointer-events: none;
    }
    .wb-ghost {
        display: block;
        position: fixed;
        z-index: 200;
        transform: translate(-50%, -50%);
        pointer-events: none;
        mix-blend-mode: normal !important;
        filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.4));
    }
    .wb-flash {
        position: absolute;
        z-index: 3;
        transform: translate(-50%, -100%);
        white-space: nowrap;
        background: var(--graphite);
        color: #fff;
        font-size: 0.78125rem;
        font-weight: 600;
        padding: 6px 10px;
        border-radius: 14px;
        pointer-events: none;
        box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
        animation: wbflash 2.2s var(--ease) both;
        & small {
            font-weight: 500;
            opacity: 0.7;
            margin-left: 6px;
        }
    }
    @keyframes wbflash {
        0% {
            opacity: 0;
            margin-top: 6px;
        }
        10% {
            opacity: 1;
            margin-top: 0;
        }
        80% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    .wb-side {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 22px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .wb-cfg {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .wb-l {
        font-size: 0.84375rem;
        font-weight: 600;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        & span {
            color: var(--soft);
            font-weight: 450;
        }
        & i {
            font-style: normal;
        }
        .wb-lt,
        .wb-lt span {
            color: inherit;
            font-weight: inherit;
        }
        .wb-only {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--soft);
        }
    }
    .wb-pal {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        & button {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 8px 2px 8px;
            border-radius: 3px;
            background: var(--graphite);
            color: #fff;
            border: 2px solid var(--graphite);
            transition:
                border-color var(--t1) var(--ease),
                background var(--t1) var(--ease);
            touch-action: none;
        }
        & button b {
            font-size: 0.78125rem;
            font-weight: 600;
        }
        & button small {
            font-size: 0.65625rem;
            font-weight: 500;
            opacity: 0.62;
            line-height: 1.1;
        }
    }
    .wb-pal button img,
    .wb-ghost img {
        width: 52px;
        height: 52px;
        mix-blend-mode: normal !important;
        pointer-events: none;
    }
    .wb-pi {
        position: relative;
        display: block;
    }
    .wb-ghost img {
        display: block;
        width: 100%;
        height: auto;
    }
    .wb-pal {
        & button span {
            position: absolute;
            right: 4px;
            top: 4px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            background: rgba(255, 255, 255, 0.16);
            font-size: 0.6875rem;
            font-weight: 600;
            display: grid;
            place-items: center;
            padding: 0 4px;
        }
        & button:hover {
            border-color: rgba(255, 255, 255, 0.5);
        }
        & button.on {
            border-color: var(--orange);
        }
        & button.on span {
            background: var(--orange);
            color: var(--graphite);
        }
    }
    .wb-sw {
        margin-bottom: 0;
        gap: 8px;
        .sw {
            width: 26px;
            height: 26px;
        }
        .sw.on::after {
            inset: -4px;
        }
    }
    .wb-sum {
        border-top: 1px solid var(--line);
        padding-top: 18px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    #wbsum {
        flex: 1;
        margin-bottom: 14px;
    }
    .wb-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.84375rem;
        & span {
            color: var(--soft);
        }
        & b {
            font-weight: 600;
            text-align: right;
        }
        &.tot {
            border-bottom: 0;
        }
        &.tot span {
            color: var(--ink);
            font-weight: 600;
        }
    }
    .wb-grp {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 34px;
        align-items: center;
        column-gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.84375rem;
        & b {
            font-weight: 600;
        }
        & small {
            text-align: right;
        }
    }
    .wb-bar {
        display: flex;
        gap: 3px;
        width: 72px;
        & i {
            flex: 1;
            height: 5px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--orange) calc(var(--f) * 100%), rgba(33, 33, 33, 0.12) 0);
        }
    }
    .wb-sum .btn:disabled,
    .wb-acts button:disabled {
        opacity: 0.35;
        cursor: default;
    }
    .wb-acts {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        & button {
            height: 36px;
            padding: 0 12px;
            border: 1px solid var(--line);
            border-radius: 18px;
            font-size: 0.8125rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            transition:
                border-color var(--t1) var(--ease),
                background var(--t1) var(--ease),
                color var(--t1) var(--ease);
        }
        & button:hover:not(:disabled) {
            border-color: var(--ink);
        }
        #wbclimb {
            background: var(--graphite);
            color: #fff;
            border-color: var(--graphite);
        }
        #wbclimb:hover:not(:disabled) {
            background: var(--orange);
            border-color: var(--orange);
            color: var(--graphite);
        }
        & svg {
            width: 11px;
            height: 11px;
            fill: currentColor;
        }
        .wbi {
            width: 15px;
            height: 15px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        #wbrand .wbi,
        #wbclear .wbi {
            display: none;
        }
    }
    .wallsec {
        .wb-acts {
            margin-top: 16px;
        }
        .wb-acts button {
            height: 42px;
            padding: 0 18px;
            font-size: 0.875rem;
            background: #fff;
        }
        .wb-acts #wbclimb {
            background: var(--graphite);
        }
    }
    /* Desktop: full-width wall with the heading, buttons and panel on top. */
    @media (min-width: 1101px) {
        .wallsec {
            padding: 0;
        }
        .wbx {
            --gut: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
            --pw: 360px;
        }
        .wb-headx {
            position: absolute;
            z-index: 3;
            left: var(--gut);
            top: 48px;
            right: calc(var(--gut) + var(--pw) + 56px);
            color: #fff;
            pointer-events: none;
            .lead {
                color: #cfd2d2;
                max-width: 52ch;
            }
        }
        .wb-wall {
            aspect-ratio: auto;
            height: clamp(800px, 52vw, 900px);
            border-radius: 0;
            background-size:
                max(4%, 56px) 12.5%,
                25% 100%,
                100% 100%,
                100% 100%,
                100% 100%;
            background-position:
                28px 6.25%,
                0 0,
                0 0,
                0 0,
                0 0;
            &::before {
                content: '';
                position: absolute;
                inset: 0;
                background: linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0.45),
                    rgba(0, 0, 0, 0) 30%,
                    rgba(0, 0, 0, 0) 80%,
                    rgba(0, 0, 0, 0.35)
                );
                pointer-events: none;
            }
            &::after {
                content: '';
                position: absolute;
                top: 0;
                bottom: 0;
                right: 0;
                width: calc(var(--gut) + var(--pw) + 12px);
                background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35) 30%);
                pointer-events: none;
            }
        }
        .wb-play {
            top: 212px;
            bottom: 104px;
            left: calc(var(--gut) - 40px);
            right: calc(var(--gut) + var(--pw) + 32px);
        }
        .wb-side {
            position: absolute;
            top: 50%;
            right: var(--gut);
            width: var(--pw);
            max-height: calc(100% - 56px);
            overflow: hidden;
            min-height: 0;
            border: 0;
            box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
            transform: translateY(-50%);
        }
        .wb-cfg {
            flex: none;
        }
        .wb-sum {
            flex: 1 1 auto;
            min-height: 0;
        }
        #wbsum {
            flex: 1 1 auto;
            min-height: 0;
            overflow: auto;
            overscroll-behavior: contain;
            margin-right: -8px;
            padding-right: 8px;
        }
        #wbadd {
            flex: none;
            margin-top: 14px;
        }
        .wallsec {
            .wb-acts {
                position: absolute;
                z-index: 3;
                left: var(--gut);
                bottom: 32px;
                margin: 0;
            }
            .wb-acts button {
                border-color: transparent;
            }
            .wb-acts #wbclimb {
                background: var(--orange);
                color: var(--graphite);
            }
            .wb-acts #wbclimb:hover:not(:disabled) {
                background: var(--orange-h);
            }
            .wb-acts button:disabled {
                opacity: 0.45;
            }
        }
    }
    /* Tablet: everything stacks in one column. */
    @media (max-width: 1100px) {
        .wallsec {
            display: flex;
            flex-direction: column;
            > .wrap {
                width: 100%;
            }
            > .wrap:last-child {
                order: 3;
            }
        }
        .wbx {
            padding: 0 var(--pad);
            display: contents;
        }
        .wb-headx {
            order: 1;
            margin: 0 var(--pad) 22px;
        }
        .wb-wall {
            aspect-ratio: 1.3/1;
            order: 2;
            width: auto;
            margin: 0 var(--pad);
            align-self: stretch;
        }
        .wallsec .wb-acts {
            order: 3;
            margin: 14px var(--pad) 0;
        }
        .wb-side {
            order: 4;
            margin: 14px var(--pad) 0;
        }
    }
    @media (max-width: 760px) {
        /* Phone: wall, buttons and palette share one grid cell; the summary sits below. */
        .wbx {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            padding: 0;
        }
        .wb-headx {
            grid-row: 1;
        }
        .wallsec {
            .wb-wall {
                grid-area: 2/1;
                margin: 0;
                border-radius: 0;
                aspect-ratio: auto;
                height: min(88svh, 740px);
                min-height: 600px;
                box-shadow: none;
            }
            .wb-play {
                top: 64px;
                bottom: 164px;
                left: 0;
                right: 0;
            }
            .wb-acts {
                grid-area: 2/1;
                align-self: start;
                z-index: 4;
                margin: 12px;
                display: flex;
                gap: 8px;
                flex-wrap: nowrap;
            }
            .wb-acts button {
                height: 42px;
                border-radius: 21px;
                border: 0;
                background: rgba(255, 255, 255, 0.14);
                color: #fff;
                -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
            }
            .wb-acts #wbclimb {
                background: var(--orange);
                color: var(--graphite);
                margin-right: auto;
                padding: 0 18px;
            }
            .wb-acts #wbrand,
            .wb-acts #wbclear {
                width: 42px;
                padding: 0;
                justify-content: center;
            }
            .wb-acts #wbrand span,
            .wb-acts #wbclear span {
                display: none;
            }
            .wb-acts #wbrand .wbi,
            .wb-acts #wbclear .wbi {
                display: block;
            }
            .wb-acts button:disabled {
                opacity: 0.4;
            }
        }
        .wb-hint {
            font-size: 0.9375rem;
            padding: 0 24px;
        }
        .wb-l i {
            display: none;
        }
        .wallsec {
            .wb-side {
                display: contents;
            }
            .wb-cfg {
                grid-area: 2/1;
                align-self: end;
                z-index: 4;
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                gap: 10px;
                min-width: 0;
                padding: 12px 12px 14px;
                background: rgba(26, 26, 25, 0.9);
                -webkit-backdrop-filter: blur(12px);
                backdrop-filter: blur(12px);
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                color: #fff;
            }
            .wb-cfg .wb-l {
                display: none;
            }
            .wb-cfg .wb-pal {
                gap: 6px;
            }
            .wb-cfg .wb-pal button {
                padding: 6px 2px 7px;
                background: rgba(255, 255, 255, 0.06);
                border-color: transparent;
                border-radius: 6px;
            }
            .wb-cfg .wb-pal button.on {
                border-color: var(--orange);
                background: rgba(232, 100, 52, 0.14);
            }
            .wb-cfg .wb-pal button img {
                width: 40px;
                height: 40px;
            }
            .wb-cfg .wb-pal button b {
                font-size: 0.75rem;
            }
            .wb-cfg .wb-pal button small {
                display: none;
            }
            .wb-cfg .wb-sw {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 8px;
                padding: 4px 4px 2px;
                scrollbar-width: none;
                justify-content: space-between;
            }
            .wb-cfg .wb-sw::-webkit-scrollbar {
                display: none;
            }
            .wb-cfg .wb-sw .sw {
                flex: none;
                width: 26px;
                height: 26px;
                box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
            }
            .wb-cfg .wb-sw .sw.on::after {
                border-color: #fff;
            }
            .wb-sum {
                grid-row: 3;
                margin: 16px var(--pad) 0;
                padding: 20px;
                background: #fff;
                border: 1px solid var(--line);
                border-radius: 4px;
            }
        }
    }
    @media (max-width: 600px) {
        .wb-wall {
            aspect-ratio: 0.82/1;
            background-size:
                12.5% 8.2%,
                100% 100%,
                100% 100%,
                100% 100%,
                100% 100%;
        }
        .wb-h {
            scale: 1.9;
            &.drag {
                scale: 2;
            }
        }
    }
    /* Where to buy: three banners, a swipe row with dots on phones */
    .wsec {
        padding-top: clamp(96px, 10vw, 150px);
        .shead p {
            color: var(--soft);
        }
    }
    .wban {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .wban-dots {
        display: none;
    }
    .wbn {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        border-radius: 4px;
        min-height: clamp(380px, 32vw, 460px);
        padding: clamp(24px, 2.6vw, 36px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .wbn-g {
        background: var(--graphite);
        color: #fff;
    }
    .wbn-o {
        background: var(--orange);
        color: var(--graphite);
    }
    .wbn-m {
        background: var(--mint);
        color: var(--graphite);
    }
    .wbn-k {
        font-size: 0.8125rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.14);
    }
    .wbn-o .wbn-k,
    .wbn-m .wbn-k {
        background: rgba(33, 33, 33, 0.1);
    }
    .wbn {
        & h3 {
            font-size: clamp(1.5rem, 2.2vw, 2rem);
            font-weight: 600;
            letter-spacing: -0.025em;
            line-height: 1.1;
            max-width: 14ch;
            margin-top: 4px;
        }
        & p {
            font-size: 0.9375rem;
            line-height: 1.45;
            max-width: 30ch;
            opacity: 0.78;
        }
    }
    .wbn-go {
        margin-top: auto;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        height: 46px;
        padding: 0 20px;
        border-radius: 23px;
        font-weight: 600;
        font-size: 0.90625rem;
        background: #fff;
        color: var(--graphite);
        transition:
            background var(--t1) var(--ease),
            color var(--t1) var(--ease),
            gap var(--t1) var(--ease);
        & span {
            display: inline;
        }
        & svg {
            width: 14px;
            height: 14px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
    }
    .wbn-g .wbn-go {
        background: var(--orange);
    }
    .wbn-o .wbn-go,
    .wbn-m .wbn-go {
        background: var(--graphite);
        color: #fff;
    }
    .wbn {
        &:hover .wbn-go {
            gap: 14px;
        }
        &.has-ph {
            padding: 0;
            gap: 0;
            min-height: 0;
        }
        &.has-ph:hover .wbn-ph img {
            transform: scale(1.05);
        }
    }
    .wbn-ph {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 4/3;
        overflow: hidden;
        background: #fff;
        & img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 6%;
            mix-blend-mode: normal !important;
            transition: transform var(--t3) var(--ease);
        }
        &.cover img {
            object-fit: cover;
            padding: 0;
        }
        .wbn-k {
            position: absolute;
            left: 16px;
            top: 16px;
            background: rgba(255, 255, 255, 0.92);
            color: var(--graphite);
        }
    }
    .wbn {
        &.has-ph .wbn-tx {
            padding: 24px 26px 0;
        }
        &.has-ph .wbn-tx h3 {
            margin: 0 0 10px;
        }
        &.has-ph .wbn-go {
            margin: 22px 26px 26px;
        }
    }
    @media (max-width: 900px) {
        .wban {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            margin: 0 calc(-1 * var(--pad));
            padding: 0 var(--pad) 4px;
            scroll-padding-left: var(--pad);
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            &::-webkit-scrollbar {
                display: none;
            }
            > .wbn {
                flex: 0 0 min(82vw, 420px);
                scroll-snap-align: start;
            }
        }
        .wbn {
            min-height: 300px;
            &.has-ph .wbn-tx {
                padding: 20px 20px 0;
            }
            &.has-ph .wbn-go {
                margin: 18px 20px 20px;
            }
            & h3 {
                font-size: 1.5rem;
            }
        }
        .wban-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 18px;
            & i {
                width: 8px;
                height: 8px;
                border-radius: 4px;
                background: rgba(33, 33, 33, 0.2);
                transition:
                    width var(--t2) var(--ease),
                    background var(--t2) var(--ease);
            }
            & i.on {
                width: 24px;
                background: var(--graphite);
            }
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .hero h1,
        .hero-bot,
        .hero-eyebrow,
        .hs-img,
        .hs-body {
            animation: none;
        }
        .wb-line polyline.go {
            animation: none;
            stroke-dashoffset: 0;
        }
        .wb-flash {
            animation: none;
            opacity: 1;
        }
    }
}
