/* SLANT home · part 4 · Direction B · Crossing (signed 6 Nov 2026). Lifted from parts/p4/directions/b/.
   #who (bone, editorial opener) → #what (true-black film stage, its top cut on the 8° edge) → #bike (the crossing:
   the Conik M1 cut-out stands across the 8° edge between black and bone and settles onto the bone as you scroll).
   Every rule is scoped to the part's sections (.p4); loaded by next/pages/index.html after kit.css and home.css.
   Behaviour: assets/js/p4.js (entries, the film's play/pause, the crossing's --p). */

.p4.surface-black, .p4 .surface-black { --bg: var(--black); --bg-2: var(--graphite); --bg-3: var(--graphite-2); --ink: var(--bone); --ink-2: var(--smoke); --line: var(--line-dark); --line-2: var(--line-dark-2); --focus: var(--amber); background: var(--bg); color: var(--ink); }

/* ---------- #who · editorial on bone ---------- */
/* The trailer section above is black and pinned; the bone rises out of it on the 8° edge drawn INSIDE #who (a black
   triangle at its top), so nothing of #who overlaps the trailer stage or its four buttons. */
.p4.who { padding-top: calc(var(--edge) + var(--sec) * .7); padding-bottom: calc(var(--edge) + var(--sec) * .9); }
.p4.who::before { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--edge) + 1px); margin-top: -1px; background: var(--black); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.p4 .who-grid { display: grid; gap: var(--s10); }
.p4 .who-head { display: grid; gap: var(--s4); align-content: start; }
.p4 .who-head .h1 .nb { white-space: nowrap; }
.p4 .who-head .h1 { font-weight: 700; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem); max-width: 13ch; }   /* 44 → 84 px */
.p4 .who-film { margin: 0; }   /* 7 Nov (Tarun): SLANT's pilot film here instead of the quayside photo; 16:9 so no clip is cropped */
.p4 .who-film .frame { position: relative; aspect-ratio: 16 / 9; background: #000; --nw: 150px; --nh: 21px; }
.p4 .who-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.p4 .who-film .film-play { position: absolute; right: var(--s5); bottom: var(--s5); z-index: 3; display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); background: rgba(11, 11, 13, .62); color: var(--bone); font-size: var(--fs-small); font-weight: 600; border: 1px solid var(--line-dark-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.p4 .who-film .film-play svg { width: 14px; height: 14px; }
@media (max-width: 639px) { .p4 .who-film .film-play { right: var(--s3); bottom: var(--s3); min-height: 36px; padding: 0 var(--s3); } }
.p4 .who-rest { display: grid; gap: var(--s10); align-content: start; }
/* 10 Nov (Tarun): the segment list became trailer uses that fade out towards the bottom, "to suggest there are endless ones",
   then "Any trailer, now electric." Each use is SLANT's own phrase (the Word doc, prototype2, this page, their blog). */
/* every use starts with a "/"; the list sits 1.1em left of its box, which clips the "/" that lands at the start of a line */
.p4 .cases-wrap { position: relative; display: grid; gap: var(--s6); align-content: start; overflow: hidden; padding-top: var(--s6); border-top: 2px solid var(--goldenrod); }
.p4 .cases-win { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.125rem, .8rem + 1.35vw, 1.875rem); line-height: 1.16; letter-spacing: -.025em;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, .45) 68%, rgba(0, 0, 0, .06) 100%); mask-image: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, .45) 68%, rgba(0, 0, 0, .06) 100%); }
.p4 .cases { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em 0; margin-left: -1.1em; }
.p4 .cases > li { white-space: nowrap; }
.p4 .cases > li::before { content: "/"; display: inline-block; width: 1.1em; text-align: center; color: var(--goldenrod); font-weight: 500; }
/* 17 Nov (Tarun): smaller type and a faster step (1.1 s, was 1.7).
   13 Nov: the list cycles. A window a few rows tall; the track (the list twice) steps up one row at a time and wraps. */
.p4 .cases-win.is-cycling { height: var(--win, auto); overflow: hidden; }
.p4 .cases-win.is-cycling .cases-track { display: grid; gap: .3em; transform: translate3d(0, var(--y, 0px), 0); transition: transform .55s var(--ease-expo); will-change: transform; }
.p4 .cases-win.is-cycling .cases-track.is-snap { transition: none; }
.p4 .cases-toggle { justify-self: start; display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s3); font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); }
.p4 .cases-toggle:hover { color: var(--ink); border-color: var(--ink); }
.p4 .cases-toggle svg { width: 12px; height: 12px; }
.p4 .anytrailer { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.p4 .caption-below .mono { color: var(--ink-soft); }   /* on bone, amber/goldenrod fail as 12 px text; ink-soft is 6.0:1 */
@media (min-width: 1024px) {
  .p4 .who-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s12); grid-template-areas: "head head" "film film" "rest rest"; align-items: start; row-gap: var(--s12); }
  .p4 .who-head { grid-area: head; grid-template-columns: 7fr 5fr; column-gap: var(--s10); align-items: end; }
  .p4 .who-head .eyebrow { grid-column: 1 / -1; }
  .p4 .who-head .lead { max-width: 34ch; padding-bottom: .5em; }
  .p4 .who-film { grid-area: film; } .p4 .who-rest { grid-area: rest; }
}

/* ---------- #what · black stage: the film emerges from under the bone on the 8° edge ---------- */
.p4.cinema { padding-top: 0; padding-bottom: var(--sec); }
.p4 .p4-film { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 72svh; overflow: hidden; background: #000; }
.p4 .p4-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.p4 .p4-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 11, 13, .25), transparent 28%, transparent 68%, var(--black)); pointer-events: none; }
.p4 .film-play { position: absolute; right: var(--gutter); bottom: var(--s6); z-index: 2; display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); background: rgba(11, 11, 13, .62); color: var(--bone); font-size: var(--fs-small); font-weight: 600; border: 1px solid var(--line-dark-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.p4 .film-play svg { width: 14px; height: 14px; }
.p4 .film-cap { position: absolute; left: var(--gutter); bottom: var(--s6); z-index: 2; color: var(--smoke); display: none; }
@media (min-width: 768px) { .p4 .p4-film { aspect-ratio: 960 / 408; } .p4 .p4-film video { object-position: 50% 50%; } .p4 .film-cap { display: block; } }
.p4 .what-in { display: grid; gap: var(--s16); padding-top: calc(var(--sec) * .6); }
.p4 .statement { font-family: var(--font-display); font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; max-width: 24ch; text-wrap: pretty; }
.p4 .statement .dim { color: var(--smoke); }
.p4 .how { display: grid; gap: var(--s6); }
.p4 .steps { display: grid; gap: var(--s4); }
.p4 .step { display: grid; gap: var(--s2); align-content: start; padding: var(--s5) var(--s5) var(--s8); background: var(--graphite); }
.p4 .step .stage { aspect-ratio: 4 / 3; background: radial-gradient(70% 60% at 50% 60%, #26272E 0%, var(--graphite) 72%); margin-bottom: var(--s4); }
.p4 .step .stage::after { background: linear-gradient(to top, var(--graphite), transparent); }
.p4 .step .stage { overflow: visible; }   /* 7 Nov: the render breaks out of its stage instead of shrinking into it */
.p4 .step .stage img { position: absolute; inset: -12% 0; width: 100%; height: 124%; padding: 0; -webkit-mask-image: none; mask-image: none; object-fit: contain; z-index: 1; }
.p4 .step .idx { display: flex; gap: var(--s3); color: var(--smoke); }
.p4 .step .idx b { color: var(--amber); font-weight: 500; }
.p4 .step .h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.p4 .step p { color: var(--smoke); max-width: 28ch; }
@media (min-width: 900px) { .p4 .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- #bike · the crossing (signature) ---------- */
.p4.cross { position: relative; --px: 60px; }
.p4 .cross-top { position: relative; padding-top: var(--sec); }   /* no z-index: the bone floor (z 1) must show its diagonal over this black; only the unit (z 3) sits above the floor */
.p4 .cross-in { position: relative; display: grid; gap: var(--s8); }
.p4 .cross-head { display: grid; gap: var(--s4); align-content: start; }
.p4 .cross-head .h1 { max-width: 12ch; }
.p4 .cross-unit { position: relative; z-index: 3; width: 100%; margin: 0 0 -80px; pointer-events: none; }
.p4 .cross-unit img { width: 100%; height: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .5)); }
.js .p4 .cross-unit { transform: translateY(calc((var(--p, .5) - .5) * var(--px))); will-change: transform; }
.p4 .cross-floor { position: relative; z-index: 1; padding-bottom: calc(var(--edge) + var(--sec) * .6); }   /* room for #proof's black edge rising over it */
.p4 .cross-floor.edge-top { padding-top: calc(var(--edge) + 96px); }
.p4 .cross-floor-in { display: grid; gap: var(--s8); }
.p4 .pair-cols { display: grid; gap: var(--s6); }
.p4 .pair-col { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: 2px solid var(--goldenrod); align-content: start; }
.p4 .pair-col .mono { color: var(--ink-2); display: flex; gap: var(--s3); }
.p4 .pair-col .mono b { color: var(--black); font-weight: 500; }
.p4 .pair-col .h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.p4 .pair-col p { color: var(--ink-2); max-width: 32ch; }
.p4 .cross-cap { color: var(--ink-2); }
@media (min-width: 640px) { .p4 .pair-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .p4.cross { --px: 120px; }
  .p4 .cross-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--s12); min-height: 420px; padding-bottom: var(--s16); }
  .p4 .cross-head { grid-column: 1; }
  /* geometry at 1440×900: image 640×464, bottom 110 px below the black; the 8° edge crosses it ≈ 204 px from its top,
     so the shell and drawbar sit in the black and the powered wheel and trailer body stand on the bone. */
  .p4 .cross-unit { position: absolute; right: var(--gutter); bottom: -110px; width: min(56%, 720px); margin: 0; }   /* wider crop holds the whole wheel and handle; unit stays the same size */   /* absolute right resolves to the padding box, hence the gutter */
  .p4 .cross-floor.edge-top { padding-top: calc(var(--edge) + var(--s10)); }
  .p4 .cross-floor-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--s12); }
  .p4 .cross-floor-in > .pair-cols, .p4 .cross-floor-in > .cross-link { grid-column: 1; }
  .p4 .cross-cap { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; margin-top: 200px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .js .p4 .cross-unit { transform: none; will-change: auto; } }

/* no JS: nothing adds .is-in, so the kit's curtain would cover the photo for good; show the photo instead */
html:not(.js) .p4 .wipe-curtain { display: none; }

/* "Are vans the answer?" (was "Busy streets."): the amber block slides in after the heading has landed, so you see it arrive */
.js .p4 .hl--late::before { transition-duration: 1s; transition-delay: .55s; }
.js .p4 .hl--late { transition-delay: calc(.55s + var(--d) * .6); }
/* "Are vans" / "the answer?" are two blocks so the line can wrap on a phone; the second lands just after the first */
.js .p4 .hl--later::before { transition-delay: .8s; }
.js .p4 .hl--later { transition-delay: calc(.8s + var(--d) * .6); }
