/* Limit Labs homepage: "Drawing set".
   Tokens are in tokens.css. Layout widths: stacked (phone and portrait tablet) up to 56.24em, phone up to 40em.
   The hero and the Rosedown story are a text column beside one frameless picture; see "Hero and the Rosedown story". */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1.25rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--ink); color: var(--paper-raised); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius); }
[hidden] { display: none !important; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 60; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--paper-raised); border-radius: var(--radius); }
.skip:focus { top: var(--s-3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 1rem; height: .625rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ico--down { width: .625rem; height: 1rem; }
.ico--dl { width: .875rem; height: .875rem; stroke-width: 1.25; }

.lede { font-size: var(--t-lede); line-height: 1.52; color: var(--ink-2); }

/* inline links in running text */
.example a, .school a, .kv a, .site-foot a, .form__done a, .form__status a, .prose a {
  text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color .16s var(--ease);
}
.example a:hover, .school a:hover, .kv a:hover, .site-foot a:hover, .form__done a:hover, .form__status a:hover, .prose a:hover { text-decoration-color: currentColor; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 3.25rem; padding: 0 var(--s-5);
  background: var(--ink); color: var(--paper-raised);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 1rem/1 var(--font-sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { background: #b08535; border-color: #b08535; }
.btn--sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--paper-raised); border-color: var(--paper-raised); }
.btn--gold:active { background: #e9e6dc; border-color: #e9e6dc; }
.btn[disabled] { opacity: .65; cursor: progress; }

.textlink {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 3.25rem; padding: 0 var(--s-1);
  font: 500 1rem/1 var(--font-sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--ink), var(--ink)) 0 calc(50% + .8em) / 100% 1px no-repeat;
  transition: background-size .2s var(--ease);
}
.textlink .ico { transition: transform .2s var(--ease); }
.textlink:hover { background-size: 100% 2px; }
.textlink:hover .ico--down { transform: translateY(3px); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--paper); transition: box-shadow .16s var(--ease); }
.site-head.is-past { box-shadow: 0 1px 0 var(--rule); }
.site-head__bar {
  display: flex; align-items: center; gap: var(--s-5);
  max-width: calc(var(--wrap) + 2 * var(--gutter)); height: var(--head-h);
  margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--ink); min-height: 2.75rem; }
/* the mark is gold at rest. The black one lies over it in exact register (the two files have the same outline) and
   fades in while the pointer is over the link or the link has keyboard focus, so only the colour changes; once it
   is in, the gold one is taken away, so no gold shows at the black one's edges. The box is sized here: no shift. */
.brand__mark { position: relative; flex: none; width: 1.625rem; aspect-ratio: 460 / 529; }
.brand__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand__ink { opacity: 0; transition: opacity .2s var(--ease); }
.brand:hover .brand__ink, .brand:focus-visible .brand__ink { opacity: 1; }
.brand:hover .brand__mark img:first-child, .brand:focus-visible .brand__mark img:first-child { opacity: 0; transition: opacity 0s linear .2s; }
.brand__name { font: 600 1.1875rem/1 var(--font-display); letter-spacing: -.015em; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-3);
  font: 500 .9375rem/1 var(--font-sans); color: var(--ink-2); text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 50% calc(50% + .85em) / 0 1px no-repeat;
  transition: color .16s var(--ease), background-size .2s var(--ease);
}
.nav a:hover { color: var(--ink); background-size: calc(100% - 1.5rem) 1px; }
.menu-btn {
  display: none; align-items: center; gap: .625rem; min-height: 2.75rem; padding: 0 var(--s-3);
  background: none; border: 1px solid var(--rule-2); border-radius: var(--radius);
  font: 500 .9375rem/1 var(--font-sans); cursor: pointer;
}
.menu-btn svg { width: 1.125rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.menu-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-raised); }

/* ---------- Hero and the Rosedown story ----------
   One grid: the hero's text, then one block of text per step, and one picture (.stage) for all of them.

   Live (html.story-live, set in <head> before first paint): the stage is a transparent canvas as wide as the page
   and as tall as the window under the header. It sticks there for the length of the section, behind the text, and
   lets go with the section's end. The text is ordinary flow in a column on the left. Nothing is drawn around the
   picture: the building sits on the page.

   With stills (no WebGL2, reduced motion, Save-Data, a failed scene, no JavaScript): the stage is the hero's picture
   only and every block shows its own still beside its text. */
.story {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto;
  container-type: inline-size; overflow-x: clip;   /* clip, not hidden: the stage must still stick to the window */
  /* lengths for the children; cqw is a hundredth of this section's width */
  --edge: max(var(--gutter), (100cqw - var(--wrap)) / 2);   /* the page's text edge */
  /* the story's text column: about 35 % of the width to its right edge; on a very wide window, where the page's
     margin pushes the text in, it gives up only half of that margin */
  --col: clamp(22rem, 35cqw - (var(--edge) + var(--gutter)) / 2, 34rem);
  --hero-col: min(37rem, 42cqw);                            /* the hero's wider measure */
  --view-h: calc(100svh - var(--head-h));
  --pic-inset: 1.75rem;                                     /* from the picture to the page's right edge: clear of the margin ruler */
  --views-h: 4.25rem;                                       /* the strip at the foot of the first screen that holds the view buttons */
}
/* Margin ruler (wide layout): fine ticks flush against the right edge of the page for the length of the hero and
   the story, as on the margin of a drawing sheet. Ordinary content: it scrolls with the page and never sticks, so
   the right side moves with the scroll as the text does on the left. Ticks every 8 px, every fifth one longer, all
   on whole pixels; it fades in under the header and out before the section ends. The quietest thing on the page. */
@media (min-width: 56.25em) {
  .story::after {
    content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 11px; pointer-events: none;
    background:
      repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 40px) right top / 11px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 8px) right top / 5px 100% no-repeat;
    opacity: .15;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7.5rem, #000 calc(100% - 26rem), transparent calc(100% - 3rem));
    mask-image: linear-gradient(to bottom, transparent, #000 7.5rem, #000 calc(100% - 26rem), transparent calc(100% - 3rem));
  }
}
@media print { .story::after { display: none; } }
/* a browser without overflow: clip must not get "hidden" while the stage sticks; with the stills it is safe */
@supports not (overflow: clip) { html:not(.story-live) .story { overflow-x: hidden; } }
.stage { grid-area: 1 / 1; position: relative; z-index: 0; min-width: 0; pointer-events: none; }
.story-live .stage { grid-row: 1 / 3; position: sticky; top: var(--head-h); align-self: start; height: var(--view-h); }
/* the scene's layer shows only while it is drawing: before its first frame, after a failure or a lost context the
   stills underneath are the picture, and a stale canvas or its annotations must not lie over them */
.stage__gl { position: absolute; inset: 0; z-index: 1; visibility: hidden; }
.stage.is-live .stage__gl { visibility: visible; }
/* The rectangle the hero's building is framed in; the scene is told the same one (story.js). On the first screen
   it stops short of the foot of the window, where the two view buttons are. */
.stage__poster {
  position: absolute; z-index: 0; display: block; container-type: size;
  --poster-top: 1.25rem;
  left: calc(var(--edge) + var(--hero-col) + 1.5rem); right: var(--pic-inset); top: var(--poster-top);
  height: calc(var(--view-h) - var(--poster-top) - var(--views-h));
}
.stage__poster > img {
  /* The stills are cut from the live scene with a margin of an eighth of the frame on every side for the contact
     shadow. The image box is larger than the poster's rectangle by the same amount, so the building lands exactly
     where the scene frames it and the swap does not move it. */
  position: absolute; inset: -12.5%; width: 125%; height: 125%; max-width: none; object-fit: contain; object-position: 50% 50%;
  transition: opacity .4s var(--ease);
}
.stage__poster .is-off { opacity: 0; }
/* the model still is one of the comparison pair, which keeps a smaller margin */
.stage__poster > img[data-still="model"] { inset: -5%; width: 110%; height: 110%; }

/* The landing picture: one figure per view. The figure is the still's own box (the poster's rectangle and an
   eighth more on every side, at the still's proportions), so the divider's line, its two labels and its handle can
   be set over the still exactly where the scene draws its own: --split is the divider and --roof and --foot are the
   top and the bottom of the building's outline where the divider crosses it, as fractions of the still (written by
   tools/work/hero/dims.cjs). */
.poster__fig {
  --fig-w: min(125cqw, 125cqh * var(--ar)); --fig-h: calc(var(--fig-w) / var(--ar));
  --fig-top: calc((100cqh - var(--fig-h)) / 2);          /* from the poster's rectangle to the figure's top edge */
  /* as the scene sets them: labels 50 px above the roof (no higher than 8 px into the stage), handle 36 px below
     the foot (no lower than 30 px above the rectangle's foot) */
  --label-y: max(var(--roof) * var(--fig-h) - 50px, 8px - var(--poster-top) - var(--fig-top));
  --handle-y: max(var(--label-y) + 70px, min(var(--foot) * var(--fig-h) + 36px, 100cqh - 30px - var(--fig-top)));
  position: absolute; left: 50%; top: 50%; width: 125%; width: var(--fig-w); aspect-ratio: var(--ar); translate: -50% -50%;
  transition: opacity .4s var(--ease);
}
.poster__fig--exterior { --ar: 1.3998; --split: 0.44002; --roof: 0.16001; --foot: 0.79644; }
.poster__fig--interior { --ar: 1.4493; --split: 0.44285; --roof: 0.17443; --foot: 0.77899; }
.poster__fig img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.poster__line {
  position: absolute; left: calc(var(--split) * 100%); width: 2px; margin-left: -1px;
  top: calc(var(--label-y) - 34px); height: calc(var(--handle-y) - var(--label-y) + 92px);
  background: linear-gradient(to bottom, transparent, var(--gold) 2.25rem, var(--gold) calc(100% - 2.25rem), transparent);
}
.poster__tag {
  position: absolute; left: calc(var(--split) * 100%); top: var(--label-y); padding: 2px 8px;
  font: 500 var(--t-data)/1.5 var(--font-mono); color: var(--ink); white-space: nowrap;
  background: var(--paper-raised); border: 1px solid var(--rule-2); border-radius: var(--radius);
}
.poster__tag--scan { translate: calc(-100% - 10px) 0; }
.poster__tag--model { translate: 10px 0; }
/* the still comes in whole, with its line, labels and handle, once it has loaded: on a slow connection it would
   otherwise paint from the top down, with the divider standing over an empty picture */
.js .poster__fig:not(.is-in) > * { opacity: 0; }
.poster__fig > * { transition: opacity .2s linear; }
/* the handle shows only where the scene is about to make it a real one */
.poster__handle {
  position: absolute; left: calc(var(--split) * 100%); top: var(--handle-y); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: none; place-items: center; border-radius: 50%; background: var(--paper-raised); color: var(--ink);
  border: 2px solid var(--gold); box-shadow: 0 1px 2px rgba(32, 35, 31, .18), 0 6px 14px -6px rgba(32, 35, 31, .35);
}
/* The still's own divider (story.js): once the same frame has come in as the scan alone and as the model alone
   (.is-pair), the two lie over the split still, each cut at the divider, and the handle drags the cut. Where the
   visitor leaves it is where the scene's divider starts. Until then there is no handle and the line stops where it
   would have been. */
.poster__fig:not(.is-pair) .poster__line { height: calc(var(--handle-y) - var(--label-y) + 56px); }
.poster__fig .poster__half { transition: none; }
.poster__half--scan { clip-path: inset(0 calc((1 - var(--split)) * 100%) 0 0); }
.poster__half--model { clip-path: inset(0 0 0 calc(var(--split) * 100%)); }
.poster__fig.is-pair > img:first-child { visibility: hidden; }
.poster__fig.is-pair .poster__handle { display: grid; cursor: ew-resize; touch-action: none; }
.poster__fig.is-pair .poster__line::after { content: ""; position: absolute; inset: 0 -8px; cursor: ew-resize; }
/* (the stage itself takes no pointer; only the figure that is showing can be dragged) */
.poster__fig.is-pair:not(.is-off) :is(.poster__handle, .poster__line) { pointer-events: auto; }
.poster__fig.is-near-left .poster__tag--scan, .poster__fig.is-near-right .poster__tag--model { display: none; }
.poster__fig.is-dragging .poster__handle { scale: 1.06; }

/* The two views of the landing picture: text buttons at the foot of the first screen, under the picture. In the
   hero's flow, so they scroll away with it. The chosen one is underlined in ink; while the views advance by
   themselves (.is-auto) the underline fills over the time the view is held. */
.views {
  grid-area: 1 / 1; position: relative; z-index: 2; align-self: start; justify-self: end; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: flex-end; gap: .5rem;
  width: calc(100cqw - var(--edge) - var(--hero-col) - 1.5rem); height: var(--view-h);
  /* the last word ends on the page's text edge, under the header's button */
  padding: 0 calc(var(--edge) - .75rem) calc(var(--views-h) - 2.75rem - .625rem) 0;
  --dwell: 8s;
}
html:not(.js) .views { display: none; }
/* The cue under the landing picture: what comes next, for a reader who has stopped on the first screen. It sits in
   the hero's flow like the view buttons, so it scrolls away with it. */
.next-cue {
  grid-area: 1 / 1; position: relative; z-index: 2; align-self: start; justify-self: end;
  display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
  width: calc(100cqw - var(--edge) - var(--hero-col) - 1.5rem); height: var(--view-h);
  padding: 0 clamp(8rem, 11cqw, 14rem) calc(var(--views-h) - 2.75rem) 0;
  font: 500 .9375rem/1 var(--font-sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .5s linear, visibility 0s .5s, color .16s var(--ease);
}
.next-cue.is-on { opacity: 1; visibility: visible; transition: opacity .7s linear, color .16s var(--ease); }
.next-cue > span { pointer-events: auto; display: inline-flex; align-items: center; gap: .625rem; padding: .5rem .75rem; }
.next-cue:hover span { text-decoration: underline; text-underline-offset: .25em; }
.next-cue.is-on .ico { animation: cue-nudge 1.1s var(--ease) .7s 2 both; }
@keyframes cue-nudge { 0%, 100% { transform: none; } 45% { transform: translateY(5px); } }
.views__btn {
  position: relative; pointer-events: auto; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .75rem;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
  font: 500 .9375rem/1 var(--font-sans); color: var(--ink-2); transition: color .16s var(--ease);
}
.views__btn span { position: relative; display: inline-block; padding: .5rem 0; }
.views__btn span::before, .views__btn span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-2);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .24s var(--ease);
}
.views__btn span::after { background: var(--ink); height: 2px; bottom: -1px; }
.views__btn:hover, .views__btn[aria-pressed="true"] { color: var(--ink); }
.views__btn:hover span::before { transform: none; }
.views__btn[aria-pressed="true"] span::after { transform: none; }
.views__btn:focus-visible { outline-offset: -4px; }
.views.is-auto .views__btn[aria-pressed="true"] span::before { transform: none; transition: none; }
.views.is-auto .views__btn[aria-pressed="true"] span::after { transition: none; animation: views-fill var(--dwell) linear both; }
.views.is-paused .views__btn[aria-pressed="true"] span::after { animation-play-state: paused; }
@keyframes views-fill { from { transform: scaleX(0); } to { transform: none; } }
/* the live canvas appears over the still at once, in the same place; the still then fades out underneath it, at
   the rate the canvas brings its own shadow in (INTRO_MS in js/scene/index.js), so the shadow never doubles */
/* the hint for a reader who touches the picture instead of scrolling: over the band's lower edge, above its fade */
.stage__hint {
  position: absolute; left: 50%; bottom: .875rem; z-index: 4; translate: -50% .375rem; margin: 0;
  max-width: calc(100% - 1.5rem); padding: .5rem .75rem; background: var(--ink); color: var(--paper);
  font: 500 .875rem/1.3 var(--font-sans); letter-spacing: -.005em; width: max-content; text-align: center; text-wrap: balance; box-shadow: 0 6px 16px -8px rgba(32, 35, 31, .55);
  opacity: 0; transition: opacity .25s linear, translate .25s var(--ease);
}
.stage__hint.is-on { opacity: 1; translate: -50% 0; }
.stage__hint[hidden], html:not(.story-live) .stage__hint { display: none; }
.stage.is-live .stage__poster { opacity: 0; transition: opacity .4s linear; }
/* the still's line, labels and handle go at once: the scene's own are in their place */
.stage.is-live .poster__line, .stage.is-live .poster__tag, .stage.is-live .poster__handle { visibility: hidden; }
/* the scene's own scale stays off the picture: the page sets it in the text */
.stage .lls-legend { display: none; }

/* hero: the first block of the column, on a wider measure */
.hero {
  grid-area: 1 / 1; position: relative; z-index: 1; justify-self: start;
  width: calc(var(--edge) + var(--hero-col)); min-height: var(--view-h);
  padding: clamp(1.25rem, 15svh - 2.5rem, 8rem) 0 var(--s-7) var(--edge);
}
/* The heading is a title and a subtitle: "AI Scan to BIM: A Revit model made to your standards, fast." (the colon is
   for a screen reader only). The title is one line, sized from the column so it fills most of the measure at every
   desktop size and never reaches the picture; the subtitle is the second headline, in two lines broken by sense so
   "fast." never stands alone. "fast" is the one italic on the site (a real one: see tokens.css). */
.hero h1 { font-size: min(var(--hero-col) * .155, 13.5svh); line-height: 1; letter-spacing: -.032em; }
.hero h1 .h1-title { display: block; white-space: nowrap; margin-left: -.012em; }   /* the A's side bearing, so its foot stands on the text edge */
.hero h1 .h1-sub { display: block; margin-top: .36em; font-size: .42em; line-height: 1.1; letter-spacing: -.026em; }
.hero h1 .h1-line { display: block; white-space: nowrap; }
.hero h1 em { font-style: italic; font-synthesis: none; }
.hero .lede { margin-top: var(--s-3); max-width: 34rem; }
.hero h1 + .lede { margin-top: clamp(1rem, 2.6svh, 1.5rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5); margin-top: clamp(1.25rem, 3.2svh, 2rem); }
/* the proof line stands on the column's edge under the button: ink and a step heavier than the lede, so it reads as a
   statement and not as a third paragraph */
.proof { margin-top: clamp(1rem, 2.6svh, 1.625rem); font-size: var(--t-small); font-weight: 500; line-height: 1.45; color: var(--ink); max-width: 31rem; }

/* story blocks */
.story__blocks { grid-area: 2 / 1; position: relative; z-index: 1; min-width: 0; }
.block {
  display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: clamp(1.5rem, 3cqw, 3.5rem); align-items: start;
  padding: clamp(2.5rem, 5cqw, 4.5rem) 1.5rem clamp(2.5rem, 5cqw, 4.5rem) var(--edge);
}
.block[hidden] { display: none; }
.block__text { min-width: 0; }
.block__media { min-width: 0; position: relative; }
.block__media img { width: 100%; }
/* a still carries a wide margin for the stage; beside its text most of it is trimmed */
.block__media--still img { width: 120%; max-width: none; margin: -5% -10%; }
.block__media--sheet { margin-top: .5rem; box-shadow: 0 0 0 1px var(--rule-2), var(--shadow-sheet); background: var(--sheet-white); }

/* live: the blocks are the text column alone, each with about a screen of scroll for its part of the animation */
.story-live .story__blocks { justify-self: start; width: calc(var(--edge) + var(--col)); }
.story-live .block {
  display: block; min-height: 100svh; padding: 0 0 clamp(5rem, 20svh, 12rem) var(--edge);
  /* a link to a block lands with its heading in the upper part of the window, the picture already composed
     (this is added to the page's scroll-padding-top, which clears the header) */
  scroll-margin-top: 10svh;
}
/* the last block's tail is the sheet beat's run-out: long enough for the pull-back to the whole sheet, short enough
   that the column is never empty for more than about a fifth of a window before the details strip comes up */
.story-live .block h3 { scroll-margin-top: 10svh; }   /* #rosedown, the old name of #process, is the first heading */
.story-live .block:last-child { min-height: 0; padding-bottom: 12svh; }
.story-live .block__media { display: none; }

/* the text of a block: heading, ruled figure row, body, then the lists */
.block h3 { font-size: clamp(1.75rem, 1.15rem + 1.25cqw, 2.375rem); line-height: 1.07; letter-spacing: -.024em; }
.block h3[tabindex="-1"]:focus { outline: none; }   /* "Explore the process" moves focus here; a heading shows no ring */
.figs {
  display: flex; flex-wrap: wrap; gap: .625rem clamp(1.125rem, 1.9cqw, 1.875rem);
  margin-top: 1.25rem; padding: .8125rem 0 .875rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.figs li { display: grid; gap: .1875rem; align-content: start; }
.figs b { font: 600 1.625rem/1.08 var(--font-display); letter-spacing: -.022em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.figs span { font: 400 var(--t-data)/1.3 var(--font-mono); color: var(--ink-2); letter-spacing: .005em; }
.block__body { margin-top: 1.125rem; font-size: 1.0625rem; line-height: 1.56; color: var(--ink-2); }
h3 + .block__body { margin-top: 1.25rem; }
/* the example line: what the picture beside the text is. Under a hairline, so every block has one ruled device
   (the formats row, the distance scale, or this) */
.example { margin-top: 1.125rem; padding-top: .75rem; border-top: 1px solid var(--rule); font: 400 var(--t-data)/1.5 var(--font-mono); color: var(--ink-2); }
.dl .example { margin: 0 0 .75rem; }
/* a second ruled row, one step quieter than the formats row: a mono label and a list of kinds, between hairlines
   (the example line's rule closes it) */
.kinds { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--rule); }
.kinds__label { font: 400 var(--t-data)/1.5 var(--font-mono); color: var(--ink-3); }
.kinds ul { margin-top: .25rem; font: 500 1.0625rem/1.5 var(--font-display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.kinds li { display: inline; white-space: nowrap; margin-right: .75rem; }
.kinds li:last-child { margin-right: 0; }
.kinds + .example { margin-top: .875rem; }

/* what comes with a model: one hairline row per item */
.gets { margin-top: 1.5rem; }
.gets li { padding: .875rem 0 .9375rem; border-top: 1px solid var(--rule); line-height: 1.55; color: var(--ink-2); }
.gets li:last-child { padding-bottom: 0; }

/* downloads: one bordered list */
.dl { margin-top: 1.375rem; }
.story-live .dl { scroll-margin-top: 22svh; }
.dl-list { border: 1px solid var(--ink); background: var(--paper-raised); }
.dl-list li + li { border-top: 1px solid var(--rule); }
.dl-list a {
  display: flex; align-items: center; gap: var(--s-3); min-height: 3.25rem; padding: .5rem .875rem;
  font-weight: 500; text-decoration: none; transition: background-color .16s var(--ease);
}
.dl__meta { margin-left: auto; text-align: right; white-space: nowrap; font: 400 var(--t-data)/1.2 var(--font-mono); color: var(--ink-2); }
.dl-list a:hover { background: #fff; }
.dl-list a:hover .dl__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dl-list a:focus-visible { outline-offset: -3px; }
.dl-list .ico { transition: transform .2s var(--ease); }
.dl-list a:hover .ico { transform: translateY(2px); }
.dl__open { margin-top: 1.125rem; font-size: 1.125rem; line-height: 1.25; letter-spacing: -.012em; }
.dl__open + p { margin-top: .375rem; line-height: 1.55; color: var(--ink-2); }
.dl__note { margin-top: .5rem; font: 400 var(--t-data)/1.45 var(--font-mono); color: var(--ink-2); }

/* the heatmap's distance scale, ruled like a figure row */
.heat-legend {
  margin-top: 1.25rem; padding: .75rem 0 .8125rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  font: 400 var(--t-data)/1.3 var(--font-mono); color: var(--ink-2);
}
.heat-legend__title { font-weight: 500; color: var(--ink); }
.heat-legend__bar {
  display: block; height: .625rem; margin-top: .5rem; border: 1px solid var(--rule-2);
  background: linear-gradient(90deg, #1a9850 0%, #91cf60 25%, #fee08b 50%, #fc8d59 75%, #d73027 100%);
}
.heat-legend__ticks { display: flex; justify-content: space-between; margin-top: .25rem; white-space: nowrap; }
.heat-legend__ticks li { flex: 0 0 0; display: flex; justify-content: center; }
.heat-legend__ticks li:first-child { justify-content: flex-start; }
.heat-legend__ticks li:last-child { justify-content: flex-end; }
.heat-legend__gray { display: flex; align-items: center; gap: .5rem; margin-top: .4375rem; }
.heat-legend__gray i { flex: none; width: .875rem; height: .625rem; background: #8f8b84; }
.heat-legend + .gets, .review-note + .gets { margin-top: 0; }
.heat-legend + .gets li:first-child, .review-note + .gets li:first-child { border-top: 0; }

/* The "area to review" note. Live on a wide layout the scene draws it on the roof (js/scene/scene.css) and this
   line is for a screen reader only; on a stacked layout the picture keeps the ring and the note is set here, as
   one more ruled row under the scale. Over a still (.review) it is a ring, a leader and the same card, placed by
   percentage of the image. */
.review-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.review-note b, .review__card b { position: relative; display: block; padding-left: 1.125rem; font: 500 var(--t-data)/1.4 var(--font-mono); letter-spacing: .01em; color: var(--ink); }
/* the sparkle before the label: 12 px on whole pixels, its large star centred on the capitals */
.spark { position: absolute; left: 0; top: calc(.7em - .4375rem); width: .75rem; height: .75rem; fill: var(--gold); }
.review-note span, .review__card span { display: block; font-size: .875rem; line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.review { position: absolute; left: 0; top: 0; width: 120%; aspect-ratio: 1600 / 899; margin: -5% -10%; pointer-events: none; }
.review__mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.review__ring, .review__leader { stroke: var(--ink); stroke-width: 1.5; }
.review__leader { stroke-width: 1; }
.review__halo { stroke: var(--paper-raised); stroke-width: 4.5; stroke-opacity: .85; }
line.review__halo { stroke-width: 3; stroke-opacity: .7; }
.review__card { position: absolute; left: 19.6%; top: 7.6%; transform: translate(-22px, -100%); display: grid; gap: .1875rem; width: 19rem; padding: .5rem .75rem .5625rem; background: var(--paper-raised); border: 1px solid var(--ink); border-radius: var(--radius); }

/* scope: two tables of hairlines */
.scope { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.scope h4 { padding-bottom: .5rem; border-bottom: 1px solid var(--ink); font-size: 1.125rem; line-height: 1.25; letter-spacing: -.012em; }
.scope ul { display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--col-gap); }
.scope li { display: flex; align-items: center; min-height: 2.5rem; padding: .4375rem 0; border-bottom: 1px solid var(--rule); font-weight: 500; line-height: 1.3; }
.scope__col--no ul { grid-template-rows: none; grid-auto-flow: row; }
.scope__col--no li { color: var(--ink-2); }
.scope__note { margin-top: .75rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }

/* the 16 sheets: each opens large in the viewer */
.sheet-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem .625rem; margin-top: 1.375rem; padding-top: 1.375rem; border-top: 1px solid var(--rule); }
.example + .sheet-index { margin-top: .75rem; padding-top: 1.25rem; }
.sheet-index button { display: grid; gap: .375rem; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.sheet-index img { width: 100%; background: var(--sheet-white); box-shadow: 0 0 0 1px var(--rule-2); transition: box-shadow .16s var(--ease), transform .2s var(--ease); }
.sheet-index span { font-size: 0; }                /* the sheet's name stays in the accessible name and the viewer */
.sheet-index b { display: block; font: 500 var(--t-data)/1.3 var(--font-mono); color: var(--ink); }
.sheet-index button:hover img { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-sheet); transform: translateY(-2px); }
.sheet-index button:focus-visible { outline-offset: 4px; }

.sheetbtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sheetbtn:focus-visible { outline-offset: 4px; }

/* scan / model comparison for the stills: two registered stills on the page's ground, and a clip */
.compare { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.compare img { display: block; width: 100%; pointer-events: none; }
.compare__model { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--x)); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--gold) 2rem, var(--gold) calc(100% - 2rem), transparent);
}
.compare__tag {
  position: absolute; top: .75rem; padding: .25rem .5rem; background: var(--paper-raised); box-shadow: 0 0 0 1px var(--rule-2);
  font: 500 var(--t-data)/1.2 var(--font-mono); color: var(--ink); pointer-events: none;
}
.compare__tag--a { left: .75rem; }
.compare__tag--b { right: .75rem; }
.compare__handle {
  position: absolute; top: 86%; left: clamp(1.625rem, var(--x), calc(100% - 1.625rem)); width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; padding: 0;
  display: grid; place-items: center; background: var(--paper-raised); border: 2px solid var(--gold); border-radius: 50%;
  cursor: ew-resize; touch-action: none; box-shadow: 0 1px 2px rgba(32, 35, 31, .18), 0 6px 14px -6px rgba(32, 35, 31, .35);
  transition: background-color .16s var(--ease);
}
.compare__handle:hover { background: #fff; }
.compare__handle svg { width: 1.25rem; height: .75rem; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.compare__handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 50%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2rem, 4vw, 3rem) clamp(3.5rem, 7.5vw, 6.5rem); }
.section > .wrap::before { content: ""; display: block; height: 1px; background: var(--ink); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); grid-column: 1 / -1; }
.section h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.024em; }
.section h3 { font-size: var(--t-h3); line-height: 1.14; letter-spacing: -.02em; }
figcaption { margin-top: var(--s-3); font: 400 var(--t-data)/1.45 var(--font-mono); color: var(--ink-2); }
figcaption b { font-weight: 500; color: var(--ink); margin-right: .375rem; }

/* ---------- Details from the drawing set ---------- */
/* three enlargements share a row at equal height: columns in proportion to their aspect ratios */
.details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.946fr) minmax(0, 1.605fr); gap: var(--col-gap); align-items: start; }
.detail .sheetbtn { background: var(--sheet-white); box-shadow: 0 0 0 1px var(--rule-2), var(--shadow-sheet); }
.detail img { width: 100%; }

/* ---------- Speed and cost ---------- */
.speed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--col-gap); align-items: start; }
.speed h2 { grid-column: 1 / span 5; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.026em; }
.speed__body { grid-column: 7 / span 6; }
.speed__body .lede { color: var(--ink-2); }

/* ---------- What firms said ---------- */
/* Two voices side by side as equals, one vertical hairline between them. Each is one quotation: its two sentences
   are two short paragraphs set close together, every line starting on the same edge (the opening mark stands on
   the heading's edge and the lines under it align with the first letter), and who said it sits directly under,
   after a short gold rule. */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(1.75rem, 3.4vw, 3rem); }
.quote { padding-right: clamp(1.5rem, 4vw, 4rem); }
.quote + .quote { padding-left: clamp(1.5rem, 4vw, 4rem); padding-right: 0; border-left: 1px solid var(--rule-2); }
.quote blockquote { font: 500 clamp(1.5rem, 1.02rem + 1.5vw, 2.25rem)/1.16 var(--font-display); letter-spacing: -.024em; }
.quote blockquote p { padding-left: .44em; text-indent: -.44em; text-wrap: balance; }
.quote blockquote p + p { margin-top: .34em; }
.quote figcaption { display: flex; align-items: baseline; gap: .75rem; margin-top: clamp(1.25rem, 2vw, 1.75rem); padding-left: calc(.44 * clamp(1.5rem, 1.02rem + 1.5vw, 2.25rem)); color: var(--ink); }
.quote figcaption::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: var(--gold); transform: translateY(-.28em); }

/* ---------- Pricing: the offer band ---------- */
/* One offer in two steps, each with the same anatomy (number, heading, one paragraph), and one action for the
   whole band. The heading and the action are the left column; the steps are two ruled rows on the right, in order. */
.offer { background: var(--ink); color: var(--paper); border-top: 4px solid var(--gold); padding-block: clamp(2.75rem, 5.6vw, 4.75rem) clamp(3rem, 6vw, 5rem); }
.offer :focus-visible { outline-color: var(--paper); }
.offer__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: var(--s-6) var(--col-gap); }
.offer h2 { grid-area: 1 / 1 / 2 / span 4; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.024em; }
.offer__steps { grid-area: 1 / 6 / 3 / -1; counter-reset: offer; border-top: 1px solid rgba(243, 241, 234, .62); }
.offer__steps li {
  counter-increment: offer; display: grid; grid-template-columns: clamp(2.5rem, 4.4vw, 4rem) minmax(0, 1fr); align-items: baseline;
  padding-block: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.5rem, 2.6vw, 2.125rem); border-bottom: 1px solid rgba(243, 241, 234, .24);
}
.offer__steps li::before { content: counter(offer); grid-row: 1 / span 2; font: 500 var(--t-h3)/1.14 var(--font-display); letter-spacing: -.02em; color: var(--gold); font-variant-numeric: lining-nums; }
.offer__steps h3 { font-size: var(--t-h3); line-height: 1.14; letter-spacing: -.02em; }
.offer__steps p { grid-column: 2; margin-top: var(--s-2); max-width: 36rem; font-size: 1.0625rem; line-height: 1.55; color: #d6d4cb; }
.offer__cta { grid-area: 2 / 1 / 3 / span 4; align-self: end; justify-self: start; min-height: 3.5rem; padding-inline: var(--s-6); font-size: 1.0625rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; border-block: 1px solid var(--ink); }
.steps li { counter-increment: step; padding: var(--s-5) var(--s-5) var(--s-6); color: var(--ink-2); line-height: 1.55; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; margin-bottom: var(--s-4); font: 500 1.75rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }


/* ---------- Two-part sections: text beside a picture, a film or the form ---------- */
.team, .school, .contact__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--col-gap); align-items: start; }
.section > .wrap.team::before, .section > .wrap.school::before, .section > .wrap.contact__in::before, .section > .wrap.speed::before { margin-bottom: 0; }

/* ---------- Team ---------- */
/* the story as editorial text beside the photograph, and a ruled row of four facts under both */
.team { row-gap: clamp(2rem, 3.6vw, 3rem); }
.team__text { grid-column: 1 / span 5; max-width: 30rem; }
.team__lede { margin-top: var(--s-5); font: 500 clamp(1.25rem, 1.05rem + .7vw, 1.625rem)/1.3 var(--font-display); letter-spacing: -.015em; }
.team__text p + p { margin-top: var(--s-4); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.team__text .team__lede + p { margin-top: var(--s-5); }
.team__photo { grid-column: 6 / -1; }
.team__photo img { width: 100%; border: 1px solid var(--ink); }
.team__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4) var(--col-gap); margin-top: 0; }

/* ---------- Renders and walkthrough films ---------- */
/* The film is the subject: eight of the twelve columns, with the heading and the paragraph in the four beside its
   top and the credit beside its foot. Under 72em the three stack and the film takes the full width. The box keeps
   16:9 before and after "Play", so nothing moves when the video replaces the poster. */
.school { grid-template-rows: auto auto 1fr; }
.school__text { grid-column: 1 / span 4; grid-row: 2; }
.school__text .lede { margin-top: var(--s-5); }
.school__credits { grid-column: 1 / span 4; grid-row: 3; align-self: end; color: var(--ink-2); }
.school__credit, .school__more { font-size: .875rem; line-height: 1.5; }
.school__credit { padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.school__credit a[rel~="license"] { white-space: nowrap; }   /* "CC BY-SA 4.0" stays in one piece */
.school__more { margin-top: var(--s-1); }
.school__more summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.school__more p { padding-bottom: var(--s-3); }
.film { grid-column: 5 / -1; grid-row: 2 / span 2; position: relative; background: #111; border: 1px solid var(--ink); aspect-ratio: 16 / 9; overflow: hidden; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film img { cursor: pointer; }
.film__play {
  position: absolute; left: var(--s-5); bottom: var(--s-5); display: inline-flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: 0 var(--s-5) 0 1.25rem;
  background: var(--paper-raised); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 1rem/1 var(--font-sans); cursor: pointer; transition: background-color .16s var(--ease);
}
.film__play svg { width: .75rem; height: .875rem; fill: currentColor; }
.film__play:hover, .film img:hover ~ .film__play { background: var(--gold); }
.film__noscript { position: absolute; left: var(--s-5); bottom: var(--s-5); margin: 0; padding: .5rem var(--s-4); background: var(--paper-raised); }
.js .film__noscript { display: none; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact__intro { grid-column: 1 / span 4; }
.contact__intro .lede { margin-top: var(--s-4); max-width: 25rem; }
.kv { margin-top: var(--s-6); border-top: 1px solid var(--ink); max-width: 27rem; }
.kv > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-4); padding: .8125rem 0; border-bottom: 1px solid var(--rule); }
.kv dt { font: 400 var(--t-data)/1.6 var(--font-mono); color: var(--ink-2); }
.kv dd { font-size: var(--t-small); line-height: 1.45; }
.contact__panel { grid-column: 6 / span 7; background: var(--paper-raised); border: 1px solid var(--ink); }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5) var(--s-5); padding: clamp(1.25rem, 2.6vw, 2rem); }
.field { min-width: 0; }
.field--wide, .form__summary { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; margin-bottom: .4375rem; font: 500 .9375rem/1.3 var(--font-sans); color: var(--ink); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: .625rem .8125rem;
  background: #fff; color: var(--ink); border: 1px solid #7c8078; border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2320231f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; background-size: .75rem .5rem; }
.field select:invalid, .field select.is-empty { color: var(--ink-3); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field ::placeholder { color: #6c7067; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:not([type="checkbox"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.field__help { margin-top: .375rem; font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.field__error { margin-top: .375rem; font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--error); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field--check { display: flex; align-items: center; gap: .75rem; min-height: 3rem; }
.field--check input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.field--check label { margin: 0; font-weight: 400; font-size: 1rem; cursor: pointer; padding-block: .5rem; }
.form__summary { padding: .75rem var(--s-4); border: 1px solid var(--error); border-left-width: 4px; color: var(--error); font-weight: 500; background: #fff; }
.form__foot { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--rule-2); }
.form__small { font-size: .875rem; line-height: 1.45; color: var(--ink-2); max-width: 34rem; }
.form__submit { justify-self: start; min-height: 3.5rem; padding-inline: var(--s-6); font-size: 1.0625rem; }
.form__status { color: var(--error); font-weight: 500; }
.form__done { padding: clamp(1.5rem, 3.4vw, 2.75rem); }
.form__done:focus { outline: none; }
.form__done p { font: 500 var(--t-h3)/1.24 var(--font-display); letter-spacing: -.018em; max-width: 30rem; }
.form__done p + p { margin-top: var(--s-4); font: 400 var(--t-lede)/1.5 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.form__done p:first-child::before { content: ""; display: block; width: .625rem; height: .625rem; margin-bottom: var(--s-5); background: var(--gold); transform: rotate(45deg); }

/* ---------- Footer ---------- */
/* two rows with something at either end: the brand and the address to write to, then, under a hairline, the legal
   line and the privacy link */
.site-foot { border-top: 1px solid var(--ink); background: var(--paper); }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: var(--s-4); padding-block: var(--s-6) var(--s-5); font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.site-foot .brand { justify-self: start; }
.site-foot .brand__mark { width: 1.375rem; }
.site-foot .brand__name { font-size: 1.0625rem; }
.site-foot__contact { text-align: right; }
.site-foot__contact a, .site-foot__legal a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--ink); }
.site-foot__legal { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-3); border-top: 1px solid var(--rule); font: 400 var(--t-data)/1.5 var(--font-mono); }
.site-foot__legal { gap: var(--s-5); }

/* ---------- Phone action bar ---------- */
.cta-bar { display: none; }

/* ---------- Sheet viewer ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper-sunk); color: var(--ink);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer::backdrop { background: rgba(32, 35, 31, .6); }
.viewer__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 3.5rem; padding: .375rem var(--s-3) .375rem var(--gutter); background: var(--paper-raised); border-bottom: 1px solid var(--ink); }
.viewer__title { font: 400 1rem/1.25 var(--font-sans); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__title b { font: 500 1rem/1.25 var(--font-mono); margin-right: .5rem; }
.viewer__count { font: 400 var(--t-data)/1.25 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.viewer__tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.viewer__tools button {
  display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .625rem;
  background: none; border: 1px solid transparent; border-radius: var(--radius); font: 500 .9375rem/1 var(--font-sans); cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.viewer__tools button:hover { background: #fff; border-color: var(--rule-2); }
.viewer__tools svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.viewer__tools .viewer__close { border-color: var(--ink); }
.viewer__sep { width: 1px; height: 1.5rem; margin: 0 .375rem; background: var(--rule-2); }
.viewer__canvas { position: relative; overflow: hidden; touch-action: none; cursor: grab; background: var(--paper-sunk); }
.viewer__canvas.is-dragging { cursor: grabbing; }
.viewer__canvas:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.viewer__canvas img {
  position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform;
  background: var(--sheet-white); box-shadow: 0 0 0 1px var(--rule-2), var(--shadow-sheet); user-select: none; -webkit-user-select: none;
}

/* =====================================================================
   Narrower desktops
   ===================================================================== */
@media (max-width: 72em) {
  /* the two hero actions stack so neither runs under the building */
  .actions { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school { grid-template-rows: none; }
  .school__text, .film, .school__credits { grid-column: 1 / -1; grid-row: auto; }
  .school__text .lede { max-width: 40rem; }
  .school__credits { max-width: 44rem; margin-top: calc(-1 * var(--s-3)); }
  .school__credit { padding-top: 0; border-top: 0; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
/* short landscape screens: a smaller headline keeps the hero inside the first screen */
@media (min-width: 56.25em) and (max-height: 51em) {
  :root { --t-display: clamp(2.25rem, min(4vw, 6.9svh), 4rem); }
  .hero .lede { font-size: 1rem; line-height: 1.5; max-width: 31rem; }
}
@media (min-width: 56.25em) and (max-height: 46em) {
  .hero h1 + .lede { margin-top: .875rem; }
  .actions { margin-top: 1.125rem; }
  .proof { margin-top: .75rem; }
}

/* =====================================================================
   Stacked: phones and portrait tablets. The hero's text, then the picture, then the blocks.
   Live, the picture is a band that sticks under the header and the blocks scroll in the space below it.
   ===================================================================== */
@media (max-width: 56.24em) {
  .nav { display: none; }
  .next-cue { display: none; }
  .site-head__cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  html:not(.js) .nav { display: flex; position: static; }
  html:not(.js) .menu-btn { display: none; }
  .nav.is-open {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; margin: 0; gap: 0;
    background: var(--paper-raised); border-block: 1px solid var(--ink); box-shadow: 0 18px 30px -18px rgba(32, 35, 31, .35);
  }
  .nav.is-open a { min-height: 3.25rem; padding: 0 var(--gutter); font-size: 1.0625rem; color: var(--ink); background: none; }
  .nav.is-open a + a { border-top: 1px solid var(--rule); }

  .story { grid-template-rows: auto auto auto auto; --band-h: clamp(15rem, 44svh, 32rem); }
  .hero { width: auto; max-width: 44rem; min-height: 0; justify-self: stretch; padding: clamp(1.5rem, 5vw, 2.5rem) var(--gutter) var(--s-4); }
  .hero h1 { font-size: clamp(2.75rem, 14.4vw, 6rem); }
  .hero .lede { max-width: 38rem; }
  .actions { flex-direction: row; align-items: center; }
  .stage { grid-area: 2 / 1; }
  /* with stills the picture's rectangle is as tall as the building: room above it for the divider's labels */
  .stage__poster { position: relative; left: auto; right: auto; top: auto; height: auto; aspect-ratio: 1600 / 1143; width: min(100% - 1rem, 46rem, 62svh); margin: 3.25rem auto 0; --poster-top: 3.25rem; }
  /* the view buttons: a row under the picture, clear of it */
  .views { grid-area: 3 / 1; justify-self: stretch; width: auto; height: auto; padding: .125rem var(--gutter) 0; }
  .story__blocks { grid-area: 4 / 1; }

  .block { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); padding: var(--s-6) var(--gutter); }
  html:not(.story-live) .block { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
  .block__media { grid-row: 1; }
  .block__text { grid-row: 2; max-width: 38rem; }
  /* the picture has no clear space for the review card: the ring stays on the roof and the note is set in the text */
  .review-note { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; padding: .75rem 0 .8125rem; border-bottom: 1px solid var(--rule); }
  .review-note span { margin-top: .1875rem; font-size: var(--t-small); line-height: 1.45; }
  .review__card, .review line { display: none; }
  /* live, the scene draws its own small card beside the ring, so the text does not repeat it */
  html.story-live .review-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }

  /* live: the band. Opaque, so the text is hidden as it slides under; its lower edge is a short fade, not a line */
  .story-live .story { grid-template-rows: auto var(--band-h) auto auto; }
  .story-live .stage { grid-row: 2 / 5; z-index: 3; height: var(--band-h); background: var(--paper); }
  .story-live .stage::before, .story-live .stage::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5rem; pointer-events: none; }
  .story-live .stage::before { bottom: 0; z-index: 2; background: linear-gradient(rgba(243, 241, 234, 0), var(--paper)); }
  .story-live .stage::after { top: 100%; background: linear-gradient(var(--paper), rgba(243, 241, 234, 0)); }
  .story-live .stage__poster { position: absolute; left: .5rem; right: .5rem; top: .5rem; bottom: 1rem; width: auto; height: auto; aspect-ratio: auto; margin: 0; --poster-top: .5rem; }
  .story-live .views { padding-top: .375rem; }
  .story-live .story__blocks { width: auto; justify-self: stretch; padding-top: var(--s-4); }
  .story-live .block { min-height: 66svh; padding: 0 var(--gutter) clamp(3.5rem, 9svh, 6rem); scroll-margin-top: calc(var(--band-h) + .75rem); }
  .story-live .block:last-child { padding-bottom: var(--s-7); }
  /* the downloads, and anything in a block that takes keyboard focus, come to rest below the band, not behind it */
  .story-live .block a, .story-live .block button, .story-live .block h3 { scroll-margin-top: calc(var(--band-h) + .75rem); }
  .story-live .dl { scroll-margin-top: calc(var(--band-h) + 14svh); }   /* low enough that the picture is still on the model */

  .details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .detail:last-child { grid-column: 1 / -1; }

  .speed h2, .speed__body { grid-column: 1 / -1; }
  .speed__body { max-width: 40rem; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote, .quote + .quote { padding-inline: 0; border-left: 0; max-width: 40rem; }
  .quote + .quote { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--rule-2); max-width: none; }

  .offer__in { grid-template-rows: none; row-gap: var(--s-5); }
  .offer h2, .offer__steps, .offer__cta { grid-area: auto / 1 / auto / -1; }
  .offer__cta { margin-top: var(--s-2); }

  .team__text, .team__photo { grid-column: 1 / -1; }
  .team__text { max-width: 38rem; }
  .team__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__intro, .contact__panel { grid-column: 1 / -1; }
  .kv { max-width: none; }

}

/* =====================================================================
   Phone
   ===================================================================== */
@media (max-width: 40em) {
  :root { --cta-h: 4rem; }
  .site-head__cta { display: none; }
  .menu-btn { margin-left: auto; }
  .brand__name { font-size: 1.125rem; }

  /* a shorter, wider band: more of the screen for the text, and more of the building's sides in the picture */
  .story { --band-h: clamp(13rem, 33svh, 20rem); }
  .hero { padding-top: 1.375rem; }
  .hero h1 .h1-sub { font-size: .5em; margin-top: .32em; line-height: 1.12; }
  .hero .lede { font-size: 1rem; line-height: 1.5; }
  .hero h1 + .lede { margin-top: .875rem; }
  .hero .lede + .lede { margin-top: .625rem; }
  .actions { margin-top: 1.125rem; gap: .25rem var(--s-5); }
  .actions .btn { width: 100%; }
  .actions .textlink { min-height: 2.75rem; }
  .proof { margin-top: .625rem; }

  .block h3 { font-size: clamp(1.625rem, 7.2vw, 2rem); }
  .block__body { font-size: 1rem; line-height: 1.55; }
  .block__media--still, .block__media .compare { margin-inline: calc(-1 * var(--gutter)); }
  .compare__handle { width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; }

  .section { padding-bottom: 3.5rem; }
  .details { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:first-child, .steps li:nth-child(3) { display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: var(--s-5) 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); border-left: 0; }
  /* nobody opens a Revit file on a phone: the example line and the note stay, the downloads go */
  .dl__desk { display: none; }
  .steps li::before { margin: 0; font-size: 1.5rem; line-height: 1.25; }

  .offer__cta { width: 100%; }
  .team__facts b { font-size: clamp(1.25rem, 5.6vw, 1.625rem); }   /* "Roblox, NVIDIA" stays inside its half at 360 wide */

  .film__play { left: var(--s-3); bottom: var(--s-3); min-height: 2.75rem; padding: 0 var(--s-4); gap: .625rem; font-size: .9375rem; }
  .film__play svg { width: .625rem; height: .75rem; }

  .contact__panel { margin-inline: calc(-1 * var(--gutter)); border-inline: 0; }
  .form { grid-template-columns: minmax(0, 1fr); padding: var(--s-5) var(--gutter) var(--s-6); gap: var(--s-4); }
  .field--wide, .form__summary { grid-column: 1; }
  .form__submit { width: 100%; }
  .form__done { padding: var(--s-6) var(--gutter); }
  .contact { padding-bottom: 0; }
  .contact__panel { border-bottom: 0; }

  .site-foot__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-1); padding-bottom: calc(var(--s-6) + var(--cta-h)); }
  .site-foot__contact { text-align: left; }
  .site-foot__legal { flex-wrap: wrap; justify-content: flex-start; margin-top: var(--s-3); }

  /* the action bar: only after the hero and the story have gone, and not at the form */
  .cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: .375rem var(--gutter) calc(.375rem + env(safe-area-inset-bottom, 0px));
    background: var(--paper-raised); border-top: 1px solid var(--ink);
    transform: translateY(101%); visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s;
  }
  .cta-bar.is-on { transform: none; visibility: visible; }
  .cta-bar .btn { min-height: 3.25rem; }

  .viewer__bar { flex-wrap: wrap; gap: 0 var(--s-3); padding: .375rem var(--s-2) .375rem var(--gutter); }
  .viewer__title { flex: 1 1 60%; padding-top: .375rem; }
  .viewer__count { padding-top: .375rem; padding-right: .5rem; }
  .viewer__tools { width: 100%; margin-left: -.625rem; }
  .viewer__tools .viewer__close { margin-left: auto; }
  .viewer__sep { display: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .next-cue.is-on .ico { animation: none; }
  .stage__hint { transition: opacity .25s linear; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print: the page as a plain document ---------- */
@media print {
  .site-head, .cta-bar, .menu-btn, .film__play, .stage__gl, .views { display: none !important; }
  .stage { position: relative !important; }
  .stage__poster { opacity: 1 !important; }
}

/* ---------- Plain pages: 404 and privacy ---------- */
.plain { min-height: 100svh; display: flex; flex-direction: column; }
.plain .site-head { box-shadow: 0 1px 0 var(--rule); }
.plain__cta { margin-left: auto; display: inline-flex !important; }
.plain__main { flex: 1; padding-block: 0 clamp(3rem, 7vw, 6rem); }
.site-foot__in--plain { padding-block: var(--s-5); }
.site-foot__in--plain .site-foot__legal { justify-content: flex-start; border-top: 0; padding-top: 0; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

.missing { padding-top: clamp(2.5rem, 8vw, 6rem); }
.missing h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -.028em; }
.missing .lede { margin-top: var(--s-5); max-width: 34rem; }

.prose { max-width: calc(44rem + 2 * var(--gutter)); padding-top: clamp(2rem, 5vw, 4rem); }
.prose h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -.028em; margin-top: var(--s-6); }
.prose h2 { font-size: var(--t-h3); line-height: 1.14; letter-spacing: -.02em; margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--rule-2); }
.prose p { margin-top: var(--s-4); color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.prose .lede { font-size: var(--t-lede); color: var(--ink); }
.prose__draft { margin: 0 !important; padding: var(--s-4) var(--s-5); background: var(--paper-raised); border: 1px solid var(--ink); border-left: 4px solid var(--gold); color: var(--ink) !important; }
.prose__back { margin-top: var(--s-7) !important; }
@media (max-width: 40em) {
  .missing .actions { flex-direction: column; align-items: stretch; }
}
