/* ============================================================= */
/*  /video-production — page-local styles, layered on top of      */
/*  how-it-works.css (loaded first and reused as-is: the .hiw      */
/*  type, columns, windows, shadows, journey line, entrances and   */
/*  call to action). Everything here is scoped to .vp.             */
/*                                                                 */
/*  MOTION. Four kinds, each on its own property, never mixed:     */
/*    transform — the one-time entrance ([data-enter] → .is-in)    */
/*    translate — scroll parallax (video-production.js)            */
/*    rotate + scale — the 3D settle of interface panels           */
/*                     ([data-tilt]); none at all once settled     */
/*    transform on .vp-frame — the storyboard flight               */
/* ============================================================= */

/* ---- Type: oversized, confident ------------------------------ */
.vp .hiw-h { font-size: clamp(2.8rem, 6.8vw, 6.6rem); }
.vp .vp-h--xl { font-size: clamp(3.4rem, 9vw, 9rem); letter-spacing: -0.045em; line-height: .92; }
.vp .vp-h--finale { font-size: clamp(3rem, 7.6vw, 7.8rem); letter-spacing: -0.045em; line-height: .95; }
/* Line length is set on the heading itself (ch of ITS font size). */
.vp .hiw-copy, .vp .hiw-copy--end { max-width: none; }
.vp .hiw-h { max-width: 12ch; }
.vp .hiw-copy--end .hiw-h { margin-left: auto; }
.vp .hiw-copy--center .hiw-h, .vp .vp-story__copy .hiw-h { max-width: none; }

/* ---- Scene 1: headline left, the film crew right -------------- */
.vp-scene--open { padding-top: clamp(8.5rem, 13vw, 11rem); }
.vp-open {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.vp-open__copy { max-width: none !important; }
.vp-open__film { margin-right: -4%; }

/* Unframed footage and artwork on white: multiply melts any       */
/* near-white edge into the page — no box, no border.              */
.vp-film { position: relative; aspect-ratio: 16 / 9; mix-blend-mode: multiply; }
.vp-film video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.vp-art { margin: 0; mix-blend-mode: multiply; }
.vp-art img { display: block; width: 100%; height: auto; }
/* The supplied artwork and footage sit on near-white, not pure white */
/* (and the film-crew footage carries a faint line on its last rows):  */
/* a soft feather on every edge dissolves the rectangle into the page. */
/* Only the outer few percent — the subject is never touched.          */
.vp-film,
.vp-art img,
.vp-board__art {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.vp-board__art {   /* the board's black edge begins 4.6% in: feather only the margin */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 86%, transparent 100%);
}

/* ---- Scene 2: the idea ---------------------------------------- */
.vp-idea {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.vp-idea__art { margin-left: -3%; }
.vp-idea__copy { justify-self: end; }
.vp .vp-idea .hiw-h { font-size: clamp(2.6rem, 5vw, 5.6rem); }   /* five words, sized to their column */
.vp .vp-idea .hiw-h { max-width: 10ch; }

/* ---- Interface panels (scenes 3, 4, 6, 7) --------------------- */
/* The /how-it-works window (white, 1px hairline, 14px radius, the  */
/* same soft two-part shadow), sized so the screenshot is large and */
/* legible. The image is never cropped: the window takes its ratio. */
.vp-panel {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  perspective: 2200px;
  perspective-origin: 50% 30%;
}
.vp-panel--concepts  { width: 92%; margin-left: auto; }
.vp-panel--blueprint { width: 100%; }
.vp-panel--scenes    { width: 92%; }
.vp-panel--sound     { width: 92%; margin-left: auto; }
.vp .vp-shot {
  box-shadow: var(--hiw-shadow-lift);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}
.vp .vp-shot img { display: block; width: 100%; height: auto; }
html.js .vp [data-tilt] { will-change: rotate, scale; }

/* ---- Scene 5: the storyboard ---------------------------------- */
.vp-story { position: relative; padding-block: 0; }
.vp-line-anchor { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; }
.vp-story__sticky { padding-block: clamp(6rem, 12vw, 9rem); }
html.js .vp-story { height: calc(100vh + 240vh); }
html.js .vp-story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
  display: flex;
  align-items: center;
  padding-top: 4.5rem;              /* the fixed header */
}
.vp-story__inner { display: flex; flex-direction: column; align-items: center; }
.vp-story__copy { text-align: center; max-width: none !important; margin-bottom: clamp(.5rem, 1.5vw, 1.25rem); }
.vp-board {
  position: relative;
  /* As wide as the column allows, but always short enough to fit   */
  /* under the headline: the board is never cut off.                */
  width: min(100%, calc((100svh - 15rem) * 1.4));
  aspect-ratio: 1484 / 1060;
  perspective: 1800px;
}
.vp-board__art { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.vp-frame {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  object-fit: cover;                /* slot 1.46:1, frame 1.5:1 — a ~3% trim, composition kept */
  border-radius: 6.1% / 8.9%;       /* the board's own slot corners (24px of a 400×274 slot) */
  backface-visibility: hidden;
}
html.js .vp-frame { opacity: 0; will-change: transform, opacity; }

/* ---- Scene 8: the finale -------------------------------------- */
.vp-finale__copy { margin-top: 0; }
.vp-finale__film { width: min(100%, 1180px); margin: clamp(1rem, 3vw, 2.5rem) auto 0; }

/* ---- Call to action: the add-on, beneath the trial button ----- */
.vp-cta__offer {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 700;
  color: var(--ink);
}
.vp .hiw-cta__note { margin-top: .4rem; }

/* =============================================================== */
/*  Tablet                                                          */
/* =============================================================== */
@media (max-width: 960px) {
  .vp-open { grid-template-columns: minmax(0, 1fr); }
  .vp-open__film { margin-right: 0; }
  .vp-idea { grid-template-columns: minmax(0, 1fr); }
  .vp-idea__copy { order: -1; }
  .vp-idea__art { margin-left: 0; }
  .vp-panel--concepts, .vp-panel--scenes, .vp-panel--sound { width: 100%; }
}

/* =============================================================== */
/*  Mobile — one column, story order kept, smaller movement.        */
/* =============================================================== */
@media (max-width: 760px) {
  .vp .hiw-h { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .vp .vp-h--xl { font-size: clamp(3.2rem, 16vw, 4.6rem); }
  .vp .vp-h--finale { font-size: clamp(2.6rem, 12.5vw, 3.8rem); }
  .vp .hiw-copy, .vp .hiw-copy--end { max-width: none; }
  .vp .vp-idea .hiw-h { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .vp .vp-idea__copy { justify-self: start; text-align: left; }
  .vp .hiw-copy--end .hiw-h { margin-left: 0; }
  .vp-scene--open { padding-top: 7.5rem; }
  .vp-panel { margin-top: 2rem; perspective: 1200px; }
  .vp .vp-shot { box-shadow: var(--hiw-shadow); }
  html.js .vp-story { height: calc(100vh + 180vh); }
  .vp-board { width: 100%; }
}

/* =============================================================== */
/*  Reduced motion: everything simply in place.                     */
/* =============================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js .vp-frame { opacity: 1; }
  html.js .vp-story { height: auto; }
  html.js .vp-story__sticky { position: static; height: auto; padding-block: clamp(6rem, 12vw, 9rem); }
}
