/* =========================================================
   Clip reel (shared): two rows of real top clips moving in
   opposite directions. Used by index.html and for-clippers.html.
   Markup is generated by tools/build-clip-reel.py between the
   CLIP REEL markers; thumbnails are loaded by js/clip-reel.js.
   Moved out of index.html's inline <style> unchanged (Nov 2026).
   ========================================================= */
/* Each row holds its cards twice, and each copy slides one full width,
   so the loop has no seam. */
/* clip, not hidden: a hidden box can still be scrolled (by focus or a
   screen reader), which would shift the rows and open a gap in the loop */
.hp-reel { padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 5.5vw, 64px); overflow: hidden; overflow: clip; }
.hp-reel-label { text-align: center; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 22px; }
/* Capped at 2400px so one copy of a row (15 cards, 2580px at full size)
   always covers the visible width, even on ultrawide screens; the build
   script refuses rows short enough to leave a gap. The edge fades are
   page-coloured overlays (cheaper than a mask over moving layers). */
.hp-reel-rows { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 2400px; margin: 0 auto; overflow: hidden; overflow: clip; }
.hp-reel-rows::before, .hp-reel-rows::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 6%; pointer-events: none; }
.hp-reel-rows::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.hp-reel-rows::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.hp-reel-row { display: flex; width: max-content; }
.hp-reel-track { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; flex: none; will-change: transform; animation: hpReel calc(var(--n, 15) * 4.2s) linear infinite; }
.hp-reel-row--rev .hp-reel-track { animation-direction: reverse; }
/* pause off screen (set by the loader script) and under a real mouse;
   touch screens get no hover pause, so a tap can't leave a row stuck */
.hp-reel.is-off .hp-reel-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .hp-reel-row:hover .hp-reel-track { animation-play-state: paused; } }
@keyframes hpReel { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.hp-reel-card { position: relative; display: block; width: clamp(118px, 12vw, 158px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); color: #fff; text-decoration: none; isolation: isolate; transition: border-color 200ms ease; }
/* styles.css forces links whose aria-label mentions "Instagram" or " on X"
   to 44x44px on phones (meant for footer social icons); clip cards name
   their platform, so without this they collapse into 44px squares. */
@media (max-width: 768px) and (pointer: coarse), (max-width: 540px) {
  .hp-reel .hp-reel-track a.hp-reel-card { width: clamp(118px, 12vw, 158px) !important; height: auto !important; }
}
.hp-reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.hp-reel-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.32) 0, rgba(0,0,0,0) 56px), linear-gradient(to top, rgba(0,0,0,0.86) 0, rgba(0,0,0,0.5) 70px, rgba(0,0,0,0) 120px); }
@media (hover: hover) and (pointer: fine) {
  .hp-reel-card:hover { border-color: var(--hp-hot, rgba(125,166,255,0.45)); }
  .hp-reel-card:hover img { transform: scale(1.05); }
}
.hp-reel-plat { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,0.55); }
.hp-reel-plat:empty { display: none; }
.hp-reel-plat svg { width: 14px; height: 14px; color: #fff; fill: currentColor; }
.hp-reel-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.hp-reel-views { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hp-reel-views small { font-size: 0.68rem; font-weight: 600; opacity: 0.82; letter-spacing: 0; }
.hp-reel-client { font-size: 0.7rem; font-weight: 600; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .hp-reel-rows::before, .hp-reel-rows::after { display: none; }
  .hp-reel-row { width: auto; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .hp-reel-track { animation: none; }
  .hp-reel-track[aria-hidden="true"] { display: none; }
  .hp-reel-track li { scroll-snap-align: start; }
  .hp-reel-card img { transition: none; }
}
