/* ---------- The line-up: every look in one depth queue ----------
   Adapted from the depth-queue runway: the front look stands left of centre,
   sharp and full length; the rest recede to the back right, smaller, softer and
   hazier, on the gallery's paper wall and floor. Drag (or the arrow keys, or a
   sideways trackpad swipe) and the whole line steps forward. The rail on the left
   shows each look's drawing, photo and second view, scrolling in lockstep.
   No prices: every card leads to the look itself. Effects never cover the front
   garment: text sits above and below the queue, the haze only on the looks behind. */

.lu{position:relative;border-top:1px solid var(--thread);display:flex;flex-direction:column-reverse;overflow:hidden;
  height:calc(100svh - var(--head));min-height:560px;max-height:1100px;overscroll-behavior-x:contain;
  background:
    linear-gradient(to bottom,transparent 0 63%,rgba(16,17,20,.03) 72%,rgba(16,17,20,.075) 100%),
    radial-gradient(52% 70% at 47% 40%,rgba(255,255,255,.75),transparent 70%),
    var(--paper)}
/* the gallery's thread wall, fading out before the floor */
.lu::before{content:"";position:absolute;inset:0 0 34% 0;z-index:0;pointer-events:none;opacity:.5;
  background:repeating-linear-gradient(90deg,var(--thread) 0 1px,transparent 1px 13px);
  -webkit-mask-image:linear-gradient(#000 20%,transparent);mask-image:linear-gradient(#000 20%,transparent)}
/* soft glow behind the front look, tinted by its colours (set per frame) */
.lu-glow{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(24% 44% at var(--gx,45%) 44%,rgb(var(--glow,200 200 200) / calc(.24 * var(--gi,0))),transparent 72%)}
.lu-gl{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}

/* ---------- stage ---------- */
.lu-stage{position:relative;z-index:2;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.lu-stage:focus-visible{outline-offset:-6px}
.lu-q{position:relative;flex:1 1 auto;min-height:0}
.lu-fallback{display:none}
.lu-nogl .lu-fallback{display:flex;position:absolute;inset:4% 0 6%;margin:0;justify-content:flex-start;padding-left:12%}
.lu-nogl .lu-fallback img{height:100%;width:auto;object-fit:contain;box-shadow:0 24px 40px -24px rgba(16,17,20,.35)}

.lu-head{position:absolute;z-index:3;top:clamp(16px,4svh,44px);left:var(--gutter);right:var(--gutter-r);display:grid;gap:8px;pointer-events:none}
.lu-eyebrow{margin:0;font:500 var(--step--1)/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--cobalt)}
.lu-title{margin:0;font-family:var(--display);font-weight:200;font-variation-settings:"wdth" 125;font-size:clamp(28px,3.4vw,52px);line-height:.95;letter-spacing:.05em;text-transform:uppercase}
.lu-blurb{display:none;margin:4px 0 0;max-width:34ch;font-size:15px;line-height:1.6;color:var(--ink-soft)}

.lu-foot{position:relative;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 18px;
  padding:12px var(--gutter-r) 14px var(--gutter);border-top:1px solid var(--thread);background:var(--paper)}
.lu-kind{margin:0 0 4px;font:500 11px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft)}
.lu-name{margin:0;font-family:var(--display);font-weight:700;font-variation-settings:"wdth" 75;font-size:clamp(20px,5.4vw,30px);line-height:1.05;text-wrap:balance}
.lu-name .lu-w{display:inline-block;white-space:nowrap}
.lu-name .lu-w > span{display:inline-block;opacity:0;filter:blur(5px);transform:translate3d(0,.3em,0);
  animation:lu-letter .9s var(--ease) forwards;animation-delay:calc(var(--k) * .024s)}
@keyframes lu-letter{to{opacity:1;filter:none;transform:none}}
.lu-num{margin:0;justify-self:end;display:inline-flex;align-items:baseline;gap:.45em;font-family:var(--display);font-weight:200;font-variation-settings:"wdth" 125;
  font-size:clamp(20px,5vw,40px);line-height:1;letter-spacing:.12em;text-transform:uppercase}
.lu-reels{display:inline-flex;align-items:baseline}
.lu-reel-win{display:inline-block;width:.86em;height:1em;overflow:hidden;text-align:center;
  -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent)}
.lu-reel{display:flex;flex-direction:column;will-change:transform}
.lu-reel > span{display:block;height:1em;line-height:1}
.lu-ctl{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px}
.lu-view{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:32px;font:500 11px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;text-decoration:none;color:var(--ink)}
.lu-view::after{content:"";position:absolute;left:0;right:22px;bottom:4px;height:1px;background:currentColor;transform-origin:left;transition:transform .6s var(--ease)}
.lu-view:hover{color:var(--cobalt)}
.lu-view:hover::after{transform:scaleX(.35)}
.lu-view svg{width:14px;height:14px;transition:transform .5s var(--ease)}
.lu-view:hover svg{transform:translate(2px,-2px)}

/* ticks: one hairline per look, a bar glides between them, with a twin across the loop seam */
.lu-ticks{--tw:clamp(12px,1.5vw,18px);position:relative;width:calc(var(--tw) * var(--n,12));height:28px;overflow:hidden;flex:none}
.lu-tick-row{display:flex;height:100%}
.lu-tick{position:relative;width:var(--tw);height:100%;padding:0;border:0;background:none;cursor:pointer}
.lu-tick::before{content:"";position:absolute;left:2px;right:2px;top:50%;height:1px;background:rgba(16,17,20,.2);transition:background-color .4s var(--ease)}
.lu-tick:hover::before{background:rgba(16,17,20,.55)}
.lu-tick-bar,.lu-tick-bar::before{position:absolute;top:50%;height:2px;margin-top:-.5px;background:var(--cobalt);pointer-events:none}
.lu-tick-bar{left:2px;width:calc(var(--tw) - 4px);transform:translate3d(calc(var(--v,0) * var(--tw)),0,0)}
.lu-tick-bar::before{content:"";top:0;margin-top:0;left:calc(var(--tw) * var(--n,12) * -1);width:100%}

/* ---------- rail: drawing, photo and second view of every look ---------- */
.lu-rail{position:relative;z-index:3;flex:none;width:100%;height:clamp(10.5rem,24svh,13.5rem);container-type:size;overflow:hidden;background:var(--paper-2);box-shadow:0 -1px 0 var(--thread)}
.lu-view-port{width:100%;height:100%;overflow:hidden}
.lu-track{display:flex;flex-direction:row;will-change:transform}
.lu-card{position:relative;flex:none;display:flex;flex-direction:column;width:min(40vw,13rem);height:100cqh;background:#ecedea;
  box-shadow:inset -1px 0 0 var(--thread);transition:background-color .8s var(--ease)}
.lu-card:nth-child(even){background:#e8e9e5}
.lu-card[data-active]{background:#fbfbfa}
.lu-frame{position:relative;flex:1 1 auto;min-height:0;margin:10px 10px 0;overflow:hidden;background:#f6f6f4}
.lu-shot{position:absolute;inset:-7% 0;will-change:transform}
.lu-shot img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;opacity:.78;filter:saturate(.7);scale:.97;
  transition:opacity .8s var(--ease),filter .8s var(--ease),scale 1.1s var(--ease)}
.lu-shot img.ill{object-fit:contain;object-position:50% 50%;background:#fbfbfa}
.lu-card[data-active] .lu-shot img{opacity:1;filter:none;scale:1}
.lu-card:hover .lu-shot img{scale:1.035}
.lu-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:8px 10px 10px}
.lu-copy{min-width:0}
.lu-copy > *{opacity:.55;transform:translate3d(0,.3rem,0);transition:opacity .7s var(--ease),transform .9s var(--ease)}
.lu-card[data-active] .lu-copy > *{opacity:1;transform:none;transition-delay:.12s}
.lu-cap{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:500 10px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft)}
.lu-copy h3{margin:2px 0 0;font-family:var(--display);font-weight:700;font-variation-settings:"wdth" 75;font-size:14px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lu-go{flex:none;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ink);border-radius:999px;color:var(--ink);
  transition:background-color .4s var(--ease),border-color .4s var(--ease),color .4s var(--ease),transform .5s var(--ease)}
.lu-go:hover{background:var(--cobalt);border-color:var(--cobalt);color:var(--paper);transform:rotate(45deg)}
.lu-go svg{width:13px;height:13px}
.lu-pulse{position:absolute;inset:6px;z-index:2;pointer-events:none;border:1px solid var(--cobalt);opacity:0;animation:lu-pulse 1.4s var(--ease) calc(var(--i,0) * .12s)}
@keyframes lu-pulse{30%{opacity:.7;inset:9px}100%{opacity:0;inset:6px}}

/* ---------- drag cursor (mouse only) ---------- */
.lu-cursor{position:fixed;top:0;left:0;z-index:55;width:34px;height:34px;border:1px solid var(--ink);border-radius:999px;pointer-events:none;opacity:0;will-change:transform,width;color:var(--ink)}
.lu-cursor svg{position:absolute;left:50%;top:50%;width:34px;height:34px;translate:-50% -50%;opacity:var(--ch,1)}
@media (hover:hover) and (pointer:fine){
  .lu-on .lu-q{cursor:none}
  .lu-dragging,.lu-dragging *{cursor:none!important}
}

/* ---------- entrance: settles in once the front looks have loaded ---------- */
.lu-on .lu-in{opacity:0;transform:translate3d(0,.6em,0);filter:blur(5px);transition:opacity 1.1s var(--ease),transform 1.3s var(--ease),filter 1.1s var(--ease)}
.lu-on.is-in .lu-in{opacity:1;transform:none;filter:none}
.lu-on .lu-d2{transition-delay:.08s}.lu-on .lu-d3{transition-delay:.2s}.lu-on .lu-d4{transition-delay:.5s}.lu-on .lu-d5{transition-delay:.6s}.lu-on .lu-d6{transition-delay:.72s}
.lu-on .lu-rail{transform:translate3d(0,100%,0);transition:transform 1.4s var(--ease) .4s}
.lu-on.is-in .lu-rail{transform:none}

/* ---------- without JavaScript: a plain list of the looks ---------- */
.lu-list{position:relative;z-index:2;list-style:none;margin:0;padding:clamp(120px,18vh,180px) var(--gutter-r) 48px var(--gutter);display:grid;gap:8px}
.lu-list a{font-family:var(--display);font-weight:700;font-variation-settings:"wdth" 75;font-size:var(--step-1);text-decoration:none}
.lu-list a:hover{color:var(--cobalt)}
.lu-on .lu-list{display:none}
.lu:not(.lu-on){height:auto;max-height:none;min-height:0;display:block}
.lu:not(.lu-on) .lu-stage,.lu:not(.lu-on) .lu-rail{display:none}

/* ---------- wide screens: rail on the left, text over the stage on the right ---------- */
@media (min-width:900px){
  .lu{flex-direction:row}
  .lu-rail{width:clamp(15rem,21vw,21rem);height:auto;box-shadow:1px 0 0 var(--thread)}
  .lu-on .lu-rail{transform:translate3d(-100%,0,0)}
  .lu-track{flex-direction:column}
  .lu-card{width:100%;height:44cqh;box-shadow:inset 0 -1px 0 var(--thread)}
  .lu-q{position:absolute;inset:0}
  .lu-head{left:auto;right:calc(var(--gutter-r) + 48px);max-width:24rem;justify-items:end;text-align:right}
  .lu-blurb{display:block}
  .lu-foot{position:absolute;right:calc(var(--gutter-r) + 48px);bottom:clamp(18px,4.5svh,44px);display:flex;flex-direction:column;align-items:flex-end;text-align:right;
    gap:0;padding:0;border:0;background:none;pointer-events:none;max-width:min(30rem,40%)}
  .lu-foot a,.lu-foot button{pointer-events:auto}
  .lu-name{font-size:clamp(22px,2.1vw,32px)}
  .lu-num{margin-top:.45em;font-size:clamp(24px,2.5vw,42px)}
  .lu-ctl{justify-content:flex-end;gap:24px;margin-top:14px}
}

@media (prefers-reduced-motion:reduce){
  .lu-on .lu-in,.lu-on .lu-rail{transition-duration:.01s!important;transition-delay:0s!important;transform:none;filter:none}
  .lu-name .lu-w > span{animation:none;opacity:1;filter:none;transform:none}
  .lu-pulse{animation:none}
}

/* ---------- the V hero opens the page again, with David's headline ---------- */
.hero h1.hero-line{font-size:clamp(34px,4.6vw,72px);line-height:.95;letter-spacing:.03em}
.hero h1.hero-line small{margin:0 0 .9em}
.hero-copy .hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
@media (max-width:899px){
  .kinetic .hero h1.hero-line{font-size:clamp(30px,9vw,46px);letter-spacing:.02em}
  .kinetic .hero-stage .hero-actions{display:none}
}

/* the hero is the big thread V alone: a shorter scroll for the curtain to part */
@media (min-width:900px){ .kinetic .hero{height:190svh} }
@media (max-width:899px){ .kinetic .hero{height:170svh} }

/* scroll walks the runway: the line-up holds on screen for one stretch of scroll per look */
.lu-pin{position:relative}
.lu-pin.lu-pinned{height:calc(100svh - var(--head) + var(--lu-steps,10) * 50svh)}
.lu-pinned > .lu{position:sticky;top:var(--head)}

/* phones: the heading sits above the runway instead of over it, so the figures never cross the text */
@media (max-width:899px){
  .lu-head{position:relative;order:-1;top:auto;left:auto;right:auto;padding:14px var(--gutter-r) 0 var(--gutter);gap:4px}
  .lu-title{font-size:clamp(24px,7vw,32px)}
  .lu-rail{height:clamp(9rem,20svh,11.5rem)}
}
