/* PeopleNexus Technologies — one stylesheet.
   Tokens are ported from RigOps (rms-ui/src/index.css): the same hues, surfaces, ink and drawing colours, so the site
   and the product read as one hand. Industrial is the look (paper grid, blue linework, mono labels, corner marks);
   dense blocks appear only where they prove something (spec sheets, the stat line, the security table). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ── 1 · Tokens ───────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --brand: oklch(0.480 0.175 255);
  --brand-ink: oklch(1 0 0);
  --success: oklch(0.577 0.163 151);
  --warning: oklch(0.666 0.165 70);
  --danger: oklch(0.567 0.224 27);
  --danger-ink: oklch(0.500 0.200 27);
  --background: oklch(1 0 0);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.984 0.002 265);
  --surface-3: oklch(0.962 0.004 265);
  --border: oklch(0.25 0.01 265 / 0.15);
  --border-2: oklch(0.25 0.01 265 / 0.22);
  --border-3: oklch(0.25 0.01 265 / 0.34);
  --foreground: oklch(0.210 0.010 265);
  --foreground-2: oklch(0.330 0.010 265);
  --muted: oklch(0.455 0.010 265);
  --subtle: oklch(0.50 0.010 265);

  --hud-grid: oklch(0.460 0.150 255 / 0.07);
  --hud-line: oklch(0.460 0.150 255);
  --hud-dim: oklch(0.460 0.150 255 / 0.40);
  --hud-faint: oklch(0.460 0.150 255 / 0.13);
  --hud-ink: oklch(0.220 0.030 255);
  --hud-ink-2: oklch(0.420 0.040 255);

  --glyph-ink: var(--foreground);
  --glyph-fill: color-mix(in oklab, var(--brand) 5%, var(--surface));
  --glyph-act: color-mix(in oklab, var(--brand) 22%, var(--surface));
  --brand-wash: color-mix(in oklab, var(--brand) 7%, var(--surface));

  --shadow: 0 1px 2px oklch(0.2 0.02 265 / 0.06), 0 8px 24px -8px oklch(0.2 0.02 265 / 0.14);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fast: 130ms;
  --base: 200ms;
  --slow: 280ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --gutter: 16px;
  --max: 1360px;
}

/* The dark values — applied by the OS setting (unless the visitor picked light) or by the toggle, and to any section
   that asks for the dark ground ([data-ground="ink"]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: oklch(0.740 0.150 255);
    --brand-ink: oklch(0.160 0.020 255);
    --success: oklch(0.740 0.150 151);
    --warning: oklch(0.800 0.140 70);
    --danger: oklch(0.700 0.190 27);
    --danger-ink: oklch(0.740 0.170 27);
    --background: oklch(0.145 0.008 265);
    --surface: oklch(0.178 0.010 265);
    --surface-2: oklch(0.212 0.012 265);
    --surface-3: oklch(0.252 0.013 265);
    --border: oklch(1 0 0 / 0.11);
    --border-2: oklch(1 0 0 / 0.17);
    --border-3: oklch(1 0 0 / 0.26);
    --foreground: oklch(0.970 0.003 265);
    --foreground-2: oklch(0.860 0.006 265);
    --muted: oklch(0.755 0.008 265);
    --subtle: oklch(0.66 0.010 265);
    --hud-grid: oklch(0.820 0.110 255 / 0.07);
    --hud-line: oklch(0.820 0.110 255);
    --hud-dim: oklch(0.820 0.110 255 / 0.35);
    --hud-faint: oklch(0.820 0.110 255 / 0.12);
    --hud-ink: oklch(0.950 0.020 255);
    --hud-ink-2: oklch(0.760 0.050 255);
    --glyph-fill: color-mix(in oklab, var(--brand) 14%, var(--surface));
    --glyph-act: color-mix(in oklab, var(--brand) 30%, var(--surface));
    --brand-wash: color-mix(in oklab, var(--brand) 10%, var(--surface));
    --shadow: 0 1px 2px oklch(0 0 0 / 0.4), 0 10px 28px -10px oklch(0 0 0 / 0.6);
  }
}
:root[data-theme="dark"],
[data-ground="ink"] {
  color-scheme: dark;
  --brand: oklch(0.740 0.150 255);
  --brand-ink: oklch(0.160 0.020 255);
  --success: oklch(0.740 0.150 151);
  --warning: oklch(0.800 0.140 70);
  --danger: oklch(0.700 0.190 27);
  --danger-ink: oklch(0.740 0.170 27);
  --background: oklch(0.145 0.008 265);
  --surface: oklch(0.178 0.010 265);
  --surface-2: oklch(0.212 0.012 265);
  --surface-3: oklch(0.252 0.013 265);
  --border: oklch(1 0 0 / 0.11);
  --border-2: oklch(1 0 0 / 0.17);
  --border-3: oklch(1 0 0 / 0.26);
  --foreground: oklch(0.970 0.003 265);
  --foreground-2: oklch(0.860 0.006 265);
  --muted: oklch(0.755 0.008 265);
  --subtle: oklch(0.66 0.010 265);
  --hud-grid: oklch(0.820 0.110 255 / 0.07);
  --hud-line: oklch(0.820 0.110 255);
  --hud-dim: oklch(0.820 0.110 255 / 0.35);
  --hud-faint: oklch(0.820 0.110 255 / 0.12);
  --hud-ink: oklch(0.950 0.020 255);
  --hud-ink-2: oklch(0.760 0.050 255);
  --glyph-fill: color-mix(in oklab, var(--brand) 14%, var(--surface));
  --glyph-act: color-mix(in oklab, var(--brand) 30%, var(--surface));
  --brand-wash: color-mix(in oklab, var(--brand) 10%, var(--surface));
  --shadow: 0 1px 2px oklch(0 0 0 / 0.4), 0 10px 28px -10px oklch(0 0 0 / 0.6);
}
/* The ink ground in the light theme is a touch deeper than the dark page, so it reads as a panel, not a hole. */
[data-ground="ink"] { --background: oklch(0.165 0.022 262); --surface: oklch(0.195 0.024 262); }

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ── 2 · Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--brand) 25%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: var(--r-1); font-weight: 560; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 3 · Type ─────────────────────────────────────────────────────────── */
.mono, .label, .overline, code { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; line-height: 1.4; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand);
}
.overline::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.label { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.display {
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.08; font-weight: 650; letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 { font-size: clamp(23px, 2.2vw, 31px); line-height: 1.18; font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: 560; letter-spacing: -0.012em; }
.lede { font-size: clamp(16px, 1.15vw, 17px); line-height: 1.55; color: var(--foreground-2); max-width: 60ch; text-wrap: pretty; }
.body-2 { color: var(--foreground-2); }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 68ch; color: var(--foreground-2); }
.prose h2 { font-size: 22px; font-weight: 560; letter-spacing: -0.012em; color: var(--foreground); margin: 2.2em 0 0.6em; }

/* ── 4 · Buttons and links ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-1);
  font: 560 15px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 88%, var(--foreground)); }
.btn-ghost { border-color: var(--border-3); color: var(--foreground); background: transparent; }
.btn-ghost:hover { border-color: var(--foreground); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn .arr { font-family: var(--mono); transition: transform var(--fast) var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--brand); font-weight: 560; text-decoration: none;
}
.link:hover { text-decoration: underline; }
.link .arr { font-family: var(--mono); display: inline-block; transition: transform var(--fast) var(--ease); }

/* ── 5 · Header, context strip, footer ────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 26px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-1);
  font-size: 14px; font-weight: 500; color: var(--foreground-2); text-decoration: none;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-links a:hover { color: var(--foreground); background: var(--surface-3); }
.nav-links a[aria-current="page"] { color: var(--foreground); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-1);
  background: none; border: 0; cursor: pointer; color: var(--foreground-2);
}
.theme-toggle:hover { background: var(--surface-3); color: var(--foreground); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu { display: none; }
@media (max-width: 1023px) {
  .nav-links, .nav > .btn { display: none; }
  .menu { display: block; position: static; }
  .menu > summary {
    list-style: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-1);
    cursor: pointer; color: var(--foreground);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary:hover { background: var(--surface-3); }
  .menu > summary svg { width: 22px; height: 22px; }
  .menu[open] > summary .bars, .menu:not([open]) > summary .x { display: none; }
  .menu-panel {
    position: absolute; left: 0; right: 0; top: 60px; z-index: 40;
    background: var(--background); border-bottom: 1px solid var(--border-2); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px;
  }
  .menu-panel a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px;
    border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 500; text-decoration: none;
  }
  .menu-panel a:not(.btn)::after { content: "→"; font-family: var(--mono); color: var(--muted); }
  .menu-panel .btn { width: 100%; margin-top: 16px; }
}

.strip {
  border-bottom: 1px solid var(--border);
  font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--surface-2);
}
.strip ol { display: flex; overflow: hidden; }
.strip li { display: flex; gap: 8px; align-items: center; padding: 8px 14px 8px 0; white-space: nowrap; }
.strip li + li::before { content: "/"; color: var(--subtle); margin-right: 6px; }
.strip .k { color: var(--muted); }
.strip .v { color: var(--foreground); }
@media (max-width: 719px) { .strip .opt { display: none; } }

.site-footer { border-top: 1px solid var(--border-2); background: var(--surface-2); margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding-block: 44px 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-grid h2 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer-grid a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--foreground-2); }
.footer-grid a:hover { color: var(--foreground); text-decoration: underline; }
.footer-grid .tel { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; gap: 10px; }
.footer-grid .tel span { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; min-width: 52px; }
.footer-about p { color: var(--foreground-2); margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  border-top: 1px solid var(--border); padding-block: 20px 28px; font-size: 13px; color: var(--muted);
}
.footer-base .mono { font-size: 12px; letter-spacing: 0.06em; }

/* ── 6 · Sections ─────────────────────────────────────────────────────── */
.section { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); }
.section.tight { padding-block: clamp(40px, 4.5vw, 60px); }
.section.flush { border-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.5vw, 40px); max-width: 760px; }
.section-head.split { max-width: none; }
@media (min-width: 1024px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head.split .lede { justify-self: end; }
}
[data-ground="ink"] { background: var(--background); color: var(--foreground); }

/* The drawing sheet: paper grid, corner marks — hero stages only. */
.sheet {
  position: relative;
  background-color: var(--background);
  background-image:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: -1px -1px;
}
.corners { position: absolute; inset: 20px; pointer-events: none; }
.corners i { position: absolute; width: 1.75rem; height: 1.75rem; border: 0 solid var(--hud-dim); }
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 719px) { .corners { display: none; } }

/* ── 7 · Hero ─────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(32px, 4vw, 52px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; } }
.hero-copy { display: grid; gap: 24px; align-content: start; position: relative; z-index: 1; }
.hero-copy .display { max-width: 15ch; }
.hero-copy .lede { max-width: 50ch; }
.hero-copy .actions { margin-top: 8px; }
.hero-stage { position: relative; min-height: 0; }
.rig-canvas { display: none; width: 100%; height: min(500px, 62vh); cursor: grab; touch-action: pan-y; }
.rig-fallback { max-width: 440px; margin-inline: auto; }
@media (min-width: 1024px) {
  .js .rig-canvas { display: block; }
  .js .hero-stage .rig-fallback { display: none; }
  .rig-fallback { max-width: 520px; }
}
.rig-still .edge, .rig-still .plane { fill: none; stroke: var(--hud-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rig-still .well { fill: none; stroke: var(--hud-line); stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.rig-still .tags path { stroke: var(--hud-dim); fill: none; stroke-width: 1; }
.rig-still .dot { fill: var(--hud-line); }
.rig-still .balloon { fill: var(--background); stroke: var(--hud-line); stroke-width: 1; }
.rig-still text { font: 600 12px var(--mono); fill: var(--hud-line); text-anchor: middle; }
.rig-parts { display: grid; gap: 0; border-top: 1px solid var(--border); margin-top: 8px; }
.rig-parts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rig-parts .n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--hud-line); color: var(--hud-line); font: 600 12px/1 var(--mono);
}
.rig-parts b { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.rig-parts span:last-child { font-size: 16px; }
@media (min-width: 1024px) { .js .hero .rig-parts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* The title block: an engineering drawing's signature strip, under the hero. */
.title-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border-3); border-radius: 2px; background: var(--background); }
@media (min-width: 900px) { .title-block { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.title-block > div { padding: 14px 16px; border-right: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); min-width: 0; }
.title-block .k { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.title-block .v { font-size: 15px; font-weight: 500; line-height: 1.4; }
@media (max-width: 899px) {
  .title-block > div:nth-child(2n) { border-right: 0; }
  .title-block > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .title-block > div { border-bottom: 0; }
  .title-block > div:last-child { border-right: 0; }
}
.page-hero { padding-block: clamp(36px, 5vw, 68px) clamp(32px, 4vw, 52px); }
.page-hero .display { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }
.page-hero .actions { margin-top: 28px; }
.page-hero .title-block { margin-top: clamp(40px, 5vw, 56px); }

/* ── 8 · Two ways (home) ──────────────────────────────────────────────── */
.ways { display: grid; border-top: 1px solid var(--border-3); }
@media (min-width: 900px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { display: grid; gap: 18px; align-content: start; padding: 32px 0; border-bottom: 1px solid var(--border-3); }
@media (min-width: 900px) {
  .way { padding: 40px 48px 44px 0; border-bottom: 0; }
  .way + .way { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--border-3); }
}
.way-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.way-num { font: 500 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--brand); }
.way .glyph { width: 96px; height: 72px; flex: none; }
.way h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.15; font-weight: 600; letter-spacing: -0.022em; }
.way p { color: var(--foreground-2); max-width: 46ch; }
.ticks { display: grid; gap: 0; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15px; }
.ticks li::before { content: ""; width: 10px; height: 1px; background: var(--brand); margin-top: 0.8em; }

/* ── 9 · Glyph drawings and figures ───────────────────────────────────── */
.glyph :is(path, line, rect, circle, ellipse, polyline, polygon) { vector-effect: non-scaling-stroke; stroke-width: 1.25px; }
.figure .glyph :is(path, line, rect, circle, ellipse, polyline, polygon) { stroke-width: 1.5px; }
.figure {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; padding: 28px; border-radius: var(--r-2);
  background-color: var(--surface-2);
  background-image:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid var(--border);
}
.figure .glyph { width: 62%; height: 70%; }
.figure .pin {
  position: absolute; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--background); border: 1px solid var(--hud-line); color: var(--hud-line); font: 600 12px/1 var(--mono);
  transform: translate(-50%, -50%);
}
.figure .pin::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--hud-line); }
.figure .pin[data-d="r"]::after { left: calc(100% + 26px); top: 50%; transform: translateY(-50%); }
.figure .pin[data-d="l"]::after { right: calc(100% + 26px); top: 50%; transform: translateY(-50%); }
.figure .pin::before { content: ""; position: absolute; top: 50%; height: 1px; width: 28px; background: var(--hud-dim); }
.figure .pin[data-d="r"]::before { left: 100%; }
.figure .pin[data-d="l"]::before { right: 100%; }
.figure-tag { position: absolute; left: 14px; top: 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--hud-ink-2); text-transform: uppercase; }
.figure-tag.r { left: auto; right: 14px; }
.callouts { counter-reset: c; display: grid; }
.callouts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--foreground-2); }
.callouts li::before {
  counter-increment: c; content: counter(c);
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--hud-line); color: var(--hud-line); font: 600 12px/1 var(--mono); margin-top: 1px;
}

/* ── 10 · Spec sheets, tables, stat line ──────────────────────────────── */
.spec { border-top: 1px solid var(--border-3); font-size: 15px; }
.spec > div { display: grid; grid-template-columns: minmax(110px, 0.42fr) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.spec dt { font: 500 12px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec dd { color: var(--foreground); }
.statline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-3); border-bottom: 1px solid var(--border-3); }
@media (min-width: 900px) { .statline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 24px 20px 24px 0; display: grid; gap: 6px; align-content: start; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--border); }
@media (max-width: 899px) {
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.stat .n { font: 500 clamp(28px, 3vw, 38px)/1 var(--mono); letter-spacing: -0.04em; color: var(--foreground); }
.stat .n small { font-size: 0.45em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.stat .t { font-weight: 560; font-size: 16px; }
.stat .s { font-size: 14px; color: var(--muted); line-height: 1.45; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--border-3); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table td:first-child { font-weight: 560; color: var(--foreground); width: 30%; }
.table td { color: var(--foreground-2); }
.table .code { font: 500 12px/1.9 var(--mono); color: var(--brand); white-space: nowrap; width: 72px; }
@media (max-width: 719px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .table.stack td { border: 0; padding: 2px 0; width: auto; }
}

/* ── 11 · Journey (one record, four stops) ───────────────────────────── */
.journey { position: relative; display: grid; gap: 0; }
.journey::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--border-3); }
.stop { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 20px; padding-bottom: 32px; align-content: start; }
.stop:last-child { padding-bottom: 0; }
.stop .node { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--hud-line); background: var(--background); display: grid; place-items: center; z-index: 1; }
.stop .node::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hud-line); }
.stop .when { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; }
.stop h3 { font-size: 17px; font-weight: 560; letter-spacing: -0.01em; margin: 4px 0 6px; }
.stop p { font-size: 15px; color: var(--foreground-2); }
@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .journey::before { left: 12px; right: 12px; top: 11px; bottom: auto; width: auto; height: 1px; }
  .stop { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; }
}

/* ── 12 · Fleet depth board (example data) ────────────────────────────── */
.board { border: 1px solid var(--border-2); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.board-head .label { color: var(--foreground-2); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.04em; border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap;
}
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.rows { padding: 6px 20px 4px; }
.row { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row .name { font: 500 13px/1.3 var(--mono); }
.row .name small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.depth { position: relative; height: 24px; }
.depth .track { position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--border-2); }
.depth .run { position: absolute; left: 0; bottom: 4px; height: 2px; background: var(--foreground); }
.depth .run.stale { height: 0; border-top: 2px dashed var(--muted); background: none; }
.depth .bit { position: absolute; bottom: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 2px solid var(--foreground); background: var(--surface); }
.depth .stale + .bit { border-color: var(--muted); }
.depth .val { position: absolute; top: 0; font: 500 12px/1 var(--mono); white-space: nowrap; }
.depth .val small { color: var(--muted); margin-left: 6px; font-size: 12px; }
.axis { position: relative; height: 30px; margin: 0 20px 0 110px; font: 500 12px/1 var(--mono); color: var(--muted); }
.axis span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.board-foot { padding: 12px 20px 14px; border-top: 1px solid var(--border); font-size: 14px; color: var(--foreground-2); }

/* ── 13 · Compare (spreadsheets vs RigOps) ────────────────────────────── */
.compare { display: grid; border-top: 1px solid var(--border-3); }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { padding: 28px 0; }
@media (min-width: 900px) { .compare > div + div { padding-left: 48px; border-left: 1px solid var(--border-3); } .compare > div:first-child { padding-right: 48px; } }
.compare h3 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.compare .us h3 { color: var(--brand); }
.compare li { padding: 13px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.compare .them li { color: var(--muted); }
.compare .them li::before { content: "×"; font-family: var(--mono); color: var(--subtle); }
.compare .us li::before { content: "→"; font-family: var(--mono); color: var(--brand); }

/* ── 14 · Assistant console (typed question, cited answer) ───────────── */
.ai-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .ai-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.console { border: 1px solid var(--border-2); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.console-bar .label { color: var(--foreground-2); }
.console-body { padding: 22px 20px 20px; display: grid; gap: 18px; }
.q { justify-self: end; max-width: 88%; padding: 12px 16px; border-radius: var(--r-2) var(--r-2) 4px var(--r-2); background: var(--brand-wash); border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent); font-size: 16px; min-height: 1.6em; }
.q .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--brand); }
.a { display: grid; gap: 14px; transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .a.wait { opacity: 0; transform: translateY(6px); }
.a p { font-size: 16px; color: var(--foreground-2); }
.a p b { color: var(--foreground); font-weight: 600; }
.chart { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-1); background: var(--surface-2); }
.bar { display: grid; grid-template-columns: 64px 1fr 52px; gap: 12px; align-items: center; font: 500 12px/1 var(--mono); }
.bar .b { height: 10px; border-radius: 2px; background: color-mix(in oklab, var(--brand) 30%, var(--surface-3)); }
.bar.top .b { background: var(--brand); }
.bar .v { text-align: right; color: var(--foreground); }
.source { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 500 12px/1.5 var(--mono); color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--border-2); }
.source b { color: var(--brand); font-weight: 500; }
.guard { display: grid; gap: 0; border-top: 1px solid var(--border-3); }
.guard li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.guard b { font: 500 12px/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.guard span { color: var(--foreground-2); font-size: 16px; }
@media (max-width: 519px) { .guard li { grid-template-columns: 1fr; gap: 2px; } }

/* ── 15 · Module sheets (product) ─────────────────────────────────────── */
.modules-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--border-3); }
.modules-index a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.modules-index a:hover { color: var(--brand); }
.modules-index .code { font: 500 12px/1 var(--mono); color: var(--muted); }
.modules-index .arr { font-family: var(--mono); color: var(--muted); }
.module { display: grid; gap: 28px; padding-block: clamp(40px, 4.5vw, 60px); border-top: 1px solid var(--border); scroll-margin-top: 80px; }
@media (min-width: 1024px) {
  .module { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .module.flip > :first-child { order: 2; }
}
.module-copy { display: grid; gap: 16px; align-content: start; }
.module-copy .code { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--brand); }
.module-copy h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; font-weight: 600; letter-spacing: -0.024em; }
.module-copy > p { color: var(--foreground-2); }
.module-copy .spec { margin-top: 8px; }
.module-art { display: grid; gap: 16px; }

/* Due line (inspections). */
.dueline { border: 1px solid var(--border); border-radius: var(--r-2); padding: 18px 20px 14px; background: var(--surface); }
.lane { padding: 10px 0 12px; }
.lane + .lane { border-top: 1px solid var(--border); }
.lane-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 14px; }
.lane-head b { font-weight: 560; }
.lane-head .bad { color: var(--danger-ink); font: 500 12px/1.6 var(--mono); }
.lane-head .ok { color: var(--muted); font: 500 12px/1.6 var(--mono); }
.track { position: relative; height: 12px; }
.track .ln { position: absolute; top: 5px; height: 2px; background: var(--foreground); }
.track .ln.over { background: var(--danger); }
.track .s { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--foreground); background: var(--surface); }
.track .s.f { background: var(--foreground); }
.track .s.bad { border-color: var(--danger); }
.track .today { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1px dashed var(--muted); }
.lane-dates { position: relative; height: 18px; margin-top: 6px; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.lane-dates span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lane-dates span:first-child { transform: none; }

/* Step line (workflows: approvals, process routes, actions, training, documents). */
.steps { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); padding: 6px 20px; }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--border); position: relative; }
.steps li:last-child { border-bottom: 0; }
.steps .n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--hud-line); color: var(--hud-line); font: 600 12px/1 var(--mono); }
.steps li.done .n { background: var(--hud-line); color: var(--background); }
.steps b { font-weight: 560; font-size: 16px; }
.steps small { display: block; font-size: 14px; color: var(--muted); }
.steps .st { font: 500 12px/1 var(--mono); color: var(--muted); }
.steps li.done .st { color: var(--foreground-2); }
.steps li.now .st { color: var(--brand); }

/* Training matrix (example). */
.matrix { border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); overflow: hidden; }
.matrix table { width: 100%; border-collapse: collapse; font: 500 12px/1 var(--mono); }
.matrix th, .matrix td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.matrix th { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.matrix td:first-child, .matrix th:first-child { text-align: left; font-family: var(--sans); font-size: 14px; color: var(--foreground); padding-left: 16px; }
.matrix tr:last-child td { border-bottom: 0; }
.cell { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--foreground); vertical-align: middle; }
.cell.ok { background: var(--foreground); }
.cell.exp { background: linear-gradient(135deg, var(--foreground) 50%, transparent 50%); }
.cell.miss { border-color: var(--danger); border-style: dashed; }
.matrix-key { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font: 500 12px/1.4 var(--mono); color: var(--muted); }
.matrix-key span { display: inline-flex; align-items: center; gap: 8px; }

/* Shot: the one real product image. */
.shot { border: 1px solid var(--border-2); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.shot-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--border-3); }
.shot-bar span { margin-left: 12px; font: 500 12px/1 var(--mono); color: var(--muted); }
.shot img { width: 100%; }
/* Product screenshots: about half the screen on laptops, centred; the image opens full size. Phones and tablets keep full width. */
.shot-fig { width: min(100%, max(50vw, 640px)); margin-inline: auto; }
.shot-fig .shot a { display: block; cursor: zoom-in; }
.film .caption { text-align: center; }
.caption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Devices. */
.trio { display: grid; border-top: 1px solid var(--border-3); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio > div { padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; gap: 8px; align-content: start; }
@media (min-width: 900px) {
  .trio > div { border-bottom: 0; padding: 28px 28px 28px 0; }
  .trio > div + div { padding-left: 28px; border-left: 1px solid var(--border); }
}
.trio h3 { font-size: 17px; font-weight: 560; letter-spacing: -0.01em; }
.trio p { color: var(--foreground-2); font-size: 16px; }
.trio .code { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--brand); margin-bottom: 6px; }

/* ── 16 · Places (where to reach us) ──────────────────────────────────── */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-3); }
@media (min-width: 900px) { .places { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.place { padding: 22px 16px 22px 0; display: grid; gap: 6px; border-bottom: 1px solid var(--border); }
.place + .place { padding-left: 16px; border-left: 1px solid var(--border); }
@media (max-width: 899px) { .place:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (min-width: 900px) { .place { border-bottom: 0; } }
.place .coord { font: 500 12px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.place h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.place p { font-size: 15px; color: var(--foreground-2); }
.place a { font: 500 15px/1 var(--mono); text-decoration: none; color: var(--foreground); display: inline-flex; align-items: center; min-height: 44px; }
.place a:hover { color: var(--brand); text-decoration: underline; }



/* ── 17 · Revision block (how we work) ────────────────────────────────── */
.revs { display: grid; border: 1px solid var(--border-3); border-radius: 2px; }
@media (min-width: 900px) { .revs { grid-template-columns: repeat(4, 1fr); } }
.rev { padding: 22px 20px 26px; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--border-2); }
.rev:last-child { border-bottom: 0; }
@media (min-width: 900px) { .rev { border-bottom: 0; border-right: 1px solid var(--border-2); } .rev:last-child { border-right: 0; } }
.rev-top { display: flex; align-items: center; justify-content: space-between; }
.rev .r { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hud-line); color: var(--hud-line); font: 600 15px/1 var(--mono); transform: rotate(45deg); border-radius: 3px; }
.rev .r span { transform: rotate(-45deg); }
.rev .label { color: var(--muted); }
.rev h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-top: 4px; }
.rev p { font-size: 15px; color: var(--foreground-2); }
.rev .out { font: 500 12px/1.5 var(--mono); color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--border-2); }

/* ── 18 · FAQ ─────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border-3); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center;
  min-height: 56px; padding: 12px 0; font-size: 17px; font-weight: 560; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--brand); text-align: center; transition: transform var(--base) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--foreground-2); max-width: 70ch; }

/* ── 19 · Offer / path cards (services, contact) ─────────────────────── */
.cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-3);
  border: 1px solid var(--border-2); background: var(--surface);
}
.card .code { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--brand); }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; }
.card p { color: var(--foreground-2); font-size: 15px; }
.card .glyph { width: 84px; height: 60px; }
.card .ticks { margin-top: 4px; }
.card .ticks li { font-size: 15px; }
a.card { text-decoration: none; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
a.card:hover { border-color: var(--brand); }

/* ── 20 · Closing CTA ─────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; }
.cta .wrap { position: relative; display: grid; gap: 24px; padding-block: clamp(52px, 6vw, 84px); }
@media (min-width: 1024px) { .cta .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta .actions { justify-content: flex-end; } }
.cta .display { font-size: clamp(28px, 3.4vw, 40px); max-width: 18ch; }
.cta p { color: var(--foreground-2); margin-top: 16px; max-width: 48ch; }

/* ── 21 · Contact ─────────────────────────────────────────────────────── */
.channels { border-top: 1px solid var(--border-3); }
.channels > div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .channels > div { grid-template-columns: 200px 1fr; align-items: baseline; } }
.channels dt { font: 500 12px/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.channels dd { display: grid; gap: 0; }
.channels a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; text-decoration: none; color: var(--foreground); gap: 12px; }
.channels a:hover { color: var(--brand); text-decoration: underline; }
.channels .tel { font-family: var(--mono); font-size: 17px; }
.channels .tel span { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; min-width: 56px; }
.channels .note { font-size: 14px; color: var(--muted); }
.mailbox { border: 1px solid var(--border-2); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.mailbox pre { margin: 0; padding: 20px 22px; font: 500 13px/1.75 var(--mono); color: var(--foreground-2); white-space: pre-wrap; border-top: 1px solid var(--border); background: var(--surface-2); }
.mailbox-head { padding: 22px; display: grid; gap: 10px; }

/* ── 22 · Legal ───────────────────────────────────────────────────────── */
.legal-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: 220px 1fr; gap: 64px; } .toc { position: sticky; top: 96px; align-self: start; } }
.toc a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--foreground-2); font-size: 15px; }
.toc a:hover { color: var(--brand); }
.legal-grid .prose h2:first-child { margin-top: 0; }
.legal-grid .prose section { scroll-margin-top: 96px; }

/* ── 23 · Motion ──────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(6px); transition: opacity var(--base) var(--ease), transform var(--base) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Start here: routes a visitor by what they came to do. */
.intent { gap: 10px; }
.intent h3 { font-size: 18px; }
.intent .link { min-height: 0; margin-top: 4px; }
.intent:hover .arr { transform: translateX(3px); }
#security { scroll-margin-top: 80px; }

/* The product film: loads only on play; framed like the product shot. */
/* Fits the whole film in the window: the width is capped so its height never exceeds the screen below the header. */
.film video { display: block; width: min(100%, calc((100svh - 140px) * 16 / 9)); margin-inline: auto; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); background: oklch(0.165 0.022 262); }

/* Laptop and desktop: a calmer reading size and compact controls. Phones and touch keep 16 px and 44 px targets. */
@media (min-width: 1024px) and (pointer: fine) {
  body { font-size: 15px; }
  .btn { min-height: 40px; font-size: 14px; padding: 0 16px; }
  .link { min-height: 36px; }
  .theme-toggle { width: 36px; height: 36px; }
  .footer-grid a, .place a, .channels a, .toc a { min-height: 36px; }
  .spec, .table, .callouts li, .ticks li, .card p, .trio p, .stop p, .rev p { font-size: 14px; }
  .lede { font-size: 16px; }
}

/* One promise in three beats, under the hero buttons. */
.promise { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 13px/1.5 var(--mono); color: var(--foreground-2); }
.promise span { display: inline-flex; align-items: center; gap: 8px; }
.promise span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
