/* Tembusu Joinery, the rebuilt specimen. Grammar: a drawing set.
   Dark forest ground for the workshop acts, bone paper for the drawing acts,
   tembusu amber as the one accent in two stops (light on forest, deep on bone).
   scrollcraft.css is the unmodified engine floor; this file is the page. */

/* The engine writes each act's progress to --sc-p on every scroll frame.
   Nothing on this page reads it below the act itself, and an inherited custom
   property restyles the act's whole subtree each frame (measured: most of
   the main thread time in the drawing act). Registered as not inherited. */
@property --sc-p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/specimen/tembusu/fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/specimen/tembusu/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --forest-950: #0b1410;
  --forest-900: #0f1a15;
  --forest-850: #13211a;
  --forest-800: #16241d;
  --bone-50: #f2efe7;
  --bone-100: #ece8dd;
  --bone-200: #e9e5da;
  --bone-300: #dcd6c8;
  --ink: #17231c;
  --ink-soft: #4e5b52;
  --bone-ink: #ece6d8;
  --bone-ink-soft: #a5b0a4;
  --amber-hi: #e2a553;
  --amber-lo: #8e520f;
  --graphite: #39433d;
  --rule: rgba(23, 35, 28, 0.5);
  --rule-soft: rgba(23, 35, 28, 0.2);

  --font-display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, sans-serif;

  /* the engine's six roles and two faces, set to the page's dark ground */
  --sc-canvas: var(--forest-900);
  --sc-surface: var(--forest-800);
  --sc-ink: var(--bone-ink);
  --sc-ink-soft: var(--bone-ink-soft);
  --sc-accent: var(--amber-hi);
  --sc-accent-ink: var(--forest-900);
  --sc-font-display: var(--font-display);
  --sc-font-text: var(--font-text);

  --gut: clamp(1rem, 4.4vw, 4.5rem);
  --tb-w: 312px;
  --tb-gap: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html { background: var(--forest-900); }
body {
  background: var(--forest-900);
  color: var(--bone-ink);
  font-family: var(--font-text);
  min-width: 320px;
}
h1, h2, p, figure, ol, ul { margin: 0; }
h1, h2 {
  font-family: var(--font-display);
  text-wrap: balance;
}
p { text-wrap: pretty; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bone-50);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}
.skip:focus-visible { transform: none; }
/* a sheet the title block jumps to takes focus so Tab carries on from it;
   it is not a control, so it draws no ring */
.act[tabindex="-1"]:focus { outline: none; }

/* ---- the two grounds. Redefining a token does not re-ink text that has
   already inherited its colour, so every ground restates color too. ---- */
.paper {
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--amber-lo);
  --sc-accent-ink: var(--bone-50);
  background: var(--bone-200);
  color: var(--ink);
}
.dark {
  background: var(--forest-900);
  color: var(--bone-ink);
}
.paper :focus-visible { outline-color: var(--amber-lo); }
.paper ::selection { background: var(--amber-lo); color: var(--bone-50); }

/* ---- the mark and the one button ------------------------------------ */
.mark { display: block; fill: currentColor; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 3px;
  font: 600 1rem/1 var(--font-text);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease);
}
.btn--hi { background: var(--amber-hi); color: var(--forest-900); }
.btn--lo { background: var(--amber-lo); color: var(--bone-50); }
.btn:active { transform: translateY(1px) scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn--hi:hover { background: #ebb468; transform: translateY(-1px); }
  .btn--lo:hover { background: #7c470c; transform: translateY(-1px); }
}
.btn:disabled { opacity: 0.5; cursor: default; }

/* ================================================================ 1 ====
   THE WORKSHOP. One photograph cut into cards, back to front: the wall and
   window (far), the light (air), the floor with the piece standing on it
   (room), the bench (mid), then the headline. The
   cards share one box with the photograph's own aspect (5504 by 3072), so
   at rest they register to the pixel; the box covers the stage and slides
   so the piece always stands clear of the headline's longest line. */
.act--hero { background: var(--forest-950); }
.hero {
  background: var(--forest-950);
  color: var(--bone-ink);
  container-type: size;
  /* where the piece stands in the photograph, as fractions: its left and
     right edges, its top, the floor line and the bench's back edge */
  --fp: 0.676;
  --fr: 0.925;
  --pt: 0.2135;
  --fl: 0.6986;
  --be: 0.806;
  /* the headline's size and its right edge at its widest (tembusu.css
     sizes the h1 with the same clamp) */
  --h1-fs: clamp(2.5rem, 1.15rem + 4.6vw, 5.9rem);
  /* r22 fix round 1 (G1-08): 62rem (was 58), so from 1680 wide the words
     column no longer binds before the headline's own measure and the
     headline keeps its two lines. */
  --h1-r: calc(var(--gut) + min(10.4 * var(--h1-fs), 62rem, 64vw));
  --clear: 40px;
  /* r23: the light's box, as fractions of the photograph (the box that
     research/r23/d-websites/tools/light.py renders light-beam.webp for) */
  --lx0: 0.455;
  --ly0: 0;
  --lx1: 0.875;
  --ly1: 0.66;
}
.scene {
  --sw: max(100cqw, 179.17cqh, calc((var(--h1-r) + var(--clear)) / var(--fp)));
  position: absolute;
  width: var(--sw);
  height: calc(var(--sw) * 0.55814);
  left: clamp(max(100cqw - var(--sw), var(--h1-r) + var(--clear) - var(--fp) * var(--sw)), (100cqw - var(--sw)) / 2, min(0px, 100cqw - 24px - var(--fr) * var(--sw)));
  /* where the box is taller than the stage, crop more from the bottom than
     the top, so on a short screen the floor falls below the words */
  top: calc((100cqh - var(--sw) * 0.55814) * 0.3);
  pointer-events: none;
}
.plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.plane img { display: block; max-width: none; }

/* the far card grows a little over the pin from near the piece's foot, so
   the joins beside the piece hold still while the wall recedes */
/* r22 fix round 1 (G1-05): the far card grows about the larder's left
   edge (x 0.676), and it follows the pointer at the room card's rate
   (tembusu.js), so the patched wall inside the larder's outline never
   opens as a pale line beside its shadowed side. */
.plane--far { z-index: 1; transform-origin: 67.6% 70%; }
.plane--far picture, .plane--far img {
  display: block;
  width: 100%;
  height: 100%;
}
/* floor and bench cards run on below the photograph (30 percent more, the
   last rows the forest ground), so they can rise without a gap */
.plane--room { z-index: 3; }
.plane--mid { z-index: 3; }
.floorcard, .bench { width: 100%; height: auto; }

/* The light from the high window, and the dust in it (r23; Leonard: "the
   glow is fine ... the specs look unrealistic because of the size of it").
   The beam is a picture of the light the window itself would cast
   (light-beam.webp): its glass swept along the light's direction, so it is
   as wide as the window where it leaves it, the glazing bars leave faint
   streaks in it, its edges soften as it travels and it fades warm. The dust
   is twenty points of 1 to 5 px, most of them soft and dim, a few sharp and
   glinting, masked by light-dust.webp so a speck shows only while it is in
   the light, brightest in its core. The plane sits over the wall and under
   the floor and the bench, so nothing of it is in front of the larder.
   r23: plain alpha, no screen blend. For this near-white light on a dark
   wall the two differ by 3 levels in 255 at most, and a blended plane had to
   be composited afresh behind every moving speck (NOTES.md, frame pacing). */
.plane--air { z-index: 2; }
.light {
  position: absolute;
  left: calc(var(--lx0) * 100%);
  top: calc(var(--ly0) * 100%);
  width: calc((var(--lx1) - var(--lx0)) * 100%);
  height: calc((var(--ly1) - var(--ly0)) * 100%);
}
.light__beam {
  position: absolute;
  inset: 0;
  background: url("/specimen/tembusu/assets/light-beam.webp") 0 0 / 100% 100% no-repeat;
}
/* r23 fix round 1 (W3-09): upright, the far card is the portrait plate,
   whose added wall hides the window, so the light is the same window's beam
   from just above the top edge (light-beam-p.webp, which
   research/r23/d-websites/tools/light_p.py renders for this box: x 0.44 to
   1 of the photograph, from the plate's top edge, 0.7914 of the
   photograph's height above it, to 0.62 down). It falls past the larder's
   top left at the wide screen's angle, and the words' shade darkens it
   where it crosses them. The dust stays on wide screens. */
@media (orientation: portrait) {
  .hero { --lx0: 0.44; --ly0: -0.7914; --lx1: 1; --ly1: 0.62; }
  .light__beam { background-image: url("/specimen/tembusu/assets/light-beam-p.webp"); }
  .dust { display: none; }
}
.dust {
  position: absolute;
  inset: 0;
  -webkit-mask: url("/specimen/tembusu/assets/light-dust.webp") 0 0 / 100% 100% no-repeat;
  mask: url("/specimen/tembusu/assets/light-dust.webp") 0 0 / 100% 100% no-repeat;
}
/* A speck at rest is its finished frame: where it sits, as bright as it can
   be (the outer element, which never moves). Motion is one animation on the
   inner element, one of the ten paths dust.py writes: every running CSS
   animation is restyled on the main thread each frame, so each speck carries
   one, and no keyframe reads a custom property. Sizes are plain lengths for
   the same reason: a point is about 1.5 px at 1440 wide, 2 px from 1800. */
.dust i { position: absolute; width: 2.4px; height: 2.4px; margin: -1.2px 0 0 -1.2px; }
.dust .df { width: 1.6px; height: 1.6px; margin: -0.8px 0 0 -0.8px; }
.dust .db { width: 1.2px; height: 1.2px; margin: -0.6px 0 0 -0.6px; }
.dust .dn { width: 4.8px; height: 4.8px; margin: -2.4px 0 0 -2.4px; }
@media (min-width: 1800px) {
  .dust i { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
  .dust .df { width: 2px; height: 2px; margin: -1px 0 0 -1px; }
  .dust .db { width: 1.5px; height: 1.5px; margin: -0.75px 0 0 -0.75px; }
  .dust .dn { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
}
.dust b {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
/* in focus: a point with a bright centre; further back the same, smaller */
.df b, .db b { background: radial-gradient(circle closest-side, rgb(255 248 234) 0 45%, rgb(255 240 214 / 0.5) 72%, rgb(255 236 205 / 0) 100%); }
/* a little out of focus: soft all the way, no core */
.ds b { background: radial-gradient(circle closest-side, rgb(255 242 220 / 0.9) 0%, rgb(255 238 212 / 0.42) 48%, rgb(255 236 205 / 0) 100%); }
/* near the lens: a faint even disc */
.dn b { background: radial-gradient(circle closest-side, rgb(255 240 216 / 0.6) 0%, rgb(255 238 212 / 0.45) 62%, rgb(255 236 205 / 0) 100%); }
.motion .dust b {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
/* the lower beam's specks stand down where the scene sits under the words:
   screens narrower than 3:2 (it slides left) or under 700 px tall (it rises,
   the /websites dialog among them); there that stretch is behind the words */
@media (max-aspect-ratio: 3/2), (max-height: 699px) {
  .dust .dz-b { display: none; }
}
/* one path per speck, and the rule that names it, from dust.py */
/* DUST PATHS: written by research/r23/d-websites/tools/dust.py */
@keyframes dust-p1 {
  0% { transform: translate3d(0.7px, -23.8px, 0); opacity: 0.0; }
  14% { transform: translate3d(2.4px, -18.6px, 0); opacity: 1.0; }
  30% { transform: translate3d(-8.0px, -5.2px, 0); opacity: 0.86; }
  46% { transform: translate3d(1.4px, -0.6px, 0); opacity: 0.83; }
  62% { transform: translate3d(-4.3px, 7.5px, 0); opacity: 0.76; }
  78% { transform: translate3d(0.5px, 15.5px, 0); opacity: 0.83; }
  88% { transform: translate3d(5.7px, 15.5px, 0); opacity: 0.93; }
  100% { transform: translate3d(19.5px, 23.8px, 0); opacity: 0.0; }
}
@keyframes dust-p2 {
  0% { transform: translate3d(-3.7px, -16.2px, 0); opacity: 0.0; }
  14% { transform: translate3d(-11.6px, -10.3px, 0); opacity: 0.6; }
  30% { transform: translate3d(-4.1px, -12.6px, 0); opacity: 0.61; }
  46% { transform: translate3d(-0.4px, 0.2px, 0); opacity: 0.54; }
  47% { opacity: 0.54; }
  50% { opacity: 1.0; }
  53% { opacity: 0.54; }
  62% { transform: translate3d(1.2px, 4.2px, 0); opacity: 0.54; }
  71% { opacity: 0.54; }
  74% { opacity: 1.0; }
  77% { opacity: 0.54; }
  78% { transform: translate3d(7.3px, 12.8px, 0); opacity: 0.54; }
  88% { transform: translate3d(23.3px, 13.1px, 0); opacity: 0.6; }
  100% { transform: translate3d(22.1px, 16.2px, 0); opacity: 0.0; }
}
@keyframes dust-p3 {
  0% { transform: translate3d(19.3px, 16.4px, 0); opacity: 0.0; }
  14% { transform: translate3d(14.6px, 13.2px, 0); opacity: 1.0; }
  30% { transform: translate3d(12.0px, 6.5px, 0); opacity: 0.75; }
  46% { transform: translate3d(-2.8px, -4.2px, 0); opacity: 0.77; }
  62% { transform: translate3d(8.5px, -3.1px, 0); opacity: 0.99; }
  78% { transform: translate3d(4.2px, -5.6px, 0); opacity: 0.88; }
  88% { transform: translate3d(4.0px, -18.1px, 0); opacity: 0.99; }
  100% { transform: translate3d(7.1px, -16.4px, 0); opacity: 0.0; }
}
@keyframes dust-p4 {
  0% { transform: translate3d(-1.3px, -30.3px, 0); opacity: 0.0; }
  14% { transform: translate3d(-0.0px, -20.3px, 0); opacity: 1.0; }
  30% { transform: translate3d(2.7px, -12.3px, 0); opacity: 0.91; }
  46% { transform: translate3d(1.7px, 1.6px, 0); opacity: 0.77; }
  62% { transform: translate3d(-5.2px, 6.1px, 0); opacity: 0.81; }
  78% { transform: translate3d(-9.9px, 15.3px, 0); opacity: 0.78; }
  88% { transform: translate3d(-8.7px, 25.7px, 0); opacity: 0.96; }
  100% { transform: translate3d(-3.1px, 30.3px, 0); opacity: 0.0; }
}
@keyframes dust-p5 {
  0% { transform: translate3d(-3.1px, -25.6px, 0); opacity: 0.0; }
  14% { transform: translate3d(-4.7px, -19.9px, 0); opacity: 0.6; }
  30% { transform: translate3d(-6.8px, -6.6px, 0); opacity: 0.6; }
  46% { transform: translate3d(-2.0px, -4.0px, 0); opacity: 0.53; }
  51% { opacity: 0.52; }
  54% { opacity: 1.0; }
  57% { opacity: 0.52; }
  62% { transform: translate3d(5.9px, 8.6px, 0); opacity: 0.5; }
  71% { opacity: 0.6; }
  74% { opacity: 1.0; }
  77% { opacity: 0.6; }
  78% { transform: translate3d(1.8px, 21.0px, 0); opacity: 0.63; }
  88% { transform: translate3d(4.4px, 11.8px, 0); opacity: 0.6; }
  100% { transform: translate3d(-0.8px, 25.6px, 0); opacity: 0.0; }
}
@keyframes dust-p6 {
  0% { transform: translate3d(-9.2px, -17.4px, 0); opacity: 0.0; }
  14% { transform: translate3d(-6.2px, -10.0px, 0); opacity: 1.0; }
  30% { transform: translate3d(1.4px, -5.5px, 0); opacity: 0.95; }
  46% { transform: translate3d(2.1px, 0.6px, 0); opacity: 0.99; }
  62% { transform: translate3d(-6.3px, -2.6px, 0); opacity: 0.78; }
  78% { transform: translate3d(-16.4px, 8.8px, 0); opacity: 0.76; }
  88% { transform: translate3d(-9.3px, 15.9px, 0); opacity: 0.99; }
  100% { transform: translate3d(-4.9px, 17.4px, 0); opacity: 0.0; }
}
@keyframes dust-p7 {
  0% { transform: translate3d(11.6px, -24.0px, 0); opacity: 0.0; }
  14% { transform: translate3d(1.6px, -14.1px, 0); opacity: 0.6; }
  30% { transform: translate3d(10.1px, -14.3px, 0); opacity: 0.53; }
  31% { opacity: 0.55; }
  34% { opacity: 1.0; }
  37% { opacity: 0.55; }
  46% { transform: translate3d(1.9px, -1.1px, 0); opacity: 0.6; }
  55% { opacity: 0.62; }
  58% { opacity: 1.0; }
  61% { opacity: 0.62; }
  62% { transform: translate3d(-5.8px, 7.7px, 0); opacity: 0.63; }
  78% { transform: translate3d(-0.1px, 10.5px, 0); opacity: 0.51; }
  88% { transform: translate3d(8.8px, 20.4px, 0); opacity: 0.6; }
  100% { transform: translate3d(9.8px, 24.0px, 0); opacity: 0.0; }
}
@keyframes dust-p8 {
  0% { transform: translate3d(-4.4px, -20.2px, 0); opacity: 0.0; }
  14% { transform: translate3d(-2.3px, -14.3px, 0); opacity: 1.0; }
  30% { transform: translate3d(-4.5px, -10.6px, 0); opacity: 0.77; }
  46% { transform: translate3d(1.4px, -4.0px, 0); opacity: 0.85; }
  62% { transform: translate3d(-4.1px, 5.3px, 0); opacity: 0.75; }
  78% { transform: translate3d(-7.3px, 16.4px, 0); opacity: 0.76; }
  88% { transform: translate3d(-10.8px, 15.9px, 0); opacity: 0.89; }
  100% { transform: translate3d(-16.3px, 20.2px, 0); opacity: 0.0; }
}
@keyframes dust-p9 {
  0% { transform: translate3d(7.2px, -12.5px, 0); opacity: 0.0; }
  14% { transform: translate3d(5.5px, -7.5px, 0); opacity: 1.0; }
  30% { transform: translate3d(3.7px, -5.5px, 0); opacity: 0.86; }
  46% { transform: translate3d(2.6px, 5.2px, 0); opacity: 0.99; }
  62% { transform: translate3d(-7.8px, -4.8px, 0); opacity: 0.98; }
  78% { transform: translate3d(-9.8px, 6.4px, 0); opacity: 0.77; }
  88% { transform: translate3d(-9.9px, 4.0px, 0); opacity: 0.96; }
  100% { transform: translate3d(-15.7px, 12.5px, 0); opacity: 0.0; }
}
@keyframes dust-p10 {
  0% { transform: translate3d(-33.2px, -21.8px, 0); opacity: 0.0; }
  14% { transform: translate3d(-17.2px, -16.7px, 0); opacity: 1.0; }
  30% { transform: translate3d(-10.3px, -9.0px, 0); opacity: 0.98; }
  46% { transform: translate3d(0.4px, 1.8px, 0); opacity: 0.91; }
  62% { transform: translate3d(-1.3px, 4.9px, 0); opacity: 0.97; }
  78% { transform: translate3d(9.6px, 13.0px, 0); opacity: 0.77; }
  88% { transform: translate3d(14.0px, 17.3px, 0); opacity: 0.96; }
  100% { transform: translate3d(19.6px, 21.8px, 0); opacity: 0.0; }
}
@keyframes dust-p11 {
  0% { transform: translate3d(12.5px, -16.7px, 0); opacity: 0.0; }
  14% { transform: translate3d(17.8px, -11.3px, 0); opacity: 1.0; }
  30% { transform: translate3d(12.4px, -8.9px, 0); opacity: 0.93; }
  46% { transform: translate3d(1.5px, 2.6px, 0); opacity: 0.73; }
  62% { transform: translate3d(-4.5px, 3.8px, 0); opacity: 0.95; }
  78% { transform: translate3d(10.5px, 6.1px, 0); opacity: 0.79; }
  88% { transform: translate3d(22.0px, 16.6px, 0); opacity: 0.93; }
  100% { transform: translate3d(17.9px, 16.7px, 0); opacity: 0.0; }
}
.motion .dust .p1 { animation-name: dust-p1; }
.motion .dust .p2 { animation-name: dust-p2; }
.motion .dust .p3 { animation-name: dust-p3; }
.motion .dust .p4 { animation-name: dust-p4; }
.motion .dust .p5 { animation-name: dust-p5; }
.motion .dust .p6 { animation-name: dust-p6; }
.motion .dust .p7 { animation-name: dust-p7; }
.motion .dust .p8 { animation-name: dust-p8; }
.motion .dust .p9 { animation-name: dust-p9; }
.motion .dust .p10 { animation-name: dust-p10; }
.motion .dust .p11 { animation-name: dust-p11; }
/* /DUST PATHS */
.hero.is-off .dust b,
body.motion-paused .dust b { animation-play-state: paused; }

/* The copy's own shade: a band behind the top bar and a corner behind the
   headline, sized to the words. It sits over the far card and the light,
   and under the floor and the bench, so the piece keeps its full contrast. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* the top band, a lens's own darker top right corner behind the link (the
     high window can sit there), and the corner behind the headline */
  background:
    linear-gradient(to bottom, rgba(11, 20, 16, 0.7) 0, rgba(11, 20, 16, 0) 140px),
    radial-gradient(34% 150px at 100% 0%, rgba(11, 20, 16, 0.5) 0%, rgba(11, 20, 16, 0.3) 55%, rgba(11, 20, 16, 0) 100%),
    radial-gradient(95% 78% at 0% 26%, rgba(11, 20, 16, 0.66) 0%, rgba(11, 20, 16, 0.4) 46%, rgba(11, 20, 16, 0) 78%);
}
.hero__copy {
  position: absolute;
  z-index: 4;
  left: var(--gut);
  top: clamp(96px, 19vh, 196px);
  width: min(62rem, 64vw); /* r22 fix round 1 (G1-08), was 58rem */
  will-change: transform;
}
.hero__copy h1 {
  font-size: clamp(2.5rem, 1.15rem + 4.6vw, 5.9rem);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.028em;
  max-width: 10.4em;
  color: var(--bone-ink);
}
.hero__sub {
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
  max-width: 33ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: 0.002em;
  color: #cfd3c7;
}
.hero__copy .btn { margin-top: clamp(1.4rem, 3.4vh, 2.2rem); }

/* A portrait screen stacks the photograph under the words: the piece's top
   24 px below where the words end (--copy-end, measured by tembusu.js; the
   fallback is the phone layout's), sized so the bench's back edge sits 40 px
   above the sheet bar; where that would leave the piece too small, the floor
   meets the bar instead and the bench waits below it. The box never gets
   narrower than the screen. The far card is the portrait plate
   (hero-far-p.webp): the whole photograph under 79 percent more wall, its top
   fading into the ground, hung from the same box. */
@media (orientation: portrait) {
  .scene {
    --tbtop: calc(100cqh - var(--tb-h, 60px) - var(--tb-gap));
    --ce: var(--copy-end, calc(clamp(82px, 13svh, 120px) + 300px));
    --sh-bench: calc((var(--tbtop) - 40px - var(--ce) - 24px) / (var(--be) - var(--pt)));
    --sh-floor: calc((var(--tbtop) - 6px - var(--ce) - 24px) / (var(--fl) - var(--pt)));
    --sh: min(max(var(--sh-bench), min(var(--sh-floor), 307px), 55.82cqw), 64cqh);
    --sw: calc(var(--sh) * 1.79167);
    width: var(--sw);
    height: var(--sh);
    left: clamp(100cqw - var(--sw), 50cqw - (var(--fp) + var(--fr)) / 2 * var(--sw), 0px);
    top: calc(var(--ce) + 24px - var(--pt) * var(--sh));
  }
  .plane--far picture {
    position: absolute;
    left: 0;
    top: -79.18%;
    width: 100%;
    height: 179.18%;
  }
}
/* A short portrait screen (the /websites phone frame is 390 by 520) has no
   room under the words, so the piece stands beside the button instead, as
   round 21's box did: its right edge 14 px from the screen's, its top 16 px
   below the sub line (--sub-end), its floor on the sheet bar, and never
   wider than the room right of the button (--btn-r). */
@media (orientation: portrait) and (max-height: 600px) {
  .scene {
    --se: var(--sub-end, calc(var(--ce) - 110px));
    --br: var(--btn-r, calc(var(--gut) + 174px));
    /* r22 fix round 2 (G2-08): placed and sized from the larder's foot
       (0.74 of the photograph), not the wall's (--fl), so its feet stand
       clear of the sheet bar (they were 11px behind it at 390 by 520) */
    --sh: max(min(calc((100cqw - 30px - var(--br)) / (var(--fr) - var(--fp)) / 1.79167), calc((var(--tbtop) - 24px - var(--se)) / (0.74 - var(--pt)))), calc((100cqw - 14px) / var(--fr) / 1.79167));
    left: calc(100cqw - 14px - var(--fr) * var(--sw));
    top: calc(var(--tbtop) - 8px - 0.74 * var(--sh));
  }
}

.top {
  position: absolute;
  z-index: 6;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vh, 28px) var(--gut);
}
.top__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--bone-ink);
  text-decoration: none;
}
.top__brand .mark { width: 30px; height: 30px; }
.top__word {
  font: 600 1.22rem/1 var(--font-display);
  letter-spacing: -0.012em;
}
.top__word span { font-weight: 430; }
.top__link {
  color: var(--bone-ink);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-color: rgba(226, 165, 83, 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
  transition: text-decoration-color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .top__link:hover { text-decoration-color: var(--amber-hi); }
}

/* ================================================================ 2 ====
   YOUR WALL. Quiet on purpose: one photograph and two lines. */
.act--wall {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--gut) clamp(4.5rem, 13vh, 8rem);
}
.wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.wall__photo { grid-column: 5 / 13; grid-row: 1; position: relative; }
.wall__photo img { display: block; width: 100%; height: auto; }
.wall__dim {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 14px;
  overflow: visible;
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.wall__tick { stroke-width: 1.6; }
.wall__dimtext {
  margin-top: 2px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--graphite);
}
.wall__copy { grid-column: 1 / 5; grid-row: 1; padding-bottom: 3.6rem; }
.wall__copy h2 {
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.4rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.024em;
  max-width: 11em;
}
.wall__copy p {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ================================================================ 3 ====
   THE DRAWING. The peak. A sheet with its border, a notes column over the
   title block, and the elevation. Default state is the finished one:
   the photograph shown, the pencil at 15 percent over it, every note visible. */
.act--drawing { background: var(--bone-200); }
.sheet { background: var(--bone-200); color: var(--ink); }
.sheet__border {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(57, 67, 61, 0.3);
  pointer-events: none;
}
.sheet__head {
  position: absolute;
  left: var(--gut);
  top: clamp(38px, 6.5vh, 70px);
  width: min(44rem, 58vw);
  z-index: 2;
}
.sheet__lead h2, .sheet__end {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 0.95rem + 2vw, 2.9rem);
  font-weight: 520;
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.sheet__lead p {
  margin-top: 0.55rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.sheet__end { margin-top: 0.9rem; font-size: 1.1rem; font-weight: 540; line-height: 1.3; letter-spacing: -0.005em; }
.motion .sheet__end {
  position: absolute; left: 0; top: 0; margin: 0; opacity: 0;
  font-size: clamp(1.75rem, 0.95rem + 2vw, 2.9rem); line-height: 1.03; letter-spacing: -0.022em;
}

.dwg {
  --dwg-top: calc(clamp(38px, 6.5vh, 70px) + clamp(110px, 15vh, 140px));
  position: absolute;
  z-index: 1;
  left: var(--gut);
  top: var(--dwg-top);
  width: min(calc(100vw - var(--gut) - var(--tb-w) - var(--tb-gap) - 36px), calc((100svh - var(--dwg-top) - 56px) * 1.7027));
  aspect-ratio: 2520 / 1480;
}
.dwg__art { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.dwg__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* the photograph is wider than the sheet's viewBox; only the pencil may
   run past the frame */
.dwg__art svg.dwg__photo { overflow: hidden; }
.dwg__label {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.pencil { opacity: 0.15; }
.pencil path {
  fill: none;
  stroke: var(--graphite);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w1 { stroke-width: 3.4; }
.w2 { stroke-width: 2.4; }
.w3 { stroke-width: 1.7; }
.pencil .gh { stroke-width: 1.3; opacity: 0.42; }
.pencil .hid { stroke-dasharray: 14 10; }
.dims { opacity: 0.55; }
.dims path { fill: none; stroke: #5b655e; stroke-width: 1.5; }
.dims .tick { stroke-width: 2.6; }
.dimt {
  font-family: var(--font-text);
  font-size: 31px;
  font-weight: 500;
  fill: #3e4842;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}
/* the two horizontal dimension rows are drawn twice: desktop's, and a lower
   pair for phones, whose numerals are twice the size (loop E2-01). Hidden,
   not removed, so the script can still measure every line it draws. */
.hrow--m { visibility: hidden; }
.dwg__plate { visibility: hidden; }
.dwg__grow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}
.motion .dwg__grow { display: block; }
.stage-wireframe .dwg__grow { display: none; }

/* notes: the column over the title block, leaders drawn by script */
.notes {
  position: absolute;
  z-index: 2;
  right: var(--tb-gap);
  width: calc(var(--tb-w) - 6px);
  top: var(--dwg-top, 220px);
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.note {
  position: relative;
  padding-left: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-lo);
}
.js .notes.is-placed { display: block; }
.js .notes.is-placed .note { position: absolute; left: 0; top: var(--ny); }
.leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.leaders path { fill: none; stroke: var(--amber-lo); stroke-width: 1.2; opacity: 0.75; }
.leaders circle { fill: var(--amber-lo); }

/* ================================================================ 4 ====
   THE JOINT. One big wipe, rough to finished, and a museum label. */
.act--joint { background: var(--forest-950); }
.joint { position: relative; height: 100svh; min-height: 540px; overflow: clip; }
.joint__frame { position: absolute; inset: 0; }
.joint__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 50%;
}
.joint__done { position: absolute; inset: 0; }
.joint__shade { display: none; }
.joint__blade {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: rgba(236, 230, 216, 0.55);
  opacity: 0;
  will-change: transform, opacity;
}
.label {
  position: absolute;
  z-index: 2;
  left: var(--gut);
  bottom: clamp(56px, 13vh, 132px);
  width: min(23rem, calc(100vw - 2 * var(--gut)));
  padding-top: 14px;
  border-top: 1px solid rgba(236, 230, 216, 0.32);
  color: var(--bone-ink);
}
.label h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.35rem);
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.label__sub { margin-top: 0.3rem; font-size: 0.95rem; color: var(--amber-hi); }
.label p:last-child {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #c4cabe;
}

/* ================================================================ 5 ====
   THE TIMBER. The rack travels sideways; each board lands with its label. */
.act--timber { background: var(--forest-900); }
.rack {
  background:
    radial-gradient(90% 70% at 88% 6%, rgba(226, 165, 83, 0.09), rgba(226, 165, 83, 0) 60%),
    var(--forest-900);
  color: var(--bone-ink);
}
/* The captions stand on the rack's foot, which keeps the title block's own
   footprint clear (its height is measured by tembusu.js) with 24 px to
   spare, so a caption's last line ends at least 12 px above the block even
   where the narrowest boards let the longest caption run 7 px past its box
   (review r22 T-01: at 1366 by 768 and shorter the block covered the last
   line of up to three). */
.rack__rail {
  position: relative;
  height: 100%;
  width: max-content;
  align-items: flex-end;
  --rack-gap: clamp(30px, 4vw, 64px);
  --wood-h: min(50vh, 470px);
  gap: var(--rack-gap);
  padding: 0 calc(var(--gut) + 8px) max(clamp(110px, 19vh, 176px), calc(var(--tb-h, 132px) + var(--tb-gap) + 24px)) var(--gut);
}
/* on a short screen the room for that comes out of the boards, never the
   captions */
@media (min-width: 701px) and (max-height: 800px) {
  .rack__rail { --wood-h: min(42vh, 470px); }
}
.rack__lead { flex: none; width: min(25rem, 80vw); align-self: center; padding-bottom: 4vh; }
.rack__lead h2 {
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.4rem);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.024em;
}
.rack__lead p {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--bone-ink-soft);
}
.board {
  --land: 1;
  flex: none;
  width: clamp(150px, 13.4vw, 204px);
}
.board__wood {
  position: relative;
  transform: translate3d(0, calc((1 - var(--land)) * -28px), 0);
  opacity: calc(0.55 + 0.45 * var(--land));
}
.board__wood img {
  display: block;
  height: var(--wood-h);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 18px 18px rgba(2, 6, 4, 0.45));
}
.board figcaption {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 9.4em;
  margin-top: 20px;
  font-size: 0.88rem;
  line-height: 1.42;
  color: var(--bone-ink-soft);
  opacity: var(--land);
  transform: translate3d(0, calc((1 - var(--land)) * 8px), 0);
}
.board figcaption b {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 580;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--bone-ink);
}
.board__use { color: var(--amber-hi); }
.rack__note {
  flex: none;
  width: min(20rem, 72vw);
  align-self: center;
  padding-bottom: 4vh;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--bone-ink);
}
/* the rack's shelf: one line at the foot of every board, running into the
   gaps so it reads as one rail */
.board { position: relative; }
.board::before {
  content: "";
  position: absolute;
  left: calc(var(--rack-gap) * -0.5);
  right: calc(var(--rack-gap) * -0.5);
  top: var(--wood-h);
  height: 1px;
  background: rgba(236, 230, 216, 0.16);
}

/* ================================================================ 6 ====
   FITTED. Four rooms, asymmetric, each captioned with place and piece. */
.act--fitted {
  padding: clamp(3rem, 8vh, 5rem) var(--gut) clamp(4rem, 10vh, 6rem);
}
.fitted {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(2.2rem, 6vh, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}
.fitted__head { grid-column: 1 / 8; grid-row: 1; }
.fitted__head h2 {
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.4rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.024em;
}
.room { margin: 0; }
.room__img { position: relative; overflow: hidden; background: var(--bone-300); }
.room__img img { display: block; width: 100%; height: auto; }
.room figcaption {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.room figcaption b { color: var(--ink); font-weight: 600; }
.fitted__head { align-self: end; }
.fitted__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.room--a { grid-column: 1 / 8; grid-row: 2; }
.room--b { grid-column: 9 / 13; grid-row: 1 / 3; align-self: end; }
.room--c { grid-column: 1 / 6; }
.room--d { grid-column: 7 / 11; margin-top: clamp(2rem, 7vh, 4.5rem); }
/* Wide screens (loop E2-03). The first two rows run the whole sheet, the
   wardrobe to its right edge; only the third row, the one the title block
   sits beside, keeps its footprint clear (loop E1-07). The kitchen is cut a
   little wider than 3:2 and the wardrobe fills the height of the heading
   and the kitchen together (a mild crop, between 2:3 and 4:5), so both
   captions end on one line, clear of the title block when the act's top
   meets the top of the screen. */
@media (min-width: 701px) {
  .fitted { max-width: none; margin: 0; }
  .fitted__row { padding-right: calc(var(--tb-w) + var(--tb-gap) - var(--gut) + 12px); }
  /* on short screens the kitchen is cut wider still, so the captions end
     about 40 px above the title block: the act's top padding, heading,
     row gap, caption and the block itself take about 14 percent of the
     screen height plus 296 px */
  .room--a .room__img { aspect-ratio: 16 / 10; max-height: calc(86svh - 296px); }
  .room--a .room__img img { height: 100%; object-fit: cover; object-position: 50% 55%; }
  .room--b { align-self: stretch; display: flex; flex-direction: column; }
  .room--b .room__img { flex: 1 1 0; min-height: 0; }
  .room--b .room__img img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .stage-wireframe .room--a .room__img { --ar: 1.6; }
  .stage-wireframe .room--b .room__img { aspect-ratio: auto; }
}

/* ================================================================ 7 ====
   BOOK A MEASURE. The title block grows into the approval box. */
.act--book { background: var(--bone-200); }
.close { background: var(--bone-200); color: var(--ink); }
.close__say {
  position: absolute;
  z-index: 1;
  left: var(--gut);
  top: var(--say-top, clamp(84px, 17vh, 160px));
  width: min(40rem, calc(100vw - var(--gut) - 620px));
}
.close__big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 0.9rem + 3.3vw, 4.4rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.026em;
}
.close__small { margin-top: 1.1rem; font-size: 1.05rem; color: var(--ink-soft); }
.close__where {
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule-soft);
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.demo {
  position: absolute;
  z-index: 1;
  left: var(--gut);
  bottom: 30px;
  width: min(30rem, calc(100vw - var(--gut) - 620px));
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.demo a { color: var(--ink); text-underline-offset: 0.25em; }
.embed .demo { display: none; }

.approve {
  position: absolute;
  z-index: 2;
  right: var(--tb-gap);
  bottom: var(--tb-gap);
  width: min(544px, calc(100vw - 2 * var(--tb-gap)));
  padding: 26px 28px calc(var(--tb-h, 132px) + 20px);
}
.approve__paper { position: absolute; inset: 0; pointer-events: none; }
.approve__fill {
  position: absolute;
  inset: 0;
  background: var(--bone-50);
  transform-origin: 100% 100%;
  will-change: transform;
}
.edge { position: absolute; background: var(--rule); will-change: transform; }
.edge--t { left: 0; right: 0; top: 0; height: 1px; transform-origin: 100% 0; }
.edge--b { left: 0; right: 0; bottom: 0; height: 1px; transform-origin: 100% 0; }
.edge--l { left: 0; top: 0; bottom: 0; width: 1px; transform-origin: 0 100%; }
.edge--r { right: 0; top: 0; bottom: 0; width: 1px; transform-origin: 0 100%; }
.approve__body { position: relative; }
/* while the box is still the title block, its unseen fields take no clicks */
.motion .approve:not(.is-open) .approve__body { pointer-events: none; }
.approve__k { font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.approve h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.9rem, 1.35rem + 1.3vw, 2.6rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.approve__lede { margin-top: 0.6rem; max-width: 42ch; font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.approve__fields {
  min-inline-size: 0;
  margin: 1.2rem 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}
.fld { display: grid; gap: 6px; }
.fld__k { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.fld input, .fld select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fbfaf6;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 150ms var(--ease);
}
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.fld input:focus-visible, .fld select:focus-visible { outline: 2px solid var(--amber-lo); outline-offset: 2px; border-color: var(--ink); }
.fld input:disabled, .fld select:disabled { background: var(--bone-100); }
.approve__act { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.approve__note { display: none; font-size: 0.8rem; color: var(--ink-soft); }
/* the demonstration line says the form sends nothing; inside the frame that
   line is hidden, so the note beside the button says it instead */
.embed .approve__note { display: block; }
.approve__demo { display: none; margin-top: 16px; font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); }
.approve__demo a { color: var(--ink); text-underline-offset: 0.25em; }
.approve__out { min-height: 1.45em; font-size: 0.92rem; line-height: 1.45; color: var(--ink); }

/* ======================================================== title block ==
   The navigation. A bone card fixed bottom right, the sheet it is on, an
   index of every sheet, and the firm. */
.tb {
  position: fixed;
  z-index: 60;
  right: var(--tb-gap);
  bottom: var(--tb-gap);
  width: var(--tb-w);
  background: var(--bone-100);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 38px -18px rgba(2, 7, 4, 0.7), 0 2px 6px -2px rgba(2, 7, 4, 0.3);
  transition: box-shadow 300ms var(--ease);
}
.tb--paper { box-shadow: 0 10px 26px -18px rgba(23, 35, 28, 0.35); }
.tb--flush { box-shadow: none; }
.tb :focus-visible { outline-color: var(--amber-lo); }
.tb__sheet {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px 10px;
}
.tb__k { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.tb__v {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.tb__toggle { display: none; }
.tb__index {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 9px 14px 10px;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}
/* Neither the item nor its link is positioned, so a cell's name (below)
   is placed against the title block itself: above the whole block, where it
   covers nothing of it, and across at its own cell (loop F2-09: it used to
   print over the sheet name). */
.tb__index a {
  display: block;
  width: 34px;
  height: 26px;
  color: var(--ink);
  text-decoration: none;
}
.tb__cell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(23, 35, 28, 0.45);
  background: var(--bone-50);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.tb__cell::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 10px;
  height: 5px;
  border: 1px solid rgba(23, 35, 28, 0.4);
}
.tb__index a[aria-current="true"] .tb__cell { background: var(--amber-lo); border-color: var(--amber-lo); }
.tb__index a[aria-current="true"] .tb__cell::after { border-color: rgba(242, 239, 231, 0.75); }
/* left and right stay auto, so the name starts where it would sit in the
   link, which is its cell's left edge; the translate then centres it on the
   cell (34 px wide), or keeps the outer names inside the block */
.tb__name {
  position: absolute;
  bottom: calc(100% + 8px);
  translate: calc(-50% + 17px) 0;
  padding: 5px 8px;
  background: var(--forest-900);
  color: var(--bone-ink);
  box-shadow: 0 0 0 1px rgba(236, 230, 216, 0.28);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms var(--ease);
}
.tb__index li:nth-last-child(-n+2) .tb__name { translate: calc(-100% + 34px) 0; }
.tb__index li:nth-child(-n+2) .tb__name { translate: 0 0; }
.tb__index a:focus-visible .tb__name { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tb__index a:hover .tb__cell { background: var(--bone-300); border-color: var(--ink); }
  .tb__index a[aria-current="true"]:hover .tb__cell { background: #7c470c; }
  .tb__index a:hover .tb__name { opacity: 1; }
}
.tb__firm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 10px;
  border-top: 1px solid var(--rule-soft);
}
.tb__firm .mark { width: 18px; height: 18px; }
.tb__firmname { font: 600 0.92rem/1 var(--font-display); letter-spacing: -0.01em; }
.tb__addr .nw { white-space: nowrap; }
.tb__addr { margin-left: auto; max-width: 10em; font-size: 0.78rem; line-height: 1.25; text-align: right; color: var(--ink-soft); }

/* ================================================================ phones */
@media (max-width: 700px) {
  :root { --tb-w: 100vw; --tb-gap: 0px; }

  .tb {
    left: 0;
    right: 0;
    width: auto;
    border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tb__sheet { grid-template-columns: auto 1fr auto; align-items: center; padding: 7px 10px 7px 16px; }
  .tb__v { font-size: 1.02rem; }
  .tb__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
  }
  .tb__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: translateY(2px) rotate(45deg);
    transition: transform 160ms var(--ease);
  }
  .tb.is-open .tb__toggle::after { transform: translateY(-2px) rotate(225deg); }
  .tb__index {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    background: var(--bone-100);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -16px 30px -18px rgba(2, 7, 4, 0.55);
  }
  .tb.is-open .tb__index { display: flex; }
  .tb__index a { display: flex; align-items: center; gap: 14px; width: auto; height: 48px; padding: 0 16px; }
  .tb__index .tb__cell { position: relative; flex: none; width: 28px; height: 21px; }
  .tb__name,
  .tb__index li:nth-last-child(-n+2) .tb__name,
  .tb__index li:nth-child(-n+2) .tb__name {
    position: static;
    translate: none;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 1rem;
    opacity: 1;
  }
  .tb__firm { display: none; }

  /* 1. the hero on a phone: the words on top, the photograph stacked under
     them (the scene's portrait geometry is in the orientation block) */
  .hero__copy { top: clamp(82px, 13svh, 120px); width: auto; right: var(--gut); }
  .hero__scrim {
    background: linear-gradient(to bottom, rgba(11, 20, 16, 0.88) 0%, rgba(11, 20, 16, 0.8) 34%, rgba(11, 20, 16, 0.5) 52%, rgba(11, 20, 16, 0) 68%);
  }
  .hero__copy h1 { font-size: clamp(2.3rem, 1.2rem + 5.6vw, 2.9rem); max-width: 9.2em; }
  .hero__sub { font-size: 1rem; max-width: 30ch; }
  .top__word { font-size: 1.08rem; }
  .top__brand .mark { width: 26px; height: 26px; }
  .top__link { font-size: 0.92rem; }

  /* 2. the wall: photograph first, then the two lines */
  .act--wall { padding-top: 4.5rem; padding-bottom: 6rem; }
  .wall { grid-template-columns: 1fr; row-gap: 2rem; }
  .wall__photo, .wall__copy { grid-column: 1; }
  .wall__photo { grid-row: 1; }
  .wall__copy { grid-row: 2; padding-bottom: 0; }

  /* 3. the drawing: the sheet's type on every phone; the camera and the
     notes list are for phones held upright (below) */
  .sheet__border { inset: 8px; }
  .sheet__head { top: 32px; width: auto; right: var(--gut); }
  .sheet__lead h2, .motion .sheet__end { font-size: 1.62rem; }
  .sheet__lead p { font-size: 0.95rem; }
  .note { font-size: 0.9rem; }
}
/* 3. the drawing on a phone held upright: the elevation is wider than the
   phone and the camera travels along it; the notes sit under it as a list.
   r22 fix round 2 (G2-01): upright only. On a phone held sideways the
   camera's width came from the height (100svh less 360px), which is nothing
   under 400px tall, so the drawing vanished; a phone held sideways gets the
   drawing sized from the height with the notes listed beside it (below). */
@media (max-width: 700px) and (orientation: portrait) {
  /* the drawing's top, set on the notes too: they are its siblings and
     read it for their place without script */
  .dwg, .notes { --dwg-top: 150px; }
  .dwg { width: calc(100vw - 2 * var(--gut)); }
  .motion .dwg.is-pan { width: calc((min(100svh - 360px, 400px)) * 1.4983); }
  /* in the still and no script states "Then we make exactly that." is a
     line under the lede rather than a replacement for the heading, so the
     drawing starts below all three (it printed over the photograph at 390
     and 414 wide) */
  html:not(.motion) :is(.dwg, .notes) { --dwg-top: 196px; }
  .w1 { stroke-width: 4.6; }
  .w2 { stroke-width: 3.4; }
  .w3 { stroke-width: 2.5; }
  .pencil .gh { stroke-width: 1.8; }
  .dimt { font-size: 62px; }
  .hrow--d { visibility: hidden; }
  .hrow--m { visibility: visible; }
  /* the phone rows end 36 viewBox units below the sheet's foot, which is
     36 / 2520 of the drawing's width, so the label starts that much lower
     (a percentage margin is a share of the drawing's width) */
  .dwg__label {
    margin-top: calc(10px + 9.64%);
    max-width: calc(100vw - 2 * var(--gut));
    font-size: 0.78rem;
    line-height: 1.3;
    will-change: transform;
  }
  /* without script: under the drawing, its overflow and a label of up to
     two lines (with script, tembusu.js measures the label instead) */
  .notes {
    right: auto;
    left: var(--gut);
    width: calc(100vw - 2 * var(--gut));
    top: calc(var(--dwg-top, 150px) + (100vw - 2 * var(--gut)) * 0.6837 + 57px);
    bottom: auto;
    gap: 6px;
    will-change: transform;
  }
  .js .notes.is-placed { display: grid; }
  .js .notes.is-placed .note { position: relative; top: auto; }
  .leaders { display: none; }
}
/* 3. the drawing on a phone held sideways (r22 fix round 2, G2-01): the
   heading one line at the top, the elevation on the left sized from the
   height between the heading and the sheet bar, and the four notes listed
   in the column beside it (tembusu.js lists them on every phone and runs
   the camera only upright). At 568 by 320 the drawing is about 240px wide,
   where the upright rule made it nothing. */
@media (max-width: 700px) and (orientation: landscape) {
  .sheet {
    --ls-top: 72px;
    --dwg-w: min(56vw, calc((100svh - var(--ls-top) - var(--tb-h, 58px) - 44px) * 1.4626));
  }
  html:not(.motion) .sheet { --ls-top: 96px; }
  .sheet__head { top: 20px; }
  .sheet__lead h2, .motion .sheet__end { font-size: 1.3rem; }
  .sheet__lead p { display: none; }
  /* doubled class: the short phone rule further down sets --dwg-top too */
  .sheet .dwg.dwg, .sheet .notes.notes { --dwg-top: var(--ls-top); }
  .dwg { width: var(--dwg-w); }
  .dwg__label { font-size: 0.75rem; line-height: 1.3; max-width: var(--dwg-w); }
  .notes {
    left: calc(var(--gut) + var(--dwg-w) + 20px);
    right: var(--gut);
    width: auto;
    top: var(--ls-top);
    gap: 6px;
  }
  .note { font-size: 0.82rem; line-height: 1.3; }
  .js .notes.is-placed { display: grid; }
  .js .notes.is-placed .note { position: relative; top: auto; }
  .leaders { display: none; }
}
@media (max-width: 700px) {
  /* 4. the joint: keep the pins in frame, and shade only the band the
     label sits in */
  .joint__img { object-position: 64% 50%; }
  .joint__shade {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 58%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(11, 20, 16, 0.94) 0%, rgba(11, 20, 16, 0.8) 38%, rgba(11, 20, 16, 0.35) 70%, rgba(11, 20, 16, 0) 100%);
  }
  .label { bottom: calc(var(--tb-h, 60px) + 28px); }

  /* 5. the timber */
  /* sized so the first board and its caption sit whole beside the heading
     when the act opens, and the last board sits whole beside the note when
     it closes */
  .board { width: 38vw; }
  .board figcaption { height: 11.6em; font-size: 0.8rem; }
  .board figcaption b { font-size: 1.12rem; }
  .rack__lead { width: 50vw; }
  .rack__lead h2 { font-size: 1.9rem; }
  .rack__lead p { font-size: 0.95rem; }
  .rack__note { width: 44vw; font-size: 0.98rem; }
  .rack__rail { --wood-h: min(42svh, 360px); --rack-gap: 20px; padding-bottom: calc(var(--tb-h, 60px) + 32px); }

  /* 6. fitted */
  .fitted { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 14px; row-gap: 2.4rem; }
  .fitted__head { grid-column: 1 / 7; }
  .fitted__row { display: contents; }
  .room--a { grid-column: 1 / 7; grid-row: auto; }
  .room--b { grid-column: 2 / 7; grid-row: auto; margin-top: 0; }
  .room--c { grid-column: 1 / 6; grid-row: auto; }
  .room--d { grid-column: 1 / 7; grid-row: auto; margin-top: 0; }

  /* 7. the approval box is a sheet that grows up out of the bar */
  .close { display: flex; flex-direction: column; padding: 70px var(--gut) 0; }
  /* the sheet's hairline stays on phones, so the screen before the approval
     box rises reads as a drawing sheet rather than a gap (loop E2-02); the
     box, full width, covers its lower part as it comes up */
  .close__say { position: static; width: auto; }
  .close__big { font-size: 1.7rem; }
  .close__small { font-size: 0.95rem; margin-top: 0.6rem; }
  .demo { display: none; }
  .approve__demo { display: block; }
  .embed .approve__demo { display: none; }
  .close__where { display: none; }
  .approve { left: 0; right: 0; bottom: 0; width: auto; padding: 18px var(--gut) calc(var(--tb-h, 60px) + 14px); }
  .approve h2 { font-size: 1.75rem; }
  .approve__lede { font-size: 0.92rem; }
  .approve__fields { margin-top: 0.9rem; gap: 9px; }
  .fld input, .fld select { height: 44px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .close { padding-top: 40px; }
  .close__small, .approve__lede { display: none; }
  .close__big { font-size: 1.32rem; }
  /* the finished sheet stands clear of the closing line (loop E3-01): the
     status line holds no empty row until the form has something to say,
     and the demonstration line sits closer to the button. The sheet grows
     upwards when the status line fills, so the line is a step smaller here
     and the closing line sits higher, which keeps the two apart after a
     send as well */
  .approve__out:empty { min-height: 0; }
  .approve__out { font-size: 0.86rem; line-height: 1.4; }
  .approve__demo { margin-top: 8px; }
  .approve__fields { gap: 6px; }
  .fld { gap: 3px; }
  .fld input, .fld select { height: 42px; }
  .hero__copy h1 { font-size: 2.1rem; }
  .sheet__lead p { display: none; }
  /* with the lede hidden the heading ends higher, so the drawing starts
     higher too, leaving the notes room above the title bar under the lower
     dimension rows and a two line label (loop E2-01, E2-04) */
  .dwg, .notes { --dwg-top: 122px; }
  html:not(.motion) :is(.dwg, .notes) { --dwg-top: 140px; }
}

/* A short landscape screen, such as a phone on its side (844 by 390): the
   headline is sized from the height and the words stop 16 px short of the
   title block, so all of them, the button too, sit above the fold and
   beside the block; the block drops its firm row, as it does on phones, so
   it covers only the foot of the piece. (Cropping the photograph higher
   would free the foot too, but by the end of the pin it put the top link
   over the piece's top.) The same words rule holds on a phone on its side,
   where the block is the sheet bar at the foot. */
@media (min-width: 701px) and (max-height: 500px) {
  .hero {
    --h1-fs: clamp(1.8rem, 9.4vh, 2.9rem);
    --copy-w: min(58rem, 64vw, calc(100vw - var(--tb-w) - var(--tb-gap) - 16px - var(--gut)));
    --h1-r: calc(var(--gut) + min(10.4 * var(--h1-fs), var(--copy-w)));
  }
  .hero__copy { top: clamp(64px, 19vh, 96px); width: var(--copy-w); }
  .hero__copy h1 { font-size: var(--h1-fs); }
  .tb__firm { display: none; }
}
@media (max-width: 700px) and (orientation: landscape) {
  /* here the sub line (40ch) can run wider than the headline, so the
     piece keeps its 40 px from whichever ends further right */
  /* r22 fix round 1 (G1-07): on small phones held sideways the headline's
     40px clearance won over the right edge and cut the open door (18px at
     568 by 320). The piece may stand 12px from the words here, the headline
     is a little smaller and the sub line 34ch, so the door stays whole. */
  .hero {
    --h1-fs: clamp(1.6rem, 9vh, 2rem);
    --h1-r: calc(var(--gut) + max(min(10.4 * var(--h1-fs), 64vw), min(34ch, 64vw)));
    --clear: 12px;
  }
  /* r22 fix round 1 (G1-09): 20vh left the button's foot on the sheet bar
     at 568 by 320; the words start higher. */
  .hero__copy { top: clamp(50px, 16vh, 82px); }
  .hero__copy h1 { font-size: var(--h1-fs); max-width: 10.4em; }
  .hero__sub { max-width: 34ch; }
}

/* ======================================================= unpinned stages
   The engine sizes and pins a stage by giving it .sc-stage. Without the
   engine (no script) or in the still state (every act is ordinary flow) a
   stage is a plain block, so it needs its own size. Scoped to :not(.sc-stage)
   so it can never outrank the engine's sticky pin. */
.hero:not(.sc-stage),
.sheet:not(.sc-stage),
.close:not(.sc-stage) {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}
.rack:not(.sc-stage) { position: relative; }
.rack:not(.sc-stage) .rack__rail {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  height: auto;
  justify-content: flex-start;
  row-gap: 48px;
  padding: clamp(4rem, 12vh, 7rem) var(--gut) clamp(4rem, 10vh, 6rem);
  transform: none !important;
}
.rack:not(.sc-stage) .rack__lead,
.rack:not(.sc-stage) .rack__note { flex-basis: 100%; width: auto; max-width: 40rem; padding: 0; }
.rack:not(.sc-stage) .board { width: clamp(140px, 12vw, 176px); }
.rack:not(.sc-stage) .board::before { display: none; }
@media (max-width: 700px) {
  .hero:not(.sc-stage), .sheet:not(.sc-stage), .close:not(.sc-stage) { min-height: 560px; }
  .rack:not(.sc-stage) .rack__rail { --wood-h: 300px; column-gap: 20px; }
  .rack:not(.sc-stage) .board { width: calc(50% - 10px); }
  .close:not(.sc-stage) { height: auto; min-height: 100svh; padding-bottom: 24px; }
  .close:not(.sc-stage) .approve { position: relative; left: auto; right: auto; bottom: auto; margin: 20px calc(-1 * var(--gut)) 0; }
}

/* ================================================================ still
   Reduced motion and ?capture=1: no pinned space, nothing moves, every
   finished state renders. (Without JavaScript, still.css does the same for
   the engine's own pre-states.) */
.still [data-sc-cue],
.still [data-sc-in],
.still [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
.still [data-sc-reveal] { clip-path: none !important; }
/* the dust moves only under .motion (tembusu.js), so still, no script and
   capture all show every speck at rest in the light */
.still .plane, .still .hero__copy, .still .dwg__art { transform: none !important; }

/* ================================================================ stages
   ?stage=structure: the brand's type, palette and logo, with every
   photograph replaced by a flat tinted plate. */
.stage-structure .plane--far img,
.stage-structure .floorcard,
.stage-structure .bench,
.stage-structure .plane--air,
.stage-structure .hero__scrim,
.stage-structure .wall__photo img,
.stage-structure .joint__img,
.stage-structure .board__wood img,
.stage-structure .room__img img,
.stage-structure .dwg__img { visibility: hidden; }
.stage-structure .plane--far picture { background: var(--forest-850); }
/* the floor, the piece standing on it and the bench, as flat plates at
   their places in the photograph (the fractions set on .hero) */
.stage-structure .plane--room::before,
.stage-structure .plane--mid::before,
.stage-wireframe .plane--room::before,
.stage-wireframe .plane--mid::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -30%;
}
.stage-structure .plane--room::before,
.stage-wireframe .plane--room::before { top: calc(var(--fl) * 100%); }
.stage-structure .plane--mid::before,
.stage-wireframe .plane--mid::before { top: calc(var(--be) * 100%); }
.stage-structure .plane--room::before { background: #1f2a23; }
.stage-structure .plane--mid::before { background: #2a2219; }
.stage-structure .plane--room::after {
  content: "";
  position: absolute;
  left: calc(var(--fp) * 100%);
  right: calc((1 - var(--fr)) * 100%);
  top: calc(var(--pt) * 100%);
  bottom: calc((1 - var(--fl)) * 100%);
  background: #b98a4c;
}
.stage-structure .wall__photo { background: var(--bone-300); aspect-ratio: 1.6; }
.stage-structure .joint__frame { background: var(--forest-850); }
.stage-structure .joint__done { background: #3a2c1c; }
.stage-structure .board__wood { background: #9b6f3e; width: clamp(96px, 8.4vw, 146px); height: var(--wood-h); }
.stage-structure .board:nth-of-type(2) .board__wood { background: #8a5a2b; }
.stage-structure .board:nth-of-type(3) .board__wood { background: #6b4a2c; }
.stage-structure .board:nth-of-type(4) .board__wood { background: #b79a74; }
.stage-structure .board:nth-of-type(5) .board__wood { background: #4a3122; }
.stage-structure .board:nth-of-type(6) .board__wood { background: #9a4f38; }
.stage-structure .room__img { background: var(--bone-300); }
.stage-structure .dwg__plate { visibility: inherit; }

/* ?stage=wireframe: grey boxes in the final layout, no photographs, no
   colour, labels in a neutral face. The palette tokens all go grey, so every
   ground and every ink follows. */
.stage-wireframe {
  --forest-950: #eeeeee;
  --forest-900: #f2f2f2;
  --forest-850: #e4e4e4;
  --forest-800: #e0e0e0;
  --bone-50: #fafafa;
  --bone-100: #f7f7f7;
  --bone-200: #f4f4f4;
  --bone-300: #dddddd;
  --ink: #2b2b2b;
  --ink-soft: #666666;
  --bone-ink: #2b2b2b;
  --bone-ink-soft: #666666;
  --amber-hi: #bdbdbd;
  --amber-lo: #555555;
  --graphite: #8a8a8a;
  --rule: rgba(0, 0, 0, 0.35);
  --rule-soft: rgba(0, 0, 0, 0.14);
  --font-display: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --font-text: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --sc-accent: #555555;
}
.stage-wireframe .hero__sub, .stage-wireframe .label p:last-child,
.stage-wireframe .label__sub, .stage-wireframe .board__use { color: #666666; }
.stage-wireframe .sc-grain,
.stage-wireframe img,
.stage-wireframe .dwg__img,
.stage-wireframe .plane--air,
.stage-wireframe .hero__scrim { visibility: hidden; }
.stage-wireframe [data-wire] { background: #d9d9d9; outline: 1px solid #bdbdbd; outline-offset: -1px; }
.stage-wireframe [data-wire]::after {
  content: attr(data-wire);
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 4px 8px;
  background: #d9d9d9;
  color: #6f6f6f;
  font: 500 13px/1.2 ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}
/* the hero's cards: the wall is the grey box, the floor and the bench are
   bands at their lines, and the piece's block carries the room card's label;
   every label sits clear of the headline */
.stage-wireframe .plane--far[data-wire]::after { left: 52%; top: 9%; }
.stage-wireframe .plane--room[data-wire],
.stage-wireframe .plane--mid[data-wire] { background: none; outline: 0; }
.stage-wireframe .plane--room::before { background: #d2d2d2; }
.stage-wireframe .plane--mid::before { background: #c6c6c6; }
.stage-wireframe .plane--room[data-wire]::after {
  left: calc(var(--fp) * 100%);
  right: calc((1 - var(--fr)) * 100%);
  top: calc(var(--pt) * 100%);
  bottom: calc((1 - var(--fl)) * 100%);
  translate: none;
  display: grid;
  place-items: center;
  padding: 0 6px;
  background: #bdbdbd;
  white-space: normal;
  text-align: center;
}
.stage-wireframe .plane--mid[data-wire]::after { left: 40%; top: calc((var(--be) + 0.09) * 100%); }
/* on a portrait screen the far card's picture reaches above its box, so the
   grey sits on the picture (the box's own top edge would cross the words),
   and the far card's label, which would land on the words, is left out; the
   room card's label still names its slot */
@media (orientation: portrait) {
  .stage-wireframe .plane--far[data-wire] { background: none; outline: 0; }
  .stage-wireframe .plane--far picture { background: #d9d9d9; }
  .stage-wireframe .plane--far[data-wire]::after { display: none; }
}
.stage-wireframe .wall__photo[data-wire] { aspect-ratio: 1.6; }
.stage-wireframe .room__img { aspect-ratio: var(--ar, 1.5); }
.stage-wireframe .room--b .room__img { --ar: 0.667; }
.stage-wireframe .room--d .room__img { --ar: 1; }
.stage-wireframe .board__wood { width: clamp(96px, 8.4vw, 146px); height: var(--wood-h); }
.stage-wireframe .dwg[data-wire] { background: none; outline: 1px dashed #bdbdbd; }
.stage-wireframe .dwg[data-wire]::after { top: auto; bottom: -34px; left: auto; right: 0; translate: 0 0; background: none; }
.stage-wireframe .joint__frame[data-wire]::after { top: 30%; }
.stage-wireframe .mark path { fill: #9a9a9a; }
.stage-wireframe .btn--hi, .stage-wireframe .btn--lo { background: #cfcfcf; color: #2b2b2b; }
.stage-wireframe .top__link { text-decoration-color: #9a9a9a; }
.stage-wireframe .dims path, .stage-wireframe .pencil path { stroke: #9a9a9a; }
.stage-wireframe .dimt { fill: #8a8a8a; }
.stage-wireframe .note::before, .stage-wireframe .leaders circle { background: #888888; fill: #888888; }
.stage-wireframe .leaders path { stroke: #888888; }
.stage-wireframe .tb { box-shadow: none; }
.stage-wireframe .tb__index a[aria-current="true"] .tb__cell { background: #9a9a9a; border-color: #9a9a9a; }

/* ======================================================= fix round 1 ====
   r22 fix round 1, the specimen's first screen (research/r22/loop/
   findings-G-r1.md).
   G1-01: on a portrait screen the air plane kept the landscape photograph's
   window position, which the portrait plate paints out, so the beam started
   mid wall with a hard top edge and the motes packed beside the piece. The
   portrait plate carried its own light, so the air plane was not drawn.
   (r23 fix round 1, W3-09: that painted light had no source; it is off the
   plate, and upright screens draw their own beam from above the top edge,
   placed with the light's box in the hero section.)
   G1-02: on common laptop windows (1366 by 657, 1280 by 610, 1536 by 730)
   and in the /websites dialog the title block sat over the larder's base.
   Under 761px of height the block drops its firm row (as it does under
   500), and the photograph never sets the larder's foot (0.74 of its
   height) lower than 12px above the block's top.
   G1-07: narrower than 3:2 the headline's clearance cut the open door at
   the right edge; the words column is narrower there, so the piece stands
   whole. */
@media (min-width: 701px) and (max-height: 760px) {
  .tb__firm { display: none; }
}
@media (min-width: 701px) and (orientation: landscape) {
  .scene {
    top: min(
      calc((100cqh - var(--sw) * 0.55814) * 0.3),
      calc(100cqh - var(--tb-h, 60px) - var(--tb-gap, 20px) - 12px - 0.74 * var(--sw) * 0.55814)
    );
  }
}
@media (min-width: 701px) and (max-aspect-ratio: 3/2) {
  .hero {
    --copy-w: min(58rem, 56vw);
    --h1-r: calc(var(--gut) + min(10.4 * var(--h1-fs), var(--copy-w)));
  }
  .hero__copy { width: var(--copy-w); }
}

/* ======================================================= fix round 2 ====
   r22 fix round 2 (research/r22/loop/findings-G-r2.md), the booking close
   below 1000 px wide.
   G2-02: the words column was min(40rem, 100vw less 620px), 87 to 271 px on
   phones held sideways and 114 to 177 px on tablets held upright, so the
   closing line ran six to ten lines and printed over the demonstration
   line and the address.
   G2-03: on short windows the approval box was taller than the window, so
   its heading, or its first field, sat above the screen at the page's end.
   A tall screen (a tablet upright) sets the words as a block across the
   top, above the box; a short one held sideways sets them as a column on
   the left beside a compact box whose fields sit two to a row. */
@media (min-width: 701px) and (max-width: 999px) and (min-height: 601px) {
  .close__say {
    top: clamp(84px, 11vh, 140px);
    width: min(40rem, calc(100vw - 2 * var(--gut)));
  }
  .close__big { font-size: clamp(2.1rem, 1rem + 3.4vw, 3rem); }
  /* the address is in the title block at the foot; here it ran into the
     box's top edge (50px at 768 by 1024) */
  .close__where { display: none; }
  .demo { display: none; }
  .approve__demo { display: block; }
  .embed .approve__demo { display: none; }
}
@media (orientation: landscape) and (max-width: 999px) and (max-height: 600px) {
  .close {
    --box-w: min(440px, 56vw);
    --say-w: calc(100vw - var(--gut) - var(--box-w) - var(--tb-gap) - 24px);
  }
  .close__say {
    position: absolute;
    left: var(--gut);
    top: clamp(36px, 11vh, 64px);
    width: var(--say-w);
  }
  .close__big { font-size: clamp(1.2rem, 5.4vh, 1.7rem); line-height: 1.08; }
  .close__small, .close__where, .approve__lede { display: none; }
  .demo {
    display: block;
    left: var(--gut);
    width: var(--say-w);
    bottom: 20px;
    font-size: 0.75rem;
  }
  .embed .demo { display: none; }
  .approve__demo { display: none; }
  .approve {
    left: auto;
    right: var(--tb-gap);
    bottom: var(--tb-gap);
    width: var(--box-w);
    padding: 12px 16px calc(var(--tb-h, 58px) + 10px);
  }
  .approve h2 { margin-top: 0.1rem; font-size: 1.35rem; }
  .approve__fields {
    margin-top: 0.5rem;
    gap: 6px 10px;
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .approve__out { grid-column: 1 / -1; }
  .approve__out:empty { min-height: 0; }
  .approve__act { margin-top: 0; }
  .fld { gap: 2px; }
  .fld__k { font-size: 0.75rem; }
  .fld input, .fld select { height: 42px; }
  .approve__act .btn { padding-inline: 12px; white-space: nowrap; }
}
/* G2-03 on wider short windows (a laptop, the /websites dialog): the box
   keeps its place beside the words but drops its lede and tightens, and
   under 600 px tall its fields sit two to a row, so its heading is on the
   screen at the page's end. */
@media (min-width: 1000px) and (max-height: 700px) {
  .close__small, .approve__lede { display: none; }
  .approve { padding-top: 18px; }
  .approve h2 { font-size: clamp(1.6rem, 1.1rem + 1vw, 2.1rem); }
  .approve__fields { margin-top: 0.8rem; gap: 6px; }
  .approve__out:empty { min-height: 0; }
  .fld { gap: 3px; }
  .fld input, .fld select { height: 42px; }
}
@media (min-width: 1000px) and (max-height: 600px) {
  .approve__fields { grid-template-columns: 1fr 1fr; gap: 6px 10px; align-items: end; }
  .approve__out { grid-column: 1 / -1; }
  .approve__act { margin-top: 0; }
}
/* on a phone held sideways the bar runs the full width at the foot, so the
   demonstration line stands above it */
@media (orientation: landscape) and (max-width: 700px) {
  .close { display: block; padding: 0; }
  .demo { bottom: calc(var(--tb-h, 58px) + 10px); }
  /* the still state (no script, reduced motion, ?capture=1) is ordinary
     flow, where the phone's stack reads best: the words, then the box */
  .close:not(.sc-stage) { display: flex; padding: 40px var(--gut) 24px; }
  .close:not(.sc-stage) .close__say { position: static; width: auto; }
  .close:not(.sc-stage) .demo { display: none; }
  .close:not(.sc-stage) .approve__demo { display: block; }
  .close:not(.sc-stage) .approve { width: auto; }
}

/* G2-04: on a tablet held upright the drawing, the page's peak, reserved
   the title block's column beside it and stood as a thumbnail (366 by 215
   at 768 by 1024) over 450 to 700 px of blank sheet. Upright from 701 px
   wide it takes the full content width, and the four notes are listed in
   two columns under its label (tembusu.js lists them, as on a phone). */
@media (min-width: 701px) and (orientation: portrait) {
  .dwg { width: calc(100vw - 2 * var(--gut)); }
  .notes {
    /* the drawing's own top, which the notes do not inherit here */
    --dwg-top: calc(clamp(38px, 6.5vh, 70px) + clamp(110px, 15vh, 140px));
    left: var(--gut);
    right: auto;
    width: calc(100vw - 2 * var(--gut));
    top: calc(var(--dwg-top) + (100vw - 2 * var(--gut)) * 0.5873 + 64px);
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
  }
  .js .notes.is-placed { display: grid; }
  .js .notes.is-placed .note { position: relative; top: auto; }
  .leaders { display: none; }
}

/* G1-02 (regressed after fix round 1): on short screens held sideways
   (740 by 360 to 932 by 430, and the /websites dialog, whose stage is
   1244 by 531 to 1330 by 578 on 1280 by 610 to 1366 by 657 laptops) the
   photograph sits high, so the top link "Book a
   measure" printed across the larder's open door or cornice, with glyphs
   down to 1.8:1. The hero's own button says the same thing and books the
   same way, so there the top link is not drawn. In the still state (no
   script, reduced motion, ?capture=1) the hero's 600px minimum height put
   the title block over the larder's lower half on a short landscape
   screen; there it takes the window's height. */
@media (orientation: landscape) and (max-height: 600px) {
  .top__link { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero:not(.sc-stage) { min-height: 0; }
}

/* G2-11: on a phone held sideways from 701 px wide the drawing's label
   takes two lines, and its second ("600 deep.") ran 9px across the sheet's
   bottom border; the drawing gives up that line's height. */
@media (min-width: 701px) and (max-height: 500px) {
  .dwg { width: min(calc(100vw - var(--gut) - var(--tb-w) - var(--tb-gap) - 36px), calc((100svh - var(--dwg-top) - 77px) * 1.4626)); }
}

/* G2-09: on a phone held upright the finished photograph ran past the
   sheet's left border to the screen's edge, showing a sliver of the tall
   cupboard and a cut "745". The drawing is clipped at its own left edge
   (the gutter, inside the border); above, right and below it keeps room
   for the pencil and the dimension rows that run past its box. */
@media (max-width: 700px) and (orientation: portrait) {
  .dwg { clip-path: inset(-60px -60px -160px 0); }
}

/* G2-05: on a short screen held sideways the lifted photograph put its lit
   patch behind the end of the sub line ("since" fell to 2.87:1 at 740 by
   360); the headline corner's shade reaches further right and lower. */
@media (min-width: 701px) and (max-height: 500px) {
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(11, 20, 16, 0.7) 0, rgba(11, 20, 16, 0) 140px),
      radial-gradient(34% 150px at 100% 0%, rgba(11, 20, 16, 0.5) 0%, rgba(11, 20, 16, 0.3) 55%, rgba(11, 20, 16, 0) 100%),
      radial-gradient(130% 105% at 0% 30%, rgba(11, 20, 16, 0.78) 0%, rgba(11, 20, 16, 0.58) 46%, rgba(11, 20, 16, 0) 80%);
  }
  /* the bench card stands over the shade, so where the sub line's start
     crosses it the line carries its own soft shade */
  .hero__sub { text-shadow: 0 0 10px rgba(11, 20, 16, 0.75), 0 0 2px rgba(11, 20, 16, 0.6); }
}


/* ================================================== r23 fix round 1 ====
   W3-09, the words' shade on upright screens, now that the beam enters from
   the top edge (the light's portrait box, in the hero section).
   On a phone the shade was dark enough to hold the words over the portrait
   plate's painted patch, which is gone; it now lets the beam show through
   (every glyph 7.2 to 1 or more at 360 by 640 to 414 by 896, 6.1 in the
   /websites phone frame; research/r23/d-websites/tools/contrast.mjs).
   On a tablet the beam passes the end of the sub line (4.8 to 1 at 820 by
   1180), so a soft oval of shade sits behind the words' right half and the
   beam dims a little as it passes them (7.4 to 1 or more, 6.6 at 744 by
   1133). */
@media (max-width: 700px) and (orientation: portrait) {
  .hero__scrim {
    background: linear-gradient(to bottom, rgba(11, 20, 16, 0.78) 0%, rgba(11, 20, 16, 0.66) 34%, rgba(11, 20, 16, 0.4) 52%, rgba(11, 20, 16, 0) 68%);
  }
}
@media (min-width: 701px) and (orientation: portrait) {
  .hero__scrim {
    background:
      radial-gradient(40% 17% at 45% 36%, rgba(11, 20, 16, 0.5) 0%, rgba(11, 20, 16, 0.36) 50%, rgba(11, 20, 16, 0) 100%),
      linear-gradient(to bottom, rgba(11, 20, 16, 0.7) 0, rgba(11, 20, 16, 0) 140px),
      radial-gradient(34% 150px at 100% 0%, rgba(11, 20, 16, 0.5) 0%, rgba(11, 20, 16, 0.3) 55%, rgba(11, 20, 16, 0) 100%),
      radial-gradient(95% 78% at 0% 26%, rgba(11, 20, 16, 0.66) 0%, rgba(11, 20, 16, 0.4) 46%, rgba(11, 20, 16, 0) 78%);
  }
}

/* ============================================== r23 phone programme ====
   research/r23/mobile/findings-M1-P2-r1.md, the specimen's six (M1-P2-06,
   07, 14, 21, 22 and 23). Every rule sits behind a phone width, a short
   screen held sideways or a coarse pointer, so the desktop is as it was.
   The first screen does not move: the top bar's 44 px targets take their
   extra height from negative margins, so the posters still match it. */

/* M1-P2-06. The dimension rows on a phone and on a short screen held
   sideways are the lower pair (index.html, hrow--m), redrawn below the
   photograph's foot with room for numerals up to 112 units; tembusu.js
   sizes them from the drawing's resting scale (--dim-fs) so they read at
   12.5 px (8.7 to 11.9 px upright before, 3.5 to 4.2 sideways). A halo in
   the paper's colour keeps each numeral clear of its own line, and the two
   upright numerals stand centred on theirs, as the rows' do. */
/* r23 fix round 3 (M3-P2-11): on every touch screen too. A tablet drew the
   desktop's figures at 7.5 to 11.5 px (4,250, 745, 2,315, 900); on the lower
   pair tembusu.js sizes them to read at 12.5 px there as well. */
@media (max-width: 700px), (orientation: landscape) and (max-height: 500px), (pointer: coarse) {
  .hrow--d { visibility: hidden; }
  .hrow--m { visibility: visible; }
  .dims { opacity: 0.8; }
  .dimt {
    font-size: var(--dim-fs, 62px);
    paint-order: stroke;
    stroke: var(--bone-200);
    stroke-width: 0.24em;
    stroke-linejoin: round;
  }
  .vlab--l { transform: translateX(calc(18px + var(--dim-fs, 62px) * 0.36)); }
  .vlab--r { transform: translateX(calc(var(--dim-fs, 62px) * 0.36 - 18px)); }
  .dwg__label { margin-top: calc(10px + 9.64%); }
}
/* A short screen held sideways from 701 px wide: the heading ends near
   106 px, so the drawing starts under it rather than at 148. */
@media (min-width: 701px) and (max-height: 500px) {
  .dwg { --dwg-top: 118px; }
}

/* M1-P2-23. The words on a phone: captions and the rack's lines at 16 px,
   the drawing's label and the demonstration lines at 15. */
@media (max-width: 700px) {
  .board figcaption { font-size: 1rem; line-height: 1.4; }
  .board figcaption b { font-size: 1.2rem; }
  .rack__lead p, .rack__note { font-size: 1rem; }
  .room figcaption { font-size: 1rem; }
  .dwg__label { font-size: 0.9375rem; line-height: 1.35; }
  .demo, .approve__demo, .approve__note { font-size: 0.9375rem; }
}
/* Held sideways the label runs one line under the drawing and the notes
   beside it, where two lines at this size ran under the sheet bar. */
@media (max-width: 700px) and (orientation: landscape) {
  .dwg__label { width: max-content; max-width: calc(100vw - 2 * var(--gut)); }
}
/* The rack held upright: "Which timber?" and its line run across the top
   (beside the first board they set 18 characters to the line and broke the
   heading), and each board is a row, the plank on the left with its label
   beside it on the shelf, so a caption sets 20 characters to the line at
   16 px. The still state stacks the six rows. */
@media (max-width: 700px) and (orientation: portrait) {
  .rack__rail { --wood-h: clamp(190px, calc(100svh - 320px), 380px); }
  .rack.sc-stage .rack__lead {
    position: absolute;
    left: var(--gut);
    top: clamp(64px, 11svh, 104px);
    width: calc(100vw - 2 * var(--gut));
    padding: 0;
  }
  .rack__lead h2 { font-size: 2rem; }
  .board {
    width: min(80vw, 300px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: end;
  }
  .board figcaption { height: auto; margin-top: 0; }
  .rack__note { width: min(72vw, 20rem); }
  .rack:not(.sc-stage) .rack__rail { --wood-h: 220px; }
  .rack:not(.sc-stage) .board { width: 100%; }
}

/* M1-P2-07. On a short phone held upright the finished approval sheet
   covered the closing line's second line: the name and the phone sit two
   to a row there, so the sheet ends clear of it. */
@media (max-width: 700px) and (max-height: 600px) and (orientation: portrait) {
  .approve__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
  .approve__fields > .fld:nth-of-type(3),
  .approve__act,
  .approve__out { grid-column: 1 / -1; }
}

/* M1-P2-14. A short screen held sideways from 701 px wide keeps the title
   block in its corner, compact: the sheet's name and a Sheets button (the
   phone's), the index opening above it in two columns of 44 px rows. The
   312 by 93 card covered captions and a form field on a 390 px tall screen;
   this one is about 52 px tall. */
@media (min-width: 701px) and (max-height: 500px) {
  .tb__sheet { align-items: center; padding: 4px 6px 4px 14px; }
  .tb__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
  }
  .tb__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: translateY(2px) rotate(45deg);
    transition: transform 160ms var(--ease);
  }
  .tb.is-open .tb__toggle::after { transform: translateY(-2px) rotate(225deg); }
  .tb__index {
    display: none;
    position: absolute;
    right: -1px;
    bottom: 100%;
    width: min(460px, calc(100vw - 40px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 8px;
    padding: 6px 8px;
    background: var(--bone-100);
    border: 1px solid var(--rule);
    box-shadow: 0 -16px 30px -18px rgba(2, 7, 4, 0.55);
  }
  .tb.is-open .tb__index { display: grid; }
  .tb__index a { display: flex; align-items: center; gap: 12px; width: auto; height: 44px; padding: 0 8px; }
  .tb__index .tb__cell { position: relative; flex: none; width: 28px; height: 21px; }
  .tb__name,
  .tb__index li:nth-last-child(-n+2) .tb__name,
  .tb__index li:nth-child(-n+2) .tb__name {
    position: static;
    translate: none;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--ink);
    font-size: 1rem;
    opacity: 1;
  }
}

/* M1-P2-22. Touch targets at 44 px: the top bar's brand and link (their
   margins give the height back, so the bar and the first screen are as
   they were) and the booking form's fields. */
@media (pointer: coarse) {
  .top__brand { min-height: 44px; margin-block: -7px; }
  .top__link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
  .fld input, .fld select { min-height: 44px; }
}
@media (pointer: coarse) and (max-width: 700px) {
  .top__brand { margin-block: -9px; }
}
/* the link stays off where G1-02 took it off (a short screen held sideways) */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .top__link { display: none; }
}

/* ================================================== r23 fix round 3 ====
   research/r23/mobile/findings-M3-P2-r1.md, the specimen on tablets.

   M3-P2-02. A tablet held upright gets sheets composed for a tall window;
   they were the landscape sheets, and 12 of 25 rests at 1024 by 1366 were 40
   to 82 percent flat ground. The same query as tembusu.js's L.upright.
   - The wall: the words, then the photograph at the full width under them,
     in the act's own height (it was a 100svh act with a band of 488 px of
     paper in it).
   - The drawing: sized from the window's height, up to the width at which
     the camera's last frame (the room from the shelves to the window) fills
     the screen at its own size, and the camera travels along it as it draws,
     as on a phone (tembusu.js decides, with the same numbers; at 768 by 1024
     that is barely wider than the screen and the full width drawing stays).
     Clipped at its left edge, the gutter, as on a phone.
   - The booking sheet: the words across the top, and the approval box from
     under them to the title block it grows out of, its fields two to a row
     (tembusu.js places the box's top where the words end). It was the words
     at the top and the box at the foot with the paper between them.
   - Fitted: the last row of rooms at the sheet's full width (below). */
@media (min-width: 701px) and (orientation: portrait) {
  .act--wall { min-height: 0; align-items: start; padding: clamp(4rem, 7vh, 6rem) var(--gut) clamp(4.5rem, 8vh, 6.5rem); }
  .wall { grid-template-columns: minmax(0, 1fr); row-gap: clamp(1.8rem, 3vh, 2.6rem); }
  .wall__copy { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .wall__copy h2 { max-width: 14em; }
  .wall__copy p { max-width: 40ch; }
  .wall__photo { grid-column: 1; grid-row: 2; }

  .motion .dwg.is-pan {
    width: min(calc((100vw - 2 * var(--gut)) * 1.273), calc((100svh - 560px) * 1.4983));
    clip-path: inset(-60px -60px -200px 0);
  }

  .close__say {
    top: clamp(84px, 11vh, 140px);
    width: min(44rem, calc(100vw - 2 * var(--gut)));
  }
  .close__big { font-size: clamp(2.1rem, 1rem + 3.4vw, 3.4rem); }
  .close__where, .demo { display: none; }
  .approve__demo { display: block; }
  .embed .approve__demo { display: none; }
  .approve {
    left: var(--tb-gap);
    right: var(--tb-gap);
    top: var(--box-top, auto);
    width: auto;
  }
  .approve__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: end; }
  .approve__fields > .fld:nth-of-type(3), .approve__act, .approve__out { grid-column: 1 / -1; }

  /* Fitted: the last row of rooms takes the sheet's width. Kept clear of
     the title block's footprint it was two small pictures in 448 px at 820
     wide, beside a tall band of paper; upright the block covers that corner
     only while the row passes it. */
  .fitted__row { padding-right: 0; }
  .room--c { grid-column: 1 / 7; }
  .room--d { grid-column: 7 / 13; }
}
/* The still state (no script, reduced motion, ?capture=1): the booking sheet
   is ordinary flow there, the words then the box, as on a phone. */
@media (min-width: 701px) and (orientation: portrait) {
  .close:not(.sc-stage) { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding: clamp(84px, 11vh, 140px) var(--gut) 0; }
  .close:not(.sc-stage) .close__say { position: static; width: auto; max-width: 44rem; }
  .close:not(.sc-stage) .approve { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 36px calc(-1 * var(--gut)) 0; }
}

/* M3-P2-10. The title block's seven sheet links are 34 by 26 px cells; on a
   touch screen each link is a 44 by 44 px target (9 px above and below the
   cell, 5 px either side, given back by negative margins), so the row and
   the drawn cell are as they were. Seven 44 px links are wider than the
   block's 284 px row, so neighbouring targets share 4 px over each 6 px gap
   (a press there goes to the later link). Where the index is a list of 44
   or 48 px rows (phones, short screens held sideways) nothing changes. */
@media (pointer: coarse) and (min-width: 701px) and (min-height: 501px) {
  .tb__index a { box-sizing: border-box; width: 44px; height: 44px; padding: 9px 5px; margin: -9px -5px; }
}

/* M3-P2-12. On a restored load (boot.js) the flow entrances show finished
   until tembusu.js has marked what is on screen, so the reader's own sheet
   never fades back in. */
html.sc-restored [data-sc-in],
html.sc-restored [data-sc-stagger] > * {
  opacity: 1;
  transform: none;
  transition: none;
}
/* M3-P2-12, upright. On a restored load each pinned act has its scripted
   height (its data-sc-span in window heights, which the engine then sets
   inline to the same value) from the first layout. Held upright the page
   is tall enough for the reader's place before the engine runs, so the
   browser restored the place then, against a hero one window tall rather
   than one and a half: the drawing sat 590 px low and the page slid back.
   Keyed on the spans this page uses. */
html.sc-restored [data-sc-act="pin"][data-sc-span="1.4"] { height: 140vh; }
html.sc-restored [data-sc-act="pin"][data-sc-span="1.5"] { height: 150vh; }
html.sc-restored [data-sc-act="pan"][data-sc-span="2"] { height: 200vh; }
html.sc-restored [data-sc-act="pin"][data-sc-span="3.5"] { height: 350vh; }

/* M3-P2-19. The page's pause control, in the foot line, as a text button
   in the line's own ink; 44 px tall on a touch screen. */
.pause {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.pause:focus-visible { outline: 2px solid var(--amber-lo); outline-offset: 3px; }
@media (pointer: coarse) {
  .pause { display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; }
}
/* r23 fix round 4 (M3-P2-R2-04): the control stood one space after the
   underlined "Back to the websites page", in the same ink and underline, so
   the two actions read as one link. A gap of 1em with a hairline in it makes
   two things of them; the control keeps to one line. */
.pause { position: relative; margin-left: 1em; white-space: nowrap; }
.pause::before {
  content: ""; position: absolute; left: -0.55em; top: 50%;
  width: 1px; height: 0.95em; margin-top: -0.475em;
  background: currentColor; opacity: 0.4;
}
