/*
 * HorseFax public site.
 * Voice:   a barn person talking plainly; reassurance over configuration.
 * Idea:    a horse's papers. Garamond headings as on registration
 *          certificates and show bills, and trust labels drawn as marks.
 * Picture: the record itself, on a phone, with a label on every entry.
 * Colour:  brand v3. Ink fields edge to edge, Paper ground, Brass for the one
 *          action and the marks. Brass is never body text on Paper (2.3:1);
 *          Brass Deep is the text shade. Tokens are mirrored in brand/tokens.json.
 * Type:    EB Garamond (headings, the wordmark face), Hanken Grotesk (text).
 *          Both self-hosted.
 * System:  the type scale, the spacing steps, the grid, the main splits, the
 *          picture crops and the motion are worked out from the mark itself.
 *          Older component values (most small font sizes, many paddings and
 *          margins, pill shapes and circles) are not on the tokens yet. See the
 *          "plate" block in :root, brand/web-system.md and the /colophon page.
 *          CSP: this site allows no inline styles, so all styling lives in this
 *          file.
 * No framework, no third-party requests.
 */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #10223a;
  --brand-2: #1b3558;
  --brand-deep: #0a1627;
  --brand-soft: #e4e8ee;
  --ink: #10223a;
  --muted: #4a5565;
  --paper: #f4f1ea;
  --surface: #fbf9f4;
  --canvas: #eae6db;
  --rule: #d4cdbd;
  --brass: #c9973f;
  --brass-bright: #d9ac58;
  --brass-deep: #7a5614;
  --focus: #1b3558;
  --blue: #2c4a86;
  --blue-soft: #e7ecf6;
  --display: "EB Garamond", "Iowan Old Style", "Georgia", serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* The plate. The mark is drawn on a plate 240 wide and 400 tall. Its face
     runs 248 from the star to the tip and is 153.28 across, and 248 / 153.28 =
     1.61795, the golden ratio to within 0.005 percent. Everything below is
     worked out from that ratio and from the other numbers in the drawing. */
  --phi: 1.618034;                          /* 248 / 153.28 */
  --root-phi: 1.272020;                     /* sqrt(phi): one step of the type scale */
  --u: 4px;                                 /* the unit; a hand on the gauge is 4 marks of 24 */
  --lh: calc(7 * var(--u));                 /* 28px: one line of text */
  --t0: calc(var(--lh) / var(--phi));       /* 17.305px: text, so line / size = phi */
  --t1: calc(var(--t0) * var(--root-phi));  /* 22.01px */
  --t2: calc(var(--t1) * var(--root-phi));  /* 28.00px: two steps = phi, so one line */
  --t3: calc(var(--t2) * var(--root-phi));  /* 35.62px */
  --t4: calc(var(--t3) * var(--root-phi));  /* 45.31px */
  --t5: calc(var(--t4) * var(--root-phi));  /* 57.63px */
  --t6: calc(var(--t5) * var(--root-phi));  /* 73.31px */
  /* Space: Fibonacci numbers times the unit. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 20px;
  --s5: 32px;
  --s6: 52px;
  --s7: 84px;
  --s8: 136px;
  /* Grid: 1152 = 144 * 8. Twelve columns of 74 with 24 between (the gauge has 24 marks). */
  --wrap: 1152px;
  --col-gap: 24px;
  --gutter: max(5vw, var(--s4));
  --measure: 61.8ch;                        /* the golden measure for reading */
  --header-h: calc(40px + var(--lh));       /* the mark (40) and one line */
  /* Corners: 4, 8 and 12. The star on the plate has a radius of 12. */
  --r1: 4px;
  --r2: 8px;
  --r3: 12px;
  --radius: var(--r3);
  /* Motion: Fibonacci milliseconds, and a curve whose handles sit at 0.618 and 0.382. */
  --ease: cubic-bezier(0.618, 0, 0.382, 1);
  --d1: 89ms;
  --d2: 144ms;
  --d3: 233ms;
  --d4: 377ms;
  --d5: 610ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-padding-top: var(--s7); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t0)/var(--lh) var(--text);
  font-kerning: normal;
  font-optical-sizing: auto;
  accent-color: var(--brand);
  caret-color: var(--brass-deep);
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; letter-spacing: 0; font-variant-ligatures: common-ligatures; font-variant-numeric: lining-nums; }
h1 { font-weight: 600; font-size: clamp(var(--t4), 5.8vw, var(--t6)); }
h2 { font-weight: 600; font-size: clamp(var(--t2), 3.4vw, var(--t4)); }
/* An h3 is one step above the text, and its line is one step above itself: 22.01 * 1.272 = 28. */
h3 { font-weight: 600; font-size: var(--t1); line-height: var(--lh); }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .band-green :focus-visible, .band-deep :focus-visible, .foot :focus-visible, .top .menu[open] summary:focus-visible { outline-color: var(--brass-bright); }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--ink); padding: 10px 16px; z-index: 20; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--brand); border-radius: 8px;
  background: var(--brand); color: var(--paper);
  font: 650 1rem/1.2 var(--text); text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: 0.95rem; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgb(244 241 234 / 0.55); }
.btn-ghost:hover { background: rgb(244 241 234 / 0.1); border-color: var(--paper); }
.link-light { color: var(--paper); font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: calc(var(--header-h) - 1px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font: 600 1.45rem/1 var(--display); letter-spacing: 0; }
.brand-mark { width: auto; height: 40px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 11px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.96rem; white-space: nowrap; }
.nav a:hover { background: var(--canvas); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 2px solid var(--brand); border-radius: 8px; color: var(--brand); font-weight: 650; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 18px 40px rgb(10 22 39 / 0.18); padding: 8px; display: grid; }
.menu nav a { padding: 13px 14px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 550; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .top-cta { margin-left: 0; order: 3; }
  .menu { order: 2; }
}
@media (max-width: 520px) { .top-cta { display: none; } }

/* Bands */
.band { padding-block: clamp(var(--s6), 7vw, var(--s7)); }
.band-canvas { background: var(--canvas); }
.band-green { background: var(--brand); color: var(--paper); }
.band-deep { background: var(--brand-deep); color: var(--paper); }
.band-green a:not(.btn), .band-deep a:not(.btn) { color: var(--paper); }
.band-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.band-head p { margin-top: 14px; font-size: 1.13rem; color: var(--muted); }
.band-green .band-head p, .band-deep .band-head p { color: rgb(244 241 234 / 0.86); }

/* Hero */
.hero { background: var(--brand); color: var(--paper); padding-block: clamp(40px, 6vw, 84px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(44px, 7vw, 96px); align-self: center; }
.hero h1 { font-size: clamp(var(--t4), 6.4vw, var(--t6)); }
.hero .lede { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.26rem); line-height: 1.55; color: rgb(244 241 234 / 0.9); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-status { margin-top: 20px; font-size: 0.95rem; color: rgb(244 241 234 / 0.78); }
.hero-figure { justify-self: center; width: min(100%, 372px); }
.hero-figure figcaption { position: absolute; left: -9999px; }

/* Phone illustration */
.phone { background: var(--brand-deep); border-radius: 40px 40px 0 0; padding: 12px 12px 0; box-shadow: 0 0 0 2px rgb(244 241 234 / 0.14), 0 30px 60px rgb(0 0 0 / 0.35); }
.phone-screen { background: var(--canvas); color: var(--ink); border-radius: 30px 30px 0 0; padding: 18px 16px 22px; font-size: 14px; line-height: 1.4; }
.rec-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.rec-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--brand); color: var(--brass); display: grid; place-items: center; font: 600 1.4rem/1 var(--display); }
.rec-name { font: 600 1.45rem/1.1 var(--display); }
.rec-meta { color: var(--muted); font-size: 13px; }
.rec-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.rec-tabs li { padding: 7px 10px; font-weight: 600; font-size: 13px; color: var(--muted); }
.rec-tabs .on { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.rec-list { display: grid; gap: 10px; }
.rec-list li { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 13px; }
.rec-title { font-weight: 700; font-size: 15px; }
.rec-sub { color: var(--muted); font-size: 13px; margin: 2px 0 9px; }
.rec-share { margin-top: 14px; background: var(--brand); color: var(--paper); border-radius: 10px; padding: 12px; text-align: center; font-weight: 650; }

/* Trust labels */
.label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; border: 1.5px solid currentColor; font: 650 0.8rem/1.2 var(--text); white-space: nowrap; }
.label svg { width: 16px; height: 16px; flex: none; }
.label-owner { color: #3a4556; background: var(--surface); }
.label-doc { color: var(--blue); background: var(--blue-soft); }
.label-pro { color: var(--paper); background: var(--brand); border-color: var(--brand); }
.label-lg { font-size: 1rem; padding: 7px 15px 7px 10px; }
.label-lg svg { width: 21px; height: 21px; }

.labels-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.labels-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.labels-list > div { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.labels-list dd { color: var(--ink); }
.labels-claim { margin-top: 16px; font-size: 1.13rem; color: var(--muted); }
.labels-claim strong { color: var(--ink); }

/* Three jobs */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.jobs > article { padding: 26px 28px 6px 0; }
.jobs > article + article { padding-left: 28px; border-left: 1px solid var(--rule); }
.jobs h3 { font-size: var(--t2); font-weight: 600; color: var(--brand); }
.jobs p { margin-top: 10px; }
.ticks { margin-top: 14px; display: grid; gap: 7px; font-size: 0.98rem; color: var(--muted); }
.ticks li { padding-left: 18px; position: relative; }
/* The bullet is a vesica: two circles of one radius, each through the other's centre, so length : width = root 3 : 1. The mark's eyes are the same shape. */
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 13px; height: 7.5px; background: url("../img/vesica.svg") center / contain no-repeat; }

/* Audience */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.who a { display: grid; align-content: start; gap: 8px; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--brand); border-radius: 4px 4px var(--radius) var(--radius); color: var(--ink); text-decoration: none; }
.who a:hover { border-color: var(--brand); background: #fff; }
.who h3 { color: var(--brand); font-size: var(--t2); }
.who span { font-weight: 650; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }

/* Status and form */
.split { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
/* Near-white text is for the dark bands only; on a light band it would be paper on paper. */
.band-green .split .prose p, .band-deep .split .prose p { color: rgb(244 241 234 / 0.9); }
.steps { margin-top: 26px; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid rgb(244 241 234 / 0.22); }
.steps li::before { content: counter(step); font: 600 1.5rem/1.1 var(--display); color: var(--brass); }
.steps strong { display: block; }
.steps span { color: rgb(244 241 234 / 0.82); font-size: 0.98rem; }
.steps .now strong::after { content: "Now"; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--brass); color: var(--ink); font: 700 0.74rem/1.4 var(--text); vertical-align: 2px; }

.card { background: var(--surface); color: var(--ink); border-radius: var(--r3); padding: clamp(var(--s4), 3vw, var(--s5)); border: 1px solid var(--rule); }
.band-deep .card, .band-green .card { border: 0; box-shadow: 0 24px 50px rgb(0 0 0 / 0.28); }
.card h2, .card h3 { font-size: var(--t2); margin-bottom: 6px; }
.card > p { color: var(--muted); margin-bottom: 18px; }
.band-deep .card a:not(.btn), .band-green .card a:not(.btn) { color: var(--brand); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label { font-weight: 650; font-size: 0.96rem; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.86rem; margin-left: 4px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1.5px solid #7c8593; border-radius: 8px; background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--text);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-note { font-size: 0.89rem; color: var(--muted); }
.form-msg { font-weight: 650; }
.form-msg:empty { display: none; }
.form-msg.is-ok { background: var(--brand-soft); color: var(--brand-deep); border-left: 5px solid var(--brand); padding: 14px 16px; border-radius: 6px; }
.form-msg.is-fail { background: #fbeceb; color: #7c1d15; border-left: 5px solid #b3392e; padding: 14px 16px; border-radius: 6px; }
.form.is-done > :not(.form-msg) { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Guides and questions */
.guide-list { display: grid; border-top: 2px solid var(--ink); }
.guide-list a { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.guide-list a:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: 4px; }
.guide-list .cat { color: var(--brass-deep); font-weight: 700; font-size: 0.92rem; padding-top: 4px; }
.guide-list h3, .guide-list h2 { color: var(--brand); font-size: var(--t2); }
.guide-list p { grid-column: 2; color: var(--muted); }
.more { margin-top: 26px; font-weight: 650; }

.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 19px 0; font: 600 var(--t1)/var(--lh) var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 1.6rem/0.8 var(--text); color: var(--brand); flex: none; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 0 22px; max-width: var(--measure); }
.qa-open { border-top: 2px solid var(--ink); }
.qa-open > div { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: 10px 40px; }
.qa-open h2 { font-size: var(--t1); line-height: var(--lh); }

/* Inner pages */
.page-head { background: var(--canvas); border-bottom: 1px solid var(--rule); padding-block: clamp(30px, 4.5vw, 60px) clamp(34px, 5vw, 64px); }
.page-head h1 { max-width: 20ch; font-size: clamp(var(--t3), 5.1vw, var(--t5)); }
.page-head .lede { margin-top: 18px; max-width: 42rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #8b93a0; }
.crumbs a { color: var(--muted); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(var(--t2), 2.8vw, var(--t3)); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { display: grid; gap: 9px; padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.prose .ta-left { text-align: left; }
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.answer { border-left: 5px solid var(--brass); background: var(--canvas); padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; }
.answer b { display: block; font: 600 1.1rem/1.2 var(--display); color: var(--brand); margin-bottom: 6px; }
.aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.aside .card { background: var(--canvas); }
/* Must come after, and match, the rule above: on the landing pages the side cards sit on a canvas band. */
.aside .card-paper { background: var(--paper); }
.aside .card h2 { font-size: 1.4rem; }
.aside ul { display: grid; gap: 9px; }
.not { border: 1px solid var(--rule); border-left: 5px solid var(--ink); padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.not h2, .not h3 { font-size: 1.35rem; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 0.93rem; }
.disclaimer { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.93rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--brand); border-radius: 4px 4px var(--radius) var(--radius); padding: 26px 24px; display: grid; gap: 6px; align-content: start; }
.plan h2 { font-size: var(--t2); color: var(--brand); }
.plan .for { color: var(--muted); min-height: 3.2em; }
.plan .price { font: 600 var(--t4)/1 var(--display); font-variant-numeric: lining-nums tabular-nums; margin-top: 8px; white-space: nowrap; }
.plan .per { font: 500 1rem/1 var(--text); color: var(--muted); }
.plan .year { color: var(--muted); }
.plan .horses { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); font-weight: 650; }
.plans-note { margin-top: 20px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 2px solid var(--ink); }
.facts > div { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.facts h2 { font-size: var(--t1); margin-bottom: 8px; }

/* Closing */
.closing-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.closing p { margin-top: 10px; color: rgb(244 241 234 / 0.86); max-width: 36rem; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* Footer */
.foot { background: var(--brand-deep); color: rgb(244 241 234 / 0.84); padding-block: clamp(44px, 6vw, 72px) 28px; font-size: 0.97rem; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:not(.btn):hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.618fr) repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.foot-brand { display: flex; align-items: center; gap: 14px; font: 600 1.7rem/1 var(--display); color: var(--paper); margin-bottom: 14px; }
.foot-mark { width: auto; height: 48px; flex: none; }
.foot-status { margin: 10px 0 18px; color: rgb(244 241 234 / 0.66); max-width: 22rem; }
.foot-h { font-weight: 700; color: var(--paper); margin-bottom: 12px; }
.foot ul { display: grid; gap: 4px; }
.foot li a { display: inline-block; padding: 5px 0; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(244 241 234 / 0.16); color: rgb(244 241 234 / 0.62); font-size: 0.88rem; }
.foot .btn-brass { color: var(--ink); }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-grid, .labels-grid, .split, .cols { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-figure { width: min(100%, 340px); }
  .jobs, .who, .plans { grid-template-columns: minmax(0, 1fr); }
  .jobs > article, .jobs > article + article { padding: 24px 0 22px; border-left: 0; }
  .jobs > article + article { border-top: 1px solid var(--rule); }
  .aside { position: static; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .plan .for { min-height: 0; }
  .qa-open > div, .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .labels-list > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .guide-list a { grid-template-columns: minmax(0, 1fr); }
  .guide-list p { grid-column: 1; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .prose table { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .who a { transition: background-color var(--d2) var(--ease), border-color var(--d2) var(--ease); }
}
@media print {
  .top, .foot, .closing, .aside, .hero-figure { display: none; }
  body { font-size: 11pt; }
}

/* ---------- Second pass: imagery, sample record, landing pages ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero with painting */
.hero-photo { position: relative; padding: 0; background: var(--brand-deep); isolation: isolate; }
.hero-photo > picture { position: absolute; inset: 0; z-index: -2; }
.hero-photo > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; display: block; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 22 39 / 0.94) 0%, rgb(10 22 39 / 0.84) 38.2%, rgb(10 22 39 / 0.3) 61.8%, rgb(10 22 39 / 0) 85.4%), linear-gradient(0deg, rgb(10 22 39 / 0.55) 0%, rgb(10 22 39 / 0) 30%); }
.hero-photo .hero-copy { max-width: 39rem; padding-block: clamp(64px, 11vw, 148px) clamp(72px, 11vw, 150px); }
.hero-photo h1 { font-size: clamp(var(--t4), 6.8vw, var(--t6)); text-shadow: 0 2px 24px rgb(0 0 0 / 0.35); }
.hero-photo .lede { color: rgb(244 241 234 / 0.94); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-proof .label { background: rgb(251 249 244 / 0.96); border-color: transparent; }
.hero-proof .label-pro { background: var(--brass); color: var(--ink); }
.hero-proof .label-doc { color: var(--blue); }
@media (max-width: 760px) {
  .hero-photo > picture { position: static; display: block; aspect-ratio: 16 / 10; }
  .hero-photo > picture img { object-position: 82% 40%; }
  .hero-photo::before { display: none; }
  .hero-photo .hero-copy { padding-block: 30px 44px; }
  .hero-photo h1 { text-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo .hero-copy > * { animation: hf-rise var(--d5) var(--ease) both; }
  .hero-photo .hero-copy > :nth-child(2) { animation-delay: var(--d1); }
  .hero-photo .hero-copy > :nth-child(3) { animation-delay: calc(2 * var(--d1)); }
  .hero-photo .hero-copy > :nth-child(4) { animation-delay: calc(3 * var(--d1)); }
  .hero-photo .hero-copy > :nth-child(5) { animation-delay: calc(4 * var(--d1)); }
  @keyframes hf-rise { from { opacity: 0; transform: translateY(var(--s4)); } }
}

/* Four places, one record */
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.618fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.places > div { padding: 22px 22px 24px 0; }
.places > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.places b { display: block; font: 600 var(--t1)/var(--lh) var(--display); }
.places span { color: var(--muted); font-size: 0.97rem; }
.places .one { background: var(--brand); color: var(--paper); padding-right: 22px; }
.places .one span { color: rgb(244 241 234 / 0.88); }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } .places > div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--rule); } .places .one { grid-column: 1 / -1; padding: 22px !important; } }

/* Sample record */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.demo-steps { display: grid; gap: 10px; counter-reset: d; }
.demo-steps button { counter-increment: d; width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 2px 12px; text-align: left; padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: 12px; color: var(--ink); font: inherit; cursor: pointer; }
.demo-steps button::before { content: counter(d); grid-row: span 2; font: 600 1.75rem/1.1 var(--display); color: var(--brass-deep); }
.demo-steps b { font: 600 1.32rem/1.2 var(--display); }
.demo-steps span { color: var(--muted); font-size: 0.97rem; }
.demo-steps button:hover { border-color: var(--brand); }
.demo-steps button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 5px 0 0 var(--brand); }
.demo:not(.is-live) .demo-steps { display: none; }
.demo-note { margin: 20px 0 10px; padding: 14px 16px; border-left: 5px solid var(--brass); background: var(--surface); font-weight: 600; border-radius: 0 8px 8px 0; }
.band-canvas .demo-note { background: var(--surface); }
.demo-phone { margin: 0; justify-self: center; width: min(100%, 384px); }
.demo-phone .phone { border-radius: 40px; padding: 12px; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.08), 0 34px 70px rgb(10 22 39 / 0.28); }
.demo-phone .phone-screen { border-radius: 30px; height: 610px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.demo .rec-tabs button { padding: 9px 11px; border: 0; background: none; font: 650 13px/1.2 var(--text); color: var(--muted); cursor: pointer; border-radius: 6px 6px 0 0; }
.demo .rec-tabs button[aria-selected="true"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.d-entry { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.d-entry .rec-title, .d-entry .rec-sub { display: block; }
.rec-list li:has(.d-entry) { padding: 0; }
.rec-list li:has(.d-entry) .d-entry { padding: 12px 13px; border-radius: 12px; }
.rec-list li:has(.d-entry):hover { border-color: var(--brand); }
.d-actions { display: grid; grid-template-columns: 1.618fr 1fr; gap: 8px; margin-top: 14px; position: sticky; bottom: -22px; padding: 10px 0 22px; background: linear-gradient(0deg, var(--canvas) 70%, rgb(234 230 219 / 0)); }
.d-btn { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand); color: var(--paper); font: 650 14px/1.2 var(--text); cursor: pointer; width: 100%; }
.d-btn-line { background: var(--surface); color: var(--brand); }
.d-back { background: none; border: 0; padding: 4px 0 12px; color: var(--brand); font: 650 13.5px/1.2 var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.d-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.d-card .label { justify-self: start; }
.d-big { font: 600 1.34rem/1.2 var(--display); }
.d-why, .d-hint { color: var(--muted); font-size: 13px; }
.d-hint { margin: 4px 2px 10px; }
.d-rows { display: grid; gap: 0; }
.d-rows > div { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.d-rows dt { color: var(--muted); }
.d-rows dd { font-weight: 600; }
.d-amend { border-left: 4px solid var(--brass); background: #f7edd6; padding: 9px 11px; border-radius: 0 8px 8px 0; display: grid; gap: 2px; font-size: 13px; }
.d-set { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.d-set legend { font-weight: 700; font-size: 13px; padding: 0 0 4px; }
.d-set label { display: flex; gap: 9px; align-items: center; min-height: 36px; font-size: 14px; }
.d-set input { width: 19px; height: 19px; accent-color: var(--brand); }
.d-banner { background: var(--blue-soft); color: var(--blue); font-weight: 650; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; }
.d-sec { font: 600 1.12rem/1.2 var(--display); color: var(--brand); }
.d-list { display: grid; gap: 6px; font-size: 13.5px; }
.d-list b { display: block; }
.d-flow { display: grid; gap: 8px; counter-reset: f; font-size: 14px; }
.d-flow li { counter-increment: f; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.d-flow li::before { content: counter(f); width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.d-flow .on { color: var(--ink); font-weight: 650; }
.d-flow .on::before { border-color: var(--brand); color: var(--brand); }
.d-flow .done { color: var(--ink); }
.d-flow .done::before { content: "\2713"; background: var(--brand); border-color: var(--brand); color: var(--paper); }
.d-done { border-color: var(--brand); background: var(--brand-soft); }
@media (prefers-reduced-motion: no-preference) { .demo.is-live .phone-screen > * { animation: hf-in var(--d3) var(--ease) both; } @keyframes hf-in { from { opacity: 0; transform: translateY(6px); } } }
@media (max-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr); } .demo-phone { order: -1; } .demo-phone .phone-screen { height: 560px; } }

/* Picture rows */
.rows { display: grid; gap: clamp(40px, 6vw, 84px); }
.row { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
.row:nth-child(even) .row-pic { order: 2; }
.row-pic { margin: 0; border-radius: var(--r3); overflow: hidden; aspect-ratio: 1.618 / 1; background: var(--brand-soft); box-shadow: 0 24px 50px rgb(10 22 39 / 0.16); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row h3 { font-size: clamp(var(--t2), 2.8vw, var(--t3)); font-weight: 600; }
.row p { margin-top: 12px; font-size: 1.08rem; }
.row .ticks { font-size: 1rem; }
@media (max-width: 760px) { .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .row:nth-child(even) .row-pic { order: 0; } }

/* Audience cards with pictures */
.who.who-pics a { padding: 0 0 22px; overflow: hidden; border-top-width: 0; border-radius: var(--radius); }
.who-pics img { width: 100%; aspect-ratio: 1.618 / 1; object-fit: cover; display: block; }
.who-pics a > :not(img) { margin-inline: 22px; }
.who-pics h3 { margin-top: 12px; }

/* Before and after */
.compare { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 600 1.22rem/1.2 var(--display); border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td:last-child, .compare thead th:last-child { background: var(--brand-soft); font-weight: 600; }
.compare td:nth-child(2) { color: var(--muted); }
@media (max-width: 600px) { .compare thead { display: none; } .compare tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--rule); } .compare th, .compare td { border: 0; padding: 4px 0; width: auto !important; } .compare td:last-child { padding: 10px 12px; border-radius: 8px; margin-top: 6px; } .compare td:nth-child(2)::before { content: "Today: "; font-weight: 700; } }

/* Page head with picture, landing pages, glossary */
.page-head-pic .wrap { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-head-pic figure { margin: 0; border-radius: var(--r3); overflow: hidden; aspect-ratio: 1.618 / 1; box-shadow: 0 20px 44px rgb(10 22 39 / 0.18); }
.page-head-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .page-head-pic .wrap { grid-template-columns: minmax(0, 1fr); } }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.three > div { padding: 24px 26px 8px 0; }
.three-gap { margin-top: clamp(28px, 4vw, 48px); }
.three > div + div { padding-left: 26px; border-left: 1px solid var(--rule); }
.three h3 { color: var(--brand); font-size: var(--t2); }
.three p { margin-top: 8px; }
@media (max-width: 860px) { .three { grid-template-columns: minmax(0, 1fr); } .three > div, .three > div + div { padding: 20px 0; border-left: 0; } .three > div + div { border-top: 1px solid var(--rule); } }
.gloss { border-top: 2px solid var(--ink); }
.gloss > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.gloss dt { font: 600 1.28rem/1.25 var(--display); }
.gloss dt small { display: block; font: 500 0.86rem/1.3 var(--text); color: var(--muted); margin-top: 3px; }
@media (max-width: 700px) { .gloss > div { grid-template-columns: minmax(0, 1fr); } }
.az { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 26px; font-weight: 650; }

/* ==========================================================================
   Third pass: the plate
   Details that come from the drawing. Nothing here needs JavaScript except
   the scroll gauge and the overlays that plate.js builds.
   ========================================================================== */

/* Selecting text looks like the star on ink: ink on bright brass is 7.62 : 1. */
::selection { background: var(--brass-bright); color: var(--ink); }
html { scrollbar-color: var(--brass-deep) var(--paper); }

/* The rim. 24 marks across, a hand on every fourth: 6 hands, as on the mark. */
.rim-wrap { padding-bottom: 0; }
.rim {
  position: relative;
  height: var(--s3);
  margin-bottom: var(--s5);
  border-top: 1px solid rgb(201 151 63 / 0.55);
  background:
    repeating-linear-gradient(90deg, rgb(201 151 63 / 0.55) 0 1px, transparent 1px calc(100% / 6)) top / 100% var(--s3) no-repeat,
    repeating-linear-gradient(90deg, rgb(201 151 63 / 0.55) 0 1px, transparent 1px calc(100% / 24)) top / 100% var(--s1) no-repeat;
}
.rim::after { content: ""; position: absolute; top: 0; right: 0; width: 1px; height: var(--s3); background: rgb(201 151 63 / 0.55); }
.foot-legal { display: grid; gap: var(--s3); }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }
.micro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s5); font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; }

/* The scroll gauge: 24 marks under the header that light as the page is read. */
.gauge { position: absolute; left: 0; right: 0; bottom: 0; height: var(--s2); display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); pointer-events: none; }
.gauge i { display: block; align-self: end; height: var(--s1); border-left: 1px solid var(--rule); }
.gauge i.hand { height: var(--s2); }
.gauge i.is-on { border-left-color: var(--brass); }
@media (prefers-reduced-motion: no-preference) { .gauge i { transition: border-color var(--d2) var(--ease); } }

/* Typed words (plate.js): overlays and the quiet note. */
.plate-overlay { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.plate-overlay > .wrap { height: 100%; }
.plate-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); height: 100%; }
.plate-grid i { display: block; background: rgb(201 151 63 / 0.14); box-shadow: inset 1px 0 rgb(201 151 63 / 0.5), inset -1px 0 rgb(201 151 63 / 0.5); }
.plate-phi { position: relative; height: 100%; }
.plate-phi i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--brass); }
.plate-phi i:nth-child(1) { left: 38.2%; }
.plate-phi i:nth-child(2) { left: 61.8%; }
.plate-phi i::after { content: attr(data-v); position: absolute; top: var(--s3); left: var(--s2); font: 600 0.78rem/1 var(--text); letter-spacing: 0.04em; color: var(--ink); background: var(--brass-bright); padding: var(--s1) var(--s2); border-radius: var(--r1); }
.plate-note {
  position: fixed; left: var(--s4); bottom: var(--s4); z-index: 31;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s4);
  max-width: min(34rem, calc(100vw - 2 * var(--s4)));
  padding: var(--s3) var(--s4);
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--brass); border-radius: var(--r2);
  box-shadow: 0 var(--s4) var(--s6) rgb(10 22 39 / 0.34);
  font-size: 0.95rem; line-height: 1.5;
}
.plate-note:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.plate-note img { width: 72px; height: auto; border-radius: var(--r1); }
.plate-note b { color: var(--brass-bright); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) { .plate-note { animation: hf-rise var(--d4) var(--ease) both; } }

/* 404: the plate in two halves with the star left between them. */
.page-head-mark .wrap { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(var(--s4), 4vw, var(--s7)); align-items: center; }
.split-mark { width: 100%; max-width: 148px; height: auto; margin-inline: auto; display: block; }
@media (max-width: 860px) { .page-head-mark .wrap { grid-template-columns: minmax(0, 1fr); } .split-mark { margin-inline: 0; max-width: 112px; } }

/* Colophon */
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(var(--s5), 5vw, var(--s7)); align-items: start; }
.colophon-grid figure { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.colophon-grid figure img { width: 100%; max-width: 240px; height: auto; border-radius: var(--r3); box-shadow: 0 var(--s5) var(--s6) rgb(10 22 39 / 0.16); }
.colophon-grid figcaption { margin-top: var(--s3); font-size: 0.9rem; color: var(--muted); max-width: 240px; }
@media (max-width: 860px) { .colophon-grid { grid-template-columns: minmax(0, 1fr); } .colophon-grid figure { position: static; } }
.spec { width: 100%; border-collapse: collapse; margin-top: var(--s4); font-size: 0.98rem; }
.spec caption { text-align: left; font-weight: 650; padding-bottom: var(--s2); }
.spec th, .spec td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.spec thead th { border-bottom: 2px solid var(--ink); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.spec td:first-child, .spec th[scope="row"] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec th:last-child, .spec td:last-child { padding-right: 0; }
@media (max-width: 360px) { .spec th, .spec td { padding-right: var(--s1); } }
.scale-0, .scale-1, .scale-2, .scale-3, .scale-4, .scale-5, .scale-6 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--brand); white-space: nowrap; }
.scale-0 { font-size: var(--t0); }
.scale-1 { font-size: var(--t1); }
.scale-2 { font-size: var(--t2); }
.scale-3 { font-size: var(--t3); }
.scale-4 { font-size: var(--t4); }
.scale-5 { font-size: var(--t5); }
.scale-6 { font-size: var(--t6); }
.bar { display: block; height: var(--s2); background: var(--brass); border-radius: var(--r1); }
.bar-1 { width: var(--s1); }
.bar-2 { width: var(--s2); }
.bar-3 { width: var(--s3); }
.bar-4 { width: var(--s4); }
.bar-5 { width: var(--s5); }
.bar-6 { width: var(--s6); }
.bar-7 { width: var(--s7); }
.bar-8 { width: var(--s8); }
.run { position: relative; display: block; height: var(--s4); background: var(--brand-soft); border-radius: var(--r1); }
.run::after { content: ""; position: absolute; top: 4px; left: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); }
.run-1::after { --d: var(--d1); } .run-2::after { --d: var(--d2); } .run-3::after { --d: var(--d3); } .run-4::after { --d: var(--d4); } .run-5::after { --d: var(--d5); }
@media (prefers-reduced-motion: no-preference) {
  .run::after { transition: left var(--d, var(--d3)) var(--ease); }
  .spec tr:hover .run::after { left: calc(100% - 16px); }
}
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.sw { padding: var(--s4); border-radius: var(--r3); font-weight: 650; display: grid; gap: var(--s1); }
.sw span { font-weight: 500; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.sw-a { background: var(--brass-bright); color: var(--ink); }
.sw-b { background: var(--brass); color: var(--ink); }
.sw-c { background: var(--paper); color: var(--brass-deep); box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 700px) { .swatches { grid-template-columns: minmax(0, 1fr); } }

/* Headings taller than one step keep an open 1.15 line; the h3 at step 1 sits on the 28 px line. */
.card h2, .card h3, .jobs h3, .who h3, .three h3, .guide-list h2, .guide-list h3, .plan h2, .row h3 { line-height: 1.15; }

/* Print: margins in Fibonacci millimetres, and the golden line. */
@page { margin: 21mm 13mm; }
@media print {
  body { line-height: 1.618; }
  .gauge, .rim-wrap, .plate-overlay, .plate-note { display: none; }
}
