/* Workroom landing v2 — mobile-first.
   One grid (4 → 8 → 12 columns), no horizontal rules: sections are separated by
   space and by three tone bands (paper, sheet, ink). Bold display type carries
   the story; technical depth lives behind "+" buttons that open sheets. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(./fonts/manrope-400.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(./fonts/manrope-500.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(./fonts/manrope-600.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(./fonts/manrope-700.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(./fonts/manrope-800.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(./fonts/ebgaramond-italic-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(./fonts/ibmplexmono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(./fonts/ibmplexmono-500.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --sheet: #fbfaf6;
  --ink: #090909;
  --ink-2: #1a1918;
  --muted: #57534c;
  --muted-on-ink: #b9b4a9;
  --accent: #d01920;
  --accent-on-ink: #ff5a50;
  --line: rgba(9, 9, 9, .14);

  --c-map: #090909; --c-idea: #1f4e8c; --c-source: #8a5a00; --c-note: #1f4e8c; --c-question: #d01920; --c-faint: #858077;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* The grid */
  --cols: 4;
  --gap: 16px;
  --margin: 20px;
  --max: 1280px;

  --space-section: 72px;
  --space-block: 40px;
  --inset: 20px;            /* one inner padding for every filled box */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --header-h: 56px;
}
@media (min-width: 700px)  { :root { --cols: 8;  --gap: 24px; --margin: 40px; --space-section: 120px; --space-block: 56px; --inset: 24px; } }
@media (min-width: 1100px) { :root { --cols: 12; --gap: 32px; --margin: 56px; --space-section: 160px; --space-block: 72px; --header-h: 64px; --inset: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
code { font-family: var(--mono); font-size: .88em; background: rgba(9,9,9,.06); padding: .08em .3em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }   /* rule 19: hidden must beat class display */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .875rem; }
.skip-link:focus { top: 12px; }

/* ---------- Grid ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--space-block); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 700px) {
  .span-6 { grid-column: span 6 !important; }
  .span-4 { grid-column: span 4 !important; }
}
@media (min-width: 1100px) {
  .lg-1-8 { grid-column: 1 / span 8 !important; }
  .lg-1-7 { grid-column: 1 / span 7 !important; }
  .lg-1-6 { grid-column: 1 / span 6 !important; }
  .lg-7-12 { grid-column: 7 / span 6 !important; }
  .lg-8-12 { grid-column: 8 / span 5 !important; }
  .lg-6-12 { grid-column: 6 / span 7 !important; }
  .lg-span-4 { grid-column: span 4 !important; }
  .lg-span-6 { grid-column: span 6 !important; }
  .lg-span-3 { grid-column: span 3 !important; }
}

/* ---------- Bands ---------- */
.band { padding-block: var(--space-section); }
.band-sheet { background: var(--sheet); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .muted, .band-ink .lead { color: var(--muted-on-ink); }
.band-ink :focus-visible { outline-color: var(--accent-on-ink); }
/* Two bands of the same tone in a row read as one: collapse only that seam. */
.band:not(.band-sheet):not(.band-ink) + .band:not(.band-sheet):not(.band-ink),
.band-sheet + .band-sheet { padding-top: 0; }

/* ---------- Type ---------- */
.display { font-size: clamp(2.75rem, 12.5vw, 7.25rem); font-weight: 800; line-height: .94; letter-spacing: -.05em; }
.display em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.display em { color: var(--accent); }   /* the one red heading: boldness budget, rule 39 */
.h2 { font-size: clamp(2.25rem, 9vw, 4.75rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.h3 { font-size: clamp(1.375rem, 4.6vw, 1.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.lead { font-size: clamp(1.1875rem, 3.9vw, 1.5rem); line-height: 1.45; font-weight: 500; letter-spacing: -.012em; color: var(--ink); max-width: 34ch; }
.lead-value { font-size: 1.0625rem; line-height: 1.55; color: var(--muted); max-width: 44ch; margin-top: -4px; }
.muted { color: var(--muted); }
.body-copy { max-width: 58ch; color: var(--muted); }
.body-copy p + p { margin-top: 14px; }
.section-head { display: grid; gap: 18px; align-content: start; }
.section-head .h2 { margin-top: 2px; }
.caption { font-size: .875rem; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.caption em { font-family: var(--serif); font-size: 1.06em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: transform .32s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: .9375rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.nav-links { display: none; gap: 28px; font-size: .9375rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.nav-links a:hover { color: var(--ink); }
.nav-buy { font-size: .875rem; font-weight: 700; text-decoration: none; padding: 9px 14px; background: var(--accent); color: #fff; min-height: 40px; display: inline-flex; align-items: center; }
@media (min-width: 1100px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px; background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s;
}
.button svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.button:active { transform: scale(.97); }
.button-accent { background: var(--accent); }
.band-ink .button { background: var(--paper); color: var(--ink); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(9,9,9,.3); display: inline-flex; min-height: 44px; align-items: center; }
.band-ink .text-link { text-decoration-color: rgba(243,240,232,.35); }
@media (hover: hover) and (pointer: fine) {
  .button:hover svg { transform: translateX(3px); }
  .text-link:hover { text-decoration-color: currentColor; }
}

/* The Apple-style "+" control that opens a technical sheet */
.more-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 600 1rem/1.3 var(--sans); letter-spacing: -.01em; text-align: left;
}
.more-btn .plus {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; transition: transform .25s var(--ease-out);
}
.more-btn .plus svg { width: 14px; height: 14px; }
.band-ink .more-btn .plus { background: var(--paper); color: var(--ink); }
.more-btn:active .plus { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .more-btn:hover .plus { transform: rotate(90deg); } }
.more-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: var(--space-section); }
.hero .lead { margin-top: 24px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero-actions .button { width: 100%; }
@media (min-width: 520px) { .hero-actions .button { width: auto; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .875rem; color: var(--muted); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-art { margin-top: var(--space-block); }

/* Hero intake: a short story in three scenes (drop files, the agent files them, your vault) that share
   one stage, with scene navigation below. The markup is the finished state (vault scene);
   hero-intake.js autoplays the scenes once in view. */
.intake { display: grid; }
.intake-stage { display: grid; }
.intake-scene { grid-area: 1 / 1; display: grid; align-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s; }
.intake-scene.is-current { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Drop */
.intake-shelf { background: var(--sheet); box-shadow: 0 10px 30px -18px rgba(9,9,9,.35), inset 0 0 0 1px var(--line); padding: 12px 14px 14px; }
.intake-shelf-head { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.intake-shelf-head img { width: 20px; height: 20px; }
.intake-shelf-head b { color: var(--ink); font-weight: 600; }
.intake-shelf-head span { margin-left: auto; font-family: var(--mono); font-size: .6875rem; }
.intake-drops { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; min-height: 150px; margin-top: 10px; padding: 12px; border: 1.5px dashed rgba(9,9,9,.22); }
.intake-drops li {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px; background: #fff; box-shadow: 0 2px 6px -3px rgba(9,9,9,.25), inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: .75rem; white-space: nowrap;
  transition: transform .28s var(--ease-out), opacity .3s ease, box-shadow .28s ease;
}
.intake-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.intake-drops li[data-k="deep"] { box-shadow: 0 2px 6px -3px rgba(9,9,9,.25), inset 0 0 0 1.5px var(--ink); }
.intake-ext { flex: none; padding: 1px 6px; font-size: .625rem; letter-spacing: .04em; color: #fff; background: var(--ink); }
/* Dragging in: each file arrives from its own side, carried by a pointer, and the shelf lights up under it */
.intake-scene[data-scene="drop"] { overflow: clip; overflow-clip-margin: 12px; }   /* files enter from the stage edges, never past the page gutter */
.intake-drops { transition: border-color .2s ease, background-color .2s ease; }
/* ⌘V: pasted text appears as a snippet, then becomes a Markdown file named from its first line */
.intake-shelf { position: relative; }
.intake-keys { position: absolute; z-index: 3; top: 44px; right: 24px; display: flex; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .25s var(--ease-out); pointer-events: none; }
.intake-keys kbd { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: #fff; box-shadow: 0 2px 0 rgba(9,9,9,.25), inset 0 0 0 1px rgba(9,9,9,.2); font: 600 .8125rem var(--sans); color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.intake-keys.is-shown { opacity: 1; transform: none; }
.intake-keys.is-pressed kbd { transform: translateY(2px); box-shadow: 0 0 0 rgba(9,9,9,.25), inset 0 0 0 1px var(--ink); }
.intake-paste {
  position: absolute; z-index: 2; left: 50%; top: 58%; width: min(78%, 300px); display: grid; gap: 4px; padding: 12px 14px;
  background: #fff; box-shadow: 0 16px 30px -16px rgba(9,9,9,.45), inset 0 0 0 1px var(--ink); font-size: .8125rem; line-height: 1.4;
  opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s ease, transform .4s var(--ease-out), visibility 0s .4s; pointer-events: none;
}
.intake-paste b { font-weight: 700; }
.intake-paste span { color: var(--muted); }
.intake-paste.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition-delay: 0s; }
.intake-paste.is-leaving { opacity: 0; transform: translate(-50%, -20%) scale(.5); }
.intake-drops li.is-popping { opacity: 0; transform: scale(.6); transition: none; }
.intake-drops li.is-new-file { box-shadow: 0 2px 6px -3px rgba(9,9,9,.25), inset 0 0 0 1.5px var(--accent); }
.intake-drops.is-over { border-color: var(--accent); background: rgba(208,25,32,.04); }
.intake-drops li[data-k="pdf"]  { --fx: -190px; --fy: -20px; --fr: -9deg; }
.intake-drops li[data-k="cafe"] { --fx: 170px;  --fy: -90px; --fr: 7deg; }
.intake-drops li[data-k="deep"] { --fx: 10px;   --fy: -130px; --fr: -4deg; }
.intake-drops li[data-k="own"]  { --fx: 200px;  --fy: 50px;  --fr: 8deg; }
.intake-drops li[data-k="rota"] { --fx: -150px; --fy: 110px; --fr: -6deg; }
.intake-drops li.is-away { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); transition: none; }
.intake-drops li.is-carry {
  z-index: 2; opacity: 1; transform: translate(4px, -10px) rotate(calc(var(--fr) / 3)) scale(1.04);
  box-shadow: 0 14px 24px -12px rgba(9,9,9,.45), inset 0 0 0 1px var(--ink);
  transition: transform .75s var(--ease-out), opacity .25s ease, box-shadow .3s ease;
}
.intake-drops li::after {   /* the pointer that carries the file */
  content: ""; position: absolute; right: -10px; bottom: -14px; width: 16px; height: 20px; opacity: 0; transition: opacity .15s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M1 1l13 11.5-5.8.6 3.4 6.2-2.6 1.3-3.3-6.3L1 18z' fill='%23090909' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.intake-drops li.is-carry::after { opacity: 1; }

/* Convert: Drop's own local work, file type to Markdown; no agent here */
.intake-convert { display: grid; justify-items: center; gap: 6px; padding: 8px 0; text-align: center; }
.intake-local { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.intake-swap { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; }
.intake-swap span { display: grid; place-items: center; width: 56px; height: 68px; font: 600 .8125rem var(--mono); letter-spacing: .04em; background: #fff; box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(0 0, 72% 0, 100% 18%, 100% 100%, 0 100%); }
.intake-swap .intake-to { background: var(--ink); color: var(--paper); }
.intake-swap svg { width: 22px; height: 22px; color: var(--accent); }
.intake.is-converting .intake-swap svg { animation: nudge .9s var(--ease-out) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.intake-verb { font-weight: 600; font-size: 1.0625rem; }
.intake-file { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.intake-ticks { display: flex; gap: 6px; margin-top: 10px; }
.intake-ticks li { width: 22px; height: 4px; border-radius: 2px; background: rgba(9,9,9,.14); transition: background-color .3s ease; }
.intake-ticks li.is-done { background: var(--ink); }

/* The agent, as a symbol: it spins only while it drafts in the Linked scene */
.intake-orbit { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.intake-orbit i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--paper); transform: rotate(calc(var(--n) * 120deg)) translateY(-6px); }
.intake-orbit i:nth-child(1) { --n: 0; background: var(--accent-on-ink); }
.intake-orbit i:nth-child(2) { --n: 1; }
.intake-orbit i:nth-child(3) { --n: 2; }
.intake-orbit::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.intake.is-working .intake-orbit { animation: orbit 1.1s linear infinite; }
.intake.is-working .intake-orbit::after { animation: ping 1.1s var(--ease-out) infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ping { from { opacity: .7; transform: scale(.85); } to { opacity: 0; transform: scale(1.4); } }

/* Vault */
.intake-db { background: #fff; box-shadow: 0 18px 40px -26px rgba(9,9,9,.4), inset 0 0 0 1px rgba(9,9,9,.12); }
.intake-db-head { display: flex; align-items: center; gap: 14px; min-height: 36px; padding: 4px 14px; background: var(--ink); color: var(--muted-on-ink); font-family: var(--mono); font-size: .75rem; }
.intake-db-head b { color: var(--paper); font-weight: 500; }
.intake-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intake-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .8125rem; line-height: 1.4; }
.intake-table th { padding: 8px 10px 6px; text-align: left; font: 500 .6875rem var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.intake-table td { padding: 7px 10px; border-bottom: 1px solid rgba(9,9,9,.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .6s ease; }
.intake-table th:first-child { width: 48%; }
.intake-table th:nth-child(2) { width: 18%; }
.intake-table th:last-child { width: 13%; }
.intake-table td:first-child { font-weight: 600; }
.intake-table td:not(:first-child) { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.intake-table th:first-child, .intake-table td:first-child { padding-left: 14px; }
.intake-table tr:last-child td { border-bottom: 0; }
.intake-table .pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .6875rem; }
.pill.t-source { color: var(--c-source); background: rgba(138,90,0,.1); }
.pill.t-question { color: var(--c-question); background: rgba(208,25,32,.08); }
.intake-table .is-open { color: var(--accent); }
.intake-table tr.is-pending td { visibility: hidden; }   /* keeps its height: nothing shifts while rows arrive */
.intake-table tr.is-fresh td { background: rgba(208,25,32,.06); }
.intake-table tr.is-arriving td { animation: row-in .45s var(--ease-out) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }

/* Linked: Integrate is offered, the agent drafts a note whose claims cite source lines; graph and text side by side */
.intake-linked { display: grid; gap: 10px; }
.intake-linked-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 10px; align-items: stretch; }
.intake-graph { width: 100%; height: auto; background: #fff; box-shadow: inset 0 0 0 1px rgba(9,9,9,.12); }
.intake-graph .edge { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-out), stroke .2s ease, stroke-width .2s ease; }
.intake-graph .edge:not(.is-cite) { stroke: rgba(9,9,9,.35); }
.intake-graph .edge.is-pending { stroke-dashoffset: 1; }
.intake-graph .edge.is-lit { stroke: var(--accent); stroke-width: 2.2; }
.intake-graph text { font: 500 10.5px var(--sans); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }   /* halo: labels stay legible over edges */
.intake-graph .g-source circle { fill: var(--c-source); }
.intake-graph .g-faint circle { fill: #fff; stroke: var(--c-faint); stroke-width: 1.4; }
.intake-graph .g-faint text { fill: var(--c-faint); }
.intake-graph .g-question circle { fill: #fff; stroke: var(--c-question); stroke-width: 2.2; }
.intake-graph .g-question text { fill: var(--c-question); }
.intake-graph .g-knowledge rect { fill: var(--c-idea); }
.intake-graph .g-knowledge text { font-weight: 700; }
.intake-graph .gnode { transition: opacity .4s var(--ease-out); }
.intake-graph .gnode.is-pending { opacity: 0; }
.intake-graph .gnode.is-lit circle, .intake-graph .gnode.is-lit rect { stroke: var(--accent); stroke-width: 3; }
.intake-note { padding: 12px 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(9,9,9,.12); font-size: .8125rem; line-height: 1.45; }
.intake-note-head { display: flex; align-items: center; gap: 8px; }
.intake-note-head .intake-orbit { width: 16px; height: 16px; }
.intake-note-head .intake-orbit i { width: 3px; height: 3px; margin: -1.5px; transform: rotate(calc(var(--n) * 120deg)) translateY(-4.5px); }
.intake-note-meta { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.intake-note-title { margin-top: 8px; font-size: 1rem; font-weight: 700; line-height: 1.25; }
/* Citations read as Obsidian links: the claim names its source, the graph draws the line */
.intake-claims .wl { color: var(--c-idea); font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.intake-claims li.is-lit .wl { color: var(--accent); }
.intake-claims { display: grid; gap: 8px; margin-top: 10px; }
.intake-claims li { position: relative; padding-left: 14px; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.intake-claims li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-idea); transition: background-color .2s ease, transform .2s ease; }
.intake-claims li.is-pending { opacity: 0; transform: translateY(4px); }
.intake-claims li.is-lit::before { background: var(--accent); transform: scale(1.4); }
@media (max-width: 699px) {   /* phones: the Linked scene sets the stage height, so keep it tight */
  .intake-linked-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .intake-graph { max-height: 150px; }
  .intake-note { padding: 10px 12px; }
  .intake-claims { gap: 6px; margin-top: 8px; }
  .intake-scene { align-content: start; }
}

/* Small interactions: a file opens its row in the vault, a cited row opens its link, nodes and claims light their pair */
.intake-drops li, .intake-table tr[data-k], .intake-graph .gnode[data-k], .intake-claims li { cursor: pointer; }
.intake-drops li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.intake-table tr.is-flash td { background: rgba(208,25,32,.1); }
.intake-graph .gnode.is-pinned circle, .intake-graph .gnode.is-pinned rect { stroke: var(--accent); stroke-width: 3; }
@media (hover: hover) and (pointer: fine) {
  .intake-drops li:hover { transform: translateY(-2px); box-shadow: 0 6px 12px -6px rgba(9,9,9,.35), inset 0 0 0 1px var(--ink); }
  .intake-graph .gnode[data-k]:hover circle, .intake-graph .gnode[data-k]:hover rect { stroke: var(--accent); stroke-width: 3; }
  .intake-claims li:hover .wl { color: var(--accent); }
}

/* Scene navigation: each tab fills while its scene plays */
.intake-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.intake-nav button { display: grid; gap: 8px; padding: 0 6px 8px; border: 0; background: transparent; color: var(--muted); transition: color .25s ease, background-color .2s ease; font: 500 .8125rem var(--sans); text-align: left; cursor: pointer; border-radius: 4px; }
.intake-nav button i { display: block; height: 2px; margin-inline: -6px; background: rgba(9,9,9,.08); background-image: linear-gradient(var(--bar, var(--ink)), var(--bar, var(--ink))); background-repeat: no-repeat; background-size: var(--fill, 0%) 100%; }
.intake-nav button.is-seen i { --fill: 100%; --bar: rgba(9,9,9,.16); }
.intake-nav button[aria-selected="true"] i { --bar: var(--ink); height: 3px; }
.intake-nav button.is-playing i { animation: fill var(--dur, 3s) linear both; }
.intake-nav button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.intake-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes fill { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.intake .caption { margin-top: 10px; max-width: 60ch; }
@media (hover: hover) and (pointer: fine) {
  .intake-nav button:hover { background: rgba(9,9,9,.05); color: var(--accent); }
  .intake-table tbody tr:hover td { background: rgba(9,9,9,.035); }
}
@media (max-width: 519px) {   /* phones: drop the locator column; type and status stay */
  .intake-loc { display: none; }
  .intake-table th:first-child { width: 60%; }
  .intake-table th:nth-child(2) { width: 24%; }
  .intake-table th:last-child { width: 16%; }
  .intake-table th, .intake-table td { padding-inline: 8px; }
  .intake-table .pill { padding-inline: 7px; }
  .intake-table th:first-child, .intake-table td:first-child { padding-left: 12px; }
  .intake-drops { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .intake-scene { transform: none; transition: opacity .2s ease, visibility 0s .2s; }
  .intake.is-working .intake-orbit, .intake.is-working .intake-orbit::after, .intake.is-converting .intake-swap svg, .intake-nav button.is-playing i { animation: none; }
}

/* ---------- Story chapters ---------- */
.chapter-art img { width: 100%; height: auto; }
.chapter-art { margin-inline: calc(-1 * var(--margin)); }
@media (min-width: 700px) { .chapter-art { margin-inline: 0; } }
.statement { font-size: clamp(1.75rem, 6.6vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; max-width: 22ch; }
.statement .dim { color: var(--muted); font-weight: 600; }

/* Steps: big numerals on a 4-up grid */
.steps { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 36px var(--gap); }
.steps > li { grid-column: 1 / -1; }
@media (min-width: 700px) { .steps > li { grid-column: span 4; } }
@media (min-width: 1100px) { .steps > li { grid-column: span 3; } }
.steps p { margin-top: 10px; color: var(--muted); }

.prompt-card { background: var(--sheet); color: var(--ink); padding: var(--inset); }
.prompt-card blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 5vw, 2rem); line-height: 1.25; }
.prompt-card .q { color: var(--accent); }
.prompt-tools { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: .875rem; color: var(--muted); }
.prompt-label { display: block; margin-bottom: 12px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.copy-button { min-height: 44px; padding: 0 16px; background: var(--ink); color: #fff; border: 0; font: 600 .875rem var(--sans); cursor: pointer; transition: transform .16s var(--ease-out); }
.copy-button:active { transform: scale(.97); }
.term-tabs button:active, .nav-buy:active, .sheet-close:active { transform: scale(.97); }   /* every button answers a press the same way */

/* ---------- Snap rails (mobile carousels, desktop grids) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); scroll-padding-inline: var(--margin);
  scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; position: relative; } /* keeps .sr-only text inside the scroller */
@media (min-width: 700px) { .rail { grid-auto-columns: calc((100% - 2 * var(--margin) - var(--gap)) / 2.15); } }
@media (min-width: 1100px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; row-gap: calc(var(--gap) * 1.5); }
  .rail-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rail-hint { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 14px; }
@media (min-width: 1100px) { .rail-hint { display: none; } }

/* Agent terminals */
.term { background: var(--ink-2); padding: var(--inset); font-family: var(--mono); font-size: .8125rem; line-height: 1.6; color: #d9d4c9; height: 100%; display: flex; flex-direction: column; gap: 8px; }
.term-head { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; color: #8f8a80; margin-bottom: 6px; }
.term-head b { color: var(--paper); font-weight: 500; }
.term-you { color: #fff; font-weight: 500; }
.term-you::before { content: "› "; color: var(--accent-on-ink); }
.term .ask { color: var(--accent-on-ink); }

/* Format cards */
.card { background: var(--sheet); display: flex; flex-direction: column; height: 100%; }
.band-sheet .card { background: var(--paper); }
.card-art { aspect-ratio: 3 / 2; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card-body { padding: var(--inset) var(--inset) calc(var(--inset) - 4px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--muted); font-size: 1rem; }
.card-body .card-holds { font-size: .875rem; }
.card-holds b { color: var(--ink); font-weight: 600; }
.card-link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.card-link span { color: var(--accent); transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-art img { transform: scale(1.03); }
  .card-link:hover span { transform: translateX(3px); }
}

/* Promise tiles (trust chapter) */
.promises { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.promise { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }   /* open columns: rule 33, not every group is a card */
.promise p { color: var(--muted); }
.promise-mark { width: 40px; height: 40px; margin-bottom: 6px; }
@media (min-width: 700px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); } .promise { grid-column: auto; } }   /* three across from tablet up: 2 + 1 left an orphan */

/* Modules: tappable tiles that open sheets */
/* Self-filling: columns come from the width (3 / 2 / 1), so a new module just takes the next slot */
.tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
@media (min-width: 700px) { .tiles { gap: var(--gap); } }
.tile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 6px 16px; align-items: start;
  padding: var(--inset); background: var(--sheet); border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
  transition: background-color .2s;
}
.tile .h3 { font-size: 1.25rem; }
.tile .tile-lead { grid-column: 1; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.tile .plus { grid-column: 2; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .25s var(--ease-out); }
.tile .plus svg { width: 14px; height: 14px; }
.tile { transition: background-color .2s, transform .16s var(--ease-out); }
.tile:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .tile:hover { background: #fff; } .tile:hover .plus { transform: rotate(90deg); } }

/* ---------- Offer ---------- */
.offer { background: var(--paper); color: var(--ink); padding: calc(var(--inset) + 8px) var(--inset); display: grid; gap: 22px; }
@media (min-width: 1100px) { .offer { padding: 44px 40px; } }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-num { font-size: clamp(4.5rem, 22vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.price-note { font-weight: 600; font-size: 1.0625rem; }
.price-note small { display: block; font-weight: 500; color: var(--muted); font-size: .9375rem; }
.included { display: grid; gap: 12px; }
.included li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 1rem; line-height: 1.45; }
.included li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='%23d01920' stroke-width='2'/%3E%3C/svg%3E"); }
.offer .button { width: 100%; }
.offer-small { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.offer-small a { color: var(--ink); }
.needs { display: grid; gap: 14px; }
.needs dt { font-size: .9375rem; font-weight: 500; color: var(--muted-on-ink); }
.needs dd { color: var(--paper); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--sheet); }
.band-sheet .faq details { background: var(--paper); }
.faq summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; align-items: center;
  padding: 18px var(--inset); cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--ink) no-repeat center/14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 var(--inset) 22px; color: var(--muted); max-width: 70ch; }
.faq .answer p + p { margin-top: 12px; }
.faq .answer a { color: var(--ink); }

/* ---------- Sheets (dialogs) ---------- */
.sheet {
  width: 100%; max-width: 100%; height: auto; max-height: 92dvh; margin: auto 0 0; padding: 0;
  border: 0; background: var(--sheet); color: var(--ink); overflow: hidden;
}
.sheet::backdrop { background: rgba(9, 9, 9, .55); }
.sheet-inner { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--margin) 36px; }
.sheet-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0 14px; background: var(--sheet); }
.sheet-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 14px; height: 14px; }
.sheet h2 { padding-top: 4px; font-size: clamp(1.75rem, 7vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.sheet h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.022em; line-height: 1.2; margin-top: 30px; }
.sheet p, .sheet li { color: var(--muted); }
.sheet h2 + p, .sheet h3 + p { margin-top: 8px; }
.sheet p + p { margin-top: 12px; }
.sheet .lead { margin-top: 14px; color: var(--ink); }
.sheet dl { display: grid; gap: 20px; margin-top: 24px; }
.sheet dt { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sheet dd { margin-top: 4px; color: var(--muted); }
.sheet .compare { margin-top: 28px; }
@media (min-width: 700px) {
  .sheet { max-width: 760px; margin: auto; max-height: 86dvh; }
  .sheet-inner { max-height: 86dvh; padding: 0 44px 48px; }
  .sheet-top { padding-top: 22px; }
}

html.sheet-open { overflow: hidden; }

/* ---------- Compare diagrams (graphs.js) ---------- */
.compare-pair { display: grid; gap: 22px; }
@media (min-width: 900px) { .compare-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } }
.compare-pane { background: var(--sheet); padding: 18px 14px 10px; }
.band-sheet .compare-pane, .sheet .compare-pane { background: var(--paper); }
.compare-label { font-size: .9375rem; font-weight: 600; margin-bottom: 6px; padding-inline: 6px; }
.compare-step { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--accent); margin-right: 6px; }
.compare-arrow { color: var(--accent); font-family: var(--mono); font-size: 1.5rem; justify-self: center; transform: rotate(90deg); line-height: 1; }
@media (min-width: 900px) { .compare-arrow { transform: none; } }
.graph { width: 100%; height: auto; }
.graph .g-text text { font-family: var(--mono); font-size: 12px; fill: var(--muted); paint-order: stroke; stroke: var(--sheet); stroke-width: 5px; stroke-linejoin: round; }
.band-sheet .graph .g-text text, .sheet .graph .g-text text { stroke: var(--paper); }
.graph .g-select { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; }
.graph .edge { stroke: rgba(9,9,9,.34); stroke-width: 1; transition: opacity .18s ease, stroke .18s ease, stroke-width .18s ease; }
.graph .g-text { transition: opacity .18s ease; }
.graph .edge.dashed { stroke-dasharray: 3 3; }
.graph .node { transition: opacity .18s ease; cursor: default; }
.graph .node .ring { fill: none; stroke: none; }
.graph .shape { transform-box: fill-box; transform-origin: center; }
.graph .t-map .shape, .graph .t-home .shape { fill: var(--c-map); }
.graph .t-idea .shape { fill: var(--c-idea); }
.graph .t-note .shape { fill: var(--c-note); }
.graph .t-source .shape { fill: var(--c-source); }
.graph .t-question .shape { fill: var(--sheet); stroke: var(--c-question); stroke-width: 2.25; }
.graph .t-faint .shape { fill: var(--c-faint); }
.graph .t-excluded .shape { fill: var(--sheet); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 2.5; }
.graph .t-page .shape { fill: var(--sheet); stroke: var(--c-note); stroke-width: 1.75; }
.compare.is-live .node { cursor: pointer; }
.compare.is-live .node:focus { outline: none; }
.compare.is-live .node:focus-visible .ring, .compare .node.is-current .ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.compare.has-active .node:not(.hl) { opacity: .16; }
.compare.has-active .edge:not(.hl) { opacity: .1; }
.compare.has-active .edge.hl { stroke: var(--ink); stroke-width: 2; }
.compare.has-active .g-text { opacity: .35; }
.compare.pre-reveal .rv { opacity: 0; }
.graph-readout { min-height: 3.2em; margin-top: 14px; font-size: .9375rem; line-height: 1.5; }
.graph-readout[hidden] { display: none; }
.graph-readout .rk { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.compare-caption { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.compare-caption p { margin-top: 10px; max-width: 70ch; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--ink); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; flex: none; width: 12px; height: 12px; }
.key-map { background: var(--ink); }
.key-idea, .key-note { background: var(--c-idea); border-radius: 50%; }
.key-source { width: 10px; height: 10px; background: var(--c-source); border-radius: 50%; }
.key-faint { width: 10px; height: 10px; background: var(--c-faint); border-radius: 50%; }
.key-question { border: 2px solid var(--accent); border-radius: 50%; }
.key-excluded { border: 1.5px dashed var(--muted); border-radius: 50%; }
.key-page { width: 10px; height: 13px; border: 1.5px solid var(--c-note); }

/* ---------- About & footer ---------- */
.maker { display: grid; gap: 18px; }
.site-footer { padding: 48px 0 40px; background: var(--ink); color: var(--muted-on-ink); font-size: .875rem; }
.footer-inner { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { color: var(--paper); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .wordmark { color: var(--paper); }
@media (min-width: 1100px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; } .footer-links { justify-content: center; } }


/* The offer card sits on paper inside the ink band: its button keeps the accent. */
.band-ink .offer .button { background: var(--accent); color: #fff; }

/* ---------- Iteration 2 ---------- */
/* Two-column chapters on desktop: head left, picture or artifact right, centred on each other */
@media (min-width: 1100px) {
  .grid > .lg-7-12.chapter-art, .grid > .vault, .grid > .prompt-card { align-self: center; }
  .lg-1-5 { grid-column: 1 / span 5 !important; }
}
.section-head .more-row { margin-top: 6px; }

/* The vault window: a real-looking (but labelled example) map note */
.vault { margin-inline: calc(-1 * var(--margin)); }
@media (min-width: 700px) { .vault { margin-inline: 0; } }
.vault-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--ink); color: #b9b4a9; font-family: var(--mono); font-size: .75rem; }
.vault-bar b { color: var(--paper); font-weight: 500; }
.vault-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-dots { display: inline-flex; gap: 6px; flex: none; }
.vault-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3836; }
.vault-dots i:first-child { background: var(--accent); }
.vault-body { display: grid; background: #fff; }
.vault-tree { display: none; padding: 18px 14px; background: var(--paper); font-family: var(--mono); font-size: .75rem; line-height: 1.9; color: var(--muted); }
.vault-tree ul { padding-left: 14px; }
.vault-dir::before { content: "▾ "; }
.vault-dir[aria-expanded="false"]::before { content: "▸ "; }
.vault-tree span { color: #6b665e; }
@media (min-width: 520px) { .vault-body { grid-template-columns: 176px minmax(0, 1fr); } .vault-tree { display: block; } }
.vault-note { padding: var(--inset); font-size: .9375rem; line-height: 1.55; }
/* Obsidian's Properties view of the frontmatter */
.vault-props { display: grid; gap: 3px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; line-height: 1.6; }
.vault-props div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; }
.vault-props dt { color: var(--muted); }
.vault-props dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.vault-pill { display: inline-block; margin: 0 2px 2px 0; padding: 0 6px; background: var(--paper); border-radius: 3px; }
.vault-empty { color: #8a857c; }
.vault-note code { font-family: var(--mono); font-size: .8em; padding: 1px 4px; background: var(--paper); }
.vault-h { margin-top: 12px; font-size: 1.625rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.vault-nav { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.vault-link { color: #1f4e8c; text-decoration: underline; text-decoration-color: rgba(31,78,140,.35); text-underline-offset: .22em; }
.vault-text { margin-top: 14px; }
.vault-text b { font-weight: 700; }
.vault-sub { margin-top: 18px; font-weight: 700; font-size: 1rem; }
.vault-bul { margin-top: 6px; display: grid; gap: 4px; }
.vault-bul li { position: relative; padding-left: 18px; }
.vault-bul li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
/* Linked mentions: the backlinks list Obsidian can show under a note */
.vault-mentions { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.vault-mentions-h { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.vault-mentions-h span { margin-left: 4px; font-family: var(--mono); font-weight: 400; }
.vault-mentions .vault-empty { margin-top: 4px; font-size: .8125rem; }
.vault .caption { margin-top: 14px; padding-inline: var(--margin); }
@media (min-width: 700px) { .vault .caption { padding-inline: 0; } }

/* Formats: every format visible on a phone (compact rows), a 3×2 grid on desktop */
.formats-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px var(--gap); }
.formats-grid > li { grid-column: 1 / -1; }
.formats-grid .card { display: grid; grid-template-columns: calc((100% - 3 * var(--gap)) / 4) minmax(0, 1fr); column-gap: var(--gap); }   /* thumbnail = one grid column */
.formats-grid .card-art { aspect-ratio: auto; height: 100%; min-height: 104px; }
.formats-grid .card-body { padding: 14px var(--inset) 10px 0; gap: 6px; }
.formats-grid .card-body .h3 { font-size: 1.1875rem; }
.formats-grid .card-body p { font-size: .9375rem; line-height: 1.45; }
.formats-grid .card-holds { font-size: .875rem; }
.formats-grid .card-link { min-height: 40px; padding-top: 2px; font-size: .875rem; }
@media (min-width: 700px) {
  .formats-grid > li { grid-column: span 4; }
  .formats-grid .card { display: flex; }
  .formats-grid .card-art { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .formats-grid .card-body { padding: var(--inset) var(--inset) calc(var(--inset) - 6px); gap: 10px; }
  .formats-grid .card-body .h3 { font-size: 1.375rem; }
  .formats-grid .card-holds { display: block; }
}


/* FAQ band carries the maker on the left */
.maker { margin-top: 28px; display: grid; gap: 12px; }
@media (min-width: 1100px) { #faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.dd-note { display: inline-block; margin-top: 4px; font-size: .9375rem; font-weight: 400; color: var(--muted-on-ink); }
.maker-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.maker-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration-color: rgba(9,9,9,.3); }
.maker-links a:hover { text-decoration-color: currentColor; }
/* Headings in a 6-column half must not wrap to three lines */
@media (min-width: 1100px) { .lg-1-6 .h2, .lg-1-5 .h2 { font-size: clamp(3rem, 4.4vw, 4rem); } }

/* ---------- Motion (iteration 3, improve-animations audit) ----------
   Two orchestrated moments: the hero, and the vault window assembling.
   Sheets use transitions (interruptible, with an exit), not keyframes. */

/* Sheets: phones get a drawer from the bottom edge, wider screens a soft scale-in. */
.sheet { transform: translateY(100%); transition: transform .5s var(--ease-drawer), overlay .5s allow-discrete, display .5s allow-discrete; }
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateY(100%); } }
.sheet::backdrop { opacity: 0; transition: opacity .35s ease, overlay .5s allow-discrete, display .5s allow-discrete; }
.sheet[open]::backdrop { opacity: 1; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }
@media (min-width: 700px) {
  .sheet { transform: scale(.97); opacity: 0; transition: transform .3s var(--ease-out), opacity .2s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
  .sheet[open] { transform: none; opacity: 1; }
  @starting-style { .sheet[open] { transform: scale(.97); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet[open] { transform: none; }
  .sheet { opacity: 0; transition: opacity .2s ease, overlay .2s allow-discrete, display .2s allow-discrete; }
  .sheet[open] { opacity: 1; }
  @starting-style { .sheet[open] { transform: none; opacity: 0; } }
}

/* FAQ answers settle in instead of teleporting */
.faq details[open] .answer { animation: answer-in .24s var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the signature moment. Text rises in a short stagger, then the drawing
     is revealed in the direction the story runs (chaos → order). */
  html.js-motion .hero h1, html.js-motion .hero .lead, html.js-motion .hero-actions, html.js-motion .hero-facts {
    animation: rise .7s var(--ease-out) both;
  }
  html.js-motion .hero .lead { animation-delay: 70ms; }
  html.js-motion .hero-actions { animation-delay: 140ms; }
  html.js-motion .hero-facts { animation-delay: 210ms; }
  html.js-motion .hero-art { animation: rise .7s var(--ease-out) .18s both; }   /* the intake example then plays itself (hero-intake.js) */

  /* Vault window: folders, then the note, assemble once when it scrolls in. */
  .vault.is-pending .vault-tree > li, .vault.is-pending .vault-note > * { opacity: 0; transform: translateY(8px); }
  .vault .vault-tree > li, .vault .vault-note > * {
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 40ms);
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes draw-across { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Iteration 3 ---------- */
/* Agent exchanges: one example at a time behind tabs, at every width (the user wants one agent in view) */
.term-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; margin: -6px -6px 6px; }   /* padding: the scroll box would clip the focus ring */
.term-tabs::-webkit-scrollbar { display: none; }
.term-tabs button {
  flex: none; min-height: 44px; padding: 0 13px; border: 0; border-radius: 22px; cursor: pointer;
  background: rgba(9,9,9,.06); color: var(--muted); font: 600 .9375rem var(--sans);
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.term-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.term-tabs:not(.is-live) { display: none; }
.terms { display: grid; gap: var(--gap); }
.terms > li { position: relative; }
.terms .term { min-height: 236px; }
/* All panels share one grid cell, so the box is as tall as the longest run and never jumps on a tab switch */
.js-tabs .terms > li { grid-area: 1 / 1; }
.js-tabs .terms > li:not(.is-active) { visibility: hidden; }
.js-tabs .terms > li.is-active .term { animation: answer-in .24s var(--ease-out); }
.term-note { margin-bottom: 14px; color: var(--muted); font-size: .9375rem; }
.term-example { margin-left: 10px; padding: 1px 8px; border: 1px solid rgba(243,240,232,.3); border-radius: 999px; font: 500 .6875rem var(--mono); color: var(--muted-on-ink); }
.term-app .term-example { border-color: var(--line); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .js-tabs .terms > li.is-active .term { animation: none; } }


/* Dark band: captions keep 9:1, not the paper-band muted (2.6:1 on ink) */
.band-ink .caption { color: var(--muted-on-ink); }

/* Reduced motion: keep fades and state colour, drop every movement */
@media (prefers-reduced-motion: reduce) {
  .faq details[open] .answer { animation: fade .2s ease; }
  .faq summary::after, .more-btn .plus, .tile .plus, .card-art img, .card-link span, .button svg { transition: none; }
  .more-btn:hover .plus, .tile:hover .plus, .card:hover .card-art img, .card-link:hover span, .button:hover svg { transform: none; }
  .button:active, .tile:active, .copy-button:active, .more-btn:active .plus,
  .term-tabs button:active, .nav-buy:active, .sheet-close:active, .t-replay:active { transform: none; }
  .t-replay.is-spin svg { animation: none; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Interactive example vault (assets/vault-demo.js) ---------- */
.vault-back { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px 0; border: 0; border-radius: 50%; background: #2a2826; color: var(--paper); cursor: pointer; }
.vault-back svg { width: 14px; height: 14px; }
.vault-back:hover { background: #3a3836; }
.vault-dir { display: block; padding: 4px 0; }
.vault-tree button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 0 8px; margin-left: -8px;
  border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.vault-tree button span { color: #6b665e; }
.vault-tree button:hover { color: var(--ink); background: rgba(9,9,9,.05); }
.vault-tree button[aria-current="true"] { color: var(--ink); font-weight: 500; background: rgba(9,9,9,.08); }
.vault-link {
  display: inline; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer;
  color: #1f4e8c; text-decoration: underline; text-decoration-color: rgba(31,78,140,.35); text-underline-offset: .22em;
}
.vault-link:hover { text-decoration-color: currentColor; }
.vault-bul li { min-height: 28px; }
.vault-h:focus { outline: none; }
.vault-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Dataview live views, as the real Research map shows them when Dataview is on */
.vault-dv { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }   /* fixed: the four tables share one column line */
.vault-dv th:last-child { width: 8.75rem; }
.vault-dv + .vault-dv { margin-top: 14px; }
.vault-dv th { text-align: left; font-weight: 600; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.vault-dv th span { margin-left: 4px; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--muted); }
.vault-dv td { padding: 5px 12px 5px 0; vertical-align: top; }
.vault-dv td:last-child { padding-top: 7px; }   /* mono date sits on the title's first line */
.vault-dv td:last-child, .vault-dv th:last-child { padding-right: 0; white-space: nowrap; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.vault-dv th:last-child { font-family: var(--sans); font-size: .875rem; color: var(--ink); }
/* A window of fixed height: the note scrolls inside it, so the page never jumps as you switch notes */
.vault-body { height: clamp(420px, 70vh, 600px); }
.vault-tree, .vault-note { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9c4b8 transparent; }
.vault-note.is-swapping > * { animation: answer-in .22s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .vault-note.is-swapping > * { animation: fade .16s ease both; } }

/* Phones: the folder tree becomes one scrollable strip of note chips */
@media (max-width: 519px) {
  .vault-tree { display: flex; align-items: center; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; line-height: 1; }
  .vault-tree::-webkit-scrollbar { display: none; }
  .vault-tree ul, .vault-tree li { display: contents; }
  .vault-tree .is-dir::before, .vault-tree .vault-dir { display: none; }
  .vault-tree button { width: auto; min-height: 36px; margin: 0; padding: 0 12px; background: #fff; color: var(--ink); }
  .vault-tree button[aria-current="true"] { background: var(--ink); color: #fff; }
  .vault-tree button[aria-current="true"] span { color: #b9b4a9; }
  .vault-body { height: 480px; grid-template-rows: auto minmax(0, 1fr); }
  .vault-tree { overflow-y: hidden; }
  .vault-tree [data-top="Research"] { display: none; }   /* phones: chips for the maps and root notes only */
  .vault-props div { grid-template-columns: 6.5rem minmax(0, 1fr); }
}
@media (min-width: 1100px) { .grid > .section-head.lg-1-6 { align-self: center; } }
/* The example vault changes height as you switch notes: pin both columns to the top so the copy stays put */
@media (min-width: 1100px) { #problem .grid > .section-head, #problem .grid > .vault { align-self: start; } }

/* ---------- Iteration 4 ---------- */
/* Hero: copy left, drawing right on desktop; one column on phones and tablets */
.hero-grid { row-gap: 0; }
@media (min-width: 1100px) {
  .hero-grid { align-items: center; }
  .hero .display { font-size: clamp(4rem, 6vw, 5.75rem); }
  .hero-grid .hero-art { margin-top: 0; }
}
/* "+" links stack in one column: a 2 + 1 wrap reads as a jagged cluster */
.more-row { flex-direction: column; align-items: flex-start; gap: 4px; }
/* Steps now come before the prompt card: keep a block of air between them */
@media (min-width: 1100px) {
  #how-it-works .prompt-card { grid-row: 1; }
}
/* Offer: the facts sit close to the heading they qualify */
.section-head .needs { margin-top: 14px; gap: 12px; }
/* Before/after diagrams: equal panes, one-line labels, a readout set as rows */
.compare-pair { align-items: stretch; }
@media (min-width: 900px) { .compare-pair { align-items: stretch; } .compare-arrow { align-self: center; } }
.graph-readout { min-height: 5.2em; }
.graph-readout > span { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0 10px; margin-top: 4px; }
.graph-readout > span:first-of-type { margin-top: 8px; }
.graph-readout .rk { line-height: 1.85; }
/* Module rows on a sheet band take the paper tone, like FAQ rows, so each reads as a control */
.band-sheet .tile { background: var(--paper); }
@media (min-width: 1100px) {
  #get-workroom .section-head { align-self: start; }
  #get-workroom .offer { align-self: start; }
}

/* ---------- Iteration 5: hover states ----------
   Every button changes its background on hover; every text link changes colour.
   Hover-capable pointers only, so a tap never leaves a stuck hover on a phone. */
:root { --ink-hover: #36332f; --accent-hover: #a8141a; }
.nav-buy, .copy-button, .sheet-close, .more-btn, .faq summary, .vault-link,
.text-link, .card-link, .maker-links a, .footer-links a, .nav-links a, .wordmark { transition: background-color .2s ease, color .15s ease, text-decoration-color .15s ease, transform .16s var(--ease-out); }
.more-btn .plus, .faq summary::after { transition: transform .25s var(--ease-out), background-color .2s ease; }
/* "+" buttons get a pill so the hover tint has a shape; the circle stays on the column edge */
.more-btn { padding: 6px 16px 6px 6px; margin-left: -6px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  /* Buttons */
  .button:hover, .copy-button:hover, .sheet-close:hover { background-color: var(--ink-hover); }
  .button-accent:hover, .nav-buy:hover, .band-ink .offer .button:hover { background-color: var(--accent-hover); }
  .band-ink .button:not(.offer .button):hover { background-color: #fff; }
  .more-btn:hover { background-color: rgba(9,9,9,.06); }
  .band-ink .more-btn:hover { background-color: rgba(243,240,232,.1); }
  .more-btn:hover .plus, .tile:hover .plus, .faq summary:hover::after { background-color: var(--accent); color: #fff; }
  .band-ink .more-btn:hover .plus { background-color: var(--accent-on-ink); color: var(--ink); }
  .faq summary:hover { background-color: rgba(9,9,9,.04); }
  .term-tabs button[aria-selected="false"]:hover { background-color: rgba(9,9,9,.12); color: var(--ink); }
  .vault-back:hover { background-color: #4a4744; }
  /* Links: one hover colour, the accent (its lighter twin on ink) */
  a:where(:not(.button, .nav-buy, .skip-link)):hover, .vault-link:hover { color: var(--accent); text-decoration-color: currentColor; }
  .card-link:hover, .nav-links a:hover, .maker-links a:hover { color: var(--accent); }
  .footer-links a:hover { color: var(--accent-on-ink); }
  .band-ink a:where(:not(.button, .nav-buy)):hover, .site-footer a:hover { color: var(--accent-on-ink); }
}

/* Module tiles: equal cards; "Add your own" is the open slot at the end */
.tile .plus { grid-row: 1 / span 2; align-self: start; }
.tile-own, .band-sheet .tile-own { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(9,9,9,.22); }
.tile-own .plus { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .band-sheet .tile:hover { background: #fff; }
  .tile-own:hover, .band-sheet .tile-own:hover { background: rgba(9,9,9,.04); }
  .tile-own:hover .plus { box-shadow: none; }
}

/* ---------- Iteration 5: sheets with structure ----------
   Art banner, a flow (squares mark steps; the hollow red circle marks your decision, as in
   the drawings), cards for facts. No numbers, no rules: tone and space separate things. */
@media (min-width: 700px) { .sheet { max-width: 880px; } }
.sheet .lead { font-size: clamp(1.125rem, 4.4vw, 1.375rem); line-height: 1.4; max-width: 46ch; }
.sheet-art { margin: 24px calc(-1 * var(--margin)) 0; background: var(--paper); }
.sheet-art img { display: block; width: 100%; height: auto; }
@media (min-width: 700px) { .sheet-art { margin-inline: 0; } }

.flow { display: grid; gap: 0; margin-top: 28px; }
.flow li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding-bottom: 18px; }
.flow li::before { content: ""; width: 10px; height: 10px; margin: 7px 0 0 6px; background: var(--ink); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 4px; width: 1px; background: rgba(9,9,9,.22); }
.flow li.is-you::before { width: 12px; height: 12px; margin: 6px 0 0 5px; background: none; border: 2px solid var(--accent); border-radius: 50%; }
.flow b { grid-column: 2; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.flow span { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
@media (min-width: 700px) {
  .flow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 var(--gap); }
  .flow li { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; row-gap: 4px; }
  .flow li::before { margin: 0 0 12px; }
  .flow li.is-you::before { margin: -1px 0 11px; }
  .flow b, .flow span { grid-column: 1; }
  /* the connector runs from each marker toward the next one */
  .flow li:not(:last-child)::after { left: 22px; right: calc(-1 * var(--gap) + 8px); top: 4.5px; bottom: auto; width: auto; height: 1px; }
}

.sheet dl.sheet-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 28px; }
.sheet-cards > div { padding: var(--inset); background: var(--paper); }
.sheet-cards dt { font-size: 1.0625rem; }
.sheet-cards dd { margin-top: 6px; font-size: .9375rem; line-height: 1.5; }
.zones dt { display: flex; align-items: center; gap: 10px; }
.zones dt::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--ink); }
.zones > div:nth-child(2) dt::before { background: none; border: 1.5px dashed var(--ink); }
.zones > div:nth-child(3) dt::before { background: none; border: 1.5px solid var(--ink); }
.sheet-note, .sheet-cta { margin-top: 22px; }
.sheet-note { font-size: .9375rem; max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 6px 12px; border-radius: 6px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(9,9,9,.22); font-weight: 500; font-size: .9375rem; }   /* static labels: not pills, so they never read as the agent tabs */
.chips .chip-any { color: var(--muted); box-shadow: none; outline: 1px dashed rgba(9,9,9,.3); outline-offset: -1px; }

.sheet dl.spec-table { display: grid; gap: 0; margin-top: 28px; }
.spec-table > div { padding: 16px var(--inset); }
.spec-table > div:nth-child(odd) { background: var(--paper); }
@media (min-width: 700px) { .spec-table > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--gap); } .spec-table dd { margin-top: 0; } }

.structure-grid { display: grid; gap: 12px; margin-top: 28px; }
.structure-grid .sheet-cards { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .structure-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.file-tree { padding: var(--inset); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .8125rem; line-height: 1.9; }
.file-tree ul ul { padding-left: 16px; }
.file-tree li.d::before { content: "▾ "; color: var(--muted-on-ink); }
.file-tree li span { color: var(--muted-on-ink); }
.file-tree li.h { color: var(--muted-on-ink); }
.file-tree figcaption { margin-top: 12px; font-family: var(--sans); font-size: .8125rem; color: var(--muted-on-ink); line-height: 1.45; }

/* Optical size match: EB Garamond italic has a 0.40 x-height and 0.65 caps against Manrope's 0.54 and 0.72.
   1.22em sits between the two ratios (x 1.35, caps 1.11), so lowercase and capitals both read as one size.
   A tighter line-height keeps the larger italic from opening up the heading's line spacing. */
.display em, .h2 em { font-size: 1.22em; line-height: .78; letter-spacing: -.025em; }
.display em { line-height: .9; }
.hero .lead { margin-top: 34px; }
.flow li { align-content: start; }
.structure-grid dl.sheet-cards { margin-top: 0; }
.sheet .file-tree li { color: var(--paper); }
.sheet .file-tree li span, .sheet .file-tree li.h { color: var(--muted-on-ink); }

/* Full specification: four groups in two columns, headline facts on top */
@media (min-width: 900px) { .sheet-wide { max-width: 1040px; } }
.spec-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.spec-facts li { padding: 6px 12px; border-radius: 6px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(9,9,9,.22); font-weight: 500; font-size: .9375rem; }
.spec-groups { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 900px) { .spec-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.spec-group { padding: var(--inset); background: var(--paper); }
.sheet .spec-group h3 { margin-top: 0; font-size: 1.375rem; }
.sheet .spec-group dl { display: grid; gap: 16px; margin-top: 16px; }
.spec-group dd { font-size: .9375rem; line-height: 1.5; }
.faq-more { margin-top: 20px; }

/* Offer: on phones the price card comes first, the requirements follow; on desktop they sit under the heading */
.needs-wrap .needs { margin-top: 0; }
@media (min-width: 1100px) {
  #get-workroom .offer { grid-row: 1 / span 2; }
  #get-workroom .needs-wrap { grid-row: 2; align-self: start; }
}
/* Example sites under the publishing lead */
.site-examples { margin-top: 4px; }
.site-examples-t { font-size: .9375rem; color: var(--muted); }
.site-examples ul { display: grid; gap: 2px; margin-top: 8px; }
.site-examples a { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; min-height: 40px; padding: 8px 0; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(9,9,9,.3); }
.site-examples a span { font-weight: 500; font-size: .875rem; color: var(--muted); text-decoration: none; }
.site-examples a::after { content: "→"; color: var(--accent); text-decoration: none; }
/* Captions: emphasis in the text face; Garamond italic is reserved for headings and the quoted prompt */
.caption em { font-family: inherit; font-style: normal; font-weight: 600; color: var(--ink); }
.band-ink .caption em { color: var(--paper); }
/* The vault window keeps a hairline edge so its white body never bleeds into the band */
.vault-body { box-shadow: inset 0 0 0 1px rgba(9,9,9,.12); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
@media (min-width: 1100px) { #get-workroom .grid { grid-template-rows: auto 1fr; } }
.site-examples a { display: inline; line-height: 2.6; }
.site-examples a span, .site-examples a::after { display: inline-block; margin-left: 10px; }
/* Keep the hover pill inside the page margin: it starts at the circle's edge */
.more-btn { padding: 6px 16px 6px 0; margin-left: 0; }

/* Claude Code shown as a desktop app, not a terminal: the terminal is one option, not the only one */
.term-app { background: var(--sheet); color: var(--ink); font-family: var(--sans); font-size: .9375rem; line-height: 1.5; gap: 10px; }
.term-app .term-head { justify-content: flex-start; align-items: center; gap: 10px; margin: calc(-1 * var(--inset)) calc(-1 * var(--inset)) 6px; padding: 10px var(--inset); background: var(--paper); color: var(--muted); font-family: var(--mono); }
.term-app .term-head b { color: var(--ink); }
.app-dots { display: inline-flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9c4b9; }
.term-app .term-you { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 500; }
.term-app .term-you::before { content: none; }
.term-app p:not(.term-you) { color: var(--ink); }

/* ---------- Agent replays (assets/agent-demos.js) ---------- */
.t-stage { display: flex; flex-direction: column; gap: 8px; }
.t-tool { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 8px; color: #b9b4a9; font-size: .75rem; line-height: 1.5; }
.t-mark { width: 7px; height: 7px; margin-top: 5px; background: #b9b4a9; animation: t-pulse .9s ease-in-out infinite alternate; }
.t-tool.is-done .t-mark { background: var(--paper); animation: none; }
.t-call { overflow-wrap: anywhere; }
.t-call b { color: var(--paper); font-weight: 500; }
.t-res { grid-column: 2; color: #8f8a80; }
.t-res:not(:empty)::before { content: "→ "; }
@keyframes t-pulse { from { opacity: .25; } to { opacity: 1; } }
.t-say { color: #d9d4c9; }
.t-ask { display: grid; gap: 8px; margin-top: 2px; }
.t-choice { display: flex; gap: 8px; }
.t-choice button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 20px; font: 600 .8125rem var(--sans); cursor: pointer; background: var(--paper); color: var(--ink); transition: background-color .2s ease, transform .16s var(--ease-out); }
.t-choice button + button { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(243,240,232,.4); }
.t-choice button:active { transform: scale(.97); }
.t-answer { color: var(--paper); font-weight: 500; }
.t-answer::before { content: "› "; color: var(--accent-on-ink); }
.t-replay { margin-left: 12px; width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: rgba(243,240,232,.1); color: var(--paper); font: 500 .75rem var(--mono); cursor: pointer; transition: background-color .2s ease, opacity .2s ease, transform .16s var(--ease-out); }
.t-replay:active { transform: scale(.92); }
.t-replay[aria-disabled="true"] { opacity: .45; cursor: default; }
.t-replay.is-spin svg { animation: wr-hint-spin 520ms cubic-bezier(.16, 1, .3, 1); }
.t-stage > * { animation: t-in .28s var(--ease-out) both; }
@keyframes t-in { from { opacity: 0; transform: translateY(4px); } }
/* Desktop app variant */
.term-app .t-tool { color: var(--muted); }
.term-app .t-mark { background: var(--muted); }
.term-app .t-tool.is-done .t-mark { background: var(--ink); }
.term-app .t-call b { color: var(--ink); }
.term-app .t-res { color: var(--muted); }
.term-app .t-tool { font-family: var(--mono); }
.term-app .t-say, .term-app .t-answer { color: var(--ink); }
.term-app .t-answer { align-self: flex-end; padding: 8px 14px; border-radius: 14px; background: var(--paper); }
.term-app .t-answer::before { content: none; }
.term-app .ask { color: var(--ink); font-weight: 600; }
.term-app .t-choice button { background: var(--ink); color: #fff; }
.term-app .t-choice button + button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(9,9,9,.3); }
.term-app .t-replay { background: rgba(9,9,9,.06); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .t-choice button:hover { background: #fff; }
  .t-choice button + button:hover { background: rgba(243,240,232,.14); }
  .term-app .t-choice button:hover { background: var(--ink-hover); }
  .term-app .t-choice button + button:hover { background: rgba(9,9,9,.06); }
  .t-replay:not([aria-disabled="true"]):hover { background: rgba(243,240,232,.2); }
  .term-app .t-replay:not([aria-disabled="true"]):hover { background: rgba(9,9,9,.12); }
}
@media (prefers-reduced-motion: reduce) { .t-stage > *, .t-mark { animation: none; } }
.term-head { justify-content: flex-start; align-items: center; }
.term-head > span:last-of-type { margin-left: auto; }   /* the surface label sits right, before the replay icon */
.term-head { min-height: 32px; }   /* the replay icon appears later; the head must not grow */

/* Formats explorer (≥1100px, built by formats.js): tabs on the left, one format in focus */
.card-more { display: none; }
.formats-tabs { display: none; }
@media (min-width: 1100px) {
  .formats-explorer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
  .formats-explorer .formats-tabs { grid-column: 1 / 5; display: flex; flex-direction: column; position: relative; align-self: start; }
  .formats-marker { position: absolute; left: 0; top: 0; width: 100%; background: var(--sheet); pointer-events: none;
    transition: transform .34s var(--ease-out), height .34s var(--ease-out); }
  .formats-tab { position: relative; z-index: 1; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: center;
    width: 100%; min-height: 76px; padding: 12px 20px 12px 12px; border: 0; background: transparent; color: var(--muted);
    font: inherit; text-align: left; cursor: pointer; transition: color .2s; }
  .ft-icon { width: 48px; height: 48px; opacity: .6; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
  .ft-icon svg { display: block; }
  .ft-label { display: grid; gap: 2px; }
  .ft-label b { color: var(--ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
  .ft-label span { font-size: .875rem; }
  .formats-tab.is-active { color: var(--ink); }
  .formats-tab.is-active .ft-icon { opacity: 1; filter: none; }
  .formats-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

  .formats-explorer .formats-grid { grid-column: 5 / -1; display: grid; grid-template-columns: minmax(0, 1fr); }
  .formats-explorer .formats-grid > li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s, transform .16s, visibility 0s .16s; }
  .formats-explorer .formats-grid > li.is-active { opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s; }
  .formats-explorer .formats-grid .card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: 100%; }
  .formats-explorer .formats-grid .card-art { aspect-ratio: 21 / 8; height: auto; min-height: 0; background: #f3eddd; }
  .formats-explorer .formats-grid .card-art img { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); }
  .formats-explorer .formats-grid .card-body { padding: 32px 36px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 12px; grid-template-rows: auto auto auto 1fr; }
  .formats-explorer .formats-grid .card-body > :not(.card-more) { grid-column: 1; align-self: start; }
  .formats-explorer .formats-grid .card-body > .h3 { grid-column: 1 / -1; }
  .formats-explorer .card-more { grid-column: 2; grid-row: 2 / -1; align-self: start; }
  .formats-explorer .formats-grid .card-body .h3 { font-size: 2rem; letter-spacing: -.02em; }
  .formats-explorer .formats-grid .card-body p { font-size: 1rem; }
  .formats-explorer .card-more { display: grid; gap: 14px; margin-top: 4px; }
  .formats-explorer .more-title, .formats-explorer .card-q { font-size: .9375rem; }
  .formats-explorer .more-title b, .formats-explorer .card-q b { color: var(--ink); font-weight: 600; }
  .formats-explorer .card-q b { display: block; }
  .formats-explorer .card-q { color: var(--ink) !important; font-family: var(--serif); font-style: italic; font-size: 1.1875rem !important; line-height: 1.3; }
  .formats-explorer .card-q b { font-family: var(--sans); font-style: normal; font-size: .9375rem; margin-bottom: 2px; }
  .folder-bars { display: grid; gap: 5px; }
  .folder-bars li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2ch; gap: 12px; align-items: center; font-size: .875rem; color: var(--muted); }
  .folder-bars b { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
  .folder-bars i { display: block; height: 6px; width: calc(var(--n) / 14 * 100%); background: var(--ink); transform-origin: left center; transform: scaleX(0);
    transition: transform .5s var(--ease-out); }
  .folder-bars li:first-child i { background: var(--accent); }
  .formats-grid > li.is-active .folder-bars i { transform: scaleX(1); }
  .formats-grid > li.is-active .folder-bars li:nth-child(2) i { transition-delay: .03s; }
  .formats-grid > li.is-active .folder-bars li:nth-child(3) i { transition-delay: .06s; }
  .formats-grid > li.is-active .folder-bars li:nth-child(4) i { transition-delay: .09s; }
  .formats-grid > li.is-active .folder-bars li:nth-child(5) i { transition-delay: .12s; }
  .formats-grid > li.is-active .folder-bars li:nth-child(n+6) i { transition-delay: .15s; }
  .formats-explorer .formats-grid .card-body > .card-link { margin-top: 0; align-self: end; }
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .formats-tab:not(.is-active):hover { color: var(--ink); }
  .formats-tab:not(.is-active):hover .ft-icon { opacity: .85; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .formats-marker, .formats-explorer .formats-grid > li, .formats-explorer .formats-grid > li.is-active, .folder-bars i { transition: none !important; }
  .formats-explorer .formats-grid > li { transform: none; }
}

.term-head > span.term-example { margin-left: 10px; }

/* Hero phrase switcher (assets/rotator.js, shared with the v1 page): the noun cycles through the
   kinds of work the formats cover; click it for the next one. Letters leave by blurring up and
   arrive by rising out of a blur in the accent. Reduced motion: no autoplay, clicks swap instantly. */
.rotator { display: inline; }
.rotator-word { display: inline-block; white-space: nowrap; }
.rotator-char { display: inline-block; }
.rotator-char.is-out { animation: wr-char-out 320ms cubic-bezier(.4, 0, 1, 1) both; }
.rotator-char.is-in { animation: wr-char-in 560ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes wr-char-out { to { opacity: 0; filter: blur(6px); transform: translate3d(0, -.28em, 0); } }
@keyframes wr-char-in {
  from { opacity: 0; filter: blur(8px); transform: translate3d(0, .4em, 0) scale(.92); color: var(--accent); }
  60% { color: var(--accent); }
  to { opacity: 1; filter: none; transform: none; }
}
.rotator-button { margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.rotator-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rotator-hint { display: inline-block; margin-left: .12em; vertical-align: .9em; font-size: .32em; font-weight: 500; line-height: 1; color: var(--muted); transition: color 160ms ease; }
.rotator-button:focus-visible .rotator-hint { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .rotator-button:hover .rotator-hint, .rotator-button:hover { color: var(--accent); } .rotator-button:hover .rotator-char { color: var(--accent); } }
.rotator-hint.is-spin { animation: wr-hint-spin 520ms cubic-bezier(.16, 1, .3, 1); }
@keyframes wr-hint-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rotator-hint.is-spin { animation: none; } }

/* Workroom Drop section */
/* Shelf demo (drop-demo.js): sizes and states follow apps/drop/src/shelf */
.sd-wrap { display: grid; gap: 16px; min-width: 0; }
.sd { --tint: rgba(9, 9, 9, .05); --hair: #a9a59c; display: none; gap: 16px; padding: var(--inset); background: #e6e2d9; }
.sd.is-live { display: grid; }
.sd-still { display: block; width: min(320px, 100%); height: auto; }
.sd.is-live ~ .sd-still { display: none; }
.sd-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sd-menubar { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 28px; margin: 0; font-size: .8125rem; color: var(--muted); }
.sd-tray { position: relative; order: 2; display: inline-flex; }
.sd-tray .sd-icon { width: 24px; height: 24px; stroke-width: 1.3; }
.sd-target-glyph { width: 36px; height: 36px; stroke-width: 1.2; color: var(--muted); margin-bottom: 4px; transition: color .2s ease, transform .3s var(--ease-out); }
.sd-target.is-over .sd-target-glyph { color: var(--ink); transform: translateY(-2px); }
.sd-flag { position: absolute; right: -3px; top: -2px; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 50%; background: #e6e2d9; }
.sd-desk { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sd-win { background: var(--sheet); border-radius: 12px; padding: 8px; min-width: 0; }
.sd-win-head { margin: 0; padding: 6px 8px 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.sd-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sd-page { display: grid; gap: 8px; }
.sd-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 500 .875rem/1.3 var(--sans, inherit); font-family: inherit; text-align: left; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background-color .15s ease, opacity .15s ease; }
.sd-item:active { cursor: grabbing; }
.sd-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-item small { margin-left: auto; flex: none; font-size: .75rem; color: var(--muted); }
.sd-item-link { flex-wrap: wrap; gap: 2px 10px; color: var(--ink); }
.sd-item-link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; flex: 1 1 0; }
.sd-item-link small { flex-basis: 100%; margin-left: 28px; }
.sd-item-text span { white-space: normal; background: var(--accent-soft, #f6e3df); padding: 2px 4px; }
.sd-item.is-lifted { opacity: .35; }
.sd-thumb { width: 26px; height: 19px; flex: none; color: var(--muted); margin-left: -4px; }
.sd-ghost { position: fixed; z-index: 60; margin: 0; background: var(--sheet); box-shadow: 0 10px 28px rgba(9, 9, 9, .22); pointer-events: none; cursor: grabbing; will-change: transform; }
.sd-shelf { position: relative; display: flex; flex-direction: column; gap: 12px; height: 360px; min-width: 0; padding: 0 12px 12px; background: var(--paper); border-radius: 12px; box-shadow: 0 1px 2px rgba(9, 9, 9, .12), 0 14px 32px rgba(9, 9, 9, .14); overflow: hidden; }
.sd-room { display: flex; align-items: center; gap: 9px; flex: none; min-height: 44px; margin: 0; font-size: .9375rem; font-weight: 700; letter-spacing: -.03em; }
.sd-room i { width: 9px; height: 9px; background: var(--ink); }
.sd-target { flex: 1 1 auto; min-height: 76px; display: grid; place-content: center; justify-items: center; gap: 2px; border: 1px dashed var(--hair); border-radius: 6px; transition: background-color .25s ease, border-color .25s ease, transform .3s var(--ease-out); }
.sd-target:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sd-target.is-over { background: var(--tint); border-color: var(--ink); transform: scale(1.012); }
.sd-target.is-reject { border-color: var(--accent); animation: sd-shake 260ms var(--ease-out); }
@keyframes sd-shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.sd-target-copy { margin: 0; font-size: .8125rem; font-weight: 600; }
.sd-target-hint { margin: 0; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: none; }
.sd-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 44px; background: var(--sheet); border-radius: 6px; overflow: hidden; transition: opacity .3s; }
.sd-card.is-undone { opacity: .5; }
.sd-card.is-undone .sd-title { text-decoration: line-through; }
.sd-open { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 6px 4px 6px 10px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.sd-open:focus-visible, .sd-undo:focus-visible, .sd-prompt:focus-visible, .sd-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.sd-body { display: grid; gap: 1px; min-width: 0; }
.sd-title { font-size: .8125rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-sub { font-family: var(--mono); font-size: .6875rem; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-card[data-status="needs-you"] .sd-sub { color: var(--ink); }
.sd-side { display: grid; place-items: center; width: 48px; min-height: 28px; }
.sd-side > * { grid-area: 1 / 1; display: none; }
.sd-side[data-slot="decision"] > .sd-decision, .sd-side[data-slot="undo"] > .sd-undo, .sd-side[data-slot="prompt"] > .sd-prompt { display: inline-grid; }
.sd-decision { width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50%; }
.sd-undo, .sd-prompt { place-items: center; min-width: 40px; min-height: 36px; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 600 .75rem/1 inherit; font-family: inherit; cursor: pointer; transition: background-color .15s ease; }
.sd-prompt { color: var(--muted); }
.sd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(9, 9, 9, .1); }
.sd-bar[hidden] { display: none; }
.sd-bar-fill { display: block; height: 100%; background: var(--ink); transform-origin: left center; }
.sd-toast { position: absolute; left: 12px; right: 12px; top: 44px; margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 500; }
.sd-toast[hidden] { display: none; }
.sd-note { min-width: 0; height: 440px; padding: 16px; background: var(--sheet); border-radius: 12px; overflow: auto; overscroll-behavior: contain; font-size: .875rem; line-height: 1.5; }
.sd-empty { display: grid; place-items: center; height: 100%; margin: 0; padding: 0 16px; color: var(--muted); text-align: center; }
.sd-path { margin: 0 0 12px; font-family: var(--mono); font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.sd-props { display: grid; gap: 4px; margin: 0 0 16px; padding: 10px 12px; background: var(--paper); border-radius: 6px; font-size: .8125rem; }
.sd-props > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.sd-props dt { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.sd-props dd { margin: 0; overflow-wrap: anywhere; }
.sd-note-h { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sd-line { margin: 0 0 10px; color: var(--muted); }
.sd-warn { margin: 0 0 10px; padding: 8px 10px; background: var(--paper); border-radius: 6px; }
.sd-sub-h { margin: 12px 0 6px; font-weight: 700; }
.sd-pre { margin: 0; padding: 10px 12px; background: var(--paper); border-radius: 6px; font-family: var(--mono); font-size: .8125rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .sd.is-live { grid-template-columns: minmax(0, 1fr) 296px; }
  .sd-shelf { height: 440px; }
  .sd-note { grid-column: 1 / -1; height: 340px; }
}
@media (min-width: 1100px) {
  .sd.is-live { grid-template-columns: minmax(240px, 1fr) 296px minmax(0, 1.3fr); }
  .sd-note { grid-column: auto; height: 440px; }
}
@media (hover: hover) and (pointer: fine) {
  .sd-item:hover { background: var(--tint); }
  .sd-open:hover, .sd-undo:hover, .sd-prompt:hover { background: var(--tint); }
}
.sd-how-tap { display: none; }
@media (hover: none) { .sd-how-drag { display: none; } .sd-how-tap { display: inline; } }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px var(--gap); }
.uses h4 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
.uses p { margin: 0; color: var(--muted); }

/* Drop features with a real screenshot each: copy beside the picture on wide screens, above it on narrow ones. Add an article to add a feature. */
.drop-features { display: grid; gap: var(--space-block); }
.drop-feature { display: grid; gap: 24px var(--gap); align-items: start; }
.drop-feature-copy { display: grid; gap: 14px; align-content: start; max-width: 56ch; }
.drop-feature-copy p { margin: 0; color: var(--muted); }
.drop-feature-copy .drop-feature-note { font-size: .875rem; line-height: 1.5; }
.drop-feature-note a { color: var(--ink); white-space: nowrap; }
.drop-shot { margin: 0; display: grid; gap: 12px; justify-items: start; }
.drop-shot a { display: block; width: 100%; }
.drop-shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 2px rgba(9, 9, 9, .12), 0 14px 32px rgba(9, 9, 9, .14); transition: box-shadow .2s, transform .16s var(--ease-out); }
.drop-shot-card img { width: min(332px, 100%); background: var(--sheet); }
@media (min-width: 900px) {
  .drop-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (hover: hover) and (pointer: fine) {
  .drop-shot a:hover img { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(9, 9, 9, .12), 0 20px 40px rgba(9, 9, 9, .18); }
  .drop-feature-note a:hover { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) { .drop-shot img { transition: none; } }

.stack-title { margin: 0 0 24px; }
.stack { margin: 0; border-top: 1px solid var(--line); }
.stack > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stack dt { font-weight: 600; }
.stack dd { margin: 0; min-width: 0; }
.stack .dd-note { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 700px) { .stack > div { grid-template-columns: 180px minmax(0, 1fr); } }

/* Light agents band: the desktop app and the messenger need an edge; Hermes in a messenger is a generic chat window, no real app's look */
.term-app { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.term-app .term-head { box-shadow: inset 0 0 0 1px var(--line); }
.term-chat { background: #ece7dc; }
.term-chat .term-head { background: var(--sheet); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--ink); color: #fff; font: 700 .8125rem var(--sans); }
.term-chat .term-you { background: #dde6f2; border-radius: 16px 4px 16px 16px; }
.term-chat .t-say, .term-chat > p:not(.term-you) { align-self: flex-start; max-width: 85%; padding: 9px 13px; background: #fff; border-radius: 4px 16px 16px 16px; }
.term-chat .t-tool { align-self: flex-start; padding: 3px 10px 3px 8px; border-radius: 10px; background: rgba(255,255,255,.55); font-size: .6875rem; }

/* Formats on phones: the illustration column is too narrow for the 3:2 drawings, so it shows the
   format's line mark instead (the same marks as the desktop explorer tabs, added by formats.js) */
.card-icon { display: none; }
@media (max-width: 699px) {
  .formats-grid .card-art { background: var(--sheet); }
  .formats-grid .card-art:has(.card-icon) img { display: none; }
  .formats-grid .card-icon { display: grid; justify-items: center; padding-top: 18px; }
}

/* Before → after diagrams: the legend leads, and touch screens get a tap tip above the graphs */
.compare > .legend { margin-bottom: 14px; }
.graph-tip { margin-bottom: 10px; font-size: .9375rem; color: var(--muted); }
