/* SLANT home · part 5 · Direction A · Odometer (signed 6 Nov 2026). Lifted from parts/p5/directions/a/style.css.
   #proof (photo, partners ledger, pilot pair, then the ribbon of confirmed numbers) → #going → #blog. #trailers sits after the trailer stage (17 Nov).
   Signature: the three confirmed numbers (250 kg · 80 mi · 4 layers) as a full-bleed 8° graphite ribbon of huge numerals
   that glides horizontally with the scroll. Transform only; progress read once per frame (assets/js/p5.js);
   reduced motion = a static 3-up. Every rule is scoped to the part's sections (.p5). */

.p5 .wipe-curtain { z-index: 2; }   /* the curtain covers the photo's own mono caption until it lifts */
html:not(.js) .p5 .wipe-curtain { display: none; }   /* no JS: nothing adds .is-in, so show the photos instead of the curtain */

/* ---------- Proof ---------- */
/* black rises over #bike's bone floor on the reversed 8° edge (.edge-top.edge-top--rev in the markup) */
.p5.proof { background: var(--black); padding-top: calc(var(--edge) + var(--sec) * .6); padding-bottom: 0; }
.p5.proof .section-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* full-bleed photo, 21:9 at desktop (the file's own ratio), 4:3 on the phone */
.p5 .proof-photo { position: relative; width: 100%; aspect-ratio: 21 / 9; background: var(--graphite); --nw: 220px; --nh: 31px; }
.p5 .photo picture { position: absolute; inset: 0; }   /* every photo box has an aspect-ratio, so the picture fills it: zero layout shift */
.p5 .proof-photo img { object-position: 45% 50%; }
@media (max-width: 639px) { .p5 .proof-photo { aspect-ratio: 4 / 3; --nw: 120px; --nh: 17px; } }
@media (min-width: 640px) and (max-width: 1023px) { .p5 .proof-photo { aspect-ratio: 16 / 9; } }

/* under the photo: the ledger of partners + the two pilot portraits */
.p5 .proof-below { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
.p5 .ledger-list { margin-top: var(--s4); border-bottom: 1px solid var(--line); }
.p5 .ledger-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.p5 .ledger-row .idx { color: var(--amber); }
.p5 .ledger-row .name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); letter-spacing: -.015em; line-height: 1.18; }
.p5 .ledger-row .tag { color: var(--ink-2); }
.p5 .ledger .link { margin-top: var(--s8); }
.p5 .pilot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
/* Fix (6 Nov): kit.css gives .col-6 "grid-column: span 6" and then .col-start-7 "grid-column-start: 7", which replaces
   the span and leaves the end on auto, so the pair took ONE of the 12 columns (80 px at 1440) and the two portraits
   collapsed to ~26 px thumbnails. State start and span together here (kit.css is not this part's to edit). */
@media (min-width: 1024px) { .p5 .proof-below > .pilot-pair { grid-column: 7 / span 6; } }
.p5 .pilot-pair .photo { aspect-ratio: 4 / 5; }
.p5 .pilot-pair .photo img { object-position: 50% 55%; }
@media (max-width: 1023px) { .p5 .pilot-pair { margin-top: var(--s4); } }

/* ---------- The ribbon (signature) ---------- */
.p5 .odo-track { position: relative; margin-top: var(--sec); }
/* 7 Nov (Chris: "starts too soon"): the ribbon pins in the middle of the screen and the numbers slide while it is held,
   250 kg first, 4 layers last, with a short hold at each end. --odo-top and the track height are set by p5.js. */
.js .p5 .odo-track { height: calc(var(--odo-h, 700px) + 130svh); }
.js .p5 .odo-track > .odo { position: sticky; top: var(--odo-top, 15svh); }
.p5 .odo { position: relative; background: var(--graphite); overflow: hidden;
  clip-path: polygon(0 var(--edge), 100% 0, 100% calc(100% - var(--edge)), 0 100%);
  padding-top: calc(var(--edge) + var(--s16)); padding-bottom: calc(var(--edge) + var(--s10)); }
.p5 .odo-tag { position: absolute; left: var(--gutter); top: calc(var(--edge) + var(--s5)); }
/* strip geometry in vw so it is always ~1.6 viewports wide: 3 × 48vw items + 2 × 4vw gaps + 2 gutters.
   Shift = strip − band ≈ 60vw: 234 px at 390, 864 px at 1440, spread over the scroll in which the numerals cross the
   window from its bottom edge to the header (p5.js), so the first readable frame is 250 kg and the last is 4 layers. */
.p5 .odo-strip { display: flex; align-items: flex-end; gap: 4vw; width: max-content; margin-inline: auto; padding-inline: var(--gutter);
  transform: translateX(calc(var(--p, 0) * var(--shift, 0px))); will-change: transform; }
.p5 .odo-item { display: grid; gap: var(--s3); min-width: 48vw; }
.p5 .odo-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(5.5rem, 12vw + 1.5rem, 14rem); line-height: .88; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--bone); }
.p5 .odo-u { font-family: var(--mono); font-weight: 500; font-size: clamp(.875rem, .55rem + 1vw, 1.375rem); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-left: .1em; }
.p5 .odo-l { color: var(--ink-2); }
/* the ribbon needs no JS to be readable: without --shift it simply sits on the first number */
@media (prefers-reduced-motion: reduce) {
  .js .p5 .odo-track { height: auto; } .js .p5 .odo-track > .odo { position: relative; top: auto; }
  .p5 .odo-strip { transform: none; width: auto; flex-wrap: wrap; justify-content: space-between; gap: var(--s8) var(--s10); will-change: auto; }
  .p5 .odo-item { min-width: 0; flex: 1 1 26%; }
  .p5 .odo-n { font-size: clamp(3.5rem, 2rem + 6vw, 8rem); }
}

/* ---------- Going ---------- */
.p5.going { background: var(--black); padding-bottom: calc(var(--sec) * .5); }   /* 17 Nov: #blog now follows directly, black on black, so the two share one section gap and no edge */
.p5 .going-cols { display: grid; gap: var(--s6); }
.p5 .going-col { display: grid; gap: var(--s3); align-content: start; padding-top: var(--s5); border-top: 1px solid var(--line); }
.p5 .going-col:first-child { border-top: 2px solid var(--amber); }
.p5 .going-col .mono { display: flex; gap: var(--s3); align-items: center; color: var(--ink-2); }
.p5 .going-col .mono b { color: var(--amber); font-weight: 500; }
.p5 .going-col .h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); margin-top: var(--s2); }
.p5 .going-col p:last-child { color: var(--ink-2); max-width: 34ch; }
@media (min-width: 640px) { .p5 .going-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); } }
/* 10 Nov: four modules, left to right (Conik M1 today; Conik M2, Coniak M1, Mustang M1 in development) */
@media (min-width: 640px) { .p5 .going-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s10); } }
@media (min-width: 1024px) { .p5 .going-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p5 .going-cols--4 .going-col .h2 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.375rem); }

/* status chips: Now = the amber block, In development = outlined */
.p5 .chip { display: inline-block; padding: 5px 11px 6px 9px; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; color: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.p5 .chip--now { background: var(--amber); border-color: var(--amber); color: var(--black); }

/* ---------- Trailers (17 Nov: moved up to follow the trailer stage, so it is black like the stage; #who's bone rises out of it) ---------- */
.p5.trailers { background-color: var(--black); padding-top: calc(var(--sec) * .7); padding-bottom: calc(var(--sec) * .45); }
.p5 .ways { border-bottom: 1px solid var(--line); }
.p5 .way { display: grid; gap: var(--s2); padding-block: var(--s6); border-top: 1px solid var(--line); }
.p5 .way .mono { display: flex; gap: var(--s3); color: var(--ink-2); }
.p5 .way .mono b { color: var(--amber); font-weight: 500; }
.p5 .way .h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); }
.p5 .way p:last-child { color: var(--ink-2); max-width: 36ch; font-size: var(--fs-lead); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
@media (min-width: 900px) { .p5 .way { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); column-gap: var(--col-gap); align-items: baseline; padding-block: var(--s8); } }
.p5.trailers .link { margin-top: var(--s10); }

/* ---------- Blog ---------- */
.p5.blog { background: var(--black); padding-top: calc(var(--sec) * .5); padding-bottom: var(--sec); }
.p5.blog .section-head--split .head-link { align-self: end; padding-bottom: .5em; }
@media (min-width: 1024px) { .p5.blog .section-head--split .head-link { justify-self: end; } }
.p5 .post { min-height: 100%; }
.p5 .post .h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); color: var(--ink); max-width: none; }
.p5 .post .date { color: var(--ink-2); margin-top: var(--s2); }
.p5 .post .link { margin-top: var(--s4); }
.p5 .posts > li { display: grid; }

/* phone: the pair's mono chips ("Pilot testing · Bristol") are wider than a 167 px portrait; let the two words stack
   as whole labels instead of breaking inside "Pilot testing" */
@media (max-width: 639px) { .p5 .pilot-pair .caption { left: 8px; right: 8px; bottom: 8px; flex-wrap: wrap; gap: 0 var(--s2); justify-self: start; width: max-content; max-width: calc(100% - 16px); } .p5 .pilot-pair .caption span { white-space: nowrap; } }

/* the pilot film (7 Nov): 16:9 at every width so the clips are never cropped; play/pause like the part 4 film */
.p5 .proof-film { aspect-ratio: 16 / 9 !important; max-height: 86svh; }
.p5 .proof-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.p5 .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); }
.p5 .film-play svg { width: 14px; height: 14px; }
@media (max-width: 639px) { .p5 .film-play { right: var(--s3); bottom: var(--s3); min-height: 36px; padding: 0 var(--s3); } }

/* "Proven" (10 Nov): the amber block lands after the heading has, as on Who it's for */
.js .p5 .hl--late::before { transition-duration: 1s; transition-delay: .55s; }
.js .p5 .hl--late { transition-delay: calc(.55s + var(--d) * .6); }

/* 13 Nov (Tarun): each pilot partner with its own logo (the supplied files, on their own grounds) and its location */
.p5 .ledger-row--logo { grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; }
.p5 .plogo { display: block; box-sizing: border-box; width: 104px; height: 52px; padding: 8px 12px; }
.p5 .plogo { overflow: hidden; }
.p5 .plogo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.p5 .plogo--keert { background: #39FF14; }
.p5 .plogo--pedal { background: #1A4635; padding: 4px 10px; }
.p5 .plogo--etu { background: #FEFEFE; }
.p5 .plogo--filton { background: var(--graphite-2); padding: 5px 12px; }
@media (max-width: 479px) { .p5 .ledger-row--logo { grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s3); } .p5 .plogo { width: 84px; height: 42px; padding: 6px 9px; } }
