/* Hallmark · shape: map / diagram · genre: atmospheric · theme: Refract (by request, replacing the dealt Midnight when the user asked for a brighter style) · job: hire · draw: 2e032e
 * hero: stage · nav: edge-aligned, in a clear floating bar · footer: mast · imagery: the product, built (two three.js diagrams with still fallbacks) · signature: the operating model as three panes of clear glass over a pool of moving water light that fills the right of the hero, ontology, skills and agents throwing teal, blue and amber shadows onto it · refract: water/pool
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · hero-review: fix · 5 findings · 5 resolved · finish-review: fix · 8 findings · 7 resolved · 1 open: real contact details · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R3 V4 · weakest: R, three kind colours where Refract keeps one signal, because the user asked for colour; held them to the glass in the two diagrams and their keys, while type, surfaces and controls stay pool blue on white */
/* Hallmark · answered F4 · the second hero action is Refract's secondary, clear white glass with a hairline ring, not a second fill of the signal colour */
/* Hallmark · dismissed 25 · .step p is a one- or two-sentence lede at lead size, where 42ch is the measure */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/funnel-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  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: "Funnel Sans";
  src: url("../fonts/funnel-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  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;
}

/* the diagrams' three kinds, by the user's request for colour: data teal, skills pool blue, agents amber,
   each with a deep ink for words set in it */
:root {
  --color-data: oklch(76% 0.115 182); --color-data-ink: oklch(45% 0.085 190);
  --color-skill: oklch(62% 0.13 236); --color-skill-ink: var(--color-accent);
  --color-agent: oklch(82% 0.145 74); --color-agent-ink: oklch(50% 0.105 62);
  --edge-top: inset 0 1px 0 oklch(100% 0 0 / 0.3);
  --shadow-tag: 0 6px 14px -8px oklch(52% 0.09 220 / 0.5);
  --nav-h: 76px;
  --text-body: 1.0625rem;
  --text-hero: clamp(2.5rem, 5.3vw + 0.4rem, 5.5rem);
  --cap-room: 132px;
}
/* Chinese pages: the system's CJK faces after Funnel, which carries the Latin and the figures */
:root:lang(zh-Hans) {
  --font-display: "Funnel Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-body: "Funnel Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --tracking-display: 0;
}
:root:lang(zh-Hant) {
  --font-display: "Funnel Display", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --font-body: "Funnel Sans", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --tracking-display: 0;
}
:root:lang(zh-Hant-HK) {
  --font-display: "Funnel Display", "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Source Han Sans HC", "PingFang TC", sans-serif;
  --font-body: "Funnel Sans", "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Source Han Sans HC", "PingFang TC", sans-serif;
}

/* ---- type ---- */
body { color: var(--color-ink-2); font-size: var(--text-body); line-height: 1.6; }
h1, h2, h3 { color: var(--color-ink); line-height: 1.02; }
h3 { line-height: 1.15; }
.lead { color: var(--color-muted); }
:lang(zh) :is(h1, h2, h3) { line-height: 1.22; }
:lang(zh) .lead, :lang(zh) p { line-height: 1.7; }
/* Chinese lines break at punctuation and spaces, not inside a phrase */
:lang(zh) :is(h1, h2, h3, .lead, .step p, .cap, .index__for, .index__line, .specs dd, .fig__line, .roles p, .contact p, .models p) { word-break: keep-all; overflow-wrap: anywhere; }
.ph { display: inline-block; }
a:hover { text-decoration-color: var(--color-accent); }

/* ---- controls: pills, clear or pool blue ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--edge-top), var(--shadow-card); }
.btn--primary:hover { background: var(--color-accent-hi); }
.btn--secondary { background: color-mix(in oklab, var(--color-light) 80%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule), var(--shadow-card); }
.btn--secondary:hover { background: var(--color-light); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }

.seg { display: inline-flex; gap: var(--space-3xs); margin: 0; padding: var(--space-3xs); border: 0; min-width: 0; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 80%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule), var(--shadow-card); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.seg label:hover { background: var(--color-paper-2); color: var(--color-ink); }
.seg input:checked + label { background: var(--color-light); color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-accent), var(--shadow-tag); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.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); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.fill { white-space: nowrap; padding: 0 0.3em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: var(--radius-inner); color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---- nav: a clear bar floating over the page ---- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-top: var(--space-sm); }
/* once the page moves, a paper lip above the bar, so nothing slides past over it */
.nav::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--space-sm) + 30px); background: linear-gradient(var(--color-paper) 40%, transparent); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); pointer-events: none; }
.nav.is-scrolled::before { opacity: 1; }
.nav__bar { display: flex; align-items: center; gap: var(--space-lg); min-height: 60px; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-light) 97%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2), var(--shadow-card); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; margin-right: auto; color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.mark { width: 22px; height: 22px; }
.mark__data { fill: var(--color-data); } .mark__skill { fill: var(--color-skill); } .mark__agent { fill: var(--color-agent); }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links a, .langs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav__links a[aria-current="page"] { text-decoration-thickness: 1.5px; text-underline-offset: 0.4em; }
.langs ul { display: flex; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.langs a { padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-muted); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.langs a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.langs a[aria-current="page"] { background: var(--color-accent-soft); color: var(--color-ink); }
/* the language switch: a globe that opens a short list, each language named in its own script.
   The list sits under the globe where the browser can anchor it, else under the bar's right end */
.lang { display: flex; }
.lang__btn { display: inline-flex; align-items: center; gap: var(--space-3xs); min-width: 44px; min-height: 44px; padding: 0 var(--space-xs) 0 var(--space-sm); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.lang__btn:hover, .lang:has(.lang__menu:popover-open) .lang__btn { background: var(--color-paper-2); color: var(--color-ink); }
.lang__globe { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lang__chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate var(--dur-short) var(--ease-out); }
.lang:has(.lang__menu:popover-open) .lang__chev { rotate: 180deg; }
.lang__menu { position: fixed; inset: calc(var(--nav-h) + var(--space-2xs)) calc(var(--gutter) + max(0px, (100% - var(--container)) / 2)) auto auto; width: max-content; min-width: 200px; height: auto; margin: 0; padding: var(--space-2xs); border: 0; border-radius: var(--radius-card); background: var(--color-light); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2), var(--shadow-card); color: var(--color-ink); opacity: 0; translate: 0 -6px; transition: opacity var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out), overlay var(--dur-short) allow-discrete, display var(--dur-short) allow-discrete; }
.lang__menu:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .lang__menu:popover-open { opacity: 0; translate: 0 -6px; } }
@supports (anchor-name: --lang) {
  .lang__btn { anchor-name: --lang; }
  .lang__menu { position-anchor: --lang; inset: auto; top: calc(anchor(bottom) + var(--space-xs)); right: anchor(right); }
}
.lang__menu ul { display: grid; margin: 0; padding: 0; list-style: none; }
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-inner); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.lang__menu a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.lang__menu a[aria-current="page"] { color: var(--color-ink); }
.lang__check { flex: none; width: 12px; height: 12px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang__menu a[aria-current="page"] .lang__check { visibility: visible; }
/* on a phone the links go behind a menu: a solid white panel under the bar (it sits over text), light-dismissed */
.nav__menu { display: none; }
.menu { position: fixed; inset: calc(var(--nav-h) + var(--space-2xs)) var(--gutter) auto; width: auto; height: auto; margin: 0; padding: var(--space-sm); border: 0; border-radius: var(--radius-card); background: var(--color-light); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2), var(--shadow-card); color: var(--color-ink); opacity: 0; translate: 0 -6px; transition: opacity var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out), overlay var(--dur-short) allow-discrete, display var(--dur-short) allow-discrete; }
.menu:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .menu:popover-open { opacity: 0; translate: 0 -6px; } }
.menu::backdrop { background: color-mix(in oklab, var(--color-paper) 72%, transparent); }
.menu__contact { display: none; }
.menu__links { display: grid; margin: 0; padding: 0; list-style: none; }
.menu__links a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--space-sm); border-radius: var(--radius-inner); color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-lg); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.menu__links a:hover { background: var(--color-paper-2); }
.menu .langs { margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.menu .langs ul { flex-wrap: wrap; }

/* ---- the stage: hero and method on the left, the stack held over the pool on the right ---- */
main { container-type: inline-size; }
.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "hero fig" "method fig"; column-gap: var(--space-3xl); }
.hero { grid-area: hero; display: grid; align-content: center; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-3xl) var(--space-xl); }
/* the head is stacked phrase by phrase, a line each, at the display size; the column is the measure,
   so the longest line (twelve characters in English, five and a short word in Chinese) always holds */
.hero__text { container-type: inline-size; }
.hero h1 { font-size: min(var(--text-hero), 15.5cqi); }
.hero h1 .ph { display: block; }
:lang(zh) .hero h1 { font-size: min(var(--text-hero), 16cqi); }
.hero .lead { max-width: 34ch; margin-top: var(--space-lg); }
:lang(zh) .hero .lead { max-width: 24em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
/* the line above the head says what the firm is; the head says what it promises */
.kicker { margin-bottom: var(--space-lg); color: var(--color-accent); font-size: var(--text-sm); font-weight: 500; line-height: 1.4; }
:lang(zh) .kicker { max-width: none; font-size: var(--text-md); line-height: 1.5; }
.settle { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.6; } }

.stack { grid-area: fig; align-self: start; position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); min-height: 520px; margin: 0; --bleed: calc(var(--gutter) + max(0px, (100cqw - var(--container)) / 2)); }
/* the pool: the light as one hard-edged surface, out to the window's edge and up under the nav, its rim catching the sun */
.stack__stage { position: absolute; inset: calc(-1 * var(--nav-h)) calc(-1 * var(--bleed)) var(--cap-room) 0; overflow: clip; border-bottom-left-radius: var(--radius-card); background: var(--color-shade); }
.stack__stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--edge-light); pointer-events: none; }
.stack__stage .still { inset: var(--nav-h) var(--bleed) 0 0; width: auto; height: auto; }
.stack__cap { position: absolute; left: 0; bottom: var(--space-xl); display: grid; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.stack__ctl { position: absolute; right: 0; bottom: var(--space-xl); }

.method { grid-area: method; padding-block: var(--section-gap-s) var(--section-gap); }
.method h2 { max-width: 11ch; }
:lang(zh) .method h2 { max-width: none; }
.steps { margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.step { display: grid; align-content: center; gap: var(--space-md); min-height: 62svh; padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); transition: color var(--dur-long) var(--ease-out); }
.step h3 { display: flex; align-items: center; gap: var(--space-md); max-width: none; font-size: var(--text-3xl); line-height: 1.1; transition: color var(--dur-long) var(--ease-out); }
.step p { max-width: 42ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; transition: color var(--dur-long) var(--ease-out); }
.has-current .step:not(.is-current) h3, .has-current .step:not(.is-current) p { color: var(--color-muted); }

/* ---- the diagrams ---- */
.stack__stage canvas, .org__stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.stack__stage canvas { cursor: grab; touch-action: pan-y; }
.stack__stage.is-dragging canvas { cursor: grabbing; }
html:not(.js) .stack__stage canvas, html:not(.js) .org__stage canvas, .is-static canvas { display: none; }
.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.labels { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 86%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2); color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 500; line-height: 1.3; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), visibility var(--dur-short); }
.tag--right { translate: 10px -50%; }
.tag--left { translate: calc(-100% - 10px) -50%; }
.tag--top { translate: -50% calc(-100% - 6px); }
.tag--bottom { translate: -50% 8px; }
.tag--right.tag--flip { translate: calc(-100% - 10px) -50%; }
.tag--left.tag--flip { translate: 10px -50%; }
.tag.is-strong { background: var(--color-light); color: var(--color-ink); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule), var(--shadow-tag); }
.tag--layer { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--color-ink-2); font-size: var(--text-sm); }
.tag--layer.is-strong { background: none; box-shadow: none; }
/* a layer name with its Chinese gloss stacks, term over gloss, so it always fits beside its pane; over the water it sits on clear glass */
.stack .tag--layer { width: min-content; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--color-light) 86%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2); white-space: normal; word-break: keep-all; text-align: end; }
.stack .tag--layer.is-strong { background: var(--color-light); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule), var(--shadow-tag); }
.stack .tag--layer.tag--flip { text-align: start; }
.org__stage.is-narrow .tag--layer { width: min-content; white-space: normal; word-break: keep-all; text-align: center; }
.tag--data { color: var(--color-data-ink); }
.tag--skill { color: var(--color-skill-ink); }
.tag--agent { color: var(--color-agent-ink); }

.keys { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.key { display: inline-flex; align-items: center; gap: var(--space-xs); }
.glyph { flex: none; width: 10px; height: 10px; }
.step .glyph { width: 14px; height: 14px; }
.key--data .glyph, .glyph--data { fill: var(--color-data); }
.key--skill .glyph, .glyph--skill { fill: var(--color-skill); }
.key--agent .glyph, .glyph--agent { fill: var(--color-agent); }
.key--person .glyph { fill: var(--color-ink-2); }
.key--order .glyph { fill: var(--color-skill); }
.glyph--team { fill: none; stroke: var(--color-agent-ink); stroke-width: 1; stroke-dasharray: 2 1.5; }
html:not(.js) .live-only, .is-static .live-only { display: none; }

/* a loop that can pause */
[data-loop]:not(.is-running), [data-loop]:not(.is-running) *, [data-loop]:not(.is-running) *::before, [data-loop]:not(.is-running) *::after { animation-play-state: paused !important; }
html:not(.js) [data-loop-toggle], .is-static [data-loop-toggle] { display: none; }

/* ---- services: an index of four ---- */
.services { padding-block: var(--section-gap) var(--section-gap-l); }
.index { margin: var(--space-2xl) 0 0; padding: 0; list-style: none; counter-reset: service; border-bottom: var(--rule-hair) solid var(--color-rule); }
.index__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); counter-increment: service; }
.index__row::before { content: counter(service); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.index__row h3 { font-size: var(--text-2xl); line-height: 1.1; }
.index__for { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.index__line { color: var(--color-ink-2); }
.more { color: var(--color-accent); font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-accent) 40%, transparent); }
.more:hover { color: var(--color-accent-hi); text-decoration-color: currentColor; }

/* ---- how an engagement runs: three steps on one rule, an arrowhead where each hands to the next ---- */
.path { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: end; margin-top: var(--section-gap-s); }
.path h2 { grid-column: 1 / 5; }
.path__steps { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.path__steps li { position: relative; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); counter-increment: step; }
.path__steps li::before { content: counter(step); display: block; margin-bottom: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.path__steps li:not(:last-child)::after { content: ""; position: absolute; top: -5px; right: calc(var(--gap-columns) / -2 - 3px); width: 9px; height: 9px; border-top: 1.5px solid var(--color-accent); border-right: 1.5px solid var(--color-accent); rotate: 45deg; }
.path__steps h3 { font-size: var(--text-xl); line-height: 1.15; }
.path__steps p { margin-top: var(--space-xs); color: var(--color-muted); }

/* ---- build: the organization, today and AI-native ---- */
.band { background: var(--color-paper-2); color: var(--color-ink-2); }
.build { padding-block: var(--section-gap) var(--section-gap-s); }
.build__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.build__head h2 { grid-column: 1 / 7; }
.build__head .lead { grid-column: 8 / -1; max-width: 36ch; }
.org { position: relative; margin: var(--space-2xl) 0 0; }
.org__stage { position: relative; aspect-ratio: 21 / 9; }
.org__ctl { position: absolute; top: var(--space-lg); left: 0; z-index: var(--z-raised); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.org__ctl .btn { min-height: 48px; }
.org__cap { position: absolute; left: 0; right: 0; bottom: var(--space-lg); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md) var(--space-xl); pointer-events: none; }
.cap { max-width: 34ch; color: var(--color-ink-2); font-size: var(--text-sm); }
.cap--native, .still--native { display: none; }
.org:has(#org-native:checked) .cap--today, .org:has(#org-native:checked) .still--today { display: none; }
.org:has(#org-native:checked) .cap--native, .org:has(#org-native:checked) .still--native { display: block; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; }
.specs > div { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.specs dt { color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.specs dd { margin: var(--space-xs) 0 0; color: var(--color-muted); }

/* ---- the frontier organization: five results, numbered ---- */
.frontier { padding-block: var(--section-gap-l) 0; }
.frontier__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.frontier__head h2 { grid-column: 1 / 8; }
.frontier__head .lead { grid-column: 8 / -1; max-width: 36ch; }
.outcomes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; counter-reset: outcome; }
.outcomes li { display: grid; align-content: start; gap: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); counter-increment: outcome; }
.outcomes li::before { content: counter(outcome, decimal-leading-zero); color: var(--color-accent); font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.outcomes h3 { font-size: var(--text-lg); line-height: 1.25; letter-spacing: -0.01em; }
:lang(zh) .outcomes h3 { word-break: normal; line-height: 1.4; letter-spacing: 0; }

/* ---- Kenny ---- */
.kenny { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); padding-block: var(--section-gap-l); }
.kenny h2 { grid-column: 1 / -1; max-width: 20ch; }
.kenny__fig { grid-column: 1 / 7; align-self: end; }
.fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); }
.fig__num { color: var(--color-ink); font-family: var(--font-display); font-size: clamp(4.5rem, 10vw, 9.5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 0.9; }
.fig__unit { color: var(--color-ink-2); font-size: var(--text-xl); }
.fig__line { max-width: 30ch; margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }
:lang(zh) .fig__line { max-width: 24em; }
.roles { grid-column: 8 / -1; align-self: end; margin: 0; padding: 0; list-style: none; }
.roles li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.roles h3 { font-size: var(--text-title); }
.roles p { margin-top: var(--space-2xs); color: var(--color-muted); }

/* ---- engage: the one clear panel on the page holds the way in ---- */
.engage { padding-block: var(--section-gap-l); }
.engage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.engage__head { grid-column: 1 / 6; }
.engage__head .lead { margin-top: var(--space-lg); }
.contact { margin-top: var(--space-2xl); padding: var(--space-xl); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-light) 82%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2), var(--shadow-card); }
.contact h3 { font-size: var(--text-title); }
.contact p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.models { grid-column: 7 / -1; align-self: end; margin: 0; padding: 0; list-style: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
.models li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.models h3 { font-size: var(--text-xl); line-height: 1.15; }
.models p { color: var(--color-ink-2); }

/* ---- footer: the mast ---- */
.mast { padding-block: var(--section-gap-s) var(--space-xl); }
.mast .container { container-type: inline-size; }
.mast__word { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: 24cqi; font-weight: 300; letter-spacing: -0.045em; line-height: 0.85; white-space: nowrap; }
.mast__tag { margin-top: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.mast__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-2xl); margin-top: var(--space-md); }
.mast__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin: 0 auto 0 0; padding: 0; list-style: none; }
.mast__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: none; }
.mast__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.mast__meta { color: var(--color-muted); font-size: var(--text-sm); }

/* ---- narrower screens ---- */
@media (max-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "fig" "method"; }
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-xl); }
  .stack { position: relative; top: auto; display: grid; gap: var(--space-md); height: auto; min-height: 0; grid-template-areas: "stage stage" "cap ctl"; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .stack__stage { position: relative; inset: auto; grid-area: stage; aspect-ratio: 1 / 1; max-height: 78svh; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .stack__stage .still { inset: 0; width: 100%; height: 100%; }
  .stack__cap { position: static; grid-area: cap; }
  .stack__ctl { position: static; grid-area: ctl; }
  .method { padding-block: var(--section-gap-s) 0; }
  .step { min-height: 0; padding-block: var(--space-xl); }
  .index__row { grid-template-columns: minmax(0, 1fr) minmax(0, 11fr); row-gap: var(--space-xs); }
  .index__row > * { grid-column: 2; }
  .index__row::before { grid-row: 1; }
  .build__head h2, .build__head .lead, .kenny__fig, .roles, .engage__head, .models, .path h2, .path__steps, .frontier__head h2, .frontier__head .lead { grid-column: 1 / -1; }
  .path { row-gap: var(--space-xl); }
  /* five results read down the page, each number beside its line */
  .outcomes { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .outcomes li { grid-template-columns: 3.5rem minmax(0, 1fr); align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); }
  .outcomes li::before { font-size: var(--text-xl); }
  .org { display: grid; gap: var(--space-md); grid-template-areas: "ctl" "stage" "cap"; }
  .org__stage { grid-area: stage; aspect-ratio: 4 / 3; }
  .org__ctl { position: static; grid-area: ctl; }
  .org__cap { position: static; grid-area: cap; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__bar { gap: var(--space-md); }
}
/* five links, the globe and the contact button stop fitting the bar a little above phone width: the menu takes over */
@media (max-width: 46rem) {
  .nav__links, .nav__bar > .lang { display: none; }
  .nav__bar { gap: var(--space-xs); }
  .nav__menu { display: inline-flex; }
}
@media (max-width: 40rem) {
  :root { --nav-h: 68px; }
  .nav__bar { min-height: 56px; padding-left: var(--space-md); }
  .hero { padding-block: var(--space-xl); }
  .index__row { grid-template-columns: minmax(0, 1fr); }
  .index__row > *, .index__row::before { grid-column: 1; }
  .org__stage { aspect-ratio: 1 / 1; }
  .specs, .models li, .path__steps { grid-template-columns: minmax(0, 1fr); }
  .path__steps li:not(:last-child)::after { display: none; }
  .models li { row-gap: var(--space-xs); }
  .contact { padding: var(--space-lg); }
  /* keys never leave one item alone on a row: four make two pairs, three long Chinese ones a column */
  .org__cap .keys { display: grid; grid-template-columns: repeat(2, max-content); }
  :lang(zh) .stack__cap .keys { flex-direction: column; }
}
@media (min-width: 46.0625rem) { .menu:popover-open { display: none; } }
@media (max-width: 22.5rem) {
  .nav__bar { padding-left: var(--space-sm); }
  .wordmark { font-size: var(--text-md); }
  .nav__cta { display: none; }
  .menu__contact { display: block; }
}

/* ---- reduced motion: the diagrams hold still (the script draws one frame of the light), nothing settles ---- */
@media (prefers-reduced-motion: reduce) {
  .settle { animation: none; }
  .tag, .step, .step h3, .step p, .btn, .seg label, .langs a, .menu, .menu__links a, .nav::before, .lang__btn, .lang__chev, .lang__menu, .lang__menu a, .more { transition: none; }
  [data-loop-toggle] { display: none; }
}
