/* Shared scene library (src/scenes/lib/*.js): the motion v2 pictures, each in a picture slot.
   Loaded on every page that has scenes (src/layout/page.mjs). Uses only the datum.css tokens.

   How a picture fits its slot. Each scene function adds `sc sc-<name>` to the slot (components/picture.mjs scene(),
   the .pic__stage) and renders one root, .sc__pic, in normal flow, holding the picture's content, .sc__in.
   - Words never shrink. Every card, register, badge, legend, caption and level label is drawn at v2's size (datum.css),
     so text is 14 px or more at every width (13 px for handover's level labels in a slot under 320 px). Only the
     drawings scale with the slot: the building svgs and the film's sheets.
     The slot is a size container and --p is one design pixel of a drawing:
       --p = 100cqw / 568 * k
   - Where the picture fits 568 / 526 the slot keeps that shape (the root takes the slot's aspect and centres .sc__in).
     Where the words at their size need more height, the scene adds `is-flow` to the slot (site.css) and the slot takes
     the picture's own height: the parts restack one above the other at full column width. Some scenes always flow.
   - No CSS transform scales a picture, so offsets, getBoundingClientRect and b.rectOf agree, and leaders are measured
     again on every resize, as v2.
   Each rule below the kit is scoped by its scene class. */

.sc { container-type: inline-size; --p: calc(100cqw / 568); }
.sc > .dt-stage { min-height: 0; }
.sc .sc__pic { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; aspect-ratio: 568 / 526; }
.sc.is-flow .sc__pic { aspect-ratio: auto; }
.sc .sc__in { position: relative; width: 100%; }

/* The building: the svg column scales with the slot (var(--w) is its natural width). Its level labels keep v2's type in
   a fixed column, --lbl (set on .sc__pic, so a container query can change it), and the building takes the rest: the
   grid is clamped to its box (datum.css max-width: 100%) and the svg track is minmax(0, ...), so the svg gives way and
   the words do not. Labels sit on one line each, the level under way too ("L3 under way", as v2 phone.css): two lines
   need a 40 px level, which no slot of 575 px or less draws. Each label column fits the widest label its scene shows. */
.sc .sc__pic { --lbl: 80px; }
.sc .dt-building { grid-template-columns: minmax(0, calc(var(--w) * var(--s, 1) * var(--p))); }
.sc .dt-building.has-labels { grid-template-columns: minmax(0, calc(var(--w) * var(--s, 1) * var(--p))) var(--lbl); }
.sc .dt-lvl { line-height: 16px; }
.sc .dt-lvl.is-underway { flex-direction: row; justify-content: flex-start; align-items: center; column-gap: 6px; }
/* The full building (hero, plan, rise, handover): a level is 0.081 of its drawn width tall, the Roof 0.052, and each
   label is centred on its row. A label's line is 16 px, so the labels hold their own lines down to a drawing about 200 px
   wide (a 300 px slot); handover's wider column steps down to 13 px under 320 px (scenes.css, handover). Where the Roof's
   row is shorter than its label, the label stands up to 1 px above the drawing: the drawing sits 2 px down for it. Under
   a 300 px slot the Roof's name gives way, unless the Roof is under way. */
:is(.sc-hero, .sc-rise) .sc__pic { --lbl: 100px; }   /* the marker reaches L3 (hero) and L6 (rise): "L6 under way" is 98 px */
:is(.sc-hero, .sc-plan, .sc-rise, .sc-handover) .dt-building.has-labels { margin-top: 2px; }
@container (max-width: 299px) {
  :is(.sc-hero, .sc-plan, .sc-rise, .sc-handover) .dt-lvl:last-child:not(.is-underway) { display: none; }
}

/* Cards at their own size in a narrow column: the reference and its badge wrap, photos give way (they hold no words). */
.sc .dt-record__top { flex-wrap: wrap; row-gap: 8px; }
.sc .dt-thumbs > .dt-thumb { flex: 0 1 80px; min-width: 0; width: auto; height: auto; aspect-ratio: 4 / 3; }

/* ---------- hero (hero.js): the building, its level labels and the legend ----------
   The building and its labels fill the slot's width (the label column at its fixed width, the building takes the
   rest, up to 567.5 of 647.5 design px); the legend keeps its size and wraps. */
.sc-hero { --p: calc(100cqw / 647.5); }
.sc-hero .hero-legend { margin-top: 24px; }
/* "under way" settles in under L3 rather than snapping. */
.sc-hero .dt-lvl.is-underway .dt-lvl__sub { animation: sc-hero-sub 0.5s var(--ease) both; }
@keyframes sc-hero-sub { from { opacity: 0; } to { opacity: 1; } }
.dt-reduced .sc-hero .dt-lvl.is-underway .dt-lvl__sub { animation: none; }

/* ---------- Sheets (documents.js and conflicts.js): white paper, a hairline edge, Onyx and Review Blue linework ---------- */
:is(.sc-documents, .sc-conflicts) .docs-sheet { position: absolute; background: var(--white); border: 1px solid var(--hairline); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; }
:is(.sc-documents, .sc-conflicts) .docs-art { position: absolute; inset: 0; width: 100%; height: 100%; }
:is(.sc-documents, .sc-conflicts) .docs-tag { position: absolute; left: 12px; top: 10px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--onyx); white-space: nowrap; }
:is(.sc-documents, .sc-conflicts) .docs-ink { fill: none; stroke: var(--onyx); stroke-width: 1; }
:is(.sc-documents, .sc-conflicts) .docs-gl { fill: none; stroke: var(--review); stroke-width: 1; stroke-dasharray: 8 6; }
:is(.sc-documents, .sc-conflicts) .docs-slab { fill: none; stroke: var(--onyx); stroke-width: 2; }
:is(.sc-documents, .sc-conflicts) .docs-wall { fill: none; stroke: var(--onyx); stroke-width: 1.5; }
:is(.sc-documents, .sc-conflicts) :is(.docs-col, .docs-th, .docs-tl) { fill: var(--onyx); }
:is(.sc-documents, .sc-conflicts) .docs-bar { fill: var(--white); stroke: var(--review); stroke-width: 1; }
:is(.sc-documents, .sc-conflicts) .docs-date { fill: none; stroke: var(--onyx); stroke-width: 1; stroke-dasharray: 4 4; }

/* ---------- documents (docs-in.js #ch1): the five documents land in one stack ----------
   The stack keeps v2's box (768 / 752) at the slot's full height; the sheets scale with it, their titles keep 14 px.
   The sheets drop in from above, so the picture clips at the slot's edge (v2's stage clips them at its edge). */
.sc-documents .ch1-pic { overflow: clip; }
.sc-documents .ch1-stack { position: relative; height: 100%; aspect-ratio: 768 / 752; margin: 0 auto; }
.sc-documents .ch1-sheet { transform-origin: 50% 50%; }
.sc-documents .docs-tag { left: 8px; top: 5px; padding: 0 4px; background: var(--white); }   /* at 14 px on a small sheet: a white ground, clear of the drawn lines */

/* ---------- conflicts (docs-in.js #ch1-conflicts): two sheets, one point, two values, one finding ----------
   The sheets sit on a diagonal in a 1350 x 960 film box (conflicts.js) and scale with the slot. The rings and the link
   are drawn in film units, set to v2's rendered weight at 1440. Titles, values and the card keep their size; the card's
   badge wraps under its title in a narrow slot. The content's foot leaves room for the card's 24 px rise. */
.sc-conflicts .ch1c-pic { justify-content: flex-start; }
.sc-conflicts .sc__in { padding-bottom: 24px; }
.dt-reduced .sc-conflicts .sc__in { padding-bottom: 0; }
.sc-conflicts .ch1c-box { position: relative; width: 100%; aspect-ratio: 1350 / 960; }
.sc-conflicts .docs-tag { left: 8px; top: 5px; padding: 0 4px; background: var(--white); }   /* on a white ground, clear of the drawing's top lines */
.sc-conflicts .ch1c-sweep { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.sc-conflicts .ch1c-sweep::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--review); }
.sc-conflicts .ch1c-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sc-conflicts .ch1c-ring { fill: none; stroke-width: 8.6; }
.sc-conflicts .ch1c-ring--y { stroke: var(--yellow); stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-conflicts .ch1c-ring--b { stroke: var(--field); stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-conflicts .ch1c-link { fill: none; stroke: var(--onyx); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-conflicts .ch1c-val { position: absolute; padding: 2px 6px; background: var(--white); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--onyx); white-space: nowrap; opacity: 0; }
.sc-conflicts .ch1c-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; width: max-content; max-width: 100%; margin: 24px auto 0; padding: 16px 20px; opacity: 0; }
.sc-conflicts .ch1c-card__t { font-size: 16px; line-height: 24px; font-weight: 500; }
.sc-conflicts .ch1c-badges { display: grid; justify-items: start; row-gap: 8px; }
.sc-conflicts .ch1c-badge { grid-area: 1 / 1; display: flex; }
/* Reduced: both pauses read, raised above decided. */
.dt-reduced .sc-conflicts .ch1c-card { margin-top: 16px; }
.dt-reduced .sc-conflicts .ch1c-badge { grid-area: auto; }

/* ---------- plan (docs-in.js #ch2): the schedule card sits over the top of the building, then gives way to it ----------
   The building and its labels fill the slot's width (as the hero; v2's 80 px label column); the card keeps v2's type. The card and the building share one grid
   cell, so a card taller than the building makes the picture taller, never spills. In a narrow slot the card takes v2's
   own narrow form (14 px, below 1280 in v2), then drops its Source column. */
.sc-plan { --p: calc(100cqw / 647.5); }
.sc-plan .ch2-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }   /* the building's grid clamps to the slot */
.sc-plan .ch2-box > .ch2-bld, .sc-plan .ch2-box > .ch2-sched { grid-area: 1 / 1; }
.sc-plan .ch2-sched { position: relative; z-index: 2; align-self: start; width: min(100%, 568px); padding: 4px 20px 0; --cols: 80px minmax(0, 1fr) 124px 100px; }
.sc-plan .ch2-sched .dt-reg__row { grid-template-columns: var(--cols); height: 42px; }
.sc-plan .ch2-sched .dt-reg__row--head { height: 40px; align-items: center; }
.sc-plan .ch2-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--onyx); border-radius: 4px; font-size: 14px; line-height: 20px; }
.sc-plan .ch2-pels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sc-plan .ch2-pel { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border: 1.5px solid var(--review); background: var(--white); opacity: 0; transform-origin: 50% 50%; }
.sc-plan .ch2-pel__fill { position: absolute; inset: -1.5px; background: var(--review); opacity: 0; }
.sc-plan .ch2-legend { margin-top: 24px; }
.sc-plan .dt-lvl { transition: opacity 0.3s var(--ease); }
@container (max-width: 559px) {
  .sc-plan .ch2-sched { padding: 4px 16px 0; --cols: 72px minmax(0, 1fr) 112px 84px; }
  .sc-plan .ch2-sched .dt-reg__row { height: 36px; column-gap: 12px; font-size: 14px; line-height: 20px; }
  .sc-plan .ch2-sched .dt-reg__row--head { height: 36px; }
}
@container (max-width: 439px) {
  .sc-plan .ch2-sched { padding: 4px 12px 0; --cols: 40px minmax(0, 1fr) 104px; }
  .sc-plan .ch2-sched .dt-reg__row { column-gap: 10px; }
  .sc-plan .ch2-sched .dt-reg__row > :nth-child(4) { display: none; }
  .sc-plan .ch2-sched .dt-reg__row--head { height: auto; min-height: 36px; padding: 6px 0; }
  .sc-plan .ch2-sched .dt-reg__row--head > * { white-space: normal; }
  .sc-plan .ch2-chip { padding: 0 6px; }
}
/* Reduced: the draft register, then the building on paper at half its size, then the legend. Under a 460 px slot half
   size is too small to read (about 140 px wide at 390), so the building takes the slot's width, as in the last frame,
   and the slot grows to fit. Its level names then hold their lines. */
.sc-plan .ch2-flat .ch2-sched { width: 100%; max-width: 568px; }
.sc-plan .ch2-flat .ch2-bld { margin-top: 16px; }
.sc-plan .ch2-flat .dt-building { --s: 0.5; }
@container (max-width: 459px) { .sc-plan .ch2-flat .dt-building { --s: 1; } }

/* ---------- rise (ch3.js, the rise): the building fills level by level ----------
   The building and its labels fill the slot's width, as the hero; v2's legend (left column, bottom) goes under it. */
.sc-rise { --p: calc(100cqw / 647.5); }
.sc-rise .ch3-rise__legend { margin-top: 24px; }

/* ---------- site-office (ch3.js, site to office): always restacked ----------
   v2's row is about 1200 wide. Here, one above the other at v2's type: the phone (up to 360 wide), the hand-off, then
   the office: the Level 6 close-up (it scales) and its legend, the register, the approval line. The hand-off runs from
   the phone's foot down the left margin and into HP 6.03's ring (site-office.js layout(), measured on every resize).
   The register drops its Responsible column (as v2 below 1180 px); in a narrow slot each row takes two lines. */
.sc-site-office .ch3-col-label { margin-bottom: 16px; }
.sc-site-office .ch3-desk { margin-top: 56px; }
.sc-site-office .ch3-desk > .ch3-col-label, .sc-site-office .ch3-crop { margin-left: 32px; }
.sc-site-office .ch3-reg { margin-top: 24px; }

.sc-site-office .ch3-phone { max-width: 360px; background: var(--white); border: 1px solid var(--hairline); border-radius: 24px; box-shadow: var(--shadow); }
.sc-site-office .ch3-phone__bar { display: flex; align-items: center; gap: 8px; padding: 20px 24px 16px 20px; border-bottom: 1px solid var(--hairline); font-size: 14px; line-height: 20px; }
.sc-site-office .ch3-phone__bar svg { width: 16px; height: 16px; flex-shrink: 0; }
.sc-site-office .ch3-phone__body { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; }
.sc-site-office .ch3-phone__title { padding-top: 4px; font-size: 20px; line-height: 30px; font-weight: 700; }
.sc-site-office .ch3-note { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--hairline); border-radius: 8px; }
.sc-site-office .ch3-note__photos { display: flex; gap: 8px; }
.sc-site-office .ch3-note__photos > .dt-thumb { flex: 0 1 80px; min-width: 0; width: auto; height: auto; aspect-ratio: 4 / 3; }
.sc-site-office .ch3-small { font-size: 14px; line-height: 20px; }
.sc-site-office .ch3-phone__sync { height: 56px; padding: 0 24px; border-top: 1px solid var(--hairline); }
.sc-site-office .ch3-phone__sync .ch3-swap__layer { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--onyx); }
.sc-site-office .ch3-phone__sync svg { width: 16px; height: 16px; flex-shrink: 0; }

/* A slot that holds several states; one shows at a time. */
.sc-site-office .ch3-swap { display: grid; justify-items: start; align-items: center; }
.sc-site-office .ch3-swap__layer { grid-area: 1 / 1; display: flex; }

.sc-site-office .ch3-reg { --cols: 72px minmax(0, 1fr) 160px; }
.sc-site-office .ch3-reg .dt-reg__row { grid-template-columns: var(--cols); }
.sc-site-office .ch3-reg__who { display: none; }
.sc-site-office .ch3-reg__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 4px 0 20px; font-size: 16px; line-height: 24px; }
.sc-site-office .ch3-reg__title > :first-child { font-weight: 500; }
.sc-site-office .ch3-reg .dt-reg__row--head { height: 44px; align-items: center; border-top: 1px solid var(--hairline); }
.sc-site-office .ch3-reg__ref { font-weight: 500; }
.sc-site-office .ch3-approved { margin-top: 12px; }
.sc-site-office .ch3-crop__pic { margin-left: calc(-8 * var(--p)); }
.sc-site-office .ch3-crop__legend { margin-top: 16px; }
@container (max-width: 459px) {
  .sc-site-office .ch3-reg { padding-left: 16px; padding-right: 16px; }
  .sc-site-office .ch3-reg .dt-reg__row { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "ref name" ". status"; column-gap: 12px; row-gap: 6px; height: auto; padding: 10px 0; }
  .sc-site-office .ch3-reg .dt-reg__row > :nth-child(1) { grid-area: ref; }
  .sc-site-office .ch3-reg .dt-reg__row > :nth-child(2) { grid-area: name; }
  .sc-site-office .ch3-reg .dt-reg__row > :nth-child(4) { grid-area: status; overflow: visible; }
  .sc-site-office .ch3-reg .dt-reg__row--head { height: auto; }
}

.sc-site-office .ch3-handoff { position: absolute; inset: 0; pointer-events: none; }
.sc-site-office .ch3-handoff__v { position: absolute; width: 1px; background: var(--onyx); transform-origin: 50% 0; }
.sc-site-office .ch3-handoff__h { position: absolute; height: 1px; background: var(--onyx); transform-origin: 0 50%; }
.sc-site-office .ch3-handoff__cap { position: absolute; }

/* ---------- every-build (ch3.js, every kind of build): five small buildings ----------
   Wide: two rows in v2's order (townhouses, four storeys, stepped; then the twin towers and the tower), the buildings at
   0.86 of the slot, captions at their size. Narrow: two columns. Each figure spans two grid lines through subgrid, as v2:
   buildings share one baseline, captions one top line. */
.sc-every-build { --p: calc(100cqw / 568 * 0.86); }
.sc-every-build .sc__in { display: flex; flex-direction: column; row-gap: 40px; }
.sc-every-build .ch3-kinds__row { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; grid-template-rows: auto auto; justify-content: space-between; column-gap: 24px; }
.sc-every-build .ch3-kind { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.sc-every-build .ch3-kind__pic { align-self: end; min-width: 0; }
.sc-every-build .ch3-kind figcaption { margin-top: 16px; }
@container (max-width: 559px) {
  .sc-every-build .sc__in { --p: calc(100cqw / 568); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
  .sc-every-build .ch3-kinds__row { display: contents; }
  .sc-every-build .ch3-kind { margin-bottom: 32px; }
  .sc-every-build .ch3-kind:last-child { margin-bottom: 0; }
}

/* ---------- hold-point (ch4.js): always restacked at v2's type ----------
   v2's picture column (caption, Level 4 close-up with its wall, leader, card, legend), up to 530 wide, centred. The
   close-up scales with the slot; the card keeps its size and its rows wrap in a narrow slot.
   Reduced: v2's before and after, one above the other, the arrow pointing down. */
.sc-hold-point .ch4-right { width: 100%; max-width: calc(530px + 8 * var(--p)); margin: 0 auto; padding-left: calc(8 * var(--p)); }   /* room for the crop's -8 */
.sc-hold-point .ch4-pic { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.sc-hold-point .ch4-then { height: 20px; margin-bottom: 16px; }
.sc-hold-point .ch4-crop { position: relative; width: calc(100% + 8 * var(--p)); margin-left: calc(-8 * var(--p)); }   /* squares line up with the card */
.sc-hold-point .ch4-card { margin-top: 32px; }
.sc-hold-point .ch4-legend { margin-top: 32px; }
/* Crop labels: "L4" needs less room than the full building's "under way" (v2: 48 px). */
.sc-hold-point .sc__pic { --lbl: 48px; }
/* The wall lining: plain white, one hairline, one caption. It slides up from the crop's bottom edge. */
.sc-hold-point .ch4-wallbox { position: absolute; overflow: clip; }
.sc-hold-point .ch4-wall { position: absolute; inset: 0; background: var(--white); border: 1px solid var(--hairline); }
.sc-hold-point .ch4-wall__cap { position: absolute; top: 50%; transform: translateY(-50%); }
.sc-hold-point .ch4-window { position: absolute; background: var(--field); }
.sc-hold-point .ch4-ring { position: absolute; border: 2px solid var(--onyx); }
.sc-hold-point .ch4-leader { position: absolute; width: 1px; background: var(--onyx); }
/* Card: ref and badge on one line, the title under them (as 8HY-0); keys 120 wide so values hold one line at 440. */
.sc-hold-point .ch4-card .dt-record__top { align-items: center; }
.sc-hold-point .ch4-card .dt-record__title { margin-top: 8px; }
.sc-hold-point .ch4-card .dt-kv__row { grid-template-columns: 120px minmax(0, 1fr); }
/* Badges swap in place; under the reference when the card is narrow. */
.sc-hold-point .ch4-badges { display: grid; justify-items: end; }
@container (max-width: 400px) { .sc-hold-point .ch4-badges { justify-items: start; } }
.sc-hold-point .ch4-badge { grid-area: 1 / 1; }
/* Empty photo slots wait for the evidence. */
.sc-hold-point .ch4-slot { position: relative; flex: 0 1 80px; min-width: 0; aspect-ratio: 4 / 3; border: 1px solid var(--hairline); border-radius: 2px; }
.sc-hold-point .ch4-slot > .dt-thumb { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
/* Reduced motion: the before above the after. */
.sc-hold-point .ch4-ba { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 530px; margin: 0 auto; padding-left: calc(8 * var(--p)); }
.sc-hold-point .ch4-arrow { display: flex; justify-content: center; padding: 24px 0; color: var(--onyx); }
.sc-hold-point .ch4-arrow svg { transform: rotate(90deg); }
.sc-hold-point .ch4-ba + .ch4-legend { max-width: 530px; margin: 32px auto 0; padding-left: calc(8 * var(--p)); }

/* ---------- handover (ch5.js): always restacked at v2's type ----------
   The full building, its labels and legend fill the slot's width. It then steps aside to half size, to the top left
   (half the drawn building), and the five audiences take the column under it at v2's large type (9KL-0: 1px Onyx rule,
   name 32/36 Bold, line 20/30). The building moves by transform only. The label column fits "Roof under way" (113 px
   at 14 px); under a 320 px slot the labels are 13 / 15 px in a 108 px column, so the Roof's line clears L8's.
   --bw is the drawn building's width: the slot, and the reduced building, are half of it. */
.sc-handover { --p: calc(100cqw / 647.5); }
.sc-handover .sc__pic { --lbl: 116px; --bw: min(calc(567.5 * var(--p)), calc(100cqw - var(--lbl))); }
@container (max-width: 319px) {
  .sc-handover .sc__pic { --lbl: 108px; --bw: min(calc(567.5 * var(--p)), calc(100cqw - var(--lbl))); }
  .sc-handover .dt-lvl { font-size: 13px; line-height: 15px; }
}
.sc-handover .ch5-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; padding-bottom: 12px; }   /* room for the words' 12 px rise */
.sc-handover .ch5-pic { grid-area: 1 / 1 / 3 / 2; align-self: start; }
.sc-handover .ch5-bld { transform-origin: 0 0; }
.sc-handover .ch5-legend { margin-top: 24px; }
.sc-handover .ch5-slot { grid-area: 1 / 1; min-width: 0; }
.sc-handover .ch5-slot__bld { width: calc(var(--bw) / 2); height: calc(var(--bw) / 2 * 525.5 / 567.5); }
.sc-handover .ch5-half .dt-building { grid-template-columns: minmax(0, calc(var(--bw) / 2)); }
.sc-handover .ch5-legend--done { opacity: 0; }
.sc-handover .ch5-aud { grid-area: 2 / 1; min-width: 0; margin-top: 32px; }
.sc-handover .ch5-who { position: relative; padding: 24px 0 32px; }
.sc-handover .ch5-who:last-child { padding-bottom: 0; }
/* A calm first frame (CONTRACT section 5): each audience's place below the full building shows as a hairline from frame 0
   (handover.js hides the places the building covers); its Onyx rule draws over it before its words arrive, as v2. */
.sc-handover .ch5-place { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hairline); }
.sc-handover .ch5-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--onyx); transform-origin: 0 0; }
.sc-handover .ch5-name { font-size: var(--h3-fluid, 32px); line-height: 1.125; font-weight: 700; color: var(--onyx); }   /* the site's fluid H3: v2's 32 / 36 at 1440, 26 px at 390 (as home phone.css) */
.sc-handover .ch5-line { margin-top: 8px; font-size: 20px; line-height: 30px; color: var(--onyx); }

/* ---------- record (ch6.js, the record): always restacked at v2's type ----------
   The Levels 2 to 4 close-up (it scales, set in 24 from the left), its legend, then the record card at its size. The
   leader leaves the ring to the left and runs down the margin to the card's top edge (record.js layout(), measured on
   every resize); it crosses no squares, as v2's. */
.sc-record { --p: calc(100cqw / 568 * 0.96); }
.sc-record .ch6-right { padding-left: 24px; }
.sc-record .ch6-legend { margin-top: 24px; }
.sc-record .sc__pic { --lbl: 40px; }   /* v2's crop label column */
.sc-record .ch6-card { position: relative; z-index: 1; margin-top: 40px; }
.sc-record .ch6-leader { position: absolute; background: var(--onyx); }
.sc-record .ch6-leader--h { height: 1px; transform-origin: 100% 50%; }
.sc-record .ch6-leader--v { width: 1px; transform-origin: 50% 0; }
.sc-record .ch6-card .dt-record__top { align-items: center; }
.sc-record .ch6-card .dt-record__title { margin-top: 8px; }
.sc-record .ch6-card .dt-kv__row { grid-template-columns: 120px minmax(0, 1fr); }
