/* Sentinel Vision — site styles
   One typeface (Archivo, variable weight + width). Width does the work a second family would:
   wide for headings, normal for reading, narrow for timecodes and figures.
   Green, red and amber are reserved for statuses, the same way the product uses them. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --concrete: #e6e8e3;
  --paper: #f8f9f6;
  --spruce: #0e2a21;
  --text: #24322c;
  --muted: #55625c;
  --rule: #c9cec7;
  --working: #1b8a4b;
  --alert: #cf3a2b;
  --amber: #b37a00;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wide: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--spruce); font-stretch: 116%; font-weight: 640; letter-spacing: -0.018em; }
:focus-visible { outline: 3px solid var(--working); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--spruce); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 60; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--spruce); font-stretch: 116%; font-weight: 680; font-size: 1.1875rem; letter-spacing: -0.012em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.site-nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--spruce); }

.button { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 4px; border: 2px solid var(--spruce); background: var(--spruce); color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: #17402f; border-color: #17402f; }
.button:disabled { opacity: .6; cursor: progress; }
.button.quiet { background: transparent; color: var(--spruce); }
.button.quiet:hover { background: var(--concrete); }
.site-nav .button { min-height: 40px; padding: 0 18px; border-bottom-width: 2px; color: #fff; }
.site-nav .button:hover { border-bottom-color: #17402f; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(44px, 5.4vw, 76px); }
.hero-cam { position: absolute; top: 0; right: 0; width: min(64vw, 920px); height: 560px; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 96%), linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 55%, transparent 96%), linear-gradient(to bottom, #000 70%, transparent); mask-composite: intersect; }
.hero-cam canvas { display: block; width: 100%; height: 100%; }
.hero-top { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; min-height: 336px; }
.hero h1 { grid-column: 1 / span 8; align-self: start; font-size: clamp(2.25rem, 4.7vw, 3.875rem); line-height: 1.03; letter-spacing: -0.028em; font-weight: 660; text-wrap: balance; }
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1.go .w { animation: focus-pull .95s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes focus-pull { from { font-stretch: 62%; font-weight: 300; opacity: 0; } 55% { opacity: 1; } to { font-stretch: 116%; font-weight: 660; opacity: 1; } }
.hero-side { grid-column: 9 / span 4; padding-bottom: 8px; }
.hero-side p { color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-link { flex-basis: 100%; margin-top: 4px; font-size: 0.9375rem; font-weight: 600; color: var(--spruce); text-underline-offset: 4px; }

/* ---------- demo ---------- */
.demo { position: relative; z-index: 1; margin-top: clamp(36px, 4.5vw, 64px); background: var(--concrete); padding-block: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.scene-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.scene-tabs button, .side-tabs button { font: inherit; cursor: pointer; background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; }
.scene-tabs button { font-size: 1rem; font-weight: 600; padding: 10px 16px 9px; font-stretch: 108%; }
.scene-tabs button:hover, .side-tabs button:hover { color: var(--spruce); }
.scene-tabs button[aria-selected="true"], .side-tabs button[aria-selected="true"] { color: var(--spruce); border-bottom-color: var(--spruce); }
.demo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; }
.player { grid-column: 1 / span 9; }
.frame { position: relative; background: #101614; border-radius: 4px; }
.frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; transition: opacity .25s; }
.frame.swap video { opacity: 0; }
/* detection-bracket corners, the one borrowed motif */
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.frame::before { left: -9px; top: -9px; border-left: 3px solid var(--spruce); border-top: 3px solid var(--spruce); }
.frame::after { right: -9px; bottom: -9px; border-right: 3px solid var(--spruce); border-bottom: 3px solid var(--spruce); }

.transport { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.transport button { min-width: 78px; min-height: 38px; padding: 0 14px; border-radius: 4px; border: 1.5px solid var(--spruce); background: transparent; color: var(--spruce); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.transport button:hover { background: var(--paper); }
.transport button[hidden] { display: none; }
.timecode { font-stretch: 86%; font-weight: 560; font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--spruce); min-width: 5.2ch; }
.scrub { position: relative; flex: 1; height: 26px; display: flex; align-items: center; }
.scrub-track { position: relative; width: 100%; height: 3px; background: #b9bfb7; border-radius: 2px; }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--spruce); border-radius: 2px; }
.scrub-mark { position: absolute; top: -5px; width: 3px; height: 13px; margin-left: -1.5px; background: var(--alert); border-radius: 1px; }
.scrub-mark[data-kind="notice"] { background: var(--amber); }
.demo-note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); max-width: 70ch; }

.side { grid-column: 10 / span 3; min-width: 0; }
.side-tabs { display: flex; gap: 18px; border-bottom: 2px solid var(--spruce); }
.side-tabs button { font-size: 0.9375rem; font-weight: 640; font-stretch: 108%; padding: 2px 0 9px; margin-bottom: -2px; border-bottom-width: 4px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 4.6ch 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: #8a938d; transition: color .25s; }
.log li time { font-stretch: 86%; font-weight: 560; font-variant-numeric: tabular-nums; font-size: 0.9375rem; padding-top: 1px; }
.log li strong { display: block; font-weight: 620; font-size: 0.9375rem; line-height: 1.35; }
.log li span { display: block; font-size: 0.875rem; line-height: 1.45; margin-top: 2px; }
.log li.on { color: var(--text); }
.log li.on time { color: var(--spruce); }
.log li.on[data-kind="alert"] strong { color: var(--alert); }
.log li.on[data-kind="notice"] strong { color: var(--amber); }
.log li.on[data-kind="info"] strong { color: var(--working); }
.side-foot { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

.raw { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.raw th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 8px 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.8125rem; }
.raw td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); font-stretch: 88%; white-space: nowrap; color: var(--text); }
.raw td:first-child { font-stretch: 100%; font-weight: 600; color: var(--spruce); }
.raw td.conf { position: relative; width: 4.4em; }
.raw td.conf i { position: absolute; left: 0; bottom: 3px; height: 2px; background: var(--working); border-radius: 1px; }
.side-panel[data-view="raw"] tbody { display: table-row-group; }
.side-panel[hidden] { display: none; }
/* ---------- sections ---------- */
.section { padding-block: var(--space-section); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { grid-column: 1 / span 7; font-size: clamp(1.75rem, 3.3vw, 2.625rem); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
.section-head p { grid-column: 9 / span 4; color: var(--muted); align-self: end; }

/* statuses */
.statuses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.status figure { margin: 0; position: relative; }
.status img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--concrete); }
.status h3 { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 1.3125rem; letter-spacing: -0.012em; }
.status h3::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--working); flex: none; }
.status[data-state="alert"] h3::before { background: var(--alert); }
.status p { margin-top: 10px; max-width: 38ch; }
.status .rule { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
/* scan-in reveal, once, when the figure scrolls into view */
html.js .reveal img { clip-path: inset(0 0 100% 0); }
html.js .reveal.seen img { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease); }
html.js .reveal::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--working); opacity: 0; }
html.js .reveal.seen::after { animation: scanline .9s var(--ease) both; }
@keyframes scanline { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* steps: a real sequence, so it is numbered */
.steps-band { background: var(--concrete); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; border-top: 2px solid var(--spruce); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-stretch: 70%; font-weight: 300; font-size: 3.5rem; line-height: 1; color: var(--spruce); margin-bottom: 18px; }
.steps h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
.steps p { margin-top: 10px; font-size: 1rem; }
html.js .steps li { border-top-color: transparent; }
html.js .steps li::after { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: var(--spruce); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
html.js .steps li::before { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); }
html.js .steps.seen li::after { transform: scaleX(1); }
html.js .steps.seen li::before { opacity: 1; transform: none; }
html.js .steps.seen li:nth-child(2)::after, html.js .steps.seen li:nth-child(2)::before { transition-delay: .18s; }
html.js .steps.seen li:nth-child(3)::after, html.js .steps.seen li:nth-child(3)::before { transition-delay: .36s; }
html.js .steps.seen li:nth-child(4)::after, html.js .steps.seen li:nth-child(4)::before { transition-delay: .54s; }

/* ---------- 3D floors ---------- */
.floors3d { padding-top: var(--space-section); }
.floors3d .section-head { margin-bottom: 0; }
.floors-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.stage-col { grid-column: 1 / span 7; position: sticky; top: 6vh; height: 88vh; align-self: start; }
.stage { position: relative; width: 100%; height: 100%; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.chip3d { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 4px; background: var(--working); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; opacity: 0; transition: opacity .3s; will-change: transform; }
.chip3d[data-level="alert"] { background: var(--alert); }
.chip3d[data-level="notice"] { background: var(--amber); }
.chip3d.on { opacity: 1; }
.floor-steps { grid-column: 9 / span 4; padding-block: 12vh 18vh; }
.floor-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .35s; }
.floor-step.active { opacity: 1; }
.floor-step h3 { font-size: 1.75rem; letter-spacing: -0.018em; padding-bottom: 16px; border-bottom: 2px solid var(--spruce); }
.floor-step dl { margin: 0; }
.floor-step dt { font-weight: 620; color: var(--spruce); margin-top: 20px; }
.floor-step dd { margin: 4px 0 0; color: var(--muted); font-size: 1rem; max-width: 36ch; }
html.no-webgl .stage-col { display: none; }
html.no-webgl .floor-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; padding-block: 56px var(--space-section); }
html.no-webgl .floor-step { min-height: 0; opacity: 1; }

/* ---------- under the hood ---------- */
.engine { background: var(--concrete); }
.try { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; }
.try-view { grid-column: 1 / span 8; }
.try-view canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; background: #101614; }
.try-side { grid-column: 9 / span 4; min-width: 0; }
.model-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.model-pick button { font: inherit; font-weight: 640; font-stretch: 108%; text-align: left; color: var(--muted); background: transparent; border: 1.5px solid rgba(14, 42, 33, 0.22); border-radius: 4px; padding: 10px 12px 9px; cursor: pointer; }
.model-pick button small { display: block; font-weight: 500; font-stretch: 100%; font-size: 0.78125rem; margin-top: 2px; color: var(--muted); }
.model-pick button:hover { border-color: var(--spruce); }
.model-pick button[aria-pressed="true"] { color: var(--spruce); border-color: var(--spruce); background: var(--paper); box-shadow: inset 0 -3px 0 var(--spruce); }
.try-samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sample { font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--muted); text-align: left; padding: 0 0 6px; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.sample img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; margin-bottom: 6px; }
.sample[aria-pressed="true"] { color: var(--spruce); border-bottom-color: var(--spruce); }
.own-image { display: block; margin-top: 18px; font-size: 0.9375rem; font-weight: 600; color: var(--spruce); }
.own-image input { display: block; margin-top: 8px; font: inherit; font-size: 0.875rem; font-weight: 400; color: var(--muted); max-width: 100%; }
.own-image input::file-selector-button { font: inherit; font-weight: 600; color: var(--spruce); background: transparent; border: 1.5px solid var(--spruce); border-radius: 4px; padding: 7px 12px; margin-right: 12px; cursor: pointer; }
.own-image input::file-selector-button:hover { background: var(--spruce); color: var(--paper); }
.try-side .button { margin-top: 20px; width: 100%; }
.try-side .button + .button { margin-top: 10px; }
.button[hidden] { display: none; }
.try-status { margin-top: 12px; font-size: 0.9375rem; color: var(--spruce); min-height: 3.2em; }
.try-status[data-state="error"] { color: var(--alert); }
.try-side .raw { margin-top: 6px; }
.try-side .raw[hidden] { display: none; }
.try-foot { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

.facts { margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.facts div { border-top: 2px solid var(--spruce); padding: 18px 0 34px; }
.facts dt { font-stretch: 112%; font-weight: 640; color: var(--spruce); font-size: 1.0625rem; }
.facts dd { margin: 8px 0 0; max-width: 40ch; }
.facts .count { font-weight: 640; color: var(--spruce); font-variant-numeric: tabular-nums; }
.facts a { color: var(--spruce); font-weight: 600; text-underline-offset: 3px; }

.evidence { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.evidence figure { margin: 0; min-width: 0; }
.evidence figcaption { font-size: 0.9375rem; font-weight: 600; color: var(--spruce); margin-bottom: 10px; }
.evidence pre { margin: 0; background: var(--spruce); color: #d9e4de; border-radius: 4px; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.71875rem; line-height: 1.7; tab-size: 2; }
@media (max-width: 1320px) { .evidence { grid-template-columns: 1fr; } }

/* spec band */
/* ---------- documentation page ---------- */
.doc { padding-block: clamp(48px, 7vw, 96px) var(--space-section); }
.doc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.doc-toc { grid-column: 1 / span 3; position: sticky; top: 32px; font-size: 0.9375rem; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.doc-toc a { display: block; padding: 6px 0 6px 18px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.doc-toc a:hover { color: var(--spruce); border-left-color: var(--spruce); }
.doc-body { grid-column: 5 / span 8; min-width: 0; }
.doc-body h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.024em; }
.doc-body .lede { margin-top: 18px; font-size: 1.1875rem; color: var(--muted); max-width: 60ch; }
.doc-body h2 { font-size: 1.625rem; letter-spacing: -0.018em; margin-top: 72px; padding-top: 22px; border-top: 2px solid var(--spruce); scroll-margin-top: 24px; }
.doc-body h3 { font-size: 1.1875rem; margin-top: 36px; }
.doc-body p, .doc-body ol, .doc-body ul { margin-top: 14px; max-width: 70ch; }
.doc-body ol, .doc-body ul { padding-left: 1.3em; }
.doc-body li { margin-top: 6px; }
.doc-body a { color: var(--spruce); font-weight: 600; text-underline-offset: 3px; }
.doc-body code { font-family: var(--mono); font-size: 0.875em; background: var(--concrete); padding: 1px 5px; border-radius: 3px; }
.doc-body pre { margin: 16px 0 0; background: var(--spruce); color: #d9e4de; border-radius: 4px; padding: 16px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7; }
.doc-body pre code { background: none; padding: 0; font-size: inherit; }
.doc-body table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.doc-body th { text-align: left; font-weight: 600; font-size: 0.8125rem; color: var(--muted); padding: 9px 18px 8px 0; border-bottom: 2px solid var(--spruce); }
.doc-body td { padding: 11px 18px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc-body td:first-child { font-weight: 620; color: var(--spruce); white-space: nowrap; }
.doc-body td code { background: none; padding: 0; }
.doc-body .hash { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; white-space: normal; }
.doc-body .doc-date { margin-top: 56px; font-size: 0.875rem; color: var(--muted); }
.doc-body kbd { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; color: var(--spruce); border: 1.5px solid var(--spruce); border-radius: 4px; padding: 1px 7px; background: var(--paper); }

/* ---------- model files ---------- */
.models { margin-top: clamp(40px, 5vw, 64px); }
.models-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 18px; }
.models-head h3 { grid-column: 1 / span 4; font-size: 1.3125rem; }
.models-head p { grid-column: 5 / span 8; color: var(--muted); font-size: 1rem; }
.table-scroll { overflow-x: auto; }
.model-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.model-table th { text-align: left; font-weight: 600; font-size: 0.8125rem; color: var(--muted); padding: 10px 20px 9px 0; border-bottom: 2px solid var(--spruce); white-space: nowrap; }
.model-table td { padding: 13px 20px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.model-table td:first-child { white-space: nowrap; }
.model-table td:first-child a { font-weight: 640; color: var(--spruce); text-underline-offset: 3px; }
.model-table code { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.models-foot { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); max-width: 96ch; }
.models-foot a { color: var(--spruce); font-weight: 600; text-underline-offset: 3px; }

/* ---------- windows app ---------- */
.app-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; align-items: start; }
.app-shots { grid-column: 1 / span 8; }
.app-shots figure { margin: 0; position: relative; }
.app-shots img { width: 100%; border-radius: 4px; background: var(--concrete); }
.app-shots figcaption { position: absolute; left: 0; bottom: 0; background: var(--spruce); color: #fff; font-size: 0.8125rem; font-weight: 600; font-stretch: 108%; padding: 5px 10px; border-radius: 0 4px 0 4px; }
.app-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.app-caption { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); max-width: 78ch; }
.app-get { grid-column: 9 / span 4; }
.app-get .button { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.app-meta { margin: 26px 0 0; }
.app-meta div { display: grid; grid-template-columns: 9ch 1fr; column-gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule); }
.app-meta div:last-child { border-bottom: 1px solid var(--rule); }
.app-meta dt { font-weight: 620; color: var(--spruce); font-size: 0.9375rem; }
.app-meta dd { margin: 0; font-size: 0.9375rem; color: var(--text); }
.app-meta code { font-family: var(--mono); font-size: 0.75rem; overflow-wrap: anywhere; color: var(--muted); }
.app-note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }
.app-note a { color: var(--spruce); font-weight: 600; text-underline-offset: 3px; }

/* a feature that is on the roadmap and not in the current release */
.soon { display: inline-block; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 3px; font-size: 0.6875rem; font-weight: 640; font-stretch: 100%; line-height: 1.55; color: var(--muted); vertical-align: 0.14em; white-space: nowrap; }
dt .soon { margin-left: 6px; }
dd .soon { margin-right: 4px; }
.spec-band .soon { color: #a9bdb3; }

.roadmap { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.roadmap > div { border-top: 2px solid var(--spruce); padding-top: 18px; }
.roadmap h3 { font-stretch: 112%; font-weight: 640; color: var(--spruce); font-size: 1.0625rem; }
.roadmap ul { list-style: none; margin: 10px 0 0; padding: 0; }
.roadmap li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.roadmap li:first-child { border-top: 0; }
.roadmap > div + div li { color: var(--muted); }
.form-foot a, .site-footer a { text-underline-offset: 3px; }

.spec-band { background: var(--spruce); color: #d6dfda; }
.spec-band h2 { color: #fff; }
.spec-band .section-head p { color: #a9b8b1; }
.spec { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.spec div { display: grid; grid-template-columns: 9.5ch 1fr; column-gap: 24px; padding: 20px 0; border-top: 1px solid #2d4a3f; }
.spec dt { color: #fff; font-weight: 620; }
.spec dd { margin: 0; }

/* responsible use */
.use { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.use h2 { grid-column: 1 / span 5; font-size: clamp(1.75rem, 3.3vw, 2.625rem); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
.use-body { grid-column: 7 / span 6; }
.use-body p + p { margin-top: 1.1em; }
.use-body p:first-child { font-size: 1.3125rem; line-height: 1.45; color: var(--spruce); }

/* contact */
.contact-band { background: var(--concrete); }
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.contact-intro { grid-column: 1 / span 5; }
.contact-intro h2 { font-size: clamp(1.75rem, 3.3vw, 2.625rem); line-height: 1.08; letter-spacing: -0.022em; }
.contact-intro p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.contact form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--spruce); }
.field label small { font-weight: 400; color: var(--muted); font-size: inherit; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1.5px solid #9aa39c; border-radius: 4px; padding: 11px 13px; }
.field textarea { min-height: 116px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--spruce); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot p { font-size: 0.875rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { padding-block: 44px 56px; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: baseline; }
.site-footer .brand { font-size: 1.0625rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { flex-basis: 100%; max-width: 78ch; padding-top: 20px; border-top: 1px solid var(--rule); }

/* simple pages (thanks, 404) */
.plain { min-height: 62vh; display: grid; align-content: center; padding-block: 96px; }
.plain h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.026em; max-width: 16ch; }
.plain p { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.plain .button { margin-top: 32px; justify-self: start; }

/* ---------- pointer reticle: detection brackets that snap to whatever is under the cursor ---------- */
.reticle { position: fixed; left: 0; top: 0; width: 40px; height: 40px; pointer-events: none; z-index: 50; opacity: 0;
  transition: transform .2s var(--ease), width .2s var(--ease), height .2s var(--ease), opacity .15s; }
.reticle.on { opacity: 1; }
.reticle i { position: absolute; width: 13px; height: 13px; border: 2.5px solid var(--working); }
.reticle i:nth-child(1) { left: -7px; top: -7px; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { right: -7px; top: -7px; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { left: -7px; bottom: -7px; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }
.reticle b { position: absolute; left: -7px; bottom: calc(100% + 11px); background: var(--working); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: .03em; line-height: 1; padding: 4px 7px; border-radius: 3px; white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .reticle { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .hero-cam { display: none; } }
@media (max-width: 1040px) {
  .hero-top { min-height: 0; }
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 9; margin-top: 24px; padding-bottom: 0; }
  .player, .side { grid-column: 1 / -1; }
  .log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .section-head h2 { grid-column: 1 / -1; }
  .section-head p { grid-column: 1 / span 9; margin-top: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .stage-col { grid-column: 1 / -1; top: 0; height: 46vh; background: var(--paper); z-index: 2; border-bottom: 1px solid var(--rule); margin-top: 24px; }
  .floor-steps { grid-column: 1 / -1; padding-block: 4vh 10vh; }
  .floor-step { min-height: 52vh; justify-content: flex-start; padding-top: 6vh; }
  .try-view, .try-side { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .use h2, .use-body, .contact-intro, .contact form { grid-column: 1 / -1; }
  .use-body { margin-top: 28px; }
  .site-nav a:nth-child(-n+2) { display: none; }
  .models-head h3, .models-head p { grid-column: 1 / -1; }
  .models-head p { margin-top: 8px; }
  .app-shots, .app-get { grid-column: 1 / -1; }
  .doc-toc { display: none; }
  .doc-body { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .roadmap { grid-template-columns: 1fr; row-gap: 36px; }
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 64px; gap: 16px; }
  .site-nav a:not(.button) { display: none; }
  .site-nav .button { padding: 0 14px; font-size: 0.875rem; }
  .brand { font-size: 1.0625rem; gap: 9px; }
  .brand svg { width: 24px; height: 24px; }
  .hero-side { grid-column: 1 / -1; }
  .frame::before, .frame::after { display: none; }
  .scene-tabs { gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .scene-tabs button { padding-inline: 9px; font-size: 0.9375rem; white-space: nowrap; flex: none; }
  .log { grid-template-columns: 1fr; }
  .section-head p { grid-column: 1 / -1; }
  .statuses { grid-template-columns: 1fr; row-gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; row-gap: 4px; }
  .contact form { grid-template-columns: 1fr; }
  .transport { gap: 12px; }
  html.no-webgl .floor-steps { grid-template-columns: 1fr; }
  .model-table th:nth-child(3), .model-table td:nth-child(3), .model-table th:nth-child(n+5), .model-table td:nth-child(n+5) { display: none; }
  .model-table th, .model-table td { padding-right: 12px; }
  .app-thumbs figcaption { position: static; background: none; color: var(--muted); padding: 6px 0 0; font-size: 0.75rem; font-stretch: 100%; }
  .doc-body .hashes thead { display: none; }
  .doc-body .hashes tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .doc-body .hashes td { display: block; padding: 2px 0; border: 0; }
  .doc-body h2 { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .log li, .floor-step, .chip3d, .frame video { transition: none; }
  .hero h1.go .w { animation: none; }
  html.js .reveal img { clip-path: none; }
  html.js .reveal::after { display: none; }
  html.js .steps li::after { transform: scaleX(1); transition: none; }
  html.js .steps li::before { opacity: 1; transform: none; transition: none; }
  .reticle { transition: opacity .15s; }
}
