/* Explain: Styles for the BST apparel collection hero, feature cards, and form. */
/* BST apparel collection: rotating NYC model scenes, design cards, and the early-access notify form. */

.bst-hero {
    position: relative;
    isolation: isolate;
    background: var(--background-color);
}

.bst-city {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #0b0b0d 0%, #121215 46%, #1a1208 100%);
}

.bst-models-frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bst-models {
    position: absolute;
    inset: 0;
    transform: translateY(15%) scale(1.08);
    transform-origin: center top;
}

.bst-scene {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(var(--scene-shift-x, 0px), var(--scene-shift-y, 0px), 0) scale(var(--scene-scale, 1));
    transition: opacity 1.8s ease, visibility 0s linear 1.8s;
}

.bst-scene.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.8s ease, visibility 0s linear 0s;
}

@media (max-width: 1023px) {
    .bst-models-frame {
        inset: 0 0 auto 0;
        height: 78vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bst-models {
        position: absolute;
        inset: 0;
        width: 100%;
        margin: 0;
        transform: none !important;
        transform-origin: center center;
    }

    .bst-scene {
        display: flex;
        align-items: center;
        justify-content: center;
        transform: none !important;
        --scene-mobile-x: 0px !important;
        --scene-mobile-y: 0px !important;
        --scene-mobile-scale: 1 !important;
        --drift-from-x: 0% !important;
        --drift-from-y: 0% !important;
        --drift-to-x: 0% !important;
        --drift-to-y: 0% !important;
        --zoom-from: 1 !important;
        --zoom-to: 1 !important;
    }

    .bst-scene.bst-scene-down .bst-model.bst-model-down {
        object-position: center center !important;
    }

    .bst-scene .bst-model {
        position: absolute;
        inset: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
        animation: none !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 18%, #000 70%, rgba(0, 0, 0, 0.45) 88%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 16%, #000 84%, rgba(0, 0, 0, 0.35) 95%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 18%, #000 70%, rgba(0, 0, 0, 0.45) 88%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 16%, #000 84%, rgba(0, 0, 0, 0.35) 95%, transparent 100%);
        mask-composite: intersect;
    }

    .bst-scene .bst-model.bst-fade-right,
    .bst-scene .bst-model.bst-trim-right {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 18%, #000 82%, rgba(0, 0, 0, 0.35) 95%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 16%, #000 84%, rgba(0, 0, 0, 0.35) 95%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 18%, #000 82%, rgba(0, 0, 0, 0.35) 95%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 16%, #000 84%, rgba(0, 0, 0, 0.35) 95%, transparent 100%);
        mask-composite: intersect;
    }
}

.bst-model {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    transform-origin: center center;
    filter: brightness(1.05) saturate(1.06) contrast(1.02);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%);
    animation: bst-model-drift 9s ease-in-out infinite alternate;
    will-change: transform;
}

.bst-model.bst-fade-right {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%), linear-gradient(to right, #000 14%, rgba(0, 0, 0, 0.96) 30%, rgba(0, 0, 0, 0.86) 44%, rgba(0, 0, 0, 0.72) 56%, rgba(0, 0, 0, 0.54) 68%, rgba(0, 0, 0, 0.34) 79%, rgba(0, 0, 0, 0.16) 89%, rgba(0, 0, 0, 0.05) 95%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%), linear-gradient(to right, #000 14%, rgba(0, 0, 0, 0.96) 30%, rgba(0, 0, 0, 0.86) 44%, rgba(0, 0, 0, 0.72) 56%, rgba(0, 0, 0, 0.54) 68%, rgba(0, 0, 0, 0.34) 79%, rgba(0, 0, 0, 0.16) 89%, rgba(0, 0, 0, 0.05) 95%, rgba(0, 0, 0, 0) 100%);
    mask-composite: intersect;
}

@keyframes bst-model-drift {
    0% {
        transform: translate3d(var(--drift-from-x, -2.2%), var(--drift-from-y, 1.8%), 0) scale(var(--zoom-from, 1.1));
    }
    100% {
        transform: translate3d(var(--drift-to-x, 2.4%), var(--drift-to-y, -2%), 0) scale(var(--zoom-to, 1.2));
    }
}

.bst-scenery {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    display: block;
    height: 100%;
    width: 62%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    filter: brightness(0.66) saturate(1.08);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 22%, rgba(0, 0, 0, 0.7) 48%, rgba(0, 0, 0, 0.26) 72%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 22%, rgba(0, 0, 0, 0.7) 48%, rgba(0, 0, 0, 0.26) 72%, transparent 100%);
    animation: bst-scenery-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes bst-scenery-drift {
    0% {
        transform: translate3d(-2.5%, 1%, 0) scale(1.05);
    }
    100% {
        transform: translate3d(2.6%, -1.4%, 0) scale(1.12);
    }
}

.bst-scenery-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 0;
    display: block;
    height: 100%;
    width: 62%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    filter: brightness(0.66) saturate(1.08);
    -webkit-mask-image: linear-gradient(to left, #000 0%, #000 22%, rgba(0, 0, 0, 0.7) 48%, rgba(0, 0, 0, 0.26) 72%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, #000 22%, rgba(0, 0, 0, 0.7) 48%, rgba(0, 0, 0, 0.26) 72%, transparent 100%);
    animation: bst-scenery-drift-right 24s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes bst-scenery-drift-right {
    0% {
        transform: translate3d(2.5%, 1%, 0) scale(1.05);
    }
    100% {
        transform: translate3d(-2.6%, -1.4%, 0) scale(1.12);
    }
}

.bst-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.74) 0%, rgba(24, 24, 24, 0.32) 26%, rgba(24, 24, 24, 0.46) 52%, rgba(24, 24, 24, 1) 100%);
}



@media (min-width: 1024px) {
    .bst-models {
        inset: 0;
        width: 100%;
        margin: 0;
        transform: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .bst-model {
        object-fit: cover;
        object-position: center center;
    }

    .bst-model.bst-model-down {
        object-position: center 25%;
    }

    .bst-scene-down {
        --scene-shift-x: -40px;
        --scene-shift-y: 210px;
        --scene-scale: 1.08;
    }

    .bst-scrim {
        background:
            linear-gradient(180deg, rgba(24, 24, 24, 0) 58%, rgba(24, 24, 24, 0.5) 82%, rgba(24, 24, 24, 1) 100%),
            linear-gradient(90deg, rgba(24, 24, 24, 0.84) 0%, rgba(24, 24, 24, 0.6) 26%, rgba(24, 24, 24, 0.2) 52%, rgba(24, 24, 24, 0.03) 71%, rgba(24, 24, 24, 0.14) 100%);
    }
}

.bst-copy {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
    padding-top: 50vh;
}

@media (min-width: 1024px) {
    .bst-copy {
        padding-top: 0;
    }
}

.bst-rule {
    display: block;
    width: 5rem;
    height: 3px;
    margin: 1.75rem 0;
    border-radius: 999px;
    background: var(--accent-color);
}

.bst-coming {
    margin-top: 0.6rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--text-color);
}

.bst-designs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .bst-designs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bst-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--surface-color);
    transition: border-color 300ms ease, transform 300ms ease;
}

.bst-card:hover,
.bst-card:focus-within {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.bst-card-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0d0d0d;
}

.bst-card-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 900ms ease;
}

.bst-card:hover .bst-card-frame img {
    transform: scale(1.05);
}

.bst-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.bst-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem;
}

.bst-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-color);
    transition: color 220ms ease;
}

.bst-card-cta:hover,
.bst-card-cta:focus-visible {
    color: var(--accent-hover);
}

@media (prefers-reduced-motion: reduce) {
    .bst-model,
    .bst-scenery,
    .bst-scenery-right,
    .bst-card,
    .bst-card-frame img {
        animation: none;
        transition: none;
    }

    .bst-scene {
        transition: none;
    }
}

.bst-drop-mark {
    display: block;
    width: 2rem;
    height: 3.56rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .bst-drop-mark {
        width: 2.4rem;
        height: 4.27rem;
    }
}



@media (max-width: 1023px) {
    .bst-scene {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bst-scene .bst-model.bst-fade-edges {
        position: relative;
        inset: auto;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 18%, #000 82%, rgba(0, 0, 0, 0.35) 95%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 16%, #000 84%, rgba(0, 0, 0, 0.35) 95%, transparent 100%) !important;
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 18%, #000 82%, rgba(0, 0, 0, 0.35) 95%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 16%, #000 84%, rgba(0, 0, 0, 0.35) 95%, transparent 100%) !important;
        mask-composite: intersect;
    }
}