/* Showreel Zoom — a BYQ-skinned port of the Kelvin "showreel" section.
   The hero is already full-bleed (inset: 0) and simply starts scaled down to
   0.26, so scrubbing it to scale 1 fills the pinned stage exactly — no width
   maths, no letterboxing. Four stills sit at fixed spots and are pushed out
   along their own centre-to-thumb vectors, scaling and blurring as they clear
   the frame, while the centre copy fades away over the first stretch.
   Every selector is scoped to .byq-gem--showreel-zoom-01. */

.byq-gem--showreel-zoom-01 {
  font-family: var(--byq-font-sans);
  color: var(--byq-fg);
}

/* ---- Scroll runway + pinned stage ---- */
.byq-gem--showreel-zoom-01__track {
  position: relative;
  height: 300vh;
}

.byq-gem--showreel-zoom-01__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ---- The stills ---- */
.byq-gem--showreel-zoom-01__thumb {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--byq-radius);
  /* JS writes --sz-x / --sz-y / --sz-s / --sz-blur / --sz-o */
  transform: translate(var(--sz-x, 0px), var(--sz-y, 0px)) scale(var(--sz-s, 1));
  filter: blur(var(--sz-blur, 0px));
  opacity: var(--sz-o, 1);
  will-change: transform, filter, opacity;
}

.byq-gem--showreel-zoom-01__thumb--t1 {
  width: 13vw;
  height: 18vw;
  top: 12%;
  left: 7%;
}

.byq-gem--showreel-zoom-01__thumb--t2 {
  width: 20vw;
  height: 12vw;
  top: 11%;
  left: 71%;
}

.byq-gem--showreel-zoom-01__thumb--t3 {
  width: 15vw;
  height: 10vw;
  top: 63%;
  left: 6%;
}

.byq-gem--showreel-zoom-01__thumb--t4 {
  width: 19vw;
  height: 12vw;
  top: 63%;
  left: 72%;
}

/* ---- The hero clip: full-bleed, held small until the scrub opens it up ---- */
.byq-gem--showreel-zoom-01__hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  /* JS writes --sz-hero-s / --sz-hero-y / --sz-round */
  transform: translateY(var(--sz-hero-y, 10%)) scale(var(--sz-hero-s, 0.26));
  border-radius: var(--sz-round, 1rem);
  will-change: transform;
}

.byq-gem--showreel-zoom-01__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

/* the hero alone comes back into colour as it opens */
.byq-gem--showreel-zoom-01__hero .byq-gem--showreel-zoom-01__img {
  filter: grayscale(var(--sz-gray, 1));
}

/* ---- The centre copy ---- */
.byq-gem--showreel-zoom-01__center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16vh 2rem 0;
  text-align: center;
  pointer-events: none;
  /* JS writes --sz-copy-o / --sz-copy-y */
  opacity: var(--sz-copy-o, 1);
  transform: translateY(var(--sz-copy-y, 0%));
}

.byq-gem--showreel-zoom-01__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 56rem;
}

.byq-gem--showreel-zoom-01__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.byq-gem--showreel-zoom-01__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--byq-fg);
}

.byq-gem--showreel-zoom-01__mono {
  font-family: var(--byq-font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  opacity: 0.6;
}

.byq-gem--showreel-zoom-01__head {
  margin: 0;
  font-family: var(--byq-font-display);
  font-weight: 400; /* house rule: display type is always the Regular cut */
  font-size: clamp(2rem, 6vmin, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---- Reduced motion: a readable still frame, nothing scrubs ---- */
@media (prefers-reduced-motion: reduce) {
  .byq-gem--showreel-zoom-01__hero {
    transform: scale(0.62);
  }
}
