/* Homepage V2: the original home's assets and sections in the redesign system.
   Shared V2 1200px content field, 28px gutters and 56px navigation.
   Geist and Geist Mono are linked in the page <head> (the same stylesheet the
   V2 pages use), not imported here, so they load without a waterfall. */
:root {
  color-scheme: dark;
  --bg: #0c0b0a; --bg-rgb: 12 11 10; --surface: #141311; --raise: #1c1b19;
  --ink: #0c0b0a; --paper: #f0ede5; --paper-soft: #a3a097;
  --text: #f0ede5; --muted: #a3a097; --faint: #8a877f;
  --line: rgb(240 237 229 / .08); --line-2: rgb(240 237 229 / .16);
  --signal: #22d3b7; --accent: #22d3b7; --signal-rgb: 34 211 183;
  --build-text: #bdacf3; --release-text: #7bc2f3;
  --btn-bg: #f0ede5; --btn-text: #0c0b0a;
  --sans: 'Geist', 'Segoe UI', Arial, sans-serif;
  --mono: 'Geist Mono', Consolas, monospace;
  --page-pad: var(--v2-page-pad, 28px); --header-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[data-theme='light'] {
  /* "only": forced dark modes (Samsung Internet, Chrome's auto dark) leave the light theme as designed */
  color-scheme: only light;
  --bg: #ebe8e1; --bg-rgb: 235 232 225; --card: #f8f7f3; --surface: #fdfcfa; --raise: #fff;
  --ink: #f5f3ee; --paper: #0c0b09; --paper-soft: #55534d;
  --text: #0c0b09; --muted: #55534d; --faint: #67645e;
  --line: rgb(12 11 9 / .1); --line-2: rgb(12 11 9 / .18);
  --signal: #046d5f; --accent: #046d5f; --signal-rgb: 4 109 95;
  --build-text: #665796; --release-text: #2f6892;
  --btn-bg: #0c0b09; --btn-text: #f5f3ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button:disabled { cursor: not-allowed; opacity: .4; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1, h2 { letter-spacing: -.045em; line-height: 1.08; }
h3 { letter-spacing: -.025em; line-height: 1.2; }
p { text-wrap: pretty; }
em { font-style: normal; color: var(--muted); }
/* Headings are two-tone: the second phrase steps back to the muted ink. */
.outline-word { color: var(--muted); }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 120; padding: 10px 16px; background: var(--btn-bg); color: var(--btn-text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.home-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: stretch; max-width: 1200px; min-height: var(--header-h); margin: auto; border-inline: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--mono); letter-spacing: .32em; }
.home-header .wordmark { padding: 0 28px; border-right: 1px solid var(--line); flex-shrink: 0; }
.brand-mark { display: grid; grid-template-columns: 4px 4px; gap: 2px; }
.brand-mark i { width: 4px; height: 4px; background: var(--line-2); }
.brand-mark i:first-child, .brand-mark i:last-child { background: var(--accent); }
.site-nav { display: flex; align-items: stretch; flex: 1; padding-inline: 12px; }
.site-nav > a, .nav-group > summary { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); padding-inline: 14px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.site-nav > a > span, .nav-group span { font: 400 10px/1 var(--mono); color: var(--faint); }
.site-nav > a:hover, .nav-group > summary:hover { color: var(--text); }
.nav-group { position: relative; }
.nav-group > summary { cursor: pointer; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group summary i { font-size: 9px; font-style: normal; }
.nav-group[open] summary i { transform: rotate(180deg); }
.nav-group__menu { position: absolute; top: 100%; left: 0; width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 0 0 10px 10px; box-shadow: 0 20px 50px rgb(0 0 0 / .2); }
.nav-group__menu a { display: flex; gap: 12px; align-items: center; padding: 12px; font-size: 13px; border-radius: 6px; }
.nav-group__menu a:hover { background: var(--raise); color: var(--text); }
.header-portal { display: flex; align-items: center; padding: 0 22px; border-left: 1px solid var(--line); white-space: nowrap; font: 400 12px/1 var(--mono); color: var(--muted); }
.header-demo { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; padding: 0 24px; background: var(--btn-bg); color: var(--btn-text); white-space: nowrap; font-size: 13px; font-weight: 500; }
.header-demo:hover { opacity: .86; }
.menu-toggle { display: none; }
main { max-width: 1200px; margin-inline: auto; border-inline: 1px solid var(--line); }
.section-shell { position: relative; padding: 72px var(--page-pad); border-top: 1px solid var(--line); }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--faint); font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow > span { color: var(--accent); }
.section-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(27px, 2.6vw, 35px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 500; }
.button--primary { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.button--primary:hover { opacity: .86; color: var(--btn-text); }
.hero .button--primary { transition: color .15s ease, text-shadow .15s ease; }
.hero .button--primary:is(:hover, :focus-visible) { opacity: 1; color: var(--btn-text); text-shadow: 0 0 4px rgb(var(--signal-rgb) / .45), 0 0 10px rgb(var(--signal-rgb) / .25); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header-h) - 1px); padding: 0 var(--page-pad); background-image: linear-gradient(90deg, rgb(var(--bg-rgb) / .78), rgb(var(--bg-rgb) / .3)); }
.hero__copy { grid-column: 1; padding: 64px 40px 32px 0; background: linear-gradient(90deg, var(--bg) 80%, transparent); }
.hero .eyebrow { display: inline-flex; margin-bottom: 26px; }
.hero h1 { font-size: var(--v2-intro-title-size, 56px); letter-spacing: -.045em; }
/* The headline arrives with the emblem on a fresh load. Same class, so a later
   page on this site does not replay it, and Pause motion leaves it in place. */
@keyframes xomea-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
html.xomea-mark-flip .hero__copy { animation: xomea-copy-in .88s cubic-bezier(.16, 1, .3, 1) .08s backwards; }
.hero .statement-word { display: block; }
.hero .statement-word--1 {
  font-weight: 600;
  color: var(--text);
  filter: drop-shadow(0 .035em .065em rgb(0 0 0 / .18));
}
.hero .statement-word--2 { font-weight: 600; }
.hero .hero-context { color: color-mix(in srgb, var(--accent) 68%, var(--muted)); }
/* A gentle light falloff adds depth without turning the title into chrome. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero .statement-word--1 {
    background: linear-gradient(175deg, #fff 0%, var(--text) 46%, color-mix(in srgb, var(--text) 78%, var(--muted)) 100%);
    background-clip: text; -webkit-background-clip: text;
    color: transparent;
  }
  [data-theme='light'] .hero .statement-word--1 {
    background-image: linear-gradient(175deg, color-mix(in srgb, var(--text) 76%, var(--muted)) 0%, var(--text) 74%);
    filter: drop-shadow(0 .025em .045em rgb(35 31 24 / .12));
  }
}
@media (forced-colors: active) {
  .hero .statement-word--1 { background: none; color: CanvasText; filter: none; }
  .hero .hero-context { color: CanvasText; }
}
.hero__intro { max-width: 54ch; margin-top: 26px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero__intro > p:first-child { color: var(--text); font-weight: 500; margin-bottom: 10px; }
/* The trial line is brass, the site's mark for editions and trials (19 November 2026, the user's request),
   matching the hero film's brass chapter strip; it was the muted grey of the intro above it */
.hero__note { max-width: 64ch; margin-top: 14px; font: 400 13px/1.6 var(--sans); text-wrap: balance; color: var(--build-text); }
.home-page .hero__intro.hero__note { font-size: 13px !important; }
.hero__build { width: max-content; max-width: 100%; margin-top: 26px; }
.hero__plate { display: flex; flex-wrap: wrap; gap: 8px 14px; font: 400 11px/1.5 var(--mono); text-transform: uppercase; }
.hero__plate dt { color: var(--faint); }
.hero__plate dd { margin: 0 14px 0 0; color: var(--build-text); }
.hero__plate dd:last-of-type { margin-right: 0; color: var(--release-text); }
/* The latest-release note closes the build line: same mono row, set off by a hairline, so the hero keeps its height. */
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hero__news { display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line-2); color: var(--text); font: 400 11px/1.5 var(--mono); text-transform: uppercase; transition: color .2s ease; }
.hero__news b { color: var(--accent); font-weight: 500; letter-spacing: .08em; }
.hero__news span { color: var(--muted); transition: transform .2s ease; }
.hero__news:hover { color: var(--accent); }
.hero__news:hover span { color: var(--accent); transform: translate(2px, -2px); }
/* The capability rail's box. Its lists, lines and motion: css/home-rail.css. */
.hero__side-rail { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 24px 24px 0; background: var(--bg); }
.rail-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--muted); }
.hero__stage { position: relative; grid-column: 2; grid-row: 1 / 3; min-height: 560px; margin: 28px 0; isolation: isolate; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: url('../images/stage-monolith.jpg') center / cover; background-clip: padding-box; }
[data-theme='light'] .hero__stage { background-image: url('../images/stage-monolith-light.jpg'); }
/* Separate and Align use supplied artwork in both themes, without the letter grid. */
.hero__stage[data-stage-state='separate'], .hero__stage[data-stage-state='align'] { background-image: url('../images/stage-separate.png'); background-size: 100% auto; background-position: center top; background-repeat: no-repeat; background-color: #000; }
/* Light Align fades to the paper ground. */
[data-theme='light'] .hero__stage[data-stage-state='align'] { background-color: var(--bg); }
[data-theme='light'] .hero__stage[data-stage-state='align']::after { background: linear-gradient(180deg, transparent 62%, rgb(var(--bg-rgb) / .92) 90%); }
[data-theme='light'] .hero__stage[data-stage-state='align'] .stage-meta { color: var(--muted); }
[data-theme='light'] .hero__stage[data-stage-state='align'] .stage-caption { color: var(--text); }
.hero__stage[data-stage-state='separate'] .letter-field, .hero__stage[data-stage-state='align'] .letter-field { display: none; }
.hero__stage[data-stage-state='separate']::after, .hero__stage[data-stage-state='align']::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 62%, rgb(0 0 0 / .88) 90%); }
.hero__stage[data-stage-state='separate'] .stage-meta, .hero__stage[data-stage-state='align'] .stage-meta,
.hero__stage[data-stage-state='separate'] .stage-caption, .hero__stage[data-stage-state='align'] .stage-caption { color: #f0ede5; }
.hero__stage[data-stage-state='separate'] .stage-controls, .hero__stage[data-stage-state='align'] .stage-controls { z-index: 4; background: var(--surface); }
.stage-meta { position: absolute; top: 18px; inset-inline: 18px; display: flex; gap: 10px; justify-content: space-between; z-index: 4; font: 400 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.letter-field { position: absolute; inset: 48px 0 110px; }
.grid-lines { width: 100%; height: 100%; fill: none; stroke: var(--line-2); stroke-width: .6; }
.grid-lines__axes, .grid-row--axis { stroke: color-mix(in srgb, var(--accent) 35%, transparent); }
.kinetic-letter { position: absolute; top: 28%; font: 400 clamp(70px, 8vw, 118px)/1 Georgia, serif; color: var(--text); transition: top .8s var(--ease), left .8s var(--ease), transform .8s var(--ease), opacity .5s; background: url('../images/steel-grain.svg') center / 200px; background-clip: text; }
.kinetic-letter--x { left: 5%; transform: rotate(-8deg); top: 18%; }
.kinetic-letter--o { left: 21%; top: 37%; transform: rotate(5deg); }
.kinetic-letter--m { left: 37%; top: 11%; transform: rotate(-5deg); }
.kinetic-letter--e { left: 56%; top: 30%; transform: rotate(4deg); }
.kinetic-letter--a { left: 72%; top: 34%; color: var(--accent); transform: rotate(8deg); }
[data-stage-state='align'] .kinetic-letter, [data-stage-state='run'] .kinetic-letter { top: 29%; transform: none; }
[data-stage-state='run'] .kinetic-letter { opacity: 0; }
.signal-block { position: absolute; left: 90%; top: 30%; height: 16%; width: 5px; background: var(--accent); }
.stage-poster { position: absolute; inset: 55px 18px 110px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.stage-poster img { width: 100%; height: 100%; object-fit: contain; }
.stage-poster__light { display: none; }
[data-stage-state='run'] .stage-poster { opacity: 1; }
[data-theme='light'] .stage-poster > img:first-child { display: none; }
[data-theme='light'] .stage-poster__light { display: block; }
.stage-coords, .reg-frame { display: none; }
.stage-caption { position: absolute; bottom: 73px; inset-inline: 20px; z-index: 4; max-width: 42ch; font-size: 12px; line-height: 1.5; color: var(--muted); }
.stage-controls { position: absolute; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: color-mix(in srgb, var(--bg) 86%, transparent); border-top: 1px solid var(--line-2); }
.stage-controls button { min-height: 52px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 6px; border: 0; background: transparent; font: 400 11px/1 var(--mono); color: var(--muted); }
.stage-controls button + button { border-left: 1px solid var(--line); }
.stage-controls button[aria-pressed='true'] { box-shadow: inset 0 2px var(--accent); color: var(--text); background: rgb(var(--signal-rgb) / .06); }
.stage-controls button span { color: var(--accent); }
.hero__index { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); background: var(--bg); font: 400 11px/1.5 var(--mono); color: var(--faint); text-transform: uppercase; }
.hero__index i { width: 15%; height: 1px; align-self: center; background: var(--line-2); }
.hero__index a { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__index a:hover { color: var(--accent); }
/* Full-bleed bands (this, .system, .closing, .system__scene): the padding is the exact inverse of the
   margin, so the content box lands back on main's content box. 100vw counts a desktop scrollbar and
   main has a 1px border, so the old (100vw - 1200px) / 2 padding put the hero and the first three
   sections 1px left of the page field on wide screens and 8.5px left of it from 1215px down
   (19 November 2026, spacing audit). */
.home-intro-flow { position: relative; isolation: isolate; overflow: hidden; width: 100vw; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); background: var(--bg); }
.home-intro-flow .hero__copy, .home-intro-flow .hero__side-rail, .home-intro-flow .hero__index { background: transparent; }
.home-intro-flow .hero__plate dt, .home-intro-flow .hero__index { color: var(--text); }
/* Visible overflow + bottom room so the preview frame's shadow isn't clipped. */
.screens { overflow: visible; background: transparent; }
.screens.section-shell { padding-bottom: 72px; }
.screens-blend { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
/* js/screens-blend.js mounts the field just after the page paints: it rises in with the hero art rather than popping in. */
.home-intro-flow .screens-blend { animation: screens-blend-rise 1.4s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes screens-blend-rise { from { opacity: 0; } }
.home-intro-flow::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg), rgb(var(--bg-rgb) / .58) 22%, rgb(var(--bg-rgb) / .35) 50%, rgb(var(--bg-rgb) / .65) 86%, var(--bg)); }
.home-intro-flow > :not(.screens-blend) { position: relative; z-index: 1; }
/* Grain over the glow, the hero film's texture (.hf-grain in home-film.css) carried onto the page:
   the same fine fractal noise as light and dark specks (two tiles, plain alpha, no blend mode), so it reads
   the same on dark, on paper and over the horizon pictures. It sits above the colour field and its veil but under the content, so text and
   cards stay clean, and it is static. It fades in and out with the glow (--grain-fade), so no edge shows
   where one section meets the next. 15 November 2026, the user's request. */
:root { --grain-fade: linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent); --grain-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.2 0 0 0 -1.1'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 0 0 0 1.1'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); }
.home-intro-flow::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--grain, .09); background-image: var(--grain-tile); -webkit-mask-image: var(--grain-fade); mask-image: var(--grain-fade); }
[data-theme='light'] .home-intro-flow::before { --grain: .1; }
/* On paper, let the teal and violet flow retain more of their colour. */
[data-theme='light'] .home-intro-flow .screens-blend { opacity: .8; filter: saturate(1.2); }
[data-theme='light'] .home-intro-flow::after { background: linear-gradient(180deg, var(--bg), rgb(var(--bg-rgb) / .4) 22%, rgb(var(--bg-rgb) / .2) 50%, rgb(var(--bg-rgb) / .48) 86%, var(--bg)); }
[data-theme='light'] .home-intro-flow.screens--blend-static { background: linear-gradient(105deg, color-mix(in srgb, var(--bg) 45%, var(--signal-deep)), var(--bg) 34%, color-mix(in srgb, var(--bg) 45%, var(--signal)) 58%, color-mix(in srgb, var(--bg) 45%, var(--accent)) ); }

.screens--blend-static { background: linear-gradient(105deg, color-mix(in srgb, var(--bg) 70%, #04ab96), color-mix(in srgb, var(--bg) 70%, #fbfaf5) 34%, color-mix(in srgb, var(--bg) 70%, #22d3b7) 58%, color-mix(in srgb, var(--bg) 70%, #8a7dda)); }
.screens-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 28px 56px; padding-bottom: 28px; margin-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.screens .section-heading { margin-bottom: 0; }
/* "How it learns" heads its section at the same size as the principles and workspace headings above it
   (19 November 2026, the user's request: at 35px it read smaller than "Your data. Growing workloads.") */
.screens .section-heading h2, .demo-learn .section-heading h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.02; }
.screens-head__aside { display: flex; flex-direction: column; gap: 24px; }
.screens-head__lede { max-width: 42ch; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.screens-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.screens-stats > div { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 0 0; }
.screens-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.screens-stats dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.screens-stats dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.screens-stats dd small { font: 400 11px/1.3 var(--mono); letter-spacing: 0; color: var(--muted); }
.screens-stats > div:nth-child(2) dd > span { color: var(--accent); }
.screens-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 400 13px/1.5 var(--sans); color: var(--muted); }
.screens-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
@media (max-width: 960px) {
  .screens-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 520px) {
  .screens-stats { grid-template-columns: 1fr 1fr; }
  .screens-stats > div:nth-child(3) { display: none; }
}
/* Workspace preview: one glass frame — tab track on top, bezelled shot, caption bar. */
.screens-chrome { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 10px 10px 10px 12px; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-bottom: 0; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--text)), var(--surface)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent); backdrop-filter: blur(14px); }
.screen-tabs { display: flex; flex: 1; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 12px; background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.screen-tabs::-webkit-scrollbar { display: none; }
/* Eight views share the row (23 November 2026): 8px sides and a 6px gap keep all eight tabs on one
   line beside the theme switch from 961px up; narrower screens scroll the row with its edge cue. */
.screen-tab { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 9px 8px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 13px; letter-spacing: -.005em; cursor: pointer; transition: color .2s, background .2s; }
.screen-tab:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.screen-tab span { font: 400 11px/1 var(--mono); color: var(--faint); transition: color .2s; }
.screen-tab::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transform: scaleX(.4); transition: opacity .25s, transform .35s var(--ease); }
.screen-tab[aria-selected='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent) inset, 0 6px 18px rgb(0 0 0 / .28), 0 0 0 1px var(--line-2); }
.screen-tab[aria-selected='true'] span { color: var(--accent); }
.screen-tab[aria-selected='true']::after { opacity: 1; transform: scaleX(1); }
.screen-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.screens-chrome__theme { position: relative; display: flex; padding: 4px; gap: 2px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); font-style: normal; }
.screens-chrome__theme button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 8px 14px; font: 400 11px/1 var(--mono); letter-spacing: .04em; cursor: pointer; transition: color .2s, background .2s; }
.screens-chrome__theme button:hover { color: var(--text); }
.screens-chrome__theme button[aria-pressed='true'] { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 4px 12px rgb(0 0 0 / .25); }
.plate-open { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted); white-space: nowrap; transition: color .2s, box-shadow .2s; }
.plate-open:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.screen-plates { position: relative; isolation: isolate; counter-reset: plate; padding: 0 10px 0; margin: 0; list-style: none; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; background: var(--surface); box-shadow: 0 22px 44px -22px rgb(0 0 0 / .5), 0 0 0 1px rgb(0 0 0 / .2); }
.screen-plates::before { content: ''; position: absolute; inset: 0 10% auto; height: 60%; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.screen-plate { counter-increment: plate; padding-top: 10px; }
/* Screens cross-fade through a view transition (homepage-v2.js); without one,
   the new screen fades in. */
@supports not (view-transition-name: none) {
  .screen-plate:not([hidden]) { animation: plate-in .3s var(--ease); }
}
@keyframes plate-in { from { opacity: 0; } }
.plate-shot, .plate-cell { position: relative; overflow: hidden; border-radius: 10px; border: 0; background: var(--card, var(--bg)); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px rgb(0 0 0 / .6); }
.plate-shot::after, .plate-cell::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent); }
.plate-shot > img, .plate-cell > img { display: block; width: 100%; }
/* Captures carry width and height so a view keeps its box before its capture loads. Without
   this the height attribute applies as is (1440px); at zero specificity any authored height wins. */
:where(.plate-shot, .plate-cell) > img { height: auto; }
/* A capture held back until wanted (js/homepage-v2.js) keeps its box but shows no alt text. */
.plate-shot img:not([src]), .plate-cell img:not([src]) { visibility: hidden; }
.plate-shot__alt { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
[data-screen-build='light'] .plate-shot__alt { opacity: 1; }
[data-screen-build='dark'] .plate-shot:not(.plate-shot--set):hover .plate-shot__alt,
[data-screen-build='dark'] .plate-shot:not(.plate-shot--set):focus .plate-shot__alt,
[data-screen-build='dark'] .plate-cell:hover .plate-shot__alt,
[data-screen-build='dark'] .plate-cell:focus .plate-shot__alt { opacity: 1; }
.plate-shot:focus-visible, .plate-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plate-shot--set { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; background: transparent; box-shadow: none; }
.plate-shot--set::after { display: none; }
.plate-shot__stack { display: flex; flex-direction: column; gap: 10px; }
.screen-plate figure { margin: 0; }
.screen-plate figcaption { display: flex; align-items: baseline; gap: 18px; margin: 10px -10px 0; padding: 16px 20px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.screen-plate figcaption::before { content: '0' counter(plate) ' / 08'; flex-shrink: 0; font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--accent); }
/* All eight views share one cell, so the frame keeps the tallest view's height
   and switching tabs never moves the page. Hidden views stay laid out (their
   images load up front) but are invisible, unfocusable and out of the
   accessibility tree. The shot centres in the spare height; the caption keeps
   one position across views. */
.screen-plates { display: grid; }
.screen-plates > .screen-plate { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.screen-plates > .screen-plate[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.screen-plates > .screen-plate figure { flex: 1; display: flex; flex-direction: column; }
.screen-plates > .screen-plate figure > .plate-shot { margin-block: auto; }
/* The wallboard capture is the whole board, 2560 x 1702 (23 November 2026, the user's request: it was
   cut to 16:9). Shown at the width that gives it the 16:9 views' height, so the frame keeps its size. */
.plate-shot--board { width: calc(100% * 1440 / 1702); margin-inline: auto; }
.system { overflow: hidden; background: var(--bg); --landscape-height: clamp(560px, calc(32vw + 140px), 780px); }
.system.section-shell { padding-top: 0; border-top: 0; }
.system, .closing {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50% + var(--page-pad));
}
.system__scene { isolation: isolate; width: 100vw; min-height: var(--landscape-height); margin-inline: calc(50% - 50vw); padding: 0 calc(50vw - 50%) clamp(220px, 22vw, 360px); }
/* The landscape eases in and out (smoothstep stops, 18 November 2026): a straight fade has a
   visible start and end, and the bright fog met the dark page along a line. The top fade runs
   to half height so the fog rises out of the page; the bottom one sinks back into it. The
   grain uses the same mask, so no grain hangs over the page beyond the picture. */
.system__scene {
  --horizon-mask: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .03) 5%, rgb(0 0 0 / .1) 10%, rgb(0 0 0 / .22) 15%, rgb(0 0 0 / .35) 20%, rgb(0 0 0 / .5) 25%, rgb(0 0 0 / .65) 30%, rgb(0 0 0 / .78) 35%, rgb(0 0 0 / .9) 40%, rgb(0 0 0 / .97) 45%, #000 50%, #000 72%, rgb(0 0 0 / .97) 74.8%, rgb(0 0 0 / .9) 77.6%, rgb(0 0 0 / .78) 80.4%, rgb(0 0 0 / .65) 83.2%, rgb(0 0 0 / .5) 86%, rgb(0 0 0 / .35) 88.8%, rgb(0 0 0 / .22) 91.6%, rgb(0 0 0 / .1) 94.4%, rgb(0 0 0 / .03) 97.2%, transparent 100%);
}
.system__scene::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('../images/system-horizon.webp?v=2') center / cover no-repeat; -webkit-mask-image: var(--horizon-mask); mask-image: var(--horizon-mask); }
.system__scene::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('../images/system-horizon.webp?v=2') center / cover no-repeat; opacity: .12; -webkit-mask-image: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .1) 61%, rgb(0 0 0 / .5) 70%, rgb(0 0 0 / .9) 79%, #000 85%, rgb(0 0 0 / .5) 92.5%, transparent 100%); mask-image: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .1) 61%, rgb(0 0 0 / .5) 70%, rgb(0 0 0 / .9) 79%, #000 85%, rgb(0 0 0 / .5) 92.5%, transparent 100%); }
/* In dark the neutral horizon takes the page's cool teal, so the scroll keeps one
   palette from the intro wash to the closing band. */
html:not([data-theme='light']) .system__scene::before { filter: grayscale(1) sepia(.35) hue-rotate(115deg) saturate(1.2) brightness(.92); }
.system > * { position: relative; z-index: 1; }
/* The same grain over the workflow landscape, at the intro's strength: its own element (both pseudo-elements
   carry the picture), between the horizon and the cards. The closing picture has none (the user's call). */
.system__grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain, .09); background-image: var(--grain-tile); -webkit-mask-image: var(--grain-band); mask-image: var(--grain-band); --grain-band: var(--horizon-mask); }
[data-theme='light'] .system__grain { --grain: .1; }
.system__label { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.system__label > p:last-child { color: var(--muted); }
.system__statement h2 { display: flex; flex-wrap: wrap; gap: .3em; font-size: clamp(27px, 2.6vw, 35px); margin-bottom: 36px; }
.system__statement em { color: var(--accent); }
/* Use cases: subgrid rows keep icon / title / copy / points / tags level across cards. */
.use-case-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: usecase; }
.use-case-list article { counter-increment: usecase; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding: 18px 18px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-color: rgb(255 255 255 / .28); background: linear-gradient(160deg, rgb(255 255 255 / .22), rgb(255 255 255 / .06) 60%, rgb(255 255 255 / .1)); backdrop-filter: blur(28px) saturate(1.5) brightness(1.04); -webkit-backdrop-filter: blur(28px) saturate(1.5) brightness(1.04); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 0 0 1px rgb(255 255 255 / .06), 0 24px 48px -28px rgb(0 0 0 / .4); transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.use-case-list article::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 50% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); opacity: .7; transition: opacity .4s; }
.use-case-list article:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent), 0 40px 70px -34px rgb(0 0 0 / .5); }
.use-case-list article:hover::after { opacity: 1; }
.use-case-stone { position: absolute; inset: 0; z-index: -2; opacity: .03; background: url('../images/term-stone-a.png') center / cover; pointer-events: none; }
.use-case-list article:nth-child(2) .use-case-stone { background-image: url('../images/term-stone-b.png'); }
.use-case-list article:nth-child(3) .use-case-stone { background-image: url('../images/term-stone-c.png'); }
.use-case-list article > span:not(.use-case-stone) { display: flex; align-items: center; margin-bottom: 14px; }
.use-case-icon { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.4; }
.use-case-list h3 { align-self: end; margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.use-case-list article > p { margin: 0 0 14px; color: var(--text) !important; font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.use-case-points { display: grid; grid-auto-rows: 1fr; align-content: start; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; border-top: 1px solid var(--line); }
.use-case-points li { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 30px; padding-block: 5px; border-bottom: 1px solid var(--line); color: var(--text); }
.use-case-point-icon { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.4; }
.use-case-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 5px; list-style: none; padding: 0; margin: 0; }
.use-case-tags li { padding: 5px 9px; font: 400 11px/1 var(--mono); letter-spacing: .02em; color: var(--muted); border-radius: 999px; background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); }
/* Who Xomea is for — the strip under the landscape: css/home-who.css.
   Desktop: it rides up over the landscape's dark band (image itself unchanged). */
@media (min-width: 961px) {
  .system__foot { position: relative; z-index: 2; margin-top: calc(-1 * clamp(80px, 7vw, 130px)); margin-bottom: clamp(20px, 2vw, 50px); }
}
.terms .section-heading h2 { max-width: 40ch; }
.terms-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--line-2); }
/* Each card spans five rows of the set (label, title, claim, spec, link) on a
   subgrid, so titles, claims and spec rules sit level across a row whatever
   each card's copy length. Keep five top-level flow children per card. */
.term { position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; gap: 8px; padding: 18px 20px; background: var(--card, var(--bg)); }
.term-icon { position: absolute; top: 17px; left: 20px; color: var(--accent); height: 20px; }
.term-index { display: flex; align-items: center; min-height: 20px; padding-left: 30px; margin-bottom: 4px; color: var(--faint); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.term h3 { font-size: 17px; letter-spacing: -.01em; }
.term-claim { color: var(--muted); font-size: 13px; line-height: 1.5; }
.term-spec { display: grid; align-self: start; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.term-spec > div { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; }
.term-spec dt { color: var(--faint); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.term-spec dd { margin: 0; text-align: right; font-size: 11px; }
.term-link { font-size: 12px; }
/* The seal closes the resilience set as its last row: same frame and columns
   (1px gaps, 20px inset), so each line sits under its card's text. */
.terms-set--resilience { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.terms-seal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; background: var(--line-2); }
.terms-seal > div { display: flex; gap: 4px; flex-direction: column; padding: 14px 20px 16px; background: color-mix(in srgb, var(--card, var(--bg)) 70%, var(--surface)); }
.terms-seal dt { color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
/* On paper the seal's tinted ground needs a step darker than --muted to keep small labels at 4.5:1. */
[data-theme='light'] .terms-seal dt { color: color-mix(in srgb, var(--muted) 72%, var(--text)); }
.terms-seal dd { margin: 0; font-size: 13px; }
.closing { position: relative; overflow: hidden; min-height: 420px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.closing::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgb(12 11 10 / .5), transparent), url('../images/closing-horizon.png') center / cover; opacity: .6; }
[data-theme='light'] .closing::before { filter: invert(1) hue-rotate(180deg); opacity: .22; }
.closing > * { position: relative; z-index: 1; }
.closing .eyebrow { margin-bottom: 16px; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.closing h2 { max-width: 20ch; font-size: clamp(27px, 2.6vw, 35px); }
.closing .statement-word { display: block; }
.closing .round-action { display: flex; align-items: center; gap: 24px; padding: 16px 24px; border: 0; border-radius: 9px; background: var(--btn-bg); color: var(--btn-text); font-size: 14px; }
.round-action span br { display: none; }
.round-action b { font-size: 22px; font-weight: 400; }
.round-action b i { font-style: normal; }
.round-action b i + i { display: none; }
.closing__routes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line-2); }
.closing__routes p { margin-bottom: 10px; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
/* The footer (the site map) is shared with the V2 pages: css/redesign-common.css. */
.concept-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow-y: auto; border: 1px solid var(--line-2); border-radius: 16px; padding: 32px; background: var(--surface); color: var(--text); }
/* The planner rises in and fades out over a backdrop that dims with it; the
   discrete display/overlay transitions keep it in the top layer until it has gone. */
.concept-dialog { opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .2s ease, transform .22s var(--ease), overlay .22s allow-discrete, display .22s allow-discrete; }
.concept-dialog[open] { opacity: 1; transform: none; }
.concept-dialog::backdrop { background: rgb(6 5 4 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .2s ease, -webkit-backdrop-filter .2s ease, backdrop-filter .2s ease, overlay .22s allow-discrete, display .22s allow-discrete; }
.concept-dialog[open]::backdrop { background: rgb(6 5 4 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@starting-style {
  .concept-dialog[open] { opacity: 0; transform: translateY(8px) scale(.985); }
  .concept-dialog[open]::backdrop { background: rgb(6 5 4 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
}
.concept-dialog .eyebrow { margin-bottom: 16px; }
.concept-dialog h2 { font-size: 28px; margin-bottom: 16px; }
.concept-dialog > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.dialog-close { display: block; margin: 0 0 18px auto; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg); padding: 7px 12px; font-size: 12px; }
.demo-planner { display: grid; gap: 20px; margin-top: 24px; }
.demo-planner fieldset { border: 0; margin: 0; padding: 0; }
.demo-planner legend { margin-bottom: 14px; color: var(--faint); font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.demo-choice { display: flex; gap: 14px; padding: 16px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; }
.demo-choice:has(input:checked) { background: rgb(var(--signal-rgb) / .06); border-color: var(--accent); }
.demo-choice input { accent-color: var(--accent); margin-top: 4px; }
.demo-choice span { display: grid; gap: 5px; }
.demo-choice strong { font-size: 14px; font-weight: 500; }
.demo-choice small { color: var(--muted); font-size: 12px; }
.planner-feedback { color: var(--faint); font: 400 12px/1.5 var(--sans); }
.planner-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 8px; }
.text-button { padding: 0; background: transparent; border: 0; font-size: 12px; }
.demo-field { display: grid; gap: 10px; font-size: 12px; }
.demo-field input { padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); }
.demo-result__steps { display: grid; gap: 12px; padding-left: 20px; margin-block: 20px; font-size: 13px; }
.demo-result__contact { color: var(--faint); font-size: 12px; }
/* Match the shared Design Component planner, including all three steps. */
#demo-dialog { width: min(560px, calc(100% - 40px)); padding: 8px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 -20px 80px -50px color-mix(in srgb, var(--accent) 40%, transparent); }
[data-theme='light'] #demo-dialog { --bg: #f8f7f3; }
#demo-dialog::backdrop { background: rgb(6 5 4 / .62); }
#demo-dialog .demo-shell { padding: 22px 24px 24px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 20px; }
#demo-dialog .demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#demo-dialog .demo-step-label { margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
#demo-dialog [data-demo-step-number] { color: var(--accent); }
#demo-dialog .dialog-close { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
#demo-dialog .dialog-close:hover { background: var(--raise); border-color: var(--muted); color: var(--text); }
#demo-dialog .dialog-close svg { display: block; }
#demo-dialog .demo-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
#demo-dialog .demo-progress span { height: 2px; border-radius: 2px; background: var(--line-2); transition: background .25s ease; }
#demo-dialog .demo-progress span:first-child,
#demo-dialog:is([data-step='contact'], [data-step='result']) .demo-progress span:nth-child(2),
#demo-dialog[data-step='result'] .demo-progress span:nth-child(3) { background: var(--accent); }
#demo-dialog h2 { margin: 0 0 8px; font: 500 24px/1.15 var(--sans); letter-spacing: -.03em; }
#demo-dialog h2 + p { font: 400 14px/1.55 var(--sans); color: var(--muted); }
#demo-dialog .demo-planner { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
#demo-dialog fieldset { min-width: 0; }
#demo-dialog legend { padding: 0; margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; }
#demo-dialog .demo-choice { align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0; border-radius: 10px; border-color: var(--line); }
#demo-dialog .demo-choice + .demo-choice { margin-top: 6px; }
#demo-dialog .demo-choice:hover { border-color: var(--line-2); }
#demo-dialog .demo-choice:has(input:checked) { background: var(--surface); border-color: var(--line-2); }
#demo-dialog .demo-choice input { appearance: none; flex: 0 0 14px; width: 14px; height: 14px; margin: 2px 0 0; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
#demo-dialog .demo-choice input:checked { border-color: var(--accent); }
#demo-dialog .demo-choice input:checked::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
#demo-dialog .demo-choice strong { font: 500 14.5px/1.25 var(--sans); color: var(--muted); }
#demo-dialog .demo-choice:has(input:checked) strong { color: var(--text); }
#demo-dialog .demo-choice small { font: 400 12.5px/1.45 var(--sans); }
#demo-dialog .planner-feedback, #demo-dialog .demo-result__contact { margin: 0; font: 400 11.5px/1.5 var(--mono); color: var(--faint); }
#demo-dialog [data-contact-feedback] { min-height: 17px; }
#demo-dialog .planner-actions { gap: 10px; margin: 0; }
#demo-dialog .button { display: inline-flex; align-items: center; gap: 8px; height: 42px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 9px; font: 500 14px/1 var(--sans); }
#demo-dialog .text-button { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; font: 500 13px/1 var(--sans); color: var(--muted); }
#demo-dialog .demo-field { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
#demo-dialog .demo-field > span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
#demo-dialog .demo-field input { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font: 400 13.5px/1 var(--mono); }
#demo-dialog .demo-contact b { font-weight: 500; color: var(--text); }
#demo-dialog .demo-result { display: flex; flex-direction: column; gap: 18px; }
#demo-dialog .demo-result h2 { display: flex; align-items: center; gap: 10px; margin-bottom: -10px; }
#demo-dialog .demo-result h2::before { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
#demo-dialog .demo-result__steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); counter-reset: demo-step; }
#demo-dialog .demo-result__steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 14px/1.45 var(--sans); counter-increment: demo-step; }
#demo-dialog .demo-result__steps li::before { content: counter(demo-step, decimal-leading-zero); padding-top: 3px; font: 400 11px/1 var(--mono); color: var(--accent); }
/* One opening screen, with the next section starting after the hero. Allow
   content to extend on short viewports rather than clipping copy or controls. */
@media (min-width: 961px) {
  /* Row 2 sizes to the stage, not the viewport; spare height goes to row 3. */
  .hero { grid-template-rows: auto auto 1fr; }
  .hero__index { align-self: end; }
  /* Pill + h1 match the Install page intro (pill top 121px, h1 top 168px). */
  .hero__copy { grid-row: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 64px 40px 28px 0; }
  .hero .eyebrow { margin-bottom: 19px; }
  .hero h1 { line-height: 1.02; }
  .hero__stage { grid-row: 1 / 3; align-self: start; width: 100%; height: auto; min-height: 0; aspect-ratio: 1904 / 2544; margin-block: 28px; box-shadow: 0 20px 60px rgb(0 0 0 / .18); }
  /* Rail stretches to the stage's bottom edge (stage margin-block is 28px). */
  .hero__side-rail { grid-column: 1; grid-row: 2; align-self: stretch; padding: 16px 24px 28px 0; }
  .home-intro-flow .hero__index { color: var(--muted); }
}
@media (max-width: 1199px) {
  .site-nav > a, .nav-group > summary { padding-inline: 9px; font-size: 12px; }
  .header-portal { padding-inline: 12px; font-size: 10px; }
  .home-header .wordmark { padding-inline: 18px; }
  .site-nav { padding-inline: 6px; }
  .screens-chrome__theme { margin-left: auto; }
  .screen-tabs { flex-basis: 100%; }
}
@media (min-width: 961px) and (max-height: 820px) {
  .hero__copy { padding-block: 24px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero__intro { margin-top: 18px; }
  .home-page .hero__intro.hero__note { font-size: 12px !important; }
  .hero .button-row { margin-top: 22px; }
  .hero__build { margin-top: 20px; }
  .hero__side-rail { padding-block: 12px 28px; }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; position: relative; }
  .home-header .wordmark { min-height: var(--header-h); border: 0; margin-right: auto; }
  .menu-toggle { display: flex; gap: 12px; align-items: center; border: 0; background: transparent; padding: 0 20px; font: 400 11px/1 var(--mono); }
  .site-nav { display: none; width: 100%; flex: none; flex-direction: column; padding: 12px 20px; border-top: 1px solid var(--line); order: 3; }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-group > summary { min-height: 46px; padding-inline: 10px; font-size: 14px; }
  .nav-group__menu { position: static; box-shadow: none; width: 100%; }
  .header-portal { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { grid-column: 1; padding: 44px 0 32px; }
  .hero__stage { grid-column: 1; grid-row: 3; min-height: 520px; margin: 0 0 28px; }
  .hero__side-rail { grid-row: 2; padding-right: 0; }
  .hero__intro { max-width: 62ch; }
  .kinetic-letter { font-size: clamp(95px, 16vw, 160px); }
  .use-case-list article { padding: 16px; }
  .use-case-list h3 { font-size: 20px; }
  .term { padding: 18px 20px; }
}
@media (max-width: 700px) {
  /* Phone headings match the inner pages: the hero at weight 500, tracking relaxed from
     -.045em, and the second tone on its own line rather than changing mid-line. */
  .hero .statement-word--1, .hero .statement-word--2 { font-weight: 500; }
  .hero h1, .section-heading h2, .system__statement h2, .closing h2 { letter-spacing: -.035em; }
  .section-heading h2 em, .section-heading h2 .outline-word { display: block; }
  .section-shell, .screens.section-shell, .terms.section-shell { padding-block: 36px; }
  /* The views stop sharing the tallest one's height: a 16:9 capture is about 185px tall
     here and the analytics set about 400px, so the others sat in bands of black. Hidden
     views stay laid out at no height, so the caption counter still counts them. */
  .screen-plates > .screen-plate[hidden] { height: 0; padding-block: 0; overflow: hidden; }
  /* The flow section runs about ten screens tall here, so the veil's 22% stop fell a
     whole screen down and hid the field behind the hero. It reaches that step at 560px. */
  .home-intro-flow::after { background: linear-gradient(180deg, var(--bg), rgb(var(--bg-rgb) / .58) 560px, rgb(var(--bg-rgb) / .35) 50%, rgb(var(--bg-rgb) / .65) 86%, var(--bg)); }
  [data-theme='light'] .home-intro-flow::after { background: linear-gradient(180deg, var(--bg), rgb(var(--bg-rgb) / .4) 560px, rgb(var(--bg-rgb) / .2) 50%, rgb(var(--bg-rgb) / .48) 86%, var(--bg)); }
  .system__scene { padding-bottom: 64px; }
  .hero__stage { min-height: 430px; }
  .stage-meta { flex-wrap: wrap; }
  .stage-caption { font-size: 12px; }
  .kinetic-letter { font-size: 17vw; }
  .stage-controls button { font-size: 11px; padding: 10px; }
  .hero__index { justify-content: flex-start; flex-wrap: wrap; gap: 10px 20px; }
  .hero__index i { display: none; }
  .hero__side-rail { gap: 8px; }
  .menu-toggle { padding-inline: 12px; }
  .home-header .wordmark { font-size: 12px; padding-inline: 20px; gap: 8px; }
  .screens-chrome { gap: 10px; }
  .screen-plate figcaption { flex-direction: column; gap: 8px; }
  .screen-tabs { width: 100%; }
  .screens-chrome__theme { margin-left: 0; }
  .plate-open { margin-left: auto; }
  .plate-shot--set { grid-template-columns: 1fr; }
  .plate-shot__stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .system__label { flex-direction: column; gap: 8px; }
  .system__label > p:last-child { font-size: 12px; }
  .system__statement h2 { font-size: 28px; }
  .use-case-list, .terms-set { grid-template-columns: 1fr; }
  .use-case-list article { padding: 16px; grid-row: auto; grid-template-rows: none; }
  .term { padding: 18px 20px; }
  .system__scene::before, .system__scene::after { top: auto; height: var(--landscape-height); }
  .terms-seal { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; gap: 28px; min-height: 460px; }
  .closing h2 { font-size: 28px; }
  .round-action { justify-self: start; }
  .closing__routes { grid-template-columns: 1fr; gap: 24px; }
  .concept-dialog { padding: 24px; }
}
