/* Check out our videos — category strip (homepage), Phase 4.
   Modelled on e.l.f. Cosmetics' Shop by Category, measured live:
   one horizontal row of tall portrait tiles (2:3), ~3 full tiles plus
   the next tile peeking at the right edge, drag/swipe with snap,
   finite (no loop), no arrows/dots/scrollbar; each tile is a full-bleed
   photo with a bold lowercase label and a white pill at the bottom,
   and the whole tile is one link. Two behaviours asked for that
   e.l.f. does not have: (1) idle life — a very slow Ken Burns drift on
   the tile photos, pausing on hover/drag; (2) a real highlight on
   interaction — the tile lifts, the label takes the brand red and the
   pill inverts to red with its arrow chip flipped white.
   e.l.f. sits on black; ours sits on white (the white-base rule).

   Progressive enhancement: with no JS the strip is a natively
   scrollable overflow-x row and every tile is a plain link.
   js/video-strip.js only adds mouse/pen drag (touch keeps native
   swipe). Photo credits ride on each tile exactly as wired in
   content/wft/thumbs.json, styled like the hero collage's
   .photo-credit chips; where thumbs.json carries a creditUrl the
   credit links to the licence/source page. */

.vs-section{background:var(--cream);color:var(--ink)}
.vs-section .section-header{margin-bottom:var(--space-6)}
.vs-section h2{font-size:clamp(2.2rem,6vw,3.4rem)}

/* The strip: full-bleed right, first tile aligned to the .wrap edge. */
.vs-strip{
  display:flex;
  gap:1.75rem;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:.75rem var(--pad-page) 1.5rem max(var(--pad-page),calc((100vw - var(--measure-wide))/2));
}
.vs-strip::-webkit-scrollbar{display:none}
.vs-strip.vs-drag{cursor:grab}
.vs-strip.is-dragging{
  scroll-snap-type:none;
  cursor:grabbing;
  user-select:none;
  -webkit-user-select:none;
}

.vs-tile{
  position:relative;
  flex:0 0 auto;
  width:clamp(280px,28vw,440px);
  scroll-snap-align:start;
  margin:0;
}
.vs-tile-link{
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  aspect-ratio:2/3;
  background:var(--media-bg);
  text-decoration:none;
  transition:transform .45s var(--ease),box-shadow .45s var(--ease);
}
.vs-tile-link img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Highlight on interaction — hover, keyboard focus and active all
   register the same way. */
.vs-tile-link:hover,
.vs-tile-link:focus-visible{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 20px 44px rgba(17,17,15,.20);
}
.vs-tile-link:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.vs-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.95rem;
  padding:0 1rem 2.1rem;
  text-align:center;
  pointer-events:none;
}
.vs-label{
  font-family:var(--font-sans);
  font-weight:700;
  text-transform:lowercase;
  font-size:clamp(1.7rem,2.4vw,2.15rem);
  line-height:1.05;
  letter-spacing:-.01em;
  color:#fff;
  text-shadow:0 1px 16px rgba(17,17,15,.55);
  transition:color .3s var(--ease);
}
.vs-tile-link:hover .vs-label,
.vs-tile-link:focus-visible .vs-label{color:var(--brand-red)}
.vs-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  background:#fff;
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:.85rem 1.15rem .85rem 1.5rem;
  border-radius:999px;
  transition:background-color .3s var(--ease),color .3s var(--ease);
}
.vs-chip{
  display:grid;
  place-items:center;
  width:1.35rem;
  height:1.35rem;
  border-radius:50%;
  background:var(--brand-red);
  color:#fff;
  font-size:.85rem;
  line-height:1;
  transition:background-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease);
}
.vs-tile-link:hover .vs-pill,
.vs-tile-link:focus-visible .vs-pill{background:var(--brand-red);color:#fff}
.vs-tile-link:hover .vs-chip,
.vs-tile-link:focus-visible .vs-chip{
  background:#fff;
  color:var(--brand-red);
  transform:translateX(2px);
}

/* Photo credit — exactly as wired in thumbs.json, hero-collage chip
   treatment, sitting on the photo's top-right corner. */
.vs-credit{
  position:absolute;
  top:.55rem;
  right:.55rem;
  z-index:3;
  margin:0;
  max-width:calc(100% - 1.1rem);
  padding:.15rem .45rem;
  border-radius:3px;
  background:rgba(17,17,17,.62);
  color:#fff;
  font-family:var(--font-sans);
  font-size:.66rem;
  line-height:1.3;
}
.vs-credit a{color:#fff;text-decoration:none}
.vs-credit a:hover{text-decoration:underline;text-underline-offset:.15em}

/* Idle life — a Ken Burns drift on the photo only (clipped by the
   tile), staggered per tile, paused on hover and while dragging.
   Retuned 2026-11-16: the first tuning (23–32s cycles, scale
   1.04–1.13, pan ≤2.4%) was genuinely running but imperceptible —
   ease-in-out over that long a cycle sits near-still around each
   turnaround, and a slow zoom on a full-bleed cropped photo has no
   fixed edge to read against. Now: 14–18s cycles, scale 1.0–1.08
   plus a ±2.5% pan that grows with the zoom (so the photo's edge
   never uncovers the tile), even tiles panning the other way. */
@media (prefers-reduced-motion:no-preference){
  .vs-tile-link img{animation:vs-kb 16s ease-in-out infinite alternate}
  .vs-tile:nth-child(2n) .vs-tile-link img{animation-name:vs-kb-r;animation-duration:18s;animation-delay:-6s}
  .vs-tile:nth-child(3n) .vs-tile-link img{animation-duration:14s;animation-delay:-10s}
  .vs-tile:nth-child(4n) .vs-tile-link img{animation-duration:17s;animation-delay:-4s}
  .vs-tile:hover .vs-tile-link img,
  .vs-strip.is-dragging .vs-tile-link img{animation-play-state:paused}
}
@keyframes vs-kb{
  from{transform:scale(1) translate(0,0)}
  to{transform:scale(1.08) translate(-2.5%,-1.8%)}
}
@keyframes vs-kb-r{
  from{transform:scale(1) translate(0,0)}
  to{transform:scale(1.08) translate(2.5%,-1.8%)}
}
@media (prefers-reduced-motion:reduce){
  .vs-tile-link{transition:none}
}

@media (max-width:860px){
  .vs-strip{gap:1rem;padding-bottom:1.25rem}
  .vs-tile{width:72vw}
  .vs-label{font-size:1.65rem}
  .vs-overlay{padding-bottom:1.6rem}
}
/* 2026-11-17: second affordance under the Watch pill (keep Watch + Open the guide). */
.vs-guide{font-family:var(--font-sans);font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff;text-decoration:underline;text-underline-offset:.35em;text-shadow:0 1px 12px rgba(17,17,15,.55);margin-top:-.35rem}
.vs-tile-link:hover .vs-guide,.vs-tile-link:focus-visible .vs-guide{color:#fff;text-shadow:0 1px 14px rgba(17,17,15,.9),0 0 3px rgba(17,17,15,.65)}
