/* Hallmark · shape: one field of pixels that regroups per section (horse, dashboard, game table, sprite sheet, chain, paper plane), v5 of the v3 Pixel Ember concept under the official baxu-brand guideline · genre: atmospheric · theme: custom · job: hire (request a quote) · idea: "Everything BAXU makes is built from small pieces that connect, so one field of pixels becomes each thing it builds" · vibe: "brand gradient, white pixels, ink ground, plain sans"
 * paper: two themes from the baxu-brand table only, on :root[data-theme], following the OS on first visit with a header toggle: dark = Night (#0B2545 ground top to bottom, the gradient as light only: 180deg heading rails and the paper-plane plate), light = Dawn (the 135deg gradient cover with the white 50px dot grid at 0.22, then #D6E6FA, #E8F0FA, #F5F8FC, #FFFFFF down the page) · accent: #0D5AA3 brand-deep on light grounds, #9FD0FF on ink, #FFFFFF on the gradient; #1D90FF only for marks · display and body: Be Vietnam Pro (brand: the only face; ja falls back to Noto Sans JP for kana and kanji) · hero: copy left, the BAXU horse (decoration) rebuilt from WebGL pixels right, pixel colours read from the ground under each stage, pointer is wind · nav: sticky bar that frosts in its theme's own ground: the BAXU wordmark (guideline SVG, no horse), four section links whose pixel lights on scroll, a compact language menu, a sun/moon theme toggle, quote button; phones get a menu sheet with the toggle · footer: the closing screen: a brand column (wordmark, tagline, blurb, small quote button) beside Services, Company and Contact columns, a large quiet wordmark signature, then the copyright with the registered name, tax ID, founding date, Privacy, Terms, Cookie settings and language · imagery: none; the product built (WebGL pixels sampled from the guideline horse path; six pixel pictures for the work types) · signature: the BAXU horse as a field of pixels that regroups into every service as you scroll
 * axes: light and dark themes (OS-following)/grotesk-heavy/chromatic-blue · posture: brand palette only (baxu-brand guideline outranks Hallmark defaults); few ground changes, every band paints under the one pixel field; white copy only in the deep half of any gradient · surface: absolute (wordmark and on-dark text, both brand #FFFFFF) · contrast: pass (rendered audit, both themes, 1366 and 390) · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: V, layout is the owner's chosen Pixel Ember structure; v7 groups each area into one card (figure, title, line, items) for readability */
/* Hallmark · dismissed 58 · every window over 80 words (at most 93) is a list read item by item: the capability rows, the six work types and the quote form the brief requires; page total carries the six capability areas, six work types, FAQ and form the brief asks for */
/* motion note (Floor 27 is met, no waiver needed) · scene.js: phones, touch screens and prefers-reduced-motion run startCrisp (pixels baked once at device resolution; under reduced motion nothing animates, elsewhere only on-screen figures animate, on the compositor); the desktop WebGL loop stops on visibilitychange when the tab is hidden and stops drawing while no stage is on screen · the owner removed the visible pause button; open risk WCAG 2.2.2 (pause for auto-moving content over 5s) */
/* Hallmark · waive 81 · .figure--q > .plate is the dark theme's gradient ground for stage 5; scene.js draws the paper plane on the fixed WebGL field over it, which a static render does not capture · the plate is a ground, not an empty picture */
/* Hallmark · waive 79 · privacy.html and terms.html open on a title band (banner, h1) and the document starts below it · a legal document is read top to bottom; its first screen is the title and the opening clauses, not a hero */
/* owner override of Hallmark rule 19 (a Floor rule, not waivable in sloplint): footer.copyright renders {year} as 2025–<this year> (site.js and build.mjs); the owner asked for the founding-year range with an en dash, the standard notation for a range of years */
/* Hallmark · note 58 · privacy.html and terms.html (legal-pages generator) are long-form legal documents: their windows carry about 300 words, over the 95-word screen budget. The owner accepted this exception on 2026-11-23; the home page stays within the budget */
/* Hallmark · dismissed 42 · the owner specified this footer: a brand column, Services, Company and Contact, then the legal row; it is the closing screen with a wordmark signature */
/* Hallmark · dismissed 19 · the copyright line is the owner's chosen wording (copywriter's footer.copyright) */
/* Hallmark · dismissed 25 · .work p (40ch) and .steps p (30ch) are one-sentence captions under titles, not prose */
/* Hallmark · dismissed F4 · .lang__menu button[aria-checked] is a selected menu item with a lit pixel, no fill; the page has one filled button recipe (.btn) */
/* Hallmark · answered F19 · four weights are the baxu-brand guideline's own roles: titles 800, labels 700, body 400 and 500, the tagline 500 */
/* Hallmark · answered F7 · the six inputs, selects and the textarea share one field recipe on purpose: one form, one kind of box */
/* Hallmark · note 67 · .brand-tagline is the guideline's lockup line under the wordmark (weight 500, letter-spacing 2px, #DCEBFF), part of the brand mark, not a label */
/* Hallmark · waive 7b · --color-logo and --on-dark are the brand's own #FFFFFF from the baxu-brand guideline (wordmark fill and on-dark text) · the guideline fixes the wordmark white on blue and dark grounds */
:root {
  /* the baxu-brand palette, verbatim; nothing outside it */
  --brand-deep: #0D5AA3; --brand-bright: #1D90FF; --brand-mid: #1670CC; --brand-ink: #0B2545;
  --brand-body: #3B4A60; --brand-body-2: #4A5A70; --brand-muted: #6B7A90;
  --brand-bg: #F5F8FC; --brand-bg-alt: #E8F0FA; --brand-tint: #EAF1FA; --brand-tint-2: #D6E6FA; --brand-border: #D9E3EF;
  --on-dark: #FFFFFF; --on-dark-2: #DCEBFF; --on-dark-3: #C9D8EE; --on-dark-4: #9FD0FF;
  --brand-gradient: linear-gradient(135deg, #0D5AA3 0%, #1D90FF 100%);
  --brand-gradient-v: linear-gradient(180deg, #0D5AA3 0%, #1D90FF 100%);
  --alert: #FF9B8F;

  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem;
  --text-display: clamp(2.5rem, 4vw + 1rem, 4.75rem);
  --text-section: clamp(2rem, 2.3vw + 1rem, 3.25rem); --text-area: clamp(1.625rem, 1.3vw + 1rem, 2.375rem);
  --text-title: clamp(1.1875rem, 0.5vw + 0.95rem, 1.375rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.3125rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 128px; --section-gap: 168px; --section-gap-l: 208px; --sec-pad: 168px;
  --bar-h: 68px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky-nav: 300; --z-toast: 500;
  --font-display: "Be Vietnam Pro", Arial, sans-serif; --font-body: "Be Vietnam Pro", Arial, sans-serif; --font-outlier: var(--font-body);
  --font-native-ja: "Be Vietnam Pro", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Arial, sans-serif;
  --weight-display: 800; --weight-title: 700; --weight-label: 700; --lh-display: 1.06; --lh-head: 1.1; --lh-body: 1.6;
  --measure-h1: 12ch; --measure-h2: 17ch;
  --radius-card: 2px; --radius-input: 2px; --radius-panel: 8px; --rule-hair: 1px;
  --tracking-display: -0.025em;
}
/* ===== v6 colour system: two themes (owner's pick: B Night = dark, C Dawn = light) =====
   Each theme maps every band (header, hero, what, work, how, faq, quote, footer) to one ground.
   A ground is a bundle of roles; components read only roles. Pixel colours (WebGL field and work motifs) are roles too,
   so the field re-colours itself from the ground its stage sits on.
   dark "Night" one ink ground top to bottom, no band changes; the gradient only as light: the 180deg rail beside each
              heading and the plate under the paper plane.
   light "Dawn"  the 135deg gradient cover, then the page brightens one guideline tint per band down to white. */

/* light roles: paper, bg-alt, tint and white grounds */
:root[data-theme="light"],
:root[data-theme="light"] :is(#what, #work, #how, #faq, #quote, .foot, .top.is-stuck, .top.is-open) {
  --ground: var(--brand-bg); --grid: 0;
  --color-paper: var(--brand-bg);
  --color-ink: var(--brand-ink); --color-ink-2: var(--brand-body); --color-muted: var(--brand-body-2);
  --color-rule: var(--brand-muted); --color-rule-soft: var(--brand-border);
  --color-field: var(--brand-muted); --color-field-bg: var(--on-dark);
  --color-accent: var(--brand-deep); --color-mark: var(--brand-bright); --color-focus: var(--brand-deep);
  --color-btn: var(--brand-deep); --color-btn-hover: var(--brand-mid); --color-btn-ink: var(--on-dark);
  --color-icon: var(--brand-deep); --color-logo: var(--brand-deep); --color-tagline: var(--brand-deep);
  --color-paper-2: var(--brand-bg-alt); --color-paper-3: var(--brand-tint-2);
  --color-surface: var(--on-dark); --color-panel: var(--brand-bg-alt);
  --color-card: var(--brand-bg); --color-card-line: var(--brand-border);
  --color-error: var(--brand-ink); --color-error-line: var(--alert);
  --color-px-ice: var(--brand-deep); --color-px-sky: var(--brand-bright); --color-px-blue: var(--brand-mid); --color-px-dim: var(--on-dark-4); --color-px-spark: var(--brand-bright);
  --px-alpha: 0.92;
}
/* dark roles: the ink ground (and the base the gradient ground builds on) */
:root[data-theme="dark"],
:root[data-theme="dark"] :is(.hero, #what, #work, #how, #faq, #quote, .foot, .top),
:root[data-theme="light"] .top:not(.is-stuck):not(.is-open),
:root[data-theme="light"] .hero,
:root[data-theme="dark"] .figure--q {
  --ground: var(--brand-ink); --grid: 0;
  --color-paper: var(--brand-ink);
  --color-ink: var(--on-dark); --color-ink-2: var(--on-dark-2); --color-muted: var(--on-dark-3);
  --color-rule: var(--brand-mid); --color-rule-soft: var(--brand-deep);
  --color-field: var(--brand-muted); --color-field-bg: var(--brand-ink);
  --color-accent: var(--on-dark-4); --color-mark: var(--brand-bright); --color-focus: var(--on-dark-4);
  --color-btn: var(--on-dark); --color-btn-hover: var(--on-dark-2); --color-btn-ink: var(--brand-ink);
  --color-icon: var(--on-dark-4); --color-logo: var(--on-dark); --color-tagline: var(--on-dark-2);
  --color-paper-2: var(--brand-deep); --color-paper-3: var(--brand-mid);
  --color-surface: var(--brand-ink); --color-panel: var(--brand-deep);
  /* a card on the ink ground: the deep brand blue, thinly, with a deep edge */
  --color-card: color-mix(in srgb, var(--brand-deep) 22%, transparent); --color-card-line: color-mix(in srgb, var(--brand-deep) 85%, transparent);
  --color-error: var(--alert); --color-error-line: var(--alert);
  --color-px-ice: var(--on-dark-4); --color-px-sky: var(--brand-bright); --color-px-blue: var(--on-dark); --color-px-dim: var(--brand-deep); --color-px-spark: var(--on-dark);
  --px-alpha: 0.88;
}
/* the gradient ground: everything that reads is white. White holds 7:1 on the deep corner and 3.3:1 on the bright one,
   so body copy only ever sits in the deep half of a gradient band; the bright half carries pixels and display type. */
:root[data-theme="light"] .hero,
:root[data-theme="light"] .top:not(.is-stuck):not(.is-open),
:root[data-theme="dark"] .figure--q {
  --ground: var(--brand-gradient); --grid: 0.22;
  --color-ink-2: var(--on-dark); --color-muted: var(--on-dark);
  --color-rule: var(--on-dark); --color-rule-soft: var(--on-dark-3);
  --color-accent: var(--on-dark); --color-mark: var(--on-dark); --color-focus: var(--on-dark); --color-icon: var(--on-dark);
  --color-px-ice: var(--on-dark); --color-px-sky: var(--on-dark-2); --color-px-blue: var(--on-dark); --color-px-spark: var(--on-dark);
  --px-alpha: 0.9;
}
/* which light tone each band takes */
:root[data-theme="light"], :root[data-theme="light"] :is(#quote, .foot, .top.is-stuck, .top.is-open) { --ground: var(--on-dark); --color-paper: var(--on-dark); --color-surface: var(--brand-bg); }
:root[data-theme="light"] #what { --ground: var(--brand-tint-2); --color-paper: var(--brand-tint-2); --color-panel: var(--brand-bg-alt); --color-card: var(--on-dark); --color-card-line: var(--brand-border); --color-rule-soft: var(--on-dark); --color-px-dim: var(--brand-bg-alt); }
:root[data-theme="light"] #work { --ground: var(--brand-bg-alt); --color-paper: var(--brand-bg-alt); --color-card: var(--on-dark); }
/* the header bar once the page slides under it: the theme's own ground, frosted */
:root[data-theme="dark"] .top { --color-bar: color-mix(in srgb, var(--brand-ink) 90%, transparent); }
:root[data-theme="light"] .top { --color-bar: color-mix(in srgb, var(--on-dark) 92%, transparent); }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
:root { --color-scrim: color-mix(in srgb, var(--brand-ink) 78%, transparent); --dots: radial-gradient(circle at 25px 25px, var(--on-dark) 2px, transparent 2.6px); }

/* grounds paint under the pixel field (z -2, the field is -1), so one fixed canvas draws on every band */
.gr, .top { color: var(--color-ink); }
.gr { position: relative; }
.gr::before, .gr::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.gr::before { background: var(--ground); }
.gr::after { background-image: var(--dots); background-size: 50px 50px; opacity: var(--grid); }
.hero.gr::before { top: calc(-1 * (var(--bar-h) + env(safe-area-inset-top))); }
/* the dot grid starts below the bar, so nav words never sit on a dot */
.hero.gr::after { top: 0; }

/* the plate (dark theme): a contained piece of the brand gradient with its dot grid, under the paper plane */
.plate { display: none; }
:root[data-theme="dark"] .figure--q { position: relative; }
:root[data-theme="dark"] .figure--q > .plate { display: block; position: absolute; z-index: -2; pointer-events: none; inset: 0; background: var(--ground); border-radius: var(--radius-card); }
:root[data-theme="dark"] .figure--q > .plate::after { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 50px 50px; opacity: var(--grid); }
/* a sticky column is its own stacking context and would lift the plate over the field: B keeps the column in flow */
:root[data-theme="dark"] .q__side { position: relative; top: auto; }

/* B: the guideline's vertical gradient bar, small, beside each section heading */
:root[data-theme="dark"] :is(.sec h2, .more__title) { position: relative; }
:root[data-theme="dark"] :is(.sec h2, .more__title)::before { content: ""; position: absolute; left: calc(-1 * var(--space-lg)); top: 0.12em; bottom: 0.12em; width: 4px; background: var(--brand-gradient-v); }
/* Be Vietnam Pro carries Vietnamese natively; Japanese takes kana and kanji from Noto Sans JP */
:root:lang(vi) { --lh-display: 1.14; --lh-head: 1.18; --measure-h1: 14ch; --measure-h2: 19ch; }
:root:lang(ja) { --font-display: "Be Vietnam Pro", "Noto Sans JP", Arial, sans-serif; --font-body: "Be Vietnam Pro", "Noto Sans JP", Arial, sans-serif; --tracking-display: 0; --lh-display: 1.3; --lh-head: 1.32; --lh-body: 1.85; --measure-h1: 10em; --measure-h2: 14em; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--bar-h); scroll-behavior: smooth; }
body { margin: 0; font-variant-numeric: tabular-nums; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
:lang(ja) body, body:lang(ja) { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
::selection { background: var(--brand-bright); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-title); font-synthesis: none; overflow-wrap: break-word; min-width: 0; }
h1, h2, .area__title, .more__title { font-weight: var(--weight-display); }
h1, h2 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); box-sizing: border-box; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { fill: var(--color-logo); color: var(--color-logo); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }

/* while a non-English first visit swaps its words in, nothing English flashes (scripting only; a timer lifts it) */
.js.i18n-pending .top, .js.i18n-pending main, .js.i18n-pending .foot { visibility: hidden; }

/* the field: one fixed canvas of pixels behind the whole page */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; }
.gl .field { display: block; }
/* phones: the field renders at a whole fraction of the device ratio; nearest-neighbour upscaling keeps each square hard */
.gl-phone .field { image-rendering: crisp-edges; image-rendering: pixelated; }
main, .foot { position: relative; }

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

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-btn); border-radius: var(--radius-input); background: var(--color-btn); color: var(--color-btn-ink); font: var(--weight-label) var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-btn-hover); border-color: var(--color-btn-hover); }
.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-quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn-quiet:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.btn-quiet:active { background: var(--color-paper-3); }
.btn-quiet:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn-quiet:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-quiet--lg { min-height: 48px; padding: 0 var(--space-lg); font-size: var(--text-md); border-color: var(--color-muted); }
html:not(.js) [data-motion], .still [data-motion] { display: none; }
.textlink { color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-mark); text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.textlink:hover { text-decoration-color: var(--color-ink); }
.textlink:active { color: var(--color-ink-2); }
.textlink:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-ink-2); font: 500 var(--text-sm)/1.2 var(--font-body); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; cursor: pointer; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.linkbtn:hover { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.linkbtn:active { color: var(--color-ink-2); }
.linkbtn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.linkbtn:disabled { opacity: 0.55; cursor: not-allowed; }

/* the pixel: one small square, the page's only ornament */
.px { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: var(--space-xs); background: var(--color-rule); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }

/* ---------- header: sticky, frosts once the page moves under it ---------- */
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-top: env(safe-area-inset-top); background: transparent; box-shadow: inset 0 -1px 0 transparent; transition: background-color var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out), backdrop-filter var(--dur-long) var(--ease-out), -webkit-backdrop-filter var(--dur-long) var(--ease-out); }
.top.is-stuck, .top.is-open { background: var(--color-bar); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); box-shadow: inset 0 -1px 0 var(--color-rule-soft); }
.top__in { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; border-radius: var(--radius-input); transition: opacity var(--dur-short) var(--ease-out); }
.brand:hover { opacity: 0.88; }
.brand:active { opacity: 0.75; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.logo { width: 96px; height: auto; }
/* the lockup (horse in flame + BAXU): sized by height, the width follows the 680:265 crop */
.logo--lockup { width: auto; height: 38px; aspect-ratio: 680 / 265; }
.logo__tag { fill: var(--color-tagline); }
/* Pixel Ember: the flame's pixel square glows softly on a slow loop (the symbol's own group, so every mark follows it) */
@keyframes logo-px { 0%, 100% { opacity: 1; } 45% { opacity: 0.35; } 60% { opacity: 0.9; } }
.logo__px { animation: logo-px 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .logo__px { animation: none; } }
.spy { margin-left: auto; min-width: 0; overflow: hidden; }
.spy__list { display: flex; gap: var(--space-lg); }
.spy a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.spy a:hover, .spy a.is-on { color: var(--color-ink); }
.spy a:hover .px { background: var(--color-muted); }
.spy a.is-on .px { background: var(--color-mark); transform: rotate(45deg); }
.spy a:active { color: var(--color-ink-2); }
.spy a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.top__tools { display: flex; align-items: center; gap: var(--space-sm); flex: none; }
.btn--top { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--top .short { display: none; }

/* language: a small button showing the code, opening a short menu */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; min-width: 44px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: transparent; color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.lang__btn:hover { border-color: var(--color-muted); background: var(--color-paper-2); }
.lang__btn:active { background: var(--color-paper-3); }
.lang__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lang__btn:disabled { opacity: 0.55; cursor: not-allowed; }
.lang__btn[aria-expanded="true"] { border-color: var(--color-ink-2); background: var(--color-paper-2); }
.lang__chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: translateY(1px) rotate(225deg); }
.lang__menu { position: absolute; top: calc(100% + var(--space-xs)); right: 0; left: auto; box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-ink) 40%, transparent); z-index: var(--z-dropdown); min-width: 11rem; padding: var(--space-2xs); background: var(--color-paper-2); border: 0; border-radius: var(--radius-card); }
.lang--up .lang__menu { top: auto; bottom: calc(100% + var(--space-xs)); left: 0; right: auto; }
.lang__menu button { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 44px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1.2 var(--font-body); text-align: left; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.lang__menu button::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--color-rule); }
.lang__menu button[aria-checked="true"] { color: var(--color-ink); }
.lang__menu button[aria-checked="true"]::before { background: var(--color-accent); }
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--color-paper-3); color: var(--color-ink); }
.lang__menu button:active { background: var(--color-paper); }
.lang__menu button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.lang__menu button:disabled { opacity: 0.55; cursor: not-allowed; }
.lang__menu button[lang="ja"] { font-family: var(--font-native-ja); }

/* theme toggle: a line icon (moon offers dark, sun offers light), same box as the language button */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.theme-btn:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.theme-btn:active { background: var(--color-paper-3); }
.theme-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.theme-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.theme-btn__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .theme-btn__icon--sun, :root[data-theme="dark"] .theme-btn__icon--moon { display: none; }
.theme-btn--sheet { width: 100%; justify-content: flex-start; min-height: 56px; margin-top: var(--space-sm); padding: 0 var(--space-md); font: 500 var(--text-md)/1.2 var(--font-body); }
html:not(.js) .theme-btn { display: none; }

/* phones: a menu button and a sheet with the section links */
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.menu-btn:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.menu-btn:active { background: var(--color-paper-3); }
.menu-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.menu-btn__open, .menu-btn__close { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-btn[aria-expanded="true"] .menu-btn__open, .menu-btn[aria-expanded="false"] .menu-btn__close { display: none; }
.menu-btn__bars { position: relative; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; transition: transform var(--dur-short) var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: rotate(90deg); }
.sheet { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - var(--bar-h)); overflow-y: auto; padding-block: var(--space-xs) var(--space-lg); background: var(--color-paper); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--color-rule-soft); border-bottom: 1px solid var(--color-rule-soft); }
.sheet__list { display: grid; }
.sheet__list a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--color-rule-soft); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.sheet__list a:hover { color: var(--color-ink-2); }
.sheet__list a:active { color: var(--color-muted); }
.sheet__list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
html:not(.js) .lang, html:not(.js) .menu-btn, html:not(.js) .sheet { display: none; }

/* ---------- hero: the brand gradient with its white dot grid, under the field ---------- */
.hero__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; min-height: calc(100svh - var(--bar-h)); padding-block: var(--space-xl) var(--space-2xl); }
.hero__copy { grid-column: 1 / span 7; display: grid; justify-items: start; }
/* hero type: a display set to sit on two lines at laptop widths, tighter tracking, a reading-weight lede on a 44ch measure,
   and a clear rhythm: headline, 24 lede, 40 actions, 20 a quiet note */
.hero h1 { font-size: clamp(2.25rem, 2.25vw + 1rem, 3.625rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 22ch; font-weight: var(--weight-display); }
:root:lang(vi) .hero h1 { line-height: 1.12; max-width: 19ch; }
:lang(ja) .hero h1 { font-size: clamp(2.125rem, 3.1vw + 1rem, 3.875rem); }
.lede { margin-top: var(--space-lg); font-size: clamp(1.0625rem, 0.3vw + 0.95rem, 1.25rem); font-weight: 400; line-height: 1.6; letter-spacing: 0.002em; color: var(--color-ink-2); max-width: 44ch; }
:lang(ja) .lede { max-width: 26em; }
.hero__note { margin-top: var(--space-md); font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-top: var(--space-xl); }
.figure { margin: 0; min-width: 0; }
.figure--hero { grid-column: 8 / span 5; }
.stage { position: relative; width: 100%; }
.stage--hero { height: min(600px, calc(100svh - 220px)); min-height: 360px; }
.stage__mark { width: 100%; height: 100%; fill: var(--color-logo); opacity: 0.16; }
.gl .stage__mark, .flat .stage__mark { visibility: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-pad); }
.sec h2 { font-size: var(--text-section); line-height: var(--lh-head); letter-spacing: var(--tracking-display); max-width: var(--measure-h2); }
.intro { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 44ch; }
:lang(ja) .intro { max-width: 30em; }
h3 { font-size: var(--text-title); line-height: 1.22; }
.sec__head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.sec__head--split h2 { grid-column: 1 / span 6; }
.sec__head--split .intro { grid-column: 8 / span 5; margin-top: 0; }

/* ---------- panels: one card per area, the page's grouping device ----------
   Each area reads as one object: figure, title, one line, then its items in a compact grid (desktop) or chips (phones).
   The fill paints on ::before at the grounds' depth (z -2), under the pixel field, so the WebGL figures still show. */
.panel { position: relative; border: 1px solid var(--color-card-line); border-radius: var(--radius-panel); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--color-card); pointer-events: none; }
.screen + .screen { margin-top: var(--space-xl); }
.screen--what > .sec__head { margin-bottom: var(--space-xl); }
.area { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; padding: var(--space-xl) var(--space-2xl); }
.area__fig { grid-column: 1 / span 6; }
.area__copy { grid-column: 7 / span 6; }
.area--gm .area__fig { grid-column: 7 / span 6; grid-row: 1; }
.area--gm .area__copy { grid-column: 1 / span 6; grid-row: 1; }
.stage--sw { height: 340px; }
.stage--gm { height: 360px; }
.stage--ai { height: 300px; }
.area__title { font-size: var(--text-area); line-height: 1.1; letter-spacing: var(--tracking-display); max-width: 18ch; text-wrap: balance; }
:lang(ja) .area__title { max-width: 12em; line-height: 1.3; }
.area__lead { margin-top: var(--space-sm); font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 52ch; }
:lang(ja) .area__lead { max-width: 30em; }
/* items: a compact two-column grid, each led by the brand pixel */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-lg); margin-top: var(--space-lg); }
.items li { display: flex; gap: var(--space-sm); font-size: var(--text-md); line-height: 1.45; color: var(--color-ink-2); }
.items li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.items li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.55em; background: var(--color-mark); }
/* AI: the worked example closes the panel, set off by a rule, title beside text */
.example { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-card-line); }
.example__title { grid-column: 1 / span 4; font-size: var(--text-md); line-height: 1.35; font-weight: var(--weight-label); }
.example__text { grid-column: 5 / -1; color: var(--color-ink-2); max-width: 66ch; }
/* around the build: five small cards, 3 + 2, each opens to its list */
.more__title { font-size: var(--text-area); line-height: 1.1; letter-spacing: var(--tracking-display); max-width: 22ch; text-wrap: balance; }
.more__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.more__item { grid-column: span 2; padding: var(--space-lg); }
.more__item:nth-last-child(-n + 2) { grid-column: span 3; }
.more__item h4 { font-size: var(--text-title); line-height: 1.22; text-wrap: balance; }
.more__item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-md); align-items: start; cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.more__item summary::-webkit-details-marker { display: none; }
.more__item summary:hover h4 { color: var(--color-ink-2); }
.more__item summary:active h4 { color: var(--color-muted); }
.more__item summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.more__item summary h4 { grid-column: 1; grid-row: 1; }
.more__item summary .more__lead { grid-column: 1; grid-row: 2; }
.more__item summary .faq__mark { grid-column: 2; grid-row: 1; margin-top: 0.35em; }
.more__item[open] .faq__mark::after { transform: rotate(0deg); }
.more__item:not([open]) > ul { display: none; }
.node { display: none; }
.more__lead { display: block; margin-top: var(--space-2xs); color: var(--color-ink-2); max-width: 40ch; }
.plain { display: grid; gap: var(--space-2xs); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-card-line); color: var(--color-ink-2); font-size: var(--text-sm); }
.plain li { display: flex; gap: var(--space-xs); }
.plain li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.6em; background: var(--color-mark); }

/* work: pixel pictures of each project type */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4xl) var(--gap-columns); margin-top: var(--space-2xl); }
.work { grid-column: span 6; min-width: 0; }
/* five delivered project types in pairs (7+5, 5+7) and a closing wide card: two cards of words per row keeps each screen near 80 words */
.work:nth-child(1), .work:nth-child(4) { grid-column: span 7; }
.work:nth-child(2), .work:nth-child(3) { grid-column: span 5; }
.work:nth-child(5) { grid-column: 1 / -1; }
.work__pic { height: clamp(13.5rem, 21vw, 22rem); padding: var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-rule-soft); border-radius: var(--radius-card); }
.motif { width: 100%; height: 100%; }
.motif .p-ice { fill: var(--color-px-ice); }
.motif .p-sky { fill: var(--color-px-sky); }
.motif .p-blue { fill: var(--color-px-blue); }
.motif .p-dim { fill: var(--color-px-dim); }
.work h3 { margin-top: var(--space-lg); text-wrap: balance; }
.work p { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 40ch; }
.folio { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-4xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule-soft); }
.folio__note { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 50ch; }

/* how we work: the chain drawn above four step cards, then the promises as cards, then the four ways to work */
.sec--how h2 { max-width: 18ch; }
.how__band { display: grid; align-content: center; }
.how__band + .how__band { margin-top: var(--space-3xl); }
.figure--how { margin-top: var(--space-lg); }
.stage--how { height: 150px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); counter-reset: step; }
.steps li { counter-increment: step; padding: var(--space-lg); }
.steps__n::before { content: counter(step); display: block; margin-bottom: var(--space-xs); font: var(--weight-display) var(--text-xl)/1 var(--font-display); color: var(--color-accent); }
.steps p { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.facts { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.facts__title { grid-column: 1 / span 3; font-size: var(--text-area); line-height: 1.1; letter-spacing: var(--tracking-display); max-width: 12ch; }
:lang(ja) .facts__title { max-width: 9em; }
.facts__list { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.facts__list .panel { padding: var(--space-lg); }
.facts__list dt { font-weight: var(--weight-label); font-size: var(--text-title); line-height: 1.25; }
.facts__list dd { margin-top: var(--space-2xs); color: var(--color-ink-2); max-width: 44ch; }
.models { display: grid; padding: var(--space-xl); background: var(--color-panel); border-radius: var(--radius-panel); }
.models__title { font-size: var(--text-area); line-height: 1.1; letter-spacing: var(--tracking-display); }
:lang(ja) .models__title { max-width: 12em; }
.models__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-xl); }
.models__list > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-rule-soft); }
.models__list > div:first-child { padding-left: 0; border-left: 0; }
.models__list dt { font-weight: var(--weight-label); font-size: var(--text-title); line-height: 1.25; }
.models__list dd { margin-top: var(--space-2xs); color: var(--color-ink-2); max-width: 30ch; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.faq h2 { grid-column: 1 / span 4; }
/* each question is its own tile: clear edges, small gaps, the answer opens inside it */
.faq__list { grid-column: 6 / span 7; display: grid; gap: var(--space-xs); }
.faq details { padding-inline: var(--space-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 60px; padding-block: var(--space-sm); font-family: var(--font-display); font-weight: var(--weight-title); font-size: var(--text-md); line-height: 1.3; cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary:active { color: var(--color-muted); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details[open] .faq__mark::after { transform: rotate(0deg); }
.faq details:not([open]) > p { display: none; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 62ch; }
.faq__mark { position: relative; flex: none; width: 14px; height: 14px; }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--color-icon); transition: transform var(--dur-short) var(--ease-out); }
.faq__mark::after { transform: rotate(90deg); }

/* quote */
.q { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.q__side { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + var(--space-xl)); }
.figure--q { margin-top: var(--space-xl); }
.stage--q { height: 320px; }
.q__mail { display: inline-block; }
.submit .q__mail { flex: none; }
.quote { grid-column: 7 / span 6; display: grid; gap: var(--space-lg); }
@media (min-width: 60.0625rem) { .quote { gap: var(--space-2xl); } .row2 { row-gap: var(--space-2xl); } .quote > .checks { margin-top: var(--space-3xl); } .quote .field-item textarea { min-height: 280px; } }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.field-item { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.field-item label, .chips legend { font-size: var(--text-sm); font-weight: var(--weight-label); color: var(--color-ink-2); }
.quote input[type="text"], .quote input[type="email"], .quote select, .quote textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-field); border-radius: var(--radius-input); background: var(--color-field-bg); color: var(--color-ink); outline: 2px solid transparent; outline-offset: 1px; transition: border-color var(--dur-short) var(--ease-out); }
.q__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.q__turnstile:empty { display: none; }
.quote :is(input, select, textarea) { scroll-margin-top: calc(var(--bar-h) + var(--space-lg)); }
.quote textarea { resize: vertical; min-height: 220px; line-height: 1.5; }
.quote select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-2) 50%), linear-gradient(135deg, var(--color-ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--space-2xl); cursor: pointer; }
.quote select option { background: var(--color-field-bg); color: var(--color-ink); }
.quote input:hover, .quote select:hover, .quote textarea:hover { border-color: var(--color-ink-2); }
.quote input:focus-visible, .quote select:focus-visible, .quote textarea:focus-visible { outline-color: var(--color-focus); }
.quote input:disabled, .quote select:disabled, .quote textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.quote [aria-invalid="true"] { border-color: var(--color-error-line); box-shadow: inset 0 0 0 1px var(--color-error-line); }
.hint { font-size: var(--text-sm); color: var(--color-muted); }
.err { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-error); font-weight: 600; }
.err::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--color-error-line); }
.err:empty { display: none; }
.chips { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: var(--space-2xs); }
.chips .hint { margin-bottom: var(--space-sm); }
.chips__opts { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chips label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-input); color: var(--color-ink-2); font-size: var(--text-sm); 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); }
.chips label:hover { border-color: var(--color-muted); color: var(--color-ink); }
.chips input:checked + label { border-color: var(--color-ink); color: var(--color-ink); background: var(--color-field-bg); box-shadow: inset 0 0 0 1px var(--color-ink); }
.chips input:checked + label .px { background: var(--color-mark); transform: rotate(45deg); }
.chips input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chips input:disabled + label { opacity: 0.55; cursor: not-allowed; }
.chips[aria-invalid="true"] label { border-color: var(--color-error-line); }
.checks { display: grid; gap: var(--space-sm); }
.check { display: flex; align-items: flex-start; gap: var(--space-sm); }
.check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 24px; height: 24px; margin: 0; margin-top: var(--space-3xs); border: 1px solid var(--color-field); border-radius: var(--radius-input); background: var(--color-field-bg); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.check input::before { content: ""; width: 10px; height: 10px; background: var(--color-ink); transform: scale(0); transition: transform var(--dur-micro) var(--ease-out); }
.check input:checked { border-color: var(--color-ink); }
.check input:checked::before { transform: scale(1); }
.check input:hover { border-color: var(--color-ink-2); }
.check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.check input:disabled { opacity: 0.55; cursor: not-allowed; }
.check input[aria-invalid="true"] { border-color: var(--color-error-line); box-shadow: inset 0 0 0 1px var(--color-error-line); }
.check label { padding-top: var(--space-3xs); color: var(--color-ink-2); cursor: pointer; }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); padding-top: var(--space-xs); }
.submit__note { flex: 1 1 14rem; font-size: var(--text-sm); color: var(--color-muted); max-width: 34ch; }
.status { flex: 1 1 100%; min-height: 1.5em; font-size: var(--text-sm); color: var(--color-ink-2); max-width: 46ch; }
.status strong { display: block; color: var(--color-ink); font-weight: var(--weight-label); }
.status a { color: var(--color-ink); }

/* ---------- footer: the closing screen. Brand, three columns, a legal row and the copyright ---------- */
.foot { margin-top: 0; padding-block: var(--space-4xl) var(--space-xl); box-shadow: inset 0 1px 0 var(--color-rule-soft); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.foot__brand { grid-column: span 3; display: grid; gap: var(--space-md); justify-items: start; color: var(--color-ink-2); }
.foot__blurb { max-width: 36ch; }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); margin-top: var(--space-xs); }
.foot__col { grid-column: span 3; min-width: 0; }
.foot__h { font-size: var(--text-sm); line-height: 1.3; font-weight: var(--weight-label); color: var(--color-ink); margin-bottom: var(--space-sm); }
.foot__list a { display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap; font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot__list a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-mark); text-underline-offset: 0.25em; }
.foot__list a:active { color: var(--color-muted); }
.foot__list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__contact { display: grid; gap: var(--space-md); }
.foot__contact dt { font-size: var(--text-sm); color: var(--color-muted); }
.foot__contact dd { margin-top: var(--space-3xs); color: var(--color-ink-2); max-width: 28ch; }
.foot__contact .textlink { display: inline-flex; align-items: center; min-height: 44px; }
.foot__base { display: grid; gap: var(--space-sm); margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-soft); font-size: var(--text-sm); color: var(--color-muted); }
.foot__legal { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.foot__legal div { display: flex; gap: var(--space-2xs); }
.foot__legal dt:not(.visually-hidden)::after { content: ":"; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-xl); }
.foot__legalnav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-lg); }
.foot__legalnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.foot__legalnav a:hover { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.foot__legalnav a:active { color: var(--color-muted); }
.foot__legalnav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__legalnav .linkbtn { padding: 0; font-size: inherit; }
.foot__copy { color: var(--color-ink-2); }
.foot__sign { display: none; }
/* desktop: the footer is the last screen and a little more. The columns open the screen; the legal row and copyright
   rest at the very end of the page (their own snap point), so each part reads on its own */
@media (min-width: 60.0625rem) {
  .foot[data-screen] { display: flex; flex-direction: column; min-height: calc(100svh - var(--bar-h) + 30rem); padding-top: calc(var(--space-4xl) + var(--space-3xl)); }
  /* the closing signature: the wordmark set large and quiet between the columns and the legal row */
  .foot__sign { display: block; margin-top: auto; padding-top: var(--space-3xl); }
  .foot__sign svg { width: 100%; height: auto; fill: var(--color-rule-soft); }
  :root[data-theme="dark"] .foot__sign svg { opacity: 0.4; }
  .foot__sign + .foot__base { margin-top: var(--space-xl); }
  .foot > .container { flex: 1; display: flex; flex-direction: column; }
  .foot[data-screen] { padding-bottom: 0; }
  .foot__base { margin-top: auto; scroll-snap-align: end; padding-bottom: var(--space-xl); }
}
.textlink--inline { display: inline; min-height: 0; white-space: nowrap; }
@media (max-width: 60rem) {
  .foot__brand { grid-column: 1 / -1; }
  .foot__col { grid-column: span 6; }
  .foot__col--contact { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .foot__grid { row-gap: var(--space-xl); }
  .foot__col, .foot__col--contact { grid-column: 1 / -1; }
  .foot__list a { min-height: 44px; }
  .foot__legal { display: grid; gap: var(--space-2xs); }
}
.logo--foot { width: auto; height: 62px; aspect-ratio: 680 / 265; }
.foot__mark { display: grid; gap: var(--space-sm); justify-items: start; padding-block: var(--space-xs) var(--space-md); }
.brand-tagline { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); letter-spacing: 2px; color: var(--color-tagline); }
:root:not(:lang(vi)) .only-vi, :root:lang(vi) .not-vi { display: none; }

/* ---------- consent: a small card, bottom right, clear of the hero copy ---------- */
.consent { position: fixed; right: max(var(--space-md), env(safe-area-inset-right)); bottom: max(var(--space-md), env(safe-area-inset-bottom)); z-index: var(--z-toast); width: min(23rem, calc(100% - 2 * var(--space-md))); padding: var(--space-md) var(--space-md) var(--space-sm); background: var(--color-surface); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--color-rule); border-radius: var(--radius-card); font-size: var(--text-sm); color: var(--color-ink-2); }
.consent__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); }
.dlg { width: min(30rem, calc(100% - 2 * var(--space-md))); padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-ink); }
.dlg::backdrop { background: var(--color-scrim); }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.dlg__head h2 { font-size: var(--text-xl); line-height: 1.2; }
.dlg__row { display: flex; align-items: flex-start; gap: var(--space-sm); padding-block: var(--space-md); border-top: 1px solid var(--color-rule-soft); }
.dlg__row input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 24px; height: 24px; margin: 0; margin-top: var(--space-3xs); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-field-bg); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.dlg__row input::before { content: ""; width: 10px; height: 10px; background: var(--color-ink); transform: scale(0); transition: transform var(--dur-micro) var(--ease-out); }
.dlg__row input:checked::before { transform: scale(1); }
.dlg__row input:hover { border-color: var(--color-ink-2); }
.dlg__row input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.dlg__row input:disabled { opacity: 0.55; cursor: not-allowed; }
.dlg__row label { display: grid; gap: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.dlg__row strong { color: var(--color-ink); font-size: var(--text-md); font-weight: var(--weight-label); }
.dlg__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }


/* no script: the stages the field draws collapse to their words */
html:not(.js) .stage:not(.stage--hero), html:not(.js) .figure--q { display: none; }

/* ---------- widths ---------- */
@media (max-width: 68rem) {
  .spy { display: none; }
  .top__tools { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 68.0625rem) { .top:not(.nav-tight) .sheet { display: none !important; } }
/* when a translation makes the links too long for the bar, they fold into the menu sheet */
.top.nav-tight .spy { display: none; }
.top.nav-tight .top__tools { margin-left: auto; }
.top.nav-tight .menu-btn { display: inline-flex; }
@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap-s: 88px; --section-gap: 104px; --section-gap-l: 128px; --sec-pad: 80px; }
  .hero__in { min-height: 0; padding-block: var(--space-xl) var(--space-lg); row-gap: var(--space-xl); }
  .hero__copy, .figure--hero, .sec__head--split h2, .sec__head--split .intro, .q__side, .quote { grid-column: 1 / -1; }
  .stage--hero { height: 420px; min-height: 0; }
  .works .work { grid-column: span 6; }
  .works .work:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* the side column stops being sticky: relative for the figure, and no sticky offset left behind (it pushed the copy onto the form) */
  .q__side { position: relative; top: auto; padding-right: 34%; }
  :root .q__side .figure--q { position: absolute; top: 0; right: 0; width: 30%; margin: 0; pointer-events: none; }
  .stage--q { height: clamp(96px, 22vw, 160px); --px-alpha: 0.7; }
  :root[data-theme="dark"] .figure--q > .plate { display: none; }
  .quote { margin-top: var(--space-xl); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section-gap-s: 64px; --section-gap: 80px; --section-gap-l: 96px; --gap-columns: 16px; --bar-h: 60px; --sec-pad: 64px; }
  :root[data-theme="dark"] :is(.sec h2, .more__title)::before { left: -10px; width: 3px; }
  .logo { width: 88px; }
  .logo--lockup { width: auto; height: 31px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .top__in { gap: var(--space-sm); }
  .top__tools { gap: var(--space-xs); }
  .stage--hero { height: 320px; }
  .works .work { grid-column: 1 / -1; }
  .work__pic { height: auto; aspect-ratio: 5 / 3; padding: var(--space-md); }
  .folio { align-items: flex-start; }
  .logo--foot { width: auto; height: 56px; }
  .consent { padding: var(--space-sm) var(--space-md); }
  /* phones: a tall narrow hero runs the 135deg gradient almost top to bottom; drawn 175% tall from the top, its bright corner stays below the copy */
  :root[data-theme="light"] .hero.gr::before { background: var(--brand-gradient) top left / 100% 175% no-repeat, var(--brand-deep); }
}
/* the narrowest phones (under 376px) keep the theme toggle in the menu sheet only */

/* ===================== v6 phones and tablets (mobile/tablet audit, 2026-11-23) ===================== */
/* a real close mark: the three bars fold into an X */
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: none; background: transparent; box-shadow: none; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 2px; background: currentColor; opacity: 0; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { opacity: 1; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { opacity: 1; transform: rotate(-45deg); }
.sheet-scrim { display: none; }
/* language as a three-way control in the sheet */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--color-rule); border-radius: var(--radius-input); overflow: hidden; }
.seg button { min-height: 48px; padding: 0 var(--space-xs); border: 0; background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1.2 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.seg button + button { border-left: 1px solid var(--color-rule); }
.seg button:hover { background: var(--color-paper-2); color: var(--color-ink); }
.seg button:active { background: var(--color-paper-3); }
.seg button[aria-checked="true"] { background: var(--color-btn); color: var(--color-btn-ink); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.seg button:disabled { opacity: 0.55; cursor: not-allowed; }
.seg button[lang="ja"] { font-family: var(--font-native-ja); }
.works__count { display: none; }
.sheet__prefs, .sheet__cta { display: none; }

/* under 68rem the menu is a full-height sheet below the bar: links, language, theme, then the quote button */
@media (max-width: 68rem) {
  .sheet { position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top)); bottom: 0; left: 0; right: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-block: var(--space-xs) max(var(--space-lg), env(safe-area-inset-bottom)); padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); background: var(--color-paper); border-bottom: 0; }
  .sheet__in { display: flex; flex-direction: column; min-height: 100%; }
  .sheet__prefs { display: grid; gap: var(--space-sm); margin-block: var(--space-xl); }
  .sheet__prefs .theme-btn--sheet { margin-top: 0; }
  .sheet__cta { display: inline-flex; width: 100%; min-height: 56px; margin-top: auto; font-size: var(--text-md); }
  html.is-locked, html.is-locked body { overflow: hidden; }
  /* backdrop-filter would make the bar the containing block of the fixed sheet; the open bar is solid instead */
  .top.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-paper); transition-property: background-color, box-shadow; } /* and at once: a backdrop-filter still fading out would hold the sheet off screen */
}
/* tablets: the sheet is a 420px panel on the right over a scrim */
@media (min-width: 48rem) and (max-width: 68rem) {
  .sheet { left: auto; width: 420px; border-left: 1px solid var(--color-rule-soft); }
  /* the bar already shows language and theme here, so the panel keeps links and the quote button only */
  .sheet__prefs { display: none; }
  .sheet__list { margin-bottom: var(--space-xl); }
  .sheet-scrim:not([hidden]) { display: block; position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top)) 0 0 0; z-index: -1; background: color-mix(in srgb, var(--brand-ink) 50%, transparent); }
}

/* iPad portrait and small tablets: real two-column layouts instead of a stretched phone */
@media (min-width: 40.0625rem) and (max-width: 60rem) {
  .hero__copy { grid-column: 1 / span 7; }
  .figure--hero { grid-column: 8 / span 5; }
  .hero__in { row-gap: 0; min-height: 0; padding-block: var(--space-2xl) var(--space-xl); }
  .sec--what { padding-top: var(--space-2xl); }
  .stage--hero { height: 460px; }
}

@media (max-width: 40rem) {
  /* one phone header: logo, a short quote button, the menu. Language and theme live in the sheet */
  .top .lang, .theme-btn--top { display: none; }
  .btn--top .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .btn--top .short { display: inline; }
  .btn--top { padding: 0 var(--space-md); }
  .top__in { gap: var(--space-sm); }
  .top__tools { gap: var(--space-xs); }
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
  /* consent as a bottom bar */
  .consent { left: 0; right: 0; bottom: 0; width: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-xs); align-items: center; padding: var(--space-xs) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-xs), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left)); border-width: 1px 0 0; border-radius: 0; font-size: var(--text-xs); line-height: 1.3; box-shadow: 0 -8px 24px color-mix(in srgb, var(--brand-ink) 22%, transparent); }
  .consent > p { grid-column: 1 / -1; }
  .consent__acts { display: contents; }
  .consent__acts .btn-quiet { padding: 0 var(--space-sm); }
  /* the bar keeps Accept and Reject; detailed settings stay one tap away in the footer's Cookie settings */
  .consent__acts .linkbtn { display: none; }
  /* hero: copy at the foot of the first screen, the horse as a large decoration behind it, offset right */
  .hero__in { position: relative; display: grid; min-height: calc(100svh - var(--bar-h)); align-content: end; padding-block: var(--space-2xl) calc(var(--space-2xl) + var(--space-lg)); }
  .hero__copy { position: relative; }
  .figure--hero { position: absolute; right: 0; top: var(--space-md); width: 66%; height: min(320px, 38svh); margin: 0; pointer-events: none; }
  .stage--hero { height: 100%; min-height: 0; --px-alpha: 0.5; }
  /* light theme: the hero's gradient settles into the tint of the next band */
  :root[data-theme="light"] .hero.gr::before { background: linear-gradient(to bottom, transparent calc(100% - var(--space-2xl)), var(--brand-tint-2)), var(--brand-gradient) top left / 100% 240% no-repeat, var(--brand-deep); }
  /* work: one card at a time in a snap row, the next one peeking in */
  .works { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: var(--space-md); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .works::-webkit-scrollbar { display: none; }
  .works .work, .works .work:last-child:nth-child(odd) { grid-column: auto; scroll-snap-align: start; }
  .works__count { display: block; margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
  .folio { margin-top: var(--space-xl); }
  /* the form: two-column chips, bigger labels, a full-width submit with the reply note above it */
  .chips__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .chips label { justify-content: flex-start; min-height: 48px; }
  .chips__opts label:last-of-type { grid-column: 1 / -1; margin-top: var(--space-2xs); }
  .field-item label, .chips legend { font-size: var(--text-md); font-weight: 600; }
  .submit { display: grid; gap: var(--space-sm); }
  .submit__note { order: 1; max-width: none; }
  .submit .btn { order: 2; width: 100%; min-height: 56px; font-size: var(--text-md); }
  .submit .q__mail { order: 3; justify-self: start; }
  .status { order: 4; }
  .q__mail { display: inline-flex; align-items: center; min-height: 44px; }
  /* headings: the dark theme's rail sits inside the gutter, and the section head steps clear of area titles */
  :root { --text-section: clamp(2.125rem, 6vw + 0.5rem, 2.5rem); }
  :root[data-theme="dark"] :is(.sec h2, .more__title) { padding-left: var(--space-md); }
  :root[data-theme="dark"] :is(.sec h2, .more__title)::before { left: 0; width: 3px; }
}
/* phone landscape: the hero stays within one short screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero__in { min-height: min(calc(100svh - var(--bar-h)), 640px); }
  .stage--hero { height: min(460px, calc(100svh - var(--bar-h) - var(--space-2xl))); }
}

/* ===================== panels at tablet and phone widths ===================== */
@media (max-width: 60rem) {
  .area { padding: var(--space-lg); row-gap: var(--space-lg); }
  .area__fig { grid-column: 1 / span 5; }
  .area__copy { grid-column: 6 / span 7; }
  .area--gm .area__fig { grid-column: 8 / span 5; }
  .area--gm .area__copy { grid-column: 1 / span 7; }
  .stage--sw, .stage--gm, .stage--ai { height: 260px; }
  .items { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .example__title, .example__text { grid-column: 1 / -1; }
  .example__text { margin-top: var(--space-2xs); }
  .facts__title, .facts__list { grid-column: 1 / -1; }
  .facts__list { margin-top: var(--space-lg); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .models__list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .faq h2, .faq__list { grid-column: 1 / -1; }
  .faq__list { margin-top: var(--space-xl); }
}
@media (max-width: 40rem) {
  /* phones: each area is one card, the figure on top, then title, line and chips */
  .screen + .screen { margin-top: var(--space-lg); }
  .screen--what > .sec__head { margin-bottom: var(--space-lg); }
  .area { grid-template-columns: minmax(0, 1fr); padding: var(--space-md) var(--space-md) var(--space-lg); row-gap: var(--space-md); }
  .area__fig, .area__copy, .area--gm .area__fig, .area--gm .area__copy { grid-column: 1; grid-row: auto; }
  .stage--sw, .stage--gm { height: 190px; }
  .stage--ai { height: 170px; }
  .area__title { font-size: var(--text-xl); }
  .area__lead { font-size: var(--text-md); }
  .items { gap: var(--space-xs); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-card-line); }
  .items li { gap: var(--space-xs); font-size: var(--text-sm); line-height: 1.4; }
  .items li::before { width: 6px; height: 6px; margin-top: 0.5em; }
  .example { margin-top: 0; padding-top: var(--space-md); }
  .example__text { font-size: var(--text-sm); }
  .more__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); margin-top: var(--space-lg); }
  .more__item, .more__item:nth-last-child(-n + 2) { grid-column: 1; padding: var(--space-md); }
  .more__item h4 { font-size: var(--text-md); font-weight: var(--weight-label); }
  .more__lead { font-size: var(--text-sm); }
  .more__item summary { min-height: 44px; }
  .stage--how { height: 96px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--space-xs); padding: var(--space-md); }
  .steps__n { grid-row: 1 / span 2; }
  .steps__n::before { margin: 0; font-size: var(--text-lg); line-height: 1.3; }
  .steps p { font-size: var(--text-sm); }
  .facts__title, .models__title { font-size: var(--text-xl); }
  .facts__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .facts__list .panel { padding: var(--space-md); }
  .facts__list dt, .models__list dt { font-size: var(--text-md); }
  .facts__list dd, .models__list dd { font-size: var(--text-sm); }
  .models { padding: var(--space-lg) var(--space-md); }
  .models__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: var(--space-md); }
  .models__list > div, .models__list > div:first-child, .models__list > div:nth-child(3) { padding: var(--space-sm) 0; border-left: 0; border-top: 1px solid var(--color-rule-soft); }
  .faq details { padding-inline: var(--space-md); }
  .faq summary { min-height: 56px; }
  .how__band + .how__band { margin-top: var(--space-2xl); }
}
@media (min-width: 60.0625rem) {
  /* desktop screens: the area card centres in its screen; the What head sits above the first card */
  .sec--what .screen + .screen { margin-top: 0; }
  /* the steps screen reads from the top, so its cards and the promises below never share one 900px window (rule 58) */
  .how__band--steps[data-screen], #s-games[data-screen] { align-content: start; padding-top: var(--space-2xl); }
  /* the AI card is the densest: it fills its screen, the worked example rests on the card's foot (rule 58) */
  #s-ai[data-screen] { align-content: stretch; }
  .area--ai { align-content: space-between; }
}

/* ===================== crisp pixels (scene.js startCrisp) =====================
   Square device pixels, never smoothed; only opacity and whole-cell transforms move, on composited layers, in view only. */
.crisp .stage canvas { position: absolute; inset: auto; left: 0; top: 0; image-rendering: crisp-edges; image-rendering: pixelated; pointer-events: none; }
.crisp .stage { overflow: hidden; }
.crisp .px-spark { opacity: 0; }
/* the hero horse on phones is a decoration behind the words */
@media (max-width: 40rem) { .crisp .stage--hero { opacity: 0.8; } }
/* the owner's check: a long press on the hero figure names the pixel mode */
.ember-toast { position: fixed; left: 50%; bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom)); z-index: var(--z-toast); transform: translateX(-50%); max-width: calc(100% - 2 * var(--space-md)); padding: var(--space-xs) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-surface); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.4; pointer-events: none; }
.hero { -webkit-touch-callout: none; }

/* ===================== one section per screen (scroll snap) =====================
   Every major band is a screen: hero, software, games, AI, around the build, Work, How steps, How facts, How models,
   FAQ, Quote, with the footer snapping to the page end. Desktop snaps (mandatory); a screen taller than the viewport
   (Work, Quote, an opened FAQ) scrolls freely inside, as snap areas larger than the snapport do. Phones and tablets
   use proximity so long content never feels sticky. Each snap centres one stage, so one screen means one pixel shape. */
[data-screen] { scroll-snap-align: start; }
@media (min-width: 60.0625rem) {
  html { scroll-snap-type: y mandatory; }
  [data-screen] { min-height: calc(100svh - var(--bar-h)); display: grid; align-content: center; padding-block: var(--space-2xl); box-sizing: border-box; }
  .hero[data-screen] { padding-block: 0; }
  .sec--work[data-screen] { padding-bottom: var(--sec-pad); }
  .sec--quote[data-screen] { padding-bottom: calc(var(--sec-pad) + var(--space-3xl)); }
  .sec--what, .sec--how { padding-block: 0; }
}
/* phones: no snapping at all; a touch fling lands where the finger sends it */
@media (max-width: 40rem) { html { scroll-snap-type: none; } }
/* tablets: screens settle gently (proximity), never forced; a screen taller than the viewport scrolls inside */
@media (min-width: 40.0625rem) and (max-width: 60rem) {
  html { scroll-snap-type: y proximity; }
  [data-screen]:not(.hero) { min-height: calc(100svh - var(--bar-h)); display: grid; align-content: start; padding-block: var(--space-2xl); box-sizing: border-box; }
  .sec--what, .sec--how { padding-block: 0; }
  .how__band + .how__band { margin-top: 0; }
}

/* the dot rail: one dot per screen, the current one lit; hidden on phones */
.dots { position: fixed; right: max(var(--space-md), env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); z-index: var(--z-raised); }
.dots ol { display: grid; gap: 0; }
.dots__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-input); }
.dots__mark { width: 6px; height: 6px; background: var(--color-rule); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.dots__dot:hover .dots__mark { background: var(--color-ink); transform: scale(1.4); }
.dots__dot:active .dots__mark { transform: scale(1.1); }
.dots__dot[aria-current="true"] .dots__mark { background: var(--color-mark); transform: rotate(45deg) scale(1.5); }
.dots__dot:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.dots__dot[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.dots[data-on-gradient] { --color-rule: var(--on-dark-3); --color-ink: var(--on-dark); --color-mark: var(--on-dark); --color-focus: var(--on-dark); }
@media (max-width: 40rem) { .dots { display: none; } }
/* tablets: a narrower rail, and the page content keeps clear of it */
@media (min-width: 40.0625rem) and (max-width: 68rem) { .dots { right: max(var(--space-2xs), env(safe-area-inset-right)); } .dots__dot { width: 20px; height: 24px; } main .container { padding-right: calc(var(--gutter) + var(--space-md)); } }

/* ===================== legal pages (privacy.html, terms.html): a readable long-form column ===================== */
/* long documents read freely: no snapping (the footer's end snap would otherwise pin the page to its bottom) */
html.page-legal { scroll-snap-type: none !important; }
.page-legal .foot__base { scroll-snap-align: none; }
:root:lang(vi) [data-legal-lang="en"], :root:not(:lang(vi)) [data-legal-lang="vi"] { display: none; }
.legal { padding-block: var(--space-3xl) var(--space-4xl); }
.legal__in { max-width: calc(44rem + 2 * var(--gutter)); }
.legal__banner { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-panel); color: var(--color-ink); font-weight: var(--weight-label); font-size: var(--text-sm); }
.legal__doc { margin-top: var(--space-2xl); color: var(--color-ink-2); }
.legal__doc h1 { font-size: var(--text-section); line-height: var(--lh-head); letter-spacing: var(--tracking-display); color: var(--color-ink); max-width: 20ch; margin-bottom: var(--space-xl); }
.legal__doc h2, .legal__doc h3 { text-wrap: balance; }
.legal__doc h2 { margin-top: var(--space-2xl); font-size: var(--text-xl); line-height: 1.25; color: var(--color-ink); }
.legal__doc h3 { margin-top: var(--space-xl); font-size: var(--text-lg); color: var(--color-ink); }
.legal__doc p, .legal__doc ul, .legal__doc ol { margin-top: var(--space-md); max-width: 68ch; }
.legal__doc ul, .legal__doc ol { padding-left: var(--space-lg); }
.legal__doc ul li { list-style: square; }
.legal__doc ol li { list-style: decimal; }
.legal__doc li + li { margin-top: var(--space-2xs); }
.legal__doc strong { color: var(--color-ink); }
.legal__doc hr { margin-block: var(--space-xl); border: 0; border-top: 1px solid var(--color-rule-soft); }
.legal__note { margin: 0; padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-rule-soft); border-radius: var(--radius-card); background: var(--color-panel); color: var(--color-ink-2); font-size: var(--text-sm); }
.legal__note p { margin: 0; }
.legal__table { margin-top: var(--space-md); overflow-x: auto; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.legal__table th, .legal__table td { padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule-soft); text-align: left; vertical-align: top; }
.legal__table th { color: var(--color-ink); font-weight: var(--weight-label); border-bottom-color: var(--color-rule); }
/* draft markers: visible, quiet */
mark.todo { padding: 0 0.25em; border-radius: var(--radius-input); background: var(--color-paper-3); color: var(--color-ink); font-size: 0.92em; }
:root[data-theme="dark"] mark.todo { background: var(--color-paper-2); }
.legal__back { margin-top: var(--space-3xl); }
.legal code { font: inherit; }

/* ===================== motion system: one family of moves =====================
   Arrivals rise and fade (420ms, ease-out, 60ms stagger) when a screen comes in; menus and sheets scale or slide from
   where they open; buttons lift on hover and settle on press. Only transform and opacity move. The hidden arrival state
   exists only under .motion-ok, which the script adds when motion is allowed, so content is visible without scripting
   and under reduced motion. */
.motion-ok .rv { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js.motion-ok [data-screen]:not(.is-in) .rv { opacity: 0; transform: translateY(14px); }
.btn, .btn-quiet, .chips label, .theme-btn, .lang__btn, .menu-btn { will-change: auto; }
.btn:hover, .btn-quiet:hover { transform: translateY(-1px); }
.btn:active, .btn-quiet:active { transform: translateY(1px) scale(0.99); }
.chips label { 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); }
.chips label:hover { transform: translateY(-1px); }
.chips label:active { transform: scale(0.98); }
.work__pic { transition: transform var(--dur-long) var(--ease-out); }
.work:hover .work__pic { transform: translateY(-4px); }
.motif { transition: transform var(--dur-long) var(--ease-out); }
.work:hover .motif { transform: scale(1.03); }
.motion-ok .is-in .motif .p-ice { animation: twinkle 2.6s ease-in-out infinite alternate; }
.motion-ok .is-in .motif .p-sky { animation: twinkle 3.4s ease-in-out 0.8s infinite alternate; }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.55; } }
.faq details[open] > p { animation: rise 300ms var(--ease-out); }
.more__item[open] > ul { animation: rise 260ms var(--ease-out); }
.lang__menu:not([hidden]) { transform-origin: top right; animation: pop 160ms var(--ease-out); }
.lang--up .lang__menu:not([hidden]) { transform-origin: bottom left; }
.consent:not([hidden]) { animation: rise 320ms var(--ease-out); }
.dlg[open] { animation: pop 200ms var(--ease-out); }
@media (max-width: 68rem) { .sheet:not([hidden]) { animation: rise 280ms var(--ease-out); } .sheet-scrim:not([hidden]) { animation: fade 280ms var(--ease-out); } }
@media (min-width: 48rem) and (max-width: 68rem) { .sheet:not([hidden]) { animation: slide-in 300ms var(--ease-out); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
/* theme switching crossfades the colours */
.theme-xfade body, .theme-xfade .gr::before, .theme-xfade .top, .theme-xfade :is(h1, h2, h3, h4, p, li, dt, dd, a, button, span, label, input, select, textarea, .work__pic, .models, .consent) { transition: background-color 380ms ease-out, color 380ms ease-out, border-color 380ms ease-out, fill 380ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .btn, .btn-quiet, .theme-btn, .px, .textlink, .linkbtn, .seg button, .dots__mark, .spy a, .chips label, .quote input, .quote select, .quote textarea, .lang__btn, .lang__chev, .menu-btn__bars, .faq__mark::before, .faq__mark::after, .check input::before, .dlg__row input::before, .top { transition: none; }
  .btn:active, .btn:hover, .btn-quiet:hover, .btn-quiet:active, .chips label:hover, .work:hover .work__pic, .work:hover .motif { transform: none; }
}

/* ===================== phones: cheap to scroll =====================
   No backdrop blur (the bar and the consent bar are solid), no bar transition, and arrivals are one short fade with no
   movement or stagger. Placed after the motion system so it wins. */
@media (max-width: 60rem), (pointer: coarse) {
  .top.is-stuck, .top.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-paper); }
  .top { transition: none; }
  .sheet, .consent { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .motion-ok .rv { transition: opacity 240ms ease-out; transition-delay: 0ms; }
  .js.motion-ok [data-screen]:not(.is-in) .rv { transform: none; }
  .work:hover .work__pic, .work:hover .motif { transform: none; }
  /* SVG fills animating opacity repaint every frame: the Work pictures hold still on phones */
  .motion-ok .is-in .motif .p-ice, .motion-ok .is-in .motif .p-sky { animation: none; }
}
