/* WrenchEngine V3 — the one stylesheet for every V3 page (the four legal pages keep v2.0's /styles.css).
   Tokens first (§3 of the V3 plan), then base, layout, components, flows, pages, motion.
   CSP: style-src 'self' — no inline styles anywhere; JS sets only CSS custom properties through CSSOM. */

/* ---------- Fonts (self-hosted, subset, OFL — licences beside the files) ---------- */
@font-face { font-family: "Oswald"; src: url("/assets/v3/fonts/oswald.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/v3/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/v3/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

/* ---------- Tokens ---------- */
/* THE WrenchEngine blue, defined once: the product's own brand-blue scale (servicebay-app
   apps/dispatcher-web/src/app/globals.css --color-brand-blue-*, oklch hue ≈ 264; --primary = 500 in both modes),
   converted to sRGB. 700 is exactly the logo's #103EB6; 400 and 300 are the logo's gradient tints.
   Text uses --brand (light: 700, 7.9:1 on the page; dark: 400, 6.2:1); filled buttons use --brand-fill (600 in both
   modes, white text 6.2:1) so the saturated WrenchEngine blue shows in dark mode too, not a pale tint. */
:root {
  --we-blue-300: #87B0FF; --we-blue-400: #5E91FF; --we-blue-500: #3B73F6; --we-blue-600: #1E54DD; --we-blue-700: #103EB6;
  color-scheme: light;
  --bg: #F4F3EE; --surface: #FFFFFF; --surface-2: #ECEBE4; --ink: #11191B; --ink-2: #4F5C60; --line: #D5DAD8;
  --brand: var(--we-blue-700); --brand-fill: var(--we-blue-600); --brand-ink: #FFFFFF; --amber: #F2A900; --ok: #1E8E5A; --ok-text: #16693F; --stop: #C4372B; --upgrade: #6B4FD8;
  --brand-soft: #3B73F61A; --dot: color-mix(in srgb, #11191B 16%, transparent); --amber-soft: #F2A90026; --ok-soft: #1E8E5A1F; --stop-soft: #C4372B1A; --upgrade-soft: #6B4FD81A;
  --glass: #F4F3EECC; --shadow-frame: 0 8px 24px -12px #0B141726; --shadow-card: 0 1px 2px #0B14170F;

  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --step-7: clamp(2.75rem, 5.6vw, 6rem); --step-6: clamp(2.35rem, 5vw, 5.5rem); --step-5: clamp(1.85rem, 3.3vw, 3.5rem);
  --step-4: clamp(1.45rem, 2.1vw, 2.1rem); --step-3: 1.5rem; --step-2: 1.125rem; --step-1: 1.25rem; --step-0: 1.0625rem; --step--1: .8125rem;

  --r-btn: 999px; --r-card: 16px; --r-frame: 20px; --r-chip: 999px;
  --dur-micro: 140ms; --dur-short: 260ms; --dur-frame: 480ms; --dur-draw: 700ms; --dur-step: 5200ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: linear(0, .5 18%, 1.03 45%, .99 70%, 1); --stagger: 60ms;
  --gutter: 16px; --max: clamp(1200px, 84vw, 1600px); --max-wide: 1840px; --max-xwide: clamp(1840px, 90vw, 2300px); --header-h: 96px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* Dark: the system preference unless the visitor chose light; or the visitor's explicit choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1417; --surface: #122027; --surface-2: #182A32; --ink: #EEF2F1; --ink-2: #A9B6B8; --line: #FFFFFF1F;
    --brand: var(--we-blue-400); --brand-fill: var(--we-blue-600); --brand-ink: #FFFFFF; --amber: #FFB81C; --ok: #4CC38A; --ok-text: #4CC38A; --stop: #FF6B5E; --upgrade: #A792FF;
    --brand-soft: #3B73F62E; --dot: #FFFFFF21; --amber-soft: #FFB81C24; --ok-soft: #4CC38A1F; --stop-soft: #FF6B5E1F; --upgrade-soft: #A792FF24;
    --glass: #0B1417CC; --shadow-frame: 0 24px 60px -24px #000000B3; --shadow-card: 0 1px 0 #FFFFFF0A, 0 12px 32px -20px #000000B3;
  }
}
:root[data-theme="dark"], .band-dark {
  color-scheme: dark;
  --bg: #0B1417; --surface: #122027; --surface-2: #182A32; --ink: #EEF2F1; --ink-2: #A9B6B8; --line: #FFFFFF1F;
  --brand: var(--we-blue-400); --brand-fill: var(--we-blue-600); --brand-ink: #FFFFFF; --amber: #FFB81C; --ok: #4CC38A; --ok-text: #4CC38A; --stop: #FF6B5E; --upgrade: #A792FF;
  --brand-soft: #3B73F62E; --dot: #FFFFFF21; --amber-soft: #FFB81C24; --ok-soft: #4CC38A1F; --stop-soft: #FF6B5E1F; --upgrade-soft: #A792FF24;
  --glass: #0B1417CC; --shadow-frame: 0 24px 60px -24px #000000B3; --shadow-card: 0 1px 0 #FFFFFF0A, 0 12px 32px -20px #000000B3;
}

/* ---------- Dot grid (round 5): fine, even dots behind art panels; never behind text-heavy areas ---------- */
.dotgrid { background-image: radial-gradient(var(--dot) 1.25px, transparent 1.65px); background-size: 18px 18px; background-position: 9px 9px; }
.dotgrid-fade { -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 62%, transparent 100%); }
@media (forced-colors: active) { .dotgrid { background-image: none; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.08; font-weight: 600; letter-spacing: -.005em; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: #11191B; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 2; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
/* Round 5: the flows use most of a large screen. */
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; }
/* The job flow's drawing scales with its panel, so it alone takes the extra width of a very large screen. */
.wrap-xwide { width: min(100% - 2 * var(--gutter), var(--max-xwide)); }
/* Big screens: everything in rem (type, spacing, mock-ups) scales up with the viewport. */
@media (min-width: 1680px) { html { font-size: clamp(100%, 0.45vw + 0.55rem, 118.75%); } }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: clamp(44px, 8vw, 104px); position: relative; }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.band { background: var(--bg); color: var(--ink); }
.band-alt { background: var(--surface-2); }
.band-dark { background: var(--bg); color: var(--ink); }
.band-dark.band-deep { background: #081013; }
.section-head { display: grid; gap: 16px; max-width: 880px; margin-bottom: clamp(28px, 4vw, 48px); }
/* MUST 4: a badge in a heading block keeps its own size. */
.section-head > .pill { justify-self: start; width: fit-content; }
.section-head.center > .pill { justify-self: center; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { font: 600 .875rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .num { color: var(--brand); font-variant-numeric: tabular-nums; }
.h1 { font-size: var(--step-7); font-weight: 700; letter-spacing: -.005em; line-height: 1.05; margin-bottom: .25em; text-wrap: balance; }
.h2 { font-size: var(--step-6); font-weight: 650; line-height: 1.05; }
.h3 { font-size: var(--step-5); font-weight: 600; line-height: 1.08; }
.h4 { font-size: var(--step-4); font-weight: 600; line-height: 1.1; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.5; }
.stack { display: grid; gap: 16px; }
.stack > .btn, .stack > .pill, .stack > .link-arrow { justify-self: start; }
/* Grid children may shrink below their content's width (long chips and mock rows ellipsize instead of widening the page). */
.stack > *, .cols > *, .bento > *, .hero-grid > *, .page-hero-split > *, .ai-grid > *, .demo-grid > *, .tour > *, .rt-grid > *, .shots > *, .flow-steps > *, .flow-variant > *, .flow-screens > *, .card > *, .ui > *, .flow { min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cols { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .cols-2, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3, .cols-5, .cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cols-3, .cols-6 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .cols-5 { grid-template-columns: repeat(6, 1fr); }
  .cols-5 > * { grid-column: span 2; }
  .cols-5 > :nth-child(4) { grid-column: 2 / span 2; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: transform var(--dur-short) var(--ease-out); view-transition-name: site-header; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
/* Rounds 9–10: a taller header (96px; 80px on phones) and a logo sized to match (52px; 46px). Every sticky offset and anchor landing
   reads --header-h, so they move with it. */
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; color: var(--ink); text-decoration: none; font: 700 1.55rem/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.brand img { width: 52px; height: 52px; }
@media (max-width: 767px) { :root { --header-h: 80px; } .brand img { width: 46px; height: 46px; } .brand { font-size: 1.375rem; } }
.site-footer .brand img { width: 36px; height: 36px; }
.site-footer .brand { font-size: 1.2rem; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light, .band-dark .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark, .band-dark .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; min-width: 44px; padding: 10px 14px; border-radius: var(--r-btn); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1rem; }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; } }
.menu-btn { display: none; }
.nav-demo { margin-left: 10px; }
/* Round 10: the header is 96px (80px on phones); its round controls grow with it, still vertically centred. */
.site-header .icon-btn { width: 48px; height: 48px; }
.site-header .nav-demo { min-height: 48px; }
/* The full nav needs about 1176px (round 20: between 1100 and 1175 its items wrapped onto two lines), so the menu
   button takes over below 1200. */
@media (max-width: 1199px) {
  .menu-btn { display: inline-grid; }
  .nav .nav-demo { display: none; }
  .nav-links { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); display: none; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; }
  .nav-links .nav-links-demo { display: block; margin-top: 12px; }
}
@media (min-width: 1200px) { .nav-links .nav-links-demo { display: none; } }

/* ---------- Buttons, links, pills, tags, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-btn); font: 650 1rem/1.1 var(--font-text); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro), border-color var(--dur-micro); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-fill); color: var(--brand-ink); }
.btn-primary:hover { background: var(--we-blue-700); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 650; color: var(--brand); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform var(--dur-short) var(--ease-out); }
.link-arrow[data-kind="page"]:hover .icon { transform: translate(2px, -2px); }
.link-arrow[data-kind="down"]:hover .icon { transform: translateY(3px); }
.link-arrow[data-kind="next"]:hover .icon { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-chip); font: 600 .75rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill-upgrade { color: var(--upgrade); background: color-mix(in srgb, var(--upgrade) 10%, var(--surface)); /* opaque (round 16b): on a tinted band the old translucent ground left the label at 4.13:1 */ border: 1px solid color-mix(in srgb, var(--upgrade) 45%, transparent); }
.pill-rolling { color: var(--ink); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 60%, transparent); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-chip); font: 600 .8125rem/1 var(--font-text); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-live::before { background: var(--ok); }
.status-rolling::before { background: var(--amber); }
.pill-coming { color: var(--ink); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 70%, transparent); }
.pill-core { color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-chip); font: 600 .78rem/1.35 var(--font-text); white-space: nowrap; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); flex: none; }
.chip-ok::before { background: var(--ok); } .chip-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.chip-wait::before { background: var(--amber); } .chip-wait { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.chip-stop::before { background: var(--stop); } .chip-stop { background: var(--stop-soft); border-color: color-mix(in srgb, var(--stop) 35%, transparent); }
.chip-info::before { background: var(--brand); } .chip-info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-card); display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: var(--step-4); line-height: 1.1; }
.card p { color: var(--ink-2); }
.card .card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card .card-icon .icon { width: 22px; height: 22px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.card-upgrade { border-color: color-mix(in srgb, var(--upgrade) 40%, var(--line)); }
.card-upgrade .card-icon { background: var(--upgrade-soft); color: var(--upgrade); }
a.card { text-decoration: none; color: inherit; transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short); }
a.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento > .wide { grid-column: span 2; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); overflow: clip; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  /* the copy stays centred in its full-height column (round 16c: the hairline between the words and the art is gone; the field runs behind both) */
  .hero-grid > .hero-copy { align-self: stretch; align-content: center; padding-right: clamp(24px, 3vw, 56px); }
}
/* Below 1200px the hero stacks: the composition gets the full width (capped), so the card is always wider than its pill. */
@media (min-width: 900px) and (max-width: 1199px) { .hero-grid .hc { max-width: 760px; margin: 24px auto 0; aspect-ratio: 100 / 80; } }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero-copy .lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
/* Headlines (round 6). Oswald: ascent 1.193em, descent 0.289em, cap height 0.81em; the "p" descends 0.19em. At
   line-height 1.05 a descender clears the next line's capitals by 0.05em and hangs 0.12em below its own line box, so
   a 0.25em bottom margin keeps the subtitle clear of it. Sized so "More time for / the repair." sets on two lines from
   1200px up (one line on a stacked tablet), never one word per line. */
.hero .h1 { font-size: clamp(2.75rem, 5.6vw, 6rem); line-height: 1.05; margin-bottom: .25em; text-wrap: balance; }
.page-hero { padding-block: clamp(32px, 5vw, 80px) clamp(28px, 4vw, 56px); }
.page-hero .h1 { font-size: clamp(2.5rem, 5.2vw, 5.75rem); line-height: 1.05; margin-bottom: .25em; max-width: 20ch; text-wrap: balance; }
.page-hero .h1.w-narrow { max-width: 15ch; }
.page-hero .h1.w-wide { max-width: 24ch; }
.page-hero .hero-copy { max-width: 900px; }
.page-hero-split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1024px) { .page-hero-split { grid-template-columns: 1.1fr .9fr; } }

/* The hero composition (HeroComposition.astro): four objects in one perspective — the tilted dispatch board, the
   phone floating in front, the "Your OK" record and an "INV-1088 · Paid" chip on their own depth planes with thin
   leader lines — over a dot grid that fades at the edges. Motion: the job plays on a timer, the layers float, and the scene leans toward the pointer (--px/--py); see the loop below and the round 17–18 block. */
.hc { position: relative; width: 100%; aspect-ratio: 100 / 80; min-height: 610px; perspective: 1400px; perspective-origin: 70% 40%; --px: 0; --py: 0; }
/* round 17: every layer lives in one wrapper with the scene's own perspective. The layers are still flattened in their
   stacking order (a shared 3D space would let the tilted board cut through the phone); the wrapper is what tilts. */
.hc-tilt { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 70% 40%; }
.hc-back { position: absolute; inset: -6% -8% -6% -6%; pointer-events: none; }
.hc-glow { position: absolute; inset: 0 -4% 0 6%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-fill) 24%, transparent), transparent 72%); }
.hc-board { position: absolute; left: 0; top: 4%; width: 86%; transform-origin: 30% 50%; transform: rotateY(-20deg) rotateX(9deg) rotateZ(-1deg) translate3d(0, 0, -30px); }
.hc-board .frame-web { box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 18%, transparent), 0 14px 28px -12px #0B141740, 0 50px 80px -40px #0B141766; }
.hc-cols { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.hc-col { grid-row: 1; display: grid; align-content: start; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); min-height: 248px; }
.hc-col:nth-child(1) { grid-column: 1; } .hc-col:nth-child(2) { grid-column: 2; } .hc-col:nth-child(3) { grid-column: 3; } .hc-col:nth-child(4) { grid-column: 4; }
.hc-col-head { font: 600 .9375rem/1.2 var(--font-display); color: var(--ink-2); letter-spacing: .01em; }
.hc-slot { height: 124px; }
.hc-ghost { height: 52px; border-radius: 10px; background: var(--surface); opacity: .55; border: 1px solid var(--line); }
/* The card, lifted off its column: a visible edge (thickness) and a contact + ambient shadow. */
.hc-card { grid-row: 1; grid-column: 1; z-index: 1; align-self: start; margin: 41px 2px 0; display: grid; justify-items: start; gap: 6px; padding: 10px; min-width: 0; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  /* round 23: calm at rest, no coloured edge: a hairline and a soft neutral lift (it had a 1.5px blue border and a 3px
     blue bar under it, which read as a thick blue edge on the tilted board) */
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent), 0 8px 10px -6px #0B141740, 0 22px 34px -18px #0B141766; transform: translateX(calc(300% + 36px)) translateY(-4px) rotate(-1.5deg); }
.hc-card strong { font: 700 1.05rem/1.1 var(--font-display); letter-spacing: .01em; }
.hc-card-line { font-size: .875rem; line-height: 1.3; }
.hc-card-sub { font-size: .875rem; color: var(--ink-2); }
.hc-card-sub > span { display: block; white-space: nowrap; }
.hc-card .chip { font-size: .875rem; padding: 2px 9px; max-width: 100%; }
.hc-cycle { display: inline-grid; max-width: 100%; }
.hc-cycle > * { grid-area: 1 / 1; opacity: 0; justify-self: start; }
/* Round 18: with nothing animating (reduced motion, "Pause motion", off screen) the scene shows ONE moment of the job:
   Repairing, 1:10 PM. The card is in Repairing, the tracker says so, every earlier activity entry and the customer's OK
   are there, and the invoice chip is not: at that moment nothing has been paid. */
.hc-card .hc-cycle > :nth-child(5), .hc-trk-states > :nth-child(5) { opacity: 1; }
.hc-phone { position: absolute; right: 0; bottom: 3%; width: 30%; max-width: 230px; z-index: 3; transform: translate3d(0, 0, 90px) rotateY(-10deg) rotateX(4deg); filter: drop-shadow(0 30px 30px #0B141740); }
.hc-trk { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: 17cqi 7cqi 17cqi; } /* round 16: the tracker's few lines sit in the middle of the phone, not at the top of an empty one */
.hc-trk-shop { font-size: .875rem; color: var(--ink-2); }
.hc-trk-states { display: grid; }
.hc-trk-state { display: grid; gap: 6px; }
.hc-trk-state strong { font: 700 1.15rem/1.1 var(--font-display); }
.hc-trk-time { font-size: .875rem; color: var(--ink-2); }
.hc-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.hc-bar i { height: 6px; border-radius: 3px; background: var(--surface-2); }
.hc-bar i.on { background: var(--brand-fill); }
.hc-trk-step { font-size: .875rem; color: var(--ink-2); }
.hc-trk-line { font-size: .875rem; line-height: 1.35; }
/* Round 19: the tracker's route strip (the technician's truck on its way to the unit, then on site) and the money line. */
.hc-route { position: relative; display: block; height: 40px; margin-bottom: 4px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 9%, var(--surface-2)); overflow: hidden; }
.hc-route-line { position: absolute; left: 10%; right: 14%; top: 50%; height: 0; border-top: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
.hc-route-truck, .hc-route-pin { position: absolute; top: 50%; display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; }
.hc-route-truck { left: calc(10% + 76% * var(--at, 0) / 100); background: var(--brand-fill); color: #fff; } .hc-route-truck .icon { width: 12px; height: 12px; }
.hc-route-pin { left: 86%; color: var(--amber); } .hc-route-pin .icon { width: 16px; height: 16px; }
.hc-route-46 { --at: 46; } .hc-route-4 { --at: 4; } .hc-route-100 { --at: 76; }
.hc-route b { position: absolute; left: 8px; top: 1px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.hc-route-line { top: 68%; } .hc-route-truck, .hc-route-pin { top: 68%; }
/* the six steps, shown where the phone is large enough to carry them (the near phone of the two-column hero) */
.hc-steps { display: none; list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); gap: 5px; font-size: .8125rem; color: var(--ink-2); }
.hc-steps li { display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 8px; }
.hc-steps i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink-2) 50%, transparent); }
.hc-steps .is-done i { background: var(--ok); border-color: var(--ok); }
.hc-steps .is-now i { background: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-fill) 28%, transparent); }
.hc-steps .is-now { color: var(--ink); font-weight: 650; } .hc-steps .is-done { color: var(--ink); }
.hc-trk-meta { display: grid; gap: 2px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.hc-trk-money strong { color: var(--ok); font-weight: 700; }
/* the Your OK step's two money lines, stacked: the estimate, then the approved amount once the customer has said yes */
.hc-money-swap { display: grid; } .hc-money-swap > * { grid-area: 1 / 1; } .hc-money-swap > :last-child { opacity: 0; }
/* The two floating chips, each on its own plane with a thin leader line toward what it belongs to. */
.hc-record, .hc-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 4px 8px -4px #0B141733, 0 18px 34px -18px #0B141780; }
.hc-record { position: relative; margin-left: 30%; }
.hc-labor { display: none; }
.hc-record .hc-rec-text { white-space: nowrap; }
.hc-float { right: 26%; top: -3%; padding: 10px 14px; transform: translate3d(0, 0, 40px); opacity: 0; }
.hc-record strong, .hc-float strong { display: block; font: 700 1.05rem/1.15 var(--font-display); letter-spacing: .01em; }
.hc-record .hc-rec-text { display: block; font-size: .875rem; color: var(--ink-2); }
.hc-float > span:last-child { display: flex; align-items: center; gap: 8px; }
.hc-record::before, .hc-float::before { content: ""; position: absolute; border-left: 1.5px dashed color-mix(in srgb, var(--brand) 55%, transparent); width: 0; }
.hc-record::before { left: 34px; bottom: 100%; height: 17px; }
.hc-float::before { left: 30px; top: 100%; height: 40px; }
.hc-record-icon, .hc-float-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.hc-float-icon { width: 34px; height: 34px; background: var(--brand-soft); color: var(--brand); }
/* "Live activity" (round 6): the fifth object, on its own plane below the board — the same SO's story so far, newest
   last with a soft pulse; the "Your OK" chip hangs off its approval row by a leader line. */
/* Round 7: the story block tucks under the board's lower-left edge (its top overlaps the board by ~25px). The
   board's drawn height is ~345px at every desktop width (its parts are px-sized), so the offset is in px too. */
.hc-story { position: absolute; z-index: 4; left: 0; top: 322px; width: 58%; display: grid; justify-items: start; gap: 16px; transform: translate3d(0, 0, 40px); }
.hc-activity { position: relative; justify-self: stretch; display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 4px 8px -4px #0B141733, 0 18px 34px -18px #0B141780; }
.hc-act-head { display: flex; justify-content: space-between; gap: 10px; font: 600 .875rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.hc-act-head .mono { font: 500 .875rem/1.2 var(--font-mono); letter-spacing: 0; text-transform: none; }
.hc-activity ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hc-activity li { display: grid; grid-template-columns: 10px auto 1fr; align-items: center; gap: 10px; font-size: .875rem; white-space: nowrap; }
.hc-activity li .mono { font-size: .875rem; color: var(--ink-2); }
.hc-activity li > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.hc-activity li i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: .5; }
.hc-activity li.is-ok i { background: var(--ok); opacity: 1; }
.hc-activity li.is-new i { background: var(--brand-fill); opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .rt-live .hc-activity li.is-new i { animation: hc-pulse 1.6s ease-in-out infinite; } }
@keyframes hc-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-fill) 45%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }
/* The job, playing by itself (round 18). One 20-second loop through the job in the order of the times printed in the
   scene, so every moment is one coherent state:
     Booked 10:05 · On the way 10:42 (the activity list appears with that entry) · Estimate sent 11:20 · Approved 11:34 ·
     the customer's OK · Parts pulled 11:35 · Repairing 1:10 · Ready 2:25: the card leaves the board and the paid invoice
     arrives · then everything clears and the next job is booked.
   Things appear and disappear in 200 ms (1% of the loop), never slower, so no panel ever sits half-faded; only the card's
   move between columns takes longer. Every part starts 8.2 s into the loop (round 19), so the first thing a visitor sees is a job
   already under way: on the way, the estimate sent, and the approval arriving in the first half second. Runs only while on screen (.rt-live), not
   under reduced motion, not when "Pause motion" is pressed. Round 25: at every width, phones included, on the same clock (under 560px the card
   takes its own two-lane path, below); only the pointer tilt is wide-screen only. */
@media (prefers-reduced-motion: no-preference) {
  .rt-live .hc-card { animation: hc-job-card 20s linear -8.2s infinite both; }
  .rt-live .hc-cycle > * { animation: hc-job-t1 20s linear -8.2s infinite both; }
  .rt-live .hc-cycle > :nth-child(2) { animation-name: hc-job-t2; } .rt-live .hc-cycle > :nth-child(3) { animation-name: hc-job-t3; } .rt-live .hc-cycle > :nth-child(4) { animation-name: hc-job-t4; }
  .rt-live .hc-trk-states > :nth-child(5) { animation-name: hc-job-t5; } .rt-live .hc-trk-states > :nth-child(6) { animation-name: hc-job-t6; }
  .rt-live .hc-card .hc-cycle > :nth-child(5) { animation-name: hc-job-c5; }
  .rt-live .hc-activity { animation: hc-job-act 20s linear -8.2s infinite both; }
  .rt-live .hc-activity li:nth-child(n+2) { animation: hc-job-row2 20s linear -8.2s infinite both; }
  .rt-live .hc-activity li:nth-child(3) { animation-name: hc-job-row3; } .rt-live .hc-activity li:nth-child(4) { animation-name: hc-job-row4; }
  .rt-live .hc-record { animation: hc-job-ok 20s linear -8.2s infinite both; }
  .rt-live .hc-money-swap > * { animation: hc-job-est 20s linear -8.2s infinite both; } .rt-live .hc-money-swap > :last-child { animation-name: hc-job-apr; }
  .rt-live .hc-labor { animation: hc-job-labor 20s linear -8.2s infinite both; }
  .rt-live .hc-labor-state { animation: hc-job-l1 20s linear -8.2s infinite both; }
  .rt-live .hc-labor-state:nth-child(2) { animation-name: hc-job-l2; } .rt-live .hc-labor-state:nth-child(3) { animation-name: hc-job-l3; } .rt-live .hc-labor-state:nth-child(4) { animation-name: hc-job-l4; }
}
/* While it moves the card lifts a little more and tilts, as if dragged; it settles in each column. At "Ready" it leaves
   the board; it comes back, unseen, to Booked for the next job. */
@keyframes hc-job-card {
  0%, 10% { transform: translateX(0) translateY(-4px) rotate(-1.5deg); }
  12% { transform: translateX(calc(50% + 6px)) translateY(-12px) rotate(-4deg); }
  14%, 22% { transform: translateX(calc(100% + 12px)) translateY(-4px) rotate(-1.5deg); }
  23.5% { transform: translateX(calc(150% + 18px)) translateY(-12px) rotate(-4deg); }
  25%, 62% { transform: translateX(calc(200% + 24px)) translateY(-4px) rotate(-1.5deg); }
  64% { transform: translateX(calc(250% + 30px)) translateY(-12px) rotate(-4deg); }
  66% { transform: translateX(calc(300% + 36px)) translateY(-4px) rotate(-1.5deg); }
  82% { transform: translateX(calc(300% + 36px)) translateY(-4px) rotate(-1.5deg); opacity: 1; }
  83%, 90% { transform: translateX(calc(300% + 36px)) translateY(-4px) rotate(-1.5deg); opacity: 0; }
  91%, 96% { transform: translateX(0) translateY(-4px) rotate(-1.5deg); opacity: 0; }
  97%, 100% { transform: translateX(0) translateY(-4px) rotate(-1.5deg); opacity: 1; }
}
/* Round 25, phones under 560px: the board shows two lanes, On site and Repairing, so the card's path is its own. While
   the job is Booked or On the way (lanes not on this board) the card is off the board; it slides in from the left
   into On site as the status turns to Checking (25%), moves to Repairing with the status (64-66%), leaves at Ready
   like the desktop card, and goes back unseen. It never rests in a lane its status chip contradicts (round 24). */
@media (max-width: 559px) and (prefers-reduced-motion: no-preference) {
  .rt-live .hc-card { animation-name: hc-job-cardsm; }
}
@keyframes hc-job-cardsm {
  0%, 23% { transform: translateX(-28px) translateY(-12px) rotate(-4deg); opacity: 0; }
  24% { opacity: 0; }
  25%, 62% { transform: translateX(0) translateY(-4px) rotate(-1.5deg); opacity: 1; }
  64% { transform: translateX(calc(50% + 12px)) translateY(-12px) rotate(-4deg); }
  66% { transform: translateX(calc(100% + 24px)) translateY(-4px) rotate(-1.5deg); }
  82% { transform: translateX(calc(100% + 24px)) translateY(-4px) rotate(-1.5deg); opacity: 1; }
  83%, 90% { transform: translateX(calc(100% + 24px)) translateY(-4px) rotate(-1.5deg); opacity: 0; }
  91%, 100% { transform: translateX(-28px) translateY(-12px) rotate(-4deg); opacity: 0; }
}
/* Round 23: the six tracker steps, and the card's status chip with them, so the phone, the board, the activity list and
   the two chips agree at every moment: Booked 0–13% · On the way 14–24% (10:42) · Checking 25–34% (11:02) · Your OK
   35–65% (estimate sent 11:20, approved 11:34 at 46%) · Repairing 66–82% (parts pulled, clocked in 1:10) · Ready
   83–95% (2:25, paid) · clear. */
@keyframes hc-job-t1 { 0%, 13% { opacity: 1; } 14%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes hc-job-t2 { 0%, 13% { opacity: 0; } 14%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes hc-job-t3 { 0%, 24% { opacity: 0; } 25%, 34% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes hc-job-t4 { 0%, 34% { opacity: 0; } 35%, 65% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes hc-job-t5 { 0%, 65% { opacity: 0; } 66%, 82% { opacity: 1; } 83%, 100% { opacity: 0; } }
@keyframes hc-job-t6 { 0%, 82% { opacity: 0; } 83%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hc-job-c5 { 0%, 65% { opacity: 0; } 66%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hc-job-act { 0%, 15% { opacity: 0; translate: 0 10px; } 16%, 95% { opacity: 1; translate: none; } 96%, 100% { opacity: 0; translate: none; } }
@keyframes hc-job-row2 { 0%, 34% { opacity: 0; } 35%, 100% { opacity: 1; } }
@keyframes hc-job-row3 { 0%, 45% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes hc-job-row4 { 0%, 65% { opacity: 0; } 66%, 100% { opacity: 1; } }
/* round 25c: the phone's money line turns from the estimate to the approved amount as the OK card arrives (46%) */
@keyframes hc-job-est { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes hc-job-apr { 0%, 45% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes hc-job-ok { 0%, 45% { opacity: 0; translate: 0 8px; scale: 1.08; } 46% { opacity: 1; translate: none; scale: 1.08; } 49%, 95% { opacity: 1; translate: none; scale: 1; } 96%, 100% { opacity: 0; translate: none; scale: 1; } }
/* the technician's chip is there for as long as the activity list is (round 22), and says what is true at each moment:
   on the way (dispatched 10:42), on site (arrived 11:02, as the tracker turns to Checking), on the job (clocked in 1:10,
   as it turns to Repairing), job done (clocked out 2:25, as it turns to Ready). */
@keyframes hc-job-labor { 0%, 15% { opacity: 0; translate: 0 8px; } 16%, 95% { opacity: 1; translate: none; } 96%, 100% { opacity: 0; translate: none; } }
@keyframes hc-job-l1 { 0%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes hc-job-l2 { 0%, 24% { opacity: 0; } 25%, 65% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes hc-job-l3 { 0%, 65% { opacity: 0; } 66%, 82% { opacity: 1; } 83%, 100% { opacity: 0; } }
@keyframes hc-job-l4 { 0%, 82% { opacity: 0; } 83%, 100% { opacity: 1; } }
@keyframes hc-job-paid { 0%, 83% { opacity: 0; scale: .92; } 84%, 95% { opacity: 1; scale: 1; } 96%, 100% { opacity: 0; scale: 1; } }
/* Narrow screens: flat — the board on top, then the record card beside the phone; the invoice chip rests on the board.
   No pointer tilt; the job loop plays here too (round 25). Phones under 560px show two columns (On site, Repairing), so
   the card is wide enough for its pill. */
@media (max-width: 899px) {
  .hc-tilt { display: contents; }
  .hc { aspect-ratio: auto; perspective: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; padding-top: 24px; }
  .hc-back { inset: -4% -4% -4% -4%; }
  .hc-glow { display: none; }
  .hc-board { position: relative; grid-column: 1 / -1; width: 100%; top: 0; transform: none; }
  .hc-phone { position: relative; grid-column: 2; grid-row: 2; width: min(42vw, 200px); bottom: auto; right: auto; margin-top: -48px; transform: none; filter: drop-shadow(0 18px 18px #0B141740); }
  .hc-record { padding: 12px; margin-left: 0; }
  /* round 25c: the paid chip lands inside the board, below its title bar and column heads, in the Repairing lane the
     card has just left. Placed in the board's own grid row (both lines, 1 / 2: an absolutely placed grid item's auto
     end line is the scene's edge) and measured from the board's bottom edge, which the row aligns to its end, so it
     holds its place whatever the row's height. */
  .hc-float { grid-row: 1 / 2; grid-column: 1 / -1; top: auto; right: 18px; bottom: 120px; transform: none; }
  .hc-record::before, .hc-float::before { display: none; }
  .hc-col { min-height: 220px; }
  .hc-ghost { display: none; }
  .hc-story { position: relative; grid-column: 1; grid-row: 2; left: auto; top: auto; width: auto; transform: none; align-self: start; margin-top: 12px; gap: 12px; }
}
@media (max-width: 559px) {
  .hc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .hc-col:nth-child(1), .hc-col:nth-child(2) { display: none; } .hc-col:nth-child(3) { grid-column: 1; } .hc-col:nth-child(4) { grid-column: 2; }
  .hc-col { padding: 8px; }
  .hc-card { margin: 38px 8px 0; padding: 10px; transform: translateX(calc(100% + 24px)) translateY(-4px) rotate(-1.5deg); }
  .hc-float { padding: 8px 10px; }
  .hc-float-icon { display: none; }
  /* Round 25b: the column left of the phone carries the job's Live activity as a compact card above the OK, so the
     space is never empty. Each row is one short paragraph (dot, time, what happened) that wraps in the narrow column
     rather than being cut off; it plays in the loop like the desktop list and rests at Repairing when still. */
  .hc-activity { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; }
  .hc-act-head { font-size: .75rem; } .hc-act-head .mono { display: none; }
  .hc-activity ol { gap: 5px; }
  .hc-activity li { display: block; position: relative; padding-left: 14px; white-space: normal; font-size: .8125rem; line-height: 1.3; }
  .hc-activity li i { position: absolute; left: 0; top: .45em; width: 7px; height: 7px; }
  .hc-activity li .mono { font-size: .75rem; margin-right: 5px; }
  .hc-story { align-self: end; margin-top: 0; grid-template-columns: minmax(0, 1fr); }
  /* Phones: no icon tile, so the two text lines get the column's whole width — never more than two lines. */
  .hc-record { gap: 0; padding: 10px 12px; }
  .hc-record-icon { display: none; }
  .hc-record .hc-rec-sep { display: none; }
  .hc-record .hc-rec-n { display: block; }
}
/* the smallest phones (under 360px): the column is ~140px wide, so the list drops its heading (the timed rows read as a
   log on their own) and sets its rows at 12px, to fit beside the phone without making the hero taller; the OK card sets
   its text a size smaller so its title stays on one line inside its column (round 25c) */
@media (max-width: 359px) {
  .hc-activity { padding: 8px 10px; }
  .hc-act-head { display: none; }
  .hc-activity ol { gap: 4px; }
  .hc-activity li { font-size: .75rem; line-height: 1.25; }
  .hc-record { padding: 8px 9px; }
  .hc-record strong { font-size: .875rem; }
  .hc-record .hc-rec-text { font-size: .8125rem; }
}
/* round 25c, 360px and under: the phone is ~134-150px wide, so its tracker drops the shop name and "Step N of 6" (the
   bar already shows the step), keeps the unit line to one line, and starts below the camera notch, so every line from the
   route strip to the money line sits on its screen (all inside the phone, so the hero's height is untouched) */
@media (max-width: 360px) {
  .hc-trk { align-content: start; padding-block: 16cqi 8cqi; gap: 4px; }
  .hc-trk-shop, .hc-trk-step { display: none; }
  .hc-route { height: 32px; }
  .hc-trk-meta > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

.credit { font-size: .75rem; color: var(--ink-2); }

/* ---------- Device frames and screenshot placeholders ---------- */
.shot { margin: 0; display: grid; gap: 10px; }
.shot figcaption { font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.shot figcaption strong { color: var(--ink); }
.frame-web { border-radius: var(--r-frame); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-frame); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink-2) 35%, transparent); }
.frame-bar span { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: var(--surface); font: 500 .75rem/22px var(--font-mono); color: var(--ink-2); padding-inline: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-doc { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-frame); overflow: hidden; }
.ratio-web { aspect-ratio: 16 / 10; }
.ratio-crop { aspect-ratio: 4 / 3; }
.ratio-phone { aspect-ratio: 1284 / 2778; }
.ratio-phone-crop { aspect-ratio: 3 / 4; }
.ratio-email { aspect-ratio: 4 / 3; }
.ratio-pdf { aspect-ratio: 1 / 1.294; }
.placeholder { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; text-align: center; height: 100%; color: var(--ink-2); background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink-2) 7%, transparent) 14px 15px), var(--surface); }
.placeholder .ph-id { font: 700 .75rem/1 var(--font-mono); letter-spacing: .06em; color: var(--brand); background: var(--brand-soft); padding: 6px 10px; border-radius: var(--r-chip); }
.placeholder .ph-title { font: 700 1rem/1.25 var(--font-display); color: var(--ink); max-width: 30ch; }
.placeholder .ph-note { font-size: .78rem; line-height: 1.4; max-width: 34ch; }
.shot-phone { max-width: 300px; width: 100%; justify-self: center; }
.shot-phone-crop { max-width: 320px; width: 100%; justify-self: center; }
.shot .phone .placeholder { font-size: .9rem; }
.shots { display: grid; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
/* SHOULD 7: a main capture beside its companion; stacked on phones; one item takes the row. */
@media (min-width: 900px) { .shots-pair { grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); } .shots-pair:has(> :only-child) { grid-template-columns: minmax(0, 1fr); } }
.shot-zoom { display: block; color: inherit; text-decoration: none; border-radius: var(--r-frame); }
.shot-zoom img { width: 100%; }

/* ---------- Coded UI mock pieces (inside frames) ---------- */
.ui { display: grid; gap: 10px; padding: 14px; font-size: .875rem; line-height: 1.35; color: var(--ink); align-content: start; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ui-title { font: 700 1rem/1.2 var(--font-display); }
.ui-sub { color: var(--ink-2); font-size: .75rem; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ui-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-row .mono { color: var(--ink-2); }
.ui-row.is-new { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-soft); }
.ui-row.is-off { opacity: .5; text-decoration: line-through; }
.ui-field { display: grid; gap: 3px; }
.ui-field label, .ui-field .ui-label { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.ui-field .ui-value { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 31px; }
.ui-field .ui-value.is-filled { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.ui-fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.ui-fields .span-2 { grid-column: 1 / -1; }
.ui-heard { padding: 10px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.ui-heard .bars { overflow: hidden; max-width: 100%; }
.ui-heard em { font-style: normal; color: var(--ink-2); }
.ui-ask { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--brand-soft); }
.ui-ask b { font-weight: 650; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-btn); background: var(--brand-fill); color: var(--brand-ink); font-weight: 650; font-size: .8125rem; white-space: nowrap; }
.ui-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.ui-btn.is-pressed { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.ui-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px dashed var(--line); font-weight: 650; }
.ui-total .mono { font-size: 1rem; color: var(--ink); }
.ui-note { font-size: .8125rem; color: var(--ink-2); }
.ui-toast { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.ui-toast .icon { color: var(--brand); width: 18px; height: 18px; }
.ui-toast b { display: block; font-size: .875rem; }
.ui-bubble { max-width: 85%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); }
.ui-bubble.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--brand-fill); color: var(--brand-ink); }
.ui-bubble .ui-photo { margin-top: 6px; height: 64px; border-radius: 8px; background: linear-gradient(135deg, #5d6b70, #2f3b3f); display: grid; place-items: center; color: #fff; }
.ui-bubble .ui-photo .icon { width: 20px; height: 20px; opacity: .8; }
.ui-check { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.ui-check .icon { width: 16px; height: 16px; margin-top: 1px; }
.ui-check.ok .icon { color: var(--ok); }
.ui-check.warn { border-color: color-mix(in srgb, var(--stop) 45%, var(--line)); background: var(--stop-soft); }
.ui-check.warn .icon { color: var(--stop); }
.ui-check.fixed { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.ui-check.fixed .icon { color: var(--ok); }
.ui-meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; width: 64px; flex: none; }
.ui-meter i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.ui-meter .m-90 { width: 90%; } .ui-meter .m-80 { width: 80%; } .ui-meter .m-70 { width: 70%; } .ui-meter .m-60 { width: 60%; } .ui-meter .m-50 { width: 50%; } .ui-meter .m-40 { width: 40%; }
.ui-part { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.ui-part .ui-meter { width: 100%; }
.ui-part small { color: var(--ink-2); grid-column: 1 / -1; font-size: .8125rem; }
.ui-map { height: 88px; border-radius: 12px; background:
  linear-gradient(90deg, transparent 48%, color-mix(in srgb, var(--ink-2) 25%, transparent) 48% 52%, transparent 52%),
  linear-gradient(0deg, transparent 60%, color-mix(in srgb, var(--ink-2) 18%, transparent) 60% 63%, transparent 63%), var(--surface-2); position: relative; }
.ui-map .pin { position: absolute; left: 30%; top: 40%; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.ui-map .dest { position: absolute; right: 22%; top: 22%; width: 12px; height: 12px; border-radius: 3px; background: var(--amber); }
.ui-lock { display: grid; gap: 10px; align-content: start; padding: 22cqi 12px 14px; min-height: 100%; background: linear-gradient(170deg, #1d3a8a, #0B1417); color: #fff; }
.ui-lock .time { font: 700 2.4rem/1 var(--font-display); text-align: center; }
.ui-lock .ui-toast { color: var(--ink); }
.ui-glow { padding: 14px; border-radius: 16px; text-align: center; background: var(--brand-soft); border: 1.5px solid var(--brand); }
.ui-glow b { display: block; font-size: .95rem; }
.ui-pdf { display: grid; gap: 6px; padding: 14px; }
.ui-pdf .bar { height: 7px; border-radius: 3px; background: var(--surface-2); }
.ui-pdf .bar.w60 { width: 60%; } .ui-pdf .bar.w80 { width: 80%; } .ui-pdf .bar.w40 { width: 40%; }
.ui-stamp { justify-self: start; padding: 4px 10px; border: 2px solid var(--ok); color: var(--ok); border-radius: 6px; font: 700 .8rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.ui-hr { height: 1px; background: var(--line); }

/* The customer tracker (phone): six steps, time first, amber "Your OK". */
.trk { display: grid; gap: 10px; align-content: start; padding: 15cqi 5cqi 14px; }
.trk-head { display: grid; gap: 2px; }
.trk-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.trk-steps li { list-style: none; display: grid; }
.trk-step-label { font-size: .75rem; color: var(--ink-2); }
.trk-steps { margin: 0; padding: 0; }
.trk-steps li::before { content: ""; width: 100%; height: 5px; border-radius: 3px; background: var(--surface-2); }
.trk-steps li.done::before { background: var(--brand); }
.trk-steps li.now::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.trk-steps li.now { color: var(--ink); font-weight: 700; }
.trk-steps li.ok-now::before { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.trk-steps li.ok-now { color: var(--ink); font-weight: 700; }
.trk-card { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.trk-card.amber { border: 1.5px solid var(--amber); background: var(--amber-soft); }
.trk-card.done { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: var(--ok-soft); }
.trk-tick { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .875rem; }
.trk-tick .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-2); display: grid; place-items: center; flex: none; }
.trk-tick.on .box { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.trk-tick .box .icon { width: 12px; height: 12px; }
.trk-tick span:nth-child(2) { flex: 1; }

/* Voice bars (canned amplitudes; no microphone). */
.bars { display: flex; align-items: center; gap: 3px; height: 32px; }
.bars i { width: 4px; border-radius: 2px; background: var(--brand); height: 30%; transform-origin: center; }
.bars i:nth-child(3n) { height: 70%; } .bars i:nth-child(4n) { height: 45%; } .bars i:nth-child(5n) { height: 90%; } .bars i:nth-child(7n) { height: 55%; }
.bars-lg { height: 64px; gap: 5px; }
.bars-lg i { width: 6px; border-radius: 3px; }

/* ---------- The phone frame (Phone.astro): one modern device everywhere ---------- */
.phone { container-type: inline-size; position: relative; width: 100%; }
.phone-device { position: relative; padding: 2cqi; border-radius: 14cqi; background: var(--phone-shell, #1C2326); box-shadow: 0 0 0 1px #0B14171F, 0 18px 40px -22px #0B141766; }
:root[data-theme="dark"] .phone-device, .band-dark .phone-device { --phone-shell: #2E373B; box-shadow: 0 0 0 1px #FFFFFF14, 0 18px 40px -22px #000000B3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-device { --phone-shell: #2E373B; box-shadow: 0 0 0 1px #FFFFFF14, 0 18px 40px -22px #000000B3; } }
.phone-screen { position: relative; overflow: hidden; border-radius: 12cqi; background: var(--surface); aspect-ratio: 9 / 19.5; }
.phone--tall .phone-screen { aspect-ratio: 1284 / 2778; }
.phone--crop .phone-device { border-radius: 15cqi 15cqi 5cqi 5cqi; }
.phone--crop .phone-screen { aspect-ratio: 3 / 4; border-radius: 12.8cqi 12.8cqi 3cqi 3cqi; }
.phone-island { position: absolute; z-index: 3; top: 3cqi; left: 50%; width: 30cqi; height: 8.4cqi; transform: translateX(-50%); border-radius: 99px; background: #05080A; box-shadow: inset 0 0 0 1px #FFFFFF12; }
.phone-screen > .ui, .phone-screen > .trk, .phone-screen > .placeholder { position: absolute; inset: 0; overflow: hidden; }
.phone-screen > .ui, .phone-screen > .trk { padding-top: 15cqi; font-size: .875rem; }
.phone-screen > .placeholder { padding-top: 16cqi; }

/* ---------- The job flow (JobFlow.astro): timeline rail + isometric layer stack ---------- */
.jf { position: relative; }
.jf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.jf .flow-index { display: flex; }
.jf .flow-skip { display: inline-flex; }
.jf-rail { position: relative; min-width: 0; padding-left: 10px; }
.jf-line { position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; border-radius: 1px; background: var(--line); }
.jf-line i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--brand-fill); transform-origin: top; transform: scaleY(var(--jp, 1)); }
.jf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 5vw, 64px); }
.jf-step { position: relative; padding-left: 36px; display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.jf-label { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-left: -36px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 .875rem/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-2); text-align: left; }
.jf-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--bg); border: 2px solid color-mix(in srgb, var(--ink-2) 45%, transparent); transition: background-color var(--dur-short), border-color var(--dur-short), box-shadow var(--dur-short); }
.jf-step.is-done .jf-dot { background: var(--brand-fill); border-color: var(--brand-fill); }
.jf-step.is-active .jf-dot, .jf:not(.is-live) .jf-dot { border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 22%, transparent); }
.jf-step.is-active .jf-label, .jf:not(.is-live) .jf-label { color: var(--brand); }
.jf-body { display: grid; gap: 14px; }
.jf-body h3 { font-size: var(--step-5); line-height: 1.06; }
/* Round 16b: the step's BODY copy only (the paragraph with no class). This rule used to be `.jf-body > p`, which also
   caught the step's note box, its layer line and its caption and blew all three up to the body size (20px). */
.jf-body > p:not([class]) { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 54ch; }
.jf-still { border: 1px solid var(--line); border-radius: 24px; padding: clamp(10px, 2vw, 24px); background-color: var(--surface-2); max-width: 760px; }
.jf-caption { font-size: .8125rem; letter-spacing: .06em; color: var(--brand); display: none; }
.jf-layers { display: none; font-weight: 650; font-size: .9375rem; color: var(--ink); margin-top: -4px; }
@media (max-width: 767px) { .jf-still .jf-svg text, .jf-still .jf-tick, .jf-still .jf-callout { display: none; } .jf-caption, .jf-layers { display: block; } }
.jf-more > summary { color: var(--brand); }
.jf-more .flow-chip-row { margin-bottom: 14px; }
.jf-pair { display: grid; gap: 16px; align-items: center; justify-items: start; }
.jf-pair .flow-phone { width: min(280px, 100%); }
@media (min-width: 900px) { .jf-pair { grid-template-columns: minmax(0, 1fr) auto; } }
.jf-stage { display: none; }

/* The drawing (shared by the live stage and the stills). Line art in the theme's ink; the step's layers lift in blue. */
.jf-svg { width: 100%; height: auto; overflow: visible; }
.jf-layer { transition: transform var(--dur-frame) var(--ease-out), opacity var(--dur-frame) var(--ease-out); }
.jf-plate { fill: var(--surface); fill-opacity: .92; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.5; stroke-linejoin: round; transition: fill var(--dur-frame), stroke var(--dur-frame); }
.jf-side { fill: var(--surface-2); stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.2; stroke-linejoin: round; }
.jf-art { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--dur-frame); }
.jf-art * { vector-effect: non-scaling-stroke; }
.jf-tick { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.2; }
.jf-name { font: 600 15px var(--font-mono); letter-spacing: .06em; fill: var(--ink-2); transition: fill var(--dur-frame); }
.jf-callout { opacity: 0; transition: opacity var(--dur-frame) var(--ease-out); }
.jf-callout polyline { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 4 3; }
.jf-callout circle { fill: var(--brand-fill); }
.jf-callout text { font: 700 16px var(--font-mono); letter-spacing: .04em; fill: var(--ink); }
.jf-still .jf-layer:not(.is-on) { opacity: .5; }
.jf-layer.is-on, .jf[data-active="0"] .on-0, .jf[data-active="1"] .on-1, .jf[data-active="2"] .on-2, .jf[data-active="3"] .on-3, .jf[data-active="4"] .on-4, .jf[data-active="5"] .on-5 { transform: translateY(-18px); opacity: 1; }
.jf-layer.is-on .jf-plate, .jf[data-active="0"] .on-0 .jf-plate, .jf[data-active="1"] .on-1 .jf-plate, .jf[data-active="2"] .on-2 .jf-plate, .jf[data-active="3"] .on-3 .jf-plate, .jf[data-active="4"] .on-4 .jf-plate, .jf[data-active="5"] .on-5 .jf-plate { fill: color-mix(in srgb, var(--brand-fill) 14%, var(--surface)); fill-opacity: 1; stroke: var(--brand); stroke-width: 2; }
.jf-layer.is-on .jf-art, .jf[data-active="0"] .on-0 .jf-art, .jf[data-active="1"] .on-1 .jf-art, .jf[data-active="2"] .on-2 .jf-art, .jf[data-active="3"] .on-3 .jf-art, .jf[data-active="4"] .on-4 .jf-art, .jf[data-active="5"] .on-5 .jf-art { stroke: var(--brand); }
.jf-layer.is-on .jf-name, .jf[data-active="0"] .on-0 .jf-name, .jf[data-active="1"] .on-1 .jf-name, .jf[data-active="2"] .on-2 .jf-name, .jf[data-active="3"] .on-3 .jf-name, .jf[data-active="4"] .on-4 .jf-name, .jf[data-active="5"] .on-5 .jf-name { fill: var(--brand); }
.jf-callout.is-on, .jf[data-active="0"] .co-0, .jf[data-active="1"] .co-1, .jf[data-active="2"] .co-2, .jf[data-active="3"] .co-3, .jf[data-active="4"] .co-4, .jf[data-active="5"] .co-5 { opacity: 1; }

/* Live (≥ 1200px, JS, motion allowed): the rail beside a sticky stage; one step expanded at a time. */
@media (min-width: 1200px) {
  .jf.is-live .flow-index { display: none; }
  .jf.is-live .jf-track { height: calc(var(--steps, 6) * 45vh + 80vh); position: relative; }
  .jf.is-live .jf-sticky { position: sticky; top: calc(var(--header-h) + 20px); height: calc(100svh - var(--header-h) - 40px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 96px); align-items: start; }
  /* Round 9: rail and drawing start at the top of the pinned area (they were centred, leaving a band under the intro). */
  .jf.is-live .jf-stage { align-self: stretch; }
  .jf.is-live .jf-rail { max-height: 100%; overflow-y: auto; scrollbar-width: thin; padding: 10px 4px 10px 10px; }
  .jf.is-live .jf-line { top: 32px; bottom: 32px; }
  .jf.is-live .jf-steps { gap: 6px; }
  .jf.is-live .jf-step:not(.is-active) .jf-body { display: none; }
  .jf.is-live .jf-step.is-active { padding-block: 10px 18px; }
  .jf.is-live .jf-step.is-active .jf-body { animation: ui-rise var(--dur-frame) var(--ease-out) both; }
  .jf.is-live .jf-body > p:not([class]) { max-width: 52ch; }
  .jf.is-live .jf-still, .jf.is-live .jf-caption, .jf.is-live .jf-layers { display: none; }
  /* Griffin-style: a hairline between the text column and the art panel; the dots fill the panel. */
  .jf.is-live .jf-stage { display: grid; place-items: center; height: 100%; padding: 8px clamp(16px, 2.5vw, 48px) clamp(16px, 2.5vw, 48px); border-left: 1px solid var(--line); }
  .jf.is-live .jf-stage { min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
  .jf.is-live .jf-stage .jf-svg { width: 100%; height: 100%; place-self: stretch; }
  .jf.is-live .jf-layer:not(.on-0):not(.on-1):not(.on-2):not(.on-3):not(.on-4):not(.on-5) { opacity: .45; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .jf.is-live[data-active] .jf-stage .jf-layer { opacity: .45; }
  .jf.is-live[data-active="0"] .jf-stage .on-0, .jf.is-live[data-active="1"] .jf-stage .on-1, .jf.is-live[data-active="2"] .jf-stage .on-2, .jf.is-live[data-active="3"] .jf-stage .on-3, .jf.is-live[data-active="4"] .jf-stage .on-4, .jf.is-live[data-active="5"] .jf-stage .on-5 { opacity: 1; }
}
/* Static (phones, reduced motion, no JS): every step expanded, each with its own still. */
.jf:not(.is-live) .jf-label { cursor: default; }
/* Between 1200 and 1439px the drawing gets the larger share, so its labels stay at 12px or more on screen. */
@media (min-width: 1200px) and (max-width: 1439px) { .jf.is-live .jf-sticky { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
/* Static on wide screens (reduced motion, no JS): words on the left, that step's still on the right. From 1440px
   only: narrower, the still would shrink its labels below 12px, so it stays under the words. */
@media (min-width: 1440px) {
  .jf:not(.is-live) .jf-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 4vw, 88px); align-content: start; }
  .jf:not(.is-live) .jf-body > * { grid-column: 1; }
  .jf:not(.is-live) .jf-body > .jf-still { grid-column: 2; grid-row: 1 / span 8; align-self: start; max-width: none; }
  .jf:not(.is-live) .jf-body > .jf-more[open] { grid-column: 1 / -1; }
}

/* ---------- Hero scenes (round 16): each page's own background, from its own subject ----------
   One vocabulary (HeroScene.astro): hairlines (--hs-line), hollow cards and nodes, soft bars, ONE accent (brand) and
   one travelling thing (amber). Below 1024px the scene is a short strip under the copy (hs-m); from 1024px it is a panel
   on the right of the hero (hs-d), faded out toward the copy, so nothing moves behind words. Loops: transform and opacity
   only; armed paused on their first frame (.rt-armed, site.js), running only while the hero is on
   screen (.rt-live) and the tab is visible (html.tab-hidden pauses); none at all under reduced motion. */
.has-scene { position: relative; overflow: clip; isolation: isolate; }
.has-scene > .wrap { position: relative; z-index: 1; }
/* the copy sits on the page's left edge (it used to be a centred 900px column), which leaves the right of the hero to the scene */
.page-hero.has-scene > .hero-copy { max-width: none; }
.page-hero.has-scene > .hero-copy > .h1 { max-width: min(20ch, 100%); }
.hs { --hs-line: color-mix(in srgb, var(--ink) 16%, transparent); --hs-line-2: color-mix(in srgb, var(--ink) 28%, transparent); --hs-soft: color-mix(in srgb, var(--ink) 9%, transparent); pointer-events: none; width: min(100% - 2 * var(--gutter), 520px); margin: clamp(20px, 5vw, 28px) auto 0; }
.hs svg { display: block; width: 100%; height: auto; overflow: visible; }
.hs-d { display: none !important; }
.hs-l { fill: none; stroke: var(--hs-line-2); stroke-width: 1.5; stroke-linecap: round; }
.hs-dashline { stroke-dasharray: 3 6; }
.hs-card { fill: var(--surface); stroke: var(--hs-line-2); stroke-width: 1.5; }
.hs-dash { stroke-dasharray: 4 5; fill: none; }
.hs-bar { fill: var(--hs-soft); }
.hs-ghost { fill: none; stroke: var(--hs-line); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hs-a-ring { stroke: var(--brand); }
.hs-a-fill { fill: color-mix(in srgb, var(--brand) 55%, transparent); }
.hs-tok { fill: var(--amber); }
.hs-faint { stroke: var(--hs-line); }
.hs-node { fill: var(--bg); stroke: var(--hs-line-2); stroke-width: 1.5; }
.hs-node.hs-a-ring { stroke: var(--brand); stroke-width: 2; }
.hs-nss { vector-effect: non-scaling-stroke; }
.hs-a-line { stroke: var(--brand); stroke-width: 2; }
.hs-tok-line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.hs-cell { fill: var(--hs-soft); }
.hs-slot { fill: var(--brand-soft); }
.hs-pill { fill: var(--hs-line-2); }
.hs-lane-a { fill: color-mix(in srgb, var(--brand) 60%, transparent); } .hs-lane-c { fill: color-mix(in srgb, var(--upgrade) 55%, transparent); }
.hs-node.hs-lane-a-ring { stroke: var(--brand); } .hs-node.hs-lane-c-ring { stroke: var(--upgrade); }
.hs-spin { transform-box: view-box; transform-origin: 250px 220px; } .hs-spin-m { transform-origin: 56px 52px; }
/* every travelling token is a shape at the origin, placed by a transform; these are the resting places (also the reduced-motion frame) */
.hs-arc-d { transform-box: view-box; transform-origin: 240px 330px; transform: rotate(112deg); }
.hs-arc-m { transform: translate(222.1px, 24.5px); }
.hs-hop1 { transform: translate(240px, 110px); } .hs-hop2 { transform: translate(198.4px, 137.7px); opacity: .55; } .hs-hopm { transform: translate(180px, 23.5px); }
.hs-in1 { --hs-a: translate(66px, 85px); --hs-b: translate(248px, 190px); transform: translate(170px, 145px); }
.hs-in2 { --hs-a: translate(66px, 220px); --hs-b: translate(248px, 220px); transform: translate(118px, 220px); }
.hs-in3 { --hs-a: translate(66px, 355px); --hs-b: translate(248px, 250px); transform: translate(206.4px, 274px); }
.hs-in4 { --hs-a: translate(255px, 45.4px); --hs-b: translate(290px, 181.2px); transform: translate(271px, 107.5px); }
.hs-in5 { --hs-a: translate(255px, 394.6px); --hs-b: translate(290px, 258.8px); transform: translate(262px, 367.4px); }
.hs-in6 { --hs-a: translate(436.8px, 130px); --hs-b: translate(330.4px, 200px); transform: translate(366.9px, 176px); }
.hs-inm1 { --hs-a: translate(39.6px, 23.2px); --hs-b: translate(148.8px, 45.6px); transform: translate(102px, 36px); }
.hs-inm2 { --hs-a: translate(39.6px, 80.8px); --hs-b: translate(148.8px, 58.4px); transform: translate(70.8px, 74.4px); }
.hs-inm3 { --hs-a: translate(320.4px, 23.2px); --hs-b: translate(211.2px, 45.6px); transform: translate(242.4px, 39.2px); }
.hs-inm4 { --hs-a: translate(320.4px, 80.8px); --hs-b: translate(211.2px, 58.4px); transform: translate(273.6px, 71.2px); }
.hs-ping-out { --hs-a: translate(290px, 160px); --hs-b: translate(356px, 160px); transform: translate(323px, 160px); }
.hs-ping-back { --hs-a: translate(356px, 236px); --hs-b: translate(290px, 236px); transform: translate(323px, 236px); }
.hs-pingm-out { --hs-a: translate(208px, 40px); --hs-b: translate(292px, 40px); transform: translate(250px, 40px); }
.hs-pingm-back { --hs-a: translate(292px, 68px); --hs-b: translate(208px, 68px); transform: translate(250px, 68px); }

.hs-cockpit { width: min(100% - 2 * var(--gutter), 520px); }
/* a pendulum turns about its joint on the beam: the origin of its own group (which a parent <g> has moved to the joint) */
.hs-sway { transform-box: view-box; transform-origin: 0 0; }
@media (min-width: 1024px) {
  .hs { position: absolute; inset: 0; z-index: 0; width: auto; margin: 0; }
  .hs-m { display: none !important; }
  .page-hero.has-scene > .hero-copy > * { max-width: min(60ch, 60%); } .page-hero.has-scene > .hero-copy > .h1 { max-width: min(20ch, 62%); }
  .hs-d { display: block !important; position: absolute; top: 50%; right: max(var(--gutter), calc((100% - var(--max)) / 2)); width: auto !important; height: min(100% - 32px, 440px) !important; max-width: 33%; aspect-ratio: 480 / 440; translate: 0 -50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%), linear-gradient(#000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%), linear-gradient(#000 82%, transparent); mask-composite: intersect; }
}
@media (min-width: 1024px) {
  /* platform: the mobile spans its whole panel, so it takes no edge fade (the copy stops well short of it) */
  .hs-platform .hs-d { -webkit-mask-image: none; mask-image: none; }
  /* how it works: the hero also holds the six flow cards, so the scene keeps to the height of the copy above them */
  .hs-hiw .hs-d { top: clamp(32px, 5vw, 80px); translate: none; height: min(340px, 30vw) !important; }
  /* cockpit: the hero already has the product on the right, so its scene is an instrument scale along the bottom edge */
  .hs-cockpit { width: auto; }
  .hs-cockpit .hs-d { top: auto; bottom: 8px; right: auto; left: max(var(--gutter), calc((100% - var(--max)) / 2)); width: calc(100% - 2 * max(var(--gutter), (100% - var(--max)) / 2)) !important; max-width: none; height: 46px !important; aspect-ratio: auto; translate: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-over; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-composite: add; }
}
@media (forced-colors: active) { .hs { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .rt-armed .hs-sw1 { animation: hs-sway-b 13s ease-in-out -2s infinite alternate paused; }
  .rt-armed .hs-sw2 { animation: hs-sway-c 16s ease-in-out -5s infinite alternate paused; }
  .rt-armed .hs-sw3 { animation: hs-sway-b 19s ease-in-out -9s infinite alternate paused; }
  .rt-armed .hs-sw4 { animation: hs-sway-c 14s ease-in-out -3s infinite alternate paused; }
  .rt-armed .hs-sw5 { animation: hs-sway-b 17s ease-in-out -7s infinite alternate paused; }
  .rt-armed .hs-hop1 { animation: hs-hop-d 16s linear infinite paused, hs-hop-fade 16s linear infinite paused; }
  .rt-armed .hs-hop2 { animation: hs-hop-d 16s linear -8s infinite paused, hs-hop-fade 16s linear -8s infinite paused; }
  .rt-armed .hs-hopm { animation: hs-hop-m 14s linear infinite paused, hs-hop-fade 14s linear infinite paused; }
  .rt-armed .hs-spin-fwd { animation: hs-turn 28s linear infinite paused; }
  .rt-armed .hs-spin-back { animation: hs-turn 44s linear infinite reverse paused; }
  .rt-armed .hs-spin-m { animation: hs-turn 24s linear infinite paused; }
  .rt-armed .hs-arc-d { animation: hs-arc-d 28s linear infinite paused, hs-fade 28s linear infinite paused; }
  .rt-armed .hs-arc-m { animation: hs-arc-m 28s linear infinite paused, hs-fade 28s linear infinite paused; }
  .rt-armed .hs-flow-a { animation: hs-flow 20s linear infinite paused; }
  .rt-armed .hs-flow-b { animation: hs-flow 30s linear -11s infinite paused; }
  .rt-armed .hs-flow-c { animation: hs-flow 25s linear -6s infinite paused; }
  .rt-armed .hs-in { animation: hs-arrive 12s linear infinite paused; }
  .rt-armed .hs-in2, .rt-armed .hs-inm2 { animation-delay: -2s; } .rt-armed .hs-in3, .rt-armed .hs-inm3 { animation-delay: -4s; } .rt-armed .hs-in4, .rt-armed .hs-inm4 { animation-delay: -6s; } .rt-armed .hs-in5 { animation-delay: -8s; } .rt-armed .hs-in6 { animation-delay: -10s; }
  .rt-armed .hs-ping { animation: hs-send 12s linear infinite paused; } .rt-armed .hs-ping-back, .rt-armed .hs-pingm-back { animation-delay: -6s; }
  .rt-armed .hs-needle { animation: hs-needle 16s ease-in-out infinite alternate paused; }
  .rt-armed .hs-needle-m { animation-name: hs-needle-m; }
  .rt-armed .hs-slot { animation: hs-breathe 7s ease-in-out infinite alternate paused; }
  .has-scene.rt-live .hs * { animation-play-state: running !important; }
  /* must outrank the rule above: a hidden tab pauses the scene even though the hero still counts as on screen */
  html.tab-hidden .has-scene.rt-live .hs * { animation-play-state: paused !important; }
}
/* a mobile hangs: each part swings a degree or two about its thread's top, out of step with the others */
@keyframes hs-sway-b { from { transform: rotate(2.4deg); } to { transform: rotate(-2.4deg); } }
@keyframes hs-sway-c { from { transform: rotate(-3deg); } to { transform: rotate(2deg); } }
@keyframes hs-turn { to { transform: rotate(360deg); } }
/* each of these fades in at the start of its path and out at the end, so the loop restarts unseen */
@keyframes hs-arc-d { from { transform: rotate(9deg); } to { transform: rotate(171deg); } }
@keyframes hs-fade { 0% { opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hs-arrive { 0% { transform: var(--hs-a); opacity: 0; } 10% { opacity: 1; } 60% { transform: var(--hs-b); opacity: 1; } 70%, 100% { transform: var(--hs-b); opacity: 0; } }
@keyframes hs-send { 0% { transform: var(--hs-a); opacity: 0; } 8% { opacity: 1; } 34% { transform: var(--hs-b); opacity: 1; } 42%, 100% { transform: var(--hs-b); opacity: 0; } }
/* generated by sampling each drawn path (getPointAtLength): the token rides the line it is drawn on */
@keyframes hs-arc-m { 0% { transform: translate(37.1px, 82px); } 5.22% { transform: translate(50.6px, 70.6px); } 10.44% { transform: translate(64.8px, 59.9px); } 15.67% { transform: translate(79.6px, 50.1px); } 20.89% { transform: translate(95px, 41.3px); } 26.11% { transform: translate(111px, 33.7px); } 31.33% { transform: translate(127.7px, 27.4px); } 36.56% { transform: translate(144.8px, 22.8px); } 41.78% { transform: translate(162.3px, 20px); } 47% { transform: translate(180px, 19px); } 52.22% { transform: translate(197.7px, 20px); } 57.44% { transform: translate(215.2px, 22.8px); } 62.67% { transform: translate(232.3px, 27.4px); } 67.89% { transform: translate(249px, 33.7px); } 73.11% { transform: translate(265px, 41.3px); } 78.33% { transform: translate(280.4px, 50.1px); } 83.56% { transform: translate(295.2px, 59.9px); } 88.78% { transform: translate(309.4px, 70.6px); } 94% { transform: translate(322.9px, 82px); } 100% { transform: translate(322.9px, 82px); } }
@keyframes hs-hop-d { 0% { transform: translate(174px, 170px); } 3.29% { transform: translate(175px, 168.5px); } 6.57% { transform: translate(178.8px, 163.2px); } 9.86% { transform: translate(187.4px, 151.5px); } 13.14% { transform: translate(204.5px, 130.9px); } 16.43% { transform: translate(234.2px, 110.6px); } 19.71% { transform: translate(263.5px, 119.7px); } 23% { transform: translate(279.5px, 135.3px); } 26.29% { transform: translate(289.2px, 147.1px); } 29.57% { transform: translate(295.6px, 155.6px); } 32.86% { transform: translate(300px, 161.6px); } 36.14% { transform: translate(302.9px, 165.6px); } 39.43% { transform: translate(304.7px, 168.2px); } 42.71% { transform: translate(305.7px, 169.6px); } 46% { transform: translate(306px, 170px); } 100% { transform: translate(306px, 170px); } }
@keyframes hs-hop-m { 0% { transform: translate(128px, 52px); } 3.83% { transform: translate(129.2px, 50.8px); } 7.67% { transform: translate(133.7px, 46.4px); } 11.5% { transform: translate(145.1px, 36.8px); } 15.33% { transform: translate(168.1px, 25.1px); } 19.17% { transform: translate(193.9px, 25.7px); } 23% { transform: translate(209.9px, 33.4px); } 26.83% { transform: translate(219.2px, 40.2px); } 30.67% { transform: translate(224.9px, 45.1px); } 34.5% { transform: translate(228.4px, 48.4px); } 38.33% { transform: translate(230.6px, 50.5px); } 42.17% { transform: translate(231.7px, 51.7px); } 46% { transform: translate(232px, 52px); } 100% { transform: translate(232px, 52px); } }
/* the lane's work moves on by exactly two of its own spacings, so the last frame is the first */
@keyframes hs-flow { to { transform: translateX(144px); } }
@keyframes hs-needle { from { transform: translateX(-12px); } to { transform: translateX(26px); } }
@keyframes hs-needle-m { from { transform: translateX(-6px); } to { transform: translateX(12px); } }
@keyframes hs-breathe { from { opacity: .25; } to { opacity: 1; } }
/* a row lifts out of the old stack, crosses on the arc and lands; it fades in at the start and out at the end, so the loop has no jump */
@keyframes hs-hop-fade { 0% { opacity: 0; } 8% { opacity: 1; } 46% { opacity: 1; } 54%, 100% { opacity: 0; } }

/* ---------- AI page hero: a slow aurora behind the headline (round 9) ----------
   Four large blurred colour fields drift on long, out-of-step loops over a faint dot grid, with a soft light sweep.
   It sits under the text (z-index) and is kept low-contrast so the headline always reads; it only moves while the
   hero is on screen, and reduced motion shows one still frame. Light theme: pale blues and violet on the page
   background; dark theme: deeper, brighter fields on near-black. CSS only. */
.ai-hero { position: relative; overflow: hidden; isolation: isolate; }
.ai-hero > .wrap { position: relative; z-index: 1; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb-a { width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; left: 38%; top: -30%; background: radial-gradient(circle at 40% 40%, #5E91FF, transparent 65%); }
.orb-b { width: 40vw; height: 40vw; max-width: 640px; max-height: 640px; left: 64%; top: 10%; background: radial-gradient(circle at 50% 50%, #8B6CFF, transparent 65%); opacity: .4; }
.orb-c { width: 34vw; height: 34vw; max-width: 560px; max-height: 560px; left: 52%; top: 45%; background: radial-gradient(circle at 50% 50%, #2FD3C7, transparent 65%); opacity: .32; }
.orb-d { width: 28vw; height: 28vw; max-width: 460px; max-height: 460px; left: 78%; top: -12%; background: radial-gradient(circle at 50% 50%, #F2A900, transparent 65%); opacity: .18; }
.aurora-grid { position: absolute; inset: 0; opacity: .5; -webkit-mask-image: radial-gradient(70% 90% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 70% 40%, #000, transparent 75%); }
.aurora-sweep { position: absolute; inset: -20% -10%; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, #FFFFFF 22%, transparent) 50%, transparent 65%); opacity: 0; }
/* a soft veil keeps the left (text) side calm */
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 55%, transparent) 48%, transparent 80%); }
:root[data-theme="dark"] .orb { opacity: .7; } :root[data-theme="dark"] .orb-b { opacity: .55; } :root[data-theme="dark"] .orb-c { opacity: .45; } :root[data-theme="dark"] .orb-d { opacity: .25; }
:root[data-theme="dark"] .aurora-sweep { background: linear-gradient(105deg, transparent 35%, #5E91FF26 50%, transparent 65%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .orb { opacity: .7; } :root:not([data-theme="light"]) .orb-b { opacity: .55; } :root:not([data-theme="light"]) .orb-c { opacity: .45; } :root:not([data-theme="light"]) .orb-d { opacity: .25; } :root:not([data-theme="light"]) .aurora-sweep { background: linear-gradient(105deg, transparent 35%, #5E91FF26 50%, transparent 65%); } }
@media (prefers-reduced-motion: no-preference) {
  .ai-hero.rt-live .orb-a { animation: orb-a 22s ease-in-out infinite alternate; }
  .ai-hero.rt-live .orb-b { animation: orb-b 27s ease-in-out infinite alternate; }
  .ai-hero.rt-live .orb-c { animation: orb-c 31s ease-in-out infinite alternate; }
  .ai-hero.rt-live .orb-d { animation: orb-d 19s ease-in-out infinite alternate; }
  .ai-hero.rt-live .aurora-sweep { animation: aurora-sweep 9s ease-in-out infinite; }
}
@keyframes orb-a { to { transform: translate(-12%, 18%) scale(1.15); } }
@keyframes orb-b { to { transform: translate(-22%, -10%) scale(.9); } }
@keyframes orb-c { to { transform: translate(14%, -16%) scale(1.2); } }
@keyframes orb-d { to { transform: translate(-30%, 25%) scale(1.1); } }
@keyframes aurora-sweep { 0%, 100% { opacity: 0; transform: translateX(-30%); } 50% { opacity: 1; transform: translateX(30%); } }
@media (forced-colors: active) { .aurora { display: none; } }

/* ---------- Home hero (round 16c): the service area at first light, edge to edge, and a hero that fills the first screen ----------
   Behind BOTH columns: three wide soft colour fields (plain radial gradients, no blur filter; only their transform
   moves) and a faint street map. The map is masked to nothing behind the product, so the product sits on calm colour,
   and behind the copy. Runs only on screen in a
   visible tab (the hero-scene rules above), and not at all under reduced motion. */
.hero.has-scene .hc-back, .hero.has-scene .hc-glow { display: none; }
.hs.hs-home { position: absolute; inset: 0; z-index: 0; width: auto; margin: 0; overflow: clip; }
/* dark: the amber is held back, so the brand-coloured link under it keeps its contrast */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-home { --hf-amber: 12%; } }
:root[data-theme="dark"] .hs-home { --hf-amber: 12%; }
.hf-glow { position: absolute; display: block; border-radius: 50%; pointer-events: none; }
.hf-g1 { left: 44%; top: -16%; width: 68%; height: 128%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-fill) 20%, transparent), color-mix(in srgb, var(--brand-fill) 9%, transparent) 55%, transparent); }
.hf-g2 { left: -14%; bottom: -46%; width: 96%; height: 84%; background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) var(--hf-amber, 22%), transparent), color-mix(in srgb, var(--amber) calc(var(--hf-amber, 22%) * .36), transparent) 60%, transparent); }
.hf-g3 { left: -16%; top: -44%; width: 52%; height: 86%; background: radial-gradient(closest-side, color-mix(in srgb, var(--upgrade) 6%, transparent), transparent); }
.hs.hs-home .hf-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 40% 72% at 75% 50%, transparent 74%, #000 100%), radial-gradient(ellipse 30% 34% at 22% 50%, transparent 62%, #000 100%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in, source-in;
  mask-image: radial-gradient(ellipse 40% 72% at 75% 50%, transparent 74%, #000 100%), radial-gradient(ellipse 30% 34% at 22% 50%, transparent 62%, #000 100%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect, intersect; }
.hf-st { fill: none; stroke: color-mix(in srgb, var(--ink) 7%, transparent); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.hf-ave { stroke: color-mix(in srgb, var(--ink) 11%, transparent); stroke-width: 2; }
@media (max-width: 1199px) {
  /* stacked: the product sits under the copy, so the clearing moves down with it; the units are left out */
  .hs.hs-home .hf-map { -webkit-mask-image: radial-gradient(ellipse 64% 34% at 50% 70%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 64% 34% at 50% 70%, transparent 55%, #000 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hf-ave { display: none; }
  .hf-g1 { left: -6%; top: 34%; width: 112%; height: 70%; } .hf-g2 { left: -30%; bottom: -22%; width: 130%; height: 46%; } .hf-g3 { left: -30%; top: -14%; width: 90%; height: 40%; }
}
@media (prefers-reduced-motion: no-preference) {
  .rt-armed .hf-g1 { animation: hf-drift-a 26s ease-in-out infinite alternate paused; }
  .rt-armed .hf-g2 { animation: hf-drift-b 34s ease-in-out infinite alternate paused; }
  .rt-armed .hf-g3 { animation: hf-drift-c 41s ease-in-out infinite alternate paused; }
}
@keyframes hf-drift-a { from { transform: translate(-3%, 2%) scale(1); } to { transform: translate(3%, -2%) scale(1.07); } }
@keyframes hf-drift-b { from { transform: translate(-2%, 2%) scale(1); } to { transform: translate(5%, -4%) scale(1.09); } }
@keyframes hf-drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, 3%) scale(1.06); } }
@media (forced-colors: active) { .hs.hs-home { display: none; } }
/* The home hero fills the first screen under the header (two-column layout only; stacked layouts size to their content).
   The height is reserved in CSS, so nothing shifts on load. No cap (round 18): the fold is the hero's bottom edge at any height. The product scene takes
   whatever height is left, so on a short wide screen it shrinks to fit rather than being cut. */
@media (min-width: 1200px) {
  .hero.has-scene { --hero-h: calc(100vh - var(--header-h)); --hero-h: calc(100svh - var(--header-h)); --hero-pad: clamp(10px, calc(10vh - 62px), 64px); --hc-z: 1;
    min-height: var(--hero-h); padding-block: var(--hero-pad); display: grid; align-items: center; }
  /* the hero's content column is the header's column at every width (the headline starts under the logo); the scene is free to run past its right edge */
  .hero.has-scene > .hero-grid { justify-self: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .hero.has-scene .hero-copy { padding-right: clamp(12px, 1.5vw, 28px); }
  /* the scene's cards are laid out from its top and need about 580px whatever its width, so the box is never shorter than
     that unless the screen is; 22px above and 20px below cover the little its cards hang outside the box */
  .hero.has-scene .hc { --hc-h: calc(var(--hero-h) - 2 * var(--hero-pad) - 42px); min-height: min(560px * var(--hc-z), var(--hc-h)); width: min(100%, var(--hc-h) * 1.25, 880px * var(--hc-z)); height: auto; max-height: var(--hc-h); justify-self: center; margin-block: 22px 20px; }
  /* tall, large screens: the whole scene is drawn larger (its parts are sized in pixels, so a bigger box alone would
     only spread them apart). Two steps, each only where there is both the height and the width for it; never more
     than 1.4, beyond which the mock interface starts to read as oversized next to the page's own type. */
  .hero.has-scene .hc-tilt { zoom: var(--hc-z); }
  /* a quiet cue that the page goes on: a small chevron at the bottom centre (decoration only; the "See how the record moves" link is the real control) */
  .hero.has-scene::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 10px; height: 10px; margin-left: -5px; border-right: 2px solid color-mix(in srgb, var(--ink) 38%, transparent); border-bottom: 2px solid color-mix(in srgb, var(--ink) 38%, transparent); transform: rotate(45deg); pointer-events: none; }
}
@media (min-width: 1700px) and (min-height: 1150px) { .hero.has-scene { --hc-z: 1.2; } }
@media (min-width: 2200px) and (min-height: 1380px) { .hero.has-scene { --hc-z: 1.4; } }

/* ---------- Home hero in motion (rounds 17–18): arrival, a slow float, and a small tilt ----------
   The job itself plays on its own timer (the loop above); nothing in the hero depends on the scroll. Transform-family
   properties and opacity only. Each source of movement owns its own property, so they never overwrite one another:
     transform  the layer's fixed pose      translate  the tilt's shift, with the float added to it
     scale      the arrival, and the paid chip arriving
     .hc-tilt   the pointer tilt, on the wrapper around all layers */
@media (prefers-reduced-motion: no-preference) {
  /* arrival, once: the scene eases forward from slightly back and small. No opacity, so it is never invisible. */
  .hc { animation: hc-arrive 800ms cubic-bezier(.2, .7, .2, 1) both; }
  /* idle float: a few pixels, long periods, layers out of step; paused off screen and in a hidden tab */
  .hc.rt-armed .hc-board { animation: hc-float-a 19s ease-in-out infinite alternate paused; animation-composition: add; }
  .hc.rt-armed .hc-story { animation: hc-float-b 15s ease-in-out -4s infinite alternate paused; animation-composition: add; }
  .hc.rt-armed .hc-float { animation: hc-float-a 13s ease-in-out -7s infinite alternate paused; animation-composition: add; }
  .hc.rt-armed .hc-phone { animation: hc-float-b 23s ease-in-out -11s infinite alternate paused; animation-composition: add; }
  .hc.rt-live .hc-tilt > * { animation-play-state: running; }
}
@media (prefers-reduced-motion: no-preference) {
  /* the paid invoice arrives in the loop, at every width (round 25); its float is still added on top */
  .hc.rt-live .hc-float { animation: hc-job-paid 20s linear -8.2s infinite both, hc-float-a 13s ease-in-out -7s infinite alternate; animation-composition: replace, add; }
}
@media (prefers-reduced-motion: no-preference) { html.tab-hidden .hc.rt-live .hc-tilt * { animation-play-state: paused; } }
@keyframes hc-arrive { from { scale: .955; translate: 0 16px; } }
@keyframes hc-float-a { from { translate: 0 -3px 0; } to { translate: 0 3px 0; } }
@keyframes hc-float-b { from { translate: 0 3px 0; } to { translate: 0 -4px 0; } }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* pointer tilt (site.js eases --px / --py, −1 … 1, toward the pointer): the whole scene leans up to 6 degrees one way
     and 4.5 the other (7.5 at a corner), and each layer also shifts by its own small amount (the board least, the phone and the chips
     most), so the lean reads as depth. The float is added on top of that shift; the loop is untouched. */
  .hc[data-tilt-hero] .hc-tilt { transform: rotateY(calc(var(--px) * 6deg)) rotateX(calc(var(--py) * -4.5deg)); }
  .hc[data-tilt-hero] .hc-board { translate: calc(var(--px) * 4px) calc(var(--py) * 3px) calc(var(--so) * 40px); }
  .hc[data-tilt-hero] .hc-story { translate: calc(var(--px) * 9px) calc(var(--py) * 6px) calc(var(--so) * -60px); }
  .hc[data-tilt-hero] .hc-phone { translate: calc(var(--px) * 16px) calc(var(--py) * 10px) calc(var(--so) * -170px); }
  .hc[data-tilt-hero] .hc-float { translate: calc(var(--px) * 22px) calc(var(--py) * 13px) calc(var(--so) * -220px); }
}

@property --so { syntax: "<number>"; inherits: true; initial-value: 0; }
/* ---------- Home hero: it comes at you (round 19) ----------
   One line from far to near, ending at the viewer (from 900px; phones keep the flat stacked scene):
     FAR      the dispatch board, laid back and set deep, its far edge visibly smaller, still readable as a board
     MIDDLE   the job's activity list, angled with the scene, between the board and the phone
     NEAR     the customer's phone: the largest thing in the scene, leaning toward the viewer, running off the hero's
              lower edge as if it were nearer than the page
     NEAREST  the customer's OK, in front of the phone's left edge; and the paid invoice when it arrives
   The planes share one real 3D space; they are spaced far enough apart in depth that the tilted board cannot cut
   through anything in front of it. Light: a soft brand-blue glow behind the scene with the warm dawn low down, a
   darker (dark theme) or blue-tinted (light theme) pool directly behind the phone so its lit screen stands off it, a
   lit rim on the phone, and shadows that deepen with each plane's height. All of this is static: with motion off,
   every depth cue stays. Cards here are opaque (no glass), so nothing behind shows through them. */
@media (min-width: 900px) {
  .hero.has-scene .hc { perspective: 1100px; perspective-origin: 64% 44%; }
  .hero.has-scene .hc-tilt { perspective: none; transform-style: preserve-3d; }
  .hero.has-scene .hc::before { content: ""; position: absolute; z-index: -1; inset: -14% -12% -30% -10%; pointer-events: none;
    background: radial-gradient(closest-side at 58% 46%, color-mix(in srgb, var(--brand-fill) var(--hc-glow, 40%), transparent), color-mix(in srgb, var(--brand-fill) calc(var(--hc-glow, 40%) * .35), transparent) 48%, transparent 78%),
      radial-gradient(closest-side at 60% 92%, color-mix(in srgb, var(--amber) var(--hc-dawn, 26%), transparent), transparent 58%); }
  .hero.has-scene .hc-board { left: -38%; top: -7%; width: 92%; transform-origin: 50% 62%; transform: translate3d(0, 0, -230px) rotateX(27deg) rotateY(-17deg) rotateZ(4deg); }
  .hero.has-scene .hc-board .frame-web { box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 14%, transparent), 0 26px 40px -22px #0B141755; }
  .hero.has-scene .hc-story { left: -8%; top: 41%; width: 54%; transform: translate3d(0, 0, -70px) rotateY(-15deg) rotateX(8deg) rotateZ(1.5deg); transform-origin: 60% 50%; transform-style: preserve-3d; }
  .hero.has-scene .hc-activity { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 6px 12px -6px #0B141740, 0 40px 64px -24px #0B1417A6; }
  /* the customer's OK: lifted out of the list's plane, in front of the phone's left edge, and larger */
  .hero.has-scene .hc-record { position: absolute; left: 70%; top: 146%; margin: 0; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; transform: translate3d(0, 0, 330px) rotateY(9deg) rotateX(-4deg);
    border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); box-shadow: 0 10px 18px -8px #0B14174D, 0 54px 80px -26px #0B1417CC; }
  .hero.has-scene .hc-record::before { display: none; }
  .hero.has-scene .hc-phone { right: -6%; bottom: -26%; width: 46%; max-width: 370px; transform: translate3d(0, 0, 170px) rotateY(-15deg) rotateX(7deg) rotateZ(2.5deg);
    filter: drop-shadow(0 22px 22px #0B141759) drop-shadow(0 70px 80px #0B141780); }
  /* a lit rim and a halo that follows the phone's own shape, set to its left (away from the hero's right edge). Light
     theme (rounds 21 and 24): a grey-blue shade, tight (it falls off within about 60px, so it never reaches the board card
     however the scene tilts), not a saturated blue edge. Dark theme: near
     black and tight, with the blue rim glow. Either way the lit screen stands off what is right behind it (1.6:1 floor). */
  .hero.has-scene .hc { --hc-halo: 0 0 0 1px color-mix(in srgb, #fff 55%, transparent), 0 0 0 3px color-mix(in srgb, var(--brand-fill) 40%, transparent), -12px -6px 30px 16px #5A6C9480, -18px -4px 64px 14px #5A6C9430; }
  .hero.has-scene .hc-phone .phone-device { box-shadow: var(--hc-halo); }
  .hero.has-scene .hc-float { right: 38%; top: 24%; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; transform: translate3d(0, 0, 250px); box-shadow: 0 12px 20px -8px #0B14174D, 0 52px 80px -30px #0B1417B3; }
  .hero.has-scene .hc-trk { align-content: start; padding-top: 21cqi; }
  .hero.has-scene .hc-steps { display: grid; }
  /* colour inside the board: each column wears its status */
  .hero.has-scene .hc-col-head::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--brand); }
  .hero.has-scene .hc-col:nth-child(2) .hc-col-head::before { background: var(--amber); } .hero.has-scene .hc-col:nth-child(3) .hc-col-head::before { background: var(--upgrade, var(--brand)); } .hero.has-scene .hc-col:nth-child(4) .hc-col-head::before { background: var(--ok); }
}
/* wide screens: the phone sits further from the list, so the OK moves right to stay over the phone's left edge */
@media (min-width: 1700px) { .hero.has-scene .hc-story { top: 37%; } .hero.has-scene .hc-record { left: 90%; } }
/* Rounds 21 and 22: the technician on this job, a fourth plane between the activity list and the customer's OK. It
   fills the middle of the scene with a real thing from this job, and it is there whenever the activity list is, so
   the middle is never empty: on the way, then on the job, then done with the time it took. The still frame shows
   "On the job". Side-by-side layout only. */
@media (min-width: 1200px) {
  .hero.has-scene .hc-labor { display: flex; position: absolute; left: 30%; top: 104%; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line);
    transform: translate3d(0, 0, 170px) rotateY(6deg) rotateX(-3deg); box-shadow: 0 8px 14px -8px #0B14174D, 0 40px 60px -26px #0B1417A6; }
  .hero.has-scene .hc-labor strong { display: block; font: 700 1rem/1.15 var(--font-display); letter-spacing: .01em; }
  .hero.has-scene .hc-labor-states { display: grid; }
  .hero.has-scene .hc-labor-state { grid-area: 1 / 1; opacity: 0; }
  .hero.has-scene .hc-labor-state:nth-child(3) { opacity: 1; }
  .hero.has-scene .hc-labor-state > span { display: block; font-size: .8125rem; color: var(--ink-2); }
  .hero.has-scene .hc-labor-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--ink); }
  .hero.has-scene .hc-labor-icon .icon { width: 18px; height: 18px; }
}
@media (min-width: 1700px) { .hero.has-scene .hc-record { top: 152%; } }
@media (min-width: 2200px) and (min-height: 1380px) { .hero.has-scene .hc-record { top: 134%; } .hero.has-scene .hc-cols { gap: 6px; padding: 10px; } .hero.has-scene .hc-card { padding: 10px 8px; } .hero.has-scene .hc-card .chip { font-size: .78rem; padding: 2px 6px; } }
/* (round 24: at that size step the four lanes are narrowest, so the card's widest chip, "On the way", is set a size smaller to stay inside the card) */
/* short windows: there is no room for a fourth piece and no gap to fill, so it is left out and the OK moves up */
@media (min-width: 1200px) and (max-height: 820px) { .hero.has-scene .hc-labor { display: none; } .hero.has-scene .hc-record { top: 118%; } }
/* Rounds 21 and 23: the scene answers the scroll. As the hero scrolls out, the whole scene recedes into the page: it
   shrinks to 67%, drifts up 70px, and the near planes fall back toward the board (the phone 170px, the paid chip 220px,
   the activity plane and its chips 60px; the board comes 40px forward), so the gaps between the planes visibly close.
   One number drives it, --so: 0 at rest, 1 once the hero is 40% gone, front-loaded (most of the change in the first
   flick), then held. Where the browser has scroll-driven animation the stylesheet moves --so by the hero's own exit;
   elsewhere site.js writes the same number on scroll. The job loop is NOT tied to this: it keeps its own clock.
   Nothing is pinned. Off under reduced motion and Pause motion (--so stays 0). */
@media (min-width: 900px) {
  .hero.has-scene .hc { transform-origin: 62% 40%; scale: calc(1 - .33 * var(--so)); translate: 0 calc(var(--so) * -70px); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    html:not([data-motion="off"]) .hero.has-scene { view-timeline: --hero-out block; view-timeline-inset: 0px; }
    html:not([data-motion="off"]) .hero.has-scene .hc { animation: hc-out linear both; animation-timeline: --hero-out; animation-range: exit 0% exit 40%; }
  }
}
/* front-loaded (round 23): --so = 1 - (1 - x)² over the first 40% of the hero's exit, as five stops joined by straight
   lines; site.js uses the same five stops, so both paths give the same number */
@keyframes hc-out { 0% { --so: 0; } 25% { --so: .4375; } 50% { --so: .75; } 75% { --so: .9375; } 100% { --so: 1; } }
/* 900 to 1199px (the scene sits under the copy): a simpler line, three planes. The activity list is left out; the board
   is far, the phone near, the customer's OK nearest and high enough to be on the first screen. */
@media (min-width: 900px) and (max-width: 1199.98px) { .hero.has-scene .hc { --hc-halo: 0 0 0 1px color-mix(in srgb, #fff 55%, transparent), 0 0 0 3px color-mix(in srgb, var(--brand-fill) 40%, transparent), -18px -14px 40px 24px #5A6C9490, -26px -10px 84px 20px #5A6C9438; } .hero.has-scene .hc-activity { visibility: hidden; } .hero.has-scene .hc-record { left: 83%; top: 2%; } }
/* under 900px: a light, static near and far and nothing else. The board leans back a little; the phone stands nearer,
   turned slightly, on a deeper shadow. No shared 3D space and no pointer tilt here; text stays at its full size. */
@media (max-width: 899px) {
  .hero.has-scene .hc-board { transform-origin: 50% 100%; transform: perspective(1000px) rotateX(6deg) scale(1.03); }
  .hero.has-scene .hc-phone { transform-origin: 100% 100%; margin-top: -30px; transform: perspective(900px) rotateY(-9deg) rotateZ(1.5deg) scale(1.08); filter: drop-shadow(0 10px 10px #0B141740) drop-shadow(0 34px 34px #0B141766); }
}
/* dark: a stronger glow around the scene, a dark pool directly behind the phone, and a lit (lighter) phone screen */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero.has-scene .hc { --hc-glow: 70%; --hc-dawn: 24%; --hc-halo: 0 0 0 1px color-mix(in srgb, #fff 55%, transparent), 0 0 0 3px color-mix(in srgb, var(--brand-fill) 55%, transparent), 0 0 36px 2px color-mix(in srgb, var(--brand-fill) 34%, transparent), -18px -6px 30px 22px #020507F0, -30px -4px 70px 20px #02050780; } :root:not([data-theme="light"]) .hero.has-scene .hc-phone { --surface: #31505F; --surface-2: #3C6072; --line: #FFFFFF2E; } }
:root[data-theme="dark"] .hero.has-scene .hc { --hc-glow: 70%; --hc-dawn: 24%; --hc-halo: 0 0 0 1px color-mix(in srgb, #fff 55%, transparent), 0 0 0 3px color-mix(in srgb, var(--brand-fill) 55%, transparent), 0 0 36px 2px color-mix(in srgb, var(--brand-fill) 34%, transparent), -18px -6px 30px 22px #020507F0, -30px -4px 70px 20px #02050780; }
:root[data-theme="dark"] .hero.has-scene .hc-phone { --surface: #31505F; --surface-2: #3C6072; --line: #FFFFFF2E; }
/* arrival: the pieces fly forward out of depth and land, far first, the phone last and from furthest. No opacity, so a
   failed animation shows the resting scene, never an empty hero. The float is added on top once they have landed. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero.has-scene .hc { animation: none; }
  .hero.has-scene .hc .hc-board { animation: hc-in-far 900ms cubic-bezier(.16, .8, .24, 1) backwards, hc-float-a 19s ease-in-out infinite alternate; animation-composition: replace, add; }
  .hero.has-scene .hc .hc-story { animation: hc-in-mid 950ms cubic-bezier(.16, .8, .24, 1) 120ms backwards, hc-float-b 15s ease-in-out -4s infinite alternate; animation-composition: replace, add; }
  .hero.has-scene .hc .hc-phone { animation: hc-in-near 1050ms cubic-bezier(.16, .8, .24, 1) 240ms backwards, hc-float-b 23s ease-in-out -11s infinite alternate; animation-composition: replace, add; }
  .hero.has-scene .hc:not(.rt-live) .hc-tilt > * { animation-play-state: running, paused; }
  /* in the loop, the step that becomes current pushes forward at the viewer and settles: the phone as its status
     changes (on the way, repairing, ready), the customer's OK as it arrives */
  .hero.has-scene .hc.rt-live .hc-phone .phone { animation: hc-job-push 20s linear -8.2s infinite both; }
}
@keyframes hc-in-far { from { translate: 0 30px -420px; } }
@keyframes hc-in-mid { from { translate: -30px 50px -620px; } }
@keyframes hc-in-near { from { translate: 40px 90px -980px; } }
@keyframes hc-job-push { 0%, 13% { scale: 1; } 15% { scale: 1.035; } 19%, 24% { scale: 1; } 26% { scale: 1.035; } 29%, 34% { scale: 1; } 36% { scale: 1.035; } 39%, 65% { scale: 1; } 67% { scale: 1.035; } 71%, 82% { scale: 1; } 84% { scale: 1.035; } 88%, 100% { scale: 1; } }

/* ---------- Home: sections arrive as they are scrolled to (rounds 17–18) ----------
   Below the hero, each section's heading and its cards rise and settle as they enter. Two paths, same look:
     • browsers with scroll-driven animations: tied to the scroll position itself (a view timeline), CSS only;
     • the others (Firefox and its family, Safari before 26): site.js marks the same elements .sdr and adds .in as each
       comes on screen, once.
   With no script, with reduced motion, or with "Pause motion" pressed, these elements simply sit in place, visible.
   Home page only (they follow the home hero). No scale: an arriving element keeps its touch-target size. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-motion="off"]) .hero.has-scene ~ .section :is(.section-head, .flow-head) { animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    html:not([data-motion="off"]) .hero.has-scene ~ .section :is(.mb-cell, .ai3-card, .rt-col, .acc, .counts, .cn-item, .faq) { animation: sd-card linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  }
}
@keyframes sd-rise { from { opacity: 0; translate: 0 20px; } }
@keyframes sd-card { from { opacity: 0; translate: 0 32px; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .sdr { opacity: 0; translate: 0 24px; transition: opacity var(--dur-frame) var(--ease-out), translate var(--dur-frame) var(--ease-out); }
  html:not([data-motion="off"]) .sdr.in { opacity: 1; translate: none; }
}

/* ---------- How it works: the six jump cards as one journey (round 9; rebuilt round 10, item 10) ----------
   Full width below the hero copy: 3 × 2 from 1024px, 2 × 3 from 640px, one column on phones. The number, icon, state
   pill and arrow share ONE line with a gap, so nothing overlaps; titles stay within two lines. A rail with six stops
   runs above the cards (down the left on phones); a truck token travels it 01 → 06 over a 12s loop, lighting each card
   as it arrives, while that card's pill turns from "before" to "after" and its icon plays its own small move. Only while
   on screen and with motion allowed; it enters on its finished frame. Without motion every card is lit at its "after"
   state. Hover lifts a card with the hero's soft tilt. */
.jr { position: relative; display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 40px); }
.jump { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; perspective: 1200px; }
@media (min-width: 640px) { .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .jump { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jump-card { position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 16px 18px 18px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out); }
.jump-card:hover, .jump-card:focus-visible { transform: translateY(-5px) rotateX(3deg) rotateY(-3deg); border-color: var(--brand); box-shadow: 0 22px 40px -26px #0B141799; }
.jump-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.jump-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.jump-num { font-size: .875rem; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.jump-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.jump-icon .icon { width: 19px; height: 19px; }
.jump-pill { display: inline-grid; flex: none; margin-left: auto; }
.jump-pill > * { grid-area: 1 / 1; justify-self: end; padding: 3px 10px; border-radius: var(--r-chip); font-size: .8125rem; white-space: nowrap; border: 1px solid var(--line); }
.jump-pill > :first-child { visibility: hidden; background: var(--surface-2); color: var(--ink-2); }
.jump-pill > :last-child { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ink); }
.jump-go { width: 18px; height: 18px; flex: none; color: var(--brand); transition: transform 220ms var(--ease-out); }
.jump-card:hover .jump-go { transform: translateY(3px); }
.jump-card strong { font: 600 1.2rem/1.2 var(--font-display); text-wrap: balance; }
.jump-hint { font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
/* The rail */
.jr-rail { position: relative; height: 34px; margin: 0 calc(100% / 12); }
.jr-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: color-mix(in srgb, var(--ink-2) 25%, transparent); }
.jr-line i { position: absolute; inset: 0; background: var(--brand-fill); transform-origin: left center; }
.jr-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brand-fill); border: 2px solid var(--surface); }
.jr-d1 { left: 0%; } .jr-d2 { left: 20%; } .jr-d3 { left: 40%; } .jr-d4 { left: 60%; } .jr-d5 { left: 80%; } .jr-d6 { left: 100%; }
.jr-token { position: absolute; top: 50%; left: 100%; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); box-shadow: 0 6px 16px -8px #0B1417AA; }
.jr-token .icon { width: 18px; height: 18px; }
@media (max-width: 639px) {
  .jr { grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; }
  .jr-rail { height: auto; margin: 40px 0; }
  .jr-line { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin-left: -1px; }
  .jr-line i { transform-origin: center top; }
  .jr-dot { left: 50% !important; } .jr-d1 { top: 0%; } .jr-d2 { top: 20%; } .jr-d3 { top: 40%; } .jr-d4 { top: 60%; } .jr-d5 { top: 80%; } .jr-d6 { top: 100%; }
  .jr-token { left: 50%; top: 100%; }
}
@media (forced-colors: active) { .jr-token, .jr-line i, .jr-dot { forced-color-adjust: none; background: CanvasText; color: Canvas; } }
@media (prefers-reduced-motion: no-preference) {
  .jr.rt-live .jr-token { animation: jr-token 12s var(--ease-in-out) -11s infinite both; }
  .jr.rt-live .jr-line i { animation: jr-line 12s var(--ease-in-out) -11s infinite both; }
  @media (max-width: 639px) { .jr.rt-live .jr-token { animation-name: jr-token-v; } .jr.rt-live .jr-line i { animation-name: jr-line-v; } }
  .jr.rt-live .jump-item:nth-child(1) .jump-card { animation: jr-card-1 12s var(--ease-out) -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(1) .jump-pill > :first-child { animation: jr-before-1 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(1) .jump-pill > :last-child { animation: jr-after-1 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(1) .jump-icon .icon { animation: jr-truck 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(2) .jump-card { animation: jr-card-2 12s var(--ease-out) -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(2) .jump-pill > :first-child { animation: jr-before-2 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(2) .jump-pill > :last-child { animation: jr-after-2 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(2) .jump-icon .icon { animation: jr-swipe 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(3) .jump-card { animation: jr-card-3 12s var(--ease-out) -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(3) .jump-pill > :first-child { animation: jr-before-3 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(3) .jump-pill > :last-child { animation: jr-after-3 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(3) .jump-icon .icon { animation: jr-pulse 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(4) .jump-card { animation: jr-card-4 12s var(--ease-out) -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(4) .jump-pill > :first-child { animation: jr-before-4 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(4) .jump-pill > :last-child { animation: jr-after-4 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(4) .jump-icon .icon { animation: jr-sign 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(5) .jump-card { animation: jr-card-5 12s var(--ease-out) -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(5) .jump-pill > :first-child { animation: jr-before-5 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(5) .jump-pill > :last-child { animation: jr-after-5 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(5) .jump-icon .icon { animation: jr-buzz 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(6) .jump-card { animation: jr-card-6 12s var(--ease-out) -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(6) .jump-pill > :first-child { animation: jr-before-6 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(6) .jump-pill > :last-child { animation: jr-after-6 12s linear -11s infinite both; }
  .jr.rt-live .jump-item:nth-child(6) .jump-icon .icon { animation: jr-print 12s linear -11s infinite both; }
  .jump-card:hover .jump-i-job .icon { animation: jr-truck-h 900ms ease-in-out; }
  .jump-card:hover .jump-i-cod .icon { animation: jr-swipe-h 700ms ease-in-out; }
  .jump-card:hover .jump-i-added-work .icon { animation: jr-pulse-h 800ms ease-in-out; }
  .jump-card:hover .jump-i-approval .icon { animation: jr-sign-h 800ms ease-in-out; }
  .jump-card:hover .jump-i-tech-app .icon { animation: jr-buzz-h 600ms linear; }
  .jump-card:hover .jump-i-invoice .icon { animation: jr-print-h 800ms ease-in-out; }
}
@keyframes jr-token { 0%, 9.17% { left: 0%; } 16.67%, 25.83% { left: 20%; } 33.33%, 42.5% { left: 40%; } 50%, 59.17% { left: 60%; } 66.67%, 75.83% { left: 80%; } 83.33%, 92.5% { left: 100%; } 100% { left: 100%; } }
@keyframes jr-token-v { 0%, 9.17% { top: 0%; } 16.67%, 25.83% { top: 20%; } 33.33%, 42.5% { top: 40%; } 50%, 59.17% { top: 60%; } 66.67%, 75.83% { top: 80%; } 83.33%, 92.5% { top: 100%; } 100% { top: 100%; } }
@keyframes jr-line { 0%, 9.17% { transform: scaleX(0.00); } 16.67%, 25.83% { transform: scaleX(0.20); } 33.33%, 42.5% { transform: scaleX(0.40); } 50%, 59.17% { transform: scaleX(0.60); } 66.67%, 75.83% { transform: scaleX(0.80); } 83.33%, 92.5% { transform: scaleX(1.00); } }
@keyframes jr-line-v { 0%, 9.17% { transform: scaleY(0.00); } 16.67%, 25.83% { transform: scaleY(0.20); } 33.33%, 42.5% { transform: scaleY(0.40); } 50%, 59.17% { transform: scaleY(0.60); } 66.67%, 75.83% { transform: scaleY(0.80); } 83.33%, 92.5% { transform: scaleY(1.00); } }
@keyframes jr-card-1 { 0%, 0% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; transform: none; } 1%, 15.67% { border-color: var(--brand); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-4px); } 16.67%, 97% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 0 transparent; transform: none; } 100% { border-color: var(--line); } }
@keyframes jr-before-1 { 0%, 8.33% { visibility: visible; } 8.63%, 97% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes jr-after-1 { 0%, 8.33% { visibility: hidden; transform: scale(.85); } 8.63% { visibility: visible; transform: scale(1.12); } 11.33%, 97% { visibility: visible; transform: none; } 100% { visibility: hidden; } }
@keyframes jr-card-2 { 0%, 16.66% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; transform: none; } 17.67%, 32.33% { border-color: var(--brand); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-4px); } 33.33%, 97% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 0 transparent; transform: none; } 100% { border-color: var(--line); } }
@keyframes jr-before-2 { 0%, 25% { visibility: visible; } 25.3%, 97% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes jr-after-2 { 0%, 25% { visibility: hidden; transform: scale(.85); } 25.3% { visibility: visible; transform: scale(1.12); } 28%, 97% { visibility: visible; transform: none; } 100% { visibility: hidden; } }
@keyframes jr-card-3 { 0%, 33.32% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; transform: none; } 34.33%, 49% { border-color: var(--brand); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-4px); } 50%, 97% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 0 transparent; transform: none; } 100% { border-color: var(--line); } }
@keyframes jr-before-3 { 0%, 41.67% { visibility: visible; } 41.97%, 97% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes jr-after-3 { 0%, 41.67% { visibility: hidden; transform: scale(.85); } 41.97% { visibility: visible; transform: scale(1.12); } 44.67%, 97% { visibility: visible; transform: none; } 100% { visibility: hidden; } }
@keyframes jr-card-4 { 0%, 49.99% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; transform: none; } 51%, 65.67% { border-color: var(--brand); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-4px); } 66.67%, 97% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 0 transparent; transform: none; } 100% { border-color: var(--line); } }
@keyframes jr-before-4 { 0%, 58.33% { visibility: visible; } 58.63%, 97% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes jr-after-4 { 0%, 58.33% { visibility: hidden; transform: scale(.85); } 58.63% { visibility: visible; transform: scale(1.12); } 61.33%, 97% { visibility: visible; transform: none; } 100% { visibility: hidden; } }
@keyframes jr-card-5 { 0%, 66.66% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; transform: none; } 67.67%, 82.33% { border-color: var(--brand); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-4px); } 83.33%, 97% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 0 transparent; transform: none; } 100% { border-color: var(--line); } }
@keyframes jr-before-5 { 0%, 75% { visibility: visible; } 75.3%, 97% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes jr-after-5 { 0%, 75% { visibility: hidden; transform: scale(.85); } 75.3% { visibility: visible; transform: scale(1.12); } 78%, 97% { visibility: visible; transform: none; } 100% { visibility: hidden; } }
@keyframes jr-card-6 { 0%, 83.32% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; transform: none; } 84.33%, 99% { border-color: var(--brand); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-4px); } 100%, 97% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 0 0 0 transparent; transform: none; } 100% { border-color: var(--line); } }
@keyframes jr-before-6 { 0%, 91.67% { visibility: visible; } 91.97%, 97% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes jr-after-6 { 0%, 91.67% { visibility: hidden; transform: scale(.85); } 91.97% { visibility: visible; transform: scale(1.12); } 94.67%, 97% { visibility: visible; transform: none; } 100% { visibility: hidden; } }
@keyframes jr-truck { 0%, 0% { transform: none; } 4% { transform: translateX(4px); } 8% { transform: translateX(-2px); } 12%, 100% { transform: none; } }
@keyframes jr-swipe { 0%, 16.67% { transform: none; } 21.67% { transform: translateX(6px) rotate(-6deg); } 26.67%, 100% { transform: none; } }
@keyframes jr-pulse { 0%, 33.33% { transform: none; } 36.33% { transform: scale(1.25); } 39.33% { transform: none; } 42.33% { transform: scale(1.2); } 45.33%, 100% { transform: none; } }
@keyframes jr-sign { 0%, 50% { transform: none; } 54% { transform: rotate(-12deg) translateY(-2px); } 58% { transform: rotate(8deg); } 62%, 100% { transform: none; } }
@keyframes jr-buzz { 0%, 66.67% { transform: none; } 68.17%, 71.17%, 74.17% { transform: translateX(-2px) rotate(-4deg); } 69.67%, 72.67%, 75.67% { transform: translateX(2px) rotate(4deg); } 77.17%, 100% { transform: none; } }
@keyframes jr-print { 0%, 83.33% { transform: none; } 87.33% { transform: translateY(-3px); } 91.33% { transform: translateY(2px); } 95.33%, 100% { transform: none; } }
@keyframes jr-truck-h { 40% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
@keyframes jr-swipe-h { 50% { transform: translateX(6px) rotate(-6deg); } }
@keyframes jr-pulse-h { 25%, 75% { transform: scale(1.25); } 50% { transform: none; } }
@keyframes jr-sign-h { 40% { transform: rotate(-12deg) translateY(-2px); } 75% { transform: rotate(8deg); } }
@keyframes jr-buzz-h { 20%, 60% { transform: translateX(-2px) rotate(-4deg); } 40%, 80% { transform: translateX(2px) rotate(4deg); } }
@keyframes jr-print-h { 40% { transform: translateY(-3px); } 75% { transform: translateY(2px); } }

/* ---------- COD vs Net terms (LaneFlow.astro, round 8): two swimlanes on shared stages ---------- */
.lf { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.lf-pick, .pf-pick { position: fixed; top: 50%; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.lf-switch { justify-self: start; display: inline-flex; padding: 4px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); }
.lf-switch label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-btn); font-weight: 650; color: var(--ink-2); cursor: pointer; }
.lf-switch .icon { width: 16px; height: 16px; }
#lf-cod:checked ~ .lf-switch label[for="lf-cod"], #lf-net:checked ~ .lf-switch label[for="lf-net"] { background: var(--brand-fill); color: var(--brand-ink); }
#lf-cod:focus-visible ~ .lf-switch label[for="lf-cod"], #lf-net:focus-visible ~ .lf-switch label[for="lf-net"] { outline: 3px solid var(--brand); outline-offset: 2px; }
#lf-cod:checked ~ .lf-board :is(.lf-net, .lf-track-net, .lf-name-net), #lf-net:checked ~ .lf-board :is(.lf-cod, .lf-track-cod, .lf-name-cod) { opacity: .38; }
.lf-board { position: relative; display: grid; gap: 10px 12px; padding: clamp(14px, 2vw, 26px); border-radius: 24px; border: 1px solid var(--line); background-color: var(--surface-2); }
.lf-board > * { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); min-width: 0; }
/* Round 9: the chosen lane lifts a little while the other dims (≈300 ms; instant under reduced motion). */
#lf-cod:checked ~ .lf-board .lf-node.lf-cod, #lf-net:checked ~ .lf-board .lf-node.lf-net { transform: translateY(-3px); box-shadow: 0 14px 28px -20px #0B141766; }
.lf-switch label { transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out); }
.lf-stage { display: flex; flex-direction: column; gap: 2px; font: 600 .9375rem/1.2 var(--font-display); color: var(--ink); }
.lf-stage .mono { font: 500 .8125rem/1 var(--font-mono); color: var(--ink-2); }
.lf-name { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.lf-name .icon { width: 18px; height: 18px; color: var(--brand); }
.lf-node { position: relative; display: grid; gap: 6px; align-content: start; justify-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: .875rem; z-index: 1; }
.lf-node strong { font-weight: 650; font-size: .9375rem; }
.lf-node .chip { font-size: .8125rem; }
.lf-note { color: var(--ink-2); font-size: .8125rem; }
.lf-node.is-lock { border: 1.5px solid var(--amber); }
.lf-node.is-later { border-style: dashed; background: transparent; }
.lf-node.is-open { border-style: dashed; }
.lf-lock { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--amber-soft); color: var(--ink); }
.lf-lock .icon { grid-area: 1 / 1; width: 16px; height: 16px; }
.lf-node.is-open .lf-lock { background: var(--surface-2); color: var(--ink-2); }
.lf-lock .lf-shut { opacity: 0; } .lf-lock .lf-open { opacity: 1; }
.lf-track { display: none; }
/* Below 1200px: each stage is a label row, then the two lanes side by side (COD | Net 30); no motion. */
@media (max-width: 1199px) {
  .lf-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .lf-name-cod { grid-column: 1; grid-row: 1; } .lf-name-net { grid-column: 2; grid-row: 1; }
  .lf-c1.lf-stage { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c1.lf-cod { grid-column: 1; grid-row: 3; } .lf-c1.lf-net { grid-column: 2; grid-row: 3; }
  .lf-c2.lf-stage { grid-column: 1 / -1; grid-row: 4; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c2.lf-cod { grid-column: 1; grid-row: 5; } .lf-c2.lf-net { grid-column: 2; grid-row: 5; }
  .lf-c3.lf-stage { grid-column: 1 / -1; grid-row: 6; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c3.lf-cod { grid-column: 1; grid-row: 7; } .lf-c3.lf-net { grid-column: 2; grid-row: 7; }
  .lf-c4.lf-stage { grid-column: 1 / -1; grid-row: 8; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c4.lf-cod { grid-column: 1; grid-row: 9; } .lf-c4.lf-net { grid-column: 2; grid-row: 9; }
  .lf-c5.lf-stage { grid-column: 1 / -1; grid-row: 10; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c5.lf-cod { grid-column: 1; grid-row: 11; } .lf-c5.lf-net { grid-column: 2; grid-row: 11; }
  .lf-c6.lf-stage { grid-column: 1 / -1; grid-row: 12; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c6.lf-cod { grid-column: 1; grid-row: 13; } .lf-c6.lf-net { grid-column: 2; grid-row: 13; }
  .lf-c7.lf-stage { grid-column: 1 / -1; grid-row: 14; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; } .lf-c7.lf-cod { grid-column: 1; grid-row: 15; } .lf-c7.lf-net { grid-column: 2; grid-row: 15; }
}
/* Wide: stages across the top, a lane per row; each lane has a dashed track above its cards with a truck on it. */
@media (min-width: 1200px) {
  .lf-board { grid-template-columns: 96px repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto auto; row-gap: 14px; }
  .lf-name-cod { grid-column: 1; grid-row: 2; align-self: start; margin-top: 34px; } .lf-name-net { grid-column: 1; grid-row: 3; align-self: start; margin-top: 34px; }
  .lf-c1.lf-stage { grid-column: 2; grid-row: 1; } .lf-c1.lf-cod { grid-column: 2; grid-row: 2; } .lf-c1.lf-net { grid-column: 2; grid-row: 3; }
  .lf-c2.lf-stage { grid-column: 3; grid-row: 1; } .lf-c2.lf-cod { grid-column: 3; grid-row: 2; } .lf-c2.lf-net { grid-column: 3; grid-row: 3; }
  .lf-c3.lf-stage { grid-column: 4; grid-row: 1; } .lf-c3.lf-cod { grid-column: 4; grid-row: 2; } .lf-c3.lf-net { grid-column: 4; grid-row: 3; }
  .lf-c4.lf-stage { grid-column: 5; grid-row: 1; } .lf-c4.lf-cod { grid-column: 5; grid-row: 2; } .lf-c4.lf-net { grid-column: 5; grid-row: 3; }
  .lf-c5.lf-stage { grid-column: 6; grid-row: 1; } .lf-c5.lf-cod { grid-column: 6; grid-row: 2; } .lf-c5.lf-net { grid-column: 6; grid-row: 3; }
  .lf-c6.lf-stage { grid-column: 7; grid-row: 1; } .lf-c6.lf-cod { grid-column: 7; grid-row: 2; } .lf-c6.lf-net { grid-column: 7; grid-row: 3; }
  .lf-c7.lf-stage { grid-column: 8; grid-row: 1; } .lf-c7.lf-cod { grid-column: 8; grid-row: 2; } .lf-c7.lf-net { grid-column: 8; grid-row: 3; }
  .lf-node { margin-top: 36px; min-height: 128px; }
  .lf-node .lf-lock { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); border: 2px solid var(--amber); }
  .lf-node.is-open .lf-lock { border: 2px dashed var(--line); }
  .lf-track { display: block; position: relative; grid-column: 2 / -1; height: 30px; align-self: start; pointer-events: none; z-index: 2; }
  .lf-track-cod { grid-row: 2; } .lf-track-net { grid-row: 3; }
  .lf-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--ink-2) 45%, transparent); }
  .lf-track-cod .lf-line { border-color: color-mix(in srgb, var(--amber) 70%, transparent); }
  .lf-truck { position: absolute; top: 50%; left: calc(92.857% - 16px); transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-fill); color: var(--brand-ink); box-shadow: 0 6px 16px -6px #0B141780; }
  .lf-truck .icon { width: 18px; height: 18px; }
  /* the trucks sit beside the locks, which are drawn on the same line */
  .lf-track-cod .lf-truck { margin-left: -38px; } .lf-track-net .lf-truck { margin-left: -38px; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .lf-board.rt-live .lf-track-cod .lf-truck { animation: lf-cod 9s var(--ease-in-out) infinite; }
  .lf-board.rt-live .lf-track-net .lf-truck { animation: lf-net 9s var(--ease-in-out) infinite; }
  .lf-board.rt-live .lf-cod.lf-c2 .lf-shut { animation: lf-shut-1 9s steps(1) infinite; }
  .lf-board.rt-live .lf-cod.lf-c2 .lf-open { animation: lf-open-1 9s steps(1) infinite; }
  .lf-board.rt-live .lf-cod.lf-c7 .lf-shut { animation: lf-shut-2 9s steps(1) infinite; }
  .lf-board.rt-live .lf-cod.lf-c7 .lf-open { animation: lf-open-2 9s steps(1) infinite; }
}
/* COD: drives to the first lock and WAITS until the hold lands (lock opens at 30%), then on to Paid, waits for the
   balance (second lock opens at 78%), then home. Net 30: straight through; it passes Paid and is released first. */
@keyframes lf-cod {
  0% { left: calc(7.143% - 16px); } 8%, 30% { left: calc(21.429% - 16px); } 38% { left: calc(35.714% - 16px); } 46% { left: calc(50.0% - 16px); }
  54% { left: calc(64.286% - 16px); } 62%, 78% { left: calc(78.571% - 16px); } 86%, 100% { left: calc(92.857% - 16px); }
}
@keyframes lf-net {
  0% { left: calc(7.143% - 16px); } 8% { left: calc(21.429% - 16px); } 16% { left: calc(35.714% - 16px); } 24% { left: calc(50.0% - 16px); }
  32% { left: calc(64.286% - 16px); } 46%, 100% { left: calc(92.857% - 16px); }
}
@keyframes lf-shut-1 { 0% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes lf-open-1 { 0% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes lf-shut-2 { 0% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes lf-open-2 { 0% { opacity: 0; } 78%, 100% { opacity: 1; } }

/* ---------- Single-lane flows (PairFlow.astro, round 8): rail + office and phone fixed side by side ---------- */
.pf { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.pf-body { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
.pf-rail { position: relative; list-style: none; margin: 0; padding: 0 0 0 10px; display: grid; gap: 6px; }
.pf-rail::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; border-left: 2px solid var(--line); }
.pf-step { position: relative; display: grid; gap: 8px; }
.pf-label { display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font: 600 .875rem/1 var(--font-mono); letter-spacing: .08em; color: var(--ink); }
.pf-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--brand-fill); background: var(--brand-fill); transition: box-shadow var(--dur-short), background-color var(--dur-short); }
.pf-desc { display: none; gap: 8px; padding: 0 0 10px 30px; }
.pf-desc h3 { font-size: var(--step-4); line-height: 1.08; }
.pf-desc p { color: var(--ink-2); line-height: 1.5; max-width: 46ch; }
.pf-stage { display: grid; gap: 12px; padding: clamp(14px, 2vw, 24px); border-radius: 24px; border: 1px solid var(--line); background-color: var(--surface-2); }
.pf-cells { display: grid; }
/* Round 9: steps crossfade — the old content fades out while the new one fades and slides in (the devices themselves
   never move); hidden content keeps visibility:hidden after the fade, so it stays out of the tab order. */
.pf-cells > .pf-s { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms; }
.pf-link .pf-cells > .pf-s { transform: translateX(-10px); }
.pf-cap { font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pf-office { display: grid; gap: 8px; grid-template-rows: auto 1fr; min-width: 0; }
.pf-web { display: flex; flex-direction: column; min-height: 0; }
.pf-web .frame-bar .pf-cells { margin-left: 6px; }
.pf-web-body { padding-bottom: 4px; }
.pf-act { display: grid; gap: 8px; align-content: start; flex: 1; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.pf-act-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pf-act-head .ui-sub { text-transform: none; letter-spacing: 0; font-family: var(--font-text); }
.pf-act ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.pf-act li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .875rem; }
.pf-act li .mono { color: var(--ink-2); font-size: .8125rem; }
.pf-act li.is-new { background: var(--brand-soft); }
.pf-act li.is-old { color: var(--ink-2); }
/* Round 16: the devices sit close. Side by side the gap IS the connector's column (150px from 1440, 132px below; the
   stage's own column gap is 0), the line runs edge to edge, and the label sits right under it. A label wider than the
   gap wraps to two balanced lines inside it, so it never reaches a device. */
.pf-link { display: grid; place-items: center; min-width: 0; }
.pf-link .pf-s { display: grid; justify-items: center; align-content: center; gap: 0; }
.pf-curve { display: block; overflow: visible; }
.pf-h { width: 100%; height: auto; aspect-ratio: 160 / 12; }
.pf-v { display: none; }
.pf-curve path { fill: none; stroke: color-mix(in srgb, var(--brand) 65%, transparent); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.pf-dir-none .pf-curve path { stroke: color-mix(in srgb, var(--ink-2) 40%, transparent); }
.pf-tag { max-width: calc(100% - 12px); padding: 5px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; line-height: 1rem; color: var(--ink); text-align: center; text-wrap: balance; }
.pf-dir-none .pf-tag { color: var(--ink-2); border-style: dashed; }
/* Round 16: the phone (with its label) is centred against the office screen, which is usually the taller of the two,
   so the pair reads as one composition and the connector meets both near their middles. */
.pf-phone { display: grid; gap: 8px; justify-items: center; align-content: center; }
.pf-phone .phone { width: 100%; max-width: 16.25rem; }
.pf-phone .phone-screen { aspect-ratio: 9 / 18.5; }
.pf-screen { position: absolute; inset: 0; }
.pf-screen > .pf-s { overflow: hidden; }
/* the step screens are one level deeper than a plain phone's, so they get its island clearance and type size too */
.pf-screen > .pf-s > .ui, .pf-screen > .pf-s > .trk { position: absolute; inset: 0; overflow: hidden; padding-top: 15cqi; font-size: .875rem; }
.pf-screen > .pf-s > .ui:not(.ui-lock) { padding-inline: 5cqi; padding-bottom: 15cqi; align-content: center; } /* a short screen (an email of two lines) sits in the middle of the phone, not at the top of an empty one */
@keyframes pf-row-in { from { opacity: 0; transform: translateY(-8px); background: transparent; } }
/* Wide: rail left, then office · connector · phone at one height. */
@media (min-width: 1440px) {
  .pf-body { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .pf-stage { grid-template-columns: minmax(0, 1fr) 150px 16.25rem; column-gap: 0; align-items: stretch; }
  .pf-tag { font-size: .75rem; }
  .pf-link { padding-top: 20px; }
}
/* Below 1440px: the rail above, the devices side by side. */
@media (min-width: 1024px) and (max-width: 1439px) {
  .pf-stage { grid-template-columns: minmax(0, 1fr) 132px 14rem; column-gap: 0; align-items: stretch; }
  .pf-tag { font-size: .75rem; }
}
/* Below 1024px (round 10: the one-line pill needs room): office, the connector turned downward, then the phone. */
@media (max-width: 1023px) {
  /* stacked: a 64px drop from the office screen's bottom edge to the phone's block, the label beside the line on one line */
  .pf-link { margin-block: -12px; }
  .pf-link .pf-s { grid-template-columns: 24px auto; align-items: center; justify-content: center; column-gap: 10px; }
  .pf-h { display: none; }
  .pf-v { display: block; width: 24px; height: 64px; }
  .pf-tag { max-width: none; white-space: nowrap; }
}
.pf-pick:nth-of-type(1):checked ~ .pf-stage .pf-s1, .pf-pick:nth-of-type(1):checked ~ .pf-stage .pf-cells > .pf-s1 { visibility: visible; opacity: 1; transform: none; transition: opacity 280ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms, visibility 0s; }
.pf-pick:nth-of-type(1):checked ~ .pf-stage .pf-s1 li.is-new { animation: pf-row-in 520ms var(--ease-out) 180ms both; }
.pf-pick:nth-of-type(1):checked ~ .pf-rail .pf-step:nth-child(1) .pf-desc { display: grid; }
.pf-pick:nth-of-type(1):checked ~ .pf-rail .pf-step:nth-child(1) .pf-label { color: var(--brand); }
.pf-pick:nth-of-type(1):checked ~ .pf-rail .pf-step:nth-child(1) .pf-dot { border-color: var(--brand-fill); background: var(--bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 22%, transparent); }
.pf-pick:nth-of-type(1):checked ~ .pf-rail .pf-step:nth-child(n+2) .pf-dot { background: var(--bg); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.pf-pick:nth-of-type(1):checked ~ .pf-rail .pf-step:nth-child(n+2) .pf-label { color: var(--ink-2); }
.pf-pick:nth-of-type(1):focus-visible ~ .pf-rail .pf-step:nth-child(1) .pf-label { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.pf-pick:nth-of-type(2):checked ~ .pf-stage .pf-s2, .pf-pick:nth-of-type(2):checked ~ .pf-stage .pf-cells > .pf-s2 { visibility: visible; opacity: 1; transform: none; transition: opacity 280ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms, visibility 0s; }
.pf-pick:nth-of-type(2):checked ~ .pf-stage .pf-s2 li.is-new { animation: pf-row-in 520ms var(--ease-out) 180ms both; }
.pf-pick:nth-of-type(2):checked ~ .pf-rail .pf-step:nth-child(2) .pf-desc { display: grid; }
.pf-pick:nth-of-type(2):checked ~ .pf-rail .pf-step:nth-child(2) .pf-label { color: var(--brand); }
.pf-pick:nth-of-type(2):checked ~ .pf-rail .pf-step:nth-child(2) .pf-dot { border-color: var(--brand-fill); background: var(--bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 22%, transparent); }
.pf-pick:nth-of-type(2):checked ~ .pf-rail .pf-step:nth-child(n+3) .pf-dot { background: var(--bg); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.pf-pick:nth-of-type(2):checked ~ .pf-rail .pf-step:nth-child(n+3) .pf-label { color: var(--ink-2); }
.pf-pick:nth-of-type(2):focus-visible ~ .pf-rail .pf-step:nth-child(2) .pf-label { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.pf-pick:nth-of-type(3):checked ~ .pf-stage .pf-s3, .pf-pick:nth-of-type(3):checked ~ .pf-stage .pf-cells > .pf-s3 { visibility: visible; opacity: 1; transform: none; transition: opacity 280ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms, visibility 0s; }
.pf-pick:nth-of-type(3):checked ~ .pf-stage .pf-s3 li.is-new { animation: pf-row-in 520ms var(--ease-out) 180ms both; }
.pf-pick:nth-of-type(3):checked ~ .pf-rail .pf-step:nth-child(3) .pf-desc { display: grid; }
.pf-pick:nth-of-type(3):checked ~ .pf-rail .pf-step:nth-child(3) .pf-label { color: var(--brand); }
.pf-pick:nth-of-type(3):checked ~ .pf-rail .pf-step:nth-child(3) .pf-dot { border-color: var(--brand-fill); background: var(--bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 22%, transparent); }
.pf-pick:nth-of-type(3):checked ~ .pf-rail .pf-step:nth-child(n+4) .pf-dot { background: var(--bg); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.pf-pick:nth-of-type(3):checked ~ .pf-rail .pf-step:nth-child(n+4) .pf-label { color: var(--ink-2); }
.pf-pick:nth-of-type(3):focus-visible ~ .pf-rail .pf-step:nth-child(3) .pf-label { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.pf-pick:nth-of-type(4):checked ~ .pf-stage .pf-s4, .pf-pick:nth-of-type(4):checked ~ .pf-stage .pf-cells > .pf-s4 { visibility: visible; opacity: 1; transform: none; transition: opacity 280ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms, visibility 0s; }
.pf-pick:nth-of-type(4):checked ~ .pf-stage .pf-s4 li.is-new { animation: pf-row-in 520ms var(--ease-out) 180ms both; }
.pf-pick:nth-of-type(4):checked ~ .pf-rail .pf-step:nth-child(4) .pf-desc { display: grid; }
.pf-pick:nth-of-type(4):checked ~ .pf-rail .pf-step:nth-child(4) .pf-label { color: var(--brand); }
.pf-pick:nth-of-type(4):checked ~ .pf-rail .pf-step:nth-child(4) .pf-dot { border-color: var(--brand-fill); background: var(--bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 22%, transparent); }
.pf-pick:nth-of-type(4):checked ~ .pf-rail .pf-step:nth-child(n+5) .pf-dot { background: var(--bg); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.pf-pick:nth-of-type(4):checked ~ .pf-rail .pf-step:nth-child(n+5) .pf-label { color: var(--ink-2); }
.pf-pick:nth-of-type(4):focus-visible ~ .pf-rail .pf-step:nth-child(4) .pf-label { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.pf-pick:nth-of-type(5):checked ~ .pf-stage .pf-s5, .pf-pick:nth-of-type(5):checked ~ .pf-stage .pf-cells > .pf-s5 { visibility: visible; opacity: 1; transform: none; transition: opacity 280ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms, visibility 0s; }
.pf-pick:nth-of-type(5):checked ~ .pf-stage .pf-s5 li.is-new { animation: pf-row-in 520ms var(--ease-out) 180ms both; }
.pf-pick:nth-of-type(5):checked ~ .pf-rail .pf-step:nth-child(5) .pf-desc { display: grid; }
.pf-pick:nth-of-type(5):checked ~ .pf-rail .pf-step:nth-child(5) .pf-label { color: var(--brand); }
.pf-pick:nth-of-type(5):checked ~ .pf-rail .pf-step:nth-child(5) .pf-dot { border-color: var(--brand-fill); background: var(--bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 22%, transparent); }
.pf-pick:nth-of-type(5):checked ~ .pf-rail .pf-step:nth-child(n+6) .pf-dot { background: var(--bg); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.pf-pick:nth-of-type(5):checked ~ .pf-rail .pf-step:nth-child(n+6) .pf-label { color: var(--ink-2); }
.pf-pick:nth-of-type(5):focus-visible ~ .pf-rail .pf-step:nth-child(5) .pf-label { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Flows: the shared stage ---------- */
.flow { position: relative; }
.flow + .flow { margin-top: clamp(56px, 8vw, 104px); }
.flow-head { display: grid; gap: 14px; max-width: 860px; margin-bottom: clamp(20px, 3vw, 36px); }
.flow-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.flow-rail { display: flex; gap: 8px; list-style: none; margin: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; min-width: 0; }
.flow-rail::-webkit-scrollbar { display: none; }
.rail-btn { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 8px 14px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; white-space: nowrap; flex: 1 0 auto; transition: background-color var(--dur-short), color var(--dur-short), border-color var(--dur-short); }
.rail-btn .icon { grid-row: span 2; width: 22px; height: 22px; }
.rail-num { font: 700 .75rem/1 var(--font-mono); letter-spacing: .04em; }
.rail-label { font: 600 1rem/1.1 var(--font-display); color: var(--ink); }
.rail-btn[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail-btn[aria-selected="true"] .rail-label { color: var(--bg); }
.rail-btn.is-done { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.rail-desc { display: none; }
.flow-numbered .rail-label { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.flow-numbered .rail-btn .icon { width: 24px; height: 24px; }
.flow-next, .flow-skip { display: none; }
.flow.is-live:not(.is-pinned) .flow-next { display: inline-flex; }
.flow.is-pinned .flow-skip, .flow:not(.is-live) .flow-skip { display: inline-flex; }
/* #12: plain step anchors in the static presentation; the live views have the tab rail instead. */
.flow-index { display: none; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; gap: 8px; }
.flow:not(.is-live) .flow-index { display: flex; flex: 1 1 100%; margin-bottom: clamp(24px, 3vw, 36px); }
.flow-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.flow-index a:hover { border-color: var(--brand); }
.flow-index .mono { color: var(--brand); font-size: .8rem; }
.flow:not(.is-live) .flow-controls { flex-wrap: wrap; }
.flow-after { display: block; height: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.flow-progress { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 14px 0 clamp(18px, 2.4vw, 26px); }
.flow-progress i { display: block; height: 100%; width: 100%; background: var(--brand-fill); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.flow-steps { display: grid; gap: clamp(32px, 5vw, 56px); list-style: none; margin: 0; padding: 0; }
.flow-step { display: grid; gap: 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.flow-variant { display: grid; gap: clamp(14px, 2vw, 22px); align-content: start; }
.flow-step .flow-variant + .flow-variant { margin-top: 28px; }
.v-label { color: var(--ink-2); }
.flow[data-terms] .v-label { display: none; }
.flow[data-terms] .flow-variant + .flow-variant { margin-top: 0; }
.flow-step-head { display: grid; gap: 8px; align-content: start; }
.flow-step-head .step-no { font: 700 .82rem/1 var(--font-mono); color: var(--brand); letter-spacing: .06em; }
.flow-step-head h3 { font-size: var(--step-4); line-height: 1.08; }
.flow-short { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.flow-more { border-top: 1px solid var(--line); }
.flow-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; cursor: pointer; list-style: none; font-weight: 650; color: var(--brand); }
.flow-more > summary::-webkit-details-marker { display: none; }
.flow-more > summary .icon { transition: transform 260ms var(--ease-out); }
.flow-more[open]:not(.is-closing) > summary .icon { transform: rotate(180deg); }
/* Smooth <details> (site.js): the body clips only while it animates; flow-root keeps child margins inside its height. */
.dt-body { display: flow-root; }
.dt-body.dt-anim { overflow: hidden; }
.flow-step-body { display: grid; gap: 14px; align-content: start; padding-bottom: 8px; }
.flow-step-body > p:first-child { color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; max-width: 62ch; }
/* A note row that reads like product UI (round 6: no tinted callout boxes): an icon tile, then the text. */
/* a step's note box: the site's secondary text size (.875rem), and an icon tile sized from it (2em) */
.flow-aside { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .875rem; line-height: 1.45; color: var(--ink); max-width: 60ch; }
.flow-aside .icon { flex: none; width: 2em; height: 2em; padding: .45em; border-radius: .7em; background: var(--amber-soft); color: var(--ink); }
.flow-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow-chip-row .chip { font-size: .85rem; padding: 4px 12px; }
.flow-chip-row .icon { color: var(--ink-2); width: 16px; height: 16px; }
.flow-screens { display: grid; gap: 16px; align-items: center; justify-items: start; position: relative; }
.flow-screens > .frame-web { width: 100%; }
.flow-web .ui { font-size: clamp(.875rem, 1.1vw, 1rem); gap: 12px; padding: clamp(14px, 1.6vw, 22px); }
.flow-link { display: grid; place-items: center; }
.flow-link svg { width: 56px; height: 24px; overflow: visible; color: var(--brand); }
.flow-link path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 0; }
.flow-link circle { fill: currentColor; }
.flow-link.to-web svg { transform: scaleX(-1); }
/* COMPACT (MUST 2): everything that is not the pinned desktop stage. Heading + one sentence, then ONE cropped result
   screen, then the expander. The other screen and the connector are left out of this view. */
.flow:not(.is-pinned) .flow-variant { display: flex; flex-direction: column; }
.flow:not(.is-pinned) .flow-step-head { order: 1; }
.flow:not(.is-pinned) .flow-screens { order: 2; grid-template-columns: minmax(0, 1fr); }
.flow:not(.is-pinned) .flow-more { order: 3; }
.flow:not(.is-pinned) .flow-screens .is-source, .flow:not(.is-pinned) .flow-link { display: none; }
.flow:not(.is-pinned) .frame-web.is-result { max-width: 640px; max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.flow:not(.is-pinned) .phone.is-result { width: min(280px, 100%); }
.flow:not(.is-pinned) .phone.is-result .phone-screen { aspect-ratio: 9 / 12.5; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
/* SHOULD 22: opening "More about this step" also brings back the other participant's screen, the connector and the
   uncropped result, after the explanation — the full office-to-phone handoff. The concise default is unchanged. */
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) > .flow-screens { order: 4; }
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-screens .is-source { display: block; }
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-screens .flow-phone { display: block; }
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-link { display: grid; }
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .frame-web.is-result { max-height: none; -webkit-mask-image: none; mask-image: none; }
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .phone.is-result .phone-screen { aspect-ratio: 9 / 19.5; -webkit-mask-image: none; mask-image: none; }
.flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-screens .flow-phone { width: min(280px, 100%); justify-self: center; }
@media (max-width: 899px) { .flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-link svg { transform: rotate(90deg); } .flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-link.to-web svg { transform: rotate(-90deg); } .flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) .flow-link { justify-self: center; height: 36px; } }
/* SHOULD 21: the static desktop view (≥ 1024px, not pinned: reduced motion or no JS) puts each step's words beside its
   result, in a centred content width; expanded, the full handoff spans the row below. Phones keep one column. */
@media (min-width: 1024px) {
  .flow:not(.is-pinned) .flow-steps { max-width: 1080px; margin-inline: auto; }
  .flow:not(.is-pinned) .flow-variant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 56px); row-gap: 16px; align-items: start; }
  .flow:not(.is-pinned) .flow-step-head { grid-column: 1; grid-row: 1; }
  .flow:not(.is-pinned) .flow-more { grid-column: 1; grid-row: 2; }
  .flow:not(.is-pinned) .flow-screens { grid-column: 2; grid-row: 1 / span 2; justify-items: center; }
  .flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) > .flow-screens { grid-column: 1 / -1; grid-row: 3; grid-template-columns: minmax(0, 1fr) 64px auto; align-items: center; }
  .flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) > .flow-screens.web-only, .flow:not(.is-pinned) .flow-variant:has(> .flow-more[open]) > .flow-screens.phone-only { grid-template-columns: minmax(0, 1fr); }
}
.flow-foot { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.terms-toggle { display: inline-flex; padding: 4px; border-radius: var(--r-btn); background: var(--surface-2); border: 1px solid var(--line); }
.terms-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: var(--r-btn); font-weight: 650; cursor: pointer; color: var(--ink-2); min-height: 44px; }
.terms-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.flow[data-terms="net"] .v-cod, .flow[data-terms="cod"] .v-net { display: none; }
.flow-controls .terms-toggle { order: -1; }

/* LIVE (JS on, motion allowed): one step at a time. */
.flow.is-live .flow-steps { display: grid; gap: 0; }
.flow.is-live .flow-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--dur-frame) var(--ease-in-out), transform var(--dur-frame) var(--ease-out), visibility 0s linear var(--dur-frame); }
.flow.is-live .flow-step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-frame) var(--ease-in-out), transform var(--dur-frame) var(--ease-out), visibility 0s; }
.flow.is-live .flow-step.is-active .ui > * { animation: ui-rise var(--dur-frame) var(--ease-out) both; }
.flow.is-live .flow-step.is-active .ui > :nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.flow.is-live .flow-step.is-active .ui > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.flow.is-live .flow-step.is-active .ui > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.flow.is-live .flow-step.is-active .ui > :nth-child(n+5) { animation-delay: calc(var(--stagger) * 4); }
.flow.is-live .flow-step .flow-link path { stroke-dashoffset: 60; }
.flow.is-live .flow-step.is-drawn .flow-link path { stroke-dashoffset: 0; }
@keyframes ui-rise { from { opacity: 0; transform: translateY(8px); } }
.flow:not(.is-live) .flow-progress, .flow:not(.is-live) .flow-rail { display: none; }
.flow:not(.is-live) .flow-controls { justify-content: flex-start; margin-bottom: 16px; }

/* PINNED (desktop ≥ 1024px, JS, motion allowed): about 3.5 viewport heights for six steps; the stage holds the
   heading beside its explanation, then both screens across the full width, sized to fit one viewport. */
@media (min-width: 1024px) {
  .flow.is-pinned .flow-track { height: calc(var(--steps, 6) * 45vh + 80vh); position: relative; }
  .flow.is-pinned .flow-sticky { position: sticky; top: calc(var(--header-h) + 28px); padding-top: 4px; }
  .flow.is-pinned .flow-rail { flex: 1 1 auto; }
  .flow.is-pinned { --phone-h: clamp(520px, calc(100svh - var(--header-h) - 330px), 860px); }
  .flow.is-pinned .flow-short, .flow.is-pinned .flow-more > summary { display: none; }
  .flow.is-pinned .flow-more { border: 0; }
  .flow.is-pinned .flow-variant { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 3vw, 56px); row-gap: 20px; }
  .flow.is-pinned .flow-variant > .flow-screens { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 64px auto; align-items: center; }
  .flow.is-pinned .flow-screens.web-only { grid-template-columns: minmax(0, 1fr); }
  .flow.is-pinned .flow-screens.phone-only { grid-template-columns: auto; justify-content: center; }
  .flow.is-pinned .flow-screens .flow-phone { width: clamp(250px, calc(var(--phone-h) / 2.11), 400px); }
  .flow.is-pinned .flow-step-head h3 { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
  .flow.is-pinned .flow-step-body > p:first-child { font-size: 1.05rem; }
}
.flow-phone { width: min(300px, 78vw); }
.ai-phone { width: min(280px, 100%); justify-self: center; }
.ai-phone-solo { display: grid; justify-items: center; }

/* The job rail in the home page's "one record" section (F2): big labels, icon per step, a line that describes it. */
.job-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.job-rail li { position: relative; }
.job-rail .jr { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); height: 100%; transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short); }
.job-rail .jr:hover, .job-rail .jr:focus-within { transform: translateY(-4px) scale(1.02); border-color: var(--brand); }
.job-rail .jr .icon { width: 26px; height: 26px; color: var(--brand); }
.job-rail .jr strong { font: 700 var(--step-3)/1.05 var(--font-display); }
.job-rail .jr span { font-size: .88rem; color: var(--ink-2); }
.job-rail .jr-yourok .icon { color: var(--ink); }
.job-rail .jr-yourok { border-color: color-mix(in srgb, var(--amber) 70%, var(--line)); background: var(--amber-soft); }

/* ---------- "The moments that usually go wrong": a bento of five link cards, no orphans ---------- */
/* ---------- Moments bento (MomentsBento.astro, round 7): one bordered container, hairline cells, real fragments ---------- */
.mb { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.mb-win > * { min-width: 0; } /* round 11: the column window never grows past its tile */
.mb-cell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.mb-cell:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
/* Round 16: a cell is as tall as its row's tallest mini screen plus a SHORT fade (64px), not a fixed tall box.
   Round 16b: every window starts at the same small offset from the top of its cell and fills the cell down to the
   caption. In a cell whose content is shorter than its row's tallest, the leftover is filled with more of the window's
   own skeleton lines (the continuation strip grows; it holds ten lines and is clipped), so there is no empty band
   above the window and no empty band under its last row; the final 64px fade out as everywhere. */
.mb-frag { position: relative; min-height: 0; display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 30px) 0 0 clamp(20px, 2.2vw, 30px); }
/* The window runs off the cell's right edge: its frame is cut there, its content keeps a right margin so nothing a
   reader needs is cropped. */
.mb-win { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; background: var(--bg); transition: transform var(--dur-short) var(--ease-out); } /* round 11: no drop shadow — the window fades out, it has no bottom edge */
.mb-cell:hover .mb-win, .mb-cell:focus-visible .mb-win { transform: translateY(-4px); }
.mb-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font: 500 .8125rem/1 var(--font-mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.mb-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.mb-bar span { margin-left: 6px; }
.mb-body { padding: 14px clamp(16px, 2vw, 26px) 10px 16px; font-size: .875rem; }
.mb-stack { display: grid; gap: 8px; align-content: start; }
.mb-two { display: grid; gap: 18px; }
@media (min-width: 720px) { .mb-two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.mb-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 1.05rem/1.2 var(--font-display); }
.mb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.mb-row b { font-weight: 600; }
.mb-row.is-new { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }
.mb-row.mb-muted { color: var(--ink-2); }
.mb-row.mb-total { border-style: dashed; font-weight: 650; }
.mb-row.mb-total b { font-size: 1.05rem; }
.mb-meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mb-meter i { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 4px; }
.mb-note { font-size: .8125rem; color: var(--ink-2); }
.mb-kpi-label { font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: var(--r-btn); background: var(--brand-fill); color: var(--brand-ink); font-weight: 650; font-size: .875rem; white-space: nowrap; justify-self: start; }
.mb-btn.is-off { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line); }
.mb-dispatch .cycle { justify-items: start; }
.mb-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mb-steps i { height: 6px; border-radius: 3px; background: var(--surface-2); }
.mb-steps i.on { background: var(--brand-fill); } .mb-steps i.now { background: var(--amber); }
.mb-pick { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.mb-pick b { font-weight: 600; }
.mb-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 12px/1 var(--font-text); color: #fff; }
.mb-pick.on .mb-box { background: var(--brand-fill); border-color: var(--brand-fill); }
.mb-pick.on .mb-box::after { content: "✓"; }
.mb-pick.off { color: var(--ink-2); }
.mb-pick.off span:nth-child(2), .mb-pick.off b { text-decoration: line-through; }
.mb-phone { border-radius: 26px 0 0 0; }
.mb-bubble { justify-self: start; max-width: 32ch; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); }
.mb-check { display: flex; align-items: center; gap: 8px; padding: 6px 2px; }
.mb-check .icon { color: var(--ok); width: 18px; height: 18px; flex: none; }
.mb-big { font: 600 clamp(1.3rem, 1.8vw, 1.9rem)/1.08 var(--font-display); color: var(--ink); align-self: center; }
.mb-big span { display: block; white-space: nowrap; }
.mb-label { display: inline-flex; align-items: center; gap: 8px; padding: 16px clamp(20px, 2.2vw, 30px) 22px; font: 600 var(--step-2)/1.2 var(--font-display); color: var(--ink); }
.mb-label .icon { color: var(--brand); transition: transform var(--dur-short) var(--ease-out); }
.mb-cell:hover .mb-label .icon, .mb-cell:focus-visible .mb-label .icon { transform: translate(3px, -3px); }
.mb-cell:hover .mb-label { color: var(--brand); }
.mb .fade-cont { position: relative; flex: 1 0 64px; align-content: start; gap: 8px; overflow: hidden; padding: 4px clamp(16px, 2vw, 26px) 0 16px; color: var(--ink); -webkit-mask-image: none; mask-image: none; }
/* The bottom of every window fades out. The fade is the window's own continuation strip, so it starts right under the
   last real row (never over content a person needs to read), is 64px tall (round 16: it used to fill the rest of a
   fixed-height cell, 130–260px of empty gradient), and runs from transparent to the TILE's background, over the skeleton
   bars and the window's own left edge, so the window reads as continuing below. Theme tokens only; it never takes the pointer. */
.mb .fade-cont::after { content: ""; position: absolute; height: 66px; right: 0; bottom: -2px; left: -2px; background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 0%, transparent) 0%, color-mix(in srgb, var(--surface) 70%, transparent) 45%, var(--surface) 85%); pointer-events: none; }
@media (min-width: 720px) {
  .mb { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "cod cod" "added approve" "tech paid"; }
  .mb-cod { grid-area: cod; } .mb-added { grid-area: added; } .mb-approve { grid-area: approve; } .mb-tech { grid-area: tech; } .mb-paid { grid-area: paid; }
}
/* Wide: three equal columns, two rows; COD is the wide cell, every other cell is one column (no fragment cramped). */
@media (min-width: 1280px) {
  .mb { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "cod cod approve" "added tech paid"; }
}
.mb-paid .mb-two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mb-paid .mb-big { font-size: clamp(1.2rem, 1.5vw, 1.6rem); }
/* The mini preview: a Service Order row whose status chip changes, in a loop, only while the card is in view. */
.m-preview { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; }
.m-row .mono { color: var(--ink-2); }
.cycle { display: inline-grid; justify-items: end; }
.cycle > * { grid-area: 1 / 1; }
@media (prefers-reduced-motion: no-preference) {
  .cycle > * { opacity: 0; animation: cycle-3 7.5s var(--ease-in-out) infinite; animation-play-state: paused; }
  .cycle.c2 > * { animation-name: cycle-2; animation-duration: 6s; }
  .cycle > :nth-child(2) { animation-delay: 2.5s; } .cycle > :nth-child(3) { animation-delay: 5s; }
  .cycle.c2 > :nth-child(2) { animation-delay: 3s; }
  .rt-live .cycle > * { animation-play-state: running; }
  .cycle > :first-child { opacity: 1; }
  .rt-live .cycle > :first-child { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cycle > :not(:last-child) { visibility: hidden; } }
@keyframes cycle-3 { 0% { opacity: 0; transform: translateY(6px) scale(.96); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes cycle-2 { 0% { opacity: 0; transform: translateY(6px) scale(.96); } 5%, 45% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- AI band ---------- */
.ai-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 1024px) { .ai-grid { grid-template-columns: 1fr 1.1fr; } }
.guardrails { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .guardrails { grid-template-columns: repeat(3, 1fr); } }
.guardrail { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.guardrail .icon { color: var(--brand); margin-top: 2px; }
.coming { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .coming { grid-template-columns: repeat(3, 1fr); } }
.coming .card { border-style: dashed; box-shadow: none; background: transparent; }

/* ---------- Realtime: one change reaching three screens, in sequence ---------- */
.rt { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; justify-items: center; }
/* One height for all three devices, captions on one line: each column spans two rows of a subgrid (device, caption).
   Side by side from 1200px (narrower, the phones would squeeze their rows); stacked below. */
@media (min-width: 1200px) {
  .rt { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 0; align-items: stretch; }
  .rt > .rt-col { grid-row: span 2; grid-template-rows: subgrid; }
  .rt .frame-web { align-self: stretch; display: flex; flex-direction: column; }
  .rt .frame-web .ui { flex: 1; }
}
.rt .phone { width: min(16.25rem, 100%); }
@media (max-width: 1199px) { .rt .frame-web { max-width: 720px; } }
/* A real modern phone proportion: about 1 : 2.1 overall (round 7). */
.rt .phone-screen { aspect-ratio: 9 / 19.2; }
.rt-sub { font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.rt-line { display: flex; align-items: center; gap: 8px; font-size: .875rem; padding: 2px 2px; }
.rt-line .icon { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.rt-line b { margin-left: auto; font-weight: 600; }
.rt-note { font-size: .875rem; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.rt .frame-web { width: 100%; }
.rt .frame-web .ui { font-size: clamp(.875rem, 1vw, 1rem); align-content: start; }
.rt-activity { display: grid; gap: 8px; padding-top: 6px; }
.rt-act-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 .875rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.rt-act-head .ui-sub { text-transform: none; letter-spacing: 0; font-family: var(--font-text); }
.rt-activity ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rt-activity li { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .875rem; }
.rt-activity li .icon { width: 16px; height: 16px; color: var(--ink-2); }
.rt-activity li .mono { color: var(--ink-2); font-size: .8125rem; }
.rt-activity li.rt-arrive { background: var(--brand-soft); }
.rt-activity li.rt-arrive .icon { color: var(--brand); }
.rt-cap { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 12px; }
.rt-cap strong { font: 700 .95rem/1.2 var(--font-display); }
.rt-cap span { font-size: .85rem; color: var(--ink-2); max-width: 26ch; }
.rt-col { display: grid; justify-items: center; width: 100%; }
.rt-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: clamp(24px, 3vw, 36px); color: var(--ink-2); font-size: .92rem; }
.rt-steps li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.rt-steps .icon { color: var(--brand); }
.rt-steps { padding: 0; }
/* The change: each screen shows its "before" state, then "after", one after another (tech → office → customer). */
.rt-swap { display: inline-grid; }
.rt-swap > * { grid-area: 1 / 1; }
.rt-swap > .after { opacity: 0; }
.trk-steps li .rt-dot { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .rt-swap > * { animation: 9s var(--ease-in-out) infinite; animation-play-state: paused; }
  .rt-live .rt-swap > * { animation-play-state: running; }
  .rt-swap > .before { animation-name: rt-before; }
  .rt-swap > .after { animation-name: rt-after; }
  .rt-glow { animation: rt-glow 9s var(--ease-in-out) infinite; animation-play-state: paused; }
  .rt-live .rt-glow { animation-play-state: running; }
  .rt-arrive { animation: rt-arrive 9s var(--ease-in-out) infinite; animation-play-state: paused; }
  .rt-live .rt-arrive { animation-play-state: running; }
  .rt-d1 > *, .rt-glow.rt-d1, .rt-arrive.rt-d1 { animation-delay: .9s; } .rt-d2 > *, .rt-glow.rt-d2 { animation-delay: 1.8s; }
}
@media (prefers-reduced-motion: reduce) { .rt-swap > .before { opacity: 0; } .rt-swap > .after { opacity: 1; } }
/* Sequential, never overlapping: the old state is gone before the new one appears (two texts never share a pill). */
@keyframes rt-before { 0%, 17% { opacity: 1; } 20%, 91% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes rt-after { 0%, 20% { opacity: 0; transform: scale(.94); } 23%, 88% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; } }
@keyframes rt-arrive { 0%, 20% { opacity: 0; transform: translateY(-6px); } 24%, 88% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@keyframes rt-glow { 0%, 18% { box-shadow: 0 0 0 0 transparent; } 24% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 40%, transparent); } 40%, 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Brand hierarchy chart (laid out at build time) ---------- */
.brandchart { display: grid; gap: 20px; align-items: center; }
/* Round 7: chart and panel side by side inside the container from 1280px (chart ~63%), stacked below that. Both
   columns are minmax(0, …), so nothing can push the panel off-screen. The tree is centred in its column. */
@media (min-width: 1280px) { .brandchart { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; } }
.bc-canvas { min-width: 0; }
.brandchart svg.bc-down { max-width: 900px; margin-inline: auto; }
.bc-link { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.bc-node button, .bc-node div { width: calc(100% - 20px); height: calc(100% - 20px); margin: 10px; display: grid; place-content: center; gap: 2px; padding: 6px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 2px 0 color-mix(in srgb, var(--brand) 25%, transparent); background: var(--surface); color: var(--ink); text-align: center; font: 600 16px/1.2 var(--font-text); transition: opacity var(--dur-short), border-color var(--dur-short), transform var(--dur-short) var(--ease-out); }
.bc-node small { color: var(--ink-2); font-size: 16px; font-weight: 500; }
.bc-node strong { font: 600 19px/1.1 var(--font-display); white-space: nowrap; }
.bc-node button { cursor: pointer; }
.bc-node button:hover { border-color: var(--brand); }
.bc-node button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.bc-org button { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bc-org button small { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.bc-org button[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.bc-down { display: none; }
@media (min-width: 1024px) { .bc-down { display: block; } .bc-list { display: none; } }
/* Phones and small tablets: the same tree as indented HTML, never scaled. */
.bc-list, .bc-list ul { list-style: none; margin: 0; padding: 0; }
.bc-list ul { margin-left: 18px; padding-left: 16px; border-left: 2px solid var(--line); display: grid; gap: 8px; padding-top: 8px; }
.bc-li { display: grid; }
.bc-list button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: opacity var(--dur-short), border-color var(--dur-short); }
.bc-list button strong { font: 600 1.05rem/1.2 var(--font-display); }
.bc-list button small { font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.bc-list button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.bc-li-org > button { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bc-li-org > button small { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.bc-li-org > button[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.brandchart.has-focus .bc-li.bc-dim { opacity: .28; }
.brandchart.has-focus .bc-link.bc-dim { opacity: .2; }
/* Safari draws nothing inside a foreignObject whose opacity is below 1, so the chart's dimmed boxes fade by colour, never by opacity. */
.brandchart.has-focus .bc-node.bc-dim button { color: color-mix(in srgb, var(--ink) 30%, var(--bg)); background: color-mix(in srgb, var(--surface) 30%, var(--bg)); border-color: color-mix(in srgb, var(--brand) 12%, var(--bg)); box-shadow: none; }
.brandchart.has-focus .bc-node.bc-dim button small { color: color-mix(in srgb, var(--ink-2) 30%, var(--bg)); }
.brandchart.has-focus .bc-node.bc-dim button:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--bg)); }
.bc-who { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 30px -24px #0B141766; max-width: 560px; width: 100%; justify-self: center; }
.bc-who-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bc-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 .95rem/1 var(--font-mono); background: var(--brand-soft); color: var(--brand); border: 1.5px solid var(--brand); }
.bc-who-id { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bc-who-label { font-size: .875rem; color: var(--ink-2); }
.bc-who .chip { font-size: .875rem; }
/* Hero objects: every label renders at 13px or more after the 3D transform (round 6). */
.hc .chip, .hc .frame-bar span { font-size: .875rem; }
.bc-who-id strong { font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.bc-who-id .chip { justify-self: start; margin-top: 4px; }
.bc-sees { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bc-sees li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; transition: opacity var(--dur-short), background-color var(--dur-short); }
.bc-sees li.is-yes { background: color-mix(in srgb, var(--ok) 8%, transparent); }
.bc-sees li.is-no { opacity: .62; }
.bc-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.bc-mark .icon { width: 16px; height: 16px; grid-area: 1 / 1; }
.is-yes .bc-mark { background: var(--ok-soft); color: var(--ok); } .is-yes .bc-no { display: none; }
.is-no .bc-mark { background: var(--surface-2); color: var(--ink-2); } .is-no .bc-yes { display: none; }
.bc-loc { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; flex: 1; min-width: 0; }
.bc-loc-name { font-weight: 600; }
.bc-loc-count { font: 500 .875rem/1.4 var(--font-mono); color: var(--ink-2); }
.is-no .bc-loc-name { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 60%, transparent); }
.bc-legend { font-size: .85rem; color: var(--ink-2); }

/* ---------- Managed-maintenance loop (F3, F9) ---------- */
.loop { display: grid; gap: 16px; justify-content: center; grid-template-columns: minmax(0, 320px); }
@media (min-width: 900px) { .loop { grid-template-columns: repeat(4, minmax(220px, 1fr)); align-items: stretch; } }
.loop-box { display: grid; gap: 8px; align-content: start; padding: 20px; min-height: 180px; border-radius: var(--r-card); background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); position: relative; }
.loop-box .icon { width: 28px; height: 28px; color: var(--brand); }
.loop-box strong { font: 700 var(--step-3)/1.05 var(--font-display); }
.loop-box span { font-size: .9rem; color: var(--ink-2); }
.loop-wrap { position: relative; }
.loop-svg { display: none; }
@media (min-width: 900px) { .loop-svg { display: block; width: 100%; height: 64px; margin-top: 8px; color: var(--amber); } }
.loop-svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.loop-arrows { display: none; }
@media (min-width: 900px) {
  .loop-box:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; border-top: 2.5px solid var(--amber); border-right: 2.5px solid var(--amber); transform: translate(50%, -50%) rotate(45deg); }
}

/* ---------- Timeline (service journey) ---------- */
.role-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.role-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; cursor: pointer; }
.role-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Round 11: a sliding indicator behind the chosen tab (site.js sets its place; transform only). */
.role-tabs { position: relative; }
.role-ind { position: absolute; left: 0; top: 0; width: var(--ind-w, 0); height: var(--ind-h, 0); border-radius: var(--r-btn); background: var(--ink); transform: translate(var(--ind-x, 0), var(--ind-y, 0)); transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); opacity: 0; pointer-events: none; }
.role-tabs.has-ind .role-ind { opacity: 1; }
.role-tabs.has-ind .role-tab { position: relative; z-index: 1; transition: color 240ms; }
/* The selected tab carries the ink itself once the sliding indicator has arrived under it (it is clear only while the
   indicator travels), so the label's own background is the dark one: light text on ink, about 16:1, measurable on the
   tab and not dependent on the indicator being there. */
.role-tabs.has-ind .role-tab[aria-selected="true"] { animation: role-sel 320ms step-end; }
@keyframes role-sel { from { background-color: transparent; border-color: transparent; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2.5px; background: var(--brand); transform-origin: top; transform: scaleY(var(--drawn, 1)); border-radius: 2px; }
.timeline li { position: relative; display: grid; gap: 6px; }
.timeline .t-icon { position: absolute; left: -44px; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--brand); color: var(--brand); }
.timeline .t-icon .icon { width: 18px; height: 18px; }
.timeline time { font: 600 .78rem/1 var(--font-mono); color: var(--ink-2); }
.timeline h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -.01em; }
.timeline p { color: var(--ink-2); }
.timeline .t-tag { display: flex; gap: 8px; flex-wrap: wrap; }
.role-panel[hidden] { display: none; }

/* ---------- Switching ---------- */
.files { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; counter-reset: file; }
.files li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.files li .icon { color: var(--ok); }
.counts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.count { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.count b { font: 700 2rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.count span { font-size: .85rem; color: var(--ink-2); }
.count.refused b { color: var(--stop); }
.pick { display: inline-flex; border-radius: var(--r-btn); border: 1px solid var(--line); overflow: hidden; }
.pick span { padding: 6px 14px; font-weight: 650; font-size: .88rem; }
.pick span:first-child { background: var(--ink); color: var(--bg); }

/* Switching: the 3-step strip, a card per record type, and the "does not move" note. */
.move-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .move-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.move-steps .card { position: relative; }
.move-no { position: absolute; right: 20px; top: 16px; font: 700 2.4rem/1 var(--font-display); color: color-mix(in srgb, var(--brand) 30%, transparent); }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .moves { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.move-head { display: flex; align-items: center; gap: 12px; }
.move-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.move-fields li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.move-fields .icon { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.move-diff { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; font-weight: 600; }
.move-diff .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.move { align-content: start; }
.not-moving { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-card); border: 1.5px solid var(--amber); background: var(--amber-soft); }
.not-moving > .icon { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.not-moving p { color: var(--ink); max-width: 75ch; margin-top: 6px; }

/* ---------- Diagrams (inline SVG) ---------- */
.diagram { width: 100%; height: auto; color: var(--ink); }
.diagram .d-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.diagram .d-box-strong { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.diagram .d-line { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linecap: round; }
.diagram .d-line-amber { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; }
.diagram text { fill: var(--ink); font: 600 14px var(--font-text); }
.diagram .d-small { fill: var(--ink-2); font: 500 12px var(--font-text); }
.diagram .d-title { font: 700 15px var(--font-display); }
.diagram .d-ok { fill: var(--ok); }
.diagram .d-amber { fill: var(--amber); }
.diagram .d-brand { fill: var(--brand); }
.diagram-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(14px, 2vw, 24px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font: 650 var(--step-2)/1.3 var(--font-text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 260ms var(--ease-out); flex: none; }
.faq details[open]:not(.is-closing) summary .icon { transform: rotate(180deg); }
.faq details > p, .faq .dt-body > p { padding: 0 20px 18px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Section heading row (round 5): heading left, its action right on the same line ---------- */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.head-row .section-head { margin-bottom: 0; }
.head-row > .btn, .head-row > .link-arrow { flex: none; }

/* ---------- Platform bento (PlatformBento.astro; rebuilt round 9, item 13): one step per tile, captions on top ---------- */
.bx { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; grid-template-columns: 1fr; }
.bx-cell { --bx-d: 0s; position: relative; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 16px; padding: clamp(18px, 1.6vw, 28px); background: var(--surface); }
.bx-cell::after { content: ""; position: absolute; inset: 6px; border-radius: 20px; box-shadow: inset 0 0 0 2px transparent; pointer-events: none; }
.bx-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.bx-title { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.bx-num { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px; font-size: .9375rem; font-weight: 700; letter-spacing: .04em; color: var(--bx-num-ink); background: var(--brand-soft); }
.bx { --bx-num-ink: var(--brand); }
:root[data-theme="dark"] .bx { --bx-num-ink: var(--we-blue-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bx { --bx-num-ink: var(--we-blue-300); } }
.bx-num-wide { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.bx-cap { display: grid; min-width: 0; }
.bx-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: -2px; justify-self: start; font: 600 var(--step-2)/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.bx-link .icon { color: var(--brand); transition: transform var(--dur-short) var(--ease-out); }
.bx-link:hover { color: var(--brand); } .bx-link:hover .icon { transform: translate(2px, -2px); }
.bx-cap p { margin-top: -6px; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.bx-preview { position: relative; min-height: 0; }
.bx-ui { display: grid; gap: 10px; align-content: start; font-size: .9375rem; }
.bx-ui .ui-row { flex-wrap: wrap; row-gap: 6px; font-size: .9375rem; }
.bx-ui .ui-sub, .bx-ui .ui-note, .bx-ui .chip, .bx-ui .ui-label { font-size: .8125rem; }
.bx-ui .ui-title { font-size: 1.0625rem; }
.bx-ui .trk-tick { font-size: .9375rem; }
.bx-ui .ui-check { font-size: .9375rem; }
.bx-ui .ui-btn { font-size: .875rem; padding: 8px 14px; }
.bx-note { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: .875rem; }
.bx-note .icon { width: 16px; height: 16px; flex: none; color: var(--brand); }
.bx-est-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bx-tick .box { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.bx-tick .box .icon { width: 12px; height: 12px; }
/* Swaps: the states of one control stacked in one place; the LAST is the finished state, shown without motion. */
.bx-swap { display: inline-grid; justify-items: end; }
.bx-swap > * { grid-area: 1 / 1; }
.bx-swap > :not(:last-child) { visibility: hidden; }
.bx-field { display: grid; }
.bx-field > * { grid-area: 1 / 1; }
.bx-filling { visibility: hidden; color: var(--ink-2); font-style: italic; }
/* The tracker strip: six steps on one rail, the path the job takes. */
.bx-track-ui { gap: 16px; }
.bx-track-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bx-path { position: relative; }
.bx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bx-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.bx-dot { position: relative; z-index: 1; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--brand-fill); background: var(--brand-fill); }
.bx-rail { display: none; }
@media (min-width: 720px) {
  .bx { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "call disp" "est work" "inv inv" "track track"; }
  .bx-call { grid-area: call; } .bx-disp { grid-area: disp; } .bx-est { grid-area: est; } .bx-work { grid-area: work; } .bx-inv { grid-area: inv; } .bx-track { grid-area: track; }
  .bx-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 0; }
  .bx-steps li { flex-direction: column; gap: 8px; text-align: center; font-size: .9375rem; }
  .bx-rail { display: block; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 8px; height: 2px; background: color-mix(in srgb, var(--ink-2) 30%, transparent); }
  .bx-rail i { position: absolute; inset: 0; background: var(--brand-fill); transform-origin: left center; }
}
/* Wide: the job reads left to right, top to bottom (01 02 03 / 04 05), and the tracker runs along the bottom. */
@media (min-width: 1200px) {
  .bx { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "call disp est" "work inv inv" "track track track"; }
  .bx-track { grid-template-columns: minmax(260px, 1fr) minmax(0, 2.6fr); grid-template-rows: auto; align-items: center; gap: clamp(24px, 3vw, 56px); }
}
@media (forced-colors: active) { .bx-cell::after { display: none; } }
.bx-call { --bx-d: -20s; } .bx-disp { --bx-d: -16s; } .bx-est { --bx-d: -12s; } .bx-work { --bx-d: -8s; } .bx-inv { --bx-d: -4s; }
@media (prefers-reduced-motion: no-preference) {
  .bx.rt-live .bx-call::after { animation: bx-ring 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-call .bx-num { animation: bx-badge 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-disp::after { animation: bx-ring 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-disp .bx-num { animation: bx-badge 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-est::after { animation: bx-ring 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-est .bx-num { animation: bx-badge 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-work::after { animation: bx-ring 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-work .bx-num { animation: bx-badge 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-inv::after { animation: bx-ring 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-inv .bx-num { animation: bx-badge 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-call-chip > :nth-child(1) { animation: bx-callchip-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-call-chip > :nth-child(2) { animation: bx-callchip-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f1 .bx-filling { animation: bx-filling-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f1 .bx-val { animation: bx-val-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f1 { animation: bx-fieldbox-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f2 .bx-filling { animation: bx-filling-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f2 .bx-val { animation: bx-val-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f2 { animation: bx-fieldbox-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f3 .bx-filling { animation: bx-filling-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f3 .bx-val { animation: bx-val-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-f3 { animation: bx-fieldbox-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-match { animation: bx-match 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-match-chip > :nth-child(1) { animation: bx-matchchip-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-match-chip > :nth-child(2) { animation: bx-matchchip-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-assigned { animation: bx-assigned 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-t1 .box { animation: bx-tick-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-t2 .box { animation: bx-tick-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-total > :nth-child(1) { animation: bx-total-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-total > :nth-child(2) { animation: bx-total-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-total > :nth-child(3) { animation: bx-total-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-approve { animation: bx-press 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-est-chip > :nth-child(1) { animation: bx-estchip-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-est-chip > :nth-child(2) { animation: bx-estchip-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w1 .bx-state > :nth-child(1) { animation: bx-w1-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w1 .bx-state > :nth-child(2) { animation: bx-w1-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w1 .bx-state > :nth-child(3) { animation: bx-w1-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w2 .bx-state > :nth-child(1) { animation: bx-w2-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w2 .bx-state > :nth-child(2) { animation: bx-w2-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w2 .bx-state > :nth-child(3) { animation: bx-w2-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w3 .bx-state > :nth-child(1) { animation: bx-w3-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w3 .bx-state > :nth-child(2) { animation: bx-w3-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-w3 .bx-state > :nth-child(3) { animation: bx-w3-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-c1 { animation: bx-check-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-c1 .icon { animation: bx-checkicon-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-c2 { animation: bx-check-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-c2 .icon { animation: bx-checkicon-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-c3 { animation: bx-check-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-c3 .icon { animation: bx-checkicon-3 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-inv-chip > :nth-child(1) { animation: bx-invchip-1 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-inv-chip > :nth-child(2) { animation: bx-invchip-2 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-send { animation: bx-send 24s linear var(--bx-d) infinite both; }
  .bx.rt-live .bx-s1 .bx-dot { animation: bx-dot-1 24s linear 0s infinite both; }
  .bx.rt-live .bx-s1 { animation: bx-step-1 24s linear 0s infinite both; }
  .bx.rt-live .bx-s2 .bx-dot { animation: bx-dot-2 24s linear 0s infinite both; }
  .bx.rt-live .bx-s2 { animation: bx-step-2 24s linear 0s infinite both; }
  .bx.rt-live .bx-s3 .bx-dot { animation: bx-dot-3 24s linear 0s infinite both; }
  .bx.rt-live .bx-s3 { animation: bx-step-3 24s linear 0s infinite both; }
  .bx.rt-live .bx-s4 .bx-dot { animation: bx-dot-4 24s linear 0s infinite both; }
  .bx.rt-live .bx-s4 { animation: bx-step-4 24s linear 0s infinite both; }
  .bx.rt-live .bx-s5 .bx-dot { animation: bx-dot-5 24s linear 0s infinite both; }
  .bx.rt-live .bx-s5 { animation: bx-step-5 24s linear 0s infinite both; }
  .bx.rt-live .bx-s6 .bx-dot { animation: bx-dot-6 24s linear 0s infinite both; }
  .bx.rt-live .bx-s6 { animation: bx-step-6 24s linear 0s infinite both; }
  .bx.rt-live .bx-rail i { animation: bx-rail 24s linear 0s infinite both; }
}
@keyframes bx-ring { 0% { box-shadow: inset 0 0 0 2px transparent; } 1.5%, 15% { box-shadow: inset 0 0 0 2px var(--brand); } 17.5%, 100% { box-shadow: inset 0 0 0 2px transparent; } }
@keyframes bx-badge { 0% { background-color: var(--brand-soft); color: var(--bx-num-ink); } 1.5%, 15% { background-color: var(--brand-fill); color: var(--brand-ink); } 17.5%, 100% { background-color: var(--brand-soft); color: var(--bx-num-ink); } }
@keyframes bx-callchip-1 { 0% { visibility: visible; opacity: 1; } 13.99% { visibility: visible; opacity: 1; } 14.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-callchip-2 { 0%, 13.99% { visibility: hidden; opacity: 0; } 14.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-filling-1 { 0%, 0.99% { visibility: hidden; opacity: 0; } 1.4% { visibility: visible; opacity: 1; } 3.99% { visibility: visible; opacity: 1; } 4.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-val-1 { 0%, 3.99% { visibility: hidden; opacity: 0; } 4.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-fieldbox-1 { 0%, 1% { border-color: var(--line); background-color: var(--surface); } 4% { border-color: var(--brand); background-color: var(--brand-soft); } 9%, 100% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } }
@keyframes bx-filling-2 { 0%, 4.99% { visibility: hidden; opacity: 0; } 5.4% { visibility: visible; opacity: 1; } 7.99% { visibility: visible; opacity: 1; } 8.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-val-2 { 0%, 7.99% { visibility: hidden; opacity: 0; } 8.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-fieldbox-2 { 0%, 5% { border-color: var(--line); background-color: var(--surface); } 8% { border-color: var(--brand); background-color: var(--brand-soft); } 13%, 100% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } }
@keyframes bx-filling-3 { 0%, 8.99% { visibility: hidden; opacity: 0; } 9.4% { visibility: visible; opacity: 1; } 11.99% { visibility: visible; opacity: 1; } 12.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-val-3 { 0%, 11.99% { visibility: hidden; opacity: 0; } 12.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-fieldbox-3 { 0%, 9% { border-color: var(--line); background-color: var(--surface); } 12% { border-color: var(--brand); background-color: var(--brand-soft); } 17%, 100% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } }
@keyframes bx-match { 0% { transform: translateX(18px); opacity: .35; } 5%, 100% { transform: none; opacity: 1; } }
@keyframes bx-matchchip-1 { 0% { visibility: visible; opacity: 1; } 6.99% { visibility: visible; opacity: 1; } 7.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-matchchip-2 { 0%, 6.99% { visibility: hidden; opacity: 0; } 7.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-assigned { 0%, 10% { opacity: 0; transform: translateY(6px); } 12.5%, 100% { opacity: 1; transform: none; } }
@keyframes bx-tick-1 { 0%, 3.99% { background-color: transparent; border-color: var(--ink-2); color: transparent; } 4.5%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); } }
@keyframes bx-tick-2 { 0%, 7.99% { background-color: transparent; border-color: var(--ink-2); color: transparent; } 8.5%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); } }
@keyframes bx-total-1 { 0% { visibility: visible; opacity: 1; } 3.99% { visibility: visible; opacity: 1; } 4.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-total-2 { 0%, 3.99% { visibility: hidden; opacity: 0; } 4.4% { visibility: visible; opacity: 1; } 7.99% { visibility: visible; opacity: 1; } 8.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-total-3 { 0%, 7.99% { visibility: hidden; opacity: 0; } 8.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-press { 0%, 9% { box-shadow: 0 0 0 0 transparent; } 10.5% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 30%, transparent); } 13%, 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-estchip-1 { 0% { visibility: visible; opacity: 1; } 11.99% { visibility: visible; opacity: 1; } 12.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-estchip-2 { 0%, 11.99% { visibility: hidden; opacity: 0; } 12.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-w1-1 { 0% { visibility: visible; opacity: 1; } 0.99% { visibility: visible; opacity: 1; } 1.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-w1-2 { 0%, 0.99% { visibility: hidden; opacity: 0; } 1.4% { visibility: visible; opacity: 1; } 4.99% { visibility: visible; opacity: 1; } 5.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-w1-3 { 0%, 4.99% { visibility: hidden; opacity: 0; } 5.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-w2-1 { 0% { visibility: visible; opacity: 1; } 4.99% { visibility: visible; opacity: 1; } 5.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-w2-2 { 0%, 4.99% { visibility: hidden; opacity: 0; } 5.4% { visibility: visible; opacity: 1; } 8.99% { visibility: visible; opacity: 1; } 9.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-w2-3 { 0%, 8.99% { visibility: hidden; opacity: 0; } 9.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-w3-1 { 0% { visibility: visible; opacity: 1; } 8.99% { visibility: visible; opacity: 1; } 9.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-w3-2 { 0%, 8.99% { visibility: hidden; opacity: 0; } 9.4% { visibility: visible; opacity: 1; } 12.99% { visibility: visible; opacity: 1; } 13.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-w3-3 { 0%, 12.99% { visibility: hidden; opacity: 0; } 13.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-check-1 { 0%, 2.99% { border-color: var(--line); background-color: transparent; } 3.6% { border-color: var(--ok); background-color: var(--ok-soft); } 7%, 100% { border-color: var(--line); background-color: transparent; } }
@keyframes bx-checkicon-1 { 0%, 2.99% { color: color-mix(in srgb, var(--ink-2) 55%, transparent); } 3.6%, 100% { color: var(--ok); } }
@keyframes bx-check-2 { 0%, 5.99% { border-color: var(--line); background-color: transparent; } 6.6% { border-color: var(--ok); background-color: var(--ok-soft); } 10%, 100% { border-color: var(--line); background-color: transparent; } }
@keyframes bx-checkicon-2 { 0%, 5.99% { color: color-mix(in srgb, var(--ink-2) 55%, transparent); } 6.6%, 100% { color: var(--ok); } }
@keyframes bx-check-3 { 0%, 8.99% { border-color: var(--line); background-color: transparent; } 9.6% { border-color: var(--ok); background-color: var(--ok-soft); } 13%, 100% { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background-color: var(--ok-soft); } }
@keyframes bx-checkicon-3 { 0%, 8.99% { color: color-mix(in srgb, var(--ink-2) 55%, transparent); } 9.6%, 100% { color: var(--ok); } }
@keyframes bx-invchip-1 { 0% { visibility: visible; opacity: 1; } 9.99% { visibility: visible; opacity: 1; } 10.4%, 100% { visibility: hidden; opacity: 0; } }
@keyframes bx-invchip-2 { 0%, 9.99% { visibility: hidden; opacity: 0; } 10.4% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes bx-send { 0%, 11% { box-shadow: 0 0 0 0 transparent; } 11.2% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 13.4% { box-shadow: 0 0 0 12px transparent; } 13.5% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 15.8%, 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes bx-dot-1 { 0%, 16.367% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } 16.667% { background-color: var(--surface); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); box-shadow: 0 0 0 0 transparent; } 16.667%, 33.033% { background-color: var(--surface); border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 24%, transparent); } 33.333%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-step-1 { 0%, 16.367% { color: var(--ink); } 16.667% { color: var(--ink-2); } 16.667%, 100% { color: var(--ink); } }
@keyframes bx-dot-2 { 0%, 16.367% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } 16.667%, 33.033% { background-color: var(--surface); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); box-shadow: 0 0 0 0 transparent; } 33.333%, 49.7% { background-color: var(--surface); border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 24%, transparent); } 50%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-step-2 { 0%, 16.367% { color: var(--ink); } 16.667%, 33.033% { color: var(--ink-2); } 33.333%, 100% { color: var(--ink); } }
@keyframes bx-dot-3 { 0%, 16.367% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } 16.667%, 49.7% { background-color: var(--surface); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); box-shadow: 0 0 0 0 transparent; } 50%, 58.033% { background-color: var(--surface); border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 24%, transparent); } 58.333%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-step-3 { 0%, 16.367% { color: var(--ink); } 16.667%, 49.7% { color: var(--ink-2); } 50%, 100% { color: var(--ink); } }
@keyframes bx-dot-4 { 0%, 16.367% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } 16.667%, 58.033% { background-color: var(--surface); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); box-shadow: 0 0 0 0 transparent; } 58.333%, 66.367% { background-color: var(--surface); border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 24%, transparent); } 66.667%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-step-4 { 0%, 16.367% { color: var(--ink); } 16.667%, 58.033% { color: var(--ink-2); } 58.333%, 100% { color: var(--ink); } }
@keyframes bx-dot-5 { 0%, 16.367% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } 16.667%, 66.367% { background-color: var(--surface); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); box-shadow: 0 0 0 0 transparent; } 66.667%, 83.033% { background-color: var(--surface); border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 24%, transparent); } 83.333%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-step-5 { 0%, 16.367% { color: var(--ink); } 16.667%, 66.367% { color: var(--ink-2); } 66.667%, 100% { color: var(--ink); } }
@keyframes bx-dot-6 { 0%, 16.367% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } 16.667%, 83.033% { background-color: var(--surface); border-color: color-mix(in srgb, var(--ink-2) 45%, transparent); box-shadow: 0 0 0 0 transparent; } 83.333%, 91.367% { background-color: var(--surface); border-color: var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 24%, transparent); } 91.667%, 100% { background-color: var(--brand-fill); border-color: var(--brand-fill); box-shadow: 0 0 0 0 transparent; } }
@keyframes bx-step-6 { 0%, 16.367% { color: var(--ink); } 16.667%, 83.033% { color: var(--ink-2); } 83.333%, 100% { color: var(--ink); } }
@keyframes bx-rail { 0%, 16.367% { transform: scaleX(1); } 16.667% { transform: scaleX(0); } 33.333% { transform: scaleX(0.2); } 50% { transform: scaleX(0.4); } 58.333% { transform: scaleX(0.6); } 66.667% { transform: scaleX(0.8); } 83.333% { transform: scaleX(1.0); } 100% { transform: scaleX(1); } }

/* ---------- Product index (ProductIndex.astro): calm, dense, scannable ---------- */
.pidx { display: grid; gap: 0 clamp(32px, 5vw, 96px); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .pidx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pidx-group { border-top: 1.5px solid var(--ink); padding: 18px 0 28px; }
.pidx-title { font-size: var(--step-2); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.pidx ul { list-style: none; margin: 0; padding: 0; }
.pidx li + li { border-top: 1px dotted color-mix(in srgb, var(--ink-2) 55%, transparent); }
.pidx-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; color: var(--ink); text-decoration: none; min-height: 44px; }
.pidx-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); transition: color var(--dur-short), border-color var(--dur-short), background-color var(--dur-short); }
.pidx-icon .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.pidx-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.pidx-name { font-weight: 650; }
.pidx-line { flex-basis: 100%; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
a.pidx-row:hover .pidx-icon, a.pidx-row:focus-visible .pidx-icon { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
a.pidx-row:hover .pidx-name, a.pidx-row:focus-visible .pidx-name { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Accordion + glass data card (ShopAccordion.astro) ---------- */
.acc { display: grid; gap: clamp(24px, 4vw, 72px); align-items: stretch; }
@media (min-width: 1024px) { .acc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.acc-list { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; border: 0; background: none; cursor: pointer; text-align: left; font: 500 var(--step-4)/1.1 var(--font-display); color: color-mix(in srgb, var(--ink) 55%, transparent); transition: color var(--dur-short); }
.acc-btn:hover, .acc-item.is-open .acc-btn { color: var(--ink); }
.acc-item.is-open .acc-btn { font-weight: 600; }
.acc-plus { transition: transform 260ms var(--ease-out); flex: none; }
.acc-item.is-open .acc-plus { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 1fr; }
/* Collapsed only once site.js is running (no JS = every item open). Hidden panels leave the tab order: visibility
   flips after the height animation when closing, and at once when opening. */
.acc[data-acc-ready] .acc-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 260ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 260ms; }
.acc[data-acc-ready] .acc-item.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 260ms cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.acc[data-acc-ready] .acc-inner { opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out), padding-bottom 260ms var(--ease-out); }
.acc[data-acc-ready] .acc-item.is-open .acc-inner { opacity: 1; transform: none; }
.acc-inner { overflow: hidden; display: grid; gap: 14px; align-content: start; }
.acc-inner { padding-bottom: 22px; }
.acc[data-acc-ready] .acc-item:not(.is-open) .acc-inner { padding-bottom: 0; }
.acc-inner > p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.acc-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-bullets li { display: flex; gap: 12px; align-items: center; }
.acc-bullets .icon { color: var(--brand); }
.acc-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--line); font: 600 .8125rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.acc-more:hover { border-color: var(--brand); color: var(--brand); }
.acc-slot:empty { display: none; }
/* Round 9: the glass panel has a LIGHT design in light theme (pale dusk, white glass, ink text) and keeps its
   original dark dusk look in dark theme. Every colour inside it reads these tokens. */
.acc-stage { --gc-ink: #11191B; --gc-ink-2: #4F5C60; --gc-ink-strong: #0B1417; --gc-muted: #6B777A; --gc-glass: #FFFFFFDB; --gc-line: #11191B1F; --gc-tile: #11191B08; --gc-tile-line: #11191B14; --gc-dots: #11191B40; --gc-track: #11191B14; --gc-box: #11191B59; --gc-pressed: #11191B14; --gc-blue: #1E54DD; --gc-amber: #8A5A00; --gc-green: #1E8E5A; --gc-dot: #11191B26; --gc-shadow: 0 30px 60px -34px #1E2A5A59;
  --gc-stage: radial-gradient(120% 70% at 85% 110%, #F2A9002E, transparent 60%), radial-gradient(90% 70% at 8% 0%, #3B73F633, transparent 60%), linear-gradient(170deg, #EEF3FF 0%, #E7EEFB 45%, #F1EEE8 100%); }
:root[data-theme="dark"] .acc-stage { --gc-ink: #EEF2F1; --gc-ink-2: #A9B6B8; --gc-ink-strong: #FFFFFF; --gc-muted: #7F8C8F; --gc-glass: #0B1417B8; --gc-line: #FFFFFF26; --gc-tile: #FFFFFF0F; --gc-tile-line: #FFFFFF14; --gc-dots: #FFFFFF40; --gc-track: #FFFFFF1A; --gc-box: #FFFFFF59; --gc-pressed: #FFFFFF1F; --gc-blue: #87B0FF; --gc-amber: #FFB81C; --gc-green: #4CC38A; --gc-dot: #FFFFFF26; --gc-shadow: 0 30px 60px -30px #000000CC;
  --gc-stage: radial-gradient(120% 70% at 80% 110%, #F2A90040, transparent 60%), radial-gradient(90% 70% at 10% 0%, #1E54DD66, transparent 60%), linear-gradient(170deg, #0B1630 0%, #102344 45%, #1A2238 70%, #2A2420 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acc-stage { --gc-ink: #EEF2F1; --gc-ink-2: #A9B6B8; --gc-ink-strong: #FFFFFF; --gc-muted: #7F8C8F; --gc-glass: #0B1417B8; --gc-line: #FFFFFF26; --gc-tile: #FFFFFF0F; --gc-tile-line: #FFFFFF14; --gc-dots: #FFFFFF40; --gc-track: #FFFFFF1A; --gc-box: #FFFFFF59; --gc-pressed: #FFFFFF1F; --gc-blue: #87B0FF; --gc-amber: #FFB81C; --gc-green: #4CC38A; --gc-dot: #FFFFFF26; --gc-shadow: 0 30px 60px -30px #000000CC;
  --gc-stage: radial-gradient(120% 70% at 80% 110%, #F2A90040, transparent 60%), radial-gradient(90% 70% at 10% 0%, #1E54DD66, transparent 60%), linear-gradient(170deg, #0B1630 0%, #102344 45%, #1A2238 70%, #2A2420 100%); } }
.acc-stage { position: relative; display: grid; place-items: center; gap: 18px; align-content: center; min-height: 560px; padding: clamp(24px, 4vw, 56px); border-radius: 28px; overflow: hidden; color: var(--gc-ink); background: var(--gc-stage); }
.acc-stage .dotgrid { --dot: var(--gc-dot); }
.acc-bg { position: absolute; inset: 0; }
.acc-cards { position: relative; display: grid; width: min(100%, 460px); justify-self: center; }
.gc { grid-area: 1 / 1; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transition: opacity var(--dur-frame) var(--ease-out), transform var(--dur-frame) var(--ease-out), visibility 0s linear var(--dur-frame); }
.gc.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-frame) var(--ease-out), transform var(--dur-frame) var(--ease-out), visibility 0s; }
.gc-office, .gc-phone { display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: var(--gc-glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--gc-line); box-shadow: var(--gc-shadow); color: var(--gc-ink); }
/* Office and Phone views share one grid cell inside each card and only change visibility, so the stage keeps one
   height (the toggle never moves) and both cards are centred in the panel (round 7). The phone card is a realistic
   320px wide, so item names and the header fit on one line. */
.gc-office, .gc-phone { grid-area: 1 / 1; width: 100%; }
.gc-phone { width: min(100%, 320px); border-radius: 34px; padding: 30px 20px 22px; text-align: center; justify-items: center; visibility: hidden; }
.gc-phone .gc-title, .gc-phone .gc-sub { white-space: nowrap; }
.acc-cards[data-view="phone"] .gc-office { visibility: hidden; }
.acc-cards[data-view="phone"] .gc.is-on .gc-phone { visibility: visible; }
.acc-cards[data-view="office"] .gc:not(.is-on) .gc-office, .acc-cards[data-view="phone"] .gc .gc-office { visibility: hidden; }
.gc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.gc-title { font: 600 .8125rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gc-ink-2); }
.gc-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 10px; border-radius: var(--r-chip); font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--gc-line); }
.gc-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gc-tag-blue { color: var(--gc-blue); } .gc-tag-amber { color: var(--gc-amber); } .gc-tag-green { color: var(--gc-green); }
.gc-big { font: 600 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-mono); letter-spacing: -.01em; color: var(--gc-ink-strong); }
.gc-mid { font: 600 1.25rem/1.2 var(--font-display); color: var(--gc-ink-strong); }
.gc-sub { font: 500 .8125rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gc-ink-2); }
.gc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gc-tiles div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--gc-tile); border: 1px solid var(--gc-tile-line); }
.gc-tiles span { font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gc-ink-2); }
.gc-tiles b { font-weight: 600; font-size: .9rem; color: var(--gc-ink-strong); }
.gc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gc-rows li { display: flex; align-items: baseline; gap: 8px; font-size: .875rem; }
.gc-rows li i { flex: 1; border-bottom: 1.5px dotted var(--gc-dots); transform: translateY(-3px); }
.gc-rows li.muted { color: var(--gc-muted); }
.gc-green { color: var(--gc-green); }
.gc-bar { height: 8px; border-radius: 4px; background: var(--gc-track); overflow: hidden; }
.gc-bar i { display: block; width: 65%; height: 100%; background: var(--gc-green); border-radius: 4px; }
.gc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gc-steps li { padding: 6px 8px; border-radius: 8px; font-size: .75rem; font-weight: 600; background: var(--gc-tile); color: var(--gc-ink-2); text-align: center; white-space: nowrap; }
.gc-steps li.done { background: #1E54DD; color: #fff; }
.gc-steps li.now { background: #FFB81C; color: #11191B; }
.gc-phone.gc-phone-picks { text-align: left; justify-items: stretch; gap: 10px; }
.gc-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gc-picks li { white-space: nowrap; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--gc-tile); font-size: .875rem; }
.gc-picks .gc-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gc-box); }
.gc-picks .gc-box { display: grid; place-items: center; font: 700 12px/1 var(--font-text); color: var(--gc-ink-strong); }
.gc-picks li.on .gc-box { background: #1E54DD; border-color: #1E54DD; }
.gc-picks li.on .gc-box::after { content: "✓"; }
.gc-picks li.off { color: var(--gc-ink-2); }
.gc-picks li.off span:nth-child(2), .gc-picks li.off b { text-decoration: line-through; text-decoration-color: var(--gc-box); }
.gc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--gc-line); font-weight: 650; }
.gc-total b { font-size: 1.25rem; color: var(--gc-ink-strong); }
.gc-phone-picks .gc-btn { justify-self: stretch; justify-content: center; }
.gc-btn { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-btn); background: #1E54DD; color: #fff; font-weight: 650; font-size: .875rem; white-space: nowrap; }
.gc-phone .gc-btn { justify-self: center; }
.acc-toggle { position: relative; display: inline-flex; padding: 4px; border-radius: var(--r-btn); background: var(--gc-glass); border: 1px solid var(--gc-line); }
.acc-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--gc-ink-2); font: 600 .875rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.acc-toggle button[aria-pressed="true"] { background: var(--gc-pressed); color: var(--gc-ink-strong); }
@media (max-width: 1023px) { .acc.is-none .acc-stage { display: none; } .acc-stage { min-height: 0; padding: 24px 16px; } .acc-slot .acc-stage { margin-top: 6px; } }

/* ---------- What we're building next (ComingNext.astro, round 7): a roadmap rail with cards hanging from it ---------- */
.cn-rail { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
.cn-item { position: relative; display: grid; gap: 14px; padding-left: 30px; min-width: 0; }
.cn-card, .cn-blue, .cn-ui { min-width: 0; }
@media (max-width: 479px) { .cn-pill, .cn-chip { white-space: normal; } }
.cn-rail::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 2px dashed color-mix(in srgb, var(--ink-2) 40%, transparent); }
.cn-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand-fill); }
.cn-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.cn-status { justify-self: start; padding: 4px 10px; border-radius: var(--r-chip); border: 1px dashed color-mix(in srgb, var(--ink-2) 55%, transparent); font-size: .8125rem; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.cn-card h3 { font-size: var(--step-3); }
.cn-card .cn-status { align-self: flex-start; }
.cn-card p { color: var(--ink-2); }
.cn-blue { position: relative; display: grid; gap: 10px; margin-top: auto; padding: 12px 14px 14px; border-radius: 14px; border: 1px dashed var(--line); background-color: var(--surface-2); overflow: hidden; }
.cn-ui { display: grid; gap: 8px; filter: grayscale(1); opacity: .62; }
.cn-stamp { justify-self: start; padding: 3px 8px; border-radius: var(--r-chip); background: var(--ink); color: var(--bg); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.cn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .875rem; flex-wrap: wrap; }
.cn-chip { justify-self: start; padding: 6px 12px; border-radius: var(--r-chip); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.cn-pill { padding: 3px 10px; border-radius: var(--r-chip); background: var(--ok-soft); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.cn-box { width: 18px; height: 18px; border-radius: 5px; background: var(--brand-fill); display: grid; place-items: center; color: #fff; font: 700 12px/1 var(--font-text); }
.cn-box::after { content: "✓"; }
.cn-row .cn-box + span { margin-right: auto; }
.cn-timer { display: inline-grid; } .cn-timer > * { grid-area: 1 / 1; } .cn-timer > :first-child { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cn-rail.rt-live .cn-a { animation: cn-in 4.8s var(--ease-out) infinite both; }
  .cn-rail.rt-live .cn-b { animation: cn-in-2 4.8s var(--ease-out) infinite both; }
  .cn-rail.rt-live .cn-timer > :first-child { animation: cn-t1 4.8s steps(1) infinite both; }
  .cn-rail.rt-live .cn-timer > :last-child { animation: cn-t2 4.8s steps(1) infinite both; }
}
@keyframes cn-in { 0%, 12% { opacity: 0; transform: translateY(6px); } 20%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cn-in-2 { 0%, 30% { opacity: 0; transform: translateY(6px); } 38%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cn-t1 { 0%, 30% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes cn-t2 { 0%, 30% { opacity: 0; } 31%, 100% { opacity: 1; } }
/* Wide: a horizontal rail across the top, the three cards hanging from it. */
@media (min-width: 900px) {
  .cn-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); padding-top: 28px; }
  .cn-rail::before { left: 8px; right: 8px; top: 7px; bottom: auto; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--ink-2) 40%, transparent); }
  .cn-item { padding-left: 0; padding-top: 0; }
  .cn-dot { top: -28px; left: 20px; }
  .cn-item::before { content: ""; position: absolute; left: 27px; top: -12px; height: 12px; border-left: 2px dashed color-mix(in srgb, var(--ink-2) 40%, transparent); }
}

/* ---------- Continuation fade (round 6): readable rows stay fully opaque; only a separate decorative continuation
   below the last readable row fades out, so a card suggests more without anything real looking disabled. ---------- */
.fade-cont { display: grid; gap: 8px; padding-top: 2px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.fade-cont i { display: block; height: 10px; border-radius: 5px; background: currentColor; opacity: .14; }
.fade-cont i:nth-child(2) { width: 72%; }
.fade-cont i:nth-child(4) { width: 84%; } .fade-cont i:nth-child(5) { width: 58%; } .fade-cont i:nth-child(7) { width: 90%; } .fade-cont i:nth-child(8) { width: 66%; } .fade-cont i:nth-child(10) { width: 78%; }
.gc .fade-cont { color: var(--gc-ink); }
@media (forced-colors: active) { .fade-cont { display: none; } }
.fade-tail { display: grid; gap: 8px; padding-top: 4px; }

/* ---------- AI trio (AiTrio.astro): three equal cards, each a small looping drawing ---------- */
.ai3 { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .ai3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai3-card { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; align-content: start; }
.ai3-card > p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.ai3-card > p strong { color: var(--ink); font-weight: 650; }
.ai3-tag { display: flex; }
.ai3-panel { position: relative; display: grid; place-items: center; height: 280px; padding: 28px 20px; border-radius: 20px; border: 1px solid var(--line); background-color: var(--surface-2); overflow: hidden; }
.ai3-doc { position: relative; display: grid; gap: 8px; width: min(100%, 300px); padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px #0B141766; font-size: .875rem; }
.ai3-doc-head { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: .8125rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ai3-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.ai3-swap { display: inline-grid; justify-items: end; }
.ai3-swap > * { grid-area: 1 / 1; }
.ai3-hours { justify-items: start; }
.ai3-flag, .ai3-fixed { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-chip); font-weight: 650; font-size: .8125rem; white-space: nowrap; }
.ai3-flag { background: var(--amber-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); }
.ai3-flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F2A900; }
.ai3-fixed { background: var(--ok-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
/* Final frame (reduced motion, no JS, off-screen): fixed, filled, added. */
.ai3-flag { opacity: 0; }
.ai3-swap > :first-child:not(.ai3-flag) { opacity: 0; }
.ai3-field { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px dashed var(--line); white-space: nowrap; }
.ai3-field span { color: var(--ink-2); }
.ai3-field b { font-weight: 650; }
.ai3-call .bars { height: 36px; justify-content: center; margin-bottom: 4px; }
.ai3-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-chip); background: var(--brand-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.ai3-chip::before { content: "+"; font-weight: 700; color: var(--brand); }
.ai3-total { border-top: 1px solid var(--line); border-radius: 0; padding-top: 10px; font-weight: 650; }
.ai3 .bars-live i, .ai3 .bars-live.in i { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  /* Loops exist only while the row is in view (.rt-live from site.js): leaving the view drops back to the final frame. */
  .ai3.rt-live .bars-live i { animation-play-state: running; }
  .ai3.rt-live .ai3-flag { animation: ai3-a 8s var(--ease-in-out) infinite both; }
  .ai3.rt-live .ai3-fixed { animation: ai3-b 8s var(--ease-in-out) infinite both; }
  .ai3.rt-live .ai3-flag::before { animation: ai3-pulse 1s ease-in-out infinite alternate; }
  .ai3.rt-live .ai3-flagged { animation: ai3-row 8s var(--ease-in-out) infinite both; }
  /* the hours change WITH the badge: 3.8 h while flagged, 3.0 h once fixed (and in the still, final frame) */
  .ai3.rt-live .ai3-hours > :first-child { animation: ai3-a 8s var(--ease-in-out) infinite both; }
  .ai3.rt-live .ai3-hours > :last-child { animation: ai3-b 8s var(--ease-in-out) infinite both; }
  .ai3.rt-live .ai3-field b { animation: ai3-fill 8s var(--ease-out) infinite both; }
  .ai3.rt-live .ai3-field:nth-of-type(2) b { animation-name: ai3-fill-2; }
  .ai3.rt-live .ai3-field:nth-of-type(3) b { animation-name: ai3-fill-3; }
  .ai3.rt-live .ai3-chip { animation: ai3-slide 8s var(--ease-out) infinite both; }
  .ai3.rt-live .ai3-chip:nth-of-type(2) { animation-name: ai3-slide-2; }
  .ai3.rt-live .ai3-total .ai3-swap > :first-child { animation: ai3-a 8s var(--ease-in-out) infinite both; }
  .ai3.rt-live .ai3-total .ai3-swap > :last-child { animation: ai3-b 8s var(--ease-in-out) infinite both; }
}
@keyframes ai3-a { 0%, 52% { opacity: 1; transform: none; } 58%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; } }
@keyframes ai3-b { 0%, 52% { opacity: 0; transform: translateY(6px) scale(.96); } 58%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ai3-row { 0%, 52% { background: color-mix(in srgb, #F2A900 14%, transparent); } 60%, 100% { background: transparent; } }
@keyframes ai3-pulse { from { transform: scale(.7); box-shadow: 0 0 0 0 #F2A90066; } to { transform: scale(1.15); box-shadow: 0 0 0 5px #F2A90000; } }
@keyframes ai3-fill   { 0%, 18% { opacity: 0; transform: translateX(-6px); } 24%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ai3-fill-2 { 0%, 34% { opacity: 0; transform: translateX(-6px); } 40%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ai3-fill-3 { 0%, 50% { opacity: 0; transform: translateX(-6px); } 56%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ai3-slide   { 0%, 10% { opacity: 0; transform: translateX(40px); } 18%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ai3-slide-2 { 0%, 38% { opacity: 0; transform: translateX(40px); } 46%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Drawn tiles (platform) ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tiles li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.tiles strong { display: block; font: 600 1.05rem/1.2 var(--font-display); }
.tiles li span span { display: block; font-size: .9rem; color: var(--ink-2); }

/* ---------- Integrations ---------- */
/* The connection diagram in HTML (MUST 5): three columns with drawn connectors on wide screens, one stacked column on
   phones, text at normal size throughout. */
/* ---------- Integration hub (IntegrationHub.astro, round 7) ---------- */
.ix { position: relative; }
.ix-stage { display: none; }
.ix-nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ix-node { position: relative; display: grid; gap: 4px; justify-items: start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.ix-node strong { font: 600 1.05rem/1.2 var(--font-display); }
.ix-node > span:not(.status):not(.ix-flows) { font-size: .9rem; color: var(--ink-2); }
.ix-node .status { margin-top: 4px; }
.ix-flows { display: grid; gap: 4px; margin-top: 6px; }
.ix-flows span { font-size: .8125rem; color: var(--brand); }
.ix-hub { justify-items: center; text-align: center; padding: 20px; border: 2px solid var(--brand-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-fill) 14%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--brand-fill) 55%, transparent); }
.ix-hub strong { font-size: 1.35rem; }
.ix-hub .logo-dark { display: none; }
:root[data-theme="dark"] .ix-hub .logo-light { display: none; } :root[data-theme="dark"] .ix-hub .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ix-hub .logo-light { display: none; } :root:not([data-theme="light"]) .ix-hub .logo-dark { display: block; } }
/* Phones: one column, hub in the middle; short curved connectors join each card to the column's spine. */
@media (max-width: 1199px) {
  .ix-nodes { padding-left: 22px; }
  .ix-node:not(.ix-hub)::before { content: ""; position: absolute; left: -22px; top: -14px; height: calc(50% + 14px); width: 16px; border-left: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); border-bottom: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); border-bottom-left-radius: 14px; }
  .ix-hub { margin-left: -22px; }
}
@media (min-width: 1200px) {
  .ix { aspect-ratio: 1200 / 520; width: 100%; max-width: 1400px; justify-self: center; }
  .ix-stage { display: block; position: absolute; inset: 0; border-radius: 24px; }
  .ix-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .ix-nodes { position: absolute; inset: 0; display: block; }
  .ix-node { position: absolute; width: 21.67%; }
  .ix-flows { display: none; }
  .ix-map, .ix-phone { left: 3.33%; } .ix-qb, .ix-stripe { right: 3.33%; }
  .ix-map, .ix-qb { top: 11%; } .ix-phone, .ix-stripe { top: 61%; }
  .ix-hub { left: 40%; width: 20%; top: 33%; }
  .ix-curve { fill: none; stroke: color-mix(in srgb, var(--brand) 60%, transparent); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
  .ix-label { position: absolute; transform: translate(-50%, -50%); padding: 3px 9px; border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink); white-space: nowrap; }
  .ix-packet { fill: var(--brand-fill); offset-distance: 50%; offset-rotate: 0deg; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .ix-packet { animation: ix-run 3.2s linear infinite; animation-play-state: paused; }
  .ix.rt-live .ix-packet { animation-play-state: running; }
}
@keyframes ix-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ix-l-qb-out { left: 67.5%; top: 21.54%; }
.ix-p-qb-out { offset-path: path('M720,205 C800,205 820,100 900,100'); animation-delay: -0.00s; }
.ix-l-qb-in { left: 67.5%; top: 44.62%; }
.ix-p-qb-in { offset-path: path('M900,165 C820,165 800,245 720,245'); animation-delay: -0.55s; }
.ix-l-st-out { left: 67.5%; top: 56.15%; }
.ix-p-st-out { offset-path: path('M720,285 C800,285 820,360 900,360'); animation-delay: -1.10s; }
.ix-l-st-in { left: 67.5%; top: 79.23%; }
.ix-p-st-in { offset-path: path('M900,420 C820,420 800,320 720,320'); animation-delay: -1.65s; }
.ix-l-map-in { left: 32.5%; top: 28.85%; }
.ix-p-map-in { offset-path: path('M300,130 C390,130 400,225 480,225'); animation-delay: -2.20s; }
.ix-l-ph-out { left: 32.5%; top: 71.54%; }
.ix-p-ph-out { offset-path: path('M480,300 C400,300 390,390 300,390'); animation-delay: -2.75s; }
/* Round 10: texts are not being sent, so this connector is quiet — no packet, a fainter line. */
.ix .ix-p-ph-out { display: none; }
.ix .ix-ph-out { opacity: .45; }

.vendor { grid-template-rows: auto auto 1fr auto auto; }
.vendor .card-foot { align-self: end; margin-top: 8px; }
.vendor h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Demo form ---------- */
.demo-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: .8fr 1.2fr; } }
/* SHOULD 10: on phones and tablets the form comes first; what to expect follows it. */
@media (max-width: 1023px) { .demo-grid > .form { order: -1; } }
.page-hero-tight { padding-block: clamp(24px, 4vw, 56px) clamp(8px, 2vw, 24px); }
.page-hero-tight + .section { padding-top: clamp(20px, 3vw, 48px); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow-card); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .92rem; }
.field label span { color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: var(--ink-2); }
.form-status { min-height: 1.4em; font-weight: 600; color: var(--stop); }
/* --ok is a fill colour (dots, ticks, rings); text uses --ok-text, which meets 4.5:1 on the form in every mode. */
.form-status.success { color: var(--ok-text); }
.focus-chip { display: none; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: var(--r-chip); font-size: .9rem; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); font-size: .92rem; }
.focus-chip.is-set { display: flex; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.expect { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.expect li { display: flex; gap: 12px; align-items: flex-start; }
.expect .icon { color: var(--brand); margin-top: 3px; }
.upgrade-note { padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--upgrade) 40%, var(--line)); background: var(--upgrade-soft); font-size: .95rem; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; }
.cta .section-head { margin-bottom: 28px; }
.site-footer { background: #081013; color: #EEF2F1; padding-block: 56px 28px; }
.site-footer a { color: #EEF2F1; text-decoration: none; }
.site-footer .brand { min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h2 { font: 600 .8rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #A9B6B8; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-grid ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer-tag { color: #A9B6B8; max-width: 36ch; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #FFFFFF1F; display: grid; gap: 10px; font-size: .82rem; color: #A9B6B8; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.notices p { max-width: 90ch; }

/* ---------- Screen dialog (Cockpit) ---------- */
.screen-dialog { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: var(--r-frame); background: var(--surface); color: var(--ink); }
.screen-dialog::backdrop { background: #0B1417D9; }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dialog-bar h2 { font-size: 1.05rem; }
.dialog-view { overflow: auto; max-height: calc(94vh - 64px); }
.dialog-view img { max-width: none; width: 100%; min-width: 900px; }
body.dialog-open { overflow: hidden; }
.tour { display: grid; gap: 24px; }
@media (min-width: 1024px) { .tour { grid-template-columns: 280px 1fr; } }
.tour-nav { display: grid; gap: 6px; align-content: start; list-style: none; margin: 0; padding: 0; }
.tour-nav a { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.tour-nav a[aria-current="step"] { border-color: var(--upgrade); background: var(--upgrade-soft); }
.tour-nav .mono { color: var(--ink-2); }
.tour-panel { display: grid; gap: 18px; }
.tour-panel[hidden] { display: none; }
.notice-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .notice-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Reveal + motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-frame) var(--ease-out), transform var(--dur-frame) var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .stagger > * { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-frame) var(--ease-out), transform var(--dur-frame) var(--ease-out); }
  .js .stagger.in > * { opacity: 1; transform: none; }
  .js .stagger.in > :nth-child(2) { transition-delay: calc(var(--stagger) * 1); }
  .js .stagger.in > :nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
  .js .stagger.in > :nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
  .js .stagger.in > :nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
  .js .stagger.in > :nth-child(6) { transition-delay: calc(var(--stagger) * 5); }
  .js .stagger.in > :nth-child(n+7) { transition-delay: calc(var(--stagger) * 6); }
  /* Lines that draw themselves carry pathLength="100", so one dash covers any length. */
  .js .draw .bc-link, .js .draw .loop-svg path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset var(--dur-draw) var(--ease-in-out); }
  .js .draw.in .bc-link, .js .draw.in .loop-svg path { stroke-dashoffset: 0; }
  .js .timeline.draw::before { transform: scaleY(0); transition: transform var(--dur-draw) var(--ease-in-out); }
  .js .timeline.draw.in::before { transform: scaleY(1); }
  .bars-live i { animation: bar 1.1s var(--ease-in-out) infinite alternate; animation-play-state: paused; }
  .bars-live.in i, .flow-step.is-active .bars-live i { animation-play-state: running; }
  .bars-live i:nth-child(2n) { animation-duration: .8s; } .bars-live i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -.3s; } .bars-live i:nth-child(5n) { animation-duration: .95s; animation-delay: -.6s; }
  @keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
  /* Where the browser has scroll-driven timelines, reveals follow the scroll itself instead of a class. */
  @supports (animation-timeline: view()) {
    .js .reveal { opacity: 1; transform: none; transition: none; animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(16px); } }
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-short); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .site-header.is-hidden { transform: none; }
}

/* ---------- "Pause motion" (round 16c, WCAG 2.2.2) ----------
   html[data-motion="off"] is set by theme.js before first paint (saved choice) or by the control itself. It does what
   the reduced-motion query does: no animation, no transition, the still frames, and the same few layout exceptions. */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="off"] .site-header.is-hidden { transform: none; }
html[data-motion="off"] .cycle > :not(:last-child) { visibility: hidden; }
/* two still states that the stylesheet only sets where motion is allowed: a cycling label shows its last word, and a tilted stage lies flat */
html[data-motion="off"] .cycle > * { opacity: 1; }
html[data-motion="off"] .f3d-stage, html[data-motion="off"] .nd-phone, html[data-motion="off"] .nd-so, html[data-motion="off"] .ic-callout { transform: none !important; }
html[data-motion="off"] .rt-swap > .before { opacity: 0; } html[data-motion="off"] .rt-swap > .after { opacity: 1; }
/* the control: a 44px round button; pause bars, or a play triangle once pressed */
.motion-row { display: flex; justify-content: flex-start; margin-top: clamp(12px, 2vw, 20px); position: relative; z-index: 1; }
.motion-btn[aria-disabled="true"] { cursor: default; }
.motion-ico { position: relative; display: block; width: 12px; height: 14px; border-inline: 4px solid currentColor; box-sizing: border-box; }
.motion-btn[aria-pressed="true"] .motion-ico { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.motion-btn-text { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* round 23: on the home hero it sits in the link row, quieter than the two links (smaller, secondary ink, no underline
   until hovered); the 44px row height is its hit area */
.motion-btn-inline { font-size: .9375rem; color: var(--ink-2); text-decoration: none; gap: 8px; padding: 0 4px; }
.motion-btn-inline:hover { color: var(--ink); text-decoration: underline; }
.motion-btn-inline .motion-ico { transform: scale(.85); }
/* the label changes after load (Pause motion · Play motion · Motion is off): one fixed width for all three, so the row
   wraps the same way whichever it says and nothing shifts */
.motion-btn-inline .motion-say { display: inline-block; min-width: 7em; text-align: start; }
/* side-by-side hero: it hangs just under the link row, out of the flow, so adding it changes neither the copy's height
   nor where the copy sits (the copy is centred in the hero) */
@media (min-width: 1200px) { .hero.has-scene .hero-copy .row { position: relative; } .hero.has-scene .motion-btn-inline { position: absolute; left: 0; top: 100%; margin-top: 6px; } }
/* home: the hero is exactly one screen tall, so the control sits in its free lower-left corner instead of adding a row */
@media (min-width: 1200px) { .hero.has-scene > .motion-row { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0 auto; pointer-events: none; } .hero.has-scene > .motion-row > .motion-btn { pointer-events: auto; } }

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .flow-controls, .skip { display: none; } .flow.is-live .flow-step { opacity: 1; visibility: visible; position: static; } }
.rt-swap > .rt-stack { display: grid; gap: 6px; }
.shot picture, .shot picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-screen > picture { position: absolute; inset: 0; }

/* ---------- Multi-brand scope diagram (ScopeLanes.astro, round 9): brands as containers, locations as lanes ---------- */
.scope { position: relative; display: grid; gap: 14px; grid-template-areas: "who" "rwt" "rw" "wall" "dlt" "dl"; margin-bottom: clamp(28px, 4vw, 48px); padding: clamp(16px, 2.4vw, 28px); border-radius: 24px; border: 1px solid var(--line); background-color: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; isolation: isolate; }
.scope-who { grid-area: who; justify-self: center; position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.scope-who .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); }
.scope-who span { display: grid; line-height: 1.15; }
.scope-who strong { font: 600 1rem/1.15 var(--font-display); letter-spacing: .02em; }
.scope-who small { font-size: .8125rem; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.scope-tally { position: relative; justify-self: center; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--bg); transition: background-color 300ms, border-color 300ms; }
.scope-tally span { font-weight: 650; }
.scope-tally b { font: 600 1.35rem/1 var(--font-display); color: var(--brand); }
.scope-tally small { font-size: .8125rem; color: var(--ink-2); }
.scope-t-rw { grid-area: rwt; } .scope-t-dl { grid-area: dlt; }
.scope-b-rw { grid-area: rw; } .scope-b-dl { grid-area: dl; }
.scope-brand { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--surface-2); overflow: hidden; }
.scope-b-dl { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.scope-brand-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 2px; }
.scope-brand-name strong { font: 600 1.15rem/1.1 var(--font-display); }
.scope-brand-name small { font-size: .8125rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.scope-lane { display: grid; grid-template-columns: minmax(104px, auto) 1fr; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.scope-loc { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.scope-loc .icon { width: 15px; height: 15px; color: var(--ink-2); }
.scope-track { position: relative; height: 30px; overflow: hidden; container-type: inline-size; border-radius: 8px; background-image: linear-gradient(90deg, var(--line) 50%, transparent 0); background-size: 10px 2px; background-repeat: repeat-x; background-position: 0 50%; }
/* A rider is the lane minus one chip wide, so translateX(0..100%) carries the chip from the start to the end of its lane. */
.scope-ride { position: absolute; inset: 0 92px 0 0; transform: translateX(var(--at, 0%)); }
.scope-rec { position: absolute; left: 0; top: 3px; display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 24px; border-radius: 999px; font-size: .8125rem; font-style: normal; font-weight: 600; color: var(--brand-ink); background: var(--brand-fill); box-shadow: 0 4px 10px -6px #0B141780; }
.scope-b-dl .scope-rec { background: #8A5A00; }
/* Two chips share a lane half a loop apart; under 300px of track they would overlap, so a narrow lane carries one. */
@container (max-width: 300px) { .scope-ride + .scope-ride { display: none; } }
.scope-r1 { --at: 64%; } .scope-r2 { --at: 6%; } .scope-r3 { --at: 38%; } .scope-r4 { --at: 78%; } .scope-r5 { --at: 18%; } .scope-r6 { --at: 52%; }
.scope-wall { grid-area: wall; justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-size: .8125rem; font-weight: 600; text-align: center; background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px); border: 1px solid var(--line); }
.scope-wall .icon { flex: none; width: 18px; height: 18px; color: var(--ink); }
.scope-beam { display: none; }
@media (min-width: 900px) {
  .scope { grid-template-columns: 1fr minmax(128px, auto) 1fr; grid-template-areas: "rwt who dlt" "rw wall dl"; column-gap: 16px; row-gap: 22px; }
  .scope-wall { flex-direction: column; max-width: 140px; padding: 16px 10px; }
  .scope-wall .icon { width: 22px; height: 22px; }
  /* The leader joins each tally with its own line: two lines, two numbers, never one merged total. */
  .scope-tally::before { content: ""; position: absolute; top: 50%; width: 18px; border-top: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); }
  .scope-t-rw { justify-self: end; } .scope-t-dl { justify-self: start; }
  .scope-t-rw::before { left: 100%; } .scope-t-dl::before { right: 100%; }
  .scope-tally::after { content: ""; position: absolute; left: 50%; top: 100%; height: 22px; border-left: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); }
  .scope-beam { display: block; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 14%, transparent), transparent); transform: translateX(-100%); pointer-events: none; }
}
:root[data-theme="dark"] .scope-b-dl .scope-rec { background: #B07A12; color: #0B1417; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scope-b-dl .scope-rec { background: #B07A12; color: #0B1417; } }
:root[data-theme="dark"] .scope-who .icon { color: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) {
  .scope.rt-live .scope-ride { animation: scope-ride var(--ride, 10s) linear var(--delay, 0s) infinite; }
  .scope.rt-live .scope-r1 { --ride: 9s; --delay: -5.6s; } .scope.rt-live .scope-r2 { --ride: 9s; --delay: -1s; }
  .scope.rt-live .scope-r3 { --ride: 11s; --delay: -4.4s; } .scope.rt-live .scope-r4 { --ride: 10s; --delay: -7.5s; }
  .scope.rt-live .scope-r5 { --ride: 10s; --delay: -2.2s; } .scope.rt-live .scope-r6 { --ride: 12s; --delay: -6s; }
  .scope.rt-live .scope-beam { animation: scope-beam 7s var(--ease-in-out) infinite; }
  .scope.rt-live .scope-t-rw { animation: scope-tally 7s linear infinite; }
  .scope.rt-live .scope-t-dl { animation: scope-tally 7s linear -3.5s infinite; }
}
@keyframes scope-ride { 0% { transform: translateX(0); opacity: 0; } 8%, 88% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes scope-beam { 0% { transform: translateX(-100%); } 100% { transform: translateX(460%); } }
@keyframes scope-tally { 0%, 14%, 46%, 100% { background-color: var(--bg); } 22%, 36% { background-color: var(--brand-soft); border-color: var(--brand); } }
@media (forced-colors: active) { .scope-beam { display: none; } .scope-rec { border: 1px solid CanvasText; } }

/* ---------- Call intake card (CallIntake.astro; round 9 item 10, shared by every copy from round 10) ----------
   Order and look follow the dispatcher's real call-intake screen: the transcript with speaker and elapsed time, the
   "Extracting Service Order details" status, fields filled one at a time each marked New, then the draft waits for
   review. One 15s loop, CSS only, only while on screen (.rt-live) and only when motion is allowed. It enters the loop at
   10.5s, inside the held final frame, so scrolling it into view never blanks what was already shown. Without it, the card
   shows the final frame: every line, every field, "Draft for review" and a ready "Review and book".
   Fields fill in four SLOTS (.ci-f1–.ci-f4: 8–14%, 15–21%, 23–29%, 34–41%); src/data/intake.ts puts each field in the
   slot after the transcript line that mentions it. */
.ci-swap { display: grid; }
.ci-swap > * { grid-area: 1 / 1; }
.ci-st-live, .ci-chip-live { visibility: hidden; }
.ci-chips { justify-items: end; }
.ci-chip-live::before { animation: none; }
.ci-heard { gap: 10px; }
.ci-body { display: grid; gap: 10px; }
.ci-transcript { display: grid; gap: 6px; }
.ci-head { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ci-line { margin: 0; display: grid; grid-template-columns: auto auto 1fr; column-gap: 8px; row-gap: 1px; align-items: baseline; }
.ci-who { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.ci-who.is-caller { color: var(--brand); }
.ci-t { font-size: .8125rem; color: var(--ink-2); }
.ci-st-live, .ci-st-done { font-size: .8125rem; }
.ci-say { grid-column: 1 / -1; color: var(--ink); }
.ci-value { position: relative; display: grid; overflow: hidden; }
.ci-value > * { grid-area: 1 / 1; }
.ci-fill { visibility: hidden; color: var(--ink-2); font-style: italic; }
.ci-val { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-new { padding: 1px 6px; border-radius: 4px; font: 700 .8125rem/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--ci-new-ink, var(--brand)); background: var(--brand-soft); }
/* The card sits on the dark band in both themes, where the lighter blue clears AA (4.5:1) on the soft fill. */
.band-dark .ci-new { --ci-new-ink: var(--we-blue-300); }
:root[data-theme="dark"] .ci-new { --ci-new-ink: var(--we-blue-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ci-new { --ci-new-ink: var(--we-blue-300); } }
.ci-btn { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .ci-card.rt-live .ci-l1 { animation: ci-line-1 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-l2 { animation: ci-line-2 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-l3 { animation: ci-line-3 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f1 .ci-fill { animation: ci-fill-1 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f1 .ci-val { animation: ci-val-1 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f1 .ci-value { animation: ci-box-1 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f2 .ci-fill { animation: ci-fill-2 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f2 .ci-val { animation: ci-val-2 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f2 .ci-value { animation: ci-box-2 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f3 .ci-fill { animation: ci-fill-3 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f3 .ci-val { animation: ci-val-3 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f3 .ci-value { animation: ci-box-3 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f4 .ci-fill { animation: ci-fill-4 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f4 .ci-val { animation: ci-val-4 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-f4 .ci-value { animation: ci-box-4 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-st-live { animation: ci-live-out 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-st-done { animation: ci-done-in 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-chip-live { animation: ci-live-out 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-chip-draft { animation: ci-draft-in 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-heard .bars { animation: ci-bars 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-btn { animation: ci-btn 15s linear -10.5s infinite both; }
  .ci-card.rt-live .ci-chip-live::before { animation: ci-dot 1.2s ease-in-out infinite alternate; }
}
@keyframes ci-line-1 { 0%, 4% { opacity: 0; transform: translateY(6px); clip-path: inset(0 100% 0 0); } 6% { opacity: 1; transform: none; } 10%, 90% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } 96%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes ci-line-2 { 0%, 16% { opacity: 0; transform: translateY(6px); clip-path: inset(0 100% 0 0); } 18% { opacity: 1; transform: none; } 22%, 90% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } 96%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes ci-line-3 { 0%, 28% { opacity: 0; transform: translateY(6px); clip-path: inset(0 100% 0 0); } 30% { opacity: 1; transform: none; } 34%, 90% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } 96%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes ci-fill-1 { 0%, 8% { visibility: visible; opacity: 0; } 9%, 13% { visibility: visible; opacity: 1; } 14%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ci-val-1 { 0%, 14% { opacity: 0; transform: translateY(4px); } 16%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ci-box-1 { 0%, 8% { border-color: var(--line); background-color: var(--surface); } 9%, 13% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background-color: var(--surface); } 15% { border-color: var(--brand); background-color: var(--brand-soft); } 26%, 90% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } 96%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes ci-fill-2 { 0%, 15% { visibility: visible; opacity: 0; } 16%, 20% { visibility: visible; opacity: 1; } 21%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ci-val-2 { 0%, 21% { opacity: 0; transform: translateY(4px); } 23%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ci-box-2 { 0%, 15% { border-color: var(--line); background-color: var(--surface); } 16%, 20% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background-color: var(--surface); } 22% { border-color: var(--brand); background-color: var(--brand-soft); } 33%, 90% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } 96%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes ci-fill-3 { 0%, 23% { visibility: visible; opacity: 0; } 24%, 28% { visibility: visible; opacity: 1; } 29%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ci-val-3 { 0%, 29% { opacity: 0; transform: translateY(4px); } 31%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ci-box-3 { 0%, 23% { border-color: var(--line); background-color: var(--surface); } 24%, 28% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background-color: var(--surface); } 30% { border-color: var(--brand); background-color: var(--brand-soft); } 41%, 90% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } 96%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes ci-fill-4 { 0%, 34% { visibility: visible; opacity: 0; } 35%, 40% { visibility: visible; opacity: 1; } 41%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ci-val-4 { 0%, 41% { opacity: 0; transform: translateY(4px); } 43%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ci-box-4 { 0%, 34% { border-color: var(--line); background-color: var(--surface); } 35%, 40% { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background-color: var(--surface); } 42% { border-color: var(--brand); background-color: var(--brand-soft); } 53%, 90% { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background-color: var(--surface); } 96%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes ci-live-out { 0%, 47% { visibility: visible; opacity: 1; } 49%, 97% { visibility: hidden; opacity: 0; } 100% { visibility: visible; opacity: 1; } }
@keyframes ci-done-in { 0%, 48% { opacity: 0; } 51%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes ci-draft-in { 0%, 51% { opacity: 0; transform: scale(.9); } 54% { opacity: 1; transform: scale(1.08); } 57%, 94% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes ci-bars { 0%, 47% { opacity: 1; } 51%, 96% { opacity: .28; } 100% { opacity: 1; } }
@keyframes ci-btn { 0%, 57% { background-color: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 0 transparent; } 61% { background-color: var(--brand-fill); color: var(--brand-ink); box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 22%, transparent); } 65%, 92% { background-color: var(--brand-fill); color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); } 98%, 100% { background-color: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 0 transparent; } }
@keyframes ci-dot { from { opacity: .35; } to { opacity: 1; } }

/* ---------- Integrations cards (round 10, items 2 and 4): the vendor's logo and a small scene of what each connection does ----------
   Logos are the owner-supplied files (docs/v3-assets.md), never recoloured, at most 40px tall — smaller than our own
   52px header logo. Each scene runs on one 8s loop, only while the cards are on screen and motion is allowed; it enters
   on its finished frame, and without motion the finished frame is all there is. The texting scene is a PREVIEW that
   never moves outward: texts are not being sent. */
.vx-logo { display: block; height: 40px; width: auto; max-width: 96px; object-fit: contain; }
.vx-stripe .vx-logo { height: 28px; margin-block: 6px; }
.vx-scene { position: relative; display: grid; gap: 6px; align-content: start; min-height: 96px; margin-top: 12px; padding: 10px 12px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; font-size: .875rem; }
.vx-cap { font-size: .75rem; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.vx-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.vx-row .mono { color: var(--ink); }
.vx-swap { display: inline-grid; justify-self: start; }
.vx-swap > * { grid-area: 1 / 1; }
.vx-swap > :not(:last-child) { visibility: hidden; }
.vx-bubble { position: relative; justify-self: start; max-width: 100%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--ink-2) 50%, transparent); color: var(--ink); }
.vx-dots { display: none; }
.vx-hold { justify-self: start; }
.vx-map { width: 100%; height: 56px; overflow: visible; }
.vx-road { fill: none; stroke: color-mix(in srgb, var(--ink-2) 35%, transparent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.vx-route { fill: none; stroke: var(--brand-fill); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.vx-a { fill: var(--surface); stroke: var(--brand-fill); stroke-width: 3; } .vx-b { fill: var(--brand-fill); }
.vx-dot { fill: var(--ok); offset-path: path('M10,40 L80,40 L80,16 L210,16'); offset-distance: 62%; offset-rotate: 0deg; }
.vx-ping { fill: color-mix(in srgb, var(--ok) 30%, transparent); offset-path: path('M10,40 L80,40 L80,16 L210,16'); offset-distance: 62%; offset-rotate: 0deg; }
.vx-eta { justify-self: start; }
@media (prefers-reduced-motion: no-preference) {
  .vxs.rt-live .vx-qb-row { animation: vx-post 8s var(--ease-out) -6s infinite both; }
  .vxs.rt-live .vx-qb-chip > :nth-child(1) { animation: vx-first 8s linear -6s infinite both; }
  .vxs.rt-live .vx-qb-chip > :nth-child(2) { animation: vx-second 8s linear -6s infinite both; }
  .vxs.rt-live .vx-st-chip > :nth-child(1) { animation: vx-first 8s linear -5.6s infinite both; }
  .vxs.rt-live .vx-st-chip > :nth-child(2) { animation: vx-second 8s linear -5.6s infinite both; }
  .vxs.rt-live .vx-twilio .vx-bubble { animation: vx-bubble 8s var(--ease-out) -5.2s infinite both; }
  .vxs.rt-live .vx-twilio .vx-dots { display: inline-flex; animation: vx-typing 8s linear -5.2s infinite both; }
  .vxs.rt-live .vx-route { animation: vx-route 8s var(--ease-in-out) -4.8s infinite both; }
  .vxs.rt-live .vx-maps .vx-eta { animation: vx-eta 8s linear -4.8s infinite both; }
  .vxs.rt-live .vx-dot, .vxs.rt-live .vx-ping { animation: vx-drive 8s linear -4.4s infinite both; }
  .vxs.rt-live .vx-ping { animation: vx-drive 8s linear -4.4s infinite both, vx-ping 1.6s ease-out infinite; }
}
/* One shared shape: 0–15% the start state, the change at ~30–45%, held to 90%, then back. */
@keyframes vx-post { 0%, 12% { opacity: 0; transform: translateX(-24px); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes vx-first { 0%, 40% { visibility: visible; } 41%, 100% { visibility: hidden; } }
@keyframes vx-second { 0%, 40% { visibility: hidden; } 41%, 100% { visibility: visible; } }
@keyframes vx-bubble { 0%, 8% { opacity: 0; transform: translateY(6px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes vx-typing { 0%, 8% { opacity: 0; } 12%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes vx-route { 0%, 10% { stroke-dashoffset: 100; } 55%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes vx-eta { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vx-drive { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
@keyframes vx-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.vx-dots i { width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: var(--ink-2); }
@media (forced-colors: active) { .vx-route, .vx-road { stroke: CanvasText; } .vx-dot, .vx-b { fill: CanvasText; } }

/* ---------- Switching (round 10, items 5 and 6) ----------
   "What moves": the six record types leave "Your current system" and land in WrenchEngine in dependency order
   (customers, then their contacts, addresses and trucks; vendors, then their parts). One customer's payment terms
   differ: the difference goes to review and YOURS ARE KEPT — the diagram never shows anything overwritten. What does not
   move stays on the old side, faded, marked "Stays". One 12s loop, only while on screen; it enters on its finished
   frame, and without motion every record has landed.
   "Check first": the check runs once each time it comes into view — rows stream into their buckets while the counters
   (site.js, paced by data-count-ms) climb, then "Import 412" becomes ready. Nothing is added until it is pressed.
   Without motion: every row, the final counts and a ready button. */
.mv { display: grid; gap: 16px; grid-template-columns: 1fr; padding: clamp(16px, 2vw, 24px); border-radius: 24px; border: 1px solid var(--line); background: var(--surface-2); }
.mv-cap { margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mv-files, .mv-stays, .mv-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mv-f, .mv-n, .mv-stays li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; }
.mv-f .icon { width: 16px; height: 16px; color: var(--ink-2); }
.mv-stays { margin-bottom: 0; }
.mv-stays li { justify-content: space-between; font-weight: 500; color: var(--ink-2); background: transparent; border-style: dashed; }
.mv-stay { padding: 1px 8px; border-radius: 999px; font-size: .75rem; color: var(--ink); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); }
.mv-old .mv-cap + .mv-files { margin-bottom: 14px; }
.mv-belt { position: relative; min-height: 44px; display: grid; align-items: center; }
.mv-track { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
.mv-ride { position: absolute; inset: 0 150px 0 0; display: none; }
.mv-chip { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 150px; padding: 5px 10px; border-radius: 999px; background: var(--brand-fill); color: var(--brand-ink); font-size: .8125rem; font-weight: 600; text-align: center; white-space: nowrap; box-shadow: 0 6px 14px -8px #0B141799; }
.mv-belt-cap { position: relative; justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .75rem; }
.mv-belt-cap .icon { width: 14px; height: 14px; }
.mv-n { position: relative; }
.mv-n.is-dep { margin-left: 26px; }
.mv-n.is-dep::before { content: ""; position: absolute; left: -18px; top: -8px; width: 12px; height: calc(50% + 8px); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 6px; }
.mv-tick { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; }
.mv-tick .icon { width: 13px; height: 13px; }
.mv-swap { display: inline-grid; margin-left: auto; }
.mv-swap > * { grid-area: 1 / 1; justify-self: end; }
.mv-swap > :not(:last-child) { visibility: hidden; }
.move-head .move-ord { margin-left: auto; font-size: .8125rem; color: var(--ink-2); }
@media (min-width: 1024px) {
  .mv { grid-template-columns: minmax(0, 1fr) minmax(170px, .9fr) minmax(0, 1.1fr); align-items: center; column-gap: 20px; }
  .mv-ride { display: block; }
  .mv-belt { align-self: stretch; }
  .mv-belt-cap { align-self: end; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mv.rt-live .mv-r1 { animation: mv-ride-1 12s var(--ease-in-out) -11s infinite both; }
  .mv.rt-live .mv-n1 { animation: mv-land-1 12s var(--ease-out) -11s infinite both; }
  .mv.rt-live .mv-f1 { animation: mv-sent-1 12s linear -11s infinite both; }
  .mv.rt-live .mv-r2 { animation: mv-ride-2 12s var(--ease-in-out) -11s infinite both; }
  .mv.rt-live .mv-n2 { animation: mv-land-2 12s var(--ease-out) -11s infinite both; }
  .mv.rt-live .mv-f2 { animation: mv-sent-2 12s linear -11s infinite both; }
  .mv.rt-live .mv-r3 { animation: mv-ride-3 12s var(--ease-in-out) -11s infinite both; }
  .mv.rt-live .mv-n3 { animation: mv-land-3 12s var(--ease-out) -11s infinite both; }
  .mv.rt-live .mv-f3 { animation: mv-sent-3 12s linear -11s infinite both; }
  .mv.rt-live .mv-r4 { animation: mv-ride-4 12s var(--ease-in-out) -11s infinite both; }
  .mv.rt-live .mv-n4 { animation: mv-land-4 12s var(--ease-out) -11s infinite both; }
  .mv.rt-live .mv-f4 { animation: mv-sent-4 12s linear -11s infinite both; }
  .mv.rt-live .mv-r5 { animation: mv-ride-5 12s var(--ease-in-out) -11s infinite both; }
  .mv.rt-live .mv-n5 { animation: mv-land-5 12s var(--ease-out) -11s infinite both; }
  .mv.rt-live .mv-f5 { animation: mv-sent-5 12s linear -11s infinite both; }
  .mv.rt-live .mv-r6 { animation: mv-ride-6 12s var(--ease-in-out) -11s infinite both; }
  .mv.rt-live .mv-n6 { animation: mv-land-6 12s var(--ease-out) -11s infinite both; }
  .mv.rt-live .mv-f6 { animation: mv-sent-6 12s linear -11s infinite both; }
  .mv.rt-live .mv-diff { animation: mv-diff-in 12s linear -11s infinite both; }
  .mv.rt-live .mv-diff > :nth-child(1) { animation: mv-diff-1 12s linear -11s infinite both; }
  .mv.rt-live .mv-diff > :nth-child(2) { animation: mv-diff-2 12s linear -11s infinite both; }
}
@keyframes mv-ride-1 { 0%, 4% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 11% { opacity: 1; } 12%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes mv-land-1 { 0%, 11.5% { opacity: .35; transform: translateX(-6px); } 13.5%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateX(-6px); } }
@keyframes mv-sent-1 { 0%, 4% { opacity: 1; } 6%, 94% { opacity: .55; } 100% { opacity: 1; } }
@keyframes mv-ride-2 { 0%, 15% { transform: translateX(0); opacity: 0; } 16% { opacity: 1; } 22% { opacity: 1; } 23%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes mv-land-2 { 0%, 22.5% { opacity: .35; transform: translateX(-6px); } 24.5%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateX(-6px); } }
@keyframes mv-sent-2 { 0%, 15% { opacity: 1; } 17%, 94% { opacity: .55; } 100% { opacity: 1; } }
@keyframes mv-ride-3 { 0%, 26% { transform: translateX(0); opacity: 0; } 27% { opacity: 1; } 33% { opacity: 1; } 34%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes mv-land-3 { 0%, 33.5% { opacity: .35; transform: translateX(-6px); } 35.5%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateX(-6px); } }
@keyframes mv-sent-3 { 0%, 26% { opacity: 1; } 28%, 94% { opacity: .55; } 100% { opacity: 1; } }
@keyframes mv-ride-4 { 0%, 37% { transform: translateX(0); opacity: 0; } 38% { opacity: 1; } 44% { opacity: 1; } 45%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes mv-land-4 { 0%, 44.5% { opacity: .35; transform: translateX(-6px); } 46.5%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateX(-6px); } }
@keyframes mv-sent-4 { 0%, 37% { opacity: 1; } 39%, 94% { opacity: .55; } 100% { opacity: 1; } }
@keyframes mv-ride-5 { 0%, 48% { transform: translateX(0); opacity: 0; } 49% { opacity: 1; } 55% { opacity: 1; } 56%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes mv-land-5 { 0%, 55.5% { opacity: .35; transform: translateX(-6px); } 57.5%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateX(-6px); } }
@keyframes mv-sent-5 { 0%, 48% { opacity: 1; } 50%, 94% { opacity: .55; } 100% { opacity: 1; } }
@keyframes mv-ride-6 { 0%, 59% { transform: translateX(0); opacity: 0; } 60% { opacity: 1; } 66% { opacity: 1; } 67%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes mv-land-6 { 0%, 66.5% { opacity: .35; transform: translateX(-6px); } 68.5%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateX(-6px); } }
@keyframes mv-sent-6 { 0%, 59% { opacity: 1; } 61%, 94% { opacity: .55; } 100% { opacity: 1; } }
@keyframes mv-diff-1 { 0%, 76% { visibility: visible; } 84%, 96% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes mv-diff-2 { 0%, 84% { visibility: hidden; } 85%, 96% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes mv-diff-in { 0%, 74% { opacity: 0; } 76%, 96% { opacity: 1; } 100% { opacity: 0; } }

.check-wrap { gap: clamp(28px, 3vw, 44px); }
.ck { display: grid; gap: 12px; padding: clamp(14px, 1.6vw, 20px); border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); }
.ck-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .875rem; color: var(--ink-2); }
.ck-swap, .sv-swap { display: inline-grid; }
.ck-swap > * { grid-area: 1 / 1; justify-self: end; }
.sv-swap > * { grid-area: 1 / 1; justify-self: start; }
.ck .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .ck .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ck .count { padding: 12px; }
.ck .count b { font-size: 1.6rem; }
.ck-swap > :not(:last-child), .sv-swap > :not(:last-child) { visibility: hidden; }
.ck-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ck-rows li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; }
.ck-rows .mono { font-size: .8125rem; color: var(--ink-2); }
.ck-rows li.is-refused { border-color: color-mix(in srgb, var(--stop) 45%, var(--line)); }
.ck-import { justify-self: start; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.sv { align-items: stretch; }
.sv-diff, .sv-run { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); justify-items: start; }
.sv-who { font-size: .8125rem; color: var(--ink-2); }
.sv-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-vals > span { display: grid; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.sv-vals small { font-size: .75rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.sv-yours { border-color: var(--ink) !important; }
.sv-twice { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.sv-twice .icon { width: 18px; height: 18px; color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .ck.rt-live .ck-rows li { animation: ck-row 600ms var(--ease-out) both; }
  .ck.rt-live .ck-r1 { animation-delay: .2s; } .ck.rt-live .ck-r2 { animation-delay: .8s; } .ck.rt-live .ck-r3 { animation-delay: 1.4s; } .ck.rt-live .ck-r4 { animation-delay: 2s; } .ck.rt-live .ck-r5 { animation-delay: 2.6s; }
  .ck.rt-live .ck-swap > :nth-child(1) { animation: ck-first 3.4s linear both; }
  .ck.rt-live .ck-swap > :nth-child(2) { animation: ck-second 3.4s linear both; }
  .ck.rt-live .ck-import { animation: ck-ready 3.8s linear both; }
  .sv.rt-live .sv-diff .sv-vals { animation: ck-row 700ms var(--ease-out) .3s both; }
  .sv.rt-live .sv-diff .pick span:first-child { animation: sv-pick 1.6s var(--ease-out) 1s both; }
  .sv.rt-live .sv-group { animation: ck-row 600ms var(--ease-out) 2.2s both; }
  .sv.rt-live .sv-swap > :nth-child(1) { animation: ck-first 2.4s linear .4s both; }
  .sv.rt-live .sv-swap > :nth-child(2) { animation: ck-second 2.4s linear .4s both; }
  .sv.rt-live .sv-twice { animation: ck-row 600ms var(--ease-out) 2.9s both; }
}
@keyframes ck-row { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ck-first { 0%, 98% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes ck-second { 0%, 98% { visibility: hidden; } 100% { visibility: visible; } }
@keyframes ck-ready { 0%, 90% { background-color: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 0 transparent; } 95% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 25%, transparent); } 100% { background-color: var(--brand-fill); color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); } }
@keyframes sv-pick { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
/* ---------- AI page showcases (round 10, items 1, 7 and 9): one floating 3D family ----------
   .f3d is the shared stage: a gentle CSS tilt (perspective + preserve-3d) with a soft drift and a layered shadow, used by
   the call intake card, the after-hours stage, the invoice checker and the parts phone. From 900px and only with motion
   allowed; phones and reduced motion get the flat card. Each showcase plays its own loop only while on screen
   (.rt-live on [data-live-in-view]) and enters on its finished frame; without motion the finished frame is all there is.
   Truthfulness is part of the design: the AI drafts, advises and suggests — nothing here is booked, dispatched, sent,
   charged or ordered by itself, and "Send invoice" is never shown pressed. */
.f3d { perspective: 1600px; }
.f3d-stage { position: relative; transform-style: preserve-3d; }
/* Round 11: the pointer tilt (site.js's shared pointerDepth, the hero's own handler) adds up to ±7° around Y and ±5°
   around X to the resting tilt, toward the pointer, and eases back over 700ms when it leaves. The drift now moves
   `translate` only, so the loop keeps running underneath the tilt and neither overrides the other. */
.f3d { --px: 0; --py: 0; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .f3d-stage { transform: rotateY(calc(-8deg + var(--px) * 7deg)) rotateX(calc(4deg - var(--py) * 5deg)); transition: transform 700ms var(--ease-out); }
  .f3d.is-pointing .f3d-stage { transition-duration: 160ms; }
  .f3d.rt-live .f3d-stage { animation: f3d-drift 11s ease-in-out infinite alternate; }
  .f3d .frame-web, .f3d .phone-device, .f3d .nd-phone { box-shadow: 0 40px 70px -36px #000000B3, 0 14px 30px -18px #0000008C; }
}
@keyframes f3d-drift { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (forced-colors: active) { .f3d-stage { transform: none !important; translate: none !important; animation: none !important; } }

/* After hours (AiNight.astro): the night phone in front, the draft Service Order behind. */
.nd-stage { display: grid; gap: 16px; }
.nd-so .ui { gap: 10px; }
.nd-value { position: relative; display: grid; overflow: hidden; }
.nd-value > * { grid-area: 1 / 1; }
.nd-fill { visibility: hidden; color: var(--ink-2); font-style: italic; }
.nd-notes { display: grid; gap: 6px; }
.nd-note { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; border-radius: 10px; font-size: .875rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); }
.nd-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ink-2); }
.nd-consent::before { background: var(--brand); } .nd-queue::before { background: var(--amber); } .nd-urgent::before { background: var(--stop); }
.nd-urgent { border-color: color-mix(in srgb, var(--stop) 45%, var(--line)); }
.nd-foot { justify-self: start; padding: 3px 10px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--ink-2) 55%, transparent); font-size: .75rem; color: var(--ink); }
.nd-phone { justify-self: center; width: min(280px, 100%); padding: 14px; border-radius: 30px; background: linear-gradient(170deg, #121b3a, #0b1020 70%); border: 6px solid #1c2233; color: #EEF2F1; }
.nd-screen { display: grid; gap: 8px; }
.nd-time { justify-self: center; font-size: 1.6rem; font-weight: 600; letter-spacing: .02em; }
.nd-swap { display: grid; justify-items: center; }
.nd-swap > * { grid-area: 1 / 1; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; text-align: center; }
.nd-swap > :not(:last-child) { visibility: hidden; }
.nd-ring { background: #1E8E5A; color: #fff; }
.nd-live { background: #2a3352; color: #EEF2F1; }
.nd-screen .bars { justify-self: center; height: 28px; }
.nd-screen .bars i { background: #87B0FF; }
.nd-lines { display: grid; gap: 6px; }
.nd-line { margin: 0; display: grid; gap: 1px; padding: 6px 8px; border-radius: 10px; background: #FFFFFF14; font-size: .8125rem; line-height: 1.35; }
.nd-who { font-size: .75rem; font-weight: 700; color: #A9B6B8; }
.nd-who.is-ai { color: #87B0FF; }
@media (min-width: 900px) {
  .nd-stage { display: block; padding: 28px 0 0 41%; }
  .nd-phone { position: absolute; left: 0; top: 0; width: 38%; z-index: 1; }
}

/* Invoice checker (InvoiceCheck.astro). */
.ic-swap { display: inline-grid; }
.ic-swap > * { grid-area: 1 / 1; }
.ic-swap > :not(:last-child) { visibility: hidden; }
.ic-pill { justify-items: end; }
.ic-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.ic-c2 { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.ic-icon { width: 18px; height: 18px; place-items: center; flex: none; margin-top: 1px; }
.ic-ok, .ic-warn { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ic-ink, #fff); }
.ic-ok .icon, .ic-warn .icon { width: 12px; height: 12px; stroke-width: 3; }
.ic-ok { background: #1A7A4D; } .ic-warn { background: none; color: #A35F00; } .ic-warn .icon { width: 18px; height: 18px; stroke-width: 2.5; }
:root[data-theme="dark"] .ic { --ic-ink: #0B1417; } :root[data-theme="dark"] .ic .ic-ok { background: #4CC38A; } :root[data-theme="dark"] .ic .ic-warn { color: #FFB81C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic { --ic-ink: #0B1417; } :root:not([data-theme="light"]) .ic .ic-ok { background: #4CC38A; } :root:not([data-theme="light"]) .ic .ic-warn { color: #FFB81C; } }
.ic-spin { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink-2) 35%, transparent); border-top-color: var(--brand); }
.ic-advice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--upgrade-soft); border: 1px solid color-mix(in srgb, var(--upgrade) 35%, transparent); font-size: .875rem; color: var(--ink); }
.ic-advice b { color: var(--upgrade); margin-right: 4px; }
.ic-callout { position: absolute; right: -10px; bottom: -18px; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-frame); font-size: .8125rem; font-weight: 600; color: var(--ink); }
/* Depth only with motion allowed: reduced motion is a flat, full-size frame. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .nd-phone { transform: translateZ(70px); } .nd-so { transform: translateZ(-30px); } .ic-callout { transform: translateZ(60px); } }
@media (max-width: 899px) { .ic-callout { position: static; display: inline-block; margin-top: 10px; } }

/* Parts suggestions (PartsSuggest.astro). */
/* The phone measures itself from its container, so its wrapper needs a definite width (shrink-to-fit would be 0). */
.f3d.ps { width: min(300px, 100%); justify-self: center; }
.ps .ai-phone { width: 100%; margin-inline: auto; }
.ps-complaint { margin: 0; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-size: .75rem; color: var(--ink); }
.ps-swap { display: grid; }
.ps-swap > * { grid-area: 1 / 1; }
.ps-swap > :not(:last-child) { visibility: hidden; }
.ps-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.ps-added { font-size: .75rem; }
.ps-p1 { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.ui-meter i { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .nd.rt-live .nd-state > :nth-child(1) { animation: nd-state-1 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-state > :nth-child(2) { animation: nd-state-2 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-phone { animation: nd-ringing 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-l1 { animation: nd-line-1 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-l2 { animation: nd-line-2 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-l3 { animation: nd-line-3 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-l4 { animation: nd-line-4 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-l5 { animation: nd-line-5 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f1 .nd-fill { animation: nd-fill-1 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f1 .nd-val { animation: nd-val-1 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f1 .nd-value { animation: nd-box-1 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f2 .nd-fill { animation: nd-fill-2 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f2 .nd-val { animation: nd-val-2 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f2 .nd-value { animation: nd-box-2 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f3 .nd-fill { animation: nd-fill-3 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f3 .nd-val { animation: nd-val-3 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f3 .nd-value { animation: nd-box-3 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f4 .nd-fill { animation: nd-fill-4 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f4 .nd-val { animation: nd-val-4 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-f4 .nd-value { animation: nd-box-4 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-consent { animation: nd-consent-in 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-queue { animation: nd-queue-in 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-urgent { animation: nd-urgent-in 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-screen .bars { animation: nd-bars 18s linear -15.5s infinite both; }
  .nd.rt-live .nd-screen .bars i { animation-play-state: running; }
  .ic.rt-live .ic-pill > :nth-child(1) { animation: ic-pill-1 14s linear -12s infinite both; }
  .ic.rt-live .ic-pill > :nth-child(2) { animation: ic-pill-2 14s linear -12s infinite both; }
  .ic.rt-live .ic-c1 .ic-icon > :nth-child(1) { animation: ic-c1-1 14s linear -12s infinite both; }
  .ic.rt-live .ic-c1 .ic-icon > :nth-child(2) { animation: ic-c1-2 14s linear -12s infinite both; }
  .ic.rt-live .ic-c2 .ic-icon > :nth-child(1) { animation: ic-c2-1 14s linear -12s infinite both; }
  .ic.rt-live .ic-c2 .ic-icon > :nth-child(2) { animation: ic-c2-2 14s linear -12s infinite both; }
  .ic.rt-live .ic-c2 .ic-icon > :nth-child(3) { animation: ic-c2-3 14s linear -12s infinite both; }
  .ic.rt-live .ic-c2 .ic-text > :nth-child(1) { animation: ic-c2t-1 14s linear -12s infinite both; }
  .ic.rt-live .ic-c2 .ic-text > :nth-child(2) { animation: ic-c2t-2 14s linear -12s infinite both; }
  .ic.rt-live .ic-c3 .ic-icon > :nth-child(1) { animation: ic-c3-1 14s linear -12s infinite both; }
  .ic.rt-live .ic-c3 .ic-icon > :nth-child(2) { animation: ic-c3-2 14s linear -12s infinite both; }
  .ic.rt-live .ic-c1 { animation: ic-dim-1 14s linear -12s infinite both; }
  .ic.rt-live .ic-c3 { animation: ic-dim-3 14s linear -12s infinite both; }
  .ic.rt-live .ic-c2 { animation: ic-dim-2 14s linear -12s infinite both, ic-c2-row 14s linear -12s infinite both; }
  .ic.rt-live .ic-advice { animation: ic-advice-in 14s linear -12s infinite both; }
  .ic.rt-live .ic-fix { animation: ic-press 14s linear -12s infinite both; }
  .ic.rt-live .ic-send { animation: ic-send 14s linear -12s infinite both; }
  .ic.rt-live .ic-callout { animation: ic-callout-in 14s linear -12s infinite both; }
  .ic.rt-live .ic-spin { animation: ic-spin 900ms linear infinite; }
  .ps.rt-live .ps-complaint { animation: ps-type 14s linear -12s infinite both; }
  .ps.rt-live .ps-status > :nth-child(1) { animation: ps-status-1 14s linear -12s infinite both; }
  .ps.rt-live .ps-status > :nth-child(2) { animation: ps-status-2 14s linear -12s infinite both; }
  .ps.rt-live .ps-p1 .ui-meter i { animation: ps-fill-1 14s linear -12s infinite both; }
  .ps.rt-live .ps-p2 { animation: ps-in-2 14s linear -12s infinite both; }
  .ps.rt-live .ps-p2 .ui-meter i { animation: ps-fill-2 14s linear -12s infinite both; }
  .ps.rt-live .ps-p3 { animation: ps-in-3 14s linear -12s infinite both; }
  .ps.rt-live .ps-p3 .ui-meter i { animation: ps-fill-3 14s linear -12s infinite both; }
  .ps.rt-live .ps-p4 { animation: ps-in-4 14s linear -12s infinite both; }
  .ps.rt-live .ps-p4 .ui-meter i { animation: ps-fill-4 14s linear -12s infinite both; }
  .ps.rt-live .ps-p1 { animation: ps-in-1 14s linear -12s infinite both, ps-tap 14s linear -12s infinite both; }
  .ps.rt-live .ps-added { animation: ps-added-in 14s linear -12s infinite both; }
}
@keyframes nd-state-1 { 0% { visibility: visible; opacity: 1; } 8.99% { visibility: visible; opacity: 1; } 9.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes nd-state-2 { 0%, 8.99% { visibility: hidden; opacity: 0; } 9.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes nd-ringing { 0% { transform: none; } 1%, 3%, 5%, 7% { transform: rotate(-2deg); } 2%, 4%, 6%, 8% { transform: rotate(2deg); } 9%, 100% { transform: none; } }
@keyframes nd-line-1 { 0%, 12% { opacity: 0; transform: translateY(6px); } 14.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-line-2 { 0%, 20% { opacity: 0; transform: translateY(6px); } 22.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-line-3 { 0%, 28% { opacity: 0; transform: translateY(6px); } 30.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-line-4 { 0%, 38% { opacity: 0; transform: translateY(6px); } 40.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-line-5 { 0%, 44% { opacity: 0; transform: translateY(6px); } 46.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-fill-1 { 0%, 13.99% { visibility: hidden; opacity: 0; } 14.3% { visibility: visible; opacity: 1; } 17.99% { visibility: visible; opacity: 1; } 18.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes nd-val-1 { 0%, 18% { opacity: 0; } 20%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes nd-box-1 { 0%, 17.5% { border-color: var(--line); background-color: var(--surface); } 19% { border-color: var(--brand); background-color: var(--brand-soft); } 28%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes nd-fill-2 { 0%, 18.99% { visibility: hidden; opacity: 0; } 19.3% { visibility: visible; opacity: 1; } 22.99% { visibility: visible; opacity: 1; } 23.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes nd-val-2 { 0%, 23% { opacity: 0; } 25%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes nd-box-2 { 0%, 22.5% { border-color: var(--line); background-color: var(--surface); } 24% { border-color: var(--brand); background-color: var(--brand-soft); } 33%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes nd-fill-3 { 0%, 23.99% { visibility: hidden; opacity: 0; } 24.3% { visibility: visible; opacity: 1; } 27.99% { visibility: visible; opacity: 1; } 28.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes nd-val-3 { 0%, 28% { opacity: 0; } 30%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes nd-box-3 { 0%, 27.5% { border-color: var(--line); background-color: var(--surface); } 29% { border-color: var(--brand); background-color: var(--brand-soft); } 38%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes nd-fill-4 { 0%, 30.99% { visibility: hidden; opacity: 0; } 31.3% { visibility: visible; opacity: 1; } 35.99% { visibility: visible; opacity: 1; } 36.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes nd-val-4 { 0%, 36% { opacity: 0; } 38%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes nd-box-4 { 0%, 35.5% { border-color: var(--line); background-color: var(--surface); } 37% { border-color: var(--brand); background-color: var(--brand-soft); } 46%, 100% { border-color: var(--line); background-color: var(--surface); } }
@keyframes nd-consent-in { 0%, 47% { opacity: 0; transform: translateY(6px) scale(.96); } 49.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-queue-in { 0%, 54% { opacity: 0; transform: translateY(6px) scale(.96); } 56.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-urgent-in { 0%, 60% { opacity: 0; transform: translateY(6px) scale(.96); } 62.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes nd-bars { 0%, 8% { opacity: .3; } 10%, 46% { opacity: 1; } 50%, 100% { opacity: .3; } }
@keyframes ic-pill-1 { 0% { visibility: visible; opacity: 1; } 53.99% { visibility: visible; opacity: 1; } 54.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ic-pill-2 { 0%, 53.99% { visibility: hidden; opacity: 0; } 54.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes ic-c1-1 { 0% { visibility: visible; opacity: 1; } 11.99% { visibility: visible; opacity: 1; } 12.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ic-c1-2 { 0%, 11.99% { visibility: hidden; opacity: 0; } 12.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes ic-c2-1 { 0% { visibility: visible; opacity: 1; } 21.99% { visibility: visible; opacity: 1; } 22.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ic-c2-2 { 0%, 21.99% { visibility: hidden; opacity: 0; } 22.3% { visibility: visible; opacity: 1; } 39.99% { visibility: visible; opacity: 1; } 40.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ic-c2-3 { 0%, 39.99% { visibility: hidden; opacity: 0; } 40.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes ic-c2t-1 { 0% { visibility: visible; opacity: 1; } 39.99% { visibility: visible; opacity: 1; } 40.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ic-c2t-2 { 0%, 39.99% { visibility: hidden; opacity: 0; } 40.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes ic-c3-1 { 0% { visibility: visible; opacity: 1; } 49.99% { visibility: visible; opacity: 1; } 50.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ic-c3-2 { 0%, 49.99% { visibility: hidden; opacity: 0; } 50.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes ic-dim-1 { 0%, 4% { opacity: .45; } 5.5%, 100% { opacity: 1; } }
@keyframes ic-dim-2 { 0%, 14% { opacity: .45; } 15.5%, 100% { opacity: 1; } }
@keyframes ic-dim-3 { 0%, 42% { opacity: .45; } 43.5%, 100% { opacity: 1; } }
@keyframes ic-c2-row { 0%, 21.9% { border-color: var(--line); background-color: transparent; } 22.3%, 39.9% { border-color: #B26B00; background-color: var(--amber-soft); } 40.3%, 100% { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background-color: var(--ok-soft); } }
@keyframes ic-advice-in { 0%, 26% { opacity: 0; transform: translateX(-12px); } 28.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes ic-press { 0%, 34% { box-shadow: 0 0 0 0 transparent; transform: none; } 35.5% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 35%, transparent); transform: scale(.96); } 38%, 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }
@keyframes ic-send { 0%, 57% { background-color: var(--surface-2); color: var(--ink-2); } 59%, 100% { background-color: var(--brand-fill); color: var(--brand-ink); } }
@keyframes ic-callout-in { 0%, 30% { opacity: 0; transform: translateY(6px); } 32.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes ic-spin { to { transform: rotate(1turn); } }
@keyframes ps-type { 0%, 4% { clip-path: inset(0 100% 0 0); } 16%, 94% { clip-path: inset(0 0 0 0); } 98%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ps-status-1 { 0% { visibility: visible; opacity: 1; } 49.99% { visibility: visible; opacity: 1; } 50.3%, 100% { visibility: hidden; opacity: 0; } }
@keyframes ps-status-2 { 0%, 49.99% { visibility: hidden; opacity: 0; } 50.3% { visibility: visible; opacity: 1; } 100% { visibility: visible; opacity: 1; } }
@keyframes ps-in-1 { 0%, 20% { opacity: 0; transform: translateY(6px); } 22.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes ps-fill-1 { 0%, 21% { transform: scaleX(0); } 26%, 100% { transform: scaleX(1); } }
@keyframes ps-in-2 { 0%, 28% { opacity: 0; transform: translateY(6px); } 30.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes ps-fill-2 { 0%, 29% { transform: scaleX(0); } 34%, 100% { transform: scaleX(1); } }
@keyframes ps-in-3 { 0%, 36% { opacity: 0; transform: translateY(6px); } 38.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes ps-fill-3 { 0%, 37% { transform: scaleX(0); } 42%, 100% { transform: scaleX(1); } }
@keyframes ps-in-4 { 0%, 44% { opacity: 0; transform: translateY(6px); } 46.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes ps-fill-4 { 0%, 45% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes ps-tap { 0%, 57% { box-shadow: 0 0 0 0 transparent; } 58.5% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 35%, transparent); } 62%, 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes ps-added-in { 0%, 60% { opacity: 0; transform: scale(.8); } 62.5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }

/* ---------- Step-flow connector (round 10, item 11) ----------
   Round 16 (owner: "make the spacing less between these two"): the gutter no longer grows to fit the pill. It is a
   fixed, narrow column and a long pill wraps to two lines inside it; on phones the connector turns downward and the
   pill keeps one line beside it. While the stage is on screen and motion is
   allowed, the arrow's dashes flow toward the receiver, a packet rides the arrow, and the receiving screen (.pf-recv:
   the phone for "→", the office for "←", set at build time) blinks as it lands. A "Nothing sent yet" step (no direction)
   stays still: nothing is sent. Reduced motion: the static arrow and pill. */
.pf-packet-v { offset-path: path('M12,0 V64') !important; }
.pf-packet { fill: var(--brand-fill); offset-path: path('M0,31 L160,31'); offset-distance: 100%; offset-rotate: 0deg; opacity: 0; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--brand) 55%, transparent)); }
@media (prefers-reduced-motion: no-preference) {
  .pf-stage.rt-live .pf-link .pf-s:not(.pf-dir-none) .pf-dash { animation: pf-flow 900ms linear infinite; }
  .pf-stage.rt-live .pf-link .pf-dir-to-web .pf-dash { animation-name: pf-flow-rev; }
  .pf-stage.rt-live .pf-dir-to-web .pf-packet { animation-name: pf-packet-rev; }
  .pf-stage.rt-live .pf-packet { animation: pf-packet 2.4s var(--ease-in-out) infinite; }
  .pf-stage.rt-live .pf-recv { animation: pf-recv 2.4s ease-out infinite; }
  .pf-stage.rt-live .pf-link .pf-s:not(.pf-dir-none) .pf-tag { animation: pf-tag 2.4s ease-out infinite; }
}
@keyframes pf-flow { to { stroke-dashoffset: -22; } }
@keyframes pf-flow-rev { to { stroke-dashoffset: 22; } }
/* The packet fades out before it reaches the head (it never sits on the arrow), then the receiver blinks. */
@keyframes pf-packet { 0% { offset-distance: 2%; opacity: 0; } 8% { opacity: 1; } 62% { offset-distance: 80%; opacity: 1; } 70%, 100% { offset-distance: 86%; opacity: 0; } }
@keyframes pf-packet-rev { 0% { offset-distance: 98%; opacity: 0; } 8% { opacity: 1; } 62% { offset-distance: 20%; opacity: 1; } 70%, 100% { offset-distance: 14%; opacity: 0; } }
@keyframes pf-recv { 0%, 68% { box-shadow: inset 0 0 0 0 transparent; } 76% { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); } 94%, 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes pf-tag { 0%, 4% { transform: none; } 10% { transform: translateY(-2px); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand) 60%, transparent); } 20%, 100% { transform: none; box-shadow: none; } }

/* ---------- One arrowhead for every dashed connector (round 11, item 3; Base.astro #we-arrow) ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.we-arrow-head { fill: var(--brand); fill: context-stroke; stroke: none; } /* rounded by its own geometry: one solid fill, no translucent stroke overlap */

/* ---------- Service journey: one job, followed through the day (round 14) ----------
   The device is the hero (the technician's phone, or the office screen), the step's words are a caption beside it, a
   slim time rail sits under the caption, and the day card shows the same job in all four seats with the clock.
   journey.js sets ONE number, p, and from it --pf (the rail's fill, 0–1) and --now (the day card's playhead, 0–1).
   No JS: the captions are a plain list and the first screen shows. .is-live (JS): the stage. .is-pinned: the stage is
   sticky inside a tall track and the reader's scrolling drives the story. .is-auto: it plays. .is-step: reduced
   motion, a stepper. The marker on the rail is the active stop's own dot — its ring is that dot's box-shadow — so
   there is nothing separate to drift away from it. */
.sj { --sj-top: calc(var(--header-h) + 12px); }
.sj-caption { margin-top: clamp(20px, 2.4vw, 32px); }
/* round 16b: 36px, so the stage's frame (drawn 16px above the stage) starts 20px below the chips instead of touching them */
.sj .role-tabs { margin-bottom: 36px; }
.sj-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; grid-template-areas: "title" "dev" "rail" "caps" "day"; }
.sj-stage[hidden] { display: none; }
/* Round 16 (owner: "add some background here like a dots"): the stage is a framed panel on the site's dot grid, the
   same family as the walkthrough stages. Two pseudo-elements BEHIND the content, drawn outside the stage's own box
   (negative inset), so nothing in the layout moves: ::before is the frame, ::after the dots, which are strongest
   around the device and fade out toward the frame. Static: no motion to stop, nothing repaints while the stage is
   pinned. The panel keeps the band's own colour, so every text contrast is what it was. */
.sj-stage { position: relative; isolation: isolate; }
.sj-stage::before, .sj-stage::after { content: ""; position: absolute; z-index: -1; inset: -16px -8px -12px; border-radius: 28px; pointer-events: none; }
.sj-stage::before { border: 1px solid var(--line); }
/* The caption's words sit directly on these dots, so the dot is lighter here than on a walkthrough stage (9% ink, not
   16%): the smallest grey text keeps AA even where a glyph lands on a dot. */
.sj-stage::after { background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1.25px, transparent 1.65px); background-size: 18px 18px; background-position: 9px 9px; -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 45%, transparent 100%); }
@media (min-width: 720px) { .sj-stage::before, .sj-stage::after { inset: -16px -24px -12px; } }
@media (forced-colors: active) { .sj-stage::after { background-image: none; } }
/* a link to #role-<name> lands with the tabs (which sit just above the panel) still in view under the header */
.sj-stage { scroll-margin-top: 76px; }
.sj-title { grid-area: title; margin: 0; max-width: 22ch; font-size: clamp(1.625rem, 2.3vw, 2.375rem); line-height: 1.1; }
.sj-caps { grid-area: caps; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.sj-cap { display: grid; gap: 8px; align-content: start; }
.sj-cap h3 { font-size: var(--step-3); line-height: 1.15; }
.sj-cap > p:last-child { color: var(--ink-2); max-width: 44ch; }
.sj-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sj-meta time { font: 600 .9375rem/1 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sj-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-fill); color: var(--brand-ink); flex: none; }
.sj-icon .icon { width: 18px; height: 18px; }
.sj-rail, .sj-day { display: none; }

/* the device */
.sj-dev { grid-area: dev; display: grid; justify-items: center; min-width: 0; }
.sj-tilt { display: grid; justify-items: center; width: 100%; --px: 0; --py: 0; }
.sj-screens { display: grid; }
.sj-s { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms; }
.sj-s.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 360ms var(--ease-out) 90ms, transform 460ms var(--ease-out) 90ms, visibility 0s; }
.sj-phone { width: min(300px, 82vw); }
.sj-phone .phone-screen { aspect-ratio: 9 / 18.4; }
.sj-phone .sj-screens { position: absolute; inset: 0; }
.sj-phone .sj-s > .ui { position: absolute; inset: 0; overflow: hidden; padding: 15cqi 5cqi 6cqi; font-size: .9375rem; display: flex; flex-direction: column; gap: 11px; }
.sj-phone .sj-s > .ui > * { flex: none; }
/* the phone's action button, a notice and the chat sit at the bottom of the screen, like an app's; everything else fills from the top */
.sj-phone .sj-s > .ui > :last-child:is(.row, .ui-toast, :has(> .ui-bubble)) { margin-top: auto; }
.sj-phone .ui-field .ui-value { padding: 9px 11px; }
.sj-phone .ui-check, .sj-phone .ui-row { padding-block: 10px; }
.sj-phone .ui-btn { width: 100%; justify-content: center; padding: 11px 14px; font-size: .9375rem; }
.sj-web { width: min(560px, 100%); }
.sj-web .sj-s > .ui { padding: clamp(14px, 1.6vw, 22px); font-size: .9375rem; gap: 12px; }
/* the office screen is an app: a slim rail of the four seats (this one lit) beside the step's screen */
.sj-app { display: grid; grid-template-columns: minmax(0, 1fr); }
.sj-seats { display: none; }
@media (min-width: 720px) {
  .sj-app { grid-template-columns: 56px minmax(0, 1fr); min-height: 360px; }
  .sj-seats { display: grid; align-content: start; justify-items: center; gap: 8px; padding: 14px 0; border-right: 1px solid var(--line); background: var(--surface-2); }
  .sj-seats span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); }
  .sj-seats .icon { width: 18px; height: 18px; }
  .sj-seats .is-me { background: var(--brand-fill); color: var(--brand-ink); }
}
.ui-sec { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.ui-map-place { height: 104px; overflow: hidden; }
.ui-map-place .pin { left: 46%; top: 44%; }
.ui-map-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.ui-map-tag .icon { width: 14px; height: 14px; color: var(--brand); }
.sj-web .ui-map-place { height: 120px; }
.sj .ui-bubble .ui-photo { height: 96px; }

/* live (JS): the captions stack in one cell and swap; the rail and the day card appear */
.sj.is-live .sj-caps { gap: 0; }
.sj.is-live .sj-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out); }
.sj.is-live .sj-cap.is-on { opacity: 1; transform: none; transition-delay: 90ms; }
.sj.is-live .sj-rail { grid-area: rail; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; position: relative; max-width: 460px; width: 100%; }
.sj-stops { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.sj-stop { display: grid; grid-template-rows: 44px auto; justify-items: center; align-items: center; width: 48px; padding: 0 0 2px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font: 600 .8125rem/1 var(--font-mono); font-variant-numeric: tabular-nums; border-radius: 10px; }
.sj-stop time { transition: color 240ms; }
.sj-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 78%, var(--surface)); background: var(--surface); transition: background-color 240ms, border-color 240ms, box-shadow 240ms; }
.sj-stop:hover .sj-dot { border-color: var(--brand); }
.sj-stop.is-past .sj-dot, .sj-stop[aria-current] .sj-dot { background: var(--brand); border-color: var(--brand); }
.sj-stop[aria-current] .sj-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 24%, transparent); }
.sj-stop[aria-current] time, .sj-stop.is-past time { color: var(--ink); }
/* finished: every stop is filled and nothing is ringed */
.sj.is-done .sj-stop[aria-current] .sj-dot { box-shadow: none; }
/* the line runs from the first dot's centre to the last dot's centre (the stops are 48px wide, the dots sit 22px down) */
.sj-line { position: absolute; grid-column: 1; left: 24px; right: calc(24px + var(--sj-play-w, 0px)); top: 21px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 22%, var(--line)); overflow: hidden; }
.sj-fill { display: block; height: 100%; background: var(--brand); transform-origin: left center; transform: scaleX(var(--pf, 0)); }
.sj.is-step .sj-fill, .sj.is-paused .sj-fill { transition: transform 420ms var(--ease-out); }
.sj-play { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); place-items: center; cursor: pointer; }
.sj-play .icon { width: 18px; height: 18px; }
.sj-play .sj-i-play, .sj-play[aria-pressed="true"] .sj-i-pause { display: none; }
.sj-play[aria-pressed="true"] .sj-i-play { display: block; }
.sj.is-auto .sj-play { display: grid; }
.sj.is-live.is-auto .sj-rail { grid-template-columns: minmax(0, 1fr) 44px; --sj-play-w: 56px; }

/* the day card: the clock, and the same job in four seats — when each seat's steps happen, and where the clock is */
.sj.is-live .sj-day { grid-area: day; container-type: inline-size; display: grid; gap: clamp(16px, 2.2vw, 24px); padding: clamp(18px, 2vw, 26px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); width: 100%; max-width: 720px; }
/* round 15: a real panel. The clock and the job sit side by side, and the job drops under the clock as one block
   (never a mid-line wrap) when the panel is narrow. */
.sj-day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.sj-clock { font: 600 clamp(2.5rem, 3.4vw, 3.25rem)/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--ink); }
.sj-job { display: grid; gap: 3px; font-size: .9375rem; line-height: 1.25; color: var(--ink-2); }
.sj-job b { font: 600 1.0625rem/1.2 var(--font-mono); color: var(--ink); }
.sj-job span, .sj-job b { white-space: nowrap; }
/* each seat: its name, then its track across the whole panel, so the day's steps have room */
.sj-lanes { position: relative; display: grid; gap: clamp(12px, 1.4vw, 18px); --pad: 9px; }
.sj-lane { display: grid; gap: 9px; }
.sj-lane-name { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 4px 11px 4px 8px; border-radius: var(--r-chip); font-size: .9375rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color 240ms, color 240ms; position: relative; z-index: 1; background: var(--surface); /* the playhead passes behind the names */ }
.sj-lane-name .icon { width: 17px; height: 17px; }
.sj-lane.is-seat .sj-lane-name { color: var(--ink); background: var(--surface-2); }
.sj-lane-line { position: relative; height: 3px; border-radius: 2px; background: var(--line); margin: 14px var(--pad); }
/* --x is the dot's time of day along the track, 0–1, always its true time. Two steps minutes apart would sit on each
   other, so journey.js puts such a pair on two rows (--y: -1 above the line, 1 below), 16px apart for 14px dots. */
.sj-lane-line i { position: absolute; z-index: 1; left: calc(var(--x, 0) * 100%); top: calc(50% + var(--y, 0) * 8px); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--surface); border: 2px solid color-mix(in srgb, var(--ink-2) 55%, var(--line)); transition: background-color 240ms, border-color 240ms; }
.sj-lane.is-seat .sj-lane-line i { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.sj-lane-line i.is-lit { background: var(--ink-2); border-color: var(--ink-2); }
.sj-lane.is-seat .sj-lane-line i.is-lit { background: var(--brand); border-color: var(--brand); }
/* a step of the seat's day that is not this job: an open ring, never filled */
.sj-lane .sj-lane-line i.is-other, .sj-lane .sj-lane-line i.is-other.is-lit { background: var(--surface); border: 2px dotted color-mix(in srgb, var(--ink-2) 70%, var(--line)); }
.sj-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); left: calc(var(--pad) + (100% - 2 * var(--pad)) * var(--now, 0)); pointer-events: none; }
/* the axis: first and last label anchored to the track's ends; the middle one only where there is room for all three */
.sj-axis { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; column-gap: 12px; margin-inline: var(--pad, 9px); font: 500 .8125rem/1 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sj-axis span { white-space: nowrap; }
.sj-axis span:first-child { justify-self: start; } .sj-axis span:nth-child(2) { justify-self: center; } .sj-axis span:last-child { justify-self: end; grid-column: 3; }
@container (max-width: 190px) { .sj-axis span:nth-child(2) { display: none; } }

@media (min-width: 720px) and (max-width: 1023px) {
  .sj.is-live .sj-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "title title" "dev dev" "caps day" "rail day"; column-gap: 32px; align-items: start; }
}
@media (min-width: 1024px) {
  .sj-stage { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title dev" "caps dev"; column-gap: clamp(28px, 4vw, 72px); align-items: start; }
  .sj.is-live .sj-stage { grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: ". dev" "title dev" "caps dev" "rail dev" ". dev" "day day"; row-gap: 22px; }
  .sj-phone { width: 18.75rem; }
  .sj-web { width: clamp(440px, 36vw, 640px); }
  .sj-dev { align-self: center; }
}
@media (min-width: 1280px) {
  .sj.is-live .sj-stage { column-gap: clamp(24px, 3vw, 56px); grid-template-columns: minmax(270px, 1fr) auto minmax(290px, 1fr); grid-template-areas: ". dev day" "title dev day" "caps dev day" "rail dev day" ". dev day"; }
  .sj.is-live .sj-day { align-self: center; }
  /* office-screen roles: the screen is wider than the phone, so it gives up a little width and the caption column a
     little more, and the day panel keeps a real share (round 15: it had shrunk to ~300px here) */
  .sj.is-live .sj-stage[data-device="web"] { grid-template-columns: minmax(250px, .62fr) auto minmax(380px, 1fr); }
  .sj-stage[data-device="web"] .sj-web { width: clamp(450px, 31vw, 600px); }
  /* a short window: the call card is the tallest screen and has to fit the pinned stage */
  @media (max-height: 840px) { .sj.is-pinned .sj-web .sj-s > .ui { gap: 8px; padding: 12px 16px; } }
}
/* pinned: the stage holds still while the reader scrolls the track past it (5 steps of about half a screen each) */
.sj.is-pinned .sj-track { height: calc(360vh - var(--sj-top)); }
.sj.is-pinned .sj-pin { position: sticky; top: var(--sj-top); }
.sj.is-pinned .sj-stage { min-height: calc(100vh - var(--sj-top) - 116px); align-content: center; }
.sj.is-pinned .sj-phone .phone-screen { aspect-ratio: auto; height: clamp(31.25rem, calc(100vh - var(--sj-top) - 128px), 37.5rem); }
.sj.is-pinned .sj-web { max-height: calc(100vh - var(--sj-top) - 100px); }
/* the call card's voice bars are left out here: the pinned stage has to fit a 760px-tall window */
.sj-web .ci-heard .bars { display: none; }

/* the float: the device tilts toward the pointer (site.js's shared pointerDepth) and drifts a little */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .sj-dev { perspective: 1600px; }
  .sj-tilt { transform: rotateY(calc(var(--px) * 6deg)) rotateX(calc(var(--py) * -4deg)); transition: transform 700ms var(--ease-out); }
  .sj-tilt.is-pointing { transition-duration: 160ms; }
  .sj.is-live .sj-tilt > * { animation: sj-drift 9s ease-in-out infinite alternate; }
  .sj .phone-device, .sj .sj-web { box-shadow: 0 40px 70px -40px #0B141780, 0 14px 30px -20px #0B141766; }
}
@keyframes sj-drift { from { translate: 0 4px; } to { translate: 0 -6px; } }
/* scroll-driven where the browser has it (Chrome 115+, Safari 26; not Firefox stable): the device settles into place
   as it scrolls in, and — pinned — the rail fills on the track's own view timeline, off the main thread. Elsewhere
   the device simply sits there and journey.js's --pf fills the rail. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sj.is-live .sj-dev { animation: sj-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .sj.is-pinned .sj-track { view-timeline: --sj block; view-timeline-inset: var(--sj-top) 0px; }
    .sj.is-pinned .sj-fill { animation: sj-fill-5 linear both; animation-timeline: --sj; animation-range: contain 0% contain 100%; }
    .sj.is-pinned [data-n="4"] .sj-fill { animation-name: sj-fill-4; }
  }
}
/* translate only: a scale would render the device's 12px labels under 12px on the way in */
@keyframes sj-rise { from { transform: translateY(56px); } to { transform: none; } }
@keyframes sj-fill-5 { from { transform: scaleX(0); } 80%, to { transform: scaleX(1); } }
@keyframes sj-fill-4 { from { transform: scaleX(0); } 75%, to { transform: scaleX(1); } }
/* a reader's tab change, as a same-document view transition: the device morphs between seats, the tabs stay live */
.sj .sj-dev { view-transition-name: sj-device; }
.sj .role-tabs { view-transition-name: sj-tabs; }
::view-transition-old(sj-tabs) { display: none; }
::view-transition-new(sj-tabs) { animation: none; }
::view-transition-group(sj-device) { animation-duration: 380ms; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .sj-s, .sj-cap, .sj-fill, .role-ind, .sj-dot { transition: none !important; } }

/* ---------- Managed maintenance: the loop, for real (round 11, item 6) ----------
   The track is ONE rounded rectangle (.ml-track's border) from the centre of Monitor to the centre of Service: its top
   edge is the rail above the cards, its sides pass behind Monitor and Service, its bottom edge is the return. Cards sit
   above it, so what shows is the rail, the drop below Service, the return and the rise into Monitor — which ends in the
   site's one arrowhead. A "PM" token rides the rectangle (offset-path: inset()) and each card lights as it passes;
   on phones the cards stack with a "back to Monitor" end cap. Amber stays the accent; text is AA on the dark band. */
.ml { position: relative; display: grid; gap: 14px; }
.ml-cards { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; display: grid; gap: 40px; grid-template-columns: minmax(0, 420px); justify-content: center; }
.ml-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--amber) 65%, var(--line)); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 14%, transparent); transition: transform 300ms var(--ease-out); }
.ml-card > .icon { width: 28px; height: 28px; color: var(--brand); }
.ml-card strong { font: 700 var(--step-3)/1.05 var(--font-display); }
.ml-text { font-size: .9375rem; color: var(--ink-2); }
.ml-live { display: grid; gap: 6px; margin-top: 6px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; }
.ml-meter { position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink-2) 25%, transparent); }
.ml-meter i { position: absolute; inset: 0; border-radius: 4px; background: var(--amber); transform-origin: left center; }
.ml-meter b { position: absolute; right: 0; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.ml-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); }
.ml-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 22%, transparent); font-weight: 650; }
.ml-toggle span { position: relative; z-index: 1; padding: 3px 0; text-align: center; color: var(--ink); }
.ml-toggle i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px #0003; }
.ml-tick { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.ml-tick::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #0B1417; font-size: .6875rem; font-weight: 800; }
.ml-live .chip { justify-self: start; }
/* phones: the 40×24 box, turned to point down, fills the 40px gap between two cards (its centre 20px below the card) */
.ml-arrow { position: absolute; left: 50%; top: calc(100% + 1.5px + 8px); width: 40px; height: 24px; transform: translateX(-50%) rotate(90deg); overflow: visible; }
.ml-arrow path { fill: none; stroke: var(--amber); stroke-width: 1.667; stroke-linecap: round; } /* 1.667 units × 1.5 = the track's 2.5px */
.ml-track { display: none; }
.ml-cap { justify-self: center; margin: 4px 0 0; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--amber); color: var(--ink); font-size: .8125rem; }
@media (min-width: 900px) {
  .ml { padding: 26px 0 92px; }
  .ml-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; justify-content: stretch; }
  .ml-arrow { left: calc(100% + 1.5px); top: 50%; transform: translateY(-50%); } /* from this card's edge across the 40px gap to the next card's edge */
  .ml-cap { display: none; }
  /* Round 16c: the return line carries no arrowhead (the loop's other lines have none); the track's own left edge runs up behind the Monitor card */
  .ml-track { display: block; position: absolute; z-index: 1; top: 8px; bottom: 34px; left: calc((100% - 120px) / 8); right: calc((100% - 120px) / 8); border: 2.5px solid var(--amber); border-radius: 26px; }
  .ml-cycle { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--amber); color: var(--ink); font-size: .8125rem; white-space: nowrap; }
  .ml-token { position: absolute; z-index: 1; display: grid; place-items: center; width: 34px; height: 22px; border-radius: 999px; background: var(--amber); color: #0B1417; font-size: .75rem; font-weight: 800; offset-path: inset(0 round 26px); offset-distance: 0%; offset-rotate: 0deg; opacity: 0; }
}
@media (forced-colors: active) { .ml-track, .ml-card { border-color: CanvasText; } .ml-token { display: none; } }
/* Round 15: the lit card no longer lifts 4px. Nothing in the loop moves by itself any more, and each connector's head
   stays on its card's edge while that card is lit. */
/* Round 15: both stories on this page START AT STEP 1. site.js arms them (.rt-armed) as soon as it runs, which holds
   every animation paused on its first frame; they run only while the story is on screen (.rt-live) and hold their
   place when it leaves. Before this they began one second from the END of the loop (a negative delay), so a reader
   arrived to the last step lit, watched the dot run back across the rail, and then saw it start. */
@media (prefers-reduced-motion: no-preference) { .pr.rt-live *, .ml.rt-live * { animation-play-state: running !important; } }
@media (prefers-reduced-motion: no-preference) {
  .ml.rt-armed .ml-c1 { animation: ml-lit-1 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c2 { animation: ml-lit-2 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c3 { animation: ml-lit-3 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c4 { animation: ml-lit-4 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-meter i { animation: ml-meter 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-due { animation: ml-due 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-toggle i { animation: ml-toggle 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-win { animation: ml-win 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c3 .ml-t1 { animation: ml-t3-1 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c3 .ml-t2 { animation: ml-t3-2 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c3 .ml-t3 { animation: ml-t3-3 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c4 .ml-t1 { animation: ml-t4-1 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-c4 .ml-t2 { animation: ml-t4-2 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-next { animation: ml-next 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-token { animation: ml-token 12s linear 0s infinite both paused; }
  .ml.rt-armed .ml-cycle { animation: ml-cycle 12s linear 0s infinite both paused; }
}
@keyframes ml-lit-1 { 0%, 10.9% { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent), 0 18px 34px -22px #000000B3; } 12.9%, 96% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } 98%, 100% { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent), 0 18px 34px -22px #000000B3; } }
@keyframes ml-lit-2 { 0%, 11.4% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } 12.9%, 22.7% { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent), 0 18px 34px -22px #000000B3; } 24.7%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } }
@keyframes ml-lit-3 { 0%, 23.2% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } 24.7%, 34.6% { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent), 0 18px 34px -22px #000000B3; } 36.6%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } }
@keyframes ml-lit-4 { 0%, 35.1% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } 36.6%, 59% { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent), 0 18px 34px -22px #000000B3; } 61%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } }
@keyframes ml-meter { 0% { transform: scaleX(.15); } 9%, 95% { transform: scaleX(1); } 98%, 100% { transform: scaleX(.15); } }
@keyframes ml-due { 0%, 9% { opacity: 0; transform: translateY(4px) scale(.94); } 11%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-toggle { 0%, 13% { transform: translateX(100%); } 17%, 95% { transform: none; } 98%, 100% { transform: translateX(100%); } }
@keyframes ml-win { 0%, 18% { opacity: 0; transform: translateY(4px) scale(.94); } 20%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-t3-1 { 0%, 25% { opacity: 0; transform: translateY(4px) scale(.94); } 27%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-t3-2 { 0%, 28% { opacity: 0; transform: translateY(4px) scale(.94); } 30%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-t3-3 { 0%, 31% { opacity: 0; transform: translateY(4px) scale(.94); } 33%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-t4-1 { 0%, 37% { opacity: 0; transform: translateY(4px) scale(.94); } 39%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-t4-2 { 0%, 40% { opacity: 0; transform: translateY(4px) scale(.94); } 42%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-next { 0%, 44% { opacity: 0; transform: translateY(4px) scale(.94); } 46%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ml-token { 0% { offset-distance: 0%; opacity: 1; } 99% { offset-distance: 99%; opacity: 1; } 100% { offset-distance: 100%; opacity: 1; } }
@keyframes ml-cycle { 0%, 62% { box-shadow: 0 0 0 0 transparent; } 68% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--amber) 30%, transparent); } 76%, 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Managed maintenance: one truck's program over time (round 11, item 7) ----------
   Not item 6's cycle: a DATED rail (Oct 2 · Nov 18 · Nov 20 · Jan 14) over four cards, with a dot moving card to card,
   and each card's mini-mock played in turn — enrolled, a trigger crosses its line, a Service Order is drafted and a
   person confirms it, the per-truck bill posts and the next cycle is set. One 16s loop while on screen; the cards tilt
   toward the pointer (site.js's shared handler). Phones: the rail runs down the left. Reduced motion: every card
   finished. Fictional data (Pioneer Freight, unit 214). */
.pr { display: grid; gap: 14px; grid-template-columns: 26px minmax(0, 1fr); }
.pr-rail { position: relative; grid-row: 1; grid-column: 1; }
.pr-line { position: absolute; left: 50%; top: 6%; bottom: 6%; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--ink-2) 28%, transparent); }
.pr-line i { position: absolute; inset: 0; background: var(--brand-fill); transform-origin: top; }
.pr-tick { position: absolute; left: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; }
.pr-tick b { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-fill); }
.pr-tick span { display: none; }
.pr-k1 { top: 12.5%; } .pr-k2 { top: 37.5%; } .pr-k3 { top: 62.5%; } .pr-k4 { top: 87.5%; }
.pr-dot { position: absolute; left: 50%; top: 87.5%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--brand-fill); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-fill) 25%, transparent); }
.pr-cards { grid-row: 1; grid-column: 2; display: grid; gap: 16px; perspective: 1200px; }
.pr-card { transform: rotateY(calc(var(--px, 0) * 6deg)) rotateX(calc(var(--py, 0) * -5deg)); transition: transform 600ms var(--ease-out), border-color 300ms, box-shadow 300ms; }
.pr-card.is-pointing { transform: rotateY(calc(var(--px, 0) * 6deg)) rotateX(calc(var(--py, 0) * -5deg)) translateY(-4px); transition-duration: 160ms; }
.pr-mock { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; }
.pr-mock .chip { justify-self: start; }
/* Round 15: nothing in a mini screen may be cut. Its rows can shrink with the card (min-width: 0), and every label
   wraps instead of running past the edge: a chip becomes a soft-cornered two-line chip, a ticked row wraps beside its
   tick, a two-part row drops its second part to the next line. No overflow is hidden. */
.pr-mock, .ml-live { min-width: 0; }
.pr-mock > *, .ml-live > * { min-width: 0; max-width: 100%; }
.pr-mock .chip, .ml-live .chip { white-space: normal; overflow-wrap: anywhere; border-radius: 12px; align-items: baseline; text-align: left; }
.pr-mock .chip::before, .ml-live .chip::before { transform: translateY(-1px); }
.pr-tick-row, .ml-tick { align-items: flex-start; overflow-wrap: anywhere; }
.pr-tick-row::before, .ml-tick::before { flex: none; margin-top: 1px; }
.pr-unit, .pr-bill, .ml-row { flex-wrap: wrap; }
.pr-unit > span:first-child, .pr-bill > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.pr-unit, .pr-bill { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.pr-meter { display: grid; grid-template-columns: minmax(0, 92px) minmax(24px, 1fr); align-items: center; gap: 8px; color: var(--ink); }
.pr-bar { position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink-2) 22%, transparent); }
.pr-bar i { position: absolute; inset: 0; border-radius: 4px; background: var(--brand-fill); transform-origin: left center; }
.pr-bar b { position: absolute; right: 8%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.pr-m1 .pr-bar i { transform: scaleX(.6); } .pr-m3 .pr-bar i { transform: scaleX(.45); }
.pr-m2 .pr-bar i { transform: scaleX(1); background: var(--amber); }
.pr-tick-row { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.pr-tick-row::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .6875rem; font-weight: 800; }
:root[data-theme="dark"] .pr-tick-row::before { color: #0B1417; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pr-tick-row::before { color: #0B1417; } }
@media (min-width: 900px) {
  .pr { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pr-rail { grid-row: 1; grid-column: 1; height: 54px; }
  .pr-line { left: 12.5%; right: 12.5%; top: 18px; bottom: auto; width: auto; height: 2px; margin: 0; }
  .pr-line i { transform-origin: left center; }
  .pr-tick { top: 18px; transform: translate(-50%, -6px); gap: 4px; }
  .pr-tick span { display: block; font-size: .8125rem; color: var(--ink-2); }
  .pr-k1 { left: 12.5%; } .pr-k2 { left: 37.5%; } .pr-k3 { left: 62.5%; } .pr-k4 { left: 87.5%; }
  .pr-dot { top: 18px; left: 87.5%; margin: -10px 0 0 -10px; }
  .pr-cards { grid-row: 2; grid-column: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .pr.rt-armed .pr-c1 { animation: pr-lit-1 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c2 { animation: pr-lit-2 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c3 { animation: pr-lit-3 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c4 { animation: pr-lit-4 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-dot { animation: pr-dot-v 16s var(--ease-in-out) 0s infinite both paused; }
  .pr.rt-armed .pr-line i { animation: pr-line-v 16s var(--ease-in-out) 0s infinite both paused; }
  @media (min-width: 900px) { .pr.rt-armed .pr-dot { animation-name: pr-dot-h; } .pr.rt-armed .pr-line i { animation-name: pr-line-h; } }
  .pr.rt-armed .pr-enrolled { animation: pr-enrolled 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-terms { animation: pr-terms 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-m1 .pr-bar i { animation: pr-m1 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-m3 .pr-bar i { animation: pr-m3 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-m2 .pr-bar i { animation: pr-m2 16s linear 0s infinite both paused, pr-m2c 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-due { animation: pr-due 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c2 .pr-icon .icon { animation: pr-bell 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-so { animation: pr-so 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c3 .pr-t1 { animation: pr-t1 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c3 .pr-t2 { animation: pr-t2 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-confirm { animation: pr-confirm 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-bill { animation: pr-bill 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-next { animation: pr-next 16s linear 0s infinite both paused; }
  .pr.rt-armed .pr-c4 .pr-icon .icon { animation: pr-spin 16s linear 0s infinite both paused; }
}
@keyframes pr-lit-1 { 0%, 24% { border-color: var(--brand); box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--brand) 70%, transparent); } 25.5%, 100% { border-color: var(--line); box-shadow: var(--shadow-card); } }
@keyframes pr-lit-2 { 0%, 24.5% { border-color: var(--line); box-shadow: var(--shadow-card); } 26%, 49% { border-color: var(--brand); box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--brand) 70%, transparent); } 50.5%, 100% { border-color: var(--line); box-shadow: var(--shadow-card); } }
@keyframes pr-lit-3 { 0%, 49.5% { border-color: var(--line); box-shadow: var(--shadow-card); } 51%, 74% { border-color: var(--brand); box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--brand) 70%, transparent); } 75.5%, 100% { border-color: var(--line); box-shadow: var(--shadow-card); } }
@keyframes pr-lit-4 { 0%, 74.5% { border-color: var(--line); box-shadow: var(--shadow-card); } 76%, 99% { border-color: var(--brand); box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--brand) 70%, transparent); } 100.5%, 100% { border-color: var(--line); box-shadow: var(--shadow-card); } }
@keyframes pr-dot-h { 0%, 22% { left: 12.5%; opacity: 1; } 28%, 47% { left: 37.5%; } 53%, 72% { left: 62.5%; } 78%, 96% { left: 87.5%; opacity: 1; } 97.5% { left: 87.5%; opacity: 0; } 97.6% { left: 12.5%; opacity: 0; } 100% { left: 12.5%; opacity: 1; } }
@keyframes pr-dot-v { 0%, 22% { top: 12.5%; opacity: 1; } 28%, 47% { top: 37.5%; } 53%, 72% { top: 62.5%; } 78%, 96% { top: 87.5%; opacity: 1; } 97.5% { top: 87.5%; opacity: 0; } 97.6% { top: 12.5%; opacity: 0; } 100% { top: 12.5%; opacity: 1; } }
@keyframes pr-line-h { 0%, 22% { transform: scaleX(0); opacity: 1; } 28%, 47% { transform: scaleX(.333); } 53%, 72% { transform: scaleX(.667); } 78%, 96% { transform: scaleX(1); opacity: 1; } 97.5% { transform: scaleX(1); opacity: 0; } 97.6% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(0); opacity: 1; } }
@keyframes pr-line-v { 0%, 22% { transform: scaleY(0); opacity: 1; } 28%, 47% { transform: scaleY(.333); } 53%, 72% { transform: scaleY(.667); } 78%, 96% { transform: scaleY(1); opacity: 1; } 97.5% { transform: scaleY(1); opacity: 0; } 97.6% { transform: scaleY(0); opacity: 0; } 100% { transform: scaleY(0); opacity: 1; } }
@keyframes pr-enrolled { 0%, 4% { opacity: 0; transform: scale(.6); } 6.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-terms { 0%, 10% { opacity: 0; transform: translateX(-14px); } 12.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-m1 { 0%, 28% { transform: scaleX(.05); } 36%, 95% { transform: scaleX(0.6); } 98%, 100% { transform: scaleX(.05); } }
@keyframes pr-m2 { 0%, 30% { transform: scaleX(.05); } 38%, 95% { transform: scaleX(1); } 98%, 100% { transform: scaleX(.05); } }
@keyframes pr-m3 { 0%, 32% { transform: scaleX(.05); } 40%, 95% { transform: scaleX(0.45); } 98%, 100% { transform: scaleX(.05); } }
@keyframes pr-m2c { 0%, 37% { background-color: var(--brand-fill); } 39%, 95% { background-color: var(--amber); } 98%, 100% { background-color: var(--brand-fill); } }
@keyframes pr-due { 0%, 41% { opacity: 0; transform: translateY(4px) scale(.92); } 43.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-bell { 0%, 41% { transform: none; } 42%, 44%, 46% { transform: rotate(-14deg); } 43%, 45% { transform: rotate(14deg); } 47%, 100% { transform: none; } }
@keyframes pr-so { 0%, 53% { opacity: 0; transform: translateY(4px) scale(.92); } 55.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-t1 { 0%, 57% { opacity: 0; transform: translateY(4px) scale(.92); } 59.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-t2 { 0%, 61% { opacity: 0; transform: translateY(4px) scale(.92); } 63.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-confirm { 0%, 66% { opacity: 0; transform: translateY(4px) scale(.92); } 68.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-bill { 0%, 78% { opacity: 0; transform: translateY(-8px); } 80.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-next { 0%, 84% { opacity: 0; transform: translateY(8px); } 86.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pr-spin { 0%, 86% { transform: none; } 91%, 100% { transform: rotate(1turn); } }

/* ---------- Cockpit (round 11, item 8): the example as live HTML (CockpitMock.astro) ----------
   Every text in the mock is ≥ 12px at scale 1, and the camera never scales below 1, so nothing shrinks under 12px. */
.cx { container-type: inline-size; display: grid; gap: 14px; padding: 16px; background: var(--bg); color: var(--ink); font-size: .875rem; }
.cx-sec { display: grid; gap: 12px; padding: 14px; border-radius: 14px; transition: opacity 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.cx-crumb { margin: 0; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.cx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cx h4 { font: 600 1.25rem/1.2 var(--font-display); margin: 0; }
.cx h5 { font: 600 1rem/1.2 var(--font-display); margin: 0; }
.cx-head p, .cx-sub { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.cx-period { display: grid; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .8125rem; white-space: nowrap; }
.cx-period small { font-size: .8125rem; color: var(--ink-2); }
.cx-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-gm { grid-column: 1 / -1; display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--amber) 10%, var(--surface))); border: 1px solid var(--line); }
.cx-gm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cx-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.cx-attn { padding: 2px 8px; border-radius: 6px; font-size: .8125rem; font-weight: 600; background: var(--amber-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); }
.cx-big { font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 Georgia, 'Times New Roman', serif; }
.cx-kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cx-kpi b { font: 700 1.3rem/1.2 var(--font-text); }
.cx-dot { width: 7px; height: 7px; border-radius: 50%; } .cx-dot.amber { background: var(--amber); } .cx-dot.green { background: var(--ok); }
.cx-pair { display: grid; gap: 10px; }
.cx-card { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cx-legend { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .8125rem; color: var(--ink-2); }
.cx-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; } .cx-key.blue { background: #4F7FE8; } .cx-key.amber { background: #E3A13B; } .cx-key.green { background: #45B57F; }
.cx-chart { width: 100%; height: auto; overflow: visible; }
/* Axis labels are HTML, placed at the gridlines, so they stay 13px whatever the chart's width. */
.cx-plot { position: relative; padding: 0 6px 22px 46px; }
.cx-plot .cx-chart { display: block; height: 150px; }
.cx-y i, .cx-x i { position: absolute; font: 13px var(--font-text); font-style: normal; color: var(--ink-2); white-space: nowrap; }
.cx-y i { left: 0; transform: translateY(-50%); }
.cx-y1 { top: 140px; } .cx-y2 { top: 108px; } .cx-y3 { top: 76px; } .cx-y4 { top: 44px; } .cx-y5 { top: 12px; }
.cx-x { display: block; position: relative; height: 0; }
.cx-x i { top: 4px; transform: translateX(-50%); }
.cx-plot .cx-x i:nth-child(1) { left: 0; transform: none; } .cx-plot .cx-x i:nth-child(2) { left: 32.8%; } .cx-plot .cx-x i:nth-child(3) { left: 65%; } .cx-plot .cx-x i:nth-child(4) { left: auto; right: 0; transform: none; }
.cx-x-bars { height: 20px; } .cx-x-bars i:nth-child(1) { left: 20.5%; } .cx-x-bars i:nth-child(2) { left: 42%; } .cx-x-bars i:nth-child(3) { left: 63.5%; } .cx-x-bars i:nth-child(4) { left: 85%; }
.cx-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cx-ax { font: 13px var(--font-text); fill: var(--ink-2); }
.cx-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cx-line.cx-revenue { stroke: #4F7FE8; } .cx-line.cx-target { stroke: #E3A13B; } .cx-gmline { stroke: #45B57F; }
.cx-pt { fill: var(--surface); stroke-width: 2; } .cx-pt.cx-revenue { stroke: #4F7FE8; } .cx-pt.cx-target { stroke: #E3A13B; }
.cx-bar.blue { fill: #4F7FE8; } .cx-bar.amber { fill: #E3A13B; }
.cx-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.cx-table th { text-align: left; padding: 6px 4px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.cx-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.cx-table td:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8125rem; }
.cx-table th:not(:first-child), .cx-table td:not(:first-child) { text-align: right; }
.cx-total td { font-weight: 700; }
.cx-ok { color: #16693F; font-weight: 700; } :root[data-theme="dark"] .cx-ok { color: var(--ok); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cx-ok { color: var(--ok); } } .cx-warn { color: #8A5A00; font-weight: 700; }
:root[data-theme="dark"] .cx-warn { color: #FFB81C; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cx-warn { color: #FFB81C; } }
.cx-r2 td, .cx-hl td { background: var(--amber-soft); }
.cx-accounts { margin: 4px 0 0; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .8125rem; }
.cx-accounts span { color: var(--ink-2); }
.cx-line-kpi { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 1.05rem; }
.cx-note { margin: 0; font-size: .875rem; color: var(--ink-2); } .cx-note b { color: var(--ink); }
.cx-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-todo { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-frame); }
.cx-from { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.cx-from p { margin: 0; } .cx-from b { color: var(--brand); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-chips span { display: grid; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.cx-chips small, .cx-field small { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cx-field { margin: 0; display: grid; gap: 2px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.cx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-actions { margin: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.cx-create { padding: 6px 16px; border-radius: 8px; background: var(--brand-fill); color: var(--brand-ink); font-weight: 650; }
.cx-foot { margin: 0; justify-self: end; font-size: .8125rem; color: var(--ink-2); }
/* the mock lays out by ITS OWN width (container queries), wherever it sits */
.cx-sec, .cx-pair, .cx-tiles { min-width: 0; }
@container (min-width: 600px) { .cx-tiles { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); } .cx-gm { grid-column: 1; grid-row: 1 / span 2; } .cx-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cx-pair { grid-template-columns: 1fr 1fr; } }
@container (min-width: 1000px) { .cx-hero .cx-tiles { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } .cx-hero .cx-gm { grid-row: 1; } }
@container (max-width: 599px) { .cx-three { grid-template-columns: 1fr; } .cx-head { flex-wrap: wrap; }
  /* a four-column table keeps three columns on narrow screens; the fourth drops onto its own line in each row */
  .cx-wide:has(th:nth-child(4)) thead, .cx-wide:has(th:nth-child(4)) tbody { display: grid; }
  .cx-wide:has(th:nth-child(4)) tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .cx-wide:has(th:nth-child(4)) :is(td, th) { border-bottom: 0; }
  .cx-wide:has(th:nth-child(4)) :is(td, th):nth-child(4) { grid-column: 1 / -1; text-align: left; padding-top: 0; color: var(--ink-2); }
  .cx-wide:has(th:nth-child(4)) th:nth-child(4) { display: none; } }
/* the hero: the copy, then the live example at full width */
.cx-hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.cx-hero-grid .hero-copy { max-width: 900px; }
/* The hero: one-shot entrance each time it comes on screen */
.cx-hero-wrap { position: relative; }
.cx-follow { position: absolute; right: -8px; bottom: -16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 650; text-decoration: none; box-shadow: var(--shadow-frame); }
.cx-follow:hover { background: var(--brand-fill); color: var(--brand-ink); }
@media (max-width: 899px) { .cx-follow { position: static; margin-top: 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .rt-live .cx-hero .cx-line { stroke-dasharray: 1; animation: cx-draw 1600ms var(--ease-out) 300ms both; }
  .rt-live .cx-hero .cx-pt { animation: cx-pop 400ms var(--ease-out) 1800ms both; }
  .rt-live .cx-hero .cx-table tbody tr { animation: cx-row 500ms var(--ease-out) both; }
  .rt-live .cx-hero .cx-r1 { animation-delay: 700ms; } .rt-live .cx-hero .cx-r2 { animation-delay: 900ms; } .rt-live .cx-hero .cx-r3 { animation-delay: 1100ms; }
  .rt-live .cx-hero .cx-accounts { animation: cx-light 900ms var(--ease-out) 1900ms both; }
  .rt-live .cx-hero .cx-attn { animation: cx-pulse 1200ms var(--ease-out) 1500ms both; }
}
@keyframes cx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cx-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes cx-row { from { opacity: 0; transform: translateX(-12px); } }
@keyframes cx-light { 0% { box-shadow: 0 0 0 0 transparent; background-color: var(--surface-2); } 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); background-color: var(--brand-soft); } 100% { box-shadow: 0 0 0 0 transparent; background-color: var(--surface-2); } }
@keyframes cx-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--amber) 35%, transparent); } }

/* ---------- Cockpit walkthrough: one mock, a camera (round 11, item 8) ---------- */
.cxt { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.cxt > *, .cxt-main > * { min-width: 0; }
.cxt-nav { position: relative; }
.cxt-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.cxt-steps li { scroll-snap-align: start; flex: none; }
.cxt-step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9375rem/1.2 var(--font-text); cursor: pointer; text-align: left; }
.cxt-step[aria-current="step"] { background: var(--upgrade-soft); border-color: var(--upgrade); }
.cxt-letter { font-weight: 700; color: var(--upgrade); }
.cxt-desc { display: none; }
.cxt-rail { display: none; }
.cxt-heads { display: grid; }
.cxt-h { grid-area: 1 / 1; margin: 0 0 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 360ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms; }
.cxt-h.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 80ms, 80ms, 0s; }
.cxt-view { position: relative; overflow: hidden; height: clamp(380px, 52vw, 560px); }
.cxt-cam { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, 1)); }
.is-auto .cxt-cam, .cxt.is-stopped .cxt-cam { transition: transform 900ms var(--ease-in-out); }
.cxt .cx [data-region] { opacity: .4; }
.cxt .cx [data-region].is-focus { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--upgrade) 55%, transparent), 0 18px 40px -24px #0B141799; }
.cxt[data-at="overview"] .cx-attn { animation: cx-pulse 1400ms var(--ease-out) 600ms both; }
.cxt-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--upgrade); color: #fff; font-size: .8125rem; opacity: 0; transform: translateY(-6px); transition: opacity 300ms, transform 300ms; }
.cxt-tag.is-on { opacity: 1; transform: none; }
:root[data-theme="dark"] .cxt-tag { color: #0B1417; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cxt-tag { color: #0B1417; } }
.cxt-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cxt-ctrl .icon-btn { flex: none; width: 44px; height: 44px; }
.cxt-ctrl p { margin: 0 0 0 auto; }
.cxt-notes { display: grid; margin-top: 16px; }
.cxt-note { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 360ms var(--ease-out), visibility 0s linear 360ms; }
.cxt-note.is-on { visibility: visible; opacity: 1; transition-delay: 60ms, 0s; }
.cxt-f3d .f3d-stage { --tilt-y: 4deg; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .cxt-f3d .f3d-stage { transform: rotateY(calc(-3deg + var(--px) * 3deg)) rotateX(calc(2deg - var(--py) * 2deg)); } }
@media (min-width: 1024px) {
  .cxt { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: start; }
  .cxt-nav { position: sticky; top: calc(var(--header-h) + 24px); padding-left: 22px; }
  .cxt-rail { display: block; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--upgrade) 22%, transparent); }
  .cxt-rail i { position: absolute; inset: 0; border-radius: 2px; background: var(--upgrade); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform 600ms var(--ease-out); }
  .cxt-steps { flex-direction: column; overflow: visible; }
  .cxt-step { width: 100%; display: grid; grid-template-columns: 22px 1fr; border-radius: 14px; padding: 10px 12px; }
  .cxt-desc { display: block; grid-column: 2; max-height: 0; overflow: hidden; font: 500 .875rem/1.35 var(--font-text); color: var(--ink-2); transition: max-height 400ms var(--ease-out); }
  .cxt-step[aria-current="step"] .cxt-desc { max-height: 4.2em; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .cxt-cam, .cxt-h, .cxt-note, .cxt-desc, .cxt-rail i { transition: none !important; } }

/* ---------- "AI drafts. People decide." — each promise holding (round 11, item 9) ----------
   Static (reduced motion, no JS, off screen): every card at its final GUARDED state — booked by a dispatcher, the review
   cleared and sent by a person, the AI's bubble blocked and the draft in the morning queue. The loop (15s, in turn)
   keeps the order that makes each promise true: tick → unlock → Booked; Cleared → cursor → press → sent; a bubble that
   only ever holds typing dots is crossed out as it forms. */
.gr-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 12px; transition: transform 600ms var(--ease-out), box-shadow 300ms; transform: rotateY(calc(var(--px, 0) * 5deg)) rotateX(calc(var(--py, 0) * -4deg)); }
.gr-card.is-pointing { transition-duration: 160ms; box-shadow: 0 20px 40px -26px #0B141799; }
.guardrails:has(.gr-card) { perspective: 1200px; }
.gr-scene { grid-column: 1 / -1; position: relative; display: grid; gap: 8px; min-height: 156px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink); }
.gr-swap { display: inline-grid; } .gr-swap > * { grid-area: 1 / 1; } .gr-swap > :not(:last-child) { visibility: hidden; }
.gr-label { justify-self: start; padding: 3px 10px; border-radius: 999px; font-weight: 700; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
/* 1 · booking */
.gr-book { grid-template-columns: 1fr auto 1fr; align-items: center; }
.gr-cell { display: grid; gap: 4px; justify-items: center; }
.gr-cell small, .gr-gate small { font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.gr-ai { padding: 1px 8px; border-radius: 999px; background: var(--upgrade); color: var(--bg); font-weight: 700; font-size: .75rem; }
.gr-draft, .gr-booked { padding: 6px 8px; border-radius: 8px; border: 1px dashed var(--ink-2); background: var(--surface); font-weight: 600; white-space: nowrap; }
.gr-booked { border: 1.5px solid var(--ok); }
.gr-slot { min-width: 0; }
.gr-gate { display: grid; justify-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--surface); }
.gr-gate .icon { width: 18px; height: 18px; color: var(--brand); }
.gr-person { display: inline-flex; align-items: center; gap: 3px; } .gr-person .icon { color: var(--ink); }
.gr-tick { color: var(--ok); font-weight: 800; }
.gr-book .gr-label { grid-column: 1 / -1; justify-self: center; }
/* 2 · sending */
.gr-inv { justify-self: start; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.gr-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gr-ck { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; } .gr-ck::before { content: "✓"; color: var(--ok); font-weight: 800; }
.gr-btnrow { position: relative; justify-self: start; display: inline-flex; align-items: center; }
.gr-sendbtn { padding: 6px 16px; border-radius: 999px; background: var(--brand-fill); color: var(--brand-ink); font-weight: 700; }
.gr-cursor { position: absolute; right: -12px; bottom: -14px; color: var(--ink); } .gr-cursor .icon { width: 18px; height: 18px; }
/* 3 · no AI texts */
.gr-call { justify-self: start; padding: 4px 8px; border-radius: 8px; background: #121b3a; color: #EEF2F1; }
.gr-bubble { position: relative; justify-self: end; display: inline-flex; gap: 4px; align-items: center; padding: 10px 14px; border-radius: 14px 14px 4px 14px; border: 1.5px dashed var(--stop); background: var(--stop-soft); opacity: .55; }
.gr-bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.gr-x { position: absolute; inset: -4px; background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--stop) calc(50% - 1.5px), var(--stop) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.gr-text .gr-label { justify-self: end; background: var(--stop-soft); border-color: color-mix(in srgb, var(--stop) 45%, transparent); }
.gr-queue { justify-self: start; }
/* the headline: the first line types, the second lands bolder */
.gr-l1, .gr-l2 { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .gr.rt-live .gr-l1 { animation: gr-type 900ms steps(10, end) both; }
  .gr.rt-live .gr-l2 { animation: gr-land 700ms var(--ease-spring) 900ms both; }
  .gr.rt-live .gr-draft { animation: gr-draft 15s linear -14s infinite both; }
  .gr.rt-live .gr-lock { animation: gr-shake 15s linear -14s infinite both; }
  .gr.rt-live .gr-lock > :nth-child(1) { animation: gr-lock1 15s linear -14s infinite both; }
  .gr.rt-live .gr-lock > :nth-child(2) { animation: gr-lock2 15s linear -14s infinite both; }
  .gr.rt-live .gr-person { animation: gr-person 15s linear -14s infinite both; }
  .gr.rt-live .gr-k1 { animation: gr-k1 15s linear -14s infinite both; }
  .gr.rt-live .gr-k2 { animation: gr-k2 15s linear -14s infinite both; }
  .gr.rt-live .gr-booked { animation: gr-booked 15s linear -14s infinite both; }
  .gr.rt-live .gr-l-book { animation: gr-lbook 15s linear -14s infinite both; }
  .gr.rt-live .gr-ck1 { animation: gr-ck1 15s linear -14s infinite both; }
  .gr.rt-live .gr-ck2 { animation: gr-ck2 15s linear -14s infinite both; }
  .gr.rt-live .gr-review > :nth-child(1) { animation: gr-rev1 15s linear -14s infinite both; }
  .gr.rt-live .gr-review > :nth-child(2) { animation: gr-rev2 15s linear -14s infinite both; }
  .gr.rt-live .gr-sendbtn { animation: gr-btn 15s linear -14s infinite both; }
  .gr.rt-live .gr-cursor { animation: gr-cursor 15s linear -14s infinite both; }
  .gr.rt-live .gr-inv { animation: gr-inv 15s linear -14s infinite both; }
  .gr.rt-live .gr-l-send { animation: gr-lsend 15s linear -14s infinite both; }
  .gr.rt-live .gr-bubble { animation: gr-bubble 15s linear -14s infinite both; }
  .gr.rt-live .gr-x { animation: gr-x 15s linear -14s infinite both; }
  .gr.rt-live .gr-l-text { animation: gr-ltext 15s linear -14s infinite both; }
  .gr.rt-live .gr-queue { animation: gr-queue 15s linear -14s infinite both; }
}
@keyframes gr-draft { 0% { opacity: 0; transform: none; } 2%, 4% { opacity: 1; transform: none; } 10%, 20% { opacity: 1; transform: translateX(26px); } 22%, 100% { opacity: .3; transform: none; } }
@keyframes gr-shake { 0%, 10%, 13%, 100% { transform: none; } 11% { transform: translateX(-3px); } 12% { transform: translateX(3px); } }
@keyframes gr-lock1 { 0%, -0.01% { visibility: hidden; } 0%, 19.99% { visibility: visible; } 20%, 100% { visibility: hidden; } }
@keyframes gr-lock2 { 0%, 19.99% { visibility: hidden; } 20%, 96.99% { visibility: visible; } 97%, 100% { visibility: hidden; } }
@keyframes gr-person { 0%, 13% { opacity: 0; transform: translateY(4px); } 14.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-k1 { 0%, 15% { opacity: 0; transform: translateY(4px); } 16.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-k2 { 0%, 17% { opacity: 0; transform: translateY(4px); } 18.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-booked { 0%, 22% { opacity: 0; transform: translateX(-16px) scale(.9); } 23.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateX(-16px) scale(.9); } }
@keyframes gr-lbook { 0%, 24% { opacity: 0; transform: translateY(4px); } 25.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-ck1 { 0%, 38% { opacity: 0; transform: translateY(4px); } 39.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-ck2 { 0%, 41% { opacity: 0; transform: translateY(4px); } 42.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-rev1 { 0%, -0.01% { visibility: hidden; } 0%, 43.99% { visibility: visible; } 44%, 100% { visibility: hidden; } }
@keyframes gr-rev2 { 0%, 43.99% { visibility: hidden; } 44%, 96.99% { visibility: visible; } 97%, 100% { visibility: hidden; } }
@keyframes gr-btn { 0%, 45.9% { background-color: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 0 transparent; transform: none; } 46.5%, 51.9% { background-color: var(--brand-fill); color: var(--brand-ink); transform: none; } 52.5% { background-color: var(--brand-fill); color: var(--brand-ink); transform: scale(.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 30%, transparent); } 54%, 96% { background-color: var(--brand-fill); color: var(--brand-ink); transform: none; box-shadow: 0 0 0 0 transparent; } 97.5%, 100% { background-color: var(--surface); color: var(--ink-2); } }
@keyframes gr-cursor { 0%, 47.9% { opacity: 0; transform: translate(30px, 20px); } 48.5% { opacity: 1; transform: translate(30px, 20px); } 51%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; } }
@keyframes gr-inv { 0%, 54% { opacity: 1; transform: none; } 57%, 96% { opacity: .35; transform: translateX(16px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes gr-lsend { 0%, 56% { opacity: 0; transform: translateY(4px); } 57.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-bubble { 0%, 69.9% { opacity: 0; transform: scale(.7); } 71%, 79% { opacity: 1; transform: none; } 83%, 96% { opacity: .55; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes gr-x { 0%, 72.9% { opacity: 0; transform: scale(.6); } 74%, 96% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes gr-ltext { 0%, 74% { opacity: 0; transform: translateY(4px); } 75.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-queue { 0%, 84% { opacity: 0; transform: translateY(4px); } 85.5%, 96% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes gr-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gr-land { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.gr-l2 { font-weight: 800; }
/* A tab switch swaps panels of different heights; with scroll anchoring the browser re-picks an anchor inside the
   hidden panel and jumps the page. The tabs hold still instead. */
[data-tabs] { overflow-anchor: none; }
/* Round 11 contrast trims (AA on their own backgrounds, measured): a deeper green tick and violet letter in light, a
   lighter blue label in dark. */
.gr-tick, .gr-ck::before { color: #16693F; }
.cxt-letter { color: #5338C2; }
:root[data-theme="dark"] .gr-tick, :root[data-theme="dark"] .gr-ck::before { color: var(--ok); }
:root[data-theme="dark"] .cxt-letter { color: var(--upgrade); }
:root[data-theme="dark"] .cx-from b { color: var(--we-blue-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gr-tick, :root:not([data-theme="light"]) .gr-ck::before { color: var(--ok); }
  :root:not([data-theme="light"]) .cxt-letter { color: var(--upgrade); }
  :root:not([data-theme="light"]) .cx-from b { color: var(--we-blue-300); }
}

/* ---------- Legal documents in V3's look (round 12) ----------
   The four legal pages under V3 (LegalV3.astro): the same words as the frozen v2.0 pages, in V3's type and tokens.
   A page-hero intro, then a ~70ch reading column with an "On this page" list beside it (sticky from 1024px) or above
   it (narrow screens). Tokens only, so light and dark both follow the theme. No motion. */
.lg3 { padding-bottom: clamp(56px, 8vw, 112px); }
.lg3-intro { padding-block: clamp(32px, 5vw, 80px) clamp(24px, 3.5vw, 48px); margin-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.lg3-intro .page-intro { display: grid; gap: 14px; max-width: 900px; }
.lg3-intro .eyebrow { color: var(--brand); }
.lg3-intro h1 { font-size: clamp(2.5rem, 5.2vw, 5rem); font-weight: 700; line-height: 1.05; max-width: 18ch; margin-bottom: .25em; } /* as .page-hero .h1: Oswald overhangs a 1.05 line box */
.lg3-intro .lead { max-width: 56ch; }
.lg3-grid { display: grid; gap: 32px; align-items: start; }
.lg3-grid > * { min-width: 0; }
@media (min-width: 1024px) { .lg3-grid { grid-template-columns: minmax(220px, 280px) minmax(0, 70ch); gap: clamp(48px, 5vw, 104px); } }

.lg3-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
/* Round 13: a closed <details> below 1024px (one 44px row); pinned open from 1024px by site.js (data-pinned). */
.lg3-toc-box { padding: 6px; }
.lg3-toc-box[data-pinned] { padding: 6px 12px 12px; }
@media (min-width: 1024px) { .lg3-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; } }
.lg3-toc-sum { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.lg3-toc-sum::-webkit-details-marker { display: none; }
.lg3-toc-sum:hover { background: var(--surface-2); }
.lg3-toc-sum::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.lg3-toc-box[open]:not(.is-closing) > .lg3-toc-sum::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .lg3-toc-sum::after { transition: none; } }
.lg3-toc-box ol { margin-top: 4px; }
.lg3-toc-title { font: 600 .875rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.lg3-toc-count { font: 500 .875rem/1.2 var(--font-text); color: var(--ink-2); }
/* Pinned (from 1024px, with JS): the summary is only the list's title — not a control, not in the tab order. */
/* It keeps the 44px row of the control it is below 1024px, so the touch-target floor holds at every width. */
.lg3-toc-box[data-pinned] > .lg3-toc-sum { padding: 0 10px; cursor: default; pointer-events: none; }
.lg3-toc-box[data-pinned] > .lg3-toc-sum::after, .lg3-toc-box[data-pinned] .lg3-toc-count { display: none; }
.lg3-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lg3; }
.lg3-toc li { counter-increment: lg3; }
.lg3-toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.3; }
.lg3-toc a::before { content: counter(lg3, decimal-leading-zero); font: 500 .8125rem/1 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }
.lg3-toc a:hover { background: var(--surface-2); color: var(--brand); }

.lg3-doc { max-width: 70ch; font-size: var(--step-0); line-height: 1.7; }
.lg3-doc article > * + * { margin-top: 1em; }
.lg3-doc .small-label { display: inline-block; font: 500 .875rem/1.4 var(--font-mono); color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-chip); padding: 6px 14px; }
.lg3-doc h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; margin-top: 2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.lg3-doc h3 { font-size: var(--step-2); line-height: 1.25; margin-top: 1.6em; }
.lg3-doc h2 + *, .lg3-doc h3 + * { margin-top: .7em; }
.lg3-doc strong { font-weight: 600; color: var(--ink); }
.lg3-doc ul, .lg3-doc ol { margin-block: 0; padding-left: 1.3em; }
.lg3-doc li + li { margin-top: .5em; }
.lg3-doc li::marker { color: var(--brand); }
.lg3-doc a { overflow-wrap: anywhere; }
/* The SMS page's quoted scripts: a framed card, like a message, not a left-accent callout (round 6 rule). */
.lg3-doc blockquote { margin-inline: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.lg3-doc blockquote > * + * { margin-top: .6em; }
.lg3-doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lg3-doc th, .lg3-doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lg3-doc thead th { font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); }
.lg3-doc tbody tr:last-child > * { border-bottom: 0; }
.lg3-doc td:first-child { font-weight: 600; width: 38%; }
@media print { .lg3-toc { display: none; } .lg3-grid { display: block; } }
