/* Dude Bikes — the stage (js/stage.js): a real bike on a studio stage; its contour lit like a hero-movie frame.
   GPU-friendly: the glow layers are pre-filtered copies of the cutout — only their opacity and transform animate. */
.stage-link { display: block; aspect-ratio: auto; background: none; }
.stage { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 205, 0, .20), rgba(255, 205, 0, 0) 55%),
    radial-gradient(90% 60% at 50% 105%, #2a2620 0%, rgba(42, 38, 32, 0) 70%),
    linear-gradient(180deg, #16140f 0%, #0d0c0a 62%, #1b1813 100%); }
.stage::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 8%; height: 12%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 70%); filter: blur(4px); }   /* the floor shadow */
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 205, 0, 0), rgba(255, 205, 0, .06)); border-top: 1px solid rgba(255, 205, 0, .10); }   /* the floor line */
.stage-bike, .stage-glow, .stage-sweep { position: absolute; left: 4%; right: 4%; top: 7%; bottom: 11%; width: 92%; height: 82%; object-fit: contain; object-position: 50% 100%; }
.stage-bike { z-index: 3; transform: translateZ(0); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
.stage-glow { z-index: 2; opacity: 0; will-change: opacity, transform;
  filter: drop-shadow(0 0 1px #fff3b0) drop-shadow(0 0 3px #ffd84a) drop-shadow(0 0 8px rgba(255, 205, 0, .75)) drop-shadow(0 0 18px rgba(255, 176, 0, .4)); }
.stage-glow.hot { filter: drop-shadow(0 0 2px #fffbe6) drop-shadow(0 0 6px #ffe066) drop-shadow(0 0 18px rgba(255, 205, 0, .95)) drop-shadow(0 0 46px rgba(255, 160, 0, .6)); }
.stage-sweep { z-index: 4; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 236, 160, .35) 40%, rgba(255, 250, 225, .9) 48%, rgba(255, 214, 60, .6) 53%, rgba(255, 236, 160, .25) 60%, rgba(255, 255, 255, 0) 70%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask-image: var(--cut); mask-image: var(--cut); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: 50% 100%; mask-position: 50% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.stage-sparks { position: absolute; inset: 0; z-index: 5; pointer-events: none; width: 100%; height: 100%; }
.stage.lit .stage-glow:not(.hot) { opacity: .32; }

/* first reveal: flicker → flash → settle (the sequence delay comes from js/stage.js as --d) */
@keyframes stage-ignite { 0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .15; } 18% { opacity: 1; } 22% { opacity: .3; } 30% { opacity: 1; } 55% { opacity: .75; } 100% { opacity: .32; } }
@keyframes stage-flash { 0%, 26% { opacity: 0; } 30% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes stage-sweep { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
.stage.igniting .stage-glow:not(.hot) { animation: stage-ignite 1.6s cubic-bezier(.3, .1, .3, 1) var(--d, 0ms) both; }
.stage.igniting .stage-glow.hot { animation: stage-flash 1.6s ease-out var(--d, 0ms) both; }
.stage.igniting .stage-sweep { animation: stage-sweep 1.1s cubic-bezier(.4, 0, .2, 1) calc(var(--d, 0ms) + 380ms) both; }

/* hover / focus / in view on touch: the outline surges, a streak sweeps, the card lifts, name and price brighten */
@keyframes stage-surge { 0% { opacity: .38; } 15% { opacity: 1; } 22% { opacity: .5; } 30% { opacity: 1; } 100% { opacity: .55; } }
.stage.surging .stage-glow.hot { animation: stage-surge 1.1s ease-out both; }
.stage.surging .stage-sweep { animation: stage-sweep 1.4s cubic-bezier(.4, 0, .2, 1) both; }
/* while the pointer stays: the outline holds its heat and the streak passes again every few seconds */
@keyframes stage-sweep-loop { 0% { opacity: 1; background-position: 130% 0; } 45%, 100% { opacity: 1; background-position: -30% 0; } }
@keyframes stage-breathe { 0%, 100% { opacity: .38; } 50% { opacity: .58; } }
.stage.held .stage-glow.hot { animation: stage-breathe 2.6s ease-in-out infinite; }
.stage.held .stage-sweep { animation: stage-sweep-loop 3.2s cubic-bezier(.4, 0, .2, 1) .9s infinite; }
.stage.held .stage-bike { transform: translateY(-1.5%) scale(1.025); }
.stage-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; background: #fff; }
.stage-card:hover, .stage-card:focus-within { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17, 16, 16, .22), 0 0 0 1px rgba(255, 205, 0, .45); }
.stage-card:hover .stage-glow.hot, .stage-card:focus-within .stage-glow.hot { opacity: .55; }
.stage-card:hover .stage-bike, .card.stage-card:hover .card-media img.stage-bike { transform: translateY(-2%) scale(1.035); }
.card.stage-card:hover .card-media img:not(.stage-bike) { transform: none; }
.stage-card .card-title, .stage-card .price { transition: color .3s ease; }
.stage-card:hover .card-title a, .stage-card:focus-within .card-title a { color: #000; }
.stage-card:hover .price-eur { color: #a87900; }
.stage-card .card-body { border-top: 2px solid var(--accent); }

/* the featured rail: a dark band, the stage cards centred */
.stage-rail { justify-content: center; }
.featured-band { background: radial-gradient(80% 60% at 50% 0%, #26221a 0%, #111010 60%); color: #fff; }
.featured-band .kicker { background: var(--accent); }
.featured-band .section-head h2 { color: #fff; }
.featured-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.featured-band .stage-card { background: #16140f; border-color: #2b2720; }
.featured-band .stage-card .card-body { background: #16140f; }
.featured-band .stage-card .card-title a, .featured-band .card-vendor { color: #f3f1ea; }
.featured-band .stage-card .price-eur { color: var(--accent); }
.featured-band .stage-card:hover .card-title a { color: #fff; }
.featured-band .stage-card:hover .price-eur { color: #ffe066; }

/* product page: the same stage, lighter — a faint idle glow and the surge on hover */
.pd-stage { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.stage-thumb { background: #111010; }

/* category tiles: a yellow rim light passes along the edge on hover */
.tile::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 205, 0, .9), inset 0 0 28px rgba(255, 205, 0, .35); transition: opacity .35s ease; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stage .stage-glow:not(.hot) { opacity: .45 !important; animation: none !important; }
  .stage .stage-glow.hot, .stage .stage-sweep { animation: none !important; opacity: 0 !important; }
  .stage.held .stage-bike { transform: none !important; }
  .stage-card, .stage-bike { transition: none !important; transform: none !important; }
}
/* components.css sizes every .card-media img (100 % + cover): the stage images keep their own box */
.card-media .stage img { max-width: none; max-height: none; width: 92%; height: 82%; object-fit: contain; }
/* a featured bike without a clean cutout falls back to its framed photo — on the dark band too */
.featured-band .card { background: #16140f; border-color: #2b2720; }
.featured-band .card .card-title a, .featured-band .card .card-vendor { color: #f3f1ea; }
.featured-band .card .price-eur { color: var(--accent); }
