/* Hallmark · shape: custom, a beacon story from night to a working line · genre: modern-minimal · theme: brand (Eydara BRAND.md 2026-10-27, working guidance, not approved specs; shown as Aixia Applied until the name is secured)
 * paper: oklch(98.6% 0.004 230) · night: oklch(14.5% 0.020 245) · accent: oklch(85% 0.062 222) ice blue · display: Space Grotesk · body: Space Grotesk · hero: full-bleed night photograph, text over the sea · nav: edge-aligned white bar, logo left · footer: logo, links, image note · signature: the hero's lighthouse view, then the five stages set in type that comes into focus from blurred to sharp, Separation in ice blue; echoed in the teaching loop (marked, learned, corrected) and the edge chain, where one field of points is captured, straightened, queued, separated, sent and shown
 * axes: dark/geometric-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V5 · weakest: S, the landscape is a mood reference, so the line is carried by two published customer cases (logos, after the edge chain), the layer table, the chain figures and the aivz film */
/* Hallmark · waive 82 · the points are an image drawn as a field, not a count · each figure shows the same abstract frame at one step of the chain; no number is implied */
/* Hallmark · waive 77 · the section carries its mass as rows · six-row layer table from Master Handover § 5, beside a sticky head */
@import url("./tokens.css");
@import url("./base.css");

/* Space Grotesk, served from here (SIL OFL 1.1, assets/fonts/OFL.txt): one variable file per subset */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2"); 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: "Space Grotesk"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* in-page links glide to their section and land just below the sticky nav */
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* chrome */
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__row { display: flex; align-items: center; gap: var(--space-xl); min-height: 68px; }
.brandmark { --mark-h: 20px; display: inline-flex; align-items: center; color: var(--color-ink); text-decoration: none; }
.brandmark img { height: var(--mark-h); width: auto; }
.brandmark__word { font-family: var(--font-display); font-weight: 300; font-size: var(--mark-h); line-height: 1; letter-spacing: 0.01em; color: var(--color-muted); margin-inline-start: calc(var(--mark-h) * 0.45); padding-inline-start: calc(var(--mark-h) * 0.45); border-inline-start: var(--rule-hair) solid var(--color-rule); }
.nav__logo { flex: none; }
.nav__logo { --mark-h: 20px; }
.nav__links { display: flex; gap: var(--space-lg); margin-inline-start: auto; font-size: var(--text-sm); }
.nav__links a, .footer__links a { white-space: nowrap; text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-micro) var(--ease-out); }
.nav__links a:hover, .footer__links a:hover { color: var(--color-ink); text-decoration: underline; }
.nav__end { display: flex; align-items: center; gap: var(--space-lg); }
.lang { display: flex; gap: var(--space-2xs); font-size: var(--text-sm); }
.lang a { display: inline-flex; align-items: center; padding: var(--space-2xs) var(--space-xs); color: var(--color-muted); text-decoration: none; border-radius: var(--radius-pill); transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.lang a:hover { color: var(--color-ink); }
.lang a:active { background: var(--color-paper-2); }
.lang a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.3em; }

/* actions */
.btn { --btn-bg: var(--color-ink); --btn-ink: var(--color-paper); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-lg); background: var(--btn-bg); color: var(--btn-ink); border: var(--rule-hair) solid var(--btn-bg); border-radius: var(--radius-pill); font-weight: 500; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; letter-spacing: 0.01em; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: transparent; color: var(--btn-bg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.night .btn { --btn-bg: var(--color-accent); --btn-ink: var(--color-accent-ink); }
.link { color: inherit; font-size: var(--text-sm); text-underline-offset: 0.3em; transition: color var(--dur-micro) var(--ease-out); }
.link:hover { color: var(--color-accent); }
.link:active { opacity: 0.8; }

/* grounds */
.night { background: var(--color-night); color: var(--color-on-night); }
.night .lead, .night p { color: var(--color-on-night-2); }
.night h1, .night h2, .night h3 { color: var(--color-on-night); }

.headblock { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.headblock--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--gap-columns); }
.caption { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-sm); }

/* hero */
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - 68px), 900px); display: grid; align-items: end; overflow: clip; }
.hero__photo { position: absolute; inset: 0; z-index: -1; background: var(--color-night); color: var(--color-on-night); }
.hero__photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, color-mix(in oklab, var(--color-night) 88%, transparent) 0%, color-mix(in oklab, var(--color-night) 30%, transparent) 45%, transparent 70%); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-3xl) var(--space-3xl); }
.hero__text { grid-column: 7 / span 6; display: grid; gap: var(--space-lg); }
.hero h1 { font-size: var(--text-display); max-width: 12ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }

/* the five states, in type: the words come into focus along the line */
.stages { padding-block: var(--section-gap); background: var(--color-night-2); border-top: var(--rule-hair) solid var(--color-night-rule); }
.stages .headblock { margin-bottom: var(--space-xl); }
.stages__words { list-style: none; margin: 0; padding: var(--space-lg) 0 0; display: flex; justify-content: space-between; gap: var(--space-lg); border-top: var(--rule-hair) solid var(--color-night-rule); }
.stages__words li { display: grid; gap: var(--space-xs); align-content: start; }
.stages__words li > p { width: 0; min-width: 100%; }
.stages__words h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.1; max-width: none; filter: blur(var(--b)); opacity: var(--o); }
.stages__words p { font-size: var(--text-sm); }
.stages__words .is-core h3 { color: var(--color-accent); }

/* at the line */
.line { padding-block: var(--section-gap-l) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.line__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.line__people { grid-column: 2; font-size: var(--text-lead); line-height: 1.45; max-width: 46ch; margin-top: var(--space-lg); }
.line__head { display: grid; gap: var(--space-md); position: sticky; top: 120px; }
.layers { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.layers th, .layers td { text-align: left; vertical-align: top; padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.layers tr:last-child th, .layers tr:last-child td { border-bottom: var(--rule-hair) solid var(--color-rule); }
.layers th { width: 34%; font-weight: 500; font-size: var(--text-lg); }
.layers td { color: var(--color-ink-2); }
.layers__people th, .layers__people td { background: var(--color-paper-2); }
.layers__people th { padding-inline-start: var(--space-md); color: var(--color-accent-deep); }

/* edge and perception */
.edge { padding-block: var(--section-gap); }
.chain { list-style: none; margin: 0 0 var(--space-3xl); padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.chain li { position: relative; container-type: inline-size; display: grid; gap: var(--space-xs); align-content: start; }
.chain li + li::before { content: ""; position: absolute; top: 37.5cqw; right: calc(100% + 1px); width: var(--space-md); height: 1px; background: var(--color-night-rule); }
.fig { width: 100%; height: auto; aspect-ratio: 4 / 3; color: var(--color-on-night-2); background: var(--color-night-2); border: var(--rule-hair) solid var(--color-night-rule); margin-bottom: var(--space-xs); }
.fig .fr, .fig .crop, .fig .box, .fig .ln, .fig .ray { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig .ground { fill: var(--color-night-2); }
.fig .far { opacity: 0.3; } .fig .mid { opacity: 0.55; }
.fig .pt { fill: currentColor; }
.fig .dim { opacity: 0.32; }
.fig .ray { opacity: 0.6; stroke-dasharray: 2 3; }
.fig { --fig-accent: var(--color-accent); }
.fig .core, .fig .hi { fill: var(--fig-accent); }
.fig .drawn { fill: none; stroke: var(--fig-accent); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.fig .arrow { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig .crop, .fig .box, .fig .hiline { stroke: var(--fig-accent); opacity: 1; }
.fig .hiline { stroke-dasharray: none; }
.chain h3 { font-size: var(--text-lg); font-weight: 500; }
.chain p { font-size: var(--text-sm); }
.film { margin: 0; max-width: 1120px; }
.film video { width: 100%; background: var(--color-night); border: var(--rule-hair) solid var(--color-night-rule); }
.edge .caption { color: var(--color-on-night-2); }

/* teaching */
.teach { padding-block: var(--section-gap-s); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.teach__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.teach__row li { display: grid; gap: var(--space-xs); align-content: start; }
.teach .fig { color: var(--color-ink-2); background: var(--color-paper); border-color: var(--color-rule); --fig-accent: var(--color-accent-deep); }
.teach h3 { font-size: var(--text-lg); font-weight: 500; }
.teach__run h3 { color: var(--color-accent-deep); }
.teach__row p { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 36ch; }

/* insight */
.insight { padding-block: var(--section-gap) var(--section-gap-l); }
.insight__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: center; }
.insight__text { display: grid; gap: var(--space-xl); }
.insight__rows { margin: 0; display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.insight__rows > div { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-2xs); }
.insight__rows dt { font-weight: 500; font-size: var(--text-lg); }
.insight__rows dd { margin: 0; color: var(--color-ink-2); }
.insight__shot { margin: 0; }
.stats { --series-1: var(--color-series-1); --series-0: var(--color-series-0); }
.stats__panel { display: grid; gap: var(--space-md); padding: var(--space-lg); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); box-shadow: 0 18px 40px -24px color-mix(in oklab, var(--color-ink) 35%, transparent); }
.stats__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); }
.stats__head h3 { font-size: var(--text-lg); font-weight: 500; }
.stats__filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--text-xs); }
.stats__filters b { font-weight: 500; color: var(--color-ink); }
.stats__filters > span { padding: var(--space-3xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.stats__legend { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-lg); font-size: var(--text-xs); color: var(--color-ink-2); }
.stats__legend li { display: flex; align-items: center; gap: var(--space-xs); }
.stats__legend li::before { content: ""; width: 18px; height: 0; border-top: 2px solid var(--series-1); }
.stats__legend .k-other::before { border-top: 2px dashed var(--series-0); }
.stats__plot { position: relative; }
.stats__chart { width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.stats__chart--narrow { display: none; }
@media (max-width: 40rem) { .stats__chart--wide { display: none; } .stats__chart--narrow { display: block; } .stats__panel { padding: var(--space-md); } }
.stats__chart:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.stats__chart[data-pointer]:focus-visible { outline: none; }
.stats__chart .grid { stroke: var(--color-rule); stroke-width: 1; }
.stats__chart .tick { fill: var(--color-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.stats__chart .event { stroke: var(--color-ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.stats__chart .event-label { fill: var(--color-ink-2); font-size: 11px; }
.stats__chart .s-edge { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stats__chart .s-other { fill: none; stroke: var(--series-0); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.stats__chart .s-edge-dot { fill: var(--series-1); stroke: var(--color-paper); stroke-width: 2; }
.stats__chart .dl { fill: var(--color-ink-2); font-size: 12px; }
.stats__chart .dl-edge { fill: var(--color-ink); font-weight: 500; }
.stats__chart .cross { stroke: var(--color-ink); stroke-width: 1; }
.stats__tip { position: absolute; top: 0; z-index: var(--z-tooltip); min-width: 140px; padding: var(--space-xs) var(--space-sm); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--color-ink) 40%, transparent); font-size: var(--text-xs); pointer-events: none; }
.stats__tip p { display: flex; align-items: center; gap: var(--space-xs); }
.stats__tip b { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.stats__tip i { width: 14px; border-top: 2px solid var(--series-1); }
.stats__tip i.o { border-top-style: dashed; border-top-color: var(--series-0); }
.stats__tip .d { color: var(--color-muted); margin-bottom: var(--space-2xs); }
.stats__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.stats__table th, .stats__table td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; text-align: left; border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 400; }
.stats__table thead th { color: var(--color-muted); font-size: var(--text-xs); }
.stats__table .num { text-align: right; font-variant-numeric: tabular-nums; }
.stats__table .is-focus th, .stats__table .is-focus td { color: var(--color-ink); font-weight: 500; }
.stats__table .is-focus td:last-child { color: var(--series-1); }
.stats__volume { display: flex; flex-wrap: wrap; gap: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); }
.stats__volume b { color: var(--color-ink); font-weight: 500; margin-inline-start: var(--space-2xs); }

/* cases */
.cases { padding-block: var(--section-gap-l) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.cases__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: start; }
.cases__head { font-size: var(--text-2xl); }
.case { display: grid; gap: var(--space-md); align-content: start; border-top: var(--rule-hair) solid var(--color-ink); padding-top: var(--space-lg); }
.case__logo { display: flex; align-items: center; height: var(--logo-h, 40px); width: 200px; background: none; text-decoration: none; transition: opacity var(--dur-micro) var(--ease-out); }
.case__logo:hover { opacity: 0.75; }
.case__logo:active { opacity: 0.6; }
.case__logo > img { mix-blend-mode: multiply; position: static; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.case__name { font-size: var(--text-xl); font-weight: 500; padding: var(--space-2xs) var(--space-sm); border: 1px dashed var(--color-rule); }
.case__what { color: var(--color-ink-2); font-size: var(--text-sm); max-width: 44ch; }
.case__out { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.case__out li { padding: var(--space-2xs) 0; }
.case__quote { margin: 0; }
.case__quote p { font-size: var(--text-md); line-height: 1.45; }
.case__quote footer { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.case__quote cite { font-style: normal; color: var(--color-ink); }

/* close */
.close { padding-block: var(--section-gap-l) var(--section-gap); }
.close__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.close__intro { display: grid; gap: var(--space-lg); align-content: start; }
.close__head { font-size: var(--text-display); max-width: 14ch; }
.contact { display: grid; gap: var(--space-3xs); margin-top: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-night-rule); }
.night .contact__name { color: var(--color-on-night); font-size: var(--text-xl); }
.contact__role { font-size: var(--text-sm); }
.contact__mail { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); text-underline-offset: 0.2em; transition: color var(--dur-micro) var(--ease-out); }
.contact__mail:hover { color: var(--color-on-night); }
.contact__mail:active { opacity: 0.8; }

/* ask to be contacted: a mailto form */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md) var(--space-md); padding: var(--space-xl); background: var(--color-night-2); border: var(--rule-hair) solid var(--color-night-rule); }
.form__head { grid-column: 1 / -1; font-size: var(--text-xl); }
.field { display: grid; gap: var(--space-2xs); align-content: start; }
.form__reach, .form__foot, .form__status { grid-column: 1 / -1; }
.form__privacy { grid-column: 1 / -1; font-size: var(--text-sm); }
.form__privacy a { color: var(--color-accent); text-underline-offset: 0.2em; }
.form__privacy a:hover { color: var(--color-on-night); }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__reach { font-size: var(--text-sm); margin-top: calc(var(--space-xs) * -1); }
.form__reach.is-error { color: var(--color-error-on-night) !important; }
.field label { font-size: var(--text-sm); color: var(--color-on-night); }
.req { color: var(--color-on-night-2); font-size: var(--text-xs); }
.input { width: 100%; min-height: 44px; padding: var(--space-xs) var(--space-sm); font: inherit; font-size: var(--text-md); color: var(--color-on-night); background: var(--color-night); border: 1px solid var(--color-on-night-2); border-radius: var(--radius-pill); outline: 2px solid transparent; outline-offset: -3px; caret-color: var(--color-accent); transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .input:hover { background: color-mix(in oklab, var(--color-night) 70%, var(--color-night-2)); } }
.input:focus-visible { outline-color: var(--color-accent); border-color: var(--color-on-night); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--color-error-on-night); }
.field__err { font-size: var(--text-sm); color: var(--color-error-on-night) !important; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xs); }
.form__status { padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-accent); color: var(--color-on-night) !important; }
.form__status a { color: var(--color-accent); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* text pages: privacy */
.doc__main { max-width: 760px; padding-block: var(--space-3xl) var(--section-gap); display: grid; gap: var(--space-md); }
.doc__main h1 { font-size: var(--text-section); }
.doc__main h2 { font-size: var(--text-xl); margin-top: var(--space-lg); }
.doc__updated { color: var(--color-muted); font-size: var(--text-sm); }
.doc__main a { color: var(--color-accent-deep); }

/* footer */
.footer { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.footer__logo { --mark-h: 17px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }

/* the one reveal */
.js .hero__text[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }
.js .chain[data-reveal]:not(.is-in) li { opacity: 0; transform: translateY(8px); }
.hero__text[data-reveal], .chain[data-reveal] li { transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.chain[data-reveal] li { transition-delay: calc(var(--i, 0) * 90ms); }

@media (max-width: 72rem) {
  .nav__links { display: none; }
  .nav__end { margin-inline-start: auto; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .chain li::before { display: none; }
}
@media (max-width: 60rem) {
  .hero__text { grid-column: 1 / -1; }
  .headblock--split, .line__grid, .cases__grid, .insight__grid, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .teach__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .line__people { grid-column: auto; }
  .cases__grid { row-gap: var(--space-xl); }
  .line__head { position: static; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
}
/* touch screens of any width: every control at least 44px tall, small text at least 14px */
@media (pointer: coarse), (max-width: 60rem) {
  .skip, .nav__logo, .case__logo { min-height: 44px; }
  .lang a { min-height: 44px; padding-inline: var(--space-xs); }
  .hero__actions .link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__links { gap: 0 var(--space-lg); }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .stats__filters, .stats__legend, .stats__volume, .stats__table thead th { font-size: var(--text-sm); }
}
@media (max-width: 40rem) {
  .nav__row { gap: var(--space-md); min-height: 60px; }
  .nav__logo { --mark-h: 16px; }
  .nav__end { gap: 0; }
  .nav__end .btn { display: none; }
  .stages__words { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .stages__words li > p { width: auto; min-width: 0; }
  .stages__words li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; }
  .stages__words h3 { font-size: 1.75rem; }
  .stages__words p { font-size: 0.9375rem; }

  /* hero: keep the lamp clear of the headline */
  .hero { min-height: calc(100svh - 60px); }
  .hero__grid { padding-block: var(--space-2xl) var(--space-xl); }
  .hero__photo::after { background: linear-gradient(to top, color-mix(in oklab, var(--color-night) 92%, transparent) 0%, color-mix(in oklab, var(--color-night) 55%, transparent) 50%, transparent 72%); }

  /* stages and chain: two across, readable captions */
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-sm); margin-bottom: var(--space-2xl); }
  .chain p, .teach__row p { font-size: 0.9375rem; }

  /* teaching: a 2 by 2 grid instead of four full screens */
  .teach__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-sm); }
  .teach h3, .chain h3 { font-size: var(--text-md); }

  /* layer table: each row stacks, name over description */
  .layers, .layers tbody, .layers tr, .layers th, .layers td { display: block; width: 100%; }
  .layers tr { padding: var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .layers tr:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .layers th, .layers td, .layers tr:last-child th, .layers tr:last-child td { border: 0; padding: 0; }
  .layers th { width: 100%; font-size: var(--text-md); margin-bottom: var(--space-2xs); }
  .layers__people { background: var(--color-paper-2); padding-inline: var(--space-md) !important; }
  .layers__people th, .layers__people td { background: none; padding-inline-start: 0; }

  .stats__chart--narrow { touch-action: pan-y; }

  /* rhythm */
  .insight { padding-block: var(--section-gap); }
  .teach, .cases { padding-block: var(--section-gap); }
  .close__head { font-size: clamp(2.5rem, 11vw, 3rem); }
  .form { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg) var(--space-md); }
  .form__foot .btn { width: 100%; justify-content: center; }
  .case__what, .case__out { font-size: var(--text-md); }
}
