/*
  Page-level layout, v1. Load last, after components.css. Every value comes
  from tokens.css; nothing here adds a colour, a font, a size, a radius or a
  spacing step. One block per page, each opened by a comment naming it.
  Builders of other pages: add your block below the last one, and keep shared
  rules in the "Shared" block at the top.
*/

/* ---------- Shared: copy still waiting for RB ----------
   Every [NEEDS RB: ...] marker in docs/copy.md renders as
   <mark class="needs-rb">NEEDS RB: ...</mark>, so the gap shows on a preview.
   Remove the mark when RB supplies the words. */

.needs-rb {
  padding: 0 var(--space-1);
  background: var(--wash);
  color: var(--ink);
  outline: var(--border-hairline) solid var(--border-control);
  outline-offset: -1px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Shared: art beside a split section's words ----------
   A piece of art (the copier, the portrait, the name, the pen's line, the
   blot; HY-267) is a split section's third child. From 54rem it sits in the
   heading's column, under the heading; on a phone it follows the words, never
   between a heading and its text (RB on the portrait, HY-261). */

.l-split__inner > .split-art {
  align-self: start;
}

/* The first row is the heading's own height, so the art starts right under
   it however long the words beside it run. */
@container (min-width: 54rem) {
  .l-split__inner:has(> .split-art) {
    grid-template-rows: auto 1fr;
  }

  .l-split__inner > .split-art {
    grid-column: 1;
    grid-row: 2;
  }

  .l-split__inner:has(> .split-art) > :nth-child(2) {
    grid-row: 1 / span 2;
  }
}

/* ---------- Home: / ---------- */

/* The hero is the Hero component (components.css).

   On home it holds the whole first screen, so the folders wait below it: on a
   tall window the bench sat half in view on arrival and played while the
   reader was still on the hero (RB, HY-265). Only the folders' row of tabs
   shows at the screen's foot, as a sign the page goes on; the bench and its
   words start out of sight and play when scrolled to. The sum takes away the
   menu bar (64px on a phone, 96px from 60rem) and the tab row's height
   (folders.css). On a phone the hero is taller than the screen already.

   On a computer the hero also fits a laptop's window (Alma, HY-285). With a
   section's gap under it the tab row showed only on windows over 840px tall,
   and a browser on a laptop leaves 650 to 790: 7px of tabs at 1280 by 800,
   none at 1536 by 730, and at 1366 by 657 the picture ran past the screen.
   Now the gap before the folders is the gutter's, and the picture is as tall
   as the window leaves it, never wider than 26rem or narrower than 18rem, so
   the tabs stand at the screen's foot from about 700px tall up and the paper
   still starts below it. */
.hero:has(+ .heard) {
  min-height: calc(100svh - var(--space-16) - 3.25rem);
}

@media (min-width: 60rem) {
  .hero:has(+ .heard) {
    min-height: calc(100svh - var(--space-24) - 2.75rem);
    padding-bottom: var(--space-12);
  }
}

/* The heading's letters stand inside their box by the face's side bearing,
   0.06em for its B and E, so at 64px their stems sat 4px right of the blue
   button's edge. Pulled back by 0.04em, the first letter of every line lands
   within a pixel and a half of that edge, the round c of "can't" a hair
   outside it, as a round letter should (RB on HY-265: the heading, the line
   and the button on one left edge). */
.hero:has(+ .heard) h1 {
  margin-inline-start: -0.04em;
}

/* The letterhead (HY-435, Alma's pick A of four). The studio line says what
   Tinta is before the headline makes its promise, so it is set the way a
   studio prints its name across the top of its own paper: in ink, at the
   lede's size, the studio's name in the heavier weight. From a tablet's
   width it runs across both columns, over the headline and the film alike,
   because it belongs to the whole page and not to the words beside the
   film. No rule under it since the film came (RB, HY-435, 2026-11-13: "it
   breaks the flow and is not needed now with the video"). */
.hero__who {
  max-width: 52rem;
  font-size: var(--size-body);
  line-height: var(--leading-lede);
  text-wrap: balance;
}

.hero__who-name {
  font-weight: var(--weight-medium);
}

/* On a phone the letter starts a step closer under its rule. */
.hero:has(+ .heard) .hero__inner {
  row-gap: var(--space-8);
}

@container hero (min-width: 40rem) {
  .hero__who {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (min-width: 60rem) {
  .hero__who {
    font-size: var(--size-lede);
  }
}

/* The film (HY-446, layout A as RB picked it on HY-435). It is home's first
   thing to press, so it stands beside the headline from a tablet's width
   (the larger column, then half the row from a 54rem hero, below), its top
   level with the headline's first line. On a phone it
   sits between the letterhead and the headline, so it is on the first screen
   there too (RB, 2026-11-13 05:15: "the video button should go above the
   headline"); that order is the markup's, so a keyboard and a screen reader
   meet the film where the eye does. */
@container hero (min-width: 40rem) {
  .hero:has(+ .heard) .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-12);
  }

  .hero:has(+ .heard) .hero__film {
    grid-column: 2;
    grid-row: 2;
  }

  .hero:has(+ .heard) .hero__text {
    grid-column: 1;
    grid-row: 2;
  }
}

/* On a computer the headline and the film share the row half and half, and
   the headline's column grows with the page instead of stopping at 44rem
   (HY-453). At five twelfths the headline had 476px at 64px type at every
   screen from 1366 up: the English set in four lines and the Spanish in six,
   one or two words a line, which pushed the button under a 1080 screen.
   Half the row sets both languages in four lines from 1280 to 1500 and in
   three from about 1700 (at 1920 the English breaks between its two
   sentences), and the paragraphs under it keep their own measures. The
   film's picture loses about 90px of width at 1280 and 1440 and gains 70 at
   1920 and 260 at 2560. */
@container hero (min-width: 54rem) {
  .hero:has(+ .heard) .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-16);
  }

  .hero:has(+ .heard) .hero__text {
    max-width: none;
    padding-top: 0;
  }

  /* Across both columns the letterhead keeps a reading line, two lines at
     every computer width, rather than one 1,500px line on a wide screen. */
  .hero__who {
    max-width: 48em;
  }
}

/* Under a letterhead the lede is the letter's first paragraph: body size,
   so the studio line above it stays the louder of the two and the button
   comes back onto a laptop's first screen. */
.hero:has(+ .heard) .hero__lede {
  max-width: 38em;
  font-size: var(--size-body);
  line-height: var(--leading-body);
}

@media (min-width: 60rem) {
  .hero:has(+ .heard).l-section {
    padding-top: var(--space-8);
  }
}

/* The AI line closes the argument and leads into the button: the last
   paragraph before it, in the body's ink at the small size, kept close to
   the button so the two read as one step. */
.hero__method {
  max-width: 42em;
  font-size: var(--size-ui);
  line-height: var(--leading-small);
  text-wrap: pretty;
}

.hero__method + .hero__actions {
  margin-top: calc(var(--space-2) * -1);
}

/* Past a 1920 by 1080 screen, home's first screen grows with it in
   proportion, with no break point (HY-453; RB, 2026-11-18, on a hard break
   point at 2200: "im not a huge fan of these hard breakpoints,
   unconventional monitors would still see the ridiculous amount of empty
   space"). --scale is one pixel times how big the screen is against 1920 by
   1080, by whichever of its width and height is the nearer: 1px there,
   1.33px at 2560 by 1440, 2px at 3840 by 2160, less on a smaller screen.
   Every size in the composition is its size at 1920 times --scale, or the
   site's own size where that is larger, so on a screen up to 1920 by 1080
   (or a shorter or narrower one) nothing moves. A screen taller than 16 by 9
   for its width puts half of its extra height above the block, so the block
   stands in the middle of the room it was composed for. The page column
   grows with the screen's height as well (tokens.css), so the film and the
   words keep their shares of the row. */
.hero:has(+ .heard) {
  --scale: min(var(--grow-w) / 1920, var(--grow-h) / 950);
  --taller-than-composed: max(0px, (var(--grow-h) - 950 * max(1px, var(--scale))) / 2);
}

@container hero (min-width: 54rem) {
  .hero:has(+ .heard) .hero__inner {
    column-gap: max(var(--space-16), calc(64 * var(--scale)));
    row-gap: max(var(--space-8), calc(32 * var(--scale)));
  }

  .hero:has(+ .heard) .hero__who {
    font-size: max(var(--size-lede), calc(23.36 * var(--scale)));
  }

  .hero:has(+ .heard) h1 {
    font-size: max(var(--size-display), calc(72.56 * var(--scale)));
  }

  .hero:has(+ .heard) .hero__text {
    gap: max(var(--space-6), calc(24 * var(--scale)));
  }

  .hero:has(+ .heard) .hero__lede {
    font-size: max(var(--size-body), calc(18 * var(--scale)));
  }

  .hero:has(+ .heard) .hero__method,
  .hero:has(+ .heard) .film__line {
    font-size: max(var(--size-ui), calc(16 * var(--scale)));
  }

  .hero:has(+ .heard) .hero__note {
    font-size: max(var(--size-small), calc(15 * var(--scale)));
  }

  .hero:has(+ .heard) .hero__actions .button {
    min-height: max(var(--space-12), calc(48 * var(--scale)));
    padding: max(var(--space-3), calc(12 * var(--scale))) max(var(--space-5), calc(20 * var(--scale)));
    font-size: max(var(--size-ui), calc(16 * var(--scale)));
  }

  .hero:has(+ .heard) .film-link {
    font-size: max(var(--size-ui), calc(16 * var(--scale)));
  }
}

@media (min-width: 60rem) {
  .hero:has(+ .heard).l-section {
    padding-top: calc(max(var(--space-8), calc(32 * var(--scale))) + var(--taller-than-composed));
  }
}

/* Things you hear: voices across the room (HY-446, RB's pick on HY-435:
   "voices across the room is the best, super stylish yet simple"). The
   lines are scattered across the width the way voices come from different
   desks, large and small, left and right, so the eye zigzags down the
   section instead of reading a column. The studio's answer lands at the end
   of the zigzag, on the right, under a rule. The heading has a full step of
   room before the first voice (RB: "they are almost on top of each other").
   Lorenzo's pass (HY-447): the pen and the room's depth, below. */
.heard__title {
  max-width: 22ch;
  font-size: var(--size-title);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
}

.heard__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: pretty;
}

.heard__list > li {
  max-width: 85%;
}

.heard__list > li:nth-child(even) {
  align-self: flex-end;
  text-align: right;
}

/* The pen catches what's wrong in four of the voices (Lorenzo, HY-447):
   each mark waits, unseen, until its voice is well in view, then the pen
   draws it once (js/heard.js). Without script or with less motion the marks
   are simply there. */
@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .heard__list .mark:not(.mark--live) .mark__ink {
    visibility: hidden;
  }
}

/* A caught phrase moves to the next line whole, like any marked words, but
   with the reader's text at 200% it may break inside its mark rather than
   push the page sideways. */
.heard__list .mark {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  text-indent: 0;
}

/* A ring reaches into the leading above and below its words; where a voice
   wraps, the line holding the ring takes that room, so the ring touches no
   letter of the line above (at 360 it crossed "eso?"). */
.heard__list .mark--circle {
  max-width: calc(100% - 1.2em);
  margin-block: 0.32em;
}

/* Lines 1, 4 and 7 are the louder voices. */
.heard__list > li:nth-child(3n + 1) {
  font-size: var(--size-title);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
}

/* Near and far (RB, HY-447: "a combination of A and B"): the room has
   depth. The loud voices stand near, in full ink; the quieter ones come from
   farther off, in the muted ink. A far voice the pen catches comes forward
   into full ink as its mark is drawn, so what the studio hears stands out of
   the room. Without script or with less motion it is forward from the
   start. */
.heard__list > li:not(:nth-child(3n + 1)):not(:has(.mark)) {
  color: var(--ink-muted);
}

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .heard__list > li:not(:nth-child(3n + 1)) {
    transition: color 420ms var(--ease-out) 260ms;
  }

  .heard__list > li:not(:nth-child(3n + 1)):has(.mark:not(.mark--live)) {
    color: var(--ink-muted);
  }
}

.heard__turn {
  max-width: 38rem;
  margin: var(--space-16) 0 0 auto;
  padding-top: var(--space-5);
  border-top: var(--border-strong) solid var(--rule-strong);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
}

/* On a computer the voices take places on a twelve-column room: the large
   lines wide spans, the small ones narrow, alternating sides, so the eye
   goes left, right, left down the section. The opening quote mark hangs
   outside each line. */
@media (min-width: 60rem) {
  .heard__list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-12);
  }

  .heard__list > li,
  .heard__list > li:nth-child(even) {
    max-width: none;
    text-align: left;
    text-indent: -0.4em;
  }

  .heard__list > li:nth-child(1) { grid-column: 1 / 9; }
  .heard__list > li:nth-child(2) { grid-column: 9 / 13; align-self: end; }
  .heard__list > li:nth-child(3) { grid-column: 2 / 7; }
  .heard__list > li:nth-child(4) { grid-column: 6 / 13; }
  .heard__list > li:nth-child(5) { grid-column: 1 / 6; }
  .heard__list > li:nth-child(6) { grid-column: 7 / 12; }
  .heard__list > li:nth-child(7) { grid-column: 2 / 10; }
  .heard__list > li:nth-child(8) { grid-column: 9 / 13; align-self: end; }

  .heard__turn {
    max-width: 34rem;
    margin-left: 50%;
    font-size: var(--size-lede);
    line-height: var(--leading-lede);
  }
}

/* The small way into the film beside home's button, on its line, and the
   one under the button at the foot of home (RB's ways in 1 and 4). */
/* The gap between them is the row's own, so on a phone, where the link
   drops under the button, it starts on the button's left edge (Otto, HY-446:
   it kept its 24px and stood right of the edge). */
.hero__actions:has(.film-link) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-6);
}

.hero__actions:has(.film-link) .hero__note {
  flex-basis: 100%;
}

.callout__film {
  margin-top: var(--space-4);
}

/* Sections whose heading sits above a wide component (steps)
   and a closing link. */
.home-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 60rem) {
  .home-block {
    gap: var(--space-12);
  }
}

/* "Anything your business runs on": the machine and what it printed (HY-265).
   The nine lines are the rows of the sheet the copier prints, set in type and
   ruled like a ledger, larger than running text so they read as an inventory
   rather than a bullet list. From 54rem the heading spans the page, the copier
   stands in the left column and keeps its place while the rows run past it,
   and the rows take the right column, the content column of every section
   below. On a phone the rows come first and the copier follows them, never
   between a heading and its words. */
.runs-on {
  container-type: inline-size;
}

.runs-on__inner {
  display: grid;
  gap: var(--space-8);
}

/* The rows run the column's full width; the two closing lines keep the
   reading measure. */
.runs-on__words {
  max-width: none;
}

.runs-on__words > p {
  max-width: var(--measure);
}

.runs-on__list > li {
  padding-block: var(--space-3);
  border-top: var(--border-hairline) solid var(--rule);
  font-size: var(--size-lede);
  line-height: var(--leading-lede);
}

/* The entry rule opens the sheet; a hairline closes it. */
.runs-on__list > li:first-child {
  border-top: var(--border-strong) solid var(--rule-strong);
}

.runs-on__list > li:last-child {
  border-bottom: var(--border-hairline) solid var(--rule);
}

@container (min-width: 54rem) {
  .runs-on__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--space-12);
  }

  .runs-on__heading {
    grid-column: 1 / -1;
  }

  .runs-on__art {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    position: sticky;
    /* Below the menu bar, which stays at the top (HY-297): its 96 plus the torn
       edge's shadow, then the gap it had. */
    top: calc(var(--space-24) + var(--space-12));
    max-width: none;
  }

  .runs-on__words {
    grid-column: 2;
    grid-row: 2;
  }
}

/* The four steps as one road (RB's pick, HY-265, 2026-10-13): from 54rem the
   four run across the page over one line, unbroken over the two that cost
   nothing and over the two after the yes, and broken between them, where you
   say yes. On a phone there are no lines at all (RB: "i dont like having lines
   between each step"): the steps stand on space, and the yes is the wider gap
   before step 3. The four columns are equal: the gap at the yes is a track of
   its own, never taken out of Build's column (Otto, PR #55), and each pair
   splits its gutter between its two steps so the words of all four run the
   same width. */
.steps--road .step {
  padding-top: 0;
  border-top: 0;
}

.steps--road .step:nth-child(3) {
  margin-top: var(--space-8);
}

@container steps (min-width: 54rem) {
  .steps--road .steps__list {
    grid-template-columns:
      minmax(0, 1fr) minmax(0, 1fr)
      var(--space-16)
      minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
  }

  .steps--road .step {
    padding-top: var(--space-5);
    border-top: var(--border-strong) solid var(--rule-strong);
  }

  .steps--road .step:nth-child(odd) {
    padding-right: var(--space-4);
  }

  .steps--road .step:nth-child(even) {
    padding-left: var(--space-4);
  }

  .steps--road .step:nth-child(3) {
    grid-column: 4;
    margin-top: 0;
  }
}

/* ---------- Services: /services/ ---------- */

/* The opening carries its cut paper (HY-267): beside the heading from 60rem,
   in the half the heading leaves empty; under the words on a phone. */
.services-opening .collage {
  width: min(100%, 22rem);
  margin-top: var(--space-8);
}

@media (min-width: 60rem) {
  .services-opening {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-12);
    align-items: center;
  }

  .services-opening .collage {
    width: min(100%, 26rem);
    margin-top: 0;
    justify-self: end;
  }
}

/* The offering map (HY-474): the six areas, every dish under its area, each
   a link down to its dish in the menu. Lorenzo leads how it looks (his pick,
   "marked by hand"); his script rings the call and draws the braces over
   this structure, in `.omap__map`, which is the drawing's frame. On a
   computer the call stands in the middle, what customers see on its left and
   what the team works with on its right, the left column set to its right
   edge so both sides face the call. On a phone one column, each area's items
   sharing rows. Every link keeps the 44px floor both ways (Alma's function
   ruling on the review page, section 4): a 44px row already carries its own
   air, so the gaps between areas close to 4px instead of shrinking the
   targets. */
.omap {
  container: omap / inline-size;
}

.omap__map {
  position: relative;
  margin-top: var(--space-8);
}

.omap .omap__area {
  margin: 0;
  font-size: var(--size-ui);
  line-height: 1.3;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.omap__items {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A hairline under every item always, so a phone shows what can be pressed;
   the full ink under it when pointed at. */
.omap__item {
  display: inline-flex;
  align-items: center;
  min-width: var(--tap);
  min-height: var(--tap);
  color: var(--ink);
  font-size: var(--size-small);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent);
  text-underline-offset: 0.24em;
  transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.omap__item:hover {
  text-decoration-color: currentColor;
}

/* The call on a line of its own, its subtitle on the next (RB, 2026-11-18
   11:47: "they are the subtitle for what is above them, no need to cram them
   in one line"). */
.omap__door {
  margin: 0;
  font-size: var(--size-ui);
  line-height: 1.4;
}

.omap__call {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.omap__starts {
  display: block;
  margin-top: calc(var(--space-2) * -1);
  padding-bottom: var(--space-1);
  font-size: var(--size-small);
  color: var(--ink-muted);
}

/* On a phone the gap between the pen's two strokes down the margin names the
   sides; the words come back on a computer. */
.omap__side-name {
  display: none;
  margin: 0 0 var(--space-4);
  font-size: var(--size-small);
  line-height: 1.3;
  color: var(--ink-muted);
}

.omap__group + .omap__group,
.omap__centre + .omap__side,
.omap__side + .omap__side {
  margin-top: var(--space-1);
}

@container omap (min-width: 60rem) {
  .omap__map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 16rem) minmax(0, 1fr);
    grid-template-areas: "customers centre team";
    column-gap: var(--space-16);
    align-items: center;
    margin-top: var(--space-12);
  }

  .omap__item {
    font-size: var(--size-ui);
  }

  .omap__centre {
    grid-area: centre;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .omap__centre .omap__area {
    margin-bottom: var(--space-3);
  }

  .omap__centre .omap__items {
    justify-content: center;
    margin-top: var(--space-2);
  }

  .omap__starts {
    margin-top: var(--space-1);
  }

  .omap__side-name {
    display: block;
  }

  .omap__side--customers {
    grid-area: customers;
    text-align: right;
  }

  .omap__side--team {
    grid-area: team;
  }

  .omap__group + .omap__group,
  .omap__centre + .omap__side,
  .omap__side + .omap__side {
    margin-top: 0;
  }

  .omap__side .omap__group + .omap__group {
    margin-top: var(--space-6);
  }

  .omap__side .omap__items {
    flex-direction: column;
  }

  .omap__side--customers .omap__items {
    align-items: flex-end;
  }

  .omap__side--customers .omap__item {
    justify-content: flex-end;
  }
}

/* The person's pen over the map (Lorenzo, HY-474, "marked by hand"). The
   ring is the site's Mark round the whole promise, "The discovery call,
   free", comma and all, so nothing floats off its edge; where the Spanish
   runs wider than the middle column it overflows into the gaps evenly,
   clear of the braces. js/offering-map.js draws the black lines out of the
   ring in this layer, over the map's own box, and plays them once when the
   map is first in view. Until then nothing of the drawing shows, not even
   the ring; with less motion, or without script, the ring is simply there. */
/* Each area's name on a piece of the opening's cut paper (RB, 2026-11-18
   05:49, on the review page: the map "made by hand" with the titles of "cut
   from paper"): grey and black stock with the menu card's fibre, each piece
   cut with scissors, never quite square, never quite straight. The names are
   on their paper from the first paint; js/offering-map.js only lets each
   piece settle as the map comes into view, so a name never waits for its
   paper. On dark paper the black stock turns pale, as the opening's cut
   paper does. The piece eats into the air above its first row of items, so
   the map is no taller on a phone. */
.omap {
  --piece-black: #2A2B30;
  --piece-black-words: #F4F2EC;
  --piece-grey: #8E8F94;
  --piece-grey-words: #17191F;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .omap {
    --piece-black: #E4E2DC;
    --piece-black-words: #17191F;
    --piece-grey: #6C6E74;
    --piece-grey-words: #FFFFFF;
  }
}

[data-theme="dark"] .omap {
  --piece-black: #E4E2DC;
  --piece-black-words: #17191F;
  --piece-grey: #6C6E74;
  --piece-grey-words: #FFFFFF;
}

.omap .omap__area {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin-bottom: -5px;
  padding: 3px 9px 4px 8px;
  line-height: 1.2;
  color: var(--piece-black-words);
  background: var(--piece-black);
  rotate: var(--turn, 0deg);
  clip-path: var(--cut);
  /* The piece reaches into its rows' air: a tap there is the link's. */
  pointer-events: none;
}

/* A link's focus ring shows whole, over the paper beside it. */
.omap__item:focus-visible,
.omap__call:focus-visible {
  position: relative;
  z-index: 1;
}

/* The call's subtitle rises into the call's 44px box; the call stays on top,
   so a tap there is the call's. */
.omap__call {
  position: relative;
  z-index: 1;
}

.omap .omap__area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/menu/card-texture.webp") 0 0 / 420px auto repeat;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  pointer-events: none;
}

/* The rows on a phone (Lorenzo's to compose, RB 2026-11-18 07:04). Each
   area's items are set as lines of words balanced in width, not a row that
   wraps wherever it runs out, so a short item never ends alone under a full
   one. Between two items on a row sits the pen's own mark, its broad nib
   pressed once; it lives in the gap, so it costs no width, and the script
   hides the one a row would start with (the margin is the pen's line). The
   pen dabs the marks in when the map plays.
   Every link keeps its 44px both ways. */
@container omap (max-width: 59.99rem) {
  .omap__side .omap__items {
    --row-gap: 14px;
    display: block;
    margin-left: calc(var(--row-gap) * -1);
    line-height: 0;
    text-wrap: balance;
  }

  .omap__side .omap__items > li {
    position: relative;
    display: inline-block;
    margin-left: var(--row-gap);
    line-height: var(--leading-ui);
    vertical-align: top;
  }

  /* The broad nib pressed once: a small diamond (RB's pick, HY-477, the
     penman's hand). Centred in the gap between the boxes; the script moves
     it to halfway between the words, where a short item's box is wider than
     its word. */
  .omap__side .omap__items > li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--dot-x, calc(var(--row-gap) / -2)) - 2.2px);
    width: 4.4px;
    height: 4.4px;
    margin-top: -2.1px;
    background: var(--ink);
    border-radius: 0.6px 0.4px 0.7px 0.4px;
    rotate: 45deg;
  }

  /* Breathing room between the map's sections (RB, 2026-11-18 08:2x: "Every
     item starts here" is the call's caption and the next name a heading, so
     the two must not sit packed together). The caption stays tight to its
     call; the first side starts clear of it, and the second side clear of
     the first, while an area's own rows stay close. */
  .omap__centre + .omap__side {
    margin-top: var(--space-5);
  }

  .omap__side + .omap__side {
    margin-top: var(--space-4);
  }

  .omap__side .omap__items > li.is-row-start::before {
    visibility: hidden;
  }
}

/* A row of items carries its own air below its words, so on a phone the
   next piece sits up into it. */
.omap__side .omap__area {
  margin-top: -4px;
}

/* The six cuts, one per piece, in the map's reading order. */
.omap__centre .omap__area {
  --turn: -0.7deg;
  --cut: polygon(1.5px 2px, calc(100% - 1px) 0, 100% calc(100% - 2.5px), 0 100%);
  margin-bottom: -4px;
}

.omap__group[data-key="brand"] .omap__area {
  --turn: 0.9deg;
  --cut: polygon(0 1px, 100% 0, calc(100% - 2px) 100%, 1px calc(100% - 1.5px));
  color: var(--piece-grey-words);
  background: var(--piece-grey);
}

.omap__group[data-key="web"] .omap__area {
  --turn: -1.2deg;
  --cut: polygon(2px 0, 100% 2px, calc(100% - 1px) 100%, 0 calc(100% - 1px));
}

.omap__group[data-key="data"] .omap__area {
  --turn: 0.6deg;
  --cut: polygon(0 2px, calc(100% - 2px) 0, 100% 100%, 1.5px calc(100% - 2px));
}

.omap__group[data-key="ai"] .omap__area {
  --turn: -0.8deg;
  --cut: polygon(1px 0, 100% 1.5px, calc(100% - 1.5px) calc(100% - 1px), 0 100%);
  color: var(--piece-grey-words);
  background: var(--piece-grey);
}

.omap__group[data-key="ops"] .omap__area {
  --turn: 1.1deg;
  --cut: polygon(0 0, calc(100% - 1.5px) 2px, 100% calc(100% - 2px), 2px 100%);
}

@container omap (min-width: 60rem) {
  .omap .omap__area {
    margin-bottom: -4px;
    padding: 6px 13px 7px 12px;
  }

  .omap__centre .omap__area {
    margin-bottom: var(--space-3);
  }

  .omap__side .omap__area {
    margin-top: 0;
  }

  .omap__side--customers .omap__area {
    margin-inline-start: auto;
  }
}

/* Where the promise is wider than the column (the text doubled on a phone,
   the narrowest phones in Spanish), its words wrap and the loop rings both
   lines, as a hand would; on one line the loop is the Mark's own. On a
   computer the column always holds it on one line. */
.omap__ring.mark {
  white-space: normal;
  line-height: 1.2;
}

.omap__ring.mark--circle .mark__ink {
  height: calc(100% + 0.64em);
}

@container omap (min-width: 60rem) {
  .omap__ring.mark {
    white-space: nowrap;
  }

  /* The call over its subtitle, both centred; a promise wider than the
     column overflows it evenly on both sides. */
  .omap__centre .omap__door {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.omap__map > .omap__ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--ink);
  pointer-events: none;
}

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .omap:not(.is-playing):not(.is-drawn) .omap__ring .mark__ink,
  .omap:not(.is-playing):not(.is-drawn) .omap__ink {
    visibility: hidden;
  }

  /* The pen's dots before the items wait for the pen. */
  .omap:not(.is-playing):not(.is-drawn) .omap__side .omap__items > li::before {
    scale: 0;
  }

  /* The pieces wait a little lifted, names readable, and settle when the
     map plays; the script lifts them back for the moment it measures. */
  .omap:not(.is-playing):not(.is-drawn):not(.is-measuring) .omap__area {
    translate: -2px -7px;
    rotate: calc(var(--turn, 0deg) - 2.4deg);
  }
}

/* The menu (HY-327, RB's pick M1): a card of paper you are handed, the way a
   restaurant hands you its menu, so the section says "pick something" before
   a word is read. From 54rem the card opens flat into two panels with a fold
   between them and After launch printed across its foot; on a phone it is
   one long card, edge to edge. Each dish's name stands on its own line above
   what it is, as menus set them. No price anywhere (RB, HY-326). The card
   stock is the `card` token here; Lorenzo's letterpress card (further down)
   paints over it. */
.menu {
  container-type: inline-size;
}

.menu__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-8) var(--gutter) var(--space-12);
  background: var(--card);
  border-block: var(--border-hairline) solid var(--card-edge);
}

.menu__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-strong) solid var(--rule-strong);
}

.menu__who {
  font-size: var(--size-lede);
  line-height: var(--leading-lede);
  color: var(--ink-muted);
}

/* The arrangement after Lorenzo's pieces (HY-435). The free call opens the
   card, because its words say everything below starts there. The house
   special is the card's centrepiece, framed by a double rule the way a
   printed menu frames its prix fixe, its concertina as wide as the card
   lets it be. Then the three courses, small to big: one after another on a
   phone; two across on a narrower card, with To go further under To get
   going so neither column runs long; three across on a wide card, a fold
   between each, like a menu that opens in three. Each course's ballpoint
   drawing stands over its name. */
.menu__special {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-block: 3px double var(--rule-strong);
}

.menu__special .concertina {
  margin-block: var(--space-2);
}

.menu__courses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
}

/* The menu's emblems (Lorenzo, HY-443): one per course, all 6rem square on
   one grid, pressed into the card (see "The menu as a letterpress card"). */
.menu-art {
  align-self: flex-start;
  width: auto;
  height: 6rem;
  margin-bottom: calc(var(--space-2) * -1);
}

/* The house special's concertina (Lorenzo, HY-434): a photograph of a paper
   strip, logo to login, the same picture in both themes; the pen draws its
   panels in order when first in view (site/js/concertina.js). Until the pen
   starts, the strip stands blank: the drawn still waits unseen over the
   before-the-ink photograph, so nothing shows before it is drawn. */
.concertina {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .concertina:not(.is-written):not(.is-drawing) > .concertina__still {
    opacity: 0;
  }
}

.menu__course {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.menu__dishes {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

/* The name sits on its own line, bold, above what the dish is. */
.menu__dish strong {
  display: block;
  margin-bottom: var(--space-1);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-8);
  border-top: var(--border-hairline) solid var(--card-rule);
}

.menu__foot-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.menu__foot-columns > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Under the card, on the page: the last word, then the way to the call. */
.menu__close {
  max-width: var(--measure);
  margin-top: var(--space-8);
  font-size: var(--size-lede);
  line-height: var(--leading-lede);
}

.menu__next {
  margin-top: var(--space-6);
}

@container (min-width: 54rem) {
  .menu__card {
    margin-inline: 0;
    padding: var(--space-12) var(--space-16) var(--space-16);
    border: var(--border-hairline) solid var(--card-edge);
    border-radius: 2px;
  }

  .menu__head {
    padding-bottom: var(--space-6);
  }

  .menu__foot-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-12);
  }

  .menu__foot-columns > div + div {
    padding-left: calc(var(--space-12) + var(--border-hairline));
  }

  /* The free call: its drawing beside its words, one line across the card. */
  .menu__course--free {
    display: grid;
    grid-template-columns: 6rem minmax(0, 40rem);
    grid-template-rows: auto 1fr;
    column-gap: var(--space-8);
    row-gap: var(--space-3);
  }

  /* The headset is square like every emblem: 6rem by 6rem. */
  .menu__course--free .menu-art {
    grid-row: 1 / span 2;
    width: 6rem;
    margin: 0;
  }

  /* The house special: the concertina on the left, its name and its words
     beside it at an equal share of the width, centred on the picture's
     height, the words a size up from the other dishes (RB, HY-434 round 3:
     "it shouldnt be this huge and the text next to it so small with so much
     empty space"). */
  .menu__special {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: var(--space-12);
    row-gap: var(--space-3);
    padding-block: var(--space-8);
  }

  .menu__special .concertina {
    grid-row: 1 / -1;
    grid-column: 1;
    margin: 0;
  }

  .menu__special h3 {
    grid-row: 2;
    grid-column: 2;
  }

  .menu__special .menu__dish {
    grid-row: 3;
    grid-column: 2;
    font-size: var(--size-lede);
    line-height: var(--leading-lede);
  }

  /* Two across: To go further under To get going, the long course beside
     them, the fold between. */
  .menu__courses {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "going smoother" "further smoother";
    column-gap: var(--space-12);
  }

  .menu__course--going { grid-area: going; }
  .menu__course--smoother { grid-area: smoother; }
  .menu__course--further { grid-area: further; }

  .menu__course--smoother {
    padding-left: var(--space-12);
    border-left: var(--border-hairline) solid var(--card-rule);
  }

  .menu__close {
    margin-top: var(--space-12);
  }
}

/* Three across, a fold between each, once the card is wide enough for three
   columns of about 36 characters. */
@container (min-width: 72rem) {
  .menu__card {
    padding-inline: var(--space-12);
  }

  .menu__courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "going smoother further";
    column-gap: var(--space-8);
  }

  .menu__course--smoother,
  .menu__course--further {
    padding-left: var(--space-8);
    border-left: var(--border-hairline) solid var(--card-rule);
  }
}

/* ---------- The menu as a letterpress card (Lorenzo, HY-434 rounds 2 and 3, built on HY-443) ----------
   RB on round 1: "letterpress card could be super interesting, can you build
   it?"; on round 3, his pick: "lets just go with the round 3 'c. Line art,
   pressed into the card' style, much cleaner". The card is thick cotton
   stock with a deckled edge: the photographed card's own outline is the
   border image (one per theme's stock, interior filled), its fibre lies over
   the whole card, and it casts a soft shadow on the page. Each course's
   emblem is line art drawn in code on one 96 grid, pressed into the card by
   the SVG filter in the page (#deboss): a shaded wall, a lit wall and a
   faint floor, in each theme's own colors, so dark mode is the same
   impression on charcoal card with no glow. Comes after the card's layout
   rules above, so its border and background win at every width. */
:root {
  --deboss-floor: rgb(60 45 25 / 0.1);
  --deboss-shade: rgb(70 52 30 / 0.75);
  --deboss-light: rgb(255 255 255 / 0.95);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --deboss-floor: rgb(0 0 0 / 0.22);
    --deboss-shade: rgb(0 0 0 / 0.8);
    --deboss-light: rgb(255 255 255 / 0.16);
  }
}

[data-theme="dark"] {
  --deboss-floor: rgb(0 0 0 / 0.22);
  --deboss-shade: rgb(0 0 0 / 0.8);
  --deboss-light: rgb(255 255 255 / 0.16);
}

.menu__card--letterpress {
  --deckle: url("../img/menu/card-deckle-light.png");
  --fibre: 0.32;
  position: relative;
  isolation: isolate;
  background: none;
  border: 22px solid transparent;
  border-radius: 0;
  border-image: var(--deckle) 34 fill / 22px stretch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .menu__card--letterpress {
    --deckle: url("../img/menu/card-deckle-dark.png");
    --fibre: 0.5;
  }
}

[data-theme="dark"] .menu__card--letterpress {
  --deckle: url("../img/menu/card-deckle-dark.png");
  --fibre: 0.5;
}

.menu__sheet {
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.12)) drop-shadow(0 10px 22px rgb(0 0 0 / 0.08));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .menu__sheet {
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5)) drop-shadow(0 12px 26px rgb(0 0 0 / 0.45));
  }
}

[data-theme="dark"] .menu__sheet {
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5)) drop-shadow(0 12px 26px rgb(0 0 0 / 0.45));
}

.menu__card--letterpress::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/menu/card-texture.webp") 0 0 / 640px auto repeat;
  mix-blend-mode: hard-light;
  opacity: var(--fibre);
  pointer-events: none;
}

.emblem-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.emblem {
  position: relative;
  display: block;
  aspect-ratio: 1;
}

.emblem svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #000;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url("#deboss");
}

.emblem svg .solid {
  fill: #000;
  stroke: none;
}

/* The press: the plate comes down a hair larger and settles flat, once, when
   the emblem is first well in view (js/emblems.js). Without script or with
   less motion every emblem is simply pressed. */
@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .emblem {
    transition: opacity 380ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .emblem:not(.is-pressed) {
    opacity: 0;
    transform: scale(1.08);
  }
}

/* "We never charge for diagnosis." closes the whole Discovery section. At the
   prose gap it read as a third line of the Fork's second way ("We can't."), so
   it stands off by the same step the Roster uses in running text. */
.prose > .fork + * {
  margin-top: var(--space-8);
}

/* The closing button stands apart from the pricing list it follows. */
.services-cta {
  padding-top: var(--space-6);
}

/* ---------- How we work: /how-we-work/ ---------- */

/* The heading sits above the full-width step list. */
.how-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 60rem) {
  .how-block {
    gap: var(--space-12);
  }
}

/* Six steps, not four: two even rows of three instead of four and two. */
@container steps (min-width: 54rem) {
  .how-steps .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The closing button stands apart from the list it follows. */
.how-cta {
  padding-top: var(--space-6);
}

/* ---------- How it works: /how-it-works/ ----------
   The opening carries the brush's long pull (HY-267), painted live in the
   direction the hand moved: it comes in from past the screen's right edge, so
   its rounded head never shows, swells into the S and breaks into flying
   white toward the words. The section spans the screen so the stroke can
   reach its edge; the page column inside it holds the words. On a phone the
   stroke runs under the words, its head past the edge all the same. */

.how-opening {
  overflow: clip;
}

.how-opening__brush {
  width: 111%;
  margin: var(--space-6) 0 0 8%;
}

@media (min-width: 60rem) {
  .how-opening {
    position: relative;
  }

  /* The words keep to a little over half the page, so the ink never
     crosses a letter. */
  .how-opening .section-heading--page {
    max-width: 55%;
  }

  /* About half the screen wide, level with the heading; the head, the last
     sixth of the stroke, sits past the edge. */
  /* Sized and placed against the window at 100% zoom, centred in the
     section, so a zoomed-out page keeps the brush beside the words at the
     size zoom asks for instead of half the window's width (HY-485). */
  .how-opening__brush {
    --room: min(100%, var(--grow-w));
    position: absolute;
    top: calc(var(--section-gap) + var(--space-12));
    right: calc((100% - var(--room)) / 2 - 0.084 * var(--room));
    width: calc(0.51 * var(--room));
    margin: 0;
  }
}

/* The film in the opening (HY-446, RB's pick 1 on HY-435: "in the opening
   for sure. its beautiful"): under the lead, in the words' column, level
   with where the brush comes in on the right. The opening starts a step
   closer under the menu bar, so the film's picture begins on a laptop's
   first screen. */
.how-film {
  margin-top: var(--space-8);
}

@media (min-width: 60rem) {
  .how-opening.l-section:has(.how-film) {
    padding-top: var(--space-16);
  }

  .how-film {
    max-width: 55%;
  }
}

/* A week of it (HY-435). The section is the week: the heading and its one
   line over it, the week's planner page under them, then what the week
   leaves behind. The split layout every other section on this page uses
   would have put the week in a column beside its heading, a third of its
   size; the week is the page's one picture of the reader's own life, so it
   gets the page's width. After it, the three questions are set at the
   lede's size, unbulleted, as the questions a reader actually asks, and the
   section closes on the line that leads into Discovery. */
.week-section > .week {
  margin-top: var(--space-8);
}

.week-after {
  max-width: var(--measure);
  margin-top: var(--space-8);
}

.week-after__questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-lede);
  line-height: var(--leading-lede);
}

/* Each question starts with a question mark in real ballpoint (Lorenzo,
   HY-443, from Paper), written by js/ink.js one after another as the list
   comes into view. RB: "the 'questions' section below can also be
   beautified, maybe just some hand drawn bullet points". */
.week-after__questions li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

/* One slot for every mark, so the three questions start in one line; the
   mark stands on the question's first line when a narrow screen wraps it. */
.week-after__mark {
  flex: none;
  width: 1.5em;
  height: 1.9em;
  margin-top: calc((var(--leading-lede) * 1em - 1.9em) / 2);
}

.week-after__close {
  margin-top: var(--space-6);
  font-weight: var(--weight-medium);
}

/* ---------- A week of it, as a planner page (Lorenzo, HY-434 round 3, placed on HY-443) ----------
   RB on round 2's diary photograph: "the notebook itself draws much more
   attention than the text content on it ... maybe we should consider an
   outline of a notebook, either generated or drawn in code? like think of the
   risograph folders we use for the how it works stuff elsewhere"; "the week
   day names can be in bold ... or maybe include some visual element like
   checkmarks". So the week is drawn in code, the words first: each day's name
   in bold, its line beside it, a small box at the start of the row, on a
   planner page printed on the folders' risograph paper (home's manila by day,
   its night slate in dark mode), spiral rings along the top, the boxes left
   empty. The lines are written in turn by js/week.js, as round 1's diary
   was. */

.planner {
  --key: #2a2622;
  --key-rule: rgb(42 38 34 / 0.28);
  --planner-paper: url("../img/folders/paper-manila.webp");
  max-width: 54rem; /* every day on one line on a laptop, in both languages */
  container-type: inline-size;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .planner {
    --key: #d8cfc2;
    --key-rule: rgb(216 207 194 / 0.3);
    --planner-paper: url("../img/folders/night-slate.webp");
  }
}

[data-theme="dark"] .planner {
  --key: #d8cfc2;
  --key-rule: rgb(216 207 194 / 0.3);
  --planner-paper: url("../img/folders/night-slate.webp");
}

.planner__sheet {
  position: relative;
  padding: var(--space-12) var(--space-6) var(--space-5);
  background: var(--planner-paper) 0 0 / 640px auto;
  border-radius: 3px;
}

/* The spiral binding: a row of wire rings through the top of the sheet. */
.planner__sheet::before {
  content: "";
  position: absolute;
  top: calc(var(--space-4) * -1);
  inset-inline: var(--space-5);
  height: 2.25rem;
  background:
    radial-gradient(circle 0.22rem at 50% 78%, var(--key-hole) 92%, transparent 100%) 0 0 / 1.5rem 100% space no-repeat,
    radial-gradient(ellipse 0.34rem 0.9rem at 50% 50%, transparent 70%, var(--key) 76%, var(--key) 94%, transparent 99%) 0 0 / 1.5rem 100% space no-repeat;
}

/* The punched hole under each ring shows the page behind the sheet. */
.planner { --key-hole: var(--paper); }

.planner__days {
  margin: 0;
  padding: 0;
  list-style: none;
}

.planner__row {
  display: grid;
  grid-template-columns: 1.25rem 6.75rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-4);
  padding-block: var(--space-4);
}

.planner__row + .planner__row {
  border-top: 1px solid var(--key-rule);
}

.planner__name {
  color: var(--key);
  font-size: var(--size-body);
  font-weight: 700;
}

/* One day's line, in the row's flow beside its name. */
.planner .week__day {
  margin: 0;
  color: var(--ink);
  font-size: var(--size-lede);
  font-weight: 400;
  line-height: var(--leading-lede);
  text-wrap: pretty;
}

.planner__box {
  align-self: center;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid var(--key);
  border-radius: 2px;
  transform: rotate(-2deg);
}

/* A phone: the day's name over its line, the box beside the name. */
@container (max-width: 30rem) {
  .planner__sheet { padding-inline: var(--space-4); }

  .planner__row {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    row-gap: var(--space-1);
  }

  .planner .week__day { grid-column: 2; }
}

/* Before the hand writes, the lines are unseen, not hidden, so a screen
   reader still reads the week. Without script, or for less motion, this
   never applies and the week is simply written. */
@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .planner:not(.is-written):not(.is-writing) .week__day {
    opacity: 0;
  }
}

/* While it writes: each line is uncovered by a soft pen front, left to right. */
.week__line {
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ---------- How it works: each step's terms as a counterfoil (Lorenzo, HY-448) ----------
   RB, HY-435: "please also re-design/beautify all of the tables that look
   like this". A step's terms are what the reader keeps from it, so each box
   is the stub of a ticket: a slip of card torn along its perforation, the
   step's number on the stub, a notch punched where the perforation meets each
   edge, the rows parted by the same dashed line. On a phone the stub runs
   across the top. Still: it is printed, it does not move. The markup stays
   the Record's, a list of terms; the number is decoration (data-no). The
   Thanks page's receipt is a carbon copy of its own (HY-450, below). */

.record.terms {
  --stub: 4.75rem;
  --notch: 0.55rem;
  --perforation: 2px dashed var(--card-rule);
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5) var(--space-3) calc(var(--stub) + var(--space-5));
  grid-template-columns: minmax(min-content, max-content) minmax(0, 1fr);
  border: 0;
  border-radius: 4px;
  background: var(--card);
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}

/* The stub: the step's number, set like a ticket's. */
.record.terms::before {
  content: attr(data-no) / "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--stub);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: var(--size-title);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-title);
  font-variant-numeric: tabular-nums;
}

/* The perforation, between the notches. */
.record.terms::after {
  content: "";
  position: absolute;
  inset: var(--notch) auto var(--notch) calc(var(--stub) - 1px);
  border-left: var(--perforation);
}

.record.terms .record__key {
  padding: var(--space-2) var(--space-4) var(--space-2) 0;
  border: 0;
}

.record.terms .record__value {
  padding: var(--space-2) 0;
  font-size: var(--size-ui);
  line-height: var(--leading-ui);
}

.record.terms .record__key:not(:first-child),
.record.terms .record__key:not(:first-child) + .record__value {
  border-top: 1px dashed var(--card-rule);
}

/* A phone: the stub across the top, the perforation under it, notched at
   both edges. */
@container (max-width: 30rem) {
  .record.terms {
    --stub: 2.75rem;
    padding: calc(var(--stub) + var(--space-2)) var(--space-4) var(--space-2);
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 var(--stub), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--stub), #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 var(--stub), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--stub), #0000 97%, #000) right / 51% 100% no-repeat;
  }

  .record.terms::before {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--stub);
    place-items: center start;
    padding-inline: var(--space-4);
    font-size: var(--size-heading);
  }

  .record.terms::after {
    inset: calc(var(--stub) - 1px) var(--notch) auto var(--notch);
    border-left: 0;
    border-top: var(--perforation);
  }
}

/* ---------- How it works: the fork as one sheet torn in two (Lorenzo, HY-448 round 2) ----------
   RB, HY-448, 2026-11-14: "the 'we can help' should have a stronger way to
   distinguish it from the 'we can't' ... they should have some design
   differences that makes the user go 'this side good, otehr side bad'"; on
   the torn sheet: "it should be animated if we choose it"; the cranes go.
   The two answers are printed on one sheet of card. When the sheet is well in
   view it tears down the middle (across, on a phone): the "We can help" half
   stays where it was, flat and square, its answer set large in full ink; the
   "We can't" half comes away, tilts, drops a little off the page with a
   shadow under it, its paper worn and creased, its words greyed. Still after
   that. js/fork.js marks the sheet whole until it tears; without script, or
   with less motion, it is simply torn. The torn edges are generated by
   design/components/Fork/source/tear.mjs, between the markers below. */

/* tear:start */
.fork {
  --fork-seam: 6px;
  --tear-yes-col: polygon(0 0, calc(100% - 7.6px) 0.0%, calc(100% - 7.0px) 2.2%, calc(100% - 10.0px) 4.3%, calc(100% - 6.2px) 6.5%, calc(100% - 9.2px) 8.7%, calc(100% - 8.4px) 10.9%, calc(100% - 5.2px) 13.0%, calc(100% - 6.1px) 15.2%, calc(100% - 6.4px) 17.4%, calc(100% - 8.5px) 19.6%, calc(100% - 9.0px) 21.7%, calc(100% - 8.7px) 23.9%, calc(100% - 6.6px) 26.1%, calc(100% - 5.3px) 28.3%, calc(100% - 9.1px) 30.4%, calc(100% - 6.8px) 32.6%, calc(100% - 8.1px) 34.8%, calc(100% - 7.2px) 37.0%, calc(100% - 4.6px) 39.1%, calc(100% - 7.7px) 41.3%, calc(100% - 7.3px) 43.5%, calc(100% - 3.2px) 45.7%, calc(100% - 3.8px) 47.8%, calc(100% - 4.0px) 50.0%, calc(100% - 4.8px) 52.2%, calc(100% - 2.5px) 54.3%, calc(100% - 1.4px) 56.5%, calc(100% - 1.8px) 58.7%, calc(100% - 0.4px) 60.9%, calc(100% - 1.7px) 63.0%, calc(100% - 3.0px) 65.2%, calc(100% - 0.7px) 67.4%, calc(100% - 0.9px) 69.6%, calc(100% - 2.0px) 71.7%, calc(100% - 2.2px) 73.9%, calc(100% - 2.6px) 76.1%, calc(100% - 5.3px) 78.3%, calc(100% - 6.7px) 80.4%, calc(100% - 4.0px) 82.6%, calc(100% - 8.1px) 84.8%, calc(100% - 7.2px) 87.0%, calc(100% - 8.7px) 89.1%, calc(100% - 5.0px) 91.3%, calc(100% - 8.3px) 93.5%, calc(100% - 5.4px) 95.7%, calc(100% - 6.5px) 97.8%, calc(100% - 6.6px) 100.0%, 0 100%);
  --tear-yes-col-fibre: polygon(0 0, calc(100% - 5.6px) 0.0%, calc(100% - 5.0px) 2.2%, calc(100% - 8.0px) 4.3%, calc(100% - 4.2px) 6.5%, calc(100% - 7.2px) 8.7%, calc(100% - 6.4px) 10.9%, calc(100% - 3.2px) 13.0%, calc(100% - 4.1px) 15.2%, calc(100% - 4.4px) 17.4%, calc(100% - 6.5px) 19.6%, calc(100% - 7.0px) 21.7%, calc(100% - 6.7px) 23.9%, calc(100% - 4.6px) 26.1%, calc(100% - 3.3px) 28.3%, calc(100% - 7.1px) 30.4%, calc(100% - 4.8px) 32.6%, calc(100% - 6.1px) 34.8%, calc(100% - 5.2px) 37.0%, calc(100% - 2.6px) 39.1%, calc(100% - 5.7px) 41.3%, calc(100% - 5.3px) 43.5%, calc(100% - 1.2px) 45.7%, calc(100% - 1.8px) 47.8%, calc(100% - 2.0px) 50.0%, calc(100% - 2.8px) 52.2%, calc(100% - 0.5px) 54.3%, calc(100% + 0.6px) 56.5%, calc(100% + 0.2px) 58.7%, calc(100% + 1.6px) 60.9%, calc(100% + 0.3px) 63.0%, calc(100% - 1.0px) 65.2%, calc(100% + 1.3px) 67.4%, calc(100% + 1.1px) 69.6%, calc(100% - 0.0px) 71.7%, calc(100% - 0.2px) 73.9%, calc(100% - 0.6px) 76.1%, calc(100% - 3.3px) 78.3%, calc(100% - 4.7px) 80.4%, calc(100% - 2.0px) 82.6%, calc(100% - 6.1px) 84.8%, calc(100% - 5.2px) 87.0%, calc(100% - 6.7px) 89.1%, calc(100% - 3.0px) 91.3%, calc(100% - 6.3px) 93.5%, calc(100% - 3.4px) 95.7%, calc(100% - 4.5px) 97.8%, calc(100% - 4.6px) 100.0%, 0 100%);
  --tear-no-col: polygon(100% 0, 100.0% 84.0%, 96.7% 85.9%, 95.1% 88.9%, 91.2% 90.5%, 90.0% 93.7%, 86.9% 95.7%, 83.4% 97.5%, 81.0% 100.0%, 5.4px 100.0%, 5.5px 97.8%, 6.6px 95.7%, 3.7px 93.5%, 7.0px 91.3%, 3.3px 89.1%, 4.8px 87.0%, 3.9px 84.8%, 8.0px 82.6%, 5.3px 80.4%, 6.7px 78.3%, 9.4px 76.1%, 9.8px 73.9%, 10.0px 71.7%, 11.1px 69.6%, 11.3px 67.4%, 9.0px 65.2%, 10.3px 63.0%, 11.6px 60.9%, 10.2px 58.7%, 10.6px 56.5%, 9.5px 54.3%, 7.2px 52.2%, 8.0px 50.0%, 8.2px 47.8%, 8.8px 45.7%, 4.7px 43.5%, 4.3px 41.3%, 7.4px 39.1%, 4.8px 37.0%, 3.9px 34.8%, 5.2px 32.6%, 2.9px 30.4%, 6.7px 28.3%, 5.4px 26.1%, 3.3px 23.9%, 3.0px 21.7%, 3.5px 19.6%, 5.6px 17.4%, 5.9px 15.2%, 6.8px 13.0%, 3.6px 10.9%, 2.8px 8.7%, 5.8px 6.5%, 2.0px 4.3%, 5.0px 2.2%, 4.4px 0.0%);
  --tear-no-col-fibre: polygon(100% 0, 100.5% 84.5%, 97.2% 86.4%, 95.6% 89.4%, 91.7% 91.0%, 90.5% 94.2%, 87.4% 96.2%, 83.9% 98.0%, 81.5% 100.5%, 3.4px 100.0%, 3.5px 97.8%, 4.6px 95.7%, 1.7px 93.5%, 5.0px 91.3%, 1.3px 89.1%, 2.8px 87.0%, 1.9px 84.8%, 6.0px 82.6%, 3.3px 80.4%, 4.7px 78.3%, 7.4px 76.1%, 7.8px 73.9%, 8.0px 71.7%, 9.1px 69.6%, 9.3px 67.4%, 7.0px 65.2%, 8.3px 63.0%, 9.6px 60.9%, 8.2px 58.7%, 8.6px 56.5%, 7.5px 54.3%, 5.2px 52.2%, 6.0px 50.0%, 6.2px 47.8%, 6.8px 45.7%, 2.7px 43.5%, 2.3px 41.3%, 5.4px 39.1%, 2.8px 37.0%, 1.9px 34.8%, 3.2px 32.6%, 0.9px 30.4%, 4.7px 28.3%, 3.4px 26.1%, 1.3px 23.9%, 1.0px 21.7%, 1.5px 19.6%, 3.6px 17.4%, 3.9px 15.2%, 4.8px 13.0%, 1.6px 10.9%, 0.8px 8.7%, 3.8px 6.5%, -0.0px 4.3%, 3.0px 2.2%, 2.4px 0.0%);
  --tear-yes-row: polygon(0 0, 100% 0, 100.0% calc(100% - 6.0px), 97.8% calc(100% - 8.1px), 95.7% calc(100% - 5.3px), 93.5% calc(100% - 6.9px), 91.3% calc(100% - 9.0px), 89.1% calc(100% - 8.6px), 87.0% calc(100% - 8.4px), 84.8% calc(100% - 7.0px), 82.6% calc(100% - 5.7px), 80.4% calc(100% - 4.1px), 78.3% calc(100% - 6.2px), 76.1% calc(100% - 5.8px), 73.9% calc(100% - 5.8px), 71.7% calc(100% - 3.7px), 69.6% calc(100% - 4.1px), 67.4% calc(100% - 2.6px), 65.2% calc(100% - 0.8px), 63.0% calc(100% - 3.5px), 60.9% calc(100% - 0.0px), 58.7% calc(100% - 1.6px), 56.5% calc(100% - 2.5px), 54.3% calc(100% - 0.6px), 52.2% calc(100% - 0.5px), 50.0% calc(100% - 3.3px), 47.8% calc(100% - 4.3px), 45.7% calc(100% - 6.2px), 43.5% calc(100% - 7.2px), 41.3% calc(100% - 3.4px), 39.1% calc(100% - 5.3px), 37.0% calc(100% - 6.1px), 34.8% calc(100% - 4.6px), 32.6% calc(100% - 8.7px), 30.4% calc(100% - 6.7px), 28.3% calc(100% - 8.1px), 26.1% calc(100% - 7.6px), 23.9% calc(100% - 7.1px), 21.7% calc(100% - 8.8px), 19.6% calc(100% - 5.2px), 17.4% calc(100% - 6.0px), 15.2% calc(100% - 6.7px), 13.0% calc(100% - 8.1px), 10.9% calc(100% - 7.9px), 8.7% calc(100% - 8.9px), 6.5% calc(100% - 9.0px), 4.3% calc(100% - 8.1px), 2.2% calc(100% - 6.7px), 0.0% calc(100% - 9.5px));
  --tear-yes-row-fibre: polygon(0 0, 100% 0, 100.0% calc(100% - 4.0px), 97.8% calc(100% - 6.1px), 95.7% calc(100% - 3.3px), 93.5% calc(100% - 4.9px), 91.3% calc(100% - 7.0px), 89.1% calc(100% - 6.6px), 87.0% calc(100% - 6.4px), 84.8% calc(100% - 5.0px), 82.6% calc(100% - 3.7px), 80.4% calc(100% - 2.1px), 78.3% calc(100% - 4.2px), 76.1% calc(100% - 3.8px), 73.9% calc(100% - 3.8px), 71.7% calc(100% - 1.7px), 69.6% calc(100% - 2.1px), 67.4% calc(100% - 0.6px), 65.2% calc(100% + 1.2px), 63.0% calc(100% - 1.5px), 60.9% calc(100% + 2.0px), 58.7% calc(100% + 0.4px), 56.5% calc(100% - 0.5px), 54.3% calc(100% + 1.4px), 52.2% calc(100% + 1.5px), 50.0% calc(100% - 1.3px), 47.8% calc(100% - 2.3px), 45.7% calc(100% - 4.2px), 43.5% calc(100% - 5.2px), 41.3% calc(100% - 1.4px), 39.1% calc(100% - 3.3px), 37.0% calc(100% - 4.1px), 34.8% calc(100% - 2.6px), 32.6% calc(100% - 6.7px), 30.4% calc(100% - 4.7px), 28.3% calc(100% - 6.1px), 26.1% calc(100% - 5.6px), 23.9% calc(100% - 5.1px), 21.7% calc(100% - 6.8px), 19.6% calc(100% - 3.2px), 17.4% calc(100% - 4.0px), 15.2% calc(100% - 4.7px), 13.0% calc(100% - 6.1px), 10.9% calc(100% - 5.9px), 8.7% calc(100% - 6.9px), 6.5% calc(100% - 7.0px), 4.3% calc(100% - 6.1px), 2.2% calc(100% - 4.7px), 0.0% calc(100% - 7.5px));
  --tear-no-row: polygon(0.0% 2.5px, 2.2% 5.3px, 4.3% 3.9px, 6.5% 3.0px, 8.7% 3.1px, 10.9% 4.1px, 13.0% 3.9px, 15.2% 5.3px, 17.4% 6.0px, 19.6% 6.8px, 21.7% 3.2px, 23.9% 4.9px, 26.1% 4.4px, 28.3% 3.9px, 30.4% 5.3px, 32.6% 3.3px, 34.8% 7.4px, 37.0% 5.9px, 39.1% 6.7px, 41.3% 8.6px, 43.5% 4.8px, 45.7% 5.8px, 47.8% 7.7px, 50.0% 8.7px, 52.2% 11.5px, 54.3% 11.4px, 56.5% 9.5px, 58.7% 10.4px, 60.9% 12.0px, 63.0% 8.5px, 65.2% 11.2px, 67.4% 9.4px, 69.6% 7.9px, 71.7% 8.3px, 73.9% 6.2px, 76.1% 6.2px, 78.3% 5.8px, 80.4% 7.9px, 82.6% 6.3px, 84.8% 5.0px, 87.0% 3.6px, 89.1% 3.4px, 91.3% 3.0px, 93.5% 5.1px, 95.7% 6.7px, 97.8% 3.9px, 100.0% 6.0px, 100.0% 80.0%, 97.4% 82.5%, 95.0% 85.1%, 95.2% 89.3%, 90.8% 90.7%, 89.7% 94.1%, 87.6% 96.9%, 86.0% 100.0%, 0 100%);
  --tear-no-row-fibre: polygon(0.0% 0.5px, 2.2% 3.3px, 4.3% 1.9px, 6.5% 1.0px, 8.7% 1.1px, 10.9% 2.1px, 13.0% 1.9px, 15.2% 3.3px, 17.4% 4.0px, 19.6% 4.8px, 21.7% 1.2px, 23.9% 2.9px, 26.1% 2.4px, 28.3% 1.9px, 30.4% 3.3px, 32.6% 1.3px, 34.8% 5.4px, 37.0% 3.9px, 39.1% 4.7px, 41.3% 6.6px, 43.5% 2.8px, 45.7% 3.8px, 47.8% 5.7px, 50.0% 6.7px, 52.2% 9.5px, 54.3% 9.4px, 56.5% 7.5px, 58.7% 8.4px, 60.9% 10.0px, 63.0% 6.5px, 65.2% 9.2px, 67.4% 7.4px, 69.6% 5.9px, 71.7% 6.3px, 73.9% 4.2px, 76.1% 4.2px, 78.3% 3.8px, 80.4% 5.9px, 82.6% 4.3px, 84.8% 3.0px, 87.0% 1.6px, 89.1% 1.4px, 91.3% 1.0px, 93.5% 3.1px, 95.7% 4.7px, 97.8% 1.9px, 100.0% 4.0px, 100.5% 80.5%, 97.9% 83.0%, 95.5% 85.6%, 95.7% 89.8%, 91.3% 91.2%, 90.2% 94.6%, 88.1% 97.4%, 86.5% 100.5%, 0 100%);
}
/* tear:end */

@property --fork-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

.fork {
  --fork-paper: var(--card);
  --fork-worn: #ECE8DE;
  --fork-fibre: #FBFAF6;
  --fork-shadow: rgb(23 25 31 / 0.16);
  --fork-crease: rgb(23 25 31 / 0.06);
  --fork-crease-lit: rgb(255 255 255 / 0.5);
  --fork-open: 1;
  gap: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fork {
    --fork-worn: #1C1D20;
    --fork-fibre: #3A3B41;
    --fork-shadow: rgb(0 0 0 / 0.5);
    --fork-crease: rgb(0 0 0 / 0.3);
    --fork-crease-lit: rgb(255 255 255 / 0.06);
  }
}

[data-theme="dark"] .fork {
  --fork-worn: #1C1D20;
  --fork-fibre: #3A3B41;
  --fork-shadow: rgb(0 0 0 / 0.5);
  --fork-crease: rgb(0 0 0 / 0.3);
  --fork-crease-lit: rgb(255 255 255 / 0.06);
}

/* Each half is a sheet of its own paper: the fibres, then the surface over
   them, both behind the words. While the sheet is whole the fibres are the
   surface's colour, so the seam does not show. */
.fork .fork__way {
  position: relative;
  isolation: isolate;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-8);
  border-top: 0;
}

.fork__way::before,
.fork__way::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.fork__way::before {
  background: color-mix(in srgb, var(--fork-fibre) calc(var(--fork-open) * 100%), var(--fork-paper));
}

.fork__way::after {
  background: var(--fork-paper);
}

.fork__way--yes::before,
.fork__way--yes::after {
  bottom: calc(-1 * var(--fork-seam));
}

.fork__way--no::before,
.fork__way--no::after {
  top: calc(-1 * var(--fork-seam));
}

.fork__way--yes::before { clip-path: var(--tear-yes-row-fibre); }
.fork__way--yes::after { clip-path: var(--tear-yes-row); }
.fork__way--no::before { clip-path: var(--tear-no-row-fibre); }

/* The worn half: greyer paper and one crease across it. */
.fork__way--no::after {
  clip-path: var(--tear-no-row);
  background:
    linear-gradient(103deg, transparent 61.2%, color-mix(in srgb, var(--fork-crease) calc(var(--fork-open) * 100%), transparent) 61.7%, color-mix(in srgb, var(--fork-crease-lit) calc(var(--fork-open) * 100%), transparent) 62.2%, transparent 62.9%),
    color-mix(in srgb, var(--fork-worn) calc(var(--fork-open) * 100%), var(--fork-paper));
}

/* "We can help" says it at full size; "We can't" quietly. */
.fork__way--yes .fork__answer {
  font-size: var(--size-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.fork__way--no .fork__answer {
  font-size: var(--size-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

.fork__way--no {
  color: color-mix(in srgb, var(--ink-muted) calc(var(--fork-open) * 100%), var(--ink));
  translate: 4px 18px;
  rotate: 1.6deg;
  transform-origin: 100% 0;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--fork-shadow) calc(var(--fork-open) * 100%), transparent));
}

.fork__way--yes {
  transform-origin: 0 100%;
}

/* Room for the half that came away. */
.prose > .fork {
  margin-block: var(--space-6) var(--space-12);
}

.prose > .fork + * {
  margin-top: var(--space-12);
}

/* Side by side: the tear runs down the sheet, and "We can't" tilts away to
   the right. */
@container (min-width: 54rem) {
  .fork__way--yes::before,
  .fork__way--yes::after {
    bottom: 0;
    right: calc(-1 * var(--fork-seam));
  }

  .fork__way--no::before,
  .fork__way--no::after {
    top: 0;
    left: calc(-1 * var(--fork-seam));
  }

  .fork__way--yes::before { clip-path: var(--tear-yes-col-fibre); }
  .fork__way--yes::after { clip-path: var(--tear-yes-col); }
  .fork__way--no::before { clip-path: var(--tear-no-col-fibre); }
  .fork__way--no::after { clip-path: var(--tear-no-col); }

  .fork__way--no {
    translate: 12px 18px;
    rotate: 2.2deg;
    transform-origin: 0 100%;
  }

  .fork__way--yes {
    transform-origin: 100% 100%;
  }

  /* Half a column is too narrow for the display size on a computer (64px
     broke "Podemos" mid-word); the title size still stands well above
     "We can't". */
  .fork__way--yes .fork__answer {
    font-size: var(--size-title);
    line-height: var(--leading-title);
    letter-spacing: var(--tracking-title);
  }
}

/* Whole, until it is torn. */
.fork.is-whole {
  --fork-open: 0;
}

.fork.is-whole .fork__way {
  translate: none;
  rotate: none;
}

/* The tear: the halves part from one end of the seam, the way paper is torn
   by pulling its corners apart; then "We can't" lets go and settles. */
.fork.is-torn {
  transition: --fork-open 700ms var(--ease-out) 520ms;
}

.fork.is-torn .fork__way--yes {
  animation: fork-tear-yes-row 1300ms both;
}

.fork.is-torn .fork__way--no {
  animation: fork-tear-no-row 1300ms both;
}

@container (min-width: 54rem) {
  .fork.is-torn .fork__way--yes {
    animation-name: fork-tear-yes-col;
  }

  .fork.is-torn .fork__way--no {
    animation-name: fork-tear-no-col;
  }
}

@keyframes fork-tear-yes-row {
  0% { rotate: 0deg; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.4); }
  40% { rotate: -0.8deg; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  100% { rotate: 0deg; }
}

@keyframes fork-tear-no-row {
  0% { translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.4); }
  40% { translate: 0 0; rotate: 3deg; animation-timing-function: cubic-bezier(0.25, 0.6, 0.3, 1); }
  100% { translate: 4px 18px; rotate: 1.6deg; }
}

@keyframes fork-tear-yes-col {
  0% { rotate: 0deg; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.4); }
  40% { rotate: -1.2deg; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  100% { rotate: 0deg; }
}

@keyframes fork-tear-no-col {
  0% { translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.4); }
  40% { translate: 0 0; rotate: 4deg; animation-timing-function: cubic-bezier(0.25, 0.6, 0.3, 1); }
  100% { translate: 12px 18px; rotate: 2.2deg; }
}

/* ---------- How it works: a drawing beside each step (Lorenzo, HY-448) ----------
   RB, HY-435: "everything below the 'questions' section is just text ... we
   should have visual elements to accompany most things, even if they are
   subtle". Each step that was only words gets a drawing in the split's art
   slot (under the heading on a computer, after the words on a phone): the call
   as a receiver whose cord runs out into the sound of the call and the typed
   transcript; the first look as a screen sketched in pencil, inked, and pressed
   by the agents' cursor; the fortnight as a printed month with the pen ringing
   every other Monday. Pencil and ink are the page's own greys; only the pen's
   rings are blue, the person's mark. js/drawings.js plays each once, the
   first time it is well in view; the markup is the finished drawing. */

.drawing {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing__line {
  stroke: var(--ink);
  stroke-width: 1.6;
}

.drawing__pencil {
  stroke: var(--pencil);
  stroke-width: 1.1;
}

.drawing__pen {
  stroke: var(--signature);
  stroke-width: 2;
}

.drawing__frame {
  stroke: var(--ink);
  stroke-width: 1.6;
}

.drawing__ink {
  fill: var(--ink);
}

.drawing__typed {
  stroke: var(--ink-muted);
  stroke-width: 2.6;
}

.drawing__wash {
  fill: var(--wash);
  stroke: var(--ink);
  stroke-width: 1;
}

.drawing__rule {
  stroke: var(--rule);
  stroke-width: 1;
}

.drawing__head,
.drawing__day {
  fill: var(--ink);
  stroke: none;
  font-size: 12px;
  font-weight: var(--weight-medium);
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}

.drawing__head {
  fill: var(--ink-muted);
  font-size: 11px;
}

.drawing__day--other {
  fill: var(--pencil);
}

.drawing__cursor {
  color: var(--ink);
}

/* ---------- Thanks: /contact/thanks/ ----------
   The studio's whole name pressed into the paper beside the promise it signs
   (HY-267, RB's pick 6b): an embossed name and a signature in blue are what
   make a document an original. From 60rem the name sits in the narrow column
   beside the signed promise; on a phone it comes first. */

.thanks-signed {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 60rem) {
  .thanks-signed {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-12);
    align-items: center;
  }
}

/* ---------- Thanks: the receipt is your copy (Lorenzo, HY-450) ----------
   RB, HY-435: "please also re-design/beautify all of the tables that look
   like this". The page already shows the studio's half of the receipt, the
   name pressed into the paper and the promise signed in blue. The sender's
   half is the copy you keep of the slip you sent from Contact: thin copy
   paper, its captions printed, your name and the day in carbon. The carbon
   is a filter in the page (#receipt-carbon): a speckle where the paper did
   not take it, uneven pressure along the line, a haze where it spread (none
   on dark paper, where a haze round light words reads as a glow). The
   original, on the slip's own card
   with the same lines in ink, lies over the copy until js/receipt.js lifts it
   away to the studio; with less motion or no script there is only the copy.
   Copy paper is paper: on dark paper it is dark, and the carbon reads light,
   like every other word on the page. */

.receipt {
  --copy-paper: #FCFBF8;
  --carbon: #2B2D36;
  --carbon-smudge: rgb(43 45 54 / 0.05);
  --carbon-filter: url("#receipt-carbon");
  position: relative;
  width: fit-content;
  min-width: min(100%, 19rem);
  max-width: 100%;
}

:root[data-theme="dark"] .receipt {
  --copy-paper: #1E1F23;
  --carbon: #D4D6DB;
  --carbon-smudge: rgb(212 214 219 / 0.04);
  --carbon-filter: url("#receipt-carbon-dark");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .receipt {
    --copy-paper: #1E1F23;
    --carbon: #D4D6DB;
    --carbon-smudge: rgb(212 214 219 / 0.04);
    --carbon-filter: url("#receipt-carbon-dark");
  }
}

.receipt[hidden] {
  display: none;
}

.receipt__copy,
.receipt__original {
  padding: var(--space-3) var(--space-5) var(--space-4);
  border: var(--border-hairline) solid var(--card-edge);
  border-radius: 2px;
}

/* The copy, with the faint grey a hand leaves where it rested on the pad. */
.receipt__copy {
  background:
    radial-gradient(70% 120% at 92% 104%, var(--carbon-smudge), transparent 70%),
    var(--copy-paper);
}

.receipt__title {
  margin-bottom: var(--space-1);
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  line-height: var(--leading-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt__fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--space-4);
}

.receipt__fields dt {
  align-self: end;
  padding-block: var(--space-2) var(--space-1);
  color: var(--ink-muted);
  font-size: var(--size-small);
  line-height: var(--leading-small);
}

/* Each answer written on its printed line, as on the slip. */
.receipt__fields dd {
  min-width: 0;
  padding-block: var(--space-2) var(--space-1);
  border-bottom: var(--border-hairline) solid var(--card-rule);
  color: var(--ink);
  font-size: var(--size-ui);
  font-weight: var(--weight-medium);
  line-height: var(--leading-ui);
  overflow-wrap: anywhere;
}

/* The carbon is on the words only; the printed line under them stays crisp. */
.receipt .receipt__carbon {
  display: inline-block;
  max-width: 100%;
  color: var(--carbon);
  filter: var(--carbon-filter);
}

/* The original: the slip's card, the lines in ink, exactly over the copy. */
.receipt__original {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--card);
  transform-origin: 50% 0;
}

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .receipt:not(.is-written) .receipt__original {
    display: block;
  }
}

/* The filter's own element: present, so the filter works, but takes no room. */
.receipt__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- About: /about/ ---------- */

/* About has its own stylesheet, css/about.css (HY-480). */

/* ---------- Contact: /contact/ ---------- */

/* The page opening, then the promise in ink just below it, the booking button
   and the signature (Callout with an action). The thanks page
   (/contact/thanks/) uses the same block: its receipt, then the promise signed. */
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* The "did not send" line sits under the whole form, at the form's width. */
.contact-form__error {
  max-width: 36rem;
  margin-top: var(--space-6);
}

@media (min-width: 60rem) {
  .contact-intro {
    gap: var(--space-12);
  }
}

/* The order slip (HY-327, RB's pick S1): the slip the Services menu card
   hands you, on the same card stock. Short answers are written on a line,
   the long one on ruled paper; name and company sit side by side where the
   slip is wide enough. On a phone the slip runs edge to edge, like the menu
   card. */
.slip {
  container: slip / inline-size;
  max-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-8) var(--gutter);
  background: var(--card);
  border-block: var(--border-hairline) solid var(--card-edge);
}

/* A short answer is written on a line. */
.slip .field__input:not(textarea) {
  padding-inline: 0;
  background: transparent;
  border-width: 0 0 var(--border-hairline);
  border-radius: 0;
}

.slip .field__input:not(textarea)[aria-invalid="true"] {
  box-shadow: inset 0 -1px 0 var(--error);
}

/* The long answer on ruled paper: one line under every line of text. */
.slip textarea.field__input {
  background-color: var(--field);
  background-image: linear-gradient(to bottom, transparent calc(1lh - 1px), var(--card-rule) calc(1lh - 1px));
  background-size: 100% 1lh;
  background-position: 0 var(--space-3);
  background-origin: border-box;
  background-attachment: local;
  border-radius: 2px;
}

/* A hint written under its line, as a printed form explains a blank. */
.slip .field__input + .field__hint {
  margin-top: var(--space-2);
}

/* A choice with a blank after it, as a paper form's "Other: ____" (the
   budget's figure, HY-475). The blank is written on the words' own line:
   its rule sits just under the baseline of "Roughly:", not 13px below it at
   the foot of a field, and it is as long as a figure needs, not the rest of
   the slip. Its box is still 44px tall for a finger, all of it above the
   rule. Where the row has no room for a short figure (large text, the
   narrowest phones), the blank drops under its choice. */
.slip .choice-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-3);
}

.slip .choice-figure > .choice {
  flex: none;
}

.slip .choice-figure > .field__input {
  flex: 1 1 0;
  min-width: 7rem;
  max-width: 16rem;
  min-height: 0;
  margin-top: 0;
  padding-block: calc(var(--tap) - 1em - 1px) 0;
  line-height: 1;
}

.slip__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

@container slip (min-width: 32rem) {
  .slip__pair,
  .slip .choices--two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@container (min-width: 54rem) {
  .slip {
    max-width: calc(36rem + 2 * var(--space-8));
    margin-inline: 0;
    padding: var(--space-8);
    border: var(--border-hairline) solid var(--card-edge);
    border-radius: 2px;
  }
}

/* Two ways in (HY-475, RB's pick 1 of three; the round is on
   design/review/2026-11-18-contact-wide/). From a 1500px screen, where the
   page column starts to grow, Contact's parts stopped growing with it: at
   1920 the promise left 870px of empty paper on its right and the slip 352,
   and from 2040 the Spanish title broke after "la" in its 832px box. Here the
   title runs across the page, and under it the two ways to reach the studio
   stand side by side: booking on the left under the signed promise, which
   stays in view while the reader fills in the slip, and the slip on the
   right from the first screen, its edge on the page's edge. The markup is
   unchanged, so the reading order is too, and below 1500 none of this
   applies. Scoped to the page with both sections: the thanks page shares
   .contact-intro and keeps its own layout. */
@media (min-width: 93.75rem) {
  main:has(> .contact-intro + .l-split) {
    display: grid;
    /* The slip's column is at least the slip and grows to five twelfths on
       the widest screens, so the space between the two ways in stays a gap. */
    grid-template-columns: minmax(0, 7fr) minmax(calc(36rem + 2 * var(--space-8)), 5fr);
    column-gap: clamp(var(--space-16), 0.06 * var(--grow-w), var(--space-32));
    row-gap: var(--space-16);
    align-items: start;
    width: 100%;
    max-width: calc(var(--page-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding: var(--section-gap) var(--gutter);
  }

  main:has(> .contact-intro + .l-split) > .contact-intro {
    display: contents;
  }

  /* The title has the whole page column, so neither language breaks it. */
  main:has(> .contact-intro + .l-split) .section-heading--page {
    grid-column: 1 / -1;
    max-width: none;
  }

  main:has(> .contact-intro + .l-split) .callout--action {
    grid-column: 1;
    grid-row: 2;
  }

  /* The promise stays in view clear of the menu bar, whose torn edge ends
     96px down. The height is in em so that with the browser's text enlarged
     the promise stops following before it can grow taller than the window
     and hide its own button. */
  @media (min-height: 50em) {
    main:has(> .contact-intro + .l-split) .callout--action {
      position: sticky;
      top: calc(96px + var(--space-12));
    }
  }

  /* The promise, the button and the signature keep their wide arrangement in
     a column narrower than the callout's own 54rem switch. */
  main:has(> .contact-intro + .l-split) .callout--action .callout__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "promise promise"
      "action signed";
    align-items: start;
    column-gap: var(--space-12);
    row-gap: var(--space-8);
  }

  main:has(> .contact-intro + .l-split) .callout--action .callout__promise {
    grid-area: promise;
  }

  main:has(> .contact-intro + .l-split) .callout--action .callout__action {
    grid-area: action;
  }

  main:has(> .contact-intro + .l-split) .callout--action .callout__signed {
    grid-area: signed;
  }

  main:has(> .contact-intro + .l-split) > .l-split {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* One column: the heading, its line, the three pen lines, then the slip. */
  main:has(> .contact-intro + .l-split) > .l-split > .l-split__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: var(--space-6);
  }

  main:has(> .contact-intro + .l-split) > .l-split .split-art {
    grid-row: 2;
    grid-column: 1;
    width: 12rem;
  }

  main:has(> .contact-intro + .l-split) > .l-split .contact-form {
    grid-row: 3;
    margin-top: var(--space-4);
  }

  /* The slip keeps its desktop sheet in a column narrower than its own
     54rem switch, and fills the column. */
  main:has(> .contact-intro + .l-split) > .l-split .slip {
    max-width: none;
    margin-inline: 0;
    padding: var(--space-8);
    border: var(--border-hairline) solid var(--card-edge);
    border-radius: 2px;
  }
}

/* ---------- Privacy: /privacy/ ----------
   A short notice typed on the studio's paper (HY-384): the page's opening
   with the short version, then each part of the notice as a row of a printed
   form, parted by a hairline. The rows take About's split (the heading beside
   its words from 54rem, above them on a phone) at a document's pace: a row's
   space, not a section's, and the heading at the heading step, so six parts
   read as one notice rather than six chapters. A text page: no art. */

.notice-intro {
  padding-bottom: var(--space-12);
}

.notice {
  padding-bottom: var(--section-gap);
}

.notice__part {
  padding-block: var(--space-8);
  border-top: var(--border-hairline) solid var(--rule);
}

/* On a phone the heading sits close over its own words. */
.notice__part > .l-split__inner {
  gap: var(--space-3);
}

/* Beside it, the heading shares the first line of its words. */
@container (min-width: 54rem) {
  .notice__part > .l-split__inner {
    align-items: baseline;
    gap: var(--space-12);
  }
}

.notice__date {
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--ink-muted);
}

@media (min-width: 60rem) {
  .notice__part {
    padding-block: var(--space-12);
  }
}
