.pici-icons,
.pici-icons * {
    box-sizing: border-box;
}

.pici-icons {
    --pici-orange: #f47a12;
    --pici-white: #f8f8f9;
    --pici-muted: #d6d1d8;
    --pici-navy: #000a2d;
    --pici-rail: #263767;
    --pici-gap: clamp(24px, 3.3vw, 68px);
    --pici-visible: 4;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--pici-white);
    background-color: var(--pici-navy);
    background-image: url('../images/backdrops/stage-background.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Roboto, sans-serif;
    padding: 30px 0 28px;
}

.pici-icons::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(0, 10, 45, 0.26);
}

.pici-shell {
    width: calc(100% - clamp(40px, 9.7vw, 200px));
    max-width: 1660px;
    margin: 0 auto;
}

.pici-header {
    margin: 0 0 8px;
}

.pici-title {
    margin: 0;
    color: var(--pici-white);
    font: 900 clamp(40px, 3.25vw, 66px) / 1.02 Roboto, sans-serif;
    letter-spacing: -0.025em;
}

.pici-subtitle {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--pici-muted);
    font: 400 clamp(17px, 1.08vw, 22px) / 1.4 Roboto, sans-serif;
}

.pici-carousel {
    position: relative;
}

.pici-viewport {
    width: calc(100% - 112px);
    max-width: 1480px;
    margin: 0 56px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.pici-viewport.is-dragging {
    cursor: grabbing;
}

.pici-track {
    display: flex;
    align-items: stretch;
    gap: var(--pici-gap);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translate3d(0, 0, 0);
    transition: transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.pici-slide {
    flex: 0 0 calc((100% - (var(--pici-visible) - 1) * var(--pici-gap)) / var(--pici-visible));
    min-width: 0;
}

.pici-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 8px 0;
    border: 2px solid transparent;
    border-radius: clamp(28px, 2.2vw, 38px);
    color: var(--pici-white);
    text-decoration: none;
    outline: none;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.pici-card:hover,
.pici-card:focus,
.pici-card:active,
.pici-card:visited {
    color: var(--pici-white);
    text-decoration: none;
}

.pici-card:hover,
.pici-card:focus-visible {
    border-color: var(--pici-orange);
    background-color: rgba(0, 10, 45, 0.34);
}

.pici-control:focus-visible {
    outline: 3px solid var(--pici-orange);
    outline-offset: 5px;
}

.pici-card__portal {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 23;
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(0, 10, 45, 0.14);
    border-radius: 999px 999px 0 0;
    background: #ffffff;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(0, 10, 45, 0.08);
}

.pici-card__product {
    position: absolute;
    inset: 3%;
    display: block;
    width: 94%;
    height: 94%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    transition: transform 360ms ease;
}

.pici-card:hover .pici-card__product,
.pici-card:focus-visible .pici-card__product {
    transform: scale(1.025);
}

.pici-card__product--enlarge {
    transform: scale(1.22);
}

.pici-card:hover .pici-card__product--enlarge,
.pici-card:focus-visible .pici-card__product--enlarge {
    transform: scale(1.25);
}

.pici-card__product--light {
    filter: drop-shadow(0 12px 18px rgba(0, 10, 45, 0.52)) drop-shadow(0 0 2px rgba(0, 10, 45, 0.66));
}

.pici-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: start;
    gap: 10px;
    min-height: 62px;
    padding-top: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pici-card__name {
    font: 600 clamp(19px, 1.12vw, 22px) / 1.25 Roboto, sans-serif;
    text-wrap: balance;
}

.pici-card__arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--pici-orange);
    font-size: 18px;
    transition: transform 220ms ease;
}

.pici-card:hover .pici-card__arrow,
.pici-card:focus-visible .pici-card__arrow {
    transform: translateX(4px);
}

.pici-control {
    position: absolute;
    z-index: 3;
    top: 44%;
    display: grid;
    place-items: center;
    width: clamp(54px, 4vw, 80px);
    height: clamp(54px, 4vw, 80px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    color: var(--pici-orange);
    background: rgba(0, 10, 45, 0.62);
    box-shadow: none;
    font-size: clamp(20px, 1.4vw, 28px);
    line-height: 1;
    transform: translateY(-50%);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
    cursor: pointer;
}

.pici-control:hover {
    color: #ffffff;
    border-color: var(--pici-orange);
    background: rgba(244, 122, 18, 0.9);
}

.pici-control--previous {
    left: max(-104px, calc((100vw - 100%) / -2 + 12px));
}

.pici-control--next {
    right: max(-104px, calc((100vw - 100%) / -2 + 12px));
}

.pici-status {
    display: block;
    width: min(100%, 1480px);
    margin: 27px 56px 0;
}

.pici-progress {
    display: block;
    width: 100%;
    height: 2px;
    overflow: hidden;
    background: var(--pici-rail);
}

.pici-progress__value {
    display: block;
    width: 10%;
    height: 100%;
    background: #fa910f;
    transform-origin: left center;
    transition: width 420ms ease;
}

.pici-counter {
    display: none;
}

.pici-wrap-reset .pici-viewport {
    opacity: 0.84;
}

@media (max-width: 1199.98px) {
    .pici-icons {
        --pici-visible: 2;
        --pici-gap: 32px;
    }

    .pici-shell {
        width: 100%;
        padding-inline: 24px;
    }

    .pici-carousel {
        padding-inline: 62px;
    }

    .pici-viewport,
    .pici-status {
        width: 100%;
        max-width: 704px;
        margin-left: auto;
        margin-right: auto;
    }

    .pici-control--previous { left: 0; }
    .pici-control--next { right: 0; }
}

@media (max-width: 767.98px) {
    .pici-icons {
        --pici-visible: 1;
        --pici-gap: 22px;
        padding: 38px 0 26px;
        background-position: center;
    }

    .pici-icons::before {
        background: rgba(0, 10, 45, 0.42);
    }

    .pici-shell {
        width: 100%;
        padding-inline: 20px;
    }

    .pici-header {
        margin-bottom: 22px;
    }

    .pici-title {
        font-size: clamp(38px, 11vw, 44px);
    }

    .pici-subtitle {
        font-size: 17px;
    }

    .pici-carousel {
        padding-inline: 0;
    }

    .pici-viewport {
        max-width: 300px;
    }

    .pici-card__portal {
        max-width: 300px;
    }

    .pici-card__meta {
        min-height: 64px;
    }

    .pici-card__name {
        font-size: 19px;
    }

    .pici-status {
        max-width: 100%;
        margin-top: 30px;
        padding-inline: 58px;
    }

    .pici-control {
        top: auto;
        bottom: -3px;
        width: 46px;
        height: 46px;
        transform: none;
        font-size: 18px;
    }
}

@media (max-width: 359.98px) {
    .pici-shell {
        padding-inline: 16px;
    }

    .pici-viewport,
    .pici-card__portal {
        max-width: 278px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pici-track,
    .pici-card__product,
    .pici-card__arrow,
    .pici-progress__value,
    .pici-control {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
