/* Loom launch site.
   Layout: calm, asymmetric editorial grid. Text sits left on a 12-column rhythm,
   details on the right; thin rules instead of boxes; one quiet accent.
   PALETTE: every colour lives in the :root block below (plus its dark twin).
   Swap the palette by editing these tokens only. Provisional: off-white paper,
   near-black ink, ai-iro (indigo) accent. */
:root {
  --brand-name: "Loom"; /* mirrored by SITE.name in product.js */

  /* Colour: provisional neutral palette */
  --bg: #f7f6f2;          /* paper */
  --surface: #fdfcf9;     /* raised surface */
  --surface-2: #efede7;   /* quiet band */
  --ink: #1b1c1e;         /* text */
  --muted: #5d6066;       /* secondary text */
  --line: #dddad2;        /* thin rules */
  --line-strong: #1b1c1e; /* emphasis rule */
  --accent: #2f4a6d;      /* ai-iro indigo */
  --accent-ink: #ffffff;  /* text on accent */
  --accent-soft: #e4e9f0; /* accent tint */
  --signal: #a8553a;      /* tiny easter-egg touches only */
  --signal-soft: #f3e4dc;
  --ok: #2f6b4a;  --ok-soft: #e0ede5;
  --warn: #85560f; --warn-soft: #f4e8d2;
  --crit: #9c3a2e; --crit-soft: #f4e0dc;
  --band-bg: #1b1c1e; --band-fg: #f2f0ea;
  --term-bg: #1b1c1e; --term-fg: #ebe8e1; --term-muted: #a3a6ad; --term-accent: #c9d5e6;
  /* Illustrated customer system (before/after, Figma preview) */
  --sample-1: #22324a; --sample-2: #3d6fb6; --sample-3: #e0a458; --sample-4: #f4f1ea;
  --mark-ink: var(--ink); --mark-thread: var(--accent); --mark-light: #9fb0c8; --mark-warm: var(--signal);

  /* Type: system faces with Japanese fallbacks (nothing is downloaded) */
  --body: "Helvetica Neue", "Segoe UI", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --display: var(--body);
  --serif: "Iowan Old Style", Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* Space */
  --gutter: max(16px, min(5vw, 64px));
  --radius: 6px;

  color-scheme: light;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-synthesis: none;
  scroll-behavior: smooth;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151618; --surface: #1c1d20; --surface-2: #202226; --ink: #ecebe6; --muted: #a9acb2; --line: #34363b; --line-strong: #ecebe6;
    --accent: #9db4d6; --accent-ink: #111214; --accent-soft: #263142; --signal: #d98a6c; --signal-soft: #3a2a23;
    --ok: #86c9a2; --ok-soft: #1e3127; --warn: #e8bf7a; --warn-soft: #382c19; --crit: #ec9b8f; --crit-soft: #3a2320;
    --band-bg: #0f1012; --band-fg: #ecebe6; --term-bg: #0f1012; --mark-light: #c7d3e6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151618; --surface: #1c1d20; --surface-2: #202226; --ink: #ecebe6; --muted: #a9acb2; --line: #34363b; --line-strong: #ecebe6;
  --accent: #9db4d6; --accent-ink: #111214; --accent-soft: #263142; --signal: #d98a6c; --signal-soft: #3a2a23;
  --ok: #86c9a2; --ok-soft: #1e3127; --warn: #e8bf7a; --warn-soft: #382c19; --crit: #ec9b8f; --crit-soft: #3a2320;
  --band-bg: #0f1012; --band-fg: #ecebe6; --term-bg: #0f1012; --mark-light: #c7d3e6;
  color-scheme: dark;
}
/* PALETTES:START generated by scripts/palettes.ts (npm run site:palettes). Edit the script, not this block. */
/* Ai-iro: Indigo dye on washi paper. A deeper, more saturated indigo than the current palette, warm paper and an indigo band for the agents section. */
:root[data-palette="ai"] { --bg: #f4f1e8; --surface: #fbf9f3; --surface-2: #ebe6d9; --ink: #1a1f2b; --muted: #525866; --line: #d9d3c4; --line-strong: #1a1f2b; --accent: #1f3a68; --accent-ink: #ffffff; --accent-soft: #dfe5ef; --signal: #8c5a2b; --signal-soft: #f0e3d3; --ok: #2b6649; --ok-soft: #dfece3; --warn: #7c5009; --warn-soft: #f2e6cf; --crit: #982f22; --crit-soft: #f3ddd8; --band-bg: #16223a; --band-fg: #eef0f4; --term-bg: #111a2d; --term-fg: #e8eaf0; --term-muted: #9ba4b6; --term-accent: #b9c8e6; --mark-light: #8fa3c9; }
@media (prefers-color-scheme: dark) { :root[data-palette="ai"]:not([data-theme="light"]) { --bg: #10141d; --surface: #171c27; --surface-2: #1d2330; --ink: #e9e6dd; --muted: #a6adbb; --line: #2c3342; --line-strong: #e9e6dd; --accent: #a9bfe6; --accent-ink: #0d1220; --accent-soft: #222f4a; --signal: #d8a070; --signal-soft: #33281d; --ok: #8fd0ae; --ok-soft: #1b2f25; --warn: #e6c07c; --warn-soft: #352a18; --crit: #ef9f92; --crit-soft: #3a221f; --band-bg: #0b0f17; --band-fg: #e9e6dd; --term-bg: #0b0f17; --term-fg: #e8eaf0; --term-muted: #9ba4b6; --term-accent: #b9c8e6; --mark-light: #c3d0ea; } }
:root[data-palette="ai"][data-theme="dark"] { --bg: #10141d; --surface: #171c27; --surface-2: #1d2330; --ink: #e9e6dd; --muted: #a6adbb; --line: #2c3342; --line-strong: #e9e6dd; --accent: #a9bfe6; --accent-ink: #0d1220; --accent-soft: #222f4a; --signal: #d8a070; --signal-soft: #33281d; --ok: #8fd0ae; --ok-soft: #1b2f25; --warn: #e6c07c; --warn-soft: #352a18; --crit: #ef9f92; --crit-soft: #3a221f; --band-bg: #0b0f17; --band-fg: #e9e6dd; --term-bg: #0b0f17; --term-fg: #e8eaf0; --term-muted: #9ba4b6; --term-accent: #b9c8e6; --mark-light: #c3d0ea; }
/* Sumi: Ink on stone, with a vermilion seal (shu-iro) as the only colour. Almost monochrome; the seal marks actions and the one thing to look at. */
:root[data-palette="sumi"] { --bg: #f2f1ee; --surface: #fafaf8; --surface-2: #e7e5e0; --ink: #161616; --muted: #54524e; --line: #d6d3cc; --line-strong: #161616; --accent: #a8321c; --accent-ink: #ffffff; --accent-soft: #f3e0da; --signal: #a8321c; --signal-soft: #f3e0da; --ok: #2e6347; --ok-soft: #e0ebe3; --warn: #7a5010; --warn-soft: #efe5d2; --crit: #962c1f; --crit-soft: #f2ddd8; --band-bg: #1c1c1c; --band-fg: #efeeea; --term-bg: #161616; --term-fg: #e9e8e4; --term-muted: #a2a09b; --term-accent: #f0b4a4; --mark-light: #b9b6b0; }
@media (prefers-color-scheme: dark) { :root[data-palette="sumi"]:not([data-theme="light"]) { --bg: #121212; --surface: #1a1a1a; --surface-2: #212121; --ink: #ecebe7; --muted: #a8a6a1; --line: #333331; --line-strong: #ecebe7; --accent: #f08a70; --accent-ink: #160805; --accent-soft: #3b231d; --signal: #f08a70; --signal-soft: #3b231d; --ok: #8cc9a5; --ok-soft: #1d2e24; --warn: #e3bd7a; --warn-soft: #342a1a; --crit: #ef9d90; --crit-soft: #3a221f; --band-bg: #0b0b0b; --band-fg: #ecebe7; --term-bg: #0b0b0b; --term-fg: #e9e8e4; --term-muted: #a2a09b; --term-accent: #f0b4a4; --mark-light: #d8d5cf; } }
:root[data-palette="sumi"][data-theme="dark"] { --bg: #121212; --surface: #1a1a1a; --surface-2: #212121; --ink: #ecebe7; --muted: #a8a6a1; --line: #333331; --line-strong: #ecebe7; --accent: #f08a70; --accent-ink: #160805; --accent-soft: #3b231d; --signal: #f08a70; --signal-soft: #3b231d; --ok: #8cc9a5; --ok-soft: #1d2e24; --warn: #e3bd7a; --warn-soft: #342a1a; --crit: #ef9d90; --crit-soft: #3a221f; --band-bg: #0b0b0b; --band-fg: #ecebe7; --term-bg: #0b0b0b; --term-fg: #e9e8e4; --term-muted: #a2a09b; --term-accent: #f0b4a4; --mark-light: #d8d5cf; }
/* Kinari: Unbleached cotton and thread, with a deep teal accent. The warmest of the three; it reads as cloth and craft. */
:root[data-palette="kinari"] { --bg: #f3ecdc; --surface: #faf6ec; --surface-2: #e9e0cb; --ink: #2a241b; --muted: #5b5242; --line: #dcd1ba; --line-strong: #2a241b; --accent: #0f5257; --accent-ink: #ffffff; --accent-soft: #d6e5e1; --signal: #94552a; --signal-soft: #f0dfcc; --ok: #2c6243; --ok-soft: #dde9dc; --warn: #764c0a; --warn-soft: #efe1c6; --crit: #922d20; --crit-soft: #f1dbd2; --band-bg: #1f2b29; --band-fg: #f3ecdc; --term-bg: #172120; --term-fg: #ece5d6; --term-muted: #a4ab9f; --term-accent: #9fd3cd; --mark-light: #8bb7b2; }
@media (prefers-color-scheme: dark) { :root[data-palette="kinari"]:not([data-theme="light"]) { --bg: #15130f; --surface: #1d1a15; --surface-2: #24201a; --ink: #eee6d6; --muted: #b0a690; --line: #3a342a; --line-strong: #eee6d6; --accent: #7cc4bf; --accent-ink: #08201f; --accent-soft: #1d3532; --signal: #dca070; --signal-soft: #37291c; --ok: #8fcca6; --ok-soft: #1c2e23; --warn: #e3bf7c; --warn-soft: #352a18; --crit: #ee9e90; --crit-soft: #3a221d; --band-bg: #0d0c09; --band-fg: #eee6d6; --term-bg: #0d0c09; --term-fg: #ece5d6; --term-muted: #a4ab9f; --term-accent: #9fd3cd; --mark-light: #b9dcd8; } }
:root[data-palette="kinari"][data-theme="dark"] { --bg: #15130f; --surface: #1d1a15; --surface-2: #24201a; --ink: #eee6d6; --muted: #b0a690; --line: #3a342a; --line-strong: #eee6d6; --accent: #7cc4bf; --accent-ink: #08201f; --accent-soft: #1d3532; --signal: #dca070; --signal-soft: #37291c; --ok: #8fcca6; --ok-soft: #1c2e23; --warn: #e3bf7c; --warn-soft: #352a18; --crit: #ee9e90; --crit-soft: #3a221d; --band-bg: #0d0c09; --band-fg: #eee6d6; --term-bg: #0d0c09; --term-fg: #ece5d6; --term-muted: #a4ab9f; --term-accent: #9fd3cd; --mark-light: #b9dcd8; }
/* PALETTES:END */
/* Japanese: no faux italics or tight tracking, strict line breaking, phrase-aware wrapping. */
:root:lang(ja) {
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", "Helvetica Neue", Arial, system-ui, sans-serif;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere; /* a phrase longer than a narrow column may still break */
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; }
:lang(ja) em { font-style: normal; }
:lang(ja) .eyebrow { letter-spacing: .06em; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; }
h1 em, h2 em { font-style: normal; color: var(--muted); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); line-height: 1.2; }
h3, .h3 { font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -.01em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 84px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 11px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36rem; }
.source, .note-small { font-size: 13px; color: var(--muted); }
.source a, .note-small a { color: var(--ink); }
.data-label { font: 12px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }

.skip-link { position: fixed; z-index: 30; left: 16px; top: -100px; padding: 12px 18px; background: var(--surface); color: var(--ink); border: 2px solid var(--accent); }
.skip-link:focus { top: 12px; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 22px; border-radius: 2px;
  font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.button-ink { background: var(--ink); color: var(--bg); }
.button-ink:hover { background: var(--accent); color: var(--accent-ink); }
.button-cobalt { background: var(--accent); color: var(--accent-ink); }
.button-cobalt:hover { color: var(--bg); background: var(--ink); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-outline:hover { background: var(--surface); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.04em; flex-shrink: 0; }
.mark { image-rendering: pixelated; display: block; }
.lang-switch { display: inline-flex; gap: 2px; font: 500 12px/1 var(--mono); }
.lang-switch button { min-height: 32px; min-width: 32px; padding: 6px 6px; background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { font-size: 14px; text-decoration: none; padding-block: 10px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.menu nav a { padding: 10px 12px; text-decoration: none; border-radius: 6px; }
.menu nav a:hover { background: var(--surface-2); }
.menu nav .menu-cta { margin-top: 6px; background: var(--ink); color: var(--bg); text-align: center; font-weight: 600; }
.menu nav .menu-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* Sections */
section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 40rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1.3 var(--mono); letter-spacing: .04em; padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-live { background: var(--ok-soft); color: var(--ok); }
.badge-mixed { background: var(--warn-soft); color: var(--warn); white-space: normal; }
.badge-next, .badge-dev { background: var(--surface-2); color: var(--muted); }
.ticks { display: grid; gap: 6px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 10px; height: 1px; flex-shrink: 0; background: var(--muted); transform: translateY(-4px); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.12; font-weight: 300; }
.hero h1 em { display: block; }
.hero-small { font-size: 14px; color: var(--muted); }
.hero-cred { font-size: 15px; padding-left: 14px; border-left: 2px solid var(--accent); max-width: 34rem; }
.hero-cred a { text-decoration-color: var(--accent); }
.hero-art { position: relative; display: grid; gap: 14px; align-self: stretch; align-content: center; }
.warp { position: relative; height: clamp(240px, 30vw, 380px); border-block: 1px solid var(--line-strong);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 22px); }
.weft { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); }
.weft b { position: absolute; top: -11px; padding: 2px 8px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.weft-1 { top: 20%; right: 8%; } .weft-1 b { left: 6%; }
.weft-2 { top: 40%; left: 10%; background: color-mix(in srgb, var(--accent) 80%, var(--bg)); } .weft-2 b { left: 34%; }
.weft-3 { top: 60%; right: 14%; background: color-mix(in srgb, var(--accent) 60%, var(--bg)); } .weft-3 b { left: 18%; }
.weft-4 { top: 80%; left: 4%; background: color-mix(in srgb, var(--accent) 40%, var(--bg)); } .weft-4 b { left: 56%; }
.hero-art figcaption { font-size: 13px; color: var(--muted); }

/* Built by */
.built-by { padding-block: clamp(48px, 6vw, 80px); background: var(--surface-2); }
.built-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.built-copy { display: grid; gap: 16px; justify-items: start; }
.built-copy p:not(.eyebrow) { color: var(--muted); max-width: 36rem; }
.built-facts { display: grid; gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.facts li { display: grid; gap: 8px; align-content: start; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts strong { font: 300 clamp(2rem, 3.4vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 14px; }

/* Problem */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.stats li { display: grid; gap: 8px; align-content: start; padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stats strong { font: 300 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; }
.problem .source { margin-top: 14px; }
.problem-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(44px, 6vw, 72px); }
.problem-points article { display: grid; gap: 12px; align-content: start; }
.problem-points p:not(.source) { color: var(--muted); }

/* Pillars */
.pillars { border-top: 1px solid var(--line); }
.pillar-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pillar { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 24px 22px 24px 0; }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--line); }
.pillar-num { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .1em; }
.pillar h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; }
.pillar > p { color: var(--muted); }

/* Audits (See it) */
.see { border-top: 1px solid var(--line); }
.audit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); display: grid; gap: 28px; }
.audit + .audit { margin-top: 24px; }
.audit-before { border-color: var(--line-strong); }
.audit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.audit-head > div:first-child { display: grid; gap: 8px; flex: 1 1 22rem; }
.audit-head h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; }
.audit-kind { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.state-tag { font: 600 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tag-before { color: var(--crit); }
.tag-after { color: var(--accent); }
.score-ring { --score: 0; width: 132px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 92%, transparent 93%), conic-gradient(var(--accent) calc(var(--score) * 1%), var(--surface-2) 0); }
.audit-before .score-ring { background: radial-gradient(closest-side, var(--surface) 92%, transparent 93%), conic-gradient(var(--crit) calc(var(--score) * 1%), var(--surface-2) 0); }
.score-num { font: 300 40px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score-of { font-size: 12px; color: var(--muted); }
.audit-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.audit-facts li { display: grid; gap: 6px; align-content: start; padding: 16px 16px 16px 0; }
.audit-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.audit-facts strong { font: 300 clamp(1.8rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.audit-facts span { font-size: 14px; color: var(--muted); }
.audit-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); }
.areas { display: grid; gap: 12px; align-content: start; }
.areas li { --score: 0; display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) 2.5rem; gap: 12px; align-items: center; font-size: 14px; line-height: 1.35; }
.area-name { overflow-wrap: anywhere; }
.bar { height: 4px; background: var(--surface-2); display: block; }
.bar i { display: block; height: 100%; width: calc(var(--score) * 1%); background: var(--accent); }
.audit-before .bar i { background: var(--crit); }
.area-score { text-align: right; font: 600 14px/1 var(--mono); font-variant-numeric: tabular-nums; }
.areas li.not-assessed .area-name, .areas li.not-assessed .area-score { color: var(--muted); }
.findings-wrap { display: grid; gap: 12px; align-content: start; }
.findings-wrap h4 { font: 600 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.findings { display: grid; gap: 12px; }
.findings li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.findings strong { display: block; font-size: 15px; line-height: 1.45; }
.findings p { color: var(--muted); font-size: 14px; }
.sev { align-self: start; text-align: center; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 4px; border-radius: 3px; }
.sev-high { background: var(--crit-soft); color: var(--crit); }
.sev-medium { background: var(--warn-soft); color: var(--warn); }
.sev-low { background: var(--ok-soft); color: var(--ok); }
.see .note-small { margin-top: 14px; max-width: 52rem; }
.see-actions { margin-top: 28px; }

/* Capabilities (Shape it, Run it) */
.shape, .govern { border-top: 1px solid var(--line); }
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.capabilities-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capabilities li { display: grid; gap: 10px; align-content: start; padding: 22px 0; border-top: 1px solid var(--line); }
.cap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.capabilities p { color: var(--muted); font-size: 15px; }

/* Diagrams: inline SVG with live, translatable text. Wide on desktop, tall on narrow screens. */
.diagram { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-strong); }
.diagram figcaption { display: grid; gap: 8px; max-width: 46rem; }
.diagram figcaption p { color: var(--muted); font-size: 15px; }
.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-tall { display: none; max-width: 520px; }
.dg-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.dg-node.is-loom rect { fill: var(--accent-soft); stroke: var(--accent); }
.dg-node.is-people rect { fill: var(--bg); stroke: var(--line-strong); stroke-dasharray: 4 3; }
.dg-text { box-sizing: border-box; height: 100%; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font: 14px/1.35 var(--body); color: var(--ink); overflow: hidden; }
.dg-text strong { font-weight: 600; font-size: 15px; }
.dg-text span { color: var(--muted); font-size: 13px; }
.dg-line { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.dg-rule { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.dg-arrowhead { fill: var(--muted); }
.dg-label { fill: var(--muted); font: 13px var(--body); }
.dg-label.dg-group { fill: var(--ink); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dg-label.dg-strong { fill: var(--ink); font-weight: 600; }
.dg-label.dg-small { font-size: 12px; }
.dg-caption { font: 13px/1.35 var(--body); color: var(--muted); text-align: center; }
.dg-caption-left { text-align: left; }
@media (max-width: 999px) {
  .dg-wide { display: none; }
  .dg-tall { display: block; }
}

/* Prototype (Shape it) */
.prototype { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); }
.prototype-copy { display: grid; gap: 12px; align-content: start; }
.prototype-copy > p:not(.note-small) { color: var(--muted); }
.proto-steps { display: grid; gap: 0; counter-reset: proto; }
.proto-steps li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); counter-increment: proto; }
.proto-steps b { font: 600 12px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.proto-steps b::before { content: counter(proto) "  "; }

/* What comes next */
.next { border-top: 1px solid var(--line); }
.next-more-title { margin-top: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.next-more { display: flex; flex-wrap: wrap; gap: 8px; }
.next-more li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--surface); }

/* Govern it */
.govern-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.govern-grid .diagram { margin-top: 0; }
.policies { display: grid; gap: 16px; padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-strong); }
.kv-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.kv-list div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv-list dt { font: 600 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.kv-list dd { font-size: 15px; color: var(--muted); }
.autonomy { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.autonomy-head { display: grid; gap: 8px; max-width: 46rem; }
.autonomy-head p { color: var(--muted); font-size: 15px; }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: mode; }
.modes li { display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: mode; }
.modes li.is-default { border-color: var(--accent); }
.mode-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font: 500 17px/1.3 var(--display); }
.mode-name::before { content: counter(mode); font: 500 12px/1 var(--mono); color: var(--accent); }
.mode-name em { font: 600 11px/1.4 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.modes p { font-size: 14px; color: var(--muted); }
.timeline-card { display: grid; gap: 12px; margin-top: clamp(32px, 5vw, 48px); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.log li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.log b { margin-right: 10px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.govern .note-small { margin-top: 14px; }

/* Run it */
.run { background: var(--band-bg); color: var(--band-fg); }
.run h2 em { color: color-mix(in srgb, var(--band-fg) 68%, var(--band-bg)); }
.run .eyebrow { color: color-mix(in srgb, var(--band-fg) 76%, var(--band-bg)); }
.run a:focus-visible, .run button:focus-visible, .run [tabindex]:focus-visible { outline-color: var(--band-fg); }
.run-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.run-copy { display: grid; gap: 18px; }
.run-copy > p { color: color-mix(in srgb, var(--band-fg) 80%, var(--band-bg)); }
.run .note-small { color: color-mix(in srgb, var(--band-fg) 74%, var(--band-bg)); }
.tool-list { display: grid; gap: 8px; }
.tool-list li { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: color-mix(in srgb, var(--band-fg) 80%, var(--band-bg)); }
.tool-list code { color: var(--term-accent); min-width: 10.5rem; }
.terminal { background: var(--term-bg); color: var(--term-fg); border: 2px solid color-mix(in srgb, var(--band-fg) 30%, var(--band-bg)); border-radius: 10px; overflow: hidden; min-width: 0; }
.terminal-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--term-fg) 18%, transparent); font: 13px/1.5 var(--mono); }
.terminal-bar .data-label { color: var(--term-muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--term-muted); }
.replay { margin-left: auto; background: none; border: 1px solid var(--term-muted); color: var(--term-fg); padding: 4px 10px; border-radius: 4px; font: 12px var(--mono); min-height: 32px; }
.transcript { display: grid; gap: 14px; padding: 18px; font-size: 14px; max-height: 640px; overflow-y: auto; }
.turn { display: grid; gap: 6px; }
.turn-agent { margin-right: 10%; }
.turn-loom { margin-left: 10%; }
.turn .who { font: 12px/1.4 var(--mono); color: var(--term-muted); }
.turn .who code { color: var(--term-accent); font-size: 1em; }
.turn p { padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.turn-agent p { background: color-mix(in srgb, var(--term-fg) 10%, transparent); }
.turn-loom p { background: color-mix(in srgb, var(--term-accent) 14%, transparent); border-left: 1px solid var(--term-accent); }
.turn .detail { display: grid; gap: 4px; padding-left: 12px; font: 12px/1.5 var(--mono); color: var(--term-muted); overflow-wrap: anywhere; }
.turn .ms { color: var(--term-muted); }
.turn.is-pending { display: none; }
.turn.is-new { animation: turn-in .25s steps(3) 1; }
@keyframes turn-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.run-more { padding-top: clamp(48px, 6vw, 80px); }

/* Drafts (easter egg) */
.drafts { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px); }
.drafts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.drafts-copy { display: grid; gap: 14px; }
.drafts-copy p:not(.eyebrow) { color: var(--muted); }
.draft-board { border-block: 1px solid var(--line); padding: 20px 0; display: grid; gap: 16px; }
.draft-label { font: 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.note { width: 100%; display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; background: transparent; border: 1px solid var(--line); color: var(--muted); transition: transform .12s, border-color .12s; }
.note svg { width: 12px; height: 15px; image-rendering: pixelated; }
.note code { color: var(--ink); font-size: 11px; }
.note:hover, .note.is-playing { border-color: var(--accent); transform: translateY(-3px); }
.note.is-playing { background: var(--accent-soft); }
.draft-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.woven-button { display: inline-flex; padding: 10px 18px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.woven-button.is-woven { animation: woven .6s steps(4) 1; }
@keyframes woven { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.draft-status { font: 13px/1.5 var(--mono); color: var(--muted); min-height: 1.5em; }

/* Ways to work with us */
.offer { border-top: 1px solid var(--line); }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.offer-card { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 14px; padding: clamp(20px, 2.5vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-card-main { border-color: var(--accent); }
.offer-step { font: 600 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.offer-card > p { color: var(--muted); }
.offer-card .button { justify-self: start; }

/* Articles */
.article-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.article-cards a { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 22px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s, border-color .18s; }
.article-cards a:hover { color: inherit; border-color: var(--accent); }
.kind { font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.article-cards strong { font: 500 19px/1.35 var(--display); }
.more { font-size: 14px; color: var(--muted); }
.articles-all { margin-top: 20px; }

/* Contact and footer */
.company { border-top: 1px solid var(--line); }
.company-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); }
.company-grid > div { display: grid; gap: 22px; }
.company-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 38rem; }
.contact-email a { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line-strong); padding-block: 36px 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { padding-block: 10px; }
.footer-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; max-width: 60rem; }

/* About and article pages */
.page-head { display: grid; gap: 18px; max-width: 48rem; margin-bottom: 40px; }
.page-head h1, .article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; font-weight: 300; }
.about-page main, .article-page main { padding-block: clamp(40px, 6vw, 80px); }
.about-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 5vw, 64px); padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.about-section > h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.about-section .prose { max-width: 42rem; }
.about-section .facts { margin-top: 8px; }
.lessons { display: grid; gap: 0; }
.lessons li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lessons li span:first-child { font-weight: 600; }
.lessons li span:last-child { color: var(--muted); }
.article-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: 40px; }
.article-head .lede { max-width: 40rem; }
.prose { max-width: 42rem; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose ul { list-style: square; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 1.05em; }
.prose pre { overflow-x: auto; padding: 16px; background: var(--term-bg); color: var(--term-fg); border-radius: 8px; font-size: 14px; }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }
.prose pre code { background: none; padding: 0; }
.prose a { color: var(--accent); }
.prose img { border-radius: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-cta { margin-top: 56px; padding: 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-block: 1px solid var(--line-strong); max-width: 42rem; }
.article-cta p { font-weight: 600; }
.back-link { font-size: 14px; margin-top: 28px; }
.article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Translation review notice (shown only for strings files marked for review) */
.review-banner { padding: 10px 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; text-align: center; border-bottom: 1px solid var(--line); }

/* One contract, two platforms */
.parity { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-strong); }
.parity-copy { display: grid; gap: 12px; align-content: start; }
.parity-copy > p:not(.note-small) { color: var(--muted); font-size: 15px; }
.parity-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.parity-table th, .parity-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.parity-table thead th { font: 600 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom-color: var(--line-strong); }
.parity-table tbody th { font-weight: 600; }
.parity-table td { color: var(--muted); }

/* Figma plans */
.plans { display: grid; gap: 18px; margin-top: clamp(32px, 5vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-strong); }
.plans-head { display: grid; gap: 8px; max-width: 46rem; }
.plans-head p { color: var(--muted); font-size: 15px; }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-cards > li { display: grid; gap: 12px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-cards h4 { font-family: var(--display); font-size: 1.1rem; font-weight: 500; }
.plan-cards .ticks { font-size: 14px; color: var(--muted); }

/* Trust and accessibility pages (drafts) */
.draft-flag { justify-self: start; padding: 6px 12px; background: var(--warn-soft); color: var(--warn); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; }
.trust-page .prose .badge { vertical-align: middle; margin-inline: 4px; }

/* Privacy and ownership */
.ownership { border-top: 1px solid var(--line); }
.ownership-link { margin-top: 20px; }

/* Responsive */
@media (max-width: 1180px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .wordmark { margin-right: auto; }
}
@media (max-width: 1080px) {
  .article-cards, .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .pillar-cards, .audit-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3), .audit-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .capabilities-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .built-grid, .drafts-grid, .run-grid, .company-grid, .audit-body, .govern-grid { grid-template-columns: minmax(0, 1fr); }
  .problem-points, .offers, .capabilities, .prototype, .parity, .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .about-section { grid-template-columns: minmax(0, 1fr); }
  .kv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .article-cards, .stats, .pillar-cards, .modes, .facts, .audit-facts, .article-list { grid-template-columns: minmax(0, 1fr); }
  .stats li, .stats li + li, .facts li, .facts li + li, .audit-facts li, .audit-facts li + li, .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas li { grid-template-columns: minmax(0, 1fr) 2.5rem; }
  .areas .bar { grid-column: 1 / -1; grid-row: 2; }
  .findings li { grid-template-columns: minmax(0, 1fr); }
  .sev { justify-self: start; padding-inline: 8px; }
  .header-inner { gap: 12px; }
  .tool-list code { min-width: 0; }
  .turn-agent { margin-right: 0; } .turn-loom { margin-left: 16px; }
  .lessons li { grid-template-columns: minmax(0, 1fr); }
  .proto-steps li { grid-template-columns: minmax(0, 1fr); }
  .kv-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .header-inner > .button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .note:hover, .article-cards a:hover { transform: none; }
}
.vision-line { margin-top: 12px; font-weight: 500; color: var(--ink); }
