/* tokens.css */
/* Design tokens. Every colour, size and font on the site comes from here.
   The blue family is the product's own: a deep instrument navy with a cobalt accent. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/plex-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plex-mono-500.woff2') format('woff2'); }

:root {
  /* Navy — the brand */
  --navy-950: #060e21;
  --navy-900: #0a1733;
  --navy-850: #0e1f45;
  --navy-800: #122859;
  --navy-700: #173f8f;
  --navy-600: #1f56bd;
  --navy-500: #3d76dc;
  --navy-300: #94b6ec;
  --navy-100: #e1eafa;

  /* Neutrals — blue-grey */
  --ink: #0d1626;         /* headings and body on light */
  --ink-2: #364254;       /* secondary text */
  --ink-3: #5d6878;       /* captions, meta */
  --line: #d5dce6;
  --line-2: #e6ebf1;
  --surface: #ffffff;
  --surface-2: #f3f6f9;
  --surface-3: #e9eef4;

  /* On dark */
  --on-dark: #f3f6fb;
  --on-dark-2: #b8c4d6;
  --on-dark-3: #8292aa;
  --line-dark: rgba(173, 196, 230, 0.16);
  --line-dark-2: rgba(173, 196, 230, 0.09);

  /* Accents: teal = measurement and data; orange = field action and caution */
  --teal-500: #19b3a6;
  --teal-600: #0e9488;
  --teal-700: #0b766d;    /* teal text on light (AA) */
  --teal-100: #d7f2ef;
  --orange-500: #f08a3c;
  --orange-600: #e2711d;
  --orange-700: #a94f0c;  /* orange text on light (AA) */
  --orange-100: #fdecdc;
  --green-700: #1c7a4f;
  --green-100: #dcf1e5;

  /* Type */
  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;

  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;
  --fs-mono-label: 0.75rem;

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --section-y: clamp(72px, 9vw, 136px);
  --header-h: 68px;

  /* Shape — crisp, not pill-shaped */
  --radius: 3px;
  --radius-lg: 4px;

  --shadow-1: 0 1px 2px rgba(13, 22, 38, 0.06), 0 1px 1px rgba(13, 22, 38, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(8, 19, 42, 0.28), 0 2px 6px rgba(8, 19, 42, 0.08);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: 0 0 0 3px rgba(61, 118, 220, 0.45);
}

/* base.css */
/* Reset, type, layout primitives. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
::selection { background: var(--navy-100); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; color: inherit; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
code, kbd, samp, .mono { font-family: var(--font-mono); font-size: 0.92em; font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
/* Tinted and mid-page dark sections fade in and out of the page instead of starting with a hard edge. */
.section--tint { background: linear-gradient(180deg, var(--surface) 0, var(--surface-2) 160px, var(--surface-2) calc(100% - 160px), var(--surface) 100%); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--deep { background: var(--navy-950); color: var(--on-dark); }
.section--fade { background: linear-gradient(180deg, var(--surface) 0, #c9d4e3 90px, #16233d 210px, var(--navy-950) 290px, var(--navy-950) calc(100% - 290px), #16233d calc(100% - 210px), #c9d4e3 calc(100% - 90px), var(--surface) 100%); padding-block: calc(var(--section-y) + 200px); }
.section--rule { /* kept for markup compatibility; sections no longer draw a rule */ }
.section--dark a:not(.btn), .section--deep a:not(.btn) { color: var(--on-dark); }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--text-right > :first-child { order: 2; }
@media (max-width: 960px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .split--text-right > :first-child { order: 0; }
}

.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-sm { --stack: 0.5rem; }
.stack-lg { --stack: 1.5rem; }

/* ---------- type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-mono-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .section--deep .eyebrow, .on-dark .eyebrow { color: var(--teal-500); }
.eyebrow--plain::before { display: none; }

.display { font-size: var(--fs-display); letter-spacing: -0.03em; line-height: 1.04; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.section--dark .lede, .section--deep .lede, .on-dark .lede { color: var(--on-dark-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); }
.section--dark .muted, .section--deep .muted { color: var(--on-dark-3); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > * + * { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head--row > * + * { margin-top: 0; }

.value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* components.css */
/* Shared components: buttons, status, header, footer, panels, tables, forms. */

/* ---------- buttons */
.btn {
  --btn-bg: var(--navy-700); --btn-fg: #fff; --btn-bd: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: var(--radius); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); color: var(--btn-fg); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--line); }
.btn--secondary:hover { --btn-bg: var(--surface-2); --btn-fg: var(--navy-800); --btn-bd: var(--navy-300); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--navy-100); --btn-bd: var(--navy-100); --btn-fg: var(--navy-950); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(232, 240, 255, 0.32); }
.btn--outline-light:hover { --btn-bg: rgba(232, 240, 255, 0.08); --btn-bd: rgba(232, 240, 255, 0.6); --btn-fg: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy-700);
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.section--dark .link-arrow, .section--deep .link-arrow, .on-dark .link-arrow { color: var(--on-dark); }

/* ---------- status chips */
.status {
  --st: var(--ink-3); --st-bg: var(--surface-2);
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 9px;
  background: var(--st-bg); color: var(--st); border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status--ok { --st: var(--green-700); --st-bg: var(--green-100); }
.status--data { --st: var(--teal-700); --st-bg: var(--teal-100); }
.status--warn { --st: var(--orange-700); --st-bg: var(--orange-100); }
.status--plain { --st: var(--ink-2); --st-bg: var(--surface-3); }
.status--outline { --st: var(--ink-2); --st-bg: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.status--outline::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.on-dark .status, .section--dark .status, .section--deep .status { --st-bg: rgba(255, 255, 255, 0.06); }
.on-dark .status--ok, .section--dark .status--ok, .section--deep .status--ok { --st: #6fd6a2; }
.on-dark .status--data, .section--dark .status--data, .section--deep .status--data { --st: var(--teal-500); }
.on-dark .status--warn, .section--dark .status--warn, .section--deep .status--warn { --st: var(--orange-500); }
.on-dark .status--plain, .section--dark .status--plain, .section--deep .status--plain { --st: var(--on-dark-2); }

.basis { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.basis--provisional, .basis--tbd { color: var(--orange-700); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand__sub { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.nav { display: flex; align-items: center; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded='true'] { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current='page'], .nav__item--current > .nav__trigger { color: var(--navy-700); }
.nav__trigger svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav__trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 340px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__panel[data-open] { opacity: 1; visibility: visible; transform: none; }
.nav__panel a { display: block; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nav__panel a:hover { background: var(--surface-2); }
.nav__panel a[aria-current='page'] { background: var(--surface-2); }
.nav__panel strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.nav__panel span { display: block; color: var(--ink-3); font-size: 0.875rem; line-height: 1.45; margin-top: 2px; }
.nav__actions { display: flex; gap: 10px; margin-left: 14px; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  /* A backdrop-filter would make the header the containing block of the fixed menu. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; margin: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav[data-open] { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-2); }
  .nav__link, .nav__trigger { width: 100%; height: 56px; justify-content: space-between; font-size: 1.0625rem; color: var(--ink); padding: 0 4px; }
  .nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded='true'] { background: none; }
  .nav__panel { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__panel[data-open] { display: block; }
  .nav__panel a { padding: 10px 4px; }
  .nav__actions { margin: 24px 0 0; flex-direction: column; }
  .nav__actions .btn { width: 100%; min-height: 50px; }
  body[data-nav-open] { overflow: hidden; }
}

/* ---------- footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding-block: 72px 32px; font-size: var(--fs-small); }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__sub { color: var(--on-dark-3); }
.footer__brand p { margin-top: 18px; max-width: 34ch; color: var(--on-dark-3); }
.footer__col h2 { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 16px; }
.footer__col li { list-style: none; }
.footer__col li + li { margin-top: 10px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; color: var(--on-dark-3); font-size: var(--fs-micro); }
.footer__bottom p { margin: 0; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.social a:hover { border-color: var(--on-dark-3); text-decoration: none; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* ---------- page hero (inner pages) */
.page-hero { position: relative; background: linear-gradient(180deg, var(--navy-950) 0, var(--navy-950) calc(100% - 200px), #16233d calc(100% - 120px), #c9d4e3 calc(100% - 40px), var(--surface) 100%); color: var(--on-dark); padding-block: clamp(64px, 8vw, 112px) calc(clamp(56px, 7vw, 96px) + 150px); overflow: hidden; overflow: clip; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line-dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2)); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2)); }
.page-hero .crumbs + .eyebrow { margin-top: 32px; }
.page-hero h1 { max-width: 20ch; margin-top: 18px; }
.page-hero .lede { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 28px; color: var(--on-dark-3); font-family: var(--font-mono); font-size: 0.8125rem; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.panel--tint { background: var(--surface-2); border-color: var(--line-2); }
.panel--dark { background: var(--navy-850); border-color: var(--line-dark); color: var(--on-dark); }
.panel h3 + p, .panel h3 + ul { margin-top: 10px; }
.panel p { color: var(--ink-2); }
.panel--dark p { color: var(--on-dark-2); }
.panel__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--teal-700); display: block; margin-bottom: 18px; }
.section--dark .panel__num, .section--deep .panel__num, .panel--dark .panel__num { color: var(--teal-500); }

.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1.5px; background: var(--teal-600); }
.section--dark .ticks li, .section--deep .ticks li, .panel--dark .ticks li { color: var(--on-dark-2); }

/* Frame with drawing-style corner ticks, for figures. */
.frame { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 2px; }
.frame::before, .frame::after { content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--navy-600); border-style: solid; pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.frame--dark { border-color: var(--line-dark); background: var(--navy-900); }
.frame--dark::before, .frame--dark::after { border-color: var(--teal-500); }

figure { margin: 0; }
figcaption { margin-top: 12px; color: var(--ink-3); font-size: var(--fs-micro); line-height: 1.5; }
figcaption .mono { font-size: 0.75rem; letter-spacing: 0.04em; }
.section--dark figcaption, .section--deep figcaption { color: var(--on-dark-3); }

/* ---------- callout */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px; border-left: 3px solid var(--orange-600); background: var(--orange-100); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-size: var(--fs-small); }
.callout svg { width: 18px; height: 18px; color: var(--orange-700); margin-top: 2px; }
.callout--info { border-left-color: var(--navy-600); background: var(--navy-100); }
.callout--info svg { color: var(--navy-700); }
.callout p { color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* ---------- spec / data tables */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec-table caption { text-align: left; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-700); padding: 0 0 12px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table th { width: 30%; font-weight: 500; color: var(--ink-2); }
.spec-table td { color: var(--ink); }
.spec-table td.spec-table__basis { width: 1%; padding-right: 0; text-align: right; }
@media (max-width: 640px) {
  .spec-table th, .spec-table td { display: block; width: auto; padding: 0; border: 0; }
  .spec-table tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .spec-table tr:last-child { border-bottom: 1px solid var(--line); }
  .spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
  .spec-table td { margin-top: 4px; }
  .spec-table td.spec-table__basis { text-align: left; margin-top: 6px; }
}

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: var(--fs-small); }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--ink-3); padding-right: 24px; }
.kv dd { font-family: var(--font-mono); font-size: 0.875rem; text-align: right; color: var(--ink); }

/* ---------- status board */
.board { border-top: 1px solid var(--line); }
.board__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 170px minmax(0, 2fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.board__row h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.board__row p { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 760px) { .board__row { grid-template-columns: 1fr; gap: 8px; } }
.board--compact .board__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0; }
.board--compact .board__row p { grid-column: 1 / -1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

/* ---------- timeline */
.timeline { list-style: none; position: relative; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline time { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--teal-700); padding-top: 2px; }
.timeline p { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA band */
.cta-band { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px 300px at 85% 10%, rgba(25, 179, 166, 0.10), transparent 70%),
  linear-gradient(var(--line-dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta-options { display: grid; gap: 12px; }
.cta-option { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); text-decoration: none; color: var(--on-dark); background: rgba(255,255,255,0.02); transition: border-color .15s, background-color .15s; }
.cta-option:hover { border-color: rgba(173, 196, 230, 0.45); background: rgba(255,255,255,0.05); color: #fff; }
.cta-option strong { font-size: 1.0625rem; }
.cta-option span { grid-column: 1; color: var(--on-dark-3); font-size: var(--fs-small); }
.cta-option::after { content: '→'; grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; color: var(--teal-500); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- prose (articles) */
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); color: var(--ink); margin-top: 2.2em; }
.prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); }

/* ---------- media slot (image now, video later) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy-950); border-radius: var(--radius-lg); overflow: hidden; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { background: var(--navy-950) center / cover no-repeat; color: #fff; display: flex; align-items: center; justify-content: center; }
.video button span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(8, 19, 42, 0.8); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); font-weight: 600; }

/* ---------- reveal on scroll (only when JS has opted in and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* blocks.css */
/* Larger shared blocks: workflow rail, device OLED, app mock, drawing sample, hole section. */

/* ---------- workflow rail */
.flow { position: relative; --node: 52px; --gap: clamp(16px, 2.2vw, 28px); }
.flow__zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); align-items: center; margin-bottom: 26px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.flow__zone { display: flex; align-items: center; gap: 12px; }
.flow__zone::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.35; }
.flow__zone--field { grid-column: 1 / 3; color: var(--orange-700); }
.flow__zone--office { grid-column: 3 / 6; color: var(--navy-700); }
.flow__handoff { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-2); background: var(--surface); letter-spacing: 0.1em; }
.flow__handoff svg { width: 14px; height: 14px; }
.flow__body { position: relative; }
.flow__track { position: absolute; left: calc(var(--node) / 2); right: calc((100% - 4 * var(--gap)) / 5 - var(--node) / 2); top: calc(var(--node) / 2 - 1px); height: 2px; background: linear-gradient(90deg, var(--orange-600) 0 37.5%, var(--navy-600) 37.5% 100%); opacity: 0.4; }
.flow__pulse { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 4px rgba(14, 148, 136, 0.2); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .flow__pulse { animation: flow-pulse 7s var(--ease) infinite; } }
@keyframes flow-pulse { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.flow__steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); position: relative; }
.flow__step { display: flex; flex-direction: column; }
.flow__node { display: flex; width: var(--node); height: var(--node); align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--navy-600); color: var(--navy-700); position: relative; z-index: 1; flex: none; }
.section--tint .flow__node, .section--tint .flow__handoff { background: var(--surface-2); }
.flow__step--field .flow__node { border-color: var(--orange-600); color: var(--orange-700); }
.flow__node svg { width: 22px; height: 22px; }
.flow__num { display: block; margin-top: 18px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.08em; }
.flow__step h3 { margin-top: 6px; font-size: 1.125rem; }
.flow__step p { margin: 8px 0 16px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.55; }
.flow__artifact { display: block; margin-top: auto; padding: 10px 12px; background: var(--navy-950); color: #cfe3ff; border-radius: var(--radius); font-size: 0.6875rem; line-height: 1.65; letter-spacing: 0.02em; overflow: hidden; }
.flow__artifact span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow__artifact span:first-child { color: var(--teal-500); }
@media (max-width: 960px) {
  .flow__zones { display: none; }
  .flow__track { left: calc(var(--node) / 2 - 1px); right: auto; top: calc(var(--node) / 2); bottom: 40px; width: 2px; height: auto; background: linear-gradient(180deg, var(--orange-600) 0 36%, var(--navy-600) 40% 100%); }
  .flow__pulse { display: none; }
  .flow__steps { grid-template-columns: 1fr; gap: 32px; }
  .flow__step { display: grid; grid-template-columns: var(--node) 1fr; column-gap: 20px; align-content: start; }
  .flow__step > :not(.flow__node) { grid-column: 2; }
  .flow__node { grid-row: 1 / span 4; }
  .flow__num { margin-top: 2px; }
  .flow__artifact { margin-top: 0; }
}

/* ---------- device OLED */
.oled-fig { display: inline-block; }
.oled { display: inline-block; padding: 14px; background: #10141b; border-radius: 6px; box-shadow: inset 0 0 0 1px #2a313c, 0 10px 30px -10px rgba(0,0,0,.6); }
.oled__screen { width: 256px; height: 128px; padding: 10px 12px; background: #02050a; border-radius: 2px; display: flex; flex-direction: column; justify-content: center; gap: 2px; font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: #d9f3ff; text-shadow: 0 0 6px rgba(140, 210, 255, 0.35); letter-spacing: 0.02em; }
.oled__line { white-space: pre; padding: 0 4px; }
.oled__line.is-sel { background: #d9f3ff; color: #02050a; text-shadow: none; }
.oled__line.is-head { color: #ffd88a; }
.oled-fig figcaption { max-width: 284px; }

/* ---------- app mock (Percolation Manager, representative) */
.appmock-fig { container-type: inline-size; }
.appmock { --u: clamp(7.5px, 1.32cqi, 12.5px); font-size: var(--u); background: #f4f6f8; border: 1px solid #c9d2de; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-2); color: #333; font-family: var(--font-sans); text-align: left; }
.appmock__bar { display: flex; align-items: center; gap: 0.6em; height: 2.6em; padding: 0 1em; background: #e6eaf0; border-bottom: 1px solid #d4dbe4; }
.appmock__bar i { width: 0.9em; height: 0.9em; border-radius: 50%; background: #c3ccd8; }
.appmock__bar span { margin-left: 1em; font-size: 0.95em; color: #6a7686; }
.appmock__head { display: flex; align-items: center; gap: 2.2em; padding: 1.1em 1.8em; background: #fff; border-bottom: 1px solid #e3e7ed; }
.appmock__brand { display: flex; align-items: center; gap: 0.8em; font-weight: 600; letter-spacing: 0.12em; color: var(--navy-700); font-size: 0.95em; white-space: nowrap; }
.appmock__brand b { width: 2.2em; height: 2.2em; border-radius: 3px; background: url('/assets/img/favicon.svg') center / cover; }
.appmock__tabs { list-style: none; display: flex; gap: 1.6em; margin: 0 0 0 auto; font-size: 0.95em; color: #888; white-space: nowrap; }
.appmock__tabs li { display: flex; align-items: center; gap: 0.5em; }
.appmock__tabs em { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #e3e7ed; color: #777; font-style: normal; font-size: 0.85em; }
.appmock__tabs .is-done em { background: var(--teal-600); color: #fff; }
.appmock__tabs .is-on { color: var(--navy-700); font-weight: 600; }
.appmock__tabs .is-on em { background: var(--navy-700); color: #fff; }
.appmock__body { padding: 1.8em; min-height: 31em; }
.appmock__title { font-size: 2em; font-weight: 600; color: #222; letter-spacing: -0.01em; }
.appmock__lede { margin-top: 0.4em; color: #777; font-size: 1.05em; }
.appmock__notice { margin-top: 1.2em; padding: 0.9em 1.2em; background: #fff8f0; border-left: 3px solid var(--orange-600); font-size: 0.95em; color: #555; }
.appmock__notice b { display: block; color: var(--orange-700); letter-spacing: 0.08em; font-size: 0.9em; margin-bottom: 0.2em; }
.appmock__card { margin-top: 1.2em; background: #fff; border: 1px solid #e3e7ed; border-radius: 3px; padding: 1.2em 1.4em; }
.appmock__cardhead { display: flex; align-items: center; gap: 0.8em; padding-bottom: 0.9em; border-bottom: 1px solid #eef1f4; }
.appmock__cardhead b { font-size: 1.25em; color: #555; }
.appmock__cardhead em { margin-left: auto; font-style: normal; color: #999; }
.appmock__check { display: inline-flex; width: 1.4em; height: 1.4em; align-items: center; justify-content: center; background: var(--navy-700); color: #fff; border-radius: 2px; font-size: 0.8em; }
.appmock__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9em; margin-top: 0.9em; }
.appmock__fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appmock__fields label { font-size: 0.82em; letter-spacing: 0.08em; color: #666; font-weight: 600; }
.appmock__fields span { display: block; margin-top: 0.35em; padding: 0.55em 0.7em; border: 1px solid #dcdcdc; border-radius: 2px; font-size: 1.15em; letter-spacing: 0; font-weight: 400; color: #333; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appmock__fields span.is-calc { color: var(--navy-700); background: #f2f6fb; }
.appmock__table { width: 100%; margin-top: 1em; border-collapse: collapse; font-family: var(--font-mono); font-size: 1.02em; }
.appmock__table th { text-align: left; font-family: var(--font-sans); font-weight: 600; font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase; color: #777; padding: 0.4em 0.6em; border-bottom: 1px solid #e3e7ed; }
.appmock__table td { padding: 0.35em 0.6em; border-bottom: 1px solid #f0f2f5; color: #333; }
.appmock__table tr.is-typed td:nth-child(2) { background: #fff4e5; color: var(--orange-700); font-weight: 500; }
.appmock__table small { margin-left: 0.6em; font-size: 0.7em; letter-spacing: 0.08em; color: var(--orange-700); }
.appmock__table tr.is-flag td { background: #fff8f0; }
.appmock__table tr.is-flag td:last-child { color: var(--orange-700); font-weight: 500; }
.appmock__buttons { display: flex; gap: 0.8em; flex-wrap: wrap; margin-top: 1.4em; }
.appmock__buttons span { padding: 0.7em 1.2em; border: 1px solid #ccd3dc; border-radius: 2px; font-size: 0.88em; font-weight: 600; letter-spacing: 0.08em; color: #555; background: #fff; }
.appmock__buttons .is-primary { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.appmock__buttons .is-unlocked { border-color: var(--teal-600); color: var(--teal-700); }
.appmock__row { display: grid; grid-template-columns: 1.6em 1.3fr 1.6fr auto; gap: 0.8em; align-items: center; padding: 0.7em 0; border-bottom: 1px solid #f0f2f5; font-size: 1.05em; }
.appmock__row:last-child { border-bottom: 0; }
.appmock__row span { color: #888; }
.appmock__row em { font-style: normal; color: var(--navy-700); font-weight: 600; }
.appmock__ok { display: inline-flex; width: 1.4em; height: 1.4em; align-items: center; justify-content: center; background: var(--teal-600); color: #fff !important; border-radius: 50%; font-size: 0.8em; }
.appmock__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2em; }
.appmock__label { font-size: 0.85em; font-weight: 600; letter-spacing: 0.1em; color: var(--navy-700); }
.appmock__kv { display: grid; grid-template-columns: 1fr auto; margin: 0.6em 0 0; font-size: 1.05em; }
.appmock__kv dt, .appmock__kv dd { margin: 0; padding: 0.42em 0; border-bottom: 1px solid #f0f2f5; }
.appmock__kv dd { text-align: right; font-family: var(--font-mono); color: var(--navy-700); }
.appmock__status { display: flex; justify-content: space-between; padding: 0.7em 1.8em; background: #111; color: #999; font-size: 0.9em; }
.appmock__status i { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--teal-600); margin-right: 0.6em; }
.section--dark .appmock-fig figcaption, .section--deep .appmock-fig figcaption { color: var(--on-dark-3); }

/* ---------- drawing sample (CAD sheet) */
.cad-fig, .memo-fig { margin: 0; }
.cad-fig { container-type: inline-size; }
.cad { --cyan: #0aa5c9; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(18px, 3vw, 40px); padding: clamp(18px, 3vw, 36px); background: #fff; border: 1px solid var(--line); font-family: var(--font-mono); font-size: clamp(7px, 1.32cqi, 11.5px); line-height: 1.5; color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.02em; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.cad__h { color: var(--cyan); font-size: 1.55em; letter-spacing: 0.06em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; margin-bottom: 0.4em; font-weight: 500; }
.cad__sub { margin-bottom: 1.1em; }
.cad__table { background: #fff; }
.cad__th { text-align: center; font-size: 1.12em; }
.cad__th--sm { font-size: 1em; margin-bottom: 0.2em; }
.cad__meta { display: flex; justify-content: space-between; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; padding: 0.2em 0.4em; }
.cad table { width: 100%; border-collapse: collapse; text-align: center; }
.cad th { font-weight: 400; padding: 0.3em 0.2em; border-bottom: 1px solid #1a1a1a; vertical-align: bottom; line-height: 1.35; }
.cad td { padding: 0.25em 0.2em; }
.cad__final { margin-top: 0.3em; border: 1px solid #1a1a1a; text-align: center; padding: 0.25em; }
.cad__kv { display: grid; grid-template-columns: 1fr auto; gap: 0.15em 1.5em; margin: 0.6em 0 0; background: #fff; }
.cad__kv dt, .cad__kv dd { margin: 0; }
.cad__kv dt { padding-left: 1.6em; white-space: nowrap; }
.cad__kv dt.cad__grp { padding-left: 0; margin-top: 0.6em; }
.cad__kv dd { text-align: left; min-width: 6ch; }
.cad__note { margin-top: 0.8em; }
@container (max-width: 520px) { .cad { grid-template-columns: 1fr; font-size: 9.5px; } }

/* ---------- memorandum sample */
.memo { aspect-ratio: 8.5 / 11; padding: 9% 10%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); font-family: var(--font-sans); font-size: clamp(8px, 0.75vw, 10px); color: #333; }
.memo__letterhead { display: flex; justify-content: space-between; padding-bottom: 6%; border-bottom: 1px solid #c9d2de; }
.memo__letterhead span { display: block; height: 1.8em; width: 30%; background: var(--surface-3); }
.memo__letterhead span + span { width: 22%; }
.memo__title { margin-top: 7%; font-weight: 700; letter-spacing: 0.2em; font-size: 1.3em; }
.memo__lot { margin-top: 6%; font-weight: 700; letter-spacing: 0.1em; color: var(--navy-700); }
.memo__lines { margin-top: 4%; display: grid; gap: 0.8em; }
.memo__lines i { display: block; height: 0.55em; background: var(--surface-3); width: 100%; }
.memo__lines .w90 { width: 90%; } .memo__lines .w80 { width: 80%; } .memo__lines .w70 { width: 70%; } .memo__lines .w60 { width: 60%; } .memo__lines .w50 { width: 50%; } .memo__lines .w40 { width: 40%; }
.memo__table { width: 100%; margin-top: 5%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.95em; }
.memo__table td { border: 1px solid #c9d2de; padding: 0.3em 0.4em; text-align: center; }

/* ---------- test hole section */
.hole-fig { color: var(--ink); }
.hole { width: 100%; height: auto; }
.hole__soil { color: #7a5a35; }
.hole__grade { stroke: var(--ink); stroke-width: 2; fill: none; }
.hole__wall { stroke: var(--ink-2); stroke-width: 1.5; fill: #fff; }
.hole__waterline { stroke: var(--teal-700); stroke-width: 2; }
.hole__pipe { fill: rgba(255,255,255,0.15); stroke: var(--navy-700); stroke-width: 2; }
.hole__device { fill: var(--navy-800); }
.hole__sensor { fill: var(--teal-500); }
.hole__ping { stroke: var(--teal-700); stroke-width: 1.5; stroke-dasharray: 5 4; color: var(--teal-700); fill: none; }
.hole__ext { stroke: var(--ink-3); stroke-width: 1; }
.hole__dim { stroke: var(--ink-2); stroke-width: 1.2; color: var(--ink-2); fill: none; }
.hole text { font-family: var(--font-mono); paint-order: stroke; stroke: var(--hole-bg, #fff); stroke-width: 5px; stroke-linejoin: round; }
.section--tint .hole { --hole-bg: var(--surface-2); }
.hole__lead { stroke: var(--teal-700); stroke-width: 1; }
.hole__dot { fill: var(--teal-700); }
.hole__lbl { font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-3); }
.hole__lbl--on { fill: var(--teal-700); }
.hole__val { font-size: 17px; font-weight: 500; fill: var(--ink); }
.hole__val--teal { fill: var(--teal-700); font-size: 14px; }

/* ---------- status legend */
.legend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 32px; margin: 0; }
.legend-list div { display: grid; gap: 6px; align-content: start; }
.legend-list dt, .legend-list dd { margin: 0; }
.legend-list dd { color: var(--ink-2); font-size: var(--fs-small); }
.spec-note { margin-top: 16px; }
.spec-table + .spec-table { margin-top: 36px; }

/* forms.css */
/* Forms: order request and contact. */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1024px) { .form-layout { grid-template-columns: 1fr; } }

.form { display: grid; gap: 0; }
.fieldset { border: 0; margin: 0; padding: 36px 0; border-top: 1px solid var(--line); min-width: 0; }
.fieldset:first-of-type { border-top: 0; padding-top: 0; }
.fieldset > legend { display: contents; }
.fieldset__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.fieldset__n { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--teal-700); }
.fieldset__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.fieldset__hint { margin: -12px 0 20px; color: var(--ink-3); font-size: var(--fs-small); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.fields--1 { grid-template-columns: 1fr; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; align-content: start; }
.label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 0.8125rem; }
.label .req { color: var(--orange-700); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: #fff; border: 1px solid #c3ccd8; border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6878' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.input:hover, .select:hover, .textarea:hover { border-color: #9aa8ba; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: var(--focus); }
.input::placeholder, .textarea::placeholder { color: #8a95a5; }
.help { font-size: 0.8125rem; color: var(--ink-3); }
.error { display: none; font-size: 0.8125rem; color: #b42318; font-weight: 500; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #d92d20; }
.field.has-error .error, .choice-group.has-error .error { display: block; }

/* Choice cards (radio / checkbox) */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.choice-group > legend { padding: 0; margin-bottom: 4px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--inline { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .choices, .choices--3 { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 4px 12px; align-items: start; padding: 16px 16px; background: #fff; border: 1px solid #c3ccd8; border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice:hover { border-color: #9aa8ba; }
.choice input { appearance: none; -webkit-appearance: none; margin: 2px 0 0; width: 18px; height: 18px; border: 1.5px solid #8a95a5; border-radius: 50%; background: #fff; display: grid; place-content: center; }
.choice input[type='checkbox'] { border-radius: 3px; }
.choice input::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.choice input[type='checkbox']::after { width: 10px; height: 6px; border-radius: 0; background: transparent; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; }
.choice input:checked { background: var(--navy-700); border-color: var(--navy-700); }
.choice input:checked::after { transform: scale(1); }
.choice input[type='checkbox']:checked::after { transform: rotate(-45deg) scale(1); }
.choice input:focus-visible { box-shadow: var(--focus); }
.choice:has(input:checked) { border-color: var(--navy-700); background: #f6f9fd; box-shadow: inset 0 0 0 1px var(--navy-700); }
.choice__title { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; color: var(--ink); }
.choice__text { grid-column: 2; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }
.choice__sku { grid-column: 2; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--ink-3); }
.choice--pill { grid-template-columns: auto; padding: 10px 16px; min-width: 64px; justify-items: center; }
.choice--pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice--pill .choice__title { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; }
.choice--pill:has(input:focus-visible) { box-shadow: var(--focus); }

/* Honeypot: hidden from people, visible to naive robots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { display: grid; gap: 14px; padding-top: 32px; border-top: 1px solid var(--line); }
.form__submit .btn { justify-self: start; min-height: 52px; padding: 0 28px; font-size: 1rem; }
.form__fine { font-size: 0.8125rem; color: var(--ink-3); max-width: 62ch; }
.form__status { font-size: var(--fs-small); }
.form__status[data-kind='error'] { color: #b42318; font-weight: 500; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-summary { display: none; margin-bottom: 28px; padding: 18px 20px; border: 1px solid #f3b5ae; border-left: 3px solid #d92d20; background: #fef3f2; border-radius: 0 var(--radius) var(--radius) 0; }
.error-summary.is-shown { display: block; }
.error-summary h2 { font-size: 1rem; color: #7a271a; }
.error-summary ul { margin: 8px 0 0 18px; color: #7a271a; font-size: var(--fs-small); }
.error-summary a { color: #7a271a; }

/* Summary aside */
.summary { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 20px; }
.summary__card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.summary__card h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px; }
.summary__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: var(--fs-small); }
.summary__list dt, .summary__list dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.summary__list dt { color: var(--ink-3); padding-right: 16px; }
.summary__list dd { text-align: right; color: var(--ink); font-weight: 500; }
.summary__list dd.is-empty { color: #9aa4b2; font-weight: 400; }
.summary__next { list-style: none; counter-reset: n; display: grid; gap: 14px; font-size: var(--fs-small); color: var(--ink-2); }
.summary__next li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.summary__next li::before { content: counter(n); display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--navy-300); font-family: var(--font-mono); font-size: 0.75rem; color: var(--navy-700); }
.summary__note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-2); }
.summary__note svg { width: 18px; height: 18px; color: var(--green-700); flex: none; margin-top: 1px; }
@media (max-width: 1024px) { .summary { position: static; } }

.demo-only[hidden] { display: none; }

/* Confirmation page */
.received { max-width: 760px; }
.received__mark { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.received__mark svg { width: 28px; height: 28px; }
.received__ref { display: inline-flex; gap: 12px; align-items: baseline; padding: 14px 18px; border: 1px dashed var(--navy-300); border-radius: var(--radius); background: var(--surface-2); }
.received__ref span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.received__ref strong { font-family: var(--font-mono); font-size: 1.125rem; letter-spacing: 0.04em; color: var(--ink); }
[data-show-for][hidden] { display: none; }
.contact__go, .support__go { margin-top: 14px; }
.contact__direct { list-style: none; display: grid; gap: 10px; font-size: var(--fs-small); }
.contact__direct li { display: flex; gap: 10px; align-items: center; }
.contact__direct svg { width: 16px; height: 16px; color: var(--navy-700); }
.received__next { margin-top: 14px; }
.h3 { font-size: var(--fs-h3); }
.support__kv { margin-top: 14px; }
.support__kv dd { text-align: left; font-family: var(--font-sans); font-size: var(--fs-small); }
.support__kv { grid-template-columns: 1fr; }
.support__kv dt { padding-bottom: 0; border-top: 1px solid var(--line); }
.support__kv dd { border-top: 0; padding-top: 2px; }
.page-hero__meta svg { width: 15px; height: 15px; }

/* home.css */
/* Homepage. The page is one continuous surface: the dark hero runs straight into the 3D story,
   fades into the light middle of the page, and fades back to dark for the call to action and
   footer. No section is a separate coloured band. (The hero styles are shared with the
   product pages.) */

.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(8, 19, 42, 0.5); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--navy-950); color: var(--on-dark); padding-block: clamp(48px, 6vw, 88px) 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line-dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px); background-size: 40px 40px; background-position: center top; mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 30%, transparent 85%); }
.hero::after { content: ''; position: absolute; z-index: -1; right: -10%; top: -10%; width: 70%; height: 110%; background: radial-gradient(closest-side, rgba(61, 118, 220, 0.24), transparent); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__copy .display { margin-top: 22px; max-width: 14ch; }
.hero__copy .lede { margin-top: 24px; max-width: 54ch; }
.hero__copy .btn-row { margin-top: 34px; }
.hero__status { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.hero__status div { display: grid; gap: 8px; }
.hero__status dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.hero__status dd { margin: 0; }
.hero__visual { position: relative; margin-right: calc(var(--gutter) * -0.5); }
.hero__visual .viewer { aspect-ratio: 1 / 1.04; max-height: 680px; margin-inline: auto; }
.hero__specs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-dark); }
.hero__specs li { display: grid; gap: 6px; padding: 24px 20px 26px 0; }
.hero__specs li + li { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.hero__specs .value { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); color: #fff; font-weight: 500; white-space: nowrap; }
.hero__specs small { font-size: 0.55em; margin-left: 4px; color: var(--on-dark-3); letter-spacing: 0.04em; }
.hero__specs li > span:last-child { font-size: var(--fs-micro); color: var(--on-dark-3); }
.hero__note { padding-bottom: 28px; margin-top: -6px; font-size: var(--fs-micro); color: var(--on-dark-3); }
.hero__note a { color: var(--on-dark-2); }
@media (max-width: 1100px) { .hero__grid { grid-template-columns: 1fr; } .hero__visual { max-width: 620px; width: 100%; margin: 8px auto 0; } .hero__copy .display { max-width: 18ch; } }
@media (max-width: 860px) {
  .hero__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__specs li, .hero__specs li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .hero__specs li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-dark); }
  .hero__specs li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- the scroll story (continues the hero's dark surface) */
.story { position: relative; background: var(--navy-950); color: var(--on-dark); padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); isolation: isolate; }
.story::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 700px at 28% 45%, rgba(61, 118, 220, 0.16), transparent 70%); pointer-events: none; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 72px); }
.story__stage { position: relative; }
.story__sticky { position: sticky; top: calc(var(--header-h) + 2vh); height: calc(100vh - var(--header-h) - 4vh); display: flex; align-items: center; }
.story__sticky .viewer { aspect-ratio: auto; width: 100%; height: 100%; max-height: 860px; }
.story__dots { position: absolute; left: -4px; top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 10px; }
.story__dots li { width: 6px; height: 6px; border-radius: 3px; background: rgba(148, 182, 236, 0.3); transition: height .35s var(--ease), background-color .35s; }
.story__dots li.is-on { height: 24px; background: var(--teal-500); }
.story__beats { padding-bottom: 6vh; }
.story__beat:last-child { min-height: 64vh; }
.story__intro { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.story__beat { min-height: 76vh; display: flex; align-items: center; }
.story__card { padding: 8px 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story.is-live .story__beat:not(.is-on) .story__card { opacity: 0.28; transform: translateY(6px); }
.story__kicker { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-500); }
.story__kicker span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid rgba(25, 179, 166, 0.5); border-radius: 50%; letter-spacing: 0; }
.story__card h3 { margin-top: 16px; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.story__card > p { margin-top: 16px; color: var(--on-dark-2); font-size: var(--fs-lede); line-height: 1.55; max-width: 46ch; }
.story__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.story__facts div { display: grid; gap: 2px; }
.story__facts dt { font-size: 1.75rem; color: #fff; font-weight: 500; }
.story__facts dd { margin: 0; color: var(--on-dark-3); font-size: var(--fs-micro); }
.story .oled-fig { margin-top: 26px; }
.story__link { margin-top: 26px; }
@media (max-width: 960px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage { position: sticky; top: var(--header-h); z-index: 2; height: 38vh; background: var(--navy-950); }
  .story__stage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(180deg, var(--navy-950), rgba(6, 14, 33, 0)); pointer-events: none; }
  .viewer--story .viewer__hud, .viewer--story .viewer__tag { display: none; }
  .story__sticky { position: static; height: 100%; }
  .story__dots { left: auto; right: 0; }
  .story__beats { position: relative; z-index: 1; padding-bottom: 10vh; }
  .story__intro { min-height: 0; padding: 32px 0 16px; }
  .story__beat { min-height: 58vh; align-items: center; }
  .story__card { padding: 18px 18px 20px; background: rgba(10, 23, 51, 0.92); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
  .story__card h3 { margin-top: 10px; font-size: 1.375rem; }
  .story__card > p { margin-top: 8px; font-size: var(--fs-small); }
  .story__facts { margin-top: 14px; padding-top: 12px; gap: 8px 28px; }
  .story__facts dt { font-size: 1.25rem; }
  .story .oled-fig { display: none; }
  .story.is-live .story__beat:not(.is-on) .story__card { opacity: 0.55; }
}

/* ---------- fades between the dark and light parts of the page */
.flow-in { background: linear-gradient(180deg, var(--navy-950) 0, #16233d 70px, #c9d4e3 200px, #f1f4f8 290px, var(--surface) 460px); padding-top: calc(var(--section-y) + 120px); }
.section--open { background: transparent; padding-block: calc(var(--section-y) * 0.62); }
.cta-band--fade { background: linear-gradient(180deg, var(--surface) 0, #c9d4e3 120px, #16233d 260px, var(--navy-950) 360px); padding-top: calc(var(--section-y) + 240px); color: var(--on-dark); }
.cta-band--fade::before { mask-image: linear-gradient(180deg, transparent 0, transparent 220px, #000 420px); -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 220px, #000 420px); }

/* Soft colour behind a visual, instead of a coloured band behind the whole section. */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, var(--glow, rgba(61, 118, 220, 0.14)), transparent); }
.glow--teal { --glow: rgba(25, 179, 166, 0.16); }
.glow--blue { --glow: rgba(61, 118, 220, 0.17); }
.glow--soft { --glow: rgba(148, 182, 236, 0.22); }

/* ---------- live test */
.live { margin: 0; }
.live__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 40px); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(6, 14, 33, 0.35), 0 2px 8px rgba(6, 14, 33, 0.06); }
.live__stage { position: relative; }
.live__hole { width: 100%; height: auto; color: #8a6a44; overflow: visible; }
.live__grade { stroke: var(--ink); stroke-width: 2; fill: none; }
.live__wall { stroke: var(--ink-2); stroke-width: 1.5; fill: #fff; }
.live__surface { stroke: var(--teal-700); stroke-width: 2.5; }
.live__limit { stroke: var(--orange-600); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: .8; }
.live__pipe { fill: rgba(255, 255, 255, 0.25); stroke: var(--navy-700); stroke-width: 2; }
.live__device { fill: var(--navy-800); }
.live__sensor { fill: var(--teal-500); }
.live__ping { stroke: var(--teal-600); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .45; }
.live.is-pinging .live__ping { opacity: 1; animation: live-ping .5s linear infinite; }
@keyframes live-ping { to { stroke-dashoffset: -18; } }
.live__ripple { fill: none; stroke: var(--teal-500); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.live.is-pinging .live__ripple { animation: live-ripple .7s ease-out; }
@keyframes live-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.live__dim { stroke: var(--ink-2); stroke-width: 1.2; color: var(--ink-2); fill: none; }
.live__dim--teal { stroke: var(--teal-700); color: var(--teal-700); }
.live__ext { stroke: var(--ink-3); stroke-width: 1; }
.live__hole text { font-family: var(--font-mono); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.live__lbl { font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-3); }
.live__lbl--warn { fill: var(--orange-700); }
.live__val { font-size: 14px; font-weight: 500; fill: var(--ink); }
.live__val--teal { fill: var(--teal-700); font-size: 16px; }
.live__readout { position: absolute; top: 0; right: 0; display: grid; justify-items: end; gap: 2px; pointer-events: none; }
.live__clock { font-family: var(--font-mono); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.live__count { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.live__table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.live__table th { text-align: left; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px; border-bottom: 1px solid var(--ink); }
.live__table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); color: var(--ink); transition: background-color .4s; }
.live__table tr { transition: opacity .4s var(--ease); }
.live__table tr.is-hidden { opacity: 0; }
.live__table tr.is-latest td { background: var(--teal-100); }
.live__table tr.is-slowest td:last-child { color: var(--teal-700); font-weight: 500; }
.live__table tr.is-out td { color: var(--ink-3); }
.live__table small { margin-left: 8px; font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--teal-700); }
.live__table tr.is-out small { color: var(--orange-700); }
.live__chart { width: 100%; height: auto; margin-top: 16px; }
.live__axis { stroke: var(--ink-3); fill: none; }
.live__tick { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; fill: var(--ink-3); }
.live__tick--warn { fill: var(--orange-700); }
.live__band { fill: var(--orange-100); }
.live__line { fill: none; stroke: var(--teal-600); stroke-width: 2; stroke-linejoin: round; }
.live__pt { fill: #fff; stroke: var(--teal-600); stroke-width: 2; transition: opacity .3s; }
.live__pt.is-out { stroke: var(--orange-600); }
.live__pt.is-hidden { opacity: 0; }
.live__result { margin-top: 14px; padding: 12px 16px; background: var(--surface-2); border-left: 3px solid var(--teal-600); font-size: var(--fs-small); color: var(--ink-2); transition: opacity .5s var(--ease); }
.live__result.is-hidden { opacity: 0; }
.live__result b { color: var(--ink); font-weight: 500; }
.live figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.live__replay { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy-700); font-size: 0.8125rem; font-weight: 600; }
.live__replay svg { width: 14px; height: 14px; }
.live__replay[hidden] { display: none; }
@media (max-width: 900px) { .live__grid { grid-template-columns: 1fr; } .live__stage { max-width: 440px; margin-inline: auto; width: 100%; } }

/* ---------- pipeline */
.pipeline { --pgap: clamp(20px, 3vw, 44px); }
.pipeline__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pgap); }
.pipeline__st { position: relative; display: flex; flex-direction: column; }
.pipeline__vis { position: relative; height: 210px; margin-bottom: 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; overflow: clip; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px -26px rgba(6, 14, 33, 0.45); }
.pipeline__st:not(:last-child)::after { content: ''; position: absolute; top: 104px; left: 100%; width: var(--pgap); height: 2px; background: repeating-linear-gradient(90deg, var(--teal-600) 0 6px, transparent 6px 12px); background-size: 24px 2px; opacity: .8; }
.pipeline__st:not(:last-child)::before { content: ''; position: absolute; z-index: 1; top: 100px; left: calc(100% - 4px); width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(25, 179, 166, 0.18); }
@media (prefers-reduced-motion: no-preference) {
  .pipeline__st:not(:last-child)::after { animation: pipe-dash 1.2s linear infinite; }
  .pipeline__st:not(:last-child)::before { animation: pipe-dot 2.4s var(--ease) infinite; }
  .pipeline__st:nth-child(2)::before { animation-delay: .8s; }
  .pipeline__st:nth-child(3)::before { animation-delay: 1.6s; }
}
@keyframes pipe-dash { to { background-position: 24px 0; } }
@keyframes pipe-dot { 0% { left: calc(100% - 4px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% + var(--pgap) - 6px); opacity: 0; } }
.pipeline__vis--device { background: radial-gradient(160px 140px at 50% 55%, #1b2c50, var(--navy-950)); border-color: transparent; }
.pipeline__vis--device img { height: 190px; width: auto; }
.pipeline__chip { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: #02050a; color: #d9f3ff; border: 1px solid #2a313c; border-radius: 2px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; }
.pipeline__vis--data { background: var(--navy-950); border-color: transparent; justify-content: flex-start; }
.pipeline__csv { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.9; color: #cfe3ff; white-space: pre; }
.pipeline__csv b { color: var(--teal-500); font-weight: 500; }
.pipeline__csv i { font-style: normal; color: var(--orange-500); }
.pipeline__vis--app { background: linear-gradient(160deg, #eef3fb, #dfe7f3); align-items: flex-start; justify-content: flex-start; }
.pipeline__screen { position: absolute; left: 16px; top: 16px; width: 620px; transform: scale(0.44); transform-origin: 0 0; pointer-events: none; }
.pipeline__usb { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-2); }
.pipeline__usb svg { width: 13px; height: 13px; }
.pipeline__vis--docs { background: linear-gradient(160deg, #f6f8fb, #e6ecf4); }
.pipeline__sheet, .pipeline__memo { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(6, 14, 33, 0.45); display: grid; align-content: start; gap: 7px; padding: 14px; }
.pipeline__sheet { left: 18px; top: 26px; width: 62%; height: 150px; transform: rotate(-3deg); z-index: 1; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 12px 12px; }
.pipeline__memo { right: 16px; top: 18px; width: 44%; height: 168px; transform: rotate(4deg); }
.pipeline__sheet span { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.06em; color: #0aa5c9; text-decoration: underline; }
.pipeline__memo span { font-family: var(--font-sans); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.18em; color: var(--ink); }
.pipeline__sheet i, .pipeline__memo i { display: block; height: 4px; background: var(--surface-3); }
.pipeline__sheet i:nth-child(odd) { width: 80%; }
.pipeline__sheet b { margin-top: 6px; padding: 3px 4px; border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 0.4375rem; font-weight: 500; text-align: center; }
.pipeline__n { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-700); }
.pipeline__st h3 { margin-top: 6px; font-size: 1.25rem; }
.pipeline__st p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 960px) {
  .pipeline__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pipeline__st::after, .pipeline__st::before { display: none; }
}
@media (max-width: 560px) { .pipeline__list { grid-template-columns: 1fr; } }

.benefits { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-2); }
.benefits li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.benefits svg { width: 24px; height: 24px; color: var(--navy-600); margin-top: 2px; }
.benefits h3 { font-size: 1rem; }
.benefits p { margin-top: 4px; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 960px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- software showcase */
.software-show__grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mini-steps { list-style: none; border-top: 1px solid var(--line); }
.mini-steps li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mini-steps span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal-700); }
.annot { position: relative; padding: 36px 0 12px; }
.annot__frame { position: relative; transform: perspective(1800px) rotateY(-9deg) rotateX(2deg); transform-origin: 40% 50%; }
.annot__frame .appmock { box-shadow: 0 40px 80px -36px rgba(6, 14, 33, 0.55), 0 4px 14px rgba(6, 14, 33, 0.08); }
.annot__notes { list-style: none; }
.annot__note { position: absolute; z-index: 2; display: grid; gap: 2px; max-width: 220px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal-600); border-radius: var(--radius); box-shadow: 0 14px 30px -16px rgba(6, 14, 33, 0.4); font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; }
.annot__note strong { color: var(--ink); font-size: 0.875rem; }
.annot__note--n1 { top: 20%; left: -5%; }
.annot__note--n2 { top: 36%; right: -3%; }
.annot__note--n3 { top: 62%; left: -7%; border-left-color: var(--orange-600); }
.annot__note--n4 { bottom: 4%; right: 4%; }
.annot__cap { margin-top: 18px; color: var(--ink-3); font-size: var(--fs-micro); }
.annot__cap .mono { font-size: 0.75rem; letter-spacing: 0.04em; }
@media (max-width: 1100px) {
  .software-show__grid { grid-template-columns: 1fr; }
  .annot__frame { transform: none; }
  .annot__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
  .annot__note { position: static; max-width: none; box-shadow: none; }
}
@media (max-width: 560px) { .annot__notes { grid-template-columns: 1fr; } }

/* ---------- documents */
.docs-show__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.docstack { position: relative; padding: 30px 8% 30px 0; }
.docstack__memo { position: absolute; right: 0; top: 0; width: 40%; transform: rotate(4deg); }
.docstack__sheet { position: relative; z-index: 1; width: 88%; transform: rotate(-1.2deg); box-shadow: 0 40px 70px -36px rgba(6, 14, 33, 0.5); }
.docstack__tag { position: absolute; z-index: 2; padding: 5px 10px; background: var(--navy-900); color: #fff; border-radius: 2px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; }
.docstack__tag--dwg { left: 4%; bottom: 8px; }
.docstack__tag--docx { right: 2%; top: -6px; }
@media (max-width: 960px) {
  .docs-show__grid { grid-template-columns: 1fr; }
  .docstack { padding: 20px 0 0; }
  .docstack__memo { display: none; }
  .docstack__sheet { width: 100%; transform: none; }
  .docstack__tag--docx { display: none; }
}

/* ---------- audiences */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.audience__card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.audience__card:hover { color: var(--ink); border-color: var(--navy-300); box-shadow: 0 30px 60px -34px rgba(6, 14, 33, 0.45); transform: translateY(-3px); }
.audience__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); flex: 1; }
.audience__body h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.015em; }
.audience__body p:not(.eyebrow) { color: var(--ink-2); }
.audience__body .link-arrow { margin-top: auto; padding-top: 6px; }
.avis { height: 200px; background: var(--navy-950); color: #cfe3ff; position: relative; overflow: hidden; }
.avis::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px); background-size: 24px 24px; }
.avis--rows { display: grid; align-content: center; padding: 18px 28px; font-family: var(--font-mono); font-size: 0.8125rem; }
.avis__row { position: relative; display: grid; grid-template-columns: 64px 80px 80px 56px 1fr; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.avis__row--head { color: var(--on-dark-3); font-size: 0.6875rem; letter-spacing: 0.1em; }
.avis__row em { font-style: normal; font-family: var(--font-sans); font-size: 0.75rem; color: var(--orange-500); justify-self: end; padding: 2px 8px; border: 1px solid rgba(240, 138, 60, 0.45); border-radius: 2px; }
.avis__row--flag span:nth-child(3) { color: var(--orange-500); }
.avis__row--miss { color: var(--on-dark-3); }
.avis__row--miss em { color: var(--teal-500); border-color: rgba(25, 179, 166, 0.45); }
.avis--eq { display: grid; align-content: center; justify-items: center; gap: 14px; padding: 18px; }
.avis__eq { position: relative; display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px); font-family: var(--font-mono); }
.avis__eq span { display: grid; justify-items: center; gap: 4px; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--on-dark-3); }
.avis__eq b { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.avis__eq .is-out b { color: var(--teal-500); }
.avis__eq i { font-style: normal; font-size: 1.25rem; color: var(--on-dark-3); }
.avis__sub { position: relative; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--on-dark-3); text-align: center; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .avis__row { grid-template-columns: 52px 66px 64px 1fr; } .avis__row span:nth-child(4) { display: none; } .avis__row em { grid-column: 4; } }

/* ---------- where things stand */
.standing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(160deg, #fff, var(--surface-2)); }
.standing__title { margin-top: 10px; }
.standing__list { list-style: none; display: grid; }
.standing__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); font-weight: 500; }
.standing__links { display: grid; gap: 12px; align-content: start; }
@media (max-width: 960px) { .standing__grid { grid-template-columns: 1fr; } }

/* ---------- shared with inner pages */
.outputs { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 860px) { .outputs { grid-template-columns: 1fr; } .outputs .memo { max-width: 360px; } }
.res-card__kind { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); }

/* pages.css */
/* Inner pages: product hero, device and software sections, resources, FAQ. */

/* ---------- product hero (device, software) */
.hero--product { padding-top: clamp(40px, 5vw, 72px); }
.hero--product .display { font-size: clamp(2.5rem, 1.7rem + 3vw, 4rem); margin-top: 16px; max-width: 13ch; }
.hero--product .crumbs + .eyebrow { margin-top: 30px; }
.hero__date { font-size: 0.875rem; color: var(--on-dark); padding-top: 3px; }
.hero__foot { padding-bottom: 28px; }
.hero__foot .hero__note { padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line-dark); }
.hero--product .hero__visual .appmock-fig { width: 100%; }
.hero--software .hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding-bottom: clamp(48px, 6vw, 88px); }
@media (max-width: 1100px) { .hero--software .hero__grid { grid-template-columns: 1fr; } }

/* ---------- device: use steps */
.use { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.use__steps { list-style: none; border-top: 1px solid var(--line); }
.use__steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.use__n { font-family: var(--font-mono); font-size: 0.875rem; color: var(--teal-700); padding-top: 3px; }
.use__steps p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); }
.use__screens { display: grid; gap: 28px; justify-items: start; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .use { grid-template-columns: 1fr; } .use__screens { position: static; grid-template-columns: repeat(auto-fit, minmax(284px, 1fr)); } }

/* ---------- device: measurement facts */
.facts { list-style: none; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.facts li > svg { width: 24px; height: 24px; color: var(--navy-700); margin-top: 2px; }
.facts h3 { font-size: 1.0625rem; }
.facts p { margin-top: 4px; color: var(--ink-2); font-size: var(--fs-small); }
.measure-facts { margin-top: clamp(40px, 5vw, 64px); }
.facts--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 1024px) { .facts--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .facts--grid { grid-template-columns: 1fr; } }

/* ---------- device: lid */
.lid-fig { padding: clamp(16px, 3vw, 32px); }
.lid { width: 100%; height: auto; }
.lid__body { fill: #e6ebf1; stroke: var(--navy-700); stroke-width: 1.5; }
.lid__ring { fill: none; stroke: #c3cddb; stroke-dasharray: 3 4; }
.lid__screw { fill: #b9c3d0; stroke: var(--ink-3); }
.lid__glass { fill: #c8d5e6; stroke: var(--ink-3); }
.lid__oled { fill: var(--navy-950); }
.lid__btn { fill: #aab4c0; stroke: var(--ink-2); }
.lid__switch { fill: #1b1e24; }
.lid__led { fill: #3fbf7f; }
.lid__lead { stroke: var(--teal-700); stroke-width: 1; fill: none; }
.lid__dot { fill: var(--teal-700); }
.lid__lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-2); }
.controls th { width: 38%; }
.controls .value { font-size: 0.8125rem; color: var(--ink); }

/* ---------- device: USB chain */
.chain { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.chain li { position: relative; display: grid; gap: 6px; align-content: start; padding: 26px 24px; }
.chain li + li { border-left: 1px solid var(--line-dark); }
.chain li + li::before { content: ''; position: absolute; left: -6px; top: 34px; width: 10px; height: 10px; background: var(--navy-950); border-top: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); transform: rotate(45deg); }
.chain__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal-500); }
.chain strong { font-size: 1.125rem; color: #fff; }
.chain span:last-child { color: var(--on-dark-3); font-size: var(--fs-small); }
.chain li:nth-child(4) strong { color: var(--teal-500); }
@media (max-width: 860px) { .chain { grid-template-columns: 1fr; } .chain li + li { border-left: 0; border-top: 1px solid var(--line-dark); } .chain li + li::before { display: none; } }

/* ---------- device: specifications */
.spec-split { align-items: start; }
.spec-split__intro { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .spec-split__intro { position: static; } }
.basis-key { display: grid; gap: 12px; margin: 8px 0 0; }
.basis-key div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.basis-key dt, .basis-key dd { margin: 0; }
.basis-key dd { color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- development path */
.path { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.path li { position: relative; display: grid; gap: 6px; align-content: start; padding: 0 16px 0 0; }
.path li::before { content: ''; position: absolute; top: 15px; left: 32px; right: 0; height: 2px; background: var(--line); }
.path li.is-done::before { background: var(--teal-600); }
.path li:last-child::before { display: none; }
.path__mark { position: relative; z-index: 1; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface-2); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 10px; }
.path li.is-done .path__mark { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.path li.is-done .path__mark svg { width: 16px; height: 16px; }
.path li.is-next .path__mark { border-color: var(--orange-600); color: var(--orange-700); background: var(--surface); }
.path strong { font-size: 1rem; }
.path span:last-child { color: var(--ink-2); font-size: var(--fs-micro); line-height: 1.5; }
.path__note { margin-top: 32px; }
@media (max-width: 1100px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { grid-template-columns: 32px 1fr; column-gap: 16px; padding: 0 0 22px; }
  .path li::before { top: 32px; bottom: 0; left: 15px; right: auto; width: 2px; height: auto; }
  .path__mark { grid-row: 1 / span 2; margin: 0; }
}

/* ---------- tabs (software steps) */
.tabs__list { display: none; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.js .tabs__list { display: flex; }
.tabs__tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--ink-3); font-weight: 500; }
.tabs__tab span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected='true'] { color: var(--navy-700); border-bottom-color: var(--navy-700); }
.tabs__tab[aria-selected='true'] span { color: var(--teal-700); }
.tabs__panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.tabs__panel + .tabs__panel { margin-top: 64px; }
.js .tabs[data-ready] .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); letter-spacing: -0.015em; }
.tabs__panel p { color: var(--ink-2); }
.tabs__panel .ticks { margin-top: 18px; }
.no-js-only { display: none; }
@media (max-width: 960px) { .tabs__panel { grid-template-columns: 1fr; } .tabs__list { overflow-x: auto; flex-wrap: nowrap; } .tabs__tab { white-space: nowrap; } }

/* ---------- rules grid */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rules > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.rules h3 { font-size: 1.0625rem; }
.rules p { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 960px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } }

/* ---------- feature list on dark */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.features > div { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.features svg { width: 26px; height: 26px; color: var(--teal-500); }
.features h3 { font-size: 1.0625rem; color: #fff; }
.features p { color: var(--on-dark-2); font-size: var(--fs-small); }
.section:not(.section--dark):not(.section--deep) .features > div { border-top: 2px solid var(--navy-700); }
.section:not(.section--dark):not(.section--deep) .features svg { color: var(--navy-700); }
.section:not(.section--dark):not(.section--deep) .features h3 { color: var(--ink); }
.section:not(.section--dark):not(.section--deep) .features p { color: var(--ink-2); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- requirements */
.reqs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .reqs { grid-template-columns: 1fr; } }

/* ---------- how it works: stages */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.stage + .stage { margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.stage--flip > :first-child { order: 2; }
.stage__n { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.stage__n b { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1.5px solid var(--navy-600); border-radius: 50%; color: var(--navy-700); font-weight: 500; letter-spacing: 0; }
.stage--field .stage__n b { border-color: var(--orange-600); color: var(--orange-700); }
.stage h2 { margin-top: 16px; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.stage .lede { margin-top: 16px; }
.stage .ticks { margin-top: 22px; }
@media (max-width: 960px) { .stage { grid-template-columns: 1fr; } .stage--flip > :first-child { order: 0; } }

.csv { margin: 0; padding: 22px; background: var(--navy-950); color: #cfe3ff; border-radius: var(--radius-lg); font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.75; overflow-x: auto; }
.csv b { color: var(--teal-500); font-weight: 500; }
.csv i { font-style: normal; color: var(--orange-500); }
.csv span { color: var(--on-dark-3); }

.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare td { color: var(--ink-2); }
.compare td:last-child { color: var(--ink); }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .compare td::before { content: attr(data-label) ': '; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---------- solutions */
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.needs > div { display: grid; grid-template-columns: 40px 1fr; gap: 6px 18px; padding: 30px 32px 30px 0; border-bottom: 1px solid var(--line); }
.needs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.needs > div:nth-child(even) { padding-left: 32px; }
.needs svg { width: 26px; height: 26px; color: var(--navy-700); grid-row: 1 / span 3; margin-top: 2px; }
.needs h3 { font-size: 1.125rem; }
.needs p { color: var(--ink-2); font-size: var(--fs-small); }
.needs .status { justify-self: start; margin-top: 6px; }
@media (max-width: 760px) { .needs { grid-template-columns: 1fr; } .needs > div:nth-child(odd) { border-right: 0; } .needs > div:nth-child(even) { padding-left: 0; } }

/* ---------- resources */
.res-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.res-item { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.res-item:hover { color: var(--ink); }
.res-item:hover h2 { color: var(--navy-700); }
.res-item h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); transition: color .15s; }
.res-item p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); max-width: 70ch; }
.res-item .link-arrow::after { content: '→'; }
@media (max-width: 720px) { .res-item { grid-template-columns: 1fr; gap: 6px; } }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.article__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .article__aside { position: static; } }
.toc { list-style: none; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); }
.toc li a:hover { color: var(--navy-700); }
.toc-title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.worked { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.worked th { text-align: right; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--ink); }
.worked td { text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.worked th:first-child, .worked td:first-child { text-align: left; }
.worked tr.is-slowest td { background: var(--teal-100); }
.worked tr.is-out td { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(93, 104, 120, .5); }
.worked td small { font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--teal-700); text-decoration: none; display: inline-block; margin-left: 6px; }
.worked-wrap { overflow-x: auto; }
.formula { display: block; padding: 16px 20px; background: var(--surface-2); border-left: 3px solid var(--teal-600); font-family: var(--font-mono); font-size: 0.9375rem; color: var(--ink); }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-weight: 400; font-size: 1.375rem; color: var(--navy-700); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy-700); }
.faq .faq__a { padding: 0 0 24px; max-width: 72ch; color: var(--ink-2); }
.faq .faq__a > * + * { margin-top: 0.8em; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px; }

/* ---------- support */
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 960px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- 404 */
.notfound__links { list-style: none; display: grid; gap: 12px; }
.stage__status { margin-top: 22px; }
.edit-note { margin-top: 32px; }
.doc-cards__ext { font-size: 0.8125rem; color: var(--teal-700); margin-bottom: 10px; }
.outputs--spaced { margin-top: clamp(32px, 4vw, 48px); }
.req__kv { margin: 0; }

/* Product heroes ease into the page below instead of ending on a hard edge. */
.hero--product { background: linear-gradient(180deg, var(--navy-950) 0, var(--navy-950) calc(100% - 200px), #16233d calc(100% - 120px), #c9d4e3 calc(100% - 40px), var(--surface) 100%); padding-bottom: 150px; }
.hero--software .hero__grid { padding-bottom: 0; }

/* Page heroes with a visual on the right */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__visual { position: relative; }
.hero-card { position: relative; border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
.hero-card .avis { height: auto; min-height: 220px; }
.hero-card__cap { position: relative; padding: 12px 20px; background: var(--navy-900); border-top: 1px solid var(--line-dark); color: var(--on-dark-3); font-size: var(--fs-micro); }
.hero-sheet { transform: perspective(1600px) rotateY(-10deg) rotateX(4deg) rotate(-1deg); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75); }
.hero-card--float { position: absolute; right: 3%; bottom: -14%; width: 64%; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateZ(40px); }
.hero-card--float .avis { min-height: 0; height: 150px; }
@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .hero-card, .hero-sheet { transform: none; }
  .hero-card--float { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; transform: none; }
}
.hero-card--float .avis__eq b { font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem); }
.hero-card--float .avis__sub { font-size: 0.625rem; }

/* viewer.css */
/* The 3D device viewer. */
.viewer { position: relative; width: 100%; aspect-ratio: 1 / 1.02; overflow: hidden; overflow: clip; user-select: none; -webkit-user-select: none; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
.viewer canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--navy-300); }
.viewer.is-dragging canvas { cursor: grabbing; }
.viewer__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s var(--ease); pointer-events: none; }
.viewer.is-ready .viewer__poster { opacity: 0; }
.viewer.is-fallback canvas { display: none; }
.viewer__status { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--on-dark-3); }

.viewer__hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 0; pointer-events: none; }
.viewer__hud > * { pointer-events: auto; }
.viewer__toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(8, 19, 42, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.viewer__toggle button { height: 34px; padding: 0 14px; border: 0; border-radius: 2px; background: none; color: var(--on-dark-2); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.viewer__toggle button:hover { color: #fff; }
.viewer__toggle button[aria-pressed='true'] { background: var(--on-dark); color: var(--navy-900); }
.viewer__hint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.viewer__hint svg { width: 16px; height: 16px; }
.viewer.is-fallback .viewer__hud { display: none; }

.viewer__tag { position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); line-height: 1.7; pointer-events: none; }
.viewer__tag b { color: var(--teal-500); font-weight: 500; }

.viewer__labels { position: absolute; inset: 0; list-style: none; pointer-events: none; }
.viewer__label { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; display: grid; grid-template-columns: auto; padding-left: 34px; margin-top: -9px; width: max-content; max-width: 230px; }
.viewer__label::before { content: ''; position: absolute; left: 0; top: 9px; width: 28px; height: 1px; background: var(--teal-500); }
.viewer__label::after { content: ''; position: absolute; left: -3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy-950); box-shadow: inset 0 0 0 1.5px var(--teal-500); }
.viewer__label-name { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); line-height: 18px; }
.viewer__label-text { font-size: 0.8125rem; color: var(--on-dark-3); line-height: 1.35; margin-top: 2px; }
@media (max-width: 640px) { .viewer__label-text { display: none; } .viewer__label { padding-left: 24px; } .viewer__label::before { width: 18px; } }
.viewer__label.is-left { padding-left: 0; padding-right: 34px; text-align: right; justify-items: end; }
.viewer__label.is-left::before { left: auto; right: 0; }
.viewer__label.is-left::after { left: auto; right: -3px; }
@media (max-width: 640px) { .viewer__label.is-left { padding-right: 24px; } }

/* On light backgrounds */
.viewer--light .viewer__toggle { background: rgba(255, 255, 255, 0.85); border-color: var(--line); }
.viewer--light .viewer__toggle button { color: var(--ink-3); }
.viewer--light .viewer__toggle button:hover { color: var(--ink); }
.viewer--light .viewer__toggle button[aria-pressed='true'] { background: var(--navy-800); color: #fff; }
.viewer--light .viewer__hint, .viewer--light .viewer__tag, .viewer--light .viewer__status { color: var(--ink-3); }
.viewer--light .viewer__label-name { color: var(--ink); }
.viewer--light .viewer__label-text { color: var(--ink-3); }
.viewer--light .viewer__label::after { background: #fff; }
