/* Ruddock & Daughter, Plumbing & Heating
   Direction: "The page is the object" : the page is the carbon-copy work order.
   Type: Rokkitt 800 (display) + Literata (text). Palette: oxblood and grey, a two-colour print job. */

:root {
  --bg: #e2e2e2;          /* grey paper ground */
  --surface: #d6d6d6;     /* one step down */
  --paper: #efefed;       /* the ticket itself, one step up */
  --ink: #7d0c14;         /* oxblood: every word */
  --muted: #74454a;
  --accent: #7d0c14;
  --accent-strong: #5c0910;
  --accent-ink: #efefed;
  --field: #7d0c14;       /* the one red field, and the footer */
  --field-ink: #e8e2e2;

  --font-display: "Rokkitt", "Rockwell", Georgia, serif;
  --font-text: "Literata", Georgia, serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --step-title: clamp(2.75rem, 1rem + 6.4vw, 7rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 11rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;

  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Ccircle cx='3' cy='3' r='2' fill='%237d0c14'/%3E%3C/svg%3E");
  --dots-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Ccircle cx='3' cy='3' r='2' fill='%23efefed'/%3E%3C/svg%3E");
  --perf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23b5a3a5'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.emergency :focus-visible, .foot :focus-visible { outline-color: var(--field-ink); }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- type roles ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
.head { font-size: var(--step-head); line-height: 0.9; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); }

/* ---------- grid and frame ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); padding-inline: var(--margin);
  max-width: 1840px; margin-inline: auto;
}

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: var(--step-body); line-height: 1; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--bar { display: flex; width: 100%; min-height: 3.5rem; }
.button--ghost { background: var(--ink); }
.link-arrow {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
.link-arrow::after { content: "\00a0→"; display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link-arrow:hover { text-decoration-color: currentColor; }
  .link-arrow:hover::after { transform: translateX(4px); }
}

/* the perforation and the dot leaders, drawn as round dots, never as a line */
.perf { height: 8px; background: var(--perf) repeat-x left center; margin-inline: -4px; }
.row { display: grid; grid-template-columns: auto minmax(1.5rem, 1fr) auto; column-gap: 0.6rem; align-items: last baseline; }
.row > i { align-self: end; height: 6px; margin-bottom: 0.42em; background: var(--dots) repeat-x left center; opacity: 0.55; }
.row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ======================================================================
   HERO : the work order lying on the basement floor
   ====================================================================== */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: clamp(1rem, 5vh, 3.5rem) var(--margin); overflow: clip; background: #262424;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  filter: grayscale(1) brightness(0.52) contrast(1.08);
}
.ticket { background: var(--paper); color: var(--ink); }
.hero__card {
  --stub: 6.5rem;
  position: relative; z-index: 1;
  width: min(100%, 60rem, calc((100vw - 2 * var(--margin)) * 8 / 12));
  min-width: min(100%, 52rem);
  min-height: 64svh;
  padding: 1.75rem 2rem 0;
  display: flex; flex-direction: column;
}
@supports (clip-path: shape(from 0 0, line to 1px 1px)) {
  .hero__card {
    clip-path: shape(from 0 0, hline to 100%, vline to calc(100% - var(--stub) - 16px),
      arc to 100% calc(100% - var(--stub) + 16px) of 16px ccw, vline to 100%, hline to 0,
      vline to calc(100% - var(--stub) + 16px), arc to 0 calc(100% - var(--stub) - 16px) of 16px ccw, close);
  }
}
.ticket__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; font-size: var(--step-small); }
.nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.nav a, .nav__action { text-decoration: none; font-weight: 600; padding-block: 0.4rem; border-bottom: 2px solid transparent; transition: border-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .nav__action:hover { border-bottom-color: currentColor; } }
.menu { display: none; }

.ticket__head { margin-top: auto; padding-top: 2.5rem; position: relative; }
.hero__plate { position: absolute; right: 0; top: 2.5rem; width: clamp(7rem, 10vw, 9.5rem); rotate: 2.5deg; }
.hero__plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 44% 40%; padding: 6px; background: var(--surface); filter: grayscale(1) contrast(1.08); }
.hero__plate figcaption { margin-top: 0.5rem; font-size: var(--step-small); line-height: 1.3; color: var(--muted); }
.hero__title { font-size: var(--step-title); line-height: 0.86; }
.hero__title .line { display: block; }
.hero__trade {
  margin-top: 0.9rem; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--step-lead); line-height: 1.1; letter-spacing: 0.01em;
}
.ticket__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; align-items: start;
  margin-top: 2rem; padding-bottom: 1.75rem;
}
.facts { display: grid; gap: 0.55rem; }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; align-items: baseline; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-weight: 600; line-height: 1.3; }
.hero__lede { max-width: 34ch; line-height: 1.45; }

.ticket__stub {
  height: var(--stub); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.stub-note { font-size: var(--step-small); color: var(--muted); max-width: 18ch; line-height: 1.35; }
.ticket__stub .link-arrow { justify-self: end; }
.button--call { min-height: 3.5rem; padding-inline: 2rem; font-size: var(--step-lead); }

/* ======================================================================
   PRICES : giant word over filled bar rows, with a pinned picture plate
   ====================================================================== */
.prices { padding-block: var(--section); }
.prices__list { grid-column: 1 / span 6; container-type: inline-size; }
.giant {
  font-size: 37cqw; line-height: 0.78; letter-spacing: -0.015em; margin-left: -0.04em;
  white-space: nowrap;
}
.giant span { display: inline-block; }
.prices__intro { margin-top: 2rem; max-width: 52ch; }
.bars { margin-top: 2.25rem; display: grid; gap: 6px; }
.bar { background: var(--surface); interpolate-size: allow-keywords; }
.bar summary {
  list-style: none; cursor: pointer; min-height: 3.75rem; padding: 0.7rem 1.15rem;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  font-weight: 600; transition: background-color var(--t-hover) ease;
}
.bar summary::-webkit-details-marker { display: none; }
.bar summary::after {
  content: "+"; font-family: var(--font-display); font-weight: 800; font-size: 1.6em; line-height: 1;
  width: 1ch; text-align: center; transition: transform var(--t-ui) var(--ease-out);
}
.bar[open] summary::after { transform: rotate(45deg); }
.bar__from { font-weight: 400; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .bar summary:hover { background: #cdcdcd; } }
.bar::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--ease-out), content-visibility 420ms allow-discrete; }
.bar[open]::details-content { block-size: auto; }
.bar__panel { padding: 0.25rem 1.15rem 1.5rem; }
.bar__pic { display: none; }
.items { display: grid; gap: 1rem; }
.items li { display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; }
.item__name { font-weight: 600; line-height: 1.35; }
.item__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__note { grid-column: 1; font-size: var(--step-small); color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }
.prices__fee { margin-top: 1.75rem; max-width: 52ch; }

.plates { grid-column: 8 / span 5; align-self: stretch; }
.plates__frame {
  position: sticky; top: 9vh; aspect-ratio: 4 / 5; max-height: 82vh; margin-left: auto; width: 100%;
  background: var(--surface); overflow: clip;
}
.plate { position: absolute; inset: 0; opacity: 0; transition: opacity 520ms var(--ease-out); }
.plate.is-on { opacity: 1; }
.plate img, .plate video {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06);
}
.plate figcaption {
  position: absolute; left: 0; bottom: 0; padding: 0.55rem 0.8rem; background: var(--paper);
  font-size: var(--step-small); line-height: 1.3;
}

/* ======================================================================
   EMERGENCIES : the reply card on the red field
   ====================================================================== */
.emergency { position: relative; background: var(--field); color: var(--field-ink); overflow: clip; }
.emergency .grid { align-items: center; min-height: 92svh; }
.emergency__text { grid-column: 1 / span 5; padding-block: var(--section) calc(var(--section) * 0.8); }
.emergency__pic { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin: 0; overflow: clip; background: #5c0910; }
.emergency__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: grayscale(1) contrast(1.05) brightness(0.92); }
.emergency h2 { margin-bottom: 1.5rem; }
.emergency .lead { max-width: 30ch; }
.emergency__fee { margin-top: 1.5rem; max-width: 46ch; }
.reply { grid-column: 7 / -1; align-self: start; margin-top: clamp(3.5rem, 10vh, 7rem); position: relative; z-index: 1; padding-inline: clamp(0rem, 3vw, 3rem); }
.reply__card {
  background: var(--paper); color: var(--ink); aspect-ratio: 7 / 5; width: 100%;
  padding: 3rem 3.5rem; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem;
  transform: rotate(-2deg); transform-origin: 50% 100%;
}
.reply__title { font-size: var(--step-lead); line-height: 1.05; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); }
.reply__card p { max-width: 40ch; }
.reply__card .button { max-width: 30rem; font-size: var(--step-lead); }
.reply__gas { font-size: var(--step-small); color: var(--muted); }

/* ======================================================================
   HOW IT WORKS : the itinerary on a slip
   ====================================================================== */
.how { padding-block: calc(var(--section) + 2rem) var(--section); }
.how__intro { grid-column: 1 / span 5; }
.how__pin { position: sticky; top: 8vh; }
.how__pin p { margin-top: 1.5rem; max-width: 30ch; }
.how__pic { margin-top: 2.5rem; aspect-ratio: 4 / 3; overflow: clip; max-width: 34rem; background: var(--surface); }
.how__pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.slip {
  grid-column: 7 / span 5; background: var(--paper); padding: 2.75rem 2.5rem 4rem; margin-left: -2.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 98.077% 100%, 96.154% calc(100% - 14px), 94.231% 100%, 92.308% calc(100% - 14px), 90.385% 100%, 88.462% calc(100% - 14px), 86.538% 100%, 84.615% calc(100% - 14px), 82.692% 100%, 80.769% calc(100% - 14px), 78.846% 100%, 76.923% calc(100% - 14px), 75% 100%, 73.077% calc(100% - 14px), 71.154% 100%, 69.231% calc(100% - 14px), 67.308% 100%, 65.385% calc(100% - 14px), 63.462% 100%, 61.538% calc(100% - 14px), 59.615% 100%, 57.692% calc(100% - 14px), 55.769% 100%, 53.846% calc(100% - 14px), 51.923% 100%, 50% calc(100% - 14px), 48.077% 100%, 46.154% calc(100% - 14px), 44.231% 100%, 42.308% calc(100% - 14px), 40.385% 100%, 38.462% calc(100% - 14px), 36.538% 100%, 34.615% calc(100% - 14px), 32.692% 100%, 30.769% calc(100% - 14px), 28.846% 100%, 26.923% calc(100% - 14px), 25% 100%, 23.077% calc(100% - 14px), 21.154% 100%, 19.231% calc(100% - 14px), 17.308% 100%, 15.385% calc(100% - 14px), 13.462% 100%, 11.538% calc(100% - 14px), 9.615% 100%, 7.692% calc(100% - 14px), 5.769% 100%, 3.846% calc(100% - 14px), 1.923% 100%, 0% calc(100% - 14px));
}
.slip__group + .slip__group { margin-top: 2.25rem; }
.slip h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-body); letter-spacing: 0; margin-bottom: 0.7rem; }
.slip ul { display: grid; gap: 0.55rem; }
.row--total {
  margin-top: 2.5rem; background: var(--ink); color: var(--paper); min-height: 3rem;
  padding: 0.7rem 1rem; margin-inline: -1rem; align-items: center; font-weight: 600;
}
.row--total > i { background-image: var(--dots-light); margin-bottom: 0.35em; align-self: center; }

/* ======================================================================
   ABOUT : the letter on a sheet with a tear-off strip, beside the licences
   ====================================================================== */
.about { background: var(--surface); padding-block: var(--section); }
.about .grid { align-items: start; }
.letter { grid-column: 1 / span 6; }
.letter__sheet {
  position: relative; background: var(--paper); padding: 3.5rem 3.75rem 3.25rem;
}
.letter__sheet::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Ccircle cx='14' cy='0' r='14' fill='%23efefed'/%3E%3C/svg%3E") repeat-x left top;
}
.letter__seal { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 40% 30%; filter: grayscale(1) contrast(1.1); margin-bottom: 1.75rem; }
.letter__title { font-size: var(--step-head); line-height: 0.9; margin-bottom: 1.75rem; }
.letter__sheet p { max-width: 58ch; }
.letter__sheet p + p { margin-top: 1em; }
.letter__sign { margin-top: 2rem !important; font-style: italic; font-size: var(--step-lead); line-height: 1.2; }
.letter__sign span { display: block; font-style: normal; font-size: var(--step-small); color: var(--muted); margin-top: 0.4rem; }
.letter__tear {
  margin-top: 2.25rem; background: var(--paper); min-height: 4.5rem; padding: 1rem 3.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative;
}
.letter__tear::before { content: ""; position: absolute; left: 0; right: 0; top: -1.4rem; height: 8px; background: var(--perf) repeat-x left center; }
.letter__tear a:not(.button) { font-weight: 600; text-underline-offset: 0.2em; }
.letter__tear .button { display: none; }

.licences { grid-column: 8 / span 5; display: grid; gap: 2.5rem; padding-top: 3.5rem; position: sticky; top: 6vh; }
.licences dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 0.9; font-variant-numeric: tabular-nums; }
.licences dd { margin-top: 0.6rem; max-width: 30ch; }

/* ======================================================================
   AREA : the valley drawn as a map
   ====================================================================== */
.area { padding-block: var(--section); }
.area__text { grid-column: 3 / span 8; text-align: center; }
.area__text h2 { margin-bottom: 1.5rem; }
.area__text p { max-width: 62ch; margin-inline: auto; }
.towns { display: none; }
.towns li {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem;
  background: var(--surface); font-variant-numeric: tabular-nums;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.towns li span:first-child { font-weight: 600; }
.towns li.is-hot { background: var(--ink); color: var(--paper); }

.map { grid-column: 1 / -1; margin-top: clamp(2.5rem, 5vw, 4.5rem); position: relative; aspect-ratio: 12 / 5; background: #cbcbcb; overflow: clip; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__ring--far { fill: #dadada; }
.map__ring--near { fill: var(--paper); }
.map__river { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map__road { fill: none; stroke: #9c8a8c; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.1 13; vector-effect: non-scaling-stroke; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-9px, -50%);
  display: flex; align-items: center; gap: 0.45rem;
  font-size: var(--step-small); line-height: 1; white-space: nowrap; pointer-events: auto; cursor: default;
}
.pin::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); flex: none; transition: transform var(--t-ui) var(--ease-out); }
.pin b { font-weight: 600; background: var(--paper); padding: 0.35rem 0.5rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.pin em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 0.25rem; transition: color var(--t-hover) ease; }
.pin--shop::before { border-radius: 0; width: 22px; height: 22px; }
.pin--shop { transform: translate(-11px, -50%); }
.pin--shop b, .pin.is-hot b { background: var(--ink); color: var(--paper); }
.pin--shop em, .pin.is-hot em { color: var(--paper); }
.pin.is-hot::before { transform: scale(1.4); }
.pin--lm { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -50%); }
@media (min-width: 1101px) { .pin { font-size: var(--step-body); } .pin::before { width: 20px; height: 20px; } .pin--shop::before { width: 24px; height: 24px; } }
.map__key { position: absolute; left: 1.25rem; bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-small); }
.key { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 3px solid #b8b0b1; }
.key--near { background: var(--paper); }
.key--far { background: #dadada; margin-left: 0.6rem; }

/* ======================================================================
   QUESTIONS : answers set as reading text
   ====================================================================== */
.faq { background: var(--paper); padding-block: var(--section); }
.faq__title { grid-column: 1 / span 4; align-self: start; position: sticky; top: 8vh; }
.faq__text { grid-column: 5 / -1; columns: 2; column-gap: var(--gutter); }
.faq__text p { break-inside: avoid; margin-bottom: 1.4rem; max-width: 46ch; }
.faq__text strong { font-weight: 600; }

/* ======================================================================
   REQUEST : the blank ticket on a photograph of the valley's houses
   ====================================================================== */
.request { position: relative; display: grid; background: #6f6c6c; overflow: clip; }
.request > * { grid-area: 1 / 1; }
.request__photo { width: 100%; height: 100%; min-height: 100svh; object-fit: cover; object-position: 0% 88%; filter: grayscale(1) contrast(1.05) brightness(0.9); }
.request__card {
  position: relative; z-index: 1; justify-self: end; align-self: start; width: min(calc(100% - 2 * var(--margin)), 36rem);
  margin: clamp(3rem, 8vh, 5rem) var(--margin); padding: 2.25rem 2.25rem 0;
}
.request__title { font-size: var(--step-head); line-height: 0.9; }
.request__lede { margin-top: 1rem; }
.job { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.job__who { display: grid; gap: 1.25rem; }
@media (min-width: 1101px) {
  .request__card { --col: calc((100vw - 2 * var(--margin) - 11 * var(--gutter)) / 12); width: calc(8 * var(--col) + 7 * var(--gutter) + 3rem); max-width: 62rem; padding: 2.75rem 3rem 0; }
  .job { grid-template-columns: 1fr 1fr; grid-template-areas: "set set" "where tally" "who tally" "send send" "done done"; column-gap: 2.5rem; }
  .job__set { grid-area: set; } .job__where { grid-area: where; } .job__tally { grid-area: tally; align-self: start; }
  .job__who { grid-area: who; } .job__send { grid-area: send; margin-inline: -3rem; padding: 0.5rem 3rem 2rem; }
  .request .job__send .button { margin-inline: -3rem; width: calc(100% + 6rem); }
  .job__done { grid-area: done; }
}
.job legend, .field-wrap > span { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 0.45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.85rem;
  background: var(--surface); font-size: var(--step-small); font-weight: 600; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chips label:active span { transform: scale(0.96); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked) + span:hover { background: #cdcdcd; } }
.job__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem; background: var(--bg); color: var(--ink);
  border: 0; border-radius: 0; font-size: max(1rem, var(--step-small)); appearance: none;
}
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d0c14' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem;
}
textarea.field { resize: vertical; min-height: 5.5rem; }
.field::placeholder { color: #8a6f72; }
.tally { display: grid; gap: 0.4rem; padding: 1.1rem 1.1rem 0; background: var(--bg); }
.tally .row { font-size: var(--step-small); }
.tally .row > span:first-child { color: var(--muted); }
.tally .row > span:last-child { font-weight: 600; }
.tally .row--total { margin: 0.6rem -1.1rem 0; padding: 0.8rem 1.1rem; font-size: var(--step-body); }
.tally .row--total > span:first-child { color: var(--paper); }
.tally.is-new [data-out] { animation: stamp 420ms var(--ease-out); }
@keyframes stamp { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tally__note { font-size: var(--step-small); color: var(--muted); margin-top: 0.75rem; }
.job__send { display: grid; gap: 1rem; justify-items: center; margin-inline: -2.25rem; padding: 0 2.25rem 2rem; }
.job__send .button { margin-inline: -2.25rem; width: calc(100% + 4.5rem); min-height: 3.75rem; font-size: var(--step-lead); }
.job__done { margin: 0 0 2rem; padding: 1rem 1.1rem; background: var(--ink); color: var(--paper); }

/* ======================================================================
   FOOTER : the back of the card
   ====================================================================== */
.foot { background: var(--field); color: var(--field-ink); padding: calc(var(--section) * 0.8) var(--margin) 2rem; }
.foot__card {
  position: relative; background: var(--paper); color: var(--ink);
  max-width: 1840px; margin: 0 auto; width: calc(100% * 10 / 12 + var(--gutter));
  padding: 4.5rem clamp(1.5rem, 4vw, 4rem) 2rem;
}
.foot__card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34 A50 34 0 0 1 100 34 Z' fill='%23efefed'/%3E%3C/svg%3E") repeat-x left bottom / calc(100% / 12) 34px;
}
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.foot__note p { margin-top: 1.5rem; max-width: 40ch; }
.foot__address { position: relative; display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.foot__address ul { display: grid; gap: 0.75rem; font-size: var(--step-body); order: -1; }
.foot__address a { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot__address a:hover { text-decoration-color: currentColor; } }
.foot__stamp { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 42% 40%; padding: 6px; background: var(--surface); filter: grayscale(1) contrast(1.08); flex: none; transform: rotate(3deg); }
.foot__imprint { margin-top: 3.5rem; padding-top: 1.5rem; font-size: var(--step-small); color: var(--muted); background: var(--perf) repeat-x left top; }
.foot__credits { margin-top: 1.5rem; font-size: var(--step-small); line-height: 1.5; color: var(--ink); }
.foot__credits ul { margin-top: 0.75rem; columns: 3 16rem; column-gap: 2.5rem; }
.foot__credits li { break-inside: avoid; margin-bottom: 0.45rem; }
.foot__credits a { text-underline-offset: 0.15em; }
.foot__sample { margin-top: 2rem; text-align: center; font-size: var(--step-small); }
.foot__sample a { color: var(--field-ink); text-underline-offset: 0.2em; }

/* ======================================================================
   THE STUB : the ticket stub that stays with you, with the phone number
   ====================================================================== */
.stub { display: none; }
.stub span { font-size: var(--step-small); }
.stub b { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); letter-spacing: 0.02em; }
@media (max-width: 600px) {
  .stub {
    display: grid; position: fixed; right: var(--margin); bottom: 0.75rem; z-index: 20;
    gap: 0.1rem; padding: 0.6rem 1rem; min-height: 3.5rem;
    background: var(--ink); color: var(--paper); text-decoration: none; line-height: 1.1;
    transform: translateY(160%); visibility: hidden;
    transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
  }
  .stub.is-on { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
  .stub.is-on:active { transform: scale(0.97); }
}

/* ======================================================================
   MOTION : entrances, the hero load, the moving picture
   ====================================================================== */
.lines .line { display: inline-block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
.lines [data-line] { display: inline-block; }
.shutter { overflow: clip; }

@media (prefers-reduced-motion: no-preference) {
  /* hero: the photo settles, the card is laid down, the name rises out of its line */
  .js .hero__photo { transform: scale(1.1); animation: settle 1600ms var(--ease-soft) forwards; }
  .js .hero__card { opacity: 0; transform: translateY(28px) rotate(-0.6deg); animation: lay 900ms var(--ease-expo) 80ms forwards; }
  .js .hero [data-line] { transform: translateY(105%); animation: rise-line 900ms var(--ease-expo) forwards; animation-delay: calc(260ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }

  /* sections: heading, then text, then picture */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 520ms var(--ease-out), transform 700ms var(--ease-expo); transition-delay: var(--delay, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] > img, .js .plates__frame.shutter[data-reveal] .plate { clip-path: inset(0 0 100% 0); transition: clip-path 760ms var(--ease-in-out) var(--delay, 0ms), opacity 520ms var(--ease-out); }
  .js .shutter[data-reveal] > img { scale: 1.12; transition: clip-path 760ms var(--ease-in-out) var(--delay, 0ms), scale 1100ms var(--ease-soft) var(--delay, 0ms); }
  .js .shutter[data-reveal].is-in > img, .js .plates__frame.shutter[data-reveal].is-in .plate { clip-path: inset(0); scale: 1; }

  /* lists arrive item by item */
  .js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 480ms var(--ease-out), transform 640ms var(--ease-expo); transition-delay: calc(var(--n, 0) * 55ms); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }

  /* the giant word rises out of the price list */
  .js .giant span { transform: translateY(60%); opacity: 0; transition: transform 1000ms var(--ease-expo), opacity 500ms var(--ease-out); }
  .js .giant.is-in span { transform: none; opacity: 1; }
  .giant { overflow: clip; padding-bottom: 0.05em; }

  /* the reply card is dropped on the field and settles at its angle */
  .js [data-drop] .reply__card { transform: translateY(80px) rotate(-7deg); opacity: 0; transition: transform 900ms var(--ease-expo), opacity 400ms var(--ease-out); }
  .js [data-drop].is-in .reply__card { transform: rotate(-2deg); opacity: 1; }

  /* the slip prints row by row */
  .js [data-print] .row, .js [data-print] h3 { opacity: 0; transform: translateY(-8px); transition: opacity 300ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(var(--n, 0) * 40ms); }
  .js [data-print].is-in .row, .js [data-print].is-in h3 { opacity: 1; transform: none; }

  /* the map: the van's run, town by town in drive-time order */
  .js [data-map] .pin { opacity: 0; transition: opacity 500ms var(--ease-out); transition-delay: calc(var(--n, 0) * 60ms + 150ms); }
  .js [data-map] .pin::before { transform: scale(0.4); transition: transform 520ms var(--ease-expo); transition-delay: calc(var(--n, 0) * 60ms + 150ms); }
  .js [data-map].is-in .pin { opacity: 1; }
  .js [data-map].is-in .pin::before { transform: none; }
  .js [data-map].is-in .pin.is-hot::before { transform: scale(1.5); transition-delay: 0ms; }
  .js [data-map] .map__river { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-in-out) 60ms; }
  .js [data-map].is-in .map__river { stroke-dashoffset: 0; }
  .js [data-map] .map__ring { transform-box: fill-box; transform-origin: center; transform: scale(0.6); opacity: 0; transition: transform 1400ms var(--ease-expo), opacity 800ms var(--ease-out); }
  .js [data-map] .map__ring--near { transition-delay: 200ms; }
  .js [data-map].is-in .map__ring { transform: none; opacity: 1; }

  /* the hero photo drifts as the card leaves */
  @supports (animation-timeline: view()) {
    .hero__photo { animation: settle 1600ms var(--ease-soft) both, drift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    .js .hero__photo { animation: settle 1600ms var(--ease-soft) forwards, drift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    .request__photo { animation: drift-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes drift { from { translate: 0 0; } to { translate: 0 9%; } }
@keyframes drift-up { from { translate: 0 -3%; scale: 1.08; } to { translate: 0 3%; scale: 1.08; } }
@keyframes lay { to { opacity: 1; transform: none; } }
@keyframes rise-line { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ======================================================================
   TABLET
   ====================================================================== */
@media (max-width: 1100px) {
  .prices__list { grid-column: 1 / span 7; }
  .plates { grid-column: 9 / -1; }
  .emergency__text { grid-column: 1 / span 6; }
  .reply { grid-column: 7 / -1; }
  .reply__card { padding: 2.25rem 2rem 5.5rem; aspect-ratio: auto; min-height: 22rem; }
  .how__intro { grid-column: 1 / span 5; }
  .slip { grid-column: 6 / -1; }
  .letter { grid-column: 1 / span 7; }
  .licences { grid-column: 9 / -1; }
  .letter__sheet { padding: 2.5rem 2.25rem; }
  .letter__tear { padding-inline: 2.25rem; }
  .faq__title { grid-column: 1 / -1; position: static; margin-bottom: 2.5rem; }
  .faq__text { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__card { min-width: 0; width: 100%; }
  .ticket__body { grid-template-columns: 1fr; }
  .prices__list { grid-column: 1 / -1; }
  .plates { display: none; }
  .bar__pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.06); margin: 0.5rem 0 1.25rem; background: var(--bg); }
  .emergency { padding-top: var(--section); }
  .emergency .grid { min-height: 0; }
  .emergency__text { grid-column: 1 / -1; padding-block: 0 3rem; }
  .emergency__pic { position: relative; width: 100%; aspect-ratio: 4 / 3; max-width: 34rem; margin-bottom: 2.5rem; }
  .reply { grid-column: 1 / -1; justify-self: center; width: min(92%, 34rem); align-self: end; margin: 0 0 -4.5rem; padding: 0; }
  .reply__card { padding-bottom: 6rem; }
  .how__intro { grid-column: 1 / -1; margin-bottom: 3rem; }
  .how__pin { position: static; }
  .slip { grid-column: 1 / -1; }
  .letter { grid-column: 1 / -1; }
  .licences { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; padding-top: 4.5rem; gap: 2rem 1.5rem; position: static; }
  .faq__text { columns: 2; column-gap: 2rem; }
  .bars { margin-inline: calc(-1 * var(--margin)); }
  .bar summary, .bar__panel { padding-inline: var(--margin); }
  .slip { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .letter__sheet, .letter__tear { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .foot__card { width: 100%; }
  .foot__credits ul { columns: 2 14rem; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   PHONE : a second composition
   ====================================================================== */
@media (max-width: 600px) {
  :root { --section: 5rem; }
  .hero { align-items: center; padding-block: 1rem; }
  .hero__card { --stub: 8.5rem; min-height: 0; padding: 1.1rem 1.25rem 0; }
  .ticket__top { align-items: center; }
  .nav, .nav__action { display: none; }
  .menu { display: block; position: relative; margin-left: auto; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; padding-inline: 0.25rem; font-size: var(--step-body); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { text-decoration: underline; text-underline-offset: 0.25em; }
  .menu__sheet { position: absolute; right: -1.25rem; top: calc(100% + 0.25rem); z-index: 5; width: min(80vw, 18rem); background: var(--ink); color: var(--paper); padding: 0.6rem 0; display: grid; }
  .menu__sheet a { padding: 0.75rem 1.25rem; text-decoration: none; font-size: var(--step-body); font-weight: 600; }
  .ticket__head { padding-top: 1.25rem; position: static; }
  .hero__card { position: relative; }
  .hero__plate { top: 1.1rem; left: 1.25rem; right: auto; width: 2.75rem; rotate: none; }
  .hero__plate img { aspect-ratio: 1; border-radius: 50%; padding: 0; }
  .hero__plate figcaption { display: none; }
  .hero__title { font-size: clamp(2.6rem, 13.2vw, 3.6rem); line-height: 0.84; }
  .hero__trade { font-size: 1.25rem; }
  .ticket__body { margin-top: 1.4rem; gap: 1rem; padding-bottom: 1.25rem; }
  .facts div { grid-template-columns: 5rem 1fr; gap: 0.5rem; }
  .facts dd { font-size: 1rem; }
  .hero__lede { font-size: 1.0625rem; }
  .ticket__stub { grid-template-columns: 1fr auto; grid-template-rows: auto auto; height: var(--stub); align-content: center; row-gap: 0.85rem; }
  .ticket__stub .button { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .stub-note { grid-row: 2; }
  .ticket__stub .link-arrow { grid-row: 2; }

  .bar summary { gap: 0.6rem; }
  .items li { column-gap: 0.75rem; }

  .emergency { padding-top: 4.5rem; }
  .emergency__pic { margin-bottom: 2rem; }
  .reply { width: 94%; margin-bottom: -3rem; }
  .reply__card { padding: 2rem 1.25rem 4.5rem; transform: rotate(-1deg); gap: 1rem; min-height: 0; }
  .js [data-drop].is-in .reply__card { transform: rotate(-1deg); }

  .slip { padding-block: 2rem 3.25rem; }
  .slip .row { column-gap: 1rem; grid-template-columns: minmax(0, 1fr) auto; }
  .slip .row > i { display: none; }
  .row--total { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }

  .about { padding-top: 4.5rem; }
  .letter__sheet { padding-block: 2rem 2.25rem; }
  .letter__tear { flex-direction: column; align-items: stretch; padding-block: 1.1rem 1.25rem; }
  .letter__tear .button { display: flex; }
  .letter__tear p { font-size: var(--step-small); }
  .licences { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 3.5rem; }
  .faq__text { columns: 1; }


  .area__text { grid-column: 1 / -1; text-align: left; }
  .area__text p { margin-inline: 0; }
  .towns { display: grid; gap: 0.15rem; margin: 2rem calc(-1 * var(--margin)) 0; grid-column: 1 / -1; }
  .towns li { padding-inline: var(--margin); }
  .map { aspect-ratio: 10 / 11; margin-inline: calc(-1 * var(--margin)); }
  .pin em { display: none; }
  .pin { top: var(--my, var(--y)); left: var(--mx, var(--x)); }
  .pin b { padding: 0.28rem 0.4rem; }
  .pin--l { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -50%); }
  .map__key { left: var(--margin); }

  .request { display: block; background: var(--bg); }
  .request__photo { height: 62svh; min-height: 0; }
  .request__card { width: auto; margin: -5rem 0 0; padding: 1.75rem var(--margin) 0; }
  .job__pair { grid-template-columns: 1fr; }
  .job__send { margin-inline: calc(-1 * var(--margin)); padding: 0 var(--margin) 1.75rem; }
  .job__send .button { margin-inline: calc(-1 * var(--margin)); width: calc(100% + 2 * var(--margin)); }

  .foot { padding-top: 5rem; }
  .foot__card { padding: 3rem var(--margin) 1.5rem; margin-inline: calc(-1 * var(--margin)); width: auto; }
  .foot__card::before { background-size: calc(100% / 6) 26px; height: 26px; }
  .foot__address { flex-direction: row; }
  .foot__stamp { width: 64px; }
  .foot__credits ul { columns: 1; }

}
