/* yuzupup.com · The Plan Set (direction seed cd103a6c, 2026-08-21)
   One world: a construction drawing set. Bond sheet on a desk, ink line work in three weights,
   drafting blue-gray for labels, revision red for every action, yuzu yellow only inside the seal.
   8px drafting grid. Barlow (text) + Barlow Condensed (drawing titles, labels), self-hosted. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/BarlowCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/BarlowCondensed-700.woff2") format("woff2"); }

:root {
  --desk: #e3e4de;
  --sheet: #f8f8f4;
  --sheet-2: #efefe9;
  --ink: #14161a;
  --ink-2: #4a5366;
  --blue: #4f5e74;
  --rule: rgba(20, 22, 26, 0.88);
  --hair: rgba(20, 22, 26, 0.32);
  --wash: rgba(20, 22, 26, 0.04);
  --red: #c8311f;
  --red-ink: #ffffff;
  --red-soft: rgba(200, 49, 31, 0.12);
  --seal: #f4d94a;
  --seal-ink: #14161a;
  --ok: #1e6b3a;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234f5e74' stroke-width='1.5'/%3E%3C/svg%3E");
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --desk: #0b0c0f; --sheet: #14161a; --sheet-2: #1b1e24; --ink: #ecede8; --ink-2: #b4bac6; --blue: #97a3b8;
  --rule: rgba(236, 237, 232, 0.82); --hair: rgba(236, 237, 232, 0.28); --wash: rgba(236, 237, 232, 0.05);
  --red: #ff7a66; --red-ink: #14161a; --red-soft: rgba(255, 122, 102, 0.16); --ok: #7fd29a; --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2397a3b8' stroke-width='1.5'/%3E%3C/svg%3E"); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #0b0c0f; --sheet: #14161a; --sheet-2: #1b1e24; --ink: #ecede8; --ink-2: #b4bac6; --blue: #97a3b8;
    --rule: rgba(236, 237, 232, 0.82); --hair: rgba(236, 237, 232, 0.28); --wash: rgba(236, 237, 232, 0.05);
    --red: #ff7a66; --red-ink: #14161a; --red-soft: rgba(255, 122, 102, 0.16); --ok: #7fd29a; --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2397a3b8' stroke-width='1.5'/%3E%3C/svg%3E"); color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; scrollbar-color: var(--blue) transparent; }
body {
  margin: 0; padding: 16px; min-height: 100vh;
  background: var(--desk); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  font-feature-settings: "kern", "tnum";
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--sheet); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
p + p { margin-top: 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* drafting labels: the title-block / index grammar, never a heading eyebrow */
.lbl { font: 600 0.75rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); }

/* ---------- the sheet ---------- */
.sheet {
  position: relative; max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 32px);
  background: var(--sheet); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 6px var(--sheet), inset 0 0 0 7px var(--hair), 0 24px 48px -32px rgba(0, 0, 0, 0.35);
}
.sheet { display: flex; flex-direction: column; }
.sheet > * { position: relative; }
.sheet > main { flex: 1 0 auto; }
.sheet .draw { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); pointer-events: none; z-index: 2; display: none; }
.wrap { padding-inline: clamp(20px, 4vw, 56px); }

/* ---------- title strip (header) ---------- */
.bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: 64px; border-bottom: 1px solid var(--rule); margin: 8px 8px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.25rem/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; }
.seal { position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--seal); color: var(--seal-ink); box-shadow: 0 0 0 1px var(--seal-ink) inset, 0 0 0 2px var(--seal), 0 0 0 3px var(--seal-ink); }
.seal img { width: 72%; }
.seal-s { width: 32px; height: 32px; }
.seal-l { width: 88px; height: 88px; }
.nav { display: flex; gap: clamp(12px, 2vw, 28px); justify-content: center; }
.nav a { font: 600 0.9375rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--ink-2); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.ctl { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--rule); }
.lang a { font: 700 0.8125rem/1 var(--cond); letter-spacing: 0.1em; text-decoration: none; padding: 9px 11px; color: var(--ink-2); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--sheet); }
.theme { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.theme svg { width: 16px; height: 16px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* ---------- sheet head ---------- */
.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.head-main { grid-column: 1 / 8; }
.head-side { grid-column: 8 / 13; display: grid; gap: 32px; align-content: start; }
.lede { margin-top: 24px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 40px; }
.more { font: 600 0.9375rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.more:hover { color: var(--red); border-color: var(--red); }

/* revision cloud button: the only action color on the sheet. The cloud is a chain of arcs drawn
   by four repeating radial gradients on a pseudo-element, so it fits any label length. */
.cloud {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; margin: 10px; border: 0; background: transparent; cursor: pointer;
  font: 700 1.0625rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); text-decoration: none;
  transition: color 0.2s;
}
.cloud::before {
  content: ""; position: absolute; inset: -8px; pointer-events: none;
  --arc: radial-gradient(circle at 50% 100%, transparent 4.5px, var(--red) 5px, var(--red) 6.6px, transparent 7.1px);
  --arc-b: radial-gradient(circle at 50% 0%, transparent 4.5px, var(--red) 5px, var(--red) 6.6px, transparent 7.1px);
  --arc-l: radial-gradient(circle at 100% 50%, transparent 4.5px, var(--red) 5px, var(--red) 6.6px, transparent 7.1px);
  --arc-r: radial-gradient(circle at 0% 50%, transparent 4.5px, var(--red) 5px, var(--red) 6.6px, transparent 7.1px);
  background: var(--arc) left top / 14px 8px repeat-x, var(--arc-b) left bottom / 14px 8px repeat-x, var(--arc-l) left top / 8px 14px repeat-y, var(--arc-r) right top / 8px 14px repeat-y;
}
.cloud { isolation: isolate; }
.cloud::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); opacity: 0; transition: opacity 0.2s; border-radius: 2px; }
.cloud:hover::after, .cloud:focus-visible::after { opacity: 1; }
.cloud:hover, .cloud:focus-visible { color: var(--red-ink); }
.cloud:active { transform: translateY(1px); }
.cloud span { position: relative; }
.cloud:disabled { opacity: 0.55; cursor: progress; }

/* ---------- reference drawings (apps) ---------- */
.ref { border: 1px solid var(--rule); }
.ref-cap { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.ref-cap a { font: 600 0.8125rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--red); }
.ref-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none; color: inherit; border-top: 1px solid var(--hair); transition: background 0.2s; }
.ref-row:first-of-type { border-top: 0; }
.ref-row:hover { background: var(--wash); }
.ref-row b { display: block; font: 600 1rem/1.2 var(--text); }
.ref-row small { display: block; color: var(--ink-2); font-size: 0.875rem; line-height: 1.35; margin-top: 2px; }
.tile { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; font: 800 1.125rem/1 var(--text); letter-spacing: -0.04em; box-shadow: inset 0 0 0 1px var(--hair); }
.tile img { width: 78%; }
.tile-l { width: 72px; height: 72px; border-radius: 16px; font-size: 1.75rem; }

/* status stamps: ink-green for live, blue for in build; never red (red is an action) */
.stamp { display: inline-block; font: 700 0.6875rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 8px 4px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-2deg); white-space: nowrap; }
.stamp-live { color: var(--ok); }
.stamp-build { color: var(--blue); }

/* ---------- title block ---------- */
.tb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 112px; border: 1px solid var(--rule); }
.tb > div { padding: 10px 12px 12px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.tb > div:nth-child(4n) { border-right: 0; }
.tb > div:nth-last-child(-n+4) { border-bottom: 0; }
.tb .lbl { display: block; margin-bottom: 4px; }
.tb .v { font: 500 clamp(0.875rem, 0.95vw, 1rem)/1.25 var(--text); white-space: nowrap; }
.tb .v.big { font: 700 1.75rem/1 var(--cond); letter-spacing: 0.02em; }
.tb .seal-cell { grid-row: span 2; display: grid; place-items: center; padding: 12px 10px; }

/* ---------- sheet index (services) ---------- */
.sec { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head p { color: var(--ink-2); max-width: 60ch; }
.index { display: grid; border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1.6fr) minmax(48px, 1fr) auto; align-items: center; gap: 0 24px;
  padding: 22px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; transition: background 0.25s;
}
.row:hover, .row:focus-within { background: linear-gradient(90deg, transparent, var(--wash) 12%, var(--wash) 88%, transparent); }
.row .no { font: 700 1.375rem/1 var(--cond); letter-spacing: 0.02em; color: var(--blue); transition: color 0.2s; }
.row:hover .no, .row:focus-within .no { color: var(--red); }
.row h3 { text-transform: none; letter-spacing: 0; font: 600 1.3125rem/1.25 var(--text); }
.row .scope { color: var(--ink-2); margin-top: 6px; max-width: 56ch; }
.leader { position: relative; height: 2px; align-self: center; background: radial-gradient(circle, var(--hair) 0.9px, transparent 1.1px) left center / 8px 2px repeat-x; }
.leader::before { content: ""; position: absolute; left: 0; right: 0; top: 0.5px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.leader::after { content: ""; position: absolute; right: 0; top: -6px; width: 1px; height: 13px; background: var(--red); opacity: 0; transition: opacity 0.2s 0.3s; }
.row:hover .leader::before, .row:focus-within .leader::before { transform: scaleX(1); }
.row:hover .leader::after, .row:focus-within .leader::after { opacity: 1; }

/* instrument readouts: same object everywhere a number is a proof */
.ro { display: grid; gap: 2px; text-align: right; min-width: 9ch; }
.ro b { font: 700 1.875rem/1 var(--cond); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro b i { font-style: normal; font-size: 0.6em; letter-spacing: 0.04em; vertical-align: 0.12em; }
.ro .lbl { white-space: nowrap; }
.ro-2 { display: flex; gap: 28px; justify-content: flex-end; }

/* ---------- dimension string (process) ---------- */
.dim { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 56px; }
.dim > div { position: relative; border-top: 1px solid var(--rule); padding: 18px 16px 0 0; }
.dim > div::before { content: ""; position: absolute; left: 0; top: -9px; width: 1px; height: 18px; background: var(--ink); transform: rotate(40deg); }
.dim > div:last-child::after { content: ""; position: absolute; right: 0; top: -9px; width: 1px; height: 18px; background: var(--ink); transform: rotate(40deg); }
.dim .lbl { display: block; margin-bottom: 6px; font-size: 0.875rem; }
.dim b { display: block; font: 600 1.0625rem/1.25 var(--text); }
.dim p { color: var(--ink-2); font-size: 0.9375rem; margin-top: 6px; max-width: 28ch; }

/* ---------- general notes ---------- */
.notes { counter-reset: n; margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 48px; }
.notes li { counter-increment: n; break-inside: avoid; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.notes li::before { content: counter(n) "."; font: 700 1.125rem/1.4 var(--cond); color: var(--blue); }
.notes b { font-weight: 600; }

/* ---------- revisions table (track record) ---------- */
.revs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.revs th, .revs td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--hair); }
.revs th { font: 600 0.75rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); padding-block: 10px; }
.revs td.rev { font: 700 1.125rem/1.3 var(--cond); color: var(--blue); white-space: nowrap; width: 6ch; }
.revs td.when { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 9ch; }
.revs td.out { color: var(--ink-2); }
.revs td.out b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.foot-note { color: var(--ink-2); font-size: 0.9375rem; margin-top: 16px; max-width: 70ch; }

/* ---------- generic page head + prose (about, apps, legal) ---------- */
.page { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.page-main { grid-column: 1 / 9; }
.page-side { grid-column: 9 / 13; }
.page h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.page .lede { margin-top: 20px; }
.prose { max-width: 68ch; }
.prose h2 { font: 700 1.5rem/1.1 var(--cond); text-transform: uppercase; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.25rem; margin: 0.75em 0; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--red); }
.prose code { font: 500 0.9em/1 var(--text); background: var(--sheet-2); padding: 2px 5px; border-radius: 3px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.facts dt { font: 600 0.75rem/1.6 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin: 0; }
.facts dd { margin: 0; }
.facts a { color: var(--red); }

/* apps page rows */
.app { display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--hair); }
.app h2 { font: 600 1.375rem/1.2 var(--text); text-transform: none; letter-spacing: 0; }
.app p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.app .meta { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.app .meta a { color: var(--red); font-weight: 500; }

/* ---------- RFI form (contact) ---------- */
.form { display: grid; gap: 20px; max-width: 560px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 0.75rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1.0625rem/1.4 var(--text); color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 0; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 14px center; }
.field input, .field textarea, .field select { caret-color: var(--red); }
.field ::placeholder { color: var(--blue); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; padding: 14px 16px; border: 1px solid var(--rule); margin-top: 24px; max-width: 560px; }
.notice.is-on, .notice:target { display: block; }
.notice-ok { border-color: var(--ok); color: var(--ink); }
.notice-err { border-color: var(--red); }
.notice a { color: var(--red); }
.aside { color: var(--ink-2); font-size: 0.9375rem; max-width: 58ch; }
.aside a { color: var(--red); }

/* ---------- footer band ---------- */
.foot { margin: 0 8px 8px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; padding: 20px clamp(12px, 3vw, 48px) 20px; align-items: start; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.foot nav a { font: 600 0.8125rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--red); }
.foot .legal { font-size: 0.875rem; color: var(--ink-2); max-width: 72ch; }
.foot .legal a { color: var(--ink-2); }
.foot .sheetno { text-align: right; font: 700 0.8125rem/1.5 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); white-space: nowrap; }

/* ---------- one authored moment: the sheet draws itself ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: inkin 0.1s step-end 0.9s both; }
  .sheet .draw { display: block; }
  .sheet .draw rect { fill: none; stroke: var(--ink); stroke-width: 2; x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) both; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes inkin { from { border-color: transparent; } to { border-color: var(--ink); } }
  .bar { animation: rise 0.6s var(--ease) 0.2s both; }
  .head-main > * { animation: rise 0.7s var(--ease) both; }
  .head-main > :nth-child(1) { animation-delay: 0.35s; }
  .head-main > :nth-child(2) { animation-delay: 0.45s; }
  .head-main > :nth-child(3) { animation-delay: 0.55s; }
  .head-side > * { animation: rise 0.7s var(--ease) 0.6s both; }
  .head-side > :nth-child(2) { animation-delay: 0.75s; }
  .index .row { animation: rise 0.6s var(--ease) both; }
  .index .row:nth-child(1) { animation-delay: 0.7s; }
  .index .row:nth-child(2) { animation-delay: 0.78s; }
  .index .row:nth-child(3) { animation-delay: 0.86s; }
  .index .row:nth-child(4) { animation-delay: 0.94s; }
  @keyframes rise { from { opacity: 0.3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .head-main { grid-column: 1 / 13; }
  .head-side { grid-column: 1 / 13; grid-template-columns: 1fr 1fr; }
  .page-main, .page-side { grid-column: 1 / 13; }
  .dim { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding: 0 12px 8px 0; }
}
@media (max-width: 44rem) {
  body { padding: 8px; }
  .sheet { min-height: calc(100vh - 16px); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--hair); }
  .bar { grid-template-columns: 1fr auto; height: auto; padding: 10px 0 0; row-gap: 6px; }
  .ctl { order: 2; }
  .nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; gap: 18px; padding-bottom: 8px; overflow-x: auto; }
  .head, .page { grid-template-columns: 1fr; gap: 32px; }
  .head-main, .head-side, .page-main, .page-side { grid-column: auto; }
  .head-side { grid-template-columns: 1fr; }
  .row { grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 18px 0; }
  .row h3 { font-size: 1.1875rem; }
  .leader { display: none; }
  .row .ro, .row .ro-1, .row .ro-2 { grid-column: 2; text-align: left; }
  .ro-2 { justify-content: flex-start; flex-wrap: wrap; gap: 10px 32px; }
  .row .ro { min-width: 18ch; }
  .ro .lbl { white-space: normal; max-width: 22ch; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > div { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
  .tb > div:nth-child(even):not(.seal-cell) { border-right: 0; }
  .tb .seal-cell { order: 9; grid-row: auto; grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .tb > div:nth-child(7) { border-right: 1px solid var(--hair); }
  .notes { columns: 1; }
  .revs td.when, .revs th.when { display: none; }
  .revs td, .revs th { padding-right: 10px; }
  .app { grid-template-columns: 56px 1fr; }
  .app .stamp-col { grid-column: 2; }
  .foot { grid-template-columns: 1fr; }
  .foot .sheetno { text-align: left; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  /* the dimension string turns vertical: one line down the left, ticks at each station */
  .dim { grid-template-columns: 1fr; margin-top: 32px; overflow: visible; padding: 0 0 0 20px; border-left: 1px solid var(--rule); }
  .dim > div { border-top: 0; padding: 0 0 22px 0; }
  .dim > div::before, .dim > div:last-child::after { width: 18px; height: 1px; left: -30px; top: 10px; transform: rotate(-40deg); }
  .dim > div:last-child::after { top: auto; bottom: 0; }
  .dim p { max-width: 40ch; }
}
