/* Product Layers — scroll-driven block.
   Everything is scoped under .pl so it does not collide with the site's own classes.
   The section background must be exactly the same black as the frames (#000),
   otherwise the edge of the video shows. */

.pl {
  --pl-void: #000;
  --pl-text: #f2f2f0;
  --pl-text-soft: #a7abad;
  --pl-accent: #e9775f;
  --pl-accent-hover: #dc6950;
  --pl-dot: #3a3d40;
  --pl-serif: 'Newsreader', Georgia, serif;
  --pl-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  position: relative;
  background: var(--pl-void);
  color: var(--pl-text);
  font-family: var(--pl-sans);
  /* Real height is set by product-layers.js from the frame count; this is the no-JS fallback. */
  height: calc(3800px + 100vh);
}
.pl * { box-sizing: border-box; }

.pl-stage { position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; height: 100svh; overflow: hidden; }
.pl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--pl-void); }

/* Wide screens: copy in a right-hand column, the frame is shifted left in JS to free it. */
.pl-notes { position: absolute; top: 0; right: 0; bottom: 0; width: min(30rem, 38vw);
            display: flex; align-items: center; pointer-events: none; }
.pl-note { position: absolute; right: 48px; width: calc(100% - 48px); margin: 0;
           opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.pl-note.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pl-num { font: 500 14px/1 var(--pl-sans); letter-spacing: .1em; color: var(--pl-accent); margin: 0 0 14px; }
.pl-note h2 { font: 600 clamp(32px, 3.4vw, 46px)/1.08 var(--pl-serif); letter-spacing: -.01em; margin: 0 0 14px; text-wrap: balance; }
.pl-note p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--pl-text-soft); margin: 0; }
.pl-note p strong { color: var(--pl-text); font-weight: 500; }

.pl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 8px; }
.pl-stats b { display: block; font: 600 clamp(34px, 3.4vw, 46px)/1 var(--pl-serif); color: var(--pl-text); }
.pl-stats span { font-size: 15px; line-height: 1.45; color: var(--pl-text-soft); }

.pl-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pl-btn { display: inline-block; padding: 15px 24px; border-radius: 999px; font: 600 16px/1.2 var(--pl-sans);
          text-decoration: none; transition: transform .15s ease, background .15s ease; }
.pl-btn:hover { transform: translateY(-1px); }
.pl-btn:focus-visible { outline: 2px solid var(--pl-text); outline-offset: 3px; }
.pl-btn-primary { background: var(--pl-accent); color: #fff; }
.pl-btn-primary:hover { background: var(--pl-accent-hover); }
.pl-btn-ghost { border: 1.5px solid var(--pl-text); color: var(--pl-text); }

.pl-progress { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.pl-progress i { width: 6px; height: 6px; border-radius: 50%; background: var(--pl-dot); transition: background .3s; }
.pl-progress i.is-on { background: var(--pl-accent); }

/* Tablets and narrow landscape: copy moves to a band at the bottom over a gradient. */
@media (max-width: 1215px) {
  .pl-notes { left: 0; width: auto; top: auto; height: 46%;
              background: linear-gradient(to top, var(--pl-void) 62%, rgba(0, 0, 0, 0)); align-items: flex-end; }
  .pl-note { left: 24px; right: 24px; width: auto; bottom: 34px; max-width: 40rem; }
  .pl-progress { display: none; }
}
@media (max-width: 600px) {
  .pl-notes { height: 52%; }
  .pl-note { left: 16px; right: 16px; bottom: 24px; }
  .pl-note h2 { font-size: 30px; }
  .pl-note p { font-size: 17px; }
  .pl-stats { gap: 14px 18px; }
  .pl-stats b { font-size: 30px; }
}

/* Reduced motion: no scrubbing; one still frame and the copy as a normal list. */
.pl.is-static { height: auto; }
.pl.is-static .pl-stage { position: relative; height: auto; overflow: visible; }
.pl.is-static .pl-canvas { position: relative; height: 56vw; max-height: 70vh; }
.pl.is-static .pl-notes { position: relative; width: auto; height: auto; background: none; display: block; padding: 24px; }
.pl.is-static .pl-note { position: relative; inset: auto; width: auto; opacity: 1; transform: none; margin: 0 auto 48px; max-width: 40rem; }
.pl.is-static .pl-progress { display: none; }
