/* ShoeLab — hero sneaker showcase.
   Replaces the WebGL torus-knot and the logo medallion. Each pair brings its
   own light: three colour fields drift behind the hero and blend into the
   house black and red, re-tinting as the pairs rotate. */

/* Registered so the colours interpolate instead of snapping between pairs. */
@property --hs-c1 { syntax: '<color>'; inherits: true; initial-value: #cc1111; }
@property --hs-c2 { syntax: '<color>'; inherits: true; initial-value: #5a0f2e; }
@property --hs-c3 { syntax: '<color>'; inherits: true; initial-value: #1c2f6b; }

#hero{
  --hs-c1:#cc1111; --hs-c2:#5a0f2e; --hs-c3:#1c2f6b;
  transition:--hs-c1 1.8s ease, --hs-c2 1.8s ease, --hs-c3 1.8s ease;
}

/* ── colour fields ─────────────────────────────────────────── */
.hs-aurora{
  position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;
  /* the hero clips its overflow, so without this the light is sliced off in
     a hard line where the section above ends */
  -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 24%, #000 78%, transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0, #000 24%, #000 78%, transparent 100%);
}
.hs-aurora i{
  position:absolute;border-radius:50%;will-change:transform;
  mix-blend-mode:screen;
}
.hs-aurora i:nth-child(1){
  width:70vmax;height:70vmax;right:-18vmax;top:-22vmax;
  background:radial-gradient(circle, color-mix(in srgb, var(--hs-c1) 55%, transparent) 0%, transparent 62%);
  animation:hsDriftA 22s ease-in-out infinite alternate;
}
.hs-aurora i:nth-child(2){
  width:60vmax;height:60vmax;left:-20vmax;bottom:-24vmax;
  background:radial-gradient(circle, color-mix(in srgb, var(--hs-c2) 60%, transparent) 0%, transparent 64%);
  animation:hsDriftB 26s ease-in-out infinite alternate;
}
.hs-aurora i:nth-child(3){
  width:46vmax;height:46vmax;left:34%;top:30%;
  background:radial-gradient(circle, color-mix(in srgb, var(--hs-c3) 50%, transparent) 0%, transparent 66%);
  animation:hsDriftC 30s ease-in-out infinite alternate;
}
@keyframes hsDriftA{to{transform:translate(-9vmax,7vmax) scale(1.12);}}
@keyframes hsDriftB{to{transform:translate(8vmax,-6vmax) scale(1.08);}}
@keyframes hsDriftC{to{transform:translate(-6vmax,-5vmax) scale(.9);}}
/* keeps the colour from washing out the copy on the left */
.hs-veil{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.55) 42%, rgba(8,8,8,0) 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(8,8,8,.9), transparent 60%);
}
@supports not (color: color-mix(in srgb, red 50%, transparent)){
  .hs-aurora i:nth-child(1){background:radial-gradient(circle, rgba(204,17,17,.45), transparent 62%);}
  .hs-aurora i:nth-child(2){background:radial-gradient(circle, rgba(90,15,46,.5), transparent 64%);}
  .hs-aurora i:nth-child(3){background:radial-gradient(circle, rgba(28,47,107,.45), transparent 66%);}
}

/* ── showcase ──────────────────────────────────────────────── */
.hs{
  position:relative;width:min(560px,100%);
  display:flex;flex-direction:column;align-items:center;
}
.hs-stage{
  position:relative;width:100%;aspect-ratio:1.18;
  perspective:1300px;
}
/* oversized outlined model name behind the shoe, magazine-cover style */
.hs-word{
  position:absolute;left:50%;top:44%;translate:-50% -50%;
  font-family:'Bebas Neue','Arial Black',Impact,sans-serif;
  font-size:clamp(5.5rem,17vw,12.5rem);line-height:.8;letter-spacing:.01em;
  color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.14);
  white-space:nowrap;pointer-events:none;user-select:none;
  transition:opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.hs-word.out{opacity:0;transform:translateY(14px) scale(.96);}
/* dark plate under the shoe so the coloured light rims it, never shows
   through it */
.hs-plate{
  position:absolute;left:50%;top:52%;width:84%;height:62%;translate:-50% -50%;
  background:radial-gradient(closest-side, rgba(0,0,0,.92), rgba(0,0,0,.55) 55%, transparent);
  pointer-events:none;
}
.hs-glow{
  position:absolute;left:50%;top:50%;width:92%;height:70%;translate:-50% -50%;
  background:radial-gradient(closest-side, color-mix(in srgb, var(--hs-c1) 38%, transparent), transparent 72%);
  filter:blur(18px);opacity:.75;pointer-events:none;
}
/* One pair on stage at a time: the outgoing pair turns away and is gone
   before the next one turns in. The slot is not a preserve-3d context —
   Safari ignores opacity inside one and would leave the old pair standing
   behind the new one — and a parked pair is hidden outright (visibility). */
.hs-shoe{
  position:absolute;left:50%;top:47%;width:92%;
  translate:-50% -50%;perspective:1300px;
  transition:transform .8s cubic-bezier(.2,.8,.2,1) .34s, opacity .55s ease .34s, visibility 0s linear .34s;
  will-change:transform,opacity;
}
.hs-shoe.enter,.hs-shoe.leave{
  opacity:0;visibility:hidden;
  transition:transform .42s cubic-bezier(.65,0,.35,1), opacity .3s ease, visibility 0s linear .3s;
}
.hs-shoe.enter{transform:rotateY(38deg) translateX(7%) scale(.9);}
.hs-shoe.leave{transform:rotateY(-38deg) translateX(-7%) scale(.9);}
.hs-tilt{transition:transform .35s ease-out;}
.hs-float{animation:hsFloat 6.5s ease-in-out infinite;}
@keyframes hsFloat{
  0%,100%{transform:translateY(0) rotate(-1.2deg);}
  50%{transform:translateY(-12px) rotate(1deg);}
}
.hs-float img{
  display:block;width:100%;height:auto;
  filter:drop-shadow(0 34px 34px rgba(0,0,0,.7)) drop-shadow(0 0 1px rgba(255,255,255,.25));
}
/* glossy floor: the shoe, flipped and faded */
.hs-reflect{
  display:block;width:100%;height:auto;margin-top:-4%;
  transform:scaleY(-1);opacity:.16;filter:blur(1px);
  -webkit-mask-image:linear-gradient(to top, rgba(0,0,0,.9), transparent 42%);
          mask-image:linear-gradient(to top, rgba(0,0,0,.9), transparent 42%);
}

/* ── caption ───────────────────────────────────────────────── */
.hs-cap{
  width:100%;text-align:center;margin-top:-6%;position:relative;z-index:2;
  min-height:8.6rem;
}
.hs-cap > *{transition:opacity .45s ease, transform .45s ease;}
.hs-cap.swap > *{opacity:0;transform:translateY(10px);}
.hs-brand{
  font-size:.6rem;letter-spacing:.42em;text-transform:uppercase;
  color:var(--hs-c1);margin:0 0 .35rem;font-weight:600;
  text-shadow:0 0 18px color-mix(in srgb, var(--hs-c1) 55%, transparent);
}
.hs-model{
  font-family:'Bebas Neue','Arial Black',Impact,sans-serif;font-weight:400;
  font-size:clamp(1.9rem,3.6vw,2.6rem);letter-spacing:.05em;line-height:1;
  color:#fff;margin:0 0 .5rem;
}
.hs-model em{font-style:normal;color:rgba(255,255,255,.45);margin-left:.12em;}
.hs-desc{
  font-size:.8rem;line-height:1.65;color:#b9b9b9;font-weight:300;
  max-width:430px;margin:0 auto .7rem;
}
.hs-tags{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;list-style:none;margin:0;padding:0;}
.hs-tags li{
  font-size:.58rem;letter-spacing:.16em;text-transform:uppercase;color:#ddd;
  padding:.32rem .7rem;border-radius:999px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}

/* ── progress + pause ──────────────────────────────────────── */
.hs-bar{display:flex;align-items:center;gap:.45rem;margin-top:1.1rem;}
.hs-seg{
  position:relative;width:28px;height:3px;border-radius:3px;border:0;padding:0;
  background:rgba(255,255,255,.16);cursor:pointer;overflow:hidden;
}
.hs-seg::before{content:'';position:absolute;inset:-10px -2px;}   /* bigger tap target */
/* the timer fills with a transform, so it never re-lays out or repaints the page */
.hs-seg i{position:absolute;inset:0;background:var(--hs-c1);border-radius:inherit;transform:scaleX(0);transform-origin:0 50%;}
.hs-seg.done i{transform:none;opacity:.55;}
.hs-seg.on i{animation:hsFill var(--hs-ms,6000ms) linear forwards;}
.hs.paused .hs-seg.on i{animation-play-state:paused;}
@keyframes hsFill{from{transform:scaleX(0);}to{transform:scaleX(1);}}
.hs-pp{
  width:26px;height:26px;border-radius:50%;margin-left:.35rem;cursor:pointer;
  display:grid;place-items:center;color:#ddd;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);
}
.hs-pp:hover{color:#fff;border-color:rgba(255,255,255,.4);}
.hs-pp svg{width:10px;height:10px;}

.hs-seg:focus-visible,.hs-pp:focus-visible{outline:2px solid var(--hs-c1);outline-offset:3px;}

@media(max-width:900px){
  .hs{width:min(460px,100%);}
  .hs-veil{background:radial-gradient(120% 80% at 50% 110%, rgba(8,8,8,.92), transparent 62%);}
}
@media(prefers-reduced-motion:reduce){
  .hs-aurora i,.hs-float{animation:none;}
  .hs-word{transition:opacity .3s ease;}
  .hs-shoe{transition:opacity .3s ease .3s, visibility 0s linear .3s;}
  .hs-shoe.enter,.hs-shoe.leave{transform:none;transition:opacity .3s ease, visibility 0s linear .3s;}
}
