/* Venus — the design system.
   The idea: Venus is the evening star, and the site is laid out like a precise field guide to it.
   One modern, clean-angled sans throughout: Instrument Sans, tracked in at display sizes, with
   Fragment Mono for anything a machine reads. No serif and no italics; emphasis comes from weight, colour and size. Structure
   comes from hairline rules and a margin column, warmth from one planet-coloured accent. The palette is the one
   Caisson gives its Venus page: the ember tone (orange page, ink text, cream signal) is the default, and
   the dark theme is Caisson's night tone with the orange as its accent. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg: #df5a2b;
  --bg-2: #d24f22;
  --bg-3: #c64a1f;
  --ink: #14161b;
  --ink-2: #2c150c;
  --ink-3: #3b1c10;
  --rule: rgba(20, 22, 27, .3);
  --rule-strong: rgba(20, 22, 27, .55);
  --accent: #f6f1e7;
  --accent-ink: #14161b;
  --accent-soft: #fbf7ee;
  --accent-wash: rgba(246, 241, 231, .16);
  --venus-1: #fff4e6;
  --venus-2: #f6a77d;
  --venus-3: #8f2f0e;
  --glow: rgba(246, 241, 231, .2);
  --glow-foot: rgba(246, 241, 231, .14);
  --star: transparent;            /* stars in daylight read as dust; the dark theme turns them on */
  --grain: 0;
  --ok: #1c4a31;
  --danger: #4d0f05;
  --shadow-disc: 0 30px 60px -30px rgba(60, 16, 4, .6), inset -18px -22px 48px rgba(80, 22, 6, .35);
  --shadow-card: 0 1px 0 rgba(20, 22, 27, .06), 0 30px 60px -36px rgba(60, 16, 4, .5);
  --focus: #14161b;

  --font-display: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-text: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --track-display: -.03em;        /* display sizes run tight; text stays at 0 */
  --font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --measure: 1180px;
  --col: 300px;                   /* the margin column: numerals, labels, notes */
  --gap: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-slow: 420ms;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14161b;
  --bg-2: #1b1e25;
  --bg-3: #23262e;
  --ink: #ece8df;
  --ink-2: #b5b1a8;
  --ink-3: #8b8880;
  --rule: rgba(236, 232, 223, .2);
  --rule-strong: rgba(236, 232, 223, .42);
  --accent: #f38d63;
  --accent-ink: #14161b;
  --accent-soft: #f0703f;
  --accent-wash: rgba(240, 112, 63, .12);
  --glow: rgba(240, 112, 63, .24);
  --glow-foot: rgba(240, 112, 63, .26);
  --star: rgba(236, 232, 223, .7);
  --grain: .22;
  --ok: #7fd49e;
  --danger: #f08c7a;
  --shadow-disc: 0 0 120px 10px rgba(240, 112, 63, .2), inset -22px -26px 56px rgba(40, 14, 6, .55);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03), 0 30px 60px -36px rgba(0, 0, 0, .7);
  --focus: #f38d63;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
/* A faint peach horizon glow under the last fold, strongest after dusk */
.page { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); flex: 1; display: flex; flex-direction: column; }
.page::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 520px;
  pointer-events: none; z-index: -1;
  background: radial-gradient(60% 42% at 50% 78%, var(--glow-foot), transparent 70%);
}
.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
main.wrap { flex: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.02em; }
em, i { font-style: normal; }   /* the system has no italics; emphasis is weight and colour */
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: #1a0d06; }
img { display: block; max-width: 100%; height: auto; }
code, kbd, pre { font-family: var(--font-mono); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500;
}
.skip:focus-visible { top: 12px; }

.label {
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.num {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0;
}
.mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .01em; color: var(--ink-3); }
.ital { font-family: var(--font-text); font-style: normal; color: var(--ink); }

/* ------------------------------------------------------------------ masthead */
.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 16px;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--rule);
}
.mast .nav { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .mast { grid-template-columns: auto 1fr auto; gap: 0 28px; padding: 20px 0 18px; }
  .mast .nav { grid-column: 2; grid-row: 1; justify-self: end; }
  .mast .theme { grid-column: 3; grid-row: 1; }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3125rem; letter-spacing: -.02em; text-decoration: none; line-height: 1;
}
.mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--venus-1), var(--venus-2) 55%, var(--venus-3));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.nav { display: flex; gap: 0 12px; flex-wrap: wrap; }
.nav a {
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 10px 0; position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent);
}
@media (min-width: 640px) {
  .nav { gap: 0 18px; margin: 0 -4px; }
  .nav a { font-size: .875rem; padding: 10px 4px; }
  .nav a[aria-current="page"]::after { left: 4px; right: 4px; }
}
.theme {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--rule); background: transparent; cursor: pointer;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.theme:hover { color: var(--ink); border-color: var(--rule-strong); background: var(--bg-2); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }

/* ------------------------------------------------------------------ buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink);
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { background: var(--bg-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--fill { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn--fill:hover:not(:disabled) { background: var(--accent); border-color: transparent; box-shadow: 0 6px 18px -8px var(--accent), inset 0 0 0 100px rgba(255, 255, 255, .08); }
.btn--small { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.btn[data-state="done"], .btn[data-state="done"]:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn[data-state="failed"], .btn[data-state="failed"]:hover:not(:disabled) { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; }
.btn kbd {
  font-family: var(--font-mono); font-size: .6875rem; line-height: 1;
  padding: 3px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .7;
}
.btn--fill kbd { border-color: rgba(0, 0, 0, .25); }
@media (hover: none), (max-width: 899px) { .btn kbd { display: none; } }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-text); font-weight: 500; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
  min-height: 44px;
  transition: color var(--t-fast) var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent); }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: end; border-bottom: 1px solid var(--rule-strong); }
.hero__copy { padding-bottom: clamp(24px, 3vw, 40px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 3px var(--glow); } 50% { box-shadow: 0 0 0 6px var(--glow); } }
.hero h1 {
  font-size: clamp(2.6rem, .9rem + 5vw, 5.5rem);
  line-height: .96;
  font-weight: 600;
  letter-spacing: var(--track-display);
  max-width: 14ch;
  margin-top: 20px;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.lede {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 52ch;
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* The sky: a hairline horizon with a graduated scale, scattered stars, and Venus setting into it.
   Only from 900px up; on a phone the address is what matters and it stays in the first screen. */
.sky { display: none; --venus-x: 60%; position: relative; margin: 0; overflow: hidden; align-self: stretch; min-height: 340px; }
.sky::before {
  content: ""; position: absolute; left: var(--venus-x); bottom: -60%;
  width: 180%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  animation: dusk 9s ease-in-out infinite alternate;
}
@keyframes dusk { from { opacity: .7; } to { opacity: 1; } }
.sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .stars circle { fill: var(--star); }
.venus {
  position: absolute; left: var(--venus-x); bottom: -24%;
  width: clamp(240px, 22vw, 320px); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 32% 28%, var(--venus-1) 0%, var(--venus-2) 48%, var(--venus-3) 100%);
  box-shadow: var(--shadow-disc);
}
.scale {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 24px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px 120px) left bottom / 100% 13px no-repeat;
}
.sky figcaption {
  position: absolute; left: 0; top: 4px; max-width: 46%;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* The address: the one thing a visitor came for, at poster weight, inside the first screen at every width */
.address {
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 10px 32px;
}
.address__label { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.address__label .mono { text-transform: none; letter-spacing: 0; }
.address__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.address__url {
  font-family: var(--font-mono);
  font-size: clamp(1.0625rem, .35rem + 2.3vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.25;
  min-width: 0;
  display: inline-block;
  transition: color var(--t-fast) var(--ease);
}
.address__url .scheme { color: var(--ink-3); font-weight: 400; }
.address__url:hover { color: var(--accent); }
.address__actions { display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 8vw, 112px) 0 0; }
.section__head {
  display: grid; grid-template-columns: 1fr; gap: 10px 48px; align-items: baseline;
  padding-top: 18px; border-top: 1px solid var(--rule-strong);
}
.section__no { display: flex; align-items: baseline; gap: 12px; }
.section__no .num { font-size: 1rem; line-height: 1; }
.section__head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.02; letter-spacing: -.028em;
  text-wrap: balance;
}
.section__head p { color: var(--ink-2); max-width: 46ch; font-size: 1.0625rem; text-wrap: pretty; }
.margin-note { font-family: var(--font-text); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* Client picker: underline tabs with a one-word kind under each name */
.tabs {
  margin-top: clamp(24px, 3.5vw, 44px);
  display: flex; flex-wrap: wrap; gap: 0 26px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.tabs button {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 0 10px; margin-bottom: -1px; min-height: 48px;
  font-size: 1rem; font-weight: 500; color: var(--ink-3); line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tabs button .kind { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); opacity: .8; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button[aria-selected="true"] .kind { color: var(--accent); opacity: 1; }
.tabs button:focus-visible { outline-offset: -2px; border-radius: 4px; }

.guide {
  display: grid; grid-template-columns: 1fr; gap: 20px 48px;
  padding: clamp(26px, 3.6vw, 40px) 0 0;
  min-height: 380px;              /* one-line guides must not make the section jump */
}
.guide h3 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.guide .where { margin-top: 12px; max-width: 30ch; }
.guide .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.guide ol { list-style: none; margin: 0; padding: 0; counter-reset: step var(--start, 0); }
.guide li {
  counter-increment: step; position: relative;
  padding: 12px 0 12px 44px; border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: 1.0625rem; text-wrap: pretty;
}
.guide li > span { display: block; max-width: 62ch; }
.guide li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font-family: var(--font-mono); font-weight: 500; font-size: .8125rem; line-height: 1.2;
  color: var(--accent);
}
.guide li a { color: var(--ink); }
.guide li code { font-size: .875em; color: var(--ink); background: var(--bg-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: normal; } /* breaks only at a <wbr> */
.guide ol + ol li:first-child { border-top: 0; }
.guide.is-swapping .guide__body, .guide.is-swapping .guide__head { animation: swap var(--t-slow) var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Code snippets: a header strip that names the file or target, with the Copy button in it */
.snippet {
  margin: 18px 0 10px;
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden;
}
.snippet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--rule);
}
.snippet__head .mono { color: var(--ink-3); }
.snippet pre {
  margin: 0; padding: 16px 18px;
  font-family: var(--font-mono); font-size: .9rem; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
  tab-size: 2;
}
.snippet--scroll pre { white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.snippet .btn { background: var(--bg); }

/* Plate: the four-references-in, one-image-out proof */
.plate { margin: clamp(26px, 3.6vw, 44px) 0 0; }
.plate__inputs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plate__inputs figure { margin: 0; position: relative; }
.plate__inputs img { border-radius: 4px; box-shadow: var(--shadow-card); width: 100%; aspect-ratio: 640 / 297; object-fit: cover; transition: transform 600ms var(--ease); }
.plate__inputs figure:hover img { transform: scale(1.02); }
.plate__inputs figcaption { margin-top: 8px; display: flex; gap: 8px; align-items: baseline; font-size: .875rem; color: var(--ink-2); }
.plate__inputs figcaption .num { font-size: .75rem; }
.plate__join { position: relative; height: 72px; margin: 6px 0 2px; display: none; }
.plate__join svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.plate__join span {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  padding: 4px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--bg);
  white-space: nowrap;
}
.plate__step { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 0 12px; }
.plate__step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); }
.plate__out { margin: 0; }
.plate__out img { border-radius: 4px; box-shadow: var(--shadow-card); width: 100%; aspect-ratio: 1400 / 649; }
.plate__caption {
  margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 6px 48px;
  padding-top: 14px; border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: .95rem;
}
.plate__caption .label { color: var(--accent); }
.plate__caption p { max-width: 64ch; text-wrap: pretty; }
.plate__caption p + p { margin-top: 8px; }
.plate__note { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 12px 48px; align-items: start; }
.plate__note figure { margin: 0; display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: center; }
.plate__note img { border-radius: 4px; box-shadow: var(--shadow-card); aspect-ratio: 1400 / 649; }
.plate__note figcaption { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); max-width: 38ch; }

/* Tools index */
.tools { list-style: none; margin: clamp(26px, 3.6vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.tools li { padding: 20px 0 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; align-items: baseline; align-content: start; }
.tools .num { font-size: .8125rem; grid-column: 1; grid-row: 1; }
.tools h3, .tools p, .tools .mono { grid-column: 2; }
.tools h3 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -.015em; }
.tools .mono { display: block; margin-top: 4px; }
.tools p { color: var(--ink-2); font-size: .975rem; line-height: 1.55; margin-top: 8px; text-wrap: pretty; }
.tools .sub { display: block; margin-top: 8px; font-size: .875rem; color: var(--ink-3); }
.cta-row { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--rule-strong); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; align-items: center; }

/* ------------------------------------------------------------------ footer */
.foot {
  margin-top: clamp(56px, 8vw, 112px); padding: 26px 0 72px;
  border-top: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: 1fr; gap: 18px 32px; align-items: end;
  color: var(--ink-2); font-size: .9375rem;
}
.foot__word {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 1; letter-spacing: -.045em;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: .04em;
}
.foot__word .mark { width: .2em; height: .2em; transform: translateY(-.01em); box-shadow: var(--shadow-disc); }
.foot__meta { display: grid; gap: 4px; font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot nav a { text-decoration: none; color: var(--ink-2); padding: 10px 0; display: inline-block; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot nav a[aria-current="page"] { color: var(--ink); }

/* ------------------------------------------------------------------ breakpoints */
@media (min-width: 640px) {
  .plate__inputs { grid-template-columns: repeat(4, 1fr); }
  .plate__join { display: block; }
  .plate__step { display: none; }
  .tools { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr auto; }
  .foot nav { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--gap); }
  .sky { display: block; }
  .section__head { grid-template-columns: var(--col) 1fr; gap: 10px var(--gap); }
  .section__head p { grid-column: 2; }
  .guide { grid-template-columns: var(--col) 1fr; gap: 20px var(--gap); }
  .plate__caption { grid-template-columns: var(--col) 1fr; gap: 4px var(--gap); }
  .plate__note { grid-template-columns: var(--col) 1fr; }
  .plate__note figure { grid-column: 2; }
  .tools { grid-template-columns: 1fr 1fr; }   /* ten tools: five even rows */
  .foot { grid-template-columns: auto 1fr auto; }
  .foot nav { grid-column: auto; justify-self: end; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  :root { --col: 240px; }
}

/* ------------------------------------------------------------------ motion */
.enter { opacity: 0; transform: translateY(14px); animation: enter 900ms var(--ease) forwards; }
.enter:nth-child(2) { animation-delay: 80ms; }
.enter:nth-child(3) { animation-delay: 160ms; }
.sky.enter { animation-delay: 120ms; }
.address.enter { animation-delay: 260ms; }
@keyframes enter { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enter { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
