/* ==========================================================================
   COLORWAYS — real product renders, horizontal pinned rail on desktop
   ========================================================================== */
.story-fade--out { background: linear-gradient(180deg, #fff4e0 0%, #f1f4fb 45%, #e4eeff 100%); }

.colorways {
  position: relative;
  background: var(--cw-bg, #e4eeff);
  color: #0b1220;
  overflow: hidden;
}
.colorways__head { position: absolute; top: clamp(76px, 11vh, 120px); left: clamp(24px, 6vw, 96px); z-index: 3; pointer-events: none; }
.colorways__head .t-eyebrow { color: #0b4fd6; }
.colorways__title {
  margin: 6px 0 0;
  font-family: var(--font-sport); font-weight: 800;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1;
}
.colorways__track { display: flex; width: calc(var(--cw-n, 4) * 100vw); will-change: transform; }
.cw-panel {
  position: relative;
  flex: 0 0 100vw; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
  align-items: center; gap: 2vw;
  padding: 18vh 6vw 10vh;
  overflow: hidden;
}
.cw-panel__word {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(100px, 15vw, 260px); line-height: 0.9; letter-spacing: -0.03em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--c) 16%, transparent);
  pointer-events: none; user-select: none;
  will-change: transform;
}
.cw-panel__copy { position: relative; z-index: 2; max-width: 460px; }
.cw-panel__series { font: 600 12px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #0b1220); margin: 0 0 10px; }
.cw-panel__name { font-family: var(--font-sport); font-weight: 800; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; margin: 0 0 14px; }
.cw-panel__tag { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(11, 18, 32, 0.68); }
.cw-panel__buy { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.cw-panel__price { font: 800 28px var(--font-mono); }
.cw-panel__buy s { color: rgba(11, 18, 32, 0.45); }
.cw-panel__cta { background: var(--c); color: #fff; box-shadow: 0 14px 34px -12px var(--c); }
.cw-panel__cta:hover { box-shadow: 0 18px 40px -10px var(--c); }
.cw-panel__media { position: relative; z-index: 1; height: min(62vh, 640px); }
.cw-img { position: absolute; height: auto; filter: drop-shadow(0 30px 34px color-mix(in srgb, var(--c) 28%, rgba(11, 18, 32, 0.22))); will-change: transform; }
.cw-img--main { left: 50%; top: 50%; width: min(100%, 880px); transform: translate(-50%, -50%); }
.cw-img--b { right: -2%; bottom: -4%; width: 34%; opacity: 0.96; }
.cw-img--c { left: -2%; top: -6%; width: 30%; opacity: 0.96; }

.colorways__dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.colorways__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: 0.35; transition: opacity 0.3s, transform 0.3s; }
.colorways__dots i.is-on { opacity: 1; transform: scale(1.5); }

/* Not pinned (mobile / reduced motion): normal stack, each panel keeps its own tint */
.colorways:not(.is-pinned) .colorways__track { display: block; width: auto; }
.colorways:not(.is-pinned) .colorways__dots { display: none; }
.colorways:not(.is-pinned) .cw-panel { background: var(--tint); min-height: 0; padding: 40px 24px 36px; grid-template-columns: 1fr; gap: 18px; }
.colorways:not(.is-pinned) .colorways__head { position: relative; top: auto; left: auto; padding: 56px 24px 8px; }
.colorways:not(.is-pinned) .cw-panel__media { height: 56vw; max-height: 340px; }
.colorways:not(.is-pinned) .cw-panel__word { top: 30%; font-size: 40vw; }
@media (max-width: 760px) {
  .cw-img--b, .cw-img--c { display: none; }
}

/* ---- Ambient motion behind the renders (colour blobs drift slowly) ---- */
.cw-panel::before, .cw-panel::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(8px);
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 34%, transparent) 0%, transparent 68%);
}
.cw-panel::before { width: 46vw; height: 46vw; right: -8vw; top: 6vh; animation: cwDrift 15s ease-in-out infinite alternate; }
.cw-panel::after { width: 30vw; height: 30vw; left: 18vw; bottom: -10vh; animation: cwDrift 19s ease-in-out infinite alternate-reverse; }
@keyframes cwDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6vw, 5vh, 0) scale(1.15); } }
.cw-img--main { animation: cwFloat 6s ease-in-out infinite alternate; }
@keyframes cwFloat { from { translate: 0 -6px; } to { translate: 0 10px; } }

/* ---- Lifestyle gallery: slow Ken Burns so every photo feels alive ---- */
.cinema-bento > * { overflow: hidden; }
.cinema-bento img:not(.cinema-scene__product) { animation: kenBurns 24s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.cinema-bento > *:nth-child(even) img:not(.cinema-scene__product) { animation-duration: 30s; animation-direction: alternate-reverse; }
@keyframes kenBurns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }

@media (prefers-reduced-motion: reduce) {
  .cw-panel::before, .cw-panel::after, .cw-img--main, .cinema-bento img { animation: none; }
}

/* While the live 3D model owns a panel, its flat render steps aside */
.cw-panel .cw-img--main { transition: opacity 0.5s ease; }
.cw-panel.is-live .cw-img--main { opacity: 0; }
.cw-panel__live { display: none; }
.cw-panel.is-live .cw-panel__live { display: block; position: absolute; right: 6vw; bottom: 4vh; font: 600 11px var(--font-mono); letter-spacing: 0.14em; color: color-mix(in srgb, var(--c) 70%, #0b1220); }

/* ==========================================================================
   Lifestyle gallery v2 — scene + floating product render (replaces baked-in ad creatives)
   ========================================================================== */
.cinema-scene__stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8f1fb; }
.cinema-span-4 .cinema-scene__stage { aspect-ratio: 4 / 3; }
.cinema-scene__bg { position: absolute; inset: -6%; background-size: cover; background-position: center; animation: kenBurns 26s ease-in-out infinite alternate; will-change: transform; }
.cinema-scene__stage--sunset .cinema-scene__bg { background-position: 50% 12%; }
.cinema-scene__stage--water .cinema-scene__bg { background-position: 55% 0%; }
.cinema-scene__stage--sky .cinema-scene__bg { background-position: 50% 35%; }
.cinema-scene__stage--green { background: #eefad2; }
.cinema-scene__stage--music { background: #e4eeff; }
.cinema-scene__bg--blobs { animation: none; }
.cinema-scene__stage--green .cinema-scene__bg--blobs { background: radial-gradient(circle at 25% 30%, rgba(0, 245, 122, 0.4), transparent 55%), radial-gradient(circle at 80% 80%, rgba(168, 255, 0, 0.35), transparent 50%); }
.cinema-scene__stage--music .cinema-scene__bg--blobs { background: radial-gradient(circle at 70% 25%, rgba(0, 102, 255, 0.35), transparent 55%), radial-gradient(circle at 20% 85%, rgba(0, 210, 255, 0.35), transparent 50%); }
.glass-cinema-card .cinema-scene__product {
  position: absolute; left: 50%; top: 50%; width: 74%; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 26px 30px rgba(11, 18, 32, 0.38));
  animation: sceneFloat 6.5s ease-in-out infinite alternate;
  will-change: transform;
}
.cinema-span-4 .cinema-scene__product { width: 80%; }
@keyframes sceneFloat { from { translate: 0 -8px; rotate: -1.2deg; } to { translate: 0 10px; rotate: 1.2deg; } }
.cinema-scene__eq { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 34%; display: flex; align-items: flex-end; gap: 4px; opacity: 0.75; }
.cinema-scene__eq i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #00b8ff, #0066ff); transform-origin: bottom; transform: scaleY(0.12); }

/* compare matrix: floating renders above the Swim / Run columns */
.mini-matrix__products { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; align-items: end; margin-top: 20px; }
.mini-matrix__products img { width: 100%; max-width: 230px; height: auto; justify-self: center; filter: drop-shadow(0 16px 18px rgba(11, 18, 32, 0.28)); animation: sceneFloat 6s ease-in-out infinite alternate; }
.mini-matrix__products img:nth-child(3) { animation-delay: -2.4s; }
@media (max-width: 760px) { .mini-matrix__products { grid-template-columns: minmax(0, 0.8fr) repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .cinema-scene__bg, .glass-cinema-card .cinema-scene__product, .mini-matrix__products img { animation: none; } }

/* top row: equal-height stages so both cards line up */
.cinema-span-7 .cinema-scene__stage, .cinema-span-5 .cinema-scene__stage { aspect-ratio: auto; height: clamp(300px, 29vw, 440px); }
@media (max-width: 960px) { .cinema-span-7 .cinema-scene__stage, .cinema-span-5 .cinema-scene__stage { height: auto; aspect-ratio: 4 / 3; } }

/* three products: matrix columns follow the number of products; showcase cards fit three across */
.mini-matrix__row, .mini-matrix__products { grid-template-columns: 1.1fr repeat(var(--cols, 3), 1fr); }
.mini-matrix__products { --cols: 3; }
@media (min-width: 1100px) { .field-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mini-matrix__row, .mini-matrix__products { grid-template-columns: minmax(0, 0.7fr) repeat(var(--cols, 3), minmax(0, 1fr)); } }
