/* DIGITHRONEX · The Cut · Video: the editing craft, in the screening room (graphite, the footage leads).
   - 01 The cut: four shots, each cut to along the brand's 45° line as you scroll; "Video" rises on the second
   - 02 What we edit: the four services, each beside a real piece in its own shape
   - 03 Every shape: one frame that reshapes, 9:16 → 4:5 → 1:1 → 16:9, the shots cropped, never stretched
   - 04 The pace: a real film and a count that goes up on each of its cuts
   - 05 Every kind: the drive's kinds of footage as words; each shows its frame by the pointer
   - 06 In and out · 07 The editors
   Only transforms and opacity move, and only the shots on screen play. Behavior: video-page.js.
   Load after home.css and story.css. */

/* ---------- the room's shared parts ---------- */
.screen .eyebrow { color: var(--d-text3); }
.v-head { display: grid; gap: 14px; max-width: 52rem; margin-bottom: clamp(40px, 5vw, 80px); }
.v-title { font-size: clamp(38px, 5vw, 86px); color: var(--d-text); text-wrap: balance; }
.v-lead { margin: 0; max-width: 38em; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--d-text2); }

/* ---------- 01 The cut ---------- */
/* Each shot after the first sits in a mask turned to the brand angle; the scroll slides the mask across the screen, so
   the new shot comes in along a 45° line, and the shot inside is turned back so it never moves. studio-page's lights
   have the same scroll timing; here video-page.js sets each mask's transform (and --D, the screen's diagonal). */
.vcut-track { position: relative; height: 420vh; }
.vcut-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #050607; }
.vcut-shot { position: absolute; inset: 0; }
.vcut-mask {
  position: absolute; left: 50%; top: 50%; width: calc(2 * var(--D, 2400px)); height: calc(2 * var(--D, 2400px));
  margin: calc(-1 * var(--D, 2400px)) 0 0 calc(-1 * var(--D, 2400px)); overflow: hidden;
}
.vcut-shot + .vcut-shot .vcut-mask { transform: rotate(45deg) translate3d(0, calc(1.5 * var(--D, 2400px)), 0); will-change: transform; }
.vcut-inner {
  position: absolute; left: 50%; top: 50%; width: var(--W, 100vw); height: var(--H, 100vh);
  margin: calc(var(--H, 100vh) / -2) 0 0 calc(var(--W, 100vw) / -2);
}
.vcut-shot + .vcut-shot .vcut-inner { will-change: transform; }
.vcut-film { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the room's light on the footage: a vignette, and the floor darkened under the credit */
.vcut-nd {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 45%, rgba(5, 6, 7, .18) 35%, rgba(5, 6, 7, .62) 100%), linear-gradient(to top, rgba(5, 6, 7, .55), rgba(5, 6, 7, 0) 32%);
}
/* the room dims as the title comes up, so the words are what's sharp over any shot */
.vcut-dim { position: absolute; inset: 0; z-index: 5; background: rgba(5, 6, 7, .58); opacity: 0; pointer-events: none; will-change: opacity; }
.vcut.is-static .vcut-dim { opacity: 1; }
/* the cut itself: a line in the brand's azure along the moving edge (an instrument line, never a glow) */
.vcut-seam {
  position: absolute; left: 50%; top: 50%; z-index: 6; width: calc(2 * var(--D, 2400px)); height: 2px;
  margin: -1px 0 0 calc(-1 * var(--D, 2400px)); background: var(--brand-azure); opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.vcut-captions { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%); }
.vcut-title {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding-inline: var(--margin); text-align: center; pointer-events: none;
}
.vcut-title .statement { font-size: clamp(96px, 19vw, 360px); color: #F1F2F4; }
.vcut-kicker { color: rgba(241, 242, 244, .74); }
.vcut-lead { max-width: 34em; color: rgba(241, 242, 244, .86); }
/* which piece is on screen: credited as it plays */
.vcut-credit { position: absolute; left: var(--margin); bottom: clamp(22px, 4.5vh, 52px); z-index: 7; display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(241, 242, 244, .8); }
.vcut-rec { flex: none; width: 7px; height: 7px; background: var(--brand-azure); }
.vcut-hint { position: absolute; right: var(--margin); bottom: clamp(22px, 4.5vh, 52px); z-index: 7; margin: 0; color: rgba(241, 242, 244, .55); white-space: nowrap; transition: opacity calc(10 * var(--f)) linear; }
.vcut.is-moved .vcut-hint { opacity: 0; }
/* until the script has the scene: the title waits for its rise, the subtitle for its own (unless it arrived by a cut) */
.js .vcut:not(.is-ready) :is(.vcut-kicker, .vcut-title .statement, .vcut-lead) { opacity: 0; }
.rise-run:not([data-arrival]) .vcut:not(.is-in) .vcut-cue { opacity: 0; animation: vcut-failsafe 1ms linear 2.5s forwards; }
@keyframes vcut-failsafe { to { opacity: 1; } }
/* reduced motion: the first shot, its title over it */
.vcut.is-static .vcut-track { height: auto; }
.vcut.is-static .vcut-stage { position: relative; }
.vcut.is-static :is(.vcut-shot + .vcut-shot, .vcut-captions, .vcut-hint, .vcut-seam) { display: none; }

/* ---------- 02 What we edit ---------- */
.vsvc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: min(92vh, 960px); padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--d-line); }
.vsvc-text { grid-row: 1; grid-column: 1 / span 5; display: grid; gap: 16px; }
.vsvc-figure { grid-row: 1; grid-column: 7 / span 6; display: grid; gap: 12px; justify-items: center; margin: 0; }
.vsvc[data-side="left"] .vsvc-text { grid-column: 8 / span 5; }
.vsvc[data-side="left"] .vsvc-figure { grid-column: 1 / span 6; }
.vsvc--wide .vsvc-text { grid-column: 1 / span 4; }
.vsvc--wide .vsvc-figure { grid-column: 6 / span 7; justify-items: stretch; }
.vsvc--wide[data-side="left"] .vsvc-text { grid-column: 9 / span 4; }
.vsvc--wide[data-side="left"] .vsvc-figure { grid-column: 1 / span 7; }
.vsvc-no { margin: 0; color: var(--d-signal); }
.vsvc-name { margin: 0; font-stretch: 75%; font-weight: 760; font-size: clamp(64px, 8.4vw, 164px); line-height: .86; letter-spacing: -.02em; color: var(--d-text); }
.vsvc--wide .vsvc-name { font-size: clamp(56px, 6.4vw, 124px); white-space: nowrap; } /* its column is narrower: the name stays on one line */
.vsvc-what { margin: 0; max-width: 26em; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; color: var(--d-text2); }
.vsvc-where { display: grid; gap: 6px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--d-line); font-size: 15px; color: var(--d-text); }
.vsvc-where .label { color: var(--d-text3); }
.vsvc-frame { --c: var(--cut-l); position: relative; overflow: hidden; background: #050607; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.vsvc--tall .vsvc-frame { height: min(76vh, 740px); aspect-ratio: 9 / 16; }
.vsvc--wide .vsvc-frame { width: 100%; aspect-ratio: 16 / 9; }
.vsvc-film { display: block; width: 100%; height: 100%; object-fit: cover; }
.vsvc-slot {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(241, 242, 244, .035) 0 2px, transparent 2px 14px), var(--d-surface); box-shadow: inset 0 0 0 1px var(--d-line);
}
.vsvc-credit { margin: 0; color: var(--d-text3); }

/* ---------- 03 Every shape ---------- */
/* One frame, reshaped by the scroll. The film is laid out once, big enough to fill any of the four shapes; the frame
   is scaled to the shape and the film inside is scaled back, so it's cropped, never stretched. The corner marks
   stand at the frame's corners. video-page.js sets the transforms. */
.vshapes-track { position: relative; height: 440vh; }
.vshapes-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.6fr) minmax(0, .85fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--gutter);
  padding: clamp(96px, 13vh, 132px) var(--margin) clamp(24px, 4.5vh, 52px);
}
.vshapes-head { grid-column: 1; grid-row: 1; align-self: center; display: grid; gap: 14px; }
.vshapes-head .v-title { font-size: clamp(32px, 3.4vw, 60px); }
.vshapes-head .v-lead { font-size: clamp(16px, 1.15vw, 19px); }
.vshapes-view { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 0; }
.vshapes-frame { position: absolute; left: 50%; top: 50%; width: var(--fw, 640px); height: var(--fh, 360px); margin: calc(var(--fh, 360px) / -2) 0 0 calc(var(--fw, 640px) / -2); overflow: hidden; background: #050607; will-change: transform; }
.vshapes-inner { position: absolute; inset: 0; will-change: transform; }
.vshapes-film { display: block; width: 100%; height: 100%; object-fit: cover; }
.vshapes-corner { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 0 solid var(--brand-azure); will-change: transform; pointer-events: none; }
.vshapes-corner--tl { border-top-width: 2px; border-left-width: 2px; }
.vshapes-corner--tr { border-top-width: 2px; border-right-width: 2px; }
.vshapes-corner--br { border-bottom-width: 2px; border-right-width: 2px; }
.vshapes-corner--bl { border-bottom-width: 2px; border-left-width: 2px; }
.vshapes-steps { grid-column: 3; grid-row: 1; align-self: center; display: grid; gap: clamp(14px, 2.4vh, 26px); margin: 0; padding: 0; list-style: none; }
.vshapes-steps li { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid transparent; opacity: .3; transition: opacity calc(6 * var(--f)) linear, border-color calc(6 * var(--f)) linear; }
.vshapes-steps li.is-on { opacity: 1; border-left-color: var(--brand-azure); }
.vshapes-ratio { font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 500; font-size: clamp(36px, 3.8vw, 72px); line-height: 1; letter-spacing: -.04em; color: var(--d-text); }
.vshapes-where { color: var(--d-text2); }
.vshapes-credit { grid-column: 1; grid-row: 2; align-self: end; margin: 0; color: var(--d-text3); }
.vshapes.is-static .vshapes-track { height: auto; }
.vshapes.is-static .vshapes-stage { position: relative; height: auto; min-height: 100vh; }
.vshapes.is-static .vshapes-steps li { opacity: 1; }

/* ---------- 04 The pace ---------- */
.vpace-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--gutter); row-gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.vpace-player { grid-column: 1 / span 8; grid-row: 1 / span 3; display: grid; gap: 12px; margin: 0; }
.vpace-frame { --c: var(--cut-l); position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050607; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.vpace-film { display: block; width: 100%; height: 100%; object-fit: cover; }
.vpace-sound, .vsvc-sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.vpace-credit { margin: 0; color: var(--d-text3); }
.vpace-count { grid-column: 9 / span 4; grid-row: 1; display: grid; gap: 6px; }
.vpace-label { margin: 0; color: var(--d-text3); }
.vpace-n { position: relative; margin: 0; font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 500; font-size: clamp(120px, 12.5vw, 240px); line-height: .86; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--d-text); }
/* each cut lands as a hard cut of its own: the count is in azure for three frames */
.vpace-n.is-cut { color: var(--brand-azure); }
.vpace-flash { position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; background: var(--brand-azure); transform: scaleX(0); transform-origin: 0 50%; }
.vpace-n.is-cut .vpace-flash { transform: scaleX(1); }
.vpace-of { margin: 0; color: var(--d-text3); }
.vpace-facts { grid-column: 9 / span 4; grid-row: 2; display: grid; margin: 0; border-top: 1px solid var(--d-line); }
.vpace-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--d-line); }
.vpace-facts dt { color: var(--d-text3); }
.vpace-facts dd { margin: 0; font-family: var(--font-mono); font-stretch: 87.5%; font-size: 15px; color: var(--d-text); }
.vpace-note { grid-column: 9 / span 4; grid-row: 3; margin: 0; color: var(--d-text3); }

/* ---------- 05 Every kind ---------- */
.vkinds-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: .06em .42em; margin: 0; padding: 0; list-style: none; font-stretch: 75%; font-weight: 720; font-size: clamp(44px, 6.4vw, 124px); line-height: 1; letter-spacing: -.015em; }
.vkinds-list li { display: inline-flex; align-items: baseline; gap: .42em; }
.vkinds-list li:not(:last-child)::after { content: "/"; font-weight: 300; color: var(--d-line); }
.vkind { all: unset; cursor: default; color: var(--d-text); transition: color calc(4 * var(--f)) linear; }
.vkinds-list.is-pointing .vkind { color: var(--d-text3); }
.vkinds-list .vkind.is-on { color: #fff; }
.vkind:focus-visible { outline: 2px solid var(--d-signal); outline-offset: 6px; }
.vkinds-more { margin: clamp(32px, 4vw, 56px) 0 0; font-size: 18px; }
/* the frame of the kind you're pointing at, by the pointer (absolute in the section's column; video-page.js moves it) */
.vkinds-peek {
  --c: var(--cut-m); position: absolute; left: 0; top: 0; z-index: 4; width: auto; height: clamp(150px, 14vw, 230px); max-width: none;
  pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); transition: opacity calc(4 * var(--f)) linear; will-change: transform;
}
.vkinds-peek.is-tall { height: clamp(210px, 19vw, 320px); }
.vkinds-peek.is-on { opacity: 1; }

/* ---------- 06 In and out ---------- */
.vbrief-cols { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.vbrief-cut { background: var(--d-line); }
.vbrief-tag { margin: 0 0 18px; color: var(--d-signal); }
.vbrief-list { display: grid; margin: 0; border-top: 1px solid var(--d-line); }
.vbrief-list div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--d-line); }
.vbrief-list dt { font-stretch: 112.5%; font-weight: 560; font-size: clamp(17px, 1.3vw, 20px); color: var(--d-text); }
.vbrief-list dd { margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--d-text2); }
.vbrief .fact { white-space: normal; }

/* ---------- 07 The editors ---------- */
.veditors-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin: 0; padding: 0; list-style: none; }
.veditor {
  --c: var(--cut-m); display: flex; flex-direction: column; gap: 10px; min-height: clamp(280px, 23vw, 380px); padding: clamp(20px, 1.8vw, 28px);
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), var(--d-signal) calc(50% - .75px), var(--d-signal) calc(50% + .75px), transparent calc(50% + .75px)) right top / var(--c) var(--c) no-repeat,
    var(--d-surface);
  box-shadow: inset 0 0 0 1px var(--d-line);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.veditor-no { margin: 0; color: var(--d-text3); }
.veditor-name { margin: 0; font-stretch: 75%; font-weight: 760; font-size: clamp(44px, 4.2vw, 80px); line-height: .9; letter-spacing: -.015em; color: var(--d-text); }
.veditor-role { margin: 0; color: var(--d-signal); }
.veditor-focus { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--d-text2); }
/* the tools they cut in; logos in dark brand colours are shown light in this dark room */
.veditor-tools { display: flex; flex-wrap: wrap; gap: 14px; margin: auto 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--d-line); }
.veditor-mark { display: block; width: auto; height: 30px; color: var(--brand, var(--d-text)); }
.veditors-more { margin: clamp(28px, 3vw, 44px) 0 0; font-size: 18px; }

@media (max-width: 900px) {
  .vcut-title .statement { font-size: clamp(88px, 30vw, 160px); }
  .vcut-hint { display: none; }
  .vsvc, .vsvc[data-side="left"] { grid-template-columns: minmax(0, 1fr); row-gap: 28px; min-height: 0; }
  .vsvc .vsvc-text, .vsvc[data-side="left"] .vsvc-text, .vsvc--wide .vsvc-text, .vsvc--wide[data-side="left"] .vsvc-text { grid-column: 1; grid-row: 1; }
  .vsvc .vsvc-figure, .vsvc[data-side="left"] .vsvc-figure, .vsvc--wide .vsvc-figure, .vsvc--wide[data-side="left"] .vsvc-figure { grid-column: 1; grid-row: 2; }
  .vsvc--tall .vsvc-frame { height: auto; width: min(100%, 360px); }
  .vsvc-name { font-size: clamp(56px, 17vw, 96px); }
  .vshapes-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 16px; padding-top: 84px; }
  .vshapes-head { grid-column: 1; grid-row: 1; gap: 8px; }
  .vshapes-head .v-lead { display: none; }
  .vshapes-view { grid-column: 1; grid-row: 2; }
  .vshapes-steps { grid-column: 1; grid-row: 3; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .vshapes-steps li { padding-left: 8px; }
  .vshapes-ratio { font-size: 26px; }
  .vshapes-where { display: none; }
  .vshapes-credit { display: none; }
  .vpace-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .vpace-player, .vpace-count, .vpace-facts, .vpace-note { grid-column: 1; grid-row: auto; }
  .vpace-count { grid-template-columns: auto auto; justify-content: start; align-items: end; column-gap: 14px; }
  .vpace-label { grid-column: 1 / -1; }
  .vpace-n { font-size: clamp(96px, 30vw, 150px); }
  .vkinds-list { font-size: clamp(36px, 11vw, 64px); }
  .vbrief-cols { grid-template-columns: minmax(0, 1fr); }
  .vbrief-cut { display: none; }
  .vbrief-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .veditors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .veditors-list { grid-template-columns: minmax(0, 1fr); }
  .veditor { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vkinds-peek, .vshapes-steps li, .vkind, .vcut-hint { transition: none; }
}

/* 06 In and out: the handoff to the quote builder (the OS) */
.vbrief-price { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(32px, 4vw, 56px); }
.vbrief-price-note { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.5; color: var(--d-text2); }
.vbrief-price-link { font-stretch: 112.5%; font-weight: 560; font-size: clamp(20px, 1.6vw, 26px); }
