/* Greythorn Studio Works: the only stylesheet.
   Direction "The quiet instrument" (taste-skill v2, seed 738013710): a black page, off-white ink,
   one crimson accent, Clash Grotesk self-hosted from assets/fonts/. No external requests.
   No inline styles anywhere (strict CSP: style-src 'self').
   Colour tokens are measured by tools/contrast.py; change a token, then re-run it.
   The page is dark in both colour schemes; there is no separate light palette. */

@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/clash-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/clash-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0a0a;           /* the ground */
  --surface: #151515;      /* one step lighter: hero stage, download band, panels */
  --panel: #1f1f1f;        /* two steps: panels inside a surface */
  --ink: #efefef;
  --muted: #9a9a9a;
  --line-strong: #6e6e6e;  /* borders that identify a control (3:1+) */
  --accent: #b11226;       /* crimson: the primary action only */
  --accent-hover: #c8182e;
  --on-accent: #ffffff;
  --accent-bright: #ef4a5c; /* crimson that holds 3:1 on black: the mark, markers, the current page */
  --focus: #efefef;
  --field: #efefef;        /* the one inverted section */
  --field-ink: #0a0a0a;
  --field-muted: #4a4a4a;
  --todo-bg: #ffe27a;
  --todo-ink: #3a2c00;

  --face: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  /* Five sizes, no more */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  --step-head: clamp(2rem, 1.1rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.25rem, 0.8rem + 3.3vw, 3.75rem);

  --m: clamp(20px, 2.8vw, 40px);            /* the one pair of outer margins */
  --col: max(0px, calc(22vw - var(--m)));   /* where the text column starts */
  --gap: clamp(112px, 12vw, 180px);         /* between sections */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--face); font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
strong, b { font-weight: 500; }
small { font-size: var(--step-small); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--panel); padding: 0.1em 0.35em; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color 160ms; }
a:hover { text-decoration-color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { padding-inline: var(--m); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--m); top: -100px; z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- Draft banner and TODO chips ---------- */
.draft-banner { background: var(--todo-bg); color: var(--todo-ink); font-size: var(--step-small); padding: 10px 0; }
.todo {
  background: var(--todo-bg); color: var(--todo-ink); font-family: var(--face);
  font-size: 0.875em; padding: 0.1em 0.4em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.todo-block { display: inline; line-height: 1.7; }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 3; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: var(--m); flex-wrap: wrap; }
.has-hero .masthead { position: absolute; left: 0; right: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: var(--step-body); letter-spacing: -0.01em; }
.wordmark .mark { width: 32px; height: 32px; flex: none; transition: transform 300ms var(--ease-out); }
.wordmark:hover .mark { transform: rotate(-6deg); }
.wm-sub { color: var(--muted); font-weight: 400; }
.mark-line { fill: none; stroke: var(--accent-bright); stroke-width: 1.6; }
.mark-g { stroke-width: 5.4; }
.mark-fill { fill: var(--accent-bright); }
.nav ul, .footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav a, .footer-nav a { text-decoration: none; font-size: var(--step-small); padding-block: 6px; }
.nav a:hover, .footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent-bright); }
.nav a[aria-current="page"] { color: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btnrow { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 0;
  font: 500 var(--step-body)/1.2 var(--face); text-decoration: none; cursor: pointer;
  transition: background-color 160ms, transform 120ms var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-quiet { background: transparent; color: var(--ink); padding: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.btn-quiet:hover { background: transparent; text-decoration-color: var(--accent-bright); }
.btn[disabled] { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); cursor: not-allowed; transform: none; }

/* ---------- Hero (home and Cardew) ---------- */
.hero { display: grid; grid-template-columns: 7fr 5fr; min-height: 100svh; }
.hero-text { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--m) var(--m); }
.hero h1 { max-width: none; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines .line > span { display: block; }
.hero .lede { max-width: 42ch; margin-top: 32px; font-size: var(--step-lead); line-height: 1.4; }
.hero .btnrow { margin-top: 40px; }
.hero-note { margin-top: 28px; color: var(--muted); font-size: var(--step-small); display: grid; gap: 8px; max-width: 52ch; }
.hero-stage { background: var(--surface); display: grid; place-items: center; padding: 120px var(--m) var(--m); }

/* ---------- The Cardew demo (data-ui: the app's own look) ---------- */
.demo-fig { width: min(480px, 100%); display: grid; gap: 20px; }
.product-id { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; font-size: var(--step-body); }
.product-id img { width: 88px; height: 88px; margin: -8px; }
.product-id b { display: block; font-size: var(--step-lead); }
.product-id span { color: var(--muted); }
.product-id b { color: var(--ink); }
.menubar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 12px; margin-bottom: 14px; border-radius: 7px; background: #262628; font: 400 12.5px/1 var(--ui); color: #e8e8e8; }
.mb-left, .mb-right { display: flex; align-items: center; gap: 16px; }
.mb-left b { font-weight: 700; }
.mb-item { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 4px; transition: background-color 160ms, color 160ms; }
.glyph { width: 15px; height: 15px; fill: currentColor; }
.glyph-stroke { fill: none; stroke: currentColor; stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; }
.mb-rec { display: none; font-weight: 600; font-size: 11px; }
.mb-item.is-rec { background: #ff3b30; color: #fff; }
.mb-item.is-rec .mb-rec { display: inline; }
.video-fig { width: min(560px, 100%); }
.video-fig video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #1e1e1e; }
.demo-fig figcaption { color: var(--muted); font-size: var(--step-small); text-align: center; }
[data-ui] { font-family: var(--ui); }
.win { background: #1e1e1e; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; color: #ececec; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #2a2a2a; font-size: 13px; color: #b5b5b5; }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #ff5f57; }
.win-bar i + i { background: #febc2e; }
.win-bar i + i + i { background: #28c840; }
.win-bar span { margin-left: 10px; }
.note-body { padding: 18px 20px 22px; font-size: 15px; line-height: 1.5; min-height: 148px; }
.note-body b { display: block; font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.typed { color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #f5c344; vertical-align: -0.2em; margin-left: 1px; }
.demo-stage { height: 40px; display: grid; place-items: center; }
.capsule {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px;
  background: #2c2c2e; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  font: 500 13px/1 var(--ui); color: #f2f2f2; white-space: nowrap;
  transition: opacity 180ms, transform 260ms var(--ease-out);
}
.capsule.is-hidden { opacity: 0; transform: translateY(8px) scale(.96); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; }
.bars { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.bars i { width: 3px; border-radius: 2px; background: #5a5a5e; display: block; transition: background-color 80ms linear; }
.bars i:nth-child(1) { height: 6px; } .bars i:nth-child(2) { height: 9px; } .bars i:nth-child(3) { height: 12px; }
.bars i:nth-child(4) { height: 15px; } .bars i:nth-child(5) { height: 18px; }
.bars i.lit { background: #f2f2f2; }
.time { font-variant-numeric: tabular-nums; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5a5a5e; border-top-color: #fff; }
.tick { width: 16px; height: 16px; }
.hold {
  justify-self: center; font: 500 15px/1 var(--face); color: var(--ink); background: var(--panel);
  border: 0; border-radius: 0; height: 52px; padding: 0 22px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: background-color 160ms, transform 120ms var(--ease-out);
}
.hold:hover { background: #2a2a2a; }
.hold.is-down { background: var(--accent); color: var(--on-accent); transform: scale(.98); }
.hold[hidden] { display: none; }
.readout { color: var(--muted); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; min-height: 1.4em; }

/* ---------- Sections ---------- */
.section { padding-top: var(--gap); }
.col { margin-left: var(--col); max-width: 560px; }
.sec-head { margin-bottom: 56px; }
.sec-head p { margin-top: 20px; max-width: 46ch; }
.split { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
.split > .split-head { grid-column: 1 / -1; margin-left: var(--col); margin-bottom: 56px; }
.split > .split-body { grid-column: 2; }

/* Page nav ("On this page") */
.pagenav { padding-top: 40px; }
.pagenav .wrap { margin-left: var(--col); display: flex; gap: 8px 28px; flex-wrap: wrap; align-items: baseline; }
.pagenav-label { color: var(--muted); font-size: var(--step-small); }
.pagenav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pagenav a { font-size: var(--step-small); }

/* Home: principles, a column of short statements */
.principles { list-style: none; display: grid; gap: 56px; max-width: 900px; }
.principles li { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 8px 40px; }
.principles p { max-width: 52ch; }

/* Home: the catalogue entry */
.work { display: grid; grid-template-columns: var(--col) minmax(0, 560px) minmax(0, 1fr); align-items: start; }
.work-icon { grid-column: 1; grid-row: 1; padding-right: 24px; }
.work-icon img { width: min(240px, 100%); height: auto; margin: -6% 0 0 -6%; }
.work-main { grid-row: 1; }
.spec { grid-row: 1; }
.work-main { grid-column: 2; display: grid; gap: 18px; }
.work-main h2 { font-size: var(--step-display); }
.work-main .tagline { font-size: var(--step-lead); margin-top: -6px; }
.work-main .btnrow { margin-top: 18px; }
.spec { grid-column: 3; margin-left: clamp(32px, 6vw, 96px); background: var(--surface); padding: 28px 32px; display: grid; gap: 14px; max-width: 420px; }
.spec div { display: flex; justify-content: space-between; gap: 24px; }
.spec dt { color: var(--muted); }
.spec dd { text-align: right; }

/* Home: about */
.about { row-gap: 40px; }
.about .split-head { margin-bottom: 0; }
.about-body { grid-column: 2; max-width: 38rem; display: grid; gap: 18px; }
.about-body .opener { font-size: var(--step-lead); line-height: 1.35; }
.rules { list-style: none; display: grid; gap: 14px; }
.rules li, .ticks li { padding-left: 22px; position: relative; }
.rules li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--accent-bright); }
.closer { font-size: var(--step-lead); line-height: 1.35; margin-top: 8px; }
.colophon { grid-column: 2; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: var(--step-small); background: var(--surface); padding: 24px 28px; max-width: 38rem; }
.colophon dt { color: var(--muted); }
.colophon dd { overflow-wrap: anywhere; }

/* Cardew: how it works, call and response */
.how { margin-left: var(--col); max-width: 1080px; }
.exchange { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: center; }
.exchange + .exchange { margin-top: 96px; }
.exchange-text p { margin-top: 10px; max-width: 48ch; }
.exchange-text h3 { font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1.05; }
.response .menubar-solo { width: 100%; margin: 0; }
.call { margin-top: 20px; background: var(--surface); padding: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.keycap { font: 500 15px/1 var(--ui); padding: 11px 16px; border-radius: 7px; background: #2c2c2c; color: #f2f2f2; border: 1px solid rgba(255,255,255,.08); }
.call q { font-size: var(--step-lead); line-height: 1.35; }
.response { background: var(--surface); min-height: 200px; padding: 32px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; }
.response .say { font: 400 14px/1.4 var(--ui); color: #b5b5b5; }
.response-wide { align-items: stretch; gap: 20px; }
.response-wide .capsule { align-self: center; }
.how-fig figcaption { margin-top: 40px; color: var(--muted); font-size: var(--step-small); max-width: 60ch; }

/* Cardew: the inverted privacy field */
.field { background: var(--field); color: var(--field-ink); padding-block: var(--gap); margin-top: var(--gap); }
.field + .section, .band + .section { padding-top: var(--gap); }
.field .muted { color: var(--field-muted); }
.field a:hover { text-decoration-color: var(--accent); }
.field :focus-visible { outline-color: var(--field-ink); }
.points { display: grid; gap: 44px; max-width: 900px; }
.point { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 8px 40px; }
.point p { max-width: 52ch; }
.after-points { margin-top: 56px; display: grid; gap: 20px; max-width: 900px; }

/* Cardew: pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); max-width: 1000px; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-big { font-size: clamp(3.5rem, 2rem + 6vw, 7rem); font-weight: 500; letter-spacing: -0.04em; line-height: 0.9; }
.price-then { color: var(--muted); }
.plan { display: grid; gap: 18px; align-content: start; }
.plan-alt { background: var(--surface); padding: 28px 32px; }
.ticks { list-style: none; display: grid; gap: 10px; }

/* Cardew: download band */
.band { background: var(--surface); padding-block: var(--gap); margin-top: var(--gap); }
.download { display: grid; grid-template-columns: var(--col) minmax(0, 560px) minmax(0, 1fr); }
.download .measure { grid-column: 2; display: grid; gap: 18px; }
.download-box { grid-column: 3; margin-left: clamp(32px, 6vw, 96px); background: var(--panel); padding: 28px 32px; display: grid; gap: 24px; align-content: start; max-width: 420px; }
.download-box dl { display: grid; gap: 12px; }
.app-row { display: flex; align-items: center; gap: 14px; }
.app-row img { width: 72px; height: 72px; margin: -6px; }
.app-row span { color: var(--muted); }
.app-row b { display: block; color: var(--ink); font-size: var(--step-lead); }
.download-box div { display: flex; justify-content: space-between; gap: 24px; }
.download-box dt { color: var(--muted); }
.download-box dd { text-align: right; }

/* Cardew: questions, set as reading text */
.faq { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
.faq > h2 { grid-column: 1 / -1; margin-left: var(--col); margin-bottom: 48px; }
.faq-text { grid-column: 2; columns: 2; column-gap: 56px; max-width: 920px; }
.faq details { break-inside: avoid; margin-bottom: 26px; }
.faq summary { font-weight: 500; cursor: pointer; list-style: none; transition: color 160ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-bright); }
.faq details > div { margin-top: 6px; }
.faq details:not([open]) summary::after { content: " (show answer)"; color: var(--muted); font-weight: 400; }

/* Cardew: acknowledgements */
.acks { margin-left: var(--col); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; max-width: 1120px; }
.acks-head, .acks-body { display: grid; gap: 18px; align-content: start; }
.acks-list { list-style: none; display: grid; gap: 14px; }
.acks .muted { font-size: var(--step-small); }

/* ---------- Document pages ---------- */
.doc { padding-top: clamp(48px, 8vw, 112px); }
.doc-head { margin-left: var(--col); max-width: 720px; display: grid; gap: 22px; }
.doc-head .lede { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--muted); font-size: var(--step-small); }
.doc-meta div { display: flex; gap: 6px; }
.notice, .summary { background: var(--surface); padding: 22px 26px; }
.summary { margin-block: 8px 24px; }
.summary h2 { font-size: var(--step-lead); letter-spacing: -0.01em; margin: 0 0 12px; }
.summary ul { list-style: none; display: grid; gap: 10px; padding: 0; }
.summary li { padding-left: 22px; position: relative; }
.summary li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--accent-bright); }
.doc-grid { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); margin-top: 72px; }
.doc > .prose { margin-left: var(--col); margin-top: 72px; }
.toc { grid-column: 1; padding-right: 32px; }
.toc ol { position: sticky; top: 24px; list-style: none; display: grid; gap: 6px; font-size: var(--step-small); }
.toc h2 { font-size: var(--step-small); color: var(--muted); font-weight: 400; letter-spacing: 0; margin-bottom: 12px; }
.toc a { text-decoration: none; color: var(--muted); transition: color 160ms; }
.toc a:hover { color: var(--ink); }
.prose { grid-column: 2; max-width: 38rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.25; margin-top: 2.4em; }
.prose > h2:first-child, .prose .summary + h2 { margin-top: 0; }
.prose h3 { font-size: var(--step-body); margin-top: 1.6em; }
.prose ul:not(.ticks):not(.rules), .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose dl { display: grid; gap: 14px; }
.prose dd { margin-top: 4px; }
.steps-list { display: grid; gap: 12px; }
.entry + .entry { margin-top: 48px; }
.entry-date { color: var(--muted); }
.mailbox { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.small { font-size: var(--step-small); }

/* 404 */
.notfound { padding-top: clamp(64px, 12vw, 160px); margin-left: var(--col); display: grid; gap: 24px; max-width: 720px; }
.notfound .big { font-size: clamp(6rem, 3rem + 14vw, 16rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.85; color: var(--accent-bright); }
.notfound .lede { font-size: var(--step-lead); max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--gap); padding-bottom: 32px; }
.footer-name { font-size: clamp(2.5rem, 7.3vw, 9rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.92; margin-bottom: 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.footer-legal { margin-top: 28px; display: grid; gap: 8px; color: var(--muted); font-size: var(--step-small); max-width: 90ch; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines .line > span { transform: translateY(105%); animation: line-up 900ms var(--ease-out) 150ms forwards; }
  .js .lines .line + .line > span { animation-delay: 260ms; }
  .js .after-lines { opacity: 0; transform: translateY(12px); animation: rise 700ms var(--ease-out) 700ms forwards; }
  .js .hero-stage .demo-fig { opacity: 0; transform: scale(.97); animation: settle 1000ms var(--ease-out) 350ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].d1 { transition-delay: 75ms; }
  .js [data-reveal].d2 { transition-delay: 150ms; }
  .js [data-reveal].d3 { transition-delay: 225ms; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .reveal-items > * { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal-items.is-in > * { opacity: 1; transform: none; }
  .js .reveal-items.is-in > :nth-child(2) { transition-delay: 60ms; }
  .js .reveal-items.is-in > :nth-child(3) { transition-delay: 120ms; }
  .js .reveal-items.is-in > :nth-child(4) { transition-delay: 180ms; }
  .js .reveal-items.is-in > :nth-child(5) { transition-delay: 240ms; }
  .js .reveal-items.is-in > :nth-child(n+6) { transition-delay: 300ms; }
  .caret { animation: blink 1.05s steps(1) infinite; }
  .spin { animation: spin .8s linear infinite; }
  .breath .bars i { animation: breathe 1.6s ease-in-out infinite; }
  .breath .bars i:nth-child(2) { animation-delay: .12s; }
  .breath .bars i:nth-child(3) { animation-delay: .24s; }
  .breath .bars i:nth-child(4) { animation-delay: .36s; }
  .breath .bars i:nth-child(5) { animation-delay: .48s; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { background: #5a5a5e; } 45% { background: #f2f2f2; } }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .work, .download { grid-template-columns: var(--col) minmax(0, 1fr); }
  .spec, .download-box { grid-column: 2; margin-left: 0; margin-top: 40px; }
}
@media (max-width: 900px) {
  :root { --col: 0px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { order: -1; min-height: 58svh; padding-top: 112px; }
  .hero-text { padding-top: 40px; padding-bottom: 8px; }
  .hero h1 { font-size: clamp(1.9rem, 6.4vw, 2.6rem); }
  .split, .faq, .doc-grid, .work, .download { grid-template-columns: 1fr; }
  .split > .split-body, .about-body, .colophon, .faq-text, .prose, .work-main, .spec,
  .download .measure, .download-box, .toc { grid-column: 1; }
  .faq-text { columns: 1; }
  .exchange, .acks { grid-template-columns: 1fr; }
  .acks, .how { margin-left: 0; }
  .work-icon { grid-column: 1; grid-row: auto; }
  .work-icon img { width: 160px; margin: 0 0 8px -10px; }
  .work-main, .spec { grid-row: auto; }
  .pricing { grid-template-columns: 1fr; }
  .point, .principles li { grid-template-columns: 1fr; }
  .toc { padding: 0 0 40px; }
  .toc ol { position: static; }
}
@media (max-width: 560px) {
  .demo-fig { width: 86vw; }
  .note-body { min-height: 120px; }
  .plan-alt, .spec, .download-box, .colophon { padding: 22px 20px; }
  .response { padding: 24px 16px; }
}

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --ink: #000; --muted: #333; --surface: #fff; --panel: #fff; --field: #fff; --field-ink: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .masthead nav, .pagenav, .toc, .btnrow, .btn, .hold, .readout, .skip, .hero-stage, .footer-nav { display: none; }
  .hero { display: block; min-height: 0; }
  .has-hero .masthead { position: static; }
  .site-footer { margin-top: 2em; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .todo, .draft-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; border: 1px solid #000; }
  .js [data-reveal], .js .reveal-items > * { opacity: 1; transform: none; }
}
