/* Explain: Styles for the horizontally scrolling BST design marquee. */
/* ==========================================================================
   BST design marquee - one rounded gold box per design, and nothing else.

   There are no arrows and nothing to scroll by hand: the run slides along,
   slowly and without end. The same set of cards is laid down three times inside
   the strip and the whole line is drawn across by exactly one of those groups,
   so the next group arrives precisely where the first one began - the drift
   never stops, never jumps, and never shows a seam.

   Every design is ONE rounded gold box holding a single model, and the box is
   the only thing ever drawn: no panel sits behind it, no shadow is thrown by
   it, no second outline is drawn inside it, and no inner glow gathers in it.
   The models are the clean cut-outs from the BST street shoot, so no picture
   carries a printed frame or a title label of its own, and the gold rim of the
   box is the only frame a design wears.
   ========================================================================== */

.bst-marquee {
    position: relative;
    overflow: hidden;
    /* Generous clear room is kept above and below the run, so a gold box can
       swell up and settle back without its top or bottom rim ever reaching the
       cut of the block - the whole frame, rim included, stays in view at every
       point of its breath, on every screen size. */
    padding-block: clamp(2.5rem, 5vw, 3.75rem);
    /* Both ends of the strip melt into the page, so a card is never chopped off
       flat at the edge of the block - the run simply appears and disappears.
       The fade is fixed to exactly the block's own size and never repeats, so it
       only ever works sideways and can never darken the top or bottom of a
       frame. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

.bst-marquee-track {
    display: flex;
    width: max-content;
    animation: bst-marquee-drift 150s linear infinite;
    will-change: transform;
}

/* One full group of the run. The trailing pad repeats the gap, so the last card
   of a group sits exactly as far from the first card of the next group as any
   two cards inside a group. */
.bst-marquee-group {
    display: flex;
    align-items: stretch;
    gap: clamp(0.9rem, 2vw, 1.6rem);
    padding-right: clamp(0.9rem, 2vw, 1.6rem);
}

/* The line is drawn across by exactly one whole group, so the seam lands back
   where it started and the drift reads as endless. */
@keyframes bst-marquee-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-33.3333%, 0, 0);
    }
}

/* A visitor who tabs into the run holds it where it stands, so a card can be
   reached and opened from the keyboard without chasing it across the block. */
.bst-marquee:focus-within .bst-marquee-track {
    animation-play-state: paused;
}

/* ==========================================================================
   The card draws nothing - no panel, no edge, no rounding, no shadow
   ========================================================================== */

.bst-marquee .bst-marquee-card {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: clamp(11.5rem, 58vw, 15.5rem);
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
    transition: none;
}

/* Resting the pointer on a design never draws anything around it, never lifts
   it, and never adds a second outline. */
.bst-marquee .bst-marquee-card:hover,
.bst-marquee .bst-marquee-card:focus-within {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
}

/* The gold rim and travelling glint of the ordinary cards are switched off
   here, so no second frame can ever appear around a design. */
.bst-marquee .bst-marquee-card::before,
.bst-marquee .bst-marquee-card::after {
    content: none;
    display: none;
}

/* ==========================================================================
   The one box - the model held inside a single rounded gold frame
   ========================================================================== */

.bst-marquee .bst-marquee-card .bst-card-frame {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 0;
    border-radius: 1.4rem;
    /* A quiet depth inside the box only: the dark behind the model is held down
       near true black now — just the faintest lift toward the top and a deeper
       black at the base — so the figure stands on real night instead of on a
       pale grey panel, without a single extra line or shape being drawn. */
    background:
        radial-gradient(120% 86% at 50% 8%, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(180deg, #0b0b0b 0%, #030303 100%);
    /* The box carries no light of its own and no halo: it sits on one small,
       soft grey shadow around its outside, so each design lifts a step off the
       night street behind it without anything warm ever being drawn there. */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(168, 168, 168, 0.16);
    transform-origin: center center;
    transform: scale(1);
    transition: transform 520ms cubic-bezier(0.33, 0, 0.2, 1);
    will-change: transform;
}

/* The travelling highlight on the gold band. The angle is animated from the
   stylesheet, so the conic highlight can slip around the rim of the box while
   the rest of the drifting strip carries on untouched. */
@property --nd-marquee-glint {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* One slow pass of light around the rim, over and over, for as long as a
   design is held under the pointer. */
@keyframes nd-marquee-glint-travel {
    to {
        --nd-marquee-glint: 360deg;
    }
}

/* The gold band of the box: one warm polished rim laid on the frame's own
   rounded edge, so each model sits inside a single gold box. */
.bst-marquee .bst-marquee-card .bst-card-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;
    mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-clip: content-box, border-box;
    mask-composite: exclude;
    background-image: linear-gradient(168deg, #fff4c9 0%, #e6c05c 15%, #a8791d 38%, #7d5a12 50%, #cf9f2f 66%, #f6e5a2 85%, #b8891f 100%);
    /* The band rests a step dimmed and comes up to its full polished gold as the
       pointer arrives, so the frame simply highlights. */
    opacity: 0.78;
    transition: opacity 420ms ease;
}

/* The design warms from inside: a soft field of golden light — a few rounded
   pools of warm white and gold resting over the dark of the square, with the
   box itself glowing faintly toward its own rim — gathers over the model while
   the pointer rests on it, and sinks away just as gently when the pointer
   leaves. All of the light stays inside the frame's own square: nothing is
   redrawn around the box, so the drifting strip keeps gliding perfectly smoothly
   while the glimmer comes up. */
.bst-marquee .bst-marquee-card .bst-card-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background-image:
        radial-gradient(26% 21% at 27% 76%, rgba(255, 248, 222, 0.26) 0%, rgba(255, 248, 222, 0.09) 44%, rgba(255, 248, 222, 0) 74%),
        radial-gradient(20% 17% at 67% 60%, rgba(255, 238, 192, 0.24) 0%, rgba(255, 238, 192, 0.08) 46%, rgba(255, 238, 192, 0) 76%),
        radial-gradient(15% 13% at 45% 44%, rgba(255, 253, 240, 0.22) 0%, rgba(255, 253, 240, 0.07) 48%, rgba(255, 253, 240, 0) 78%),
        radial-gradient(11% 9% at 73% 29%, rgba(255, 247, 216, 0.2) 0%, rgba(255, 247, 216, 0) 80%),
        radial-gradient(8% 7% at 33% 22%, rgba(255, 251, 234, 0.18) 0%, rgba(255, 251, 234, 0) 82%),
        radial-gradient(122% 106% at 50% 52%, rgba(242, 190, 78, 0) 56%, rgba(242, 190, 78, 0.07) 84%, rgba(255, 228, 154, 0.15) 100%);
    background-repeat: no-repeat;
    transform: scale(1);
    transform-origin: center center;
    transition: opacity 780ms cubic-bezier(0.33, 0, 0.2, 1);
    animation: bst-glimmer-breathe 13s ease-in-out infinite;
    will-change: opacity, transform;
}

/* The foot of every design melts away into the dark of its own frame: a soft
   curtain of the box's black settles over the bottom of the square and rises
   away to nothing long before it reaches the shirt, so the legs and feet sink
   into the night instead of the picture ending on a hard line. */
.bst-marquee .bst-marquee-card .bst-card-frame::after {
    content: '';
    display: block;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    opacity: 1;
    transform: none;
    /* The foot fade still melts each figure into the black, and a gentle
       darkening down both sides of the box holds the model inside the frame.
       No light is laid over the model at all — no pool, no bloom, no inner
       glow — so the figure is lit only by the photograph itself. */
    background-image:
        linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0) 56%, rgba(4, 4, 4, 0.16) 64%, rgba(4, 4, 4, 0.38) 72%, rgba(4, 4, 4, 0.64) 80%, rgba(4, 4, 4, 0.86) 88%, #030303 95%, #030303 100%),
        linear-gradient(90deg, rgba(3, 3, 3, 0.34) 0%, rgba(3, 3, 3, 0) 22%, rgba(3, 3, 3, 0) 86%, rgba(3, 3, 3, 0.3) 100%);
    background-repeat: no-repeat;
    box-shadow: none;
    animation: none;
    transition: none;
    will-change: auto;
}

/* Rolling over a design does exactly two things: the gold frame comes up to its
   full polished band, and the whole square swells a little larger, then eases
   back when the pointer leaves. Nothing else is drawn, so the drifting strip
   keeps gliding perfectly smoothly. */
.bst-marquee .bst-marquee-card:hover .bst-card-frame,
.bst-marquee .bst-marquee-card:focus-within .bst-card-frame {
    transform: scale(1.05);
}

.bst-marquee .bst-marquee-card:hover .bst-card-frame::before,
.bst-marquee .bst-marquee-card:focus-within .bst-card-frame::before {
    opacity: 1;
    /* The band comes up to its full polished gold and a bright highlight keeps
       slipping around it, so the rim reads as lit metal while the box swells. */
    background-image:
        conic-gradient(
            from var(--nd-marquee-glint, 0deg),
            rgba(255, 255, 248, 0.3) 0deg,
            rgba(255, 255, 252, 0.95) 7deg,
            rgba(255, 251, 224, 0.88) 17deg,
            rgba(255, 240, 176, 0.52) 33deg,
            rgba(255, 228, 138, 0.22) 57deg,
            rgba(255, 222, 124, 0.06) 85deg,
            rgba(255, 222, 124, 0) 120deg,
            rgba(255, 222, 124, 0) 360deg
        ),
        linear-gradient(168deg, #fffdf0 0%, #ffeeb4 10%, #f3d074 22%, #d9a93c 34%, #a8791d 46%, #8a6514 56%, #d9a93c 70%, #ffeeb4 84%, #f3d074 94%, #c9971f 100%);
    animation: nd-marquee-glint-travel 5s linear infinite;
}

/* Inside the square the pools of light swell and settle on one slow, even
   breath, so the glimmer keeps quietly bubbling rather than sitting still. */
@keyframes bst-glimmer-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/* The boxes hold perfectly still while the strip drifts: the one movement a
   design makes is the swell it gives under the pointer, so the run reads calm. */

/* Resting on a design lifts its gold a step brighter while the swell carries on
   underneath. */
/* Resting on a design no longer draws anything outside its own square: the wide
   halo and the brightening rim that used to be rebuilt around the box are gone,
   so the drifting strip is never re-composited behind the light and its motion
   stays perfectly smooth. The warmth now lives entirely inside the square (see
   the glimmer on the frame above). */

.bst-marquee .bst-marquee-card .bst-card-frame:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* The model stands inside its box: the figure is shown whole, set down on the
   base of the frame, and the only thing between it and the gold is the dark of
   the box itself. Nothing is drawn around it and nothing is thrown off it. */
.bst-marquee .bst-marquee-card .bst-card-frame .bst-card-model {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    /* Each model is a finished night-street photograph now, so the box is filled
       with the picture and cropped to the figure standing at the right of the
       shot — the garment and the signature printed on it fill the frame. */
    object-fit: cover;
    object-position: 86% center;
    transform: none;
    transform-origin: center bottom;
    /* A single design can lift its figure a little inside its own box (see the
       design list): the photograph is simply drawn a few pixels higher, while
       the gold frame, the street behind her and the fade at the foot of the
       box all stay exactly where they are. The box clips the picture, so the
       small shift never shows. */
    translate: 0 var(--bst-model-lift, 0px);
    /* The figure itself is drawn whole and solid: the melt into the dark is laid
       over the frame instead (see .bst-card-frame::after below), so the model
       and the night around it sink into the black together and the picture is
       never left ending on a hard cut at the foot of the box. */
    -webkit-mask-image: none;
    mask-image: none;
    /* The figure is lifted a step out of the night and given a quiet warm halo
       of its own, so the model and the art printed on the shirt stand clear of
       the true black behind them instead of sitting inside it. The lift is held
       low: the picture keeps its night grade, it simply reads as lit. */
    filter: brightness(1.07) saturate(1.04) contrast(1.02);
    transition: filter 600ms ease;
}

/* The model itself is left untouched under the pointer - the whole square swells
   instead, so the figure always shows exactly as it was printed. */

/* ==========================================================================
   The name and the two ways in - flat on the page, with no panel
   ========================================================================== */

.bst-marquee .bst-marquee-card .bst-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 0.1rem 0.4rem;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    /* With the drift switched off the strip becomes a row the visitor can push
       across themselves, and the repeated groups are dropped so nothing
       doubles. */
    .bst-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .bst-marquee-track {
        animation: none;
    }

    .bst-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .bst-marquee .bst-marquee-card .bst-card-frame {
        animation: none;
        transform: none;
        transition: none;
    }

    .bst-marquee .bst-marquee-card .bst-card-frame::before {
        transition: none;
        animation: none;
    }

    .bst-marquee .bst-marquee-card .bst-card-frame::after {
        animation: none;
        transition: none;
        transform: none;
    }

    .bst-marquee .bst-marquee-card .bst-card-frame img {
        transition: none;
    }
}

/* ==========================================================================
   The street behind each design

   Every box now stands on a different stretch of the city, so the four designs
   read as four different nights instead of sharing one backdrop. The street is
   graded into the same monochrome night as the rest of the collection and held
   perfectly flat — it never zooms, brightens or drifts of its own — so the
   model stays the only thing that answers the pointer.
   ========================================================================== */

.bst-marquee .bst-marquee-card .bst-card-frame .bst-card-street {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    filter: grayscale(1) brightness(0.56) contrast(1.16);
    transition: none;
    pointer-events: none;
    -webkit-mask-image: none;
    mask-image: none;
}

/* The model melts into the street it stands on: its left edge and its crown
   dissolve away, so the city behind shows through and the figure reads as
   standing inside that street rather than being pasted over it. The right side
   and the body stay fully solid. */
.bst-marquee .bst-marquee-card .bst-card-frame .bst-card-model {
    -webkit-mask-image:
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.42) 8%, rgba(0, 0, 0, 0.85) 17%, #000 28%, #000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 7%, #000 16%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.42) 8%, rgba(0, 0, 0, 0.85) 17%, #000 28%, #000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 7%, #000 16%, #000 100%);
    mask-composite: intersect;
}

/* ==========================================================================
   The night deeper behind each design.

   Every box stands on its own stretch of the city, and that street carries a
   few faint, blurred patches of lettering in its far background. They sit well
   behind the model, but they are no part of the scene, so the street is graded
   deeper — dark pushed down and contrast lifted until only true night is left —
   while the figure in the box keeps her own light: her face and the art printed
   on the shirt stay the brightest thing inside the frame.
   ========================================================================== */

.bst-marquee .bst-marquee-card .bst-card-frame .bst-card-street {
    filter: grayscale(1) brightness(0.42) contrast(1.44);
}

.bst-marquee .bst-marquee-card .bst-card-frame .bst-card-model {
    filter: brightness(1.02) saturate(1.03) contrast(1.32);
}

/* The sides of the box gather a little more dark, so the open street beside the
   figure sinks toward the frame's own black and only the model and the shirt she
   wears stand lit inside the box. */
.bst-marquee .bst-marquee-card .bst-card-frame::after {
    background-image:
        linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0) 54%, rgba(4, 4, 4, 0.18) 63%, rgba(4, 4, 4, 0.42) 72%, rgba(4, 4, 4, 0.68) 81%, rgba(4, 4, 4, 0.88) 89%, #030303 96%, #030303 100%),
        linear-gradient(90deg, rgba(3, 3, 3, 0.78) 0%, rgba(3, 3, 3, 0.5) 12%, rgba(3, 3, 3, 0.24) 26%, rgba(3, 3, 3, 0.08) 40%, rgba(3, 3, 3, 0) 54%, rgba(3, 3, 3, 0) 82%, rgba(3, 3, 3, 0.38) 100%);
}