/* =========================================================================
   flow.css, the investor walkthrough at /flow (flow.html). Self-contained: it
   does not load styles.css (beta.html's) or teaser.css (the teaser's). The
   font faces and the type, motion and layout tokens below mirror styles.css;
   the PALETTE DOES NOT (founder, 2026-11-24): /flow is the first page in the
   light design language, and the other pages keep the dark one until their
   own pass. See Tokens.

   Guarantees:
   - A real screenshot's frame takes its size from its width alone. The img is
     width 100% with height auto from its width/height attrs, the screen is the
     img plus a percentage margin, the frame is the screen. No percentage height
     and no aspect-ratio on these frames: WebKit and Chromium resolve percentage
     heights against different boxes (CLAUDE.md, the WebKit note), and a frame
     built this way has nothing for them to disagree on.
   - ONE RULE for every phone (see Phones below): every screenshot in the same
     frame; within a step one size, tops aligned, side by side when each gets
     150px, otherwise stacked. No per-step frame sizes, no offsets, no insets.
   - THE HEIGHT CAP from 768px (see the 768px block): frames are sized from
     the viewport height as well as the width, so on a laptop each step fits
     in one viewport. Never size frames from width alone again.
   - The schematic frames (07 to 09) are sized in cqw, so each one scales as a
     single picture, and nothing inside them has a percentage height. 07 keeps
     a phone's shape through aspect-ratio (it has no image to take a height
     from; its hatched look fills the rest). 08 and 09 hug their content at
     every width: no empty band inside a frame may be taller than 48px
     (founder, 2026-11-22), and stretched to 07's height they would leave far
     more. Text inside stays >= 12px because it is >= 6cqw and the frame is
     never narrower than 13.25rem.
   - No horizontal overflow from 360px up. Borders 1px, no card shadows, no
     gradient blobs, the oxblood accent only for accents. Solid accent marks
     what is live, dashed outlines mark what is in design; keep that code if
     you add a step.
   Do not add a script or scroll reveals: the page is static on purpose, so it
   cannot go blank in an in-app browser or in a full-page capture.
   ========================================================================= */

/* ---- Fonts (self-hosted woff2, the same files as the other pages) ------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-500.woff2") format("woff2");
}

/* ---- Tokens ---------------------------------------------------------------
   THE LIGHT PALETTE (founder, 2026-11-24), /flow only: a gallery wall, white
   raised surfaces, ink text and phone frames, one quiet oxblood accent.
   Guarantees: every text colour here reaches 4.5:1 on both ground and paper
   (mute, the weakest, is 5.2:1 on ground), so any text may sit on either
   surface; check a new pair before adding it. Ink phone frames keep the light
   screenshots apart from the light page.
   DO NOT bring amber or a dark ground back, add a second accent, or mirror
   styles.css or teaser.css: they keep the old palette until their own pass,
   and syncing either way undoes one of the two. Names say what a colour is,
   never what it replaced. Serif, sans, motion and layout still mirror
   styles.css. */
:root {
  --ground: #F4F1EA;
  --paper: #FFFFFF;
  --ink: #2A2521;
  --mute: #6B635B;
  --line: rgba(42, 37, 33, 0.12);
  --accent: #7A1E22;
  --accent-hi: #942A2E;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 760ms;

  --gutter: clamp(1.25rem, 6vw, 5rem);
  --maxw: 72rem;

  /* The schematic register: a dashed ink edge and faint hatching, in ink over
     paper at the contrast the dark register had (dash 3.1:1, hatch 1.2:1). */
  --dash: rgba(42, 37, 33, 0.5);
  --hatch: repeating-linear-gradient(135deg, rgba(42, 37, 33, 0.1) 0 1px, transparent 1px 7px);
  --sk-fill: rgba(42, 37, 33, 0.18);

  /* The masthead's drawn wordmark: its height (see Masthead). */
  --mark-h: 2.125rem;
}

/* ---- Reset ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* No film grain on the light ground (2026-11-24): in ink it read as a grey
   mottle, dirt on the paper band rather than texture. Do not bring it back. */

a { color: inherit; }
/* Hyphenated words in the copy ("pre-seed", "full-body") must not break at the hyphen. */
.nowrap { white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* ---- Masthead: the drawn wordmark ----------------------------------------
   The mark is the inline SVG in flow.html, drawn and coloured in its own
   paths (ink, and the oxblood dot that sits off its letter on purpose). Do not
   redraw, recolour, animate or "fix" it, and never set it in a font.
   Size (founder, 2026-11-24: the first pass read too small): 2.125rem (34px)
   below 920px, 2.75rem (44px) from 920px, set by eye at 390, 768, 1440 and
   1920. --mark-h is that approved scale: the height of the first 178.5 units
   of the drawing, the box the mark first shipped in.
   The SVG's viewBox is 447.7 x 183 (the founder's correction: 178.5 clipped
   the round feet of the t and both s's). So the SVG is 183/178.5 of --mark-h
   tall and 447.7/178.5 of it wide: the letters keep the approved size, and
   the extra 4.5 units (0.9px, 1.1px from 920px) hang below the old box, where
   the feet end. The negative bottom margin takes those 4.5 units back out of
   the layout: the link centres the old 178.5-unit box exactly as before, so
   the letters do not move, the box grows downward only, and the masthead
   keeps its height (from 920px the feet sit 1.1px into its bottom padding).
   Without the margin the taller box would be centred and lift the letters.
   The link is never shorter than the old text wordmark's line (2.4rem: 1.5rem
   at line-height 1.6). Below 920px the mark fits inside that line, so the
   masthead keeps its height; from 920px the line grows to the mark.
   The masthead's padding (at least 1.4rem) keeps a clear margin round the
   mark several times the height of its dot; do not tighten it below that. */
.masthead { padding: clamp(1.4rem, 4vw, 2.4rem) var(--gutter); }
.wordmark {
  display: inline-flex;
  align-items: center;
  height: max(2.4rem, var(--mark-h));
  vertical-align: top;
  text-decoration: none;
}
.wordmark svg {
  display: block;
  height: calc(var(--mark-h) * 183 / 178.5);
  width: calc(var(--mark-h) * 447.7 / 178.5);
  margin-bottom: calc(var(--mark-h) * -4.5 / 178.5);
}

/* ---- Intro -------------------------------------------------------------- */
.intro { padding-block: clamp(2.5rem, 9vh, 6rem) clamp(3rem, 9vh, 5.5rem); }
.intro__title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 11vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.intro__sub {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 34ch;
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--mute);
}

/* ---- Section labels: a solid accent dot is live, a hollow one in design -- */
.part__label {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.part__label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.part--next .part__label::before {
  background: none;
  border: 1px solid var(--accent);
}

/* ---- Steps -------------------------------------------------------------- */
.step {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 8vw, 4.5rem) clamp(3.5rem, 12vw, 6.5rem);
}
.step__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6.4vw, 2.6rem);
  line-height: 1.08;
  text-wrap: balance;
}
/* The numeral is part of the heading, so a screen reader hears "01 Your taste";
   it is a block above the title for the eye. */
.step__num {
  display: block;
  margin-bottom: 0.55rem;
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.step__body {
  margin-top: 0.8rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mute);
  text-wrap: pretty;
}
.step__media { margin-top: clamp(2rem, 7vw, 3rem); }

/* The hero (04) is the largest block on the page: bigger type, more air. */
.step--hero { padding-bottom: clamp(4.5rem, 15vw, 8rem); }
.step--hero .step__title { font-size: clamp(2.3rem, 8.5vw, 3.8rem); }
.step--hero .step__num { font-size: clamp(3rem, 11vw, 4.6rem); }

/* ---- Phones: ONE RULE for every app screenshot on the page --------------
   Every screenshot on /flow sits in this one frame (.phone), the render in 04
   included: a whole app screen like every other. Within a step every phone is the same size and their tops align: side by
   side when each gets at least 150px, otherwise stacked in reading order at
   the single-phone size. Never mixed sizes, never a 2 + 1 grid.
   DO NOT give one phone its own width, give a step its own frame size, offset
   or stagger a phone (no margin-top, no align-items but start), overlap two
   phones, or put a screenshot on the page outside a .phone. tools/flow-qa.js
   fails each of these.
   Across steps, the hero (04): from 680px its two phones are the largest on
   the page (360 against 296 for a single and 262 for a pair, width-only
   sizes; the height cap from 768px can make any of them smaller, never
   larger, and keeps the hero ahead). On phone
   widths each hero phone is smaller than the singles in 03 and 05, and
   the hero is the largest block as a pair: it bleeds 0.6 of the gutter into
   the margins, so it is the widest composition (founder, 2026-11-22).

   Frame geometry, the /beta chassis derived for these 375:812 screens. For a
   frame of width W: the screen sits inside a 3.5% margin, so it is 0.93W wide
   and 0.93W * 812/375 = 2.01376W tall, and the frame is 2.08376W tall. Corners
   stay circular through the two-value radius: outer 0.12W (12% / 5.759%),
   screen 0.085W (9.14% of 0.93W / 4.221% of 2.01376W). Sketch 07 copies the
   outer shape (1 : 2.08376) and tools/flow-qa.js checks it: change the margin
   or the screenshot ratio and redo the three.

   The screen margin is a percentage of the frame's width only because the
   frame is a grid: a grid item's percentage margin resolves against its grid
   area, which here is the frame. Keep `display: grid` on .phone.

   The frame and the screen behind the img are ink: the app's screens are
   light, and on the light ground the ink bezel is what makes each one read as
   a phone. Do not make the frame paper or ground, or add a border or shadow to
   separate it instead (a 1px line on ink would not show anyway). */
.phone {
  position: relative;
  display: grid;
  border-radius: 12% / 5.759%;
  background: var(--ink);
}
/* The screen is the box that clips, with radius + overflow + isolation: iOS
   Safari does not reliably clip a composited img to its own radius
   (CLAUDE.md, App screenshots). Keep all three. */
.phone__screen {
  margin: 3.5%;
  overflow: hidden;
  border-radius: 9.14% / 4.221%;
  background: var(--ink);
  isolation: isolate;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9.14% / 4.221%;
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}
/* No cover crop any more (2026-12-01). From 2026-11-22 04's render was the
   app's photo alone, its viewer's black bars trimmed and shown cover in the
   screen (.phone--cover), because bars inside a phone read as empty space.
   The app's new look viewer has no bars and is the screen the founder wants
   shown: the look with its title, palette and actions. So 04's render is a
   whole 375:812 capture like every other phone, and the crop and its person
   check in tools/flow-qa.js are gone. Every phone img is a whole screen; do
   not bring back a cropped photo in a frame. */

/* ---- Compositions -------------------------------------------------------
   .step__media is the container the side-by-side rule measures; .shots is
   the grid inside it. Every phone sits in a grid cell of definite width: a
   frame sized by its content would make the percentage margin above
   circular. The threshold is 150px a phone plus the 12px gap (--pg below
   680px): 312px for two. From 680px every box is wider than that, so the
   larger gap there never pushes a phone under 150px. Only one-phone and
   two-phone steps exist; a three-phone step would need its own threshold
   (474px) in the same rule, never a different arrangement. */
.step__media { container: media / inline-size; }
.shots {
  --pg: 0.75rem;
  display: grid;
  /* A definite width, not fit-content: in the two-column step grid an auto
     margin would shrink this box to its content, and the percentage track
     below would resolve against that (03 and 05 came out 178px wide). */
  width: 100%;
  margin-inline: auto;
  gap: var(--pg);
  align-items: start;
  /* One column at the single-phone size: 03 and 05 always, and any
     pair whose phones would be under 150px side by side. */
  grid-template-columns: min(60%, 18.5rem);
  justify-content: center;
}
.shots--pair { max-width: 34rem; }
.shots--hero { max-width: calc(2 * 22.5rem + var(--pg)); }
@container media (min-width: 312px) {
  .shots--pair,
  .shots--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The hero's bleed, at every width: on phones it makes the pair the widest
   block; at 680 to 740px it keeps each hero phone above a single's 296px. */
.step--hero .step__media { margin-inline: calc(var(--gutter) * -0.6); }

/* ---- Schematic frames (07 to 09, not built yet) -------------------------
   .sketch is the size container; everything inside is sized in cqw of it.
   07 takes a real frame's shape (1 : 2.08376). .sketch--hug (08, 09) drops
   the ratio and is exactly as tall as its content, so no empty band can open
   up inside it.
   The dashed outline is drawn by .sk, not by .sketch, so its radius can be
   12cqw: a real frame's circular 0.12W corner at any height. A percentage
   radius takes its vertical figure from the height and would go elliptical on
   a hugging frame. */
.sketch {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: min(100%, max(64%, 13.25rem), 16rem);
  aspect-ratio: 1 / 2.08376;
  margin: 1.6rem auto 0;
}
.sketch--hug { aspect-ratio: auto; }
/* The tag sits on the frame's top edge; its fill masks the dashes behind it,
   so it must match the band's background (paper). */
.sketch__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3em 0.95em;
  border: 1px dashed rgba(122, 30, 34, 0.65);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font: 500 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sk {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  padding: 15cqw 8cqw 11cqw;
  border: 1px dashed var(--dash);
  border-radius: 12cqw;
  font-size: max(0.75rem, 6.25cqw);
  line-height: 1.3;
}
/* Grey bars stand for text that is not written yet. */
.sk__bar {
  display: block;
  height: 2.2cqw;
  width: var(--w, 40%);
  border-radius: 1cqw;
  background: var(--sk-fill);
}
.sk__bar--head {
  height: 4.2cqw;
  --w: 58%;
  margin-bottom: 1cqw;
}
.sk__look {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 4cqw;
  background-image: var(--hatch);
}
.sk__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4cqw;
}
.sk__item {
  display: flex;
  align-items: center;
  gap: 3.5cqw;
}
.sk__item--top {
  align-items: flex-start;
  flex-wrap: wrap;
}
.sk__swatch {
  flex: none;
  width: 12cqw;
  height: 14cqw;
  border: 1px solid var(--line);
  border-radius: 2cqw;
  background-image: var(--hatch);
}
.sk__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
}
.sk__btn {
  flex: none;
  padding: 1.8cqw 4.6cqw;
  border: 1px solid rgba(42, 37, 33, 0.6);
  border-radius: 999px;
  font-size: max(0.75rem, 6cqw);
}
.sk__seg {
  display: flex;
  gap: 2cqw;
  margin-top: 0.8cqw;
}
.sk__opt {
  flex: 1;
  padding: 1.8cqw 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: max(0.75rem, 6cqw);
  color: var(--mute);
}
.sk__opt.is-on {
  border-color: rgba(42, 37, 33, 0.7);
  background: rgba(42, 37, 33, 0.05);
  color: var(--ink);
}
/* The reasons take the item's full width (under the swatch too), so two chips
   fit on one line at the narrowest frame. */
.sk__why {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2cqw;
}
.sk__chip {
  padding: 1.5cqw 3.6cqw;
  white-space: nowrap;
  border: 1px dashed var(--dash);
  border-radius: 999px;
  font-size: max(0.75rem, 6cqw);
  color: var(--mute);
}
.sk__chip.is-on {
  border-style: solid;
  border-color: rgba(122, 30, 34, 0.7);
  color: var(--accent);
}
.sk__meta { color: var(--mute); }
/* A button whose label is not written yet, under the items. */
.sk__cta {
  display: flex;
  justify-content: center;
  padding: 4.4cqw 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  --w: 30%;
}
/* 09 shows the shift as two rows on one grid: the brand chart's size, muted
   and small, over the size real outcomes give, in the accent. The M must stay the
   dominant element on the screen, and the confidence bars belong to the
   outcome row only. The letters share a column, so they stack on one axis.
   The rows carry the labels: there is no separate legend. Width budget, in
   cqw of the 84cqw inside the padding: the label column takes what is left
   after the M (~25), the bars (~11) and two 2.5cqw gaps, and "Real outcomes"
   at 6cqw needs ~39, so it holds one line with room to spare. */
.sk__fits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  column-gap: 2.5cqw;
  row-gap: 1cqw;
  margin-top: 2cqw;
  font-size: max(0.75rem, 6cqw);
}
.sk__fit-label { white-space: nowrap; }
.sk__fit-size {
  justify-self: center;
  font-family: var(--serif);
  line-height: 0.9;
}
.sk__fits .is-chart { color: var(--mute); }
.sk__fit-size.is-chart { font-size: 11cqw; }
.sk__fits .is-real { color: var(--accent); }
.sk__fit-label.is-real { font-weight: 500; }
.sk__fit-size.is-real { font-size: 28cqw; }
/* Three ascending bars, the app's confidence mark (05's size card showed it until
   2026-12-01), all lit. An empty
   box's baseline is its bottom edge, so in the baseline row they stand on the
   M's baseline. */
.sk__conf {
  display: flex;
  align-items: flex-end;
  gap: 1.7cqw;
  height: 8.4cqw;
}
.sk__conf span {
  width: 3.1cqw;
  border-radius: 0.7cqw;
  background: var(--accent);
}
.sk__conf span:nth-child(1) { height: 4cqw; }
.sk__conf span:nth-child(2) { height: 6.2cqw; }
.sk__conf span:nth-child(3) { height: 8.4cqw; }

/* ---- What this round builds: the in-design band -------------------------
   Paper, raised off the ground, so the not-yet-built steps read as a separate
   sheet. The sketch tags' fill must match it. */
.part--next {
  border-block: 1px solid var(--line);
  padding-block: clamp(4rem, 12vw, 7.5rem) clamp(4.5rem, 13vw, 8rem);
  background: var(--paper);
}
.next {
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
}
.next .step { padding-bottom: clamp(2.5rem, 8vw, 4rem); }

/* ---- Closing ------------------------------------------------------------ */
.close { padding-block: clamp(5rem, 16vw, 9rem) clamp(3rem, 8vw, 4.5rem); }
.close__line {
  max-width: 20ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 7.4vw, 3.8rem);
  line-height: 1.08;
  text-wrap: balance;
}
.close__line--accent {
  margin-top: 0.35em;
  color: var(--accent);
}
/* The name and the email sit on separate lines at every width, with no
   separator between them (founder, 2026-11-22): the name is a block, the link
   starts the next line. */
.close__sign {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: 1rem;
  color: var(--mute);
}
.close__name { display: block; }
.close__sign a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.close__sign a:hover { color: var(--accent-hi); }

.footnote {
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--mute);
}

/* ---- Footer (the teaser's colophon) ------------------------------------- */
.colophon {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter) max(2.6rem, env(safe-area-inset-bottom));
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.colophon a {
  color: var(--mute);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.colophon a:hover { color: var(--ink); text-decoration: underline; }

/* ===== 680px: tablets and up ============================================ */
@media (min-width: 680px) {
  .shots { --pg: clamp(1rem, 2vw, 1.5rem); }
}

/* ===== 768px: THE HEIGHT CAP ============================================
   From 768px every frame is sized from the viewport's height as well as the
   page's width, so on a laptop a step (number, title, copy and frames) fits
   in one viewport. Sized from width alone, one frame nearly filled the
   viewport and a step could not be seen whole.
   Guarantees:
   - The hero's frames are never taller than 68% of the viewport height;
     every other frame, the In design sketches included, never taller than
     62%. Two caps, so the hero stays the largest on the page. Width follows
     from height through the frame ratio (2.08376), so the shape never
     changes.
   - No frame is ever larger than before the cap: each width below is the
     smaller of the width-only rule and the cap.
   - The floor: no frame narrower than 13.25rem (212px), the hero's
     14.5rem (232px), so the hero still leads at the floor. At 212px a
     screenshot shows the app at 0.53 of its size (its 17pt body text at
     8.9px), 1.4 times the smallest frame on a 360px phone (152px), and the
     sketches' text stays at 12.6px. On a window too short for the floor the
     step scrolls rather than shrink further.
   - svh, with vh first as the fallback: the small viewport height never
     moves with a browser's toolbars, so frames never resize mid-scroll.
   DO NOT size frames from width alone again, and do not raise a cap without
   rerunning tools/flow-qa.js at 1280x720, the shortest laptop it tests.
   Below 768px none of this applies: the page there is pixel-identical to the
   width-only layout, and the QA compares it with main. */
@media (min-width: 768px) {
  :root {
    --cap-hero: max(calc(68vh / 2.08376), 14.5rem);
    --cap: max(calc(62vh / 2.08376), 13.25rem);
  }
  @supports (height: 1svh) {
    :root {
      --cap-hero: max(calc(68svh / 2.08376), 14.5rem);
      --cap: max(calc(62svh / 2.08376), 13.25rem);
    }
  }
  .shots--single { grid-template-columns: min(60%, 18.5rem, var(--cap)); }
  .shots--pair { max-width: min(34rem, calc(2 * var(--cap) + var(--pg))); }
  .shots--hero { max-width: min(calc(2 * 22.5rem + var(--pg)), calc(2 * var(--cap-hero) + var(--pg))); }
  .sketch { width: min(100%, max(64%, 13.25rem), 16rem, var(--cap)); }
}

/* ===== 920px: text beside the screens =================================== */
@media (min-width: 920px) {
  :root { --mark-h: 2.75rem; }
  .part--live .step {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
  .part--live .step__media { margin-top: 0; }

  /* Wide steps (04, 06) keep their screens full width under the text; the
     text splits on the same columns, so the body sits over the screens. */
  .part--live .step--wide { display: block; }
  .step--wide .step__text {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: end;
  }
  .step--wide .step__body { margin-top: 0; }
  .part--live .step--wide .step__media { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
}

/* ===== 1024px: the three schematics in a row ============================
   Subgrid lines the frames' tops up whatever the text above them runs to.
   Where it is unsupported each column simply stacks; nothing overflows.
   The frames do not share a height: 07 keeps the phone shape and 08 and 09
   keep hugging, so align-self is start. Left at the default they would
   stretch to the row (07's height) and open the empty bands the hug exists
   to prevent. */
@media (min-width: 1024px) {
  .next {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 4vw, 4rem);
    row-gap: 0;
  }
  .next .step {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    padding-bottom: 0;
  }
  .next .sketch {
    align-self: start;
    /* The height cap (768px block) applies here too: keep var(--cap). */
    width: min(100%, 16.5rem, var(--cap));
    margin: 2.6rem 0 0;
  }
}

@media (min-width: 1280px) {
  .step__body { font-size: 1.12rem; }
}
