/* "Why choose Trade Like Shrimp?" with the HFM Premiere Award 2026 (index.html #why-tls, js/why-tls.js).
   One seamless scene, no boxes: layer 1 a gold light loop behind the whole section, layer 2 the award film
   melted into it with a radial mask, layer 3 a glow and drifting gold dust. Phones: one column, swipeable
   cards, the film plays when half visible. Laptops (1024+): pinned for ~1.5 screens (CSS sticky, no
   scroll-jacking); the award rises in, turns to face you, then drifts at 0.85x while the cards fly in.
   Motion is transform/opacity only; with reduce-motion only the posters show. */
.wtls { --p: 0; --bg: #0D0F12; position: relative; isolation: isolate; background: var(--bg); }
/* clip, not hidden: "hidden" still lets a card swipe or a focus jump scroll the whole section sideways */
.wtls-pin { position: relative; padding-block: clamp(56px, 40px + 5vw, 104px); overflow: hidden; overflow: clip; }

/* layer 1: the stage light, full-bleed at ~70%, fading into the page at top and bottom */
.wtls-stage { position: absolute; inset: 0; z-index: -1; opacity: .35; transition: opacity 900ms var(--ease-out); pointer-events: none; }
.wtls-stage picture { position: absolute; inset: 0; }
.wtls-bgi { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block;
  transform-origin: 50% 30%; will-change: transform, opacity; }
/* the rays breathe: frame A drifts in slowly while frame B (the same light 5 s later) fades in and out over it */
.wtls-bgi.a { animation: wtlsDriftA 16s ease-in-out infinite alternate; }
.wtls-bgi.b { opacity: 0; animation: wtlsDriftB 10s ease-in-out infinite alternate; }
@keyframes wtlsDriftA { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1%, -1.5%, 0); } }
@keyframes wtlsDriftB { from { opacity: 0; transform: scale(1.05) translate3d(1%, -1%, 0); } to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } }
.wtls-stage::before, .wtls-stage::after { content: ""; position: absolute; left: 0; right: 0; height: 28%; z-index: 1; }
.wtls-stage::before { top: 0; background: linear-gradient(var(--bg), rgba(13, 15, 18, 0)); }
.wtls-stage::after { bottom: 0; background: linear-gradient(rgba(13, 15, 18, 0), var(--bg)); }
.wtls.lit .wtls-stage { opacity: .7; }

.wtls-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.wtls-copy, .wtls-award { min-width: 0; }   /* the swipeable card row must not widen the column */
.wtls-award { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1200px; }

/* layer 2: the award film. No border, no shadow, no background: the mask fades every edge to nothing */
.wtls-scene { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 78vh;
  transform: translate3d(0, var(--ty, 0px), 0) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) scale(var(--sc, 1));
  transform-style: preserve-3d; will-change: transform; transition: transform 500ms cubic-bezier(.22, 1, .36, 1); }
.wtls-av, .wtls-glare { position: absolute; inset: 0; width: 100%; height: 100%; }
.wtls-av { display: block; object-fit: cover; object-position: 50% 55%; background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0, 0, 0, .55) 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0, 0, 0, .55) 78%, transparent 100%); }
/* the light streak that follows the cursor (laptops), under the same mask so it has no edge either */
.wtls-glare { pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity 400ms var(--ease-out);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 35%), rgba(255, 232, 180, .30), rgba(255, 232, 180, 0) 34%),
              linear-gradient(115deg, rgba(255, 236, 190, 0) calc(var(--gx, 50%) - 12%), rgba(255, 236, 190, .14) var(--gx, 50%), rgba(255, 236, 190, 0) calc(var(--gx, 50%) + 12%));
  -webkit-mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, #000 40%, transparent 100%); }
.wtls-scene.hover .wtls-glare { opacity: 1; }
/* the scroll shine: a diagonal gold band crossing the trophy, driven by --sh (0..1) from js/why-tls.js.
   It fades in, peaks mid-sweep and fades out; transform/opacity only, masked so it never shows an edge. */
.wtls-shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 30% 44% at 50% 48%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 30% 44% at 50% 48%, #000 45%, transparent 100%); }
.wtls-shine b { position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(90deg, rgba(255, 226, 160, 0), rgba(255, 226, 160, .22) 35%, rgba(255, 248, 225, .5) 50%, rgba(255, 226, 160, .22) 65%, rgba(255, 226, 160, 0));
  transform: translate3d(calc(-110% + var(--sh, 0) * 400%), 0, 0) skewX(-18deg); will-change: transform;
  transition: transform 140ms linear; }
.wtls-shine b::after { content: ""; position: absolute; left: 50%; top: 38%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 236, 190, .8) 30%, rgba(255, 236, 190, 0) 70%); box-shadow: 0 0 18px 6px rgba(255, 220, 150, .55); }
/* layer 3: a soft glow breathing behind the award, and gold dust drifting up through it */
.wtls-glow { position: absolute; left: 50%; top: 50%; width: 130%; height: auto; z-index: -1; pointer-events: none; opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent);
  transform: translate(-50%, -50%) scale(.95); animation: wtlsGlow 6s ease-in-out infinite; }
@keyframes wtlsGlow { 0%, 100% { transform: translate(-50%, -50%) scale(.95); opacity: .5; } 50% { transform: translate(-50%, -50%) scale(1.04); opacity: .8; } }
/* each particle is a full-height track (so -80% means 80% of the scene) with the dot at its foot */
.wtls-dust { position: absolute; inset: 4% 14% 10%; pointer-events: none; contain: layout paint; }
.wtls-dust i { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--s); opacity: 0;
  animation: wtlsDust var(--d) linear var(--t) infinite; will-change: transform, opacity; }
.wtls-dust i::before { content: ""; position: absolute; left: 0; bottom: 0; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #FFE7B0, rgba(230, 194, 122, .6) 45%, rgba(230, 194, 122, 0) 70%); }
@keyframes wtlsDust { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: var(--o); } 75% { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), -80%, 0); opacity: 0; } }
.wtls-cap { margin: var(--s5) 0 0; min-height: 1.5em; font-weight: 600; letter-spacing: .02em; color: var(--fg); text-align: center; }
.wtls-type.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--gold); animation: wtlsBlink 900ms steps(1) infinite; }
@keyframes wtlsBlink { 50% { opacity: 0; } }
.wtls-cat { margin: 4px 0 0; color: var(--fg-2); font-size: 14px; text-align: center; }
.wtls-proof { margin-top: var(--s3); min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--gold-hi); font: 600 14px var(--font);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.wtls-eyebrow { color: var(--gold-hi); }
.wtls-lead { margin-top: var(--s4); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; color: var(--fg); max-width: 34ch; }
.wtls-sub { margin-top: var(--s3); }

/* reason cards: a swipeable row on phones, a 3x2 grid from 768 */
.wtls-cards { list-style: none; margin: var(--s5) calc(-1 * var(--gutter, 16px)) 0; padding: 4px var(--gutter, 16px) 8px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wtls-cards::-webkit-scrollbar { display: none; }
.wtls-card { position: relative; flex: 0 0 78%; scroll-snap-align: center; padding: 18px; border-radius: var(--r-card, 12px); overflow: hidden;
  /* solid, not backdrop-blurred: a blur over the playing stage film is redrawn every frame (halved the frame rate) */
  background: rgba(19, 22, 27, .92); border: 1px solid rgba(255, 255, 255, .06);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out); }
.wtls-card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.wtls-card p { margin: 0; color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.wtls-card a { color: var(--gold-hi); }
.wtls-num { display: block; color: var(--gold-hi); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.wtls-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; }
.wtls-ic img { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
/* gold sheen sweeping across a card once it has arrived */
.wtls-card::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: translateX(-120%) rotate(18deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(230, 194, 122, 0), rgba(230, 194, 122, .16), rgba(230, 194, 122, 0)); }
.wtls-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.wtls-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: transform 200ms var(--ease-out), background 200ms; }
.wtls-dots i.on { background: var(--gold); transform: scaleX(1.6); }
.wtls-chips { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wtls-chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(212, 168, 75, .35); color: var(--fg-2); font-size: 13px; }
.wtls-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
.wtls-cta .btn { flex: 1 1 180px; }

/* entry motion (phones and tablets: once, when scrolled into view; laptops: driven by the pinned scroll) */
.js .wtls-award, .js .wtls-copy > :not(.wtls-cards):not(.wtls-dots) { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.js .wtls.lit .wtls-award, .js .wtls.lit .wtls-copy > * { opacity: 1; transform: none; }
.js .wtls-card { opacity: 0; transform: translate3d(0, 40px, 0); }
.js .wtls.cards-in .wtls-card { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms cubic-bezier(.34, 1.4, .64, 1), border-color 220ms var(--ease-out);
  transition-delay: calc(var(--i) * 70ms); }
.js .wtls-ic { transform: scale(.6); opacity: 0; }
.js .wtls.cards-in .wtls-ic { transform: none; opacity: 1; transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1), opacity 300ms var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }
.js .wtls.cards-in .wtls-card::after { animation: wtlsSheen 1200ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 300ms); }
@keyframes wtlsSheen { from { transform: translateX(-120%) rotate(18deg); } to { transform: translateX(520%) rotate(18deg); } }

/* lightbox: the real photo, as proof */
.wtls-box { padding: 0; border: 0; background: transparent; max-width: min(92vw, 560px); max-height: 92vh; overflow: visible; }
.wtls-box::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wtls-box img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 14px; }
.wtls-x { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: #15181D; color: #fff; display: grid; place-items: center; cursor: pointer; }
.wtls-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1023px) {
  .wtls-scene { width: min(100%, 520px); }   /* phones/tablets: the 9:16 film, cropped to 3:4 */
}
@media (min-width: 768px) {
  .wtls-cards { margin-inline: 0; padding-inline: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .wtls-card { flex: none; }
  .wtls-dots { display: none; }
  .wtls-cta .btn { flex: 0 0 auto; min-width: 200px; }
}
@media (min-width: 1024px) {
  .wtls-grid { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
  /* laptops: the 16:9 film, square crop around the trophy, bleeding past its column (the mask leaves no edge) */
  .wtls-scene { width: 136%; margin-inline: -18%; aspect-ratio: 1 / 1; max-height: 76vh; }
  .wtls-av { object-position: 48% 55%; }
  .wtls-card { padding: 16px; }
  .wtls-card p { font-size: .9rem; }
  .wtls-ic, .wtls-ic img { width: 52px; height: 52px; }
  .wtls-card:hover { transform: translate3d(0, -4px, 0); border-color: rgba(212, 168, 75, .35); }
  /* pinned: the section is 1.5 screens taller than the screen; its content stays put while it plays */
  .wtls.pinned { height: 250vh; }
  .wtls.pinned .wtls-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; align-items: center; padding-block: calc(var(--nav-h, 64px) + 16px) 24px; }
  /* the stage brightens from 35% to 70% while the award rises in (first quarter of the scroll) */
  .wtls.pinned .wtls-stage { opacity: calc(.35 + .35 * min(1, var(--p) / .25)); transition: none; }
}
/* reduced motion (or video blocked): the posters only, nothing moves, everything shown at once */
@media (prefers-reduced-motion: reduce) {
  .js .wtls-award, .js .wtls-copy > *, .js .wtls-card, .js .wtls-ic { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wtls-stage { opacity: .7 !important; transition: none !important; }
  .wtls-scene { transform: none !important; transition: none !important; }
  .wtls-card::after, .wtls-type.typing::after { animation: none !important; display: none; }
  .wtls-glow { animation: none !important; opacity: .6; }
  .wtls-dust, .wtls-shine, .wtls-bgi.b { display: none; }
  .wtls-bgi.a { animation: none !important; }
}
