/* Hallmark · shape: Chapters (draw 0cc812 dealt Bento Grid; swapped: each automation needs a full-width flow chart that still reads as a chart at phone width, which bento cells cannot hold) · genre: editorial · theme: Garden (deal 1/3, seed agrix-precision-farming-startup-821b·e68727d4·2026-12-03·r0) · job: hire · draw: 0cc812
 * hero: Index (the head over an index of the five, the farmer's voice thread beside it) · nav: banner over a sticky bar (retracting dropped: a one-page proposal keeps its contact in view) · footer: statement · imagery: the product built in 7 slots, two library photographs of Bihar fields as stand-ins · signature: one farmer's Bhojpuri voice question answered from the plot's own record, and that plot reappearing on the desk, the passport and the offer
 * axes: light/roman-serif/chromatic-green · posture: committed · contrast: pass · fold: pass · data: sample · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, five automation chapters share one skeleton; the mockup swaps sides, each flow takes another form (a fork, a chain with a loop, a fan-in, a fork at the end, a chain with one human price), and the moss band and the green-ink close break the run */
/* Hallmark · dismissed 3 · the left edge on flow nodes marks who acts (dashed for a person), not a card stripe */
/* Hallmark · dismissed F4 · .fake-btn is a span inside the built samples, not a page control; the page has one filled primary */
/* Hallmark · dismissed F18 · the hallmarkSlots script lives in app.js because the CSP forbids inline scripts */
/* Hallmark · dismissed F15 · the 40px gap belongs to the flow charts and the system map, where it holds the arrows between steps; section columns use 64px, and 24px stacks two screens in one column */
/* Hallmark · dismissed render · fonts are self-hosted and the 1280 fold shows Vollkorn, Hanken Grotesk and Noto Devanagari; the warning comes from preload timing on the local server */
/* Hallmark · waive 59 · 12 sections at 1440 · the opening card lists five named ideas, and the user asked for each to be shown with its own workflow and screen, plus how they connect and where to start */
/* Hallmark · dismissed 58 · the render FAIL at 1440 from y 8150 (157 words) is the buyer flow chart meeting the system map, both diagram labels; word counts include the built chats, tables and flow-step labels the user asked for; prose outside them stays near the budget; the 174-word screen at 1440 is the system map, a diagram of short labels */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Fonts (self-hosted; the CSP allows nothing else) ---------- */
@font-face { font-family: "Vollkorn"; src: url("fonts/vollkorn-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Vollkorn"; src: url("fonts/vollkorn-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Devanagari for the farmers' messages: Noto Sans Devanagari, filed under the body family so Hindi and Bhojpuri set in the body face's company */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/noto-devanagari.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Page tokens ---------- */
:root {
  --logo-tile: var(--color-ink);
  --logo-word: var(--color-ink);
  --logo-dot: oklch(64% 0.17 42);
  --bar-h: 68px;
  --label: 500 var(--text-sm)/1.35 var(--font-body);
  --caption: 400 0.9375rem/1.45 var(--font-outlier);
  --on-ink: var(--color-paper);
  --on-ink-2: oklch(86% 0.03 110);
  --bubble-out: color-mix(in oklab, var(--color-accent-2) 62%, var(--color-paper));
  --wire: var(--color-rule-2);
  --arrow-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 5.25h18v1.5H0z'/%3E%3Cpath d='M16 1l8 5-8 5z'/%3E%3C/svg%3E");
  --arrow-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24'%3E%3Cpath d='M5.25 0h1.5v18h-1.5z'/%3E%3Cpath d='M1 16l5 8 5-8z'/%3E%3C/svg%3E");
}

body { font-size: 1.0625rem; color: var(--color-ink-2); font-variant-numeric: oldstyle-nums; }
table, .num { font-variant-numeric: lining-nums tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
b, strong { font-weight: 500; color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--on-ink); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--color-ink); line-height: 1.04; }
h1 { max-width: 11ch; font-size: clamp(2.75rem, 4.6vw + 0.6rem, 5rem); }
h2 { max-width: 20ch; }
a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); }
a:hover { text-decoration-color: var(--color-accent); }
figure { margin: 0; }
figcaption { font: var(--caption); color: var(--color-muted); padding-top: var(--space-sm); max-width: 62ch; }
.n { font: 600 1.15em/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-accent); min-width: 1.1em; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-2); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); border-color: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); color: var(--color-accent-ink); }
.btn--sm { min-height: 40px; padding: var(--space-xs) var(--space-md); font-size: var(--text-sm); }
.btn--on-ink { background: var(--color-accent-2); border-color: var(--color-accent-2); color: var(--color-ink); }
.btn--on-ink:hover { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.btn--on-ink:focus-visible { outline-color: var(--color-accent-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- Banner and bar ---------- */
.banner { margin: 0; padding: var(--space-xs) var(--gutter); background: var(--color-paper-2); color: var(--color-ink-2); font: var(--label); text-align: center; border-bottom: var(--rule-hair) solid var(--color-rule); max-width: none; }
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--bar-h); }
.bar-brand { display: inline-flex; padding: var(--space-xs) 0; }
.logo { width: 150px; height: auto; }
.bar-links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font: var(--label); font-size: var(--text-md); }
.bar-links a:not(.btn) { text-decoration: none; color: var(--color-ink-2); padding-block: var(--space-xs); background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.bar-links a:not(.btn):hover { color: var(--color-ink); background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.hero-text { display: grid; gap: var(--space-lg); padding-top: var(--space-md); }
.hero-text .lead { max-width: 40ch; }
.hero-index { list-style: none; margin: var(--space-md) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); max-width: 34rem; }
.hero-index li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.hero-index a { display: flex; align-items: baseline; gap: var(--space-md); padding: var(--space-sm) 0; text-decoration: none; color: var(--color-ink); font-weight: 500; transition: color var(--dur-short) var(--ease-out); }
.hero-index a:hover { color: var(--color-accent); }
.hero-chat figcaption { max-width: 44ch; }

/* ---------- Chat (built WhatsApp samples) ---------- */
.chat { background: var(--color-paper-3); border-radius: var(--radius-card); padding: var(--space-md); }
.chat-head { display: flex; align-items: center; gap: var(--space-sm); margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); font-weight: 500; }
.chat-head span { display: grid; line-height: 1.25; }
.chat-head small { font: var(--label); color: var(--color-muted); }
.msgs { display: grid; gap: var(--space-sm); }
.msg { max-width: 86%; padding: var(--space-sm) var(--space-md); border-radius: 12px; background: var(--color-paper); color: var(--color-ink); display: grid; gap: var(--space-2xs); }
.msg--in { justify-self: start; border-top-left-radius: 2px; }
.msg--out { justify-self: end; background: var(--bubble-out); border-top-right-radius: 2px; }
.msg--short { padding: var(--space-xs) var(--space-md); }
.deva { font-size: 1.0625rem; line-height: 1.55; color: var(--color-ink); }
.gloss { font: var(--caption); font-size: var(--text-sm); color: var(--color-muted); }
.voice { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-accent); font: var(--label); }
.wave { flex: 1; min-width: 120px; height: 16px; background: repeating-linear-gradient(90deg, var(--color-accent) 0 2px, transparent 2px 5px); border-radius: 2px; opacity: 0.55; clip-path: polygon(0 40%, 8% 20%, 16% 45%, 24% 0, 32% 35%, 40% 10%, 48% 50%, 56% 15%, 64% 40%, 72% 5%, 80% 45%, 88% 25%, 100% 40%, 100% 60%, 88% 75%, 80% 55%, 72% 95%, 64% 60%, 56% 85%, 48% 50%, 40% 90%, 32% 65%, 24% 100%, 16% 55%, 8% 80%, 0 60%); }
.photo-chip { display: inline-flex; align-items: center; gap: var(--space-xs); font: var(--label); color: var(--color-ink-2); }
.msg--photo { padding: var(--space-lg) var(--space-xl); background: var(--tint-clay); }
.chat--sm { padding-top: var(--space-md); max-width: 30rem; margin-left: auto; }
.auto-shot--two figure:last-child figcaption { margin-left: auto; max-width: 30rem; width: 100%; }

/* ---------- Glance: Agrix today ---------- */
.glance { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.glance-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: end; }
.glance-text { display: grid; gap: var(--space-lg); align-self: center; }
.photo { border-radius: var(--radius-card); aspect-ratio: 16 / 9; }
.photo img { border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-md); }
.figures dt { font: var(--label); font-size: var(--text-md); color: var(--color-muted); }
.figures dd { margin: 0; }
.figure { font: 600 clamp(3.5rem, 7vw, 7.5rem)/0.9 var(--font-display); font-variant-numeric: lining-nums proportional-nums; color: var(--color-ink); letter-spacing: -0.02em; }
.figures-note { margin-top: var(--space-lg); font: var(--caption); color: var(--color-muted); }

/* ---------- Section heads ---------- */
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }

/* ---------- Season strip (the moss band) ---------- */
.band--moss { background: var(--tint-moss); }
.season { padding-block: var(--section-gap-s); }
.season-fig { display: grid; gap: 0; }
.srows { list-style: none; margin: 0; padding: 0; }
.srow { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--space-lg); align-items: center; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.srow--head { border-bottom: 0; padding-bottom: var(--space-xs); align-items: end; }
.sname { display: flex; align-items: baseline; gap: var(--space-sm); font-weight: 500; color: var(--color-ink); text-decoration: none; font-size: var(--text-lg); }
a.sname:hover { color: var(--color-accent); }
.months { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xs); list-style: none; margin: 0; padding: 0; }
.months > li { height: 40px; border-radius: 2px; background: var(--color-paper); }
.months > li.on { background: var(--color-accent-2); }
.months > li.pk { background: var(--color-accent); }
.srow--head .months { row-gap: var(--space-xs); }
.span-k, .span-r, .span-z { font: var(--label); color: var(--color-ink); padding-bottom: var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-ink-2); }
.span-k { grid-column: 1 / span 5; } .span-r { grid-column: 6 / span 5; } .span-z { grid-column: 11 / span 2; }
.mlabels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xs); list-style: none; margin: 0; padding: 0; font: var(--label); color: var(--color-muted); }
.season-fig figcaption { padding-top: var(--space-md); }

/* ---------- Automation chapters ---------- */
.auto { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.auto-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; margin-bottom: var(--space-2xl); }
.auto--alt .auto-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.auto--alt .auto-text { order: 2; }
.auto-text { display: grid; gap: var(--space-lg); align-content: start; }
.auto-n { font: 600 clamp(5rem, 9vw, 9rem)/0.8 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-accent); margin-bottom: calc(-1 * var(--space-xs)); }
.shift { margin: var(--space-xs) 0 0; display: grid; gap: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.shift > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.shift dt { font: var(--label); color: var(--color-muted); padding-top: 0.15em; }
.shift > div:last-child dt { color: var(--color-accent); }
.shift dd { margin: 0; color: var(--color-ink-2); }
.auto-shot--two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }

/* Panels: the built screens, on paper-2 */
.panel { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); display: grid; gap: var(--space-md); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-md); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.panel-title { font: 600 var(--text-xl)/1.15 var(--font-display); color: var(--color-ink); }
.panel-sub { font: var(--label); color: var(--color-muted); }
.tally { display: flex; flex-wrap: wrap; gap: var(--space-xl); }
.tally p { display: flex; align-items: baseline; gap: var(--space-sm); color: var(--color-muted); font: var(--label); font-size: var(--text-md); }
.figure-s { font: 600 2.5rem/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
.tally p:first-child .figure-s { color: var(--color-accent); }
.scroll { overflow-x: auto; }
.scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tbl th, .tbl td { text-align: left; padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.tbl thead th { font: var(--label); font-size: var(--text-xs); color: var(--color-muted); border-bottom-color: var(--color-rule-2); }
.tbl tbody th { font-weight: 500; color: var(--color-ink); }
.tbl .r, .tbl td.num { text-align: right; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tr.is-flag th { color: var(--color-accent); }
.st { display: inline-flex; align-items: center; gap: var(--space-2xs); white-space: nowrap; font: var(--label); font-size: var(--text-xs); color: var(--color-muted); }
.st--wait { padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-accent); color: var(--color-accent); }
.tbl--week td { font-size: var(--text-xs); color: var(--color-muted); min-width: 5.5rem; }
.tbl--week td b { display: block; font-size: var(--text-sm); }
.tbl--week td.is-moved { background: var(--tint-clay); padding-left: var(--space-xs); }
.tbl--week tbody th { min-width: 8rem; }
.approve { display: grid; gap: var(--space-sm); padding-top: var(--space-xs); }
.approve-line { display: flex; gap: var(--space-xs); align-items: center; font: var(--label); color: var(--color-ink-2); }
.approve-acts { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.fake-btn { display: inline-flex; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: var(--label); }
.fake-link { font: var(--label); color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.doc-terms { font: var(--caption); font-size: var(--text-sm); color: var(--color-ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--space-xs) var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.timeline .when { font: var(--label); color: var(--color-muted); font-variant-numeric: lining-nums; padding-top: 0.1em; }
.timeline p { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); }
.timeline li.is-flag b { color: var(--color-accent); }
.timeline .st { grid-column: 2; justify-self: start; }

/* ---------- Flow charts ---------- */
.flow-fig { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-lg); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: stretch; }
.node { position: relative; display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-card); border-left: 3px solid var(--color-ink-2); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.4; }
.node .ico { color: var(--color-ink); margin-bottom: var(--space-xs); }
.node b { font-size: var(--text-md); line-height: 1.25; }
.node + .node::before { content: ""; position: absolute; left: calc(-1 * var(--space-xl) + 6px); top: 50%; width: calc(var(--space-xl) - 12px); height: 12px; transform: translateY(-50%); background: var(--wire); -webkit-mask: var(--arrow-r) center / 100% 100% no-repeat; mask: var(--arrow-r) center / 100% 100% no-repeat; }
.node.is-in, .node.is-out { background: var(--tint-moss); border-left-color: var(--color-accent); }
.node.is-hand, .branch.is-hand { background: transparent; border: var(--rule-hair) dashed var(--color-ink-2); border-left: 3px dashed var(--color-ink-2); }
.tag { margin-top: auto; padding-top: var(--space-xs); font: var(--label); font-size: var(--text-xs); font-style: normal; color: var(--color-muted); }
.tag--you { color: var(--color-ink); }
.node--fork { padding: 0; background: transparent; border: 0; gap: var(--space-xs); justify-content: center; }
.node--fork .branch { display: flex; flex-direction: column; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-card); border-left: 3px solid var(--color-ink-2); }
.node--fork .branch .tag { padding-top: var(--space-2xs); }
.node--in .branch { background: var(--tint-moss); border-left-color: var(--color-accent); }
.flow-loop { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--tint-clay); color: var(--color-ink); font: var(--label); font-size: var(--text-md); max-width: none; }
.flow-fig figcaption { padding-top: var(--space-md); }

/* ---------- System map ---------- */
.connects { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); }
.map-col { position: relative; display: grid; align-content: start; gap: var(--space-sm); }
.map-col + .map-col::before { content: ""; position: absolute; left: calc(-1 * var(--space-xl) + 6px); top: 50%; width: calc(var(--space-xl) - 12px); height: 12px; transform: translateY(-50%); background: var(--wire); -webkit-mask: var(--arrow-r) center / 100% 100% no-repeat; mask: var(--arrow-r) center / 100% 100% no-repeat; }
.map-h { font: 600 var(--text-xl)/1.15 var(--font-display); color: var(--color-ink); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-ink-2); }
.map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.map li { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.4; }
.map li .ico { margin-top: 1px; color: var(--color-ink-2); }
.map-col--auto li { background: var(--tint-moss); }
.map-col--hand li { background: transparent; border: var(--rule-hair) dashed var(--color-ink-2); }
.map li.is-core { background: var(--color-ink); color: var(--on-ink); }
.map li.is-core .ico { color: var(--color-accent-2); }
.promises { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.promises li { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-md); color: var(--color-ink-2); }
.promises b { display: block; font: 600 var(--text-lg)/1.2 var(--font-display); margin-bottom: var(--space-2xs); }

/* ---------- Where to start ---------- */
.start { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.deps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.deps-col { display: grid; gap: var(--space-sm); }
.deps-when { font: var(--label); color: var(--color-muted); margin-top: var(--space-xs); }
.dep { display: flex; align-items: baseline; gap: var(--space-sm); padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); font-weight: 500; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.dep:hover { background: var(--color-paper-3); }
.deps-core { position: relative; display: grid; justify-items: center; text-align: center; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-ink); color: var(--on-ink-2); }
.deps-core b { color: var(--on-ink); font: 600 var(--text-xl)/1.15 var(--font-display); }
.deps-core .ico { width: 28px; height: 28px; color: var(--color-accent-2); }
.deps-core::before, .deps-core::after { content: ""; position: absolute; top: 50%; width: calc(var(--space-2xl) - 16px); height: 12px; transform: translateY(-50%); background: var(--wire); -webkit-mask: var(--arrow-r) center / 100% 100% no-repeat; mask: var(--arrow-r) center / 100% 100% no-repeat; }
.deps-core::before { right: calc(100% + 8px); }
.deps-core::after { left: calc(100% + 8px); }

/* ---------- Close: statement on green ink ---------- */
.close { background: var(--color-ink); color: var(--on-ink-2); padding-block: var(--section-gap-s); }
.close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.close-text { display: grid; gap: var(--space-lg); }
.close h2 { color: var(--on-ink); max-width: 16ch; }
.close .lead { color: var(--on-ink-2); }
.close .photo { aspect-ratio: 4 / 3; }
.close .photo img { outline-color: transparent; }
.close figcaption { color: var(--on-ink-2); }
.close a:focus-visible { outline-color: var(--color-accent-2); }

/* ---------- Footer ---------- */
.foot { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot-cols { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.foot-small { display: grid; gap: var(--space-xs); font: var(--caption); font-size: var(--text-sm); color: var(--color-muted); justify-self: end; max-width: 60ch; }
.foot-small a { color: var(--color-ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 72rem) {
  .flow { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; row-gap: var(--space-xl); }
  .flow > .node:nth-child(3n + 1)::before { display: none; }
  .map { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-2xl); }
  .map-col:nth-child(3)::before { display: none; }
}
@media (max-width: 60rem) {
  .hero-grid, .glance-grid, .auto-top, .auto--alt .auto-top, .head-split, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .auto--alt .auto-text { order: 0; }
  .head-split { gap: var(--space-md); }
  .hero { padding-top: var(--space-xl); }
  .hide-s { display: none; }
  .figures { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .promises { grid-template-columns: minmax(0, 1fr); }
  /* Flow charts turn vertical, with down arrows between steps */
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .flow > .node:nth-child(3n + 1)::before { display: block; }
  .node + .node::before { left: var(--space-lg); top: calc(-1 * var(--space-xl) + 6px); width: 12px; height: calc(var(--space-xl) - 12px); transform: none; -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }
  .node--fork { flex-direction: row; gap: var(--space-xs); }
  .node--fork .branch { flex: 1 1 0; min-width: 0; }
  .map { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .map-col + .map-col::before, .map-col:nth-child(3)::before { display: block; left: var(--space-lg); top: calc(-1 * var(--space-xl) + 6px); width: 12px; height: calc(var(--space-xl) - 12px); transform: none; -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }
  .deps { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .deps-core::before, .deps-core::after { left: 50%; right: auto; width: 12px; height: calc(var(--space-2xl) - 16px); transform: translateX(-50%); -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }
  .deps-core::before { top: auto; bottom: calc(100% + 8px); }
  .deps-core::after { top: calc(100% + 8px); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-small { justify-self: start; }
}
@media (max-width: 40rem) {
  .srow { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .srow--head .sname { display: none; }
  .months > li { height: 28px; }
  .mlabels { font-size: 0.6875rem; }
  .mlabels li { overflow: hidden; }
  .sname { font-size: var(--text-md); }
  .panel { padding: var(--space-md); }
  .msg { max-width: 94%; }
  .node--fork { flex-direction: column; }
  .banner { padding-inline: var(--space-md); }
  .logo { width: 128px; }
  .tally { gap: var(--space-lg); }
  /* The desk table stacks into rows a phone can read: name and status, then language and question */
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-sm); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .tbl--stack th, .tbl--stack td { border: 0; padding: 0; }
  .tbl--stack td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; color: var(--color-muted); font-size: var(--text-xs); }
  .tbl--stack td:nth-child(3) { grid-row: 3; grid-column: 1 / -1; }
  .tbl--stack td:nth-child(4) { grid-row: 1; grid-column: 2; }
  /* The machine week fits the screen: Wednesday's rain stays in view */
  .tbl--week th, .tbl--week td { padding-right: var(--space-2xs); }
  .tbl--week td { min-width: 0; font-size: 0.6875rem; }
  .tbl--week td b { font-size: 0.75rem; }
  .tbl--week tbody th { min-width: 0; width: 24%; font-size: 0.75rem; }
  .tbl--week td.is-moved { padding-left: var(--space-2xs); }
}
