/* xcaicx.com — built in the same house style as kosa8.com and anz33.com.
 *
 * Light, editorial, quiet: white space, one cool accent, prose held to a
 * readable measure, and the only dark things on the page being terminal blocks
 * and the demo viewport. It reads like a datasheet rather than a brochure,
 * which is what an OEM engineering lead is actually looking for.
 *
 * The accent is cyan rather than kosa8's amber. Two products from the same
 * shop should look related, not identical, and cyan reads as optical/technical
 * next to the hi-vis oranges that show up inside the demo overlays.
 *
 * No @font-face and no external requests. The CSP is
 * `default-src 'none'; style-src 'self'; script-src 'self'` and a page whose
 * pitch is "the inference never leaves the camera" has no business pulling
 * fonts off someone else's CDN.
 */

:root {
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px; --s7: 48px;  --s8: 64px;  --s9: 96px;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-full: 999px;

  --sans: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-h1: clamp(32px, 4.6vw, 46px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h3: 19px;
  --fs-body: 16.5px;
  --fs-sm: 14.5px;
  --fs-xs: 13px;
  --fs-mono: 13px;

  --measure: 68ch;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Detection overlay palette. Four modules, four fixed categorical slots,
   * assigned in order and never cycled. These are the validated reference
   * categorical hues (slots 1-4); the light set fails the 3:1 contrast check
   * against a light surface, which is why every box is drawn with a dark ring
   * and a text label rather than relying on colour alone. */
  --m-detect: #2a78d6;
  --m-defect: #eb6834;
  --m-ppe:    #1baf7a;
  --m-anpr:   #eda100;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --line: rgba(10, 14, 20, .10);
  --line-strong: rgba(10, 14, 20, .18);
  --text: #13171c;
  --text-2: #525a67;
  --text-3: #848b97;
  --accent: #0e7490;
  --accent-ink: #ecfbff;
  --ok: #0f766e;
  --warn: #b3261e;
  --term-bg: #0a0d11;
  --glow: radial-gradient(760px 320px at 12% -12%, rgba(14, 116, 144, .07), transparent 62%);
  --shadow: 0 1px 2px rgba(10, 14, 20, .05), 0 12px 40px rgba(10, 14, 20, .10);
  --shadow-sm: 0 1px 3px rgba(10, 14, 20, .06);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d11;
  --bg-elev: #0f141a;
  --surface: #11171d;
  --surface-2: #161d25;
  --line: rgba(216, 228, 238, .10);
  --line-strong: rgba(216, 228, 238, .18);
  --text: #e5ecf2;
  --text-2: #a1adba;
  --text-3: #7b8794;
  --accent: #38bdf8;
  --accent-ink: #04202b;
  --ok: #4db6a4;
  --warn: #e8825a;
  --term-bg: #05080b;
  --glow: radial-gradient(760px 320px at 12% -12%, rgba(56, 189, 248, .08), transparent 62%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);

  --m-detect: #3987e5;
  --m-defect: #d95926;
  --m-ppe:    #199e70;
  --m-anpr:   #c98500;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) var(--glow) no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: var(--s3) var(--s4); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.skip:focus { left: var(--s4); top: var(--s4); }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 { color: var(--text); }
h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 0 var(--s4);
  max-width: 22ch;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -.028em;
  font-weight: 600;
  margin: 0 0 var(--s4);
  max-width: 26ch;
  text-wrap: balance;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -.018em;
  font-weight: 600;
  margin: 0 0 var(--s2);
}
p { margin: 0 0 var(--s4); max-width: var(--measure); }
.lead {
  font-size: 18.5px;
  color: var(--text-2);
  max-width: 62ch;
  margin-bottom: var(--s5);
}
.fine { font-size: var(--fs-xs); color: var(--text-3); max-width: 74ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 var(--s3);
}
code, kbd, samp { font-family: var(--mono); font-size: .92em; }
p code, li code, td code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .34em;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; gap: var(--s5);
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--text); font-weight: 600; letter-spacing: -.02em;
  font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 22px; height: 22px; display: block; flex: none;
  color: var(--accent);
}
.nav nav { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.nav nav a { color: var(--text-2); font-size: var(--fs-sm); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.cta {
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: var(--r-full);
  padding: 5px var(--s4);
}
.icon-btn {
  appearance: none; background: none; border: 1px solid var(--line);
  color: var(--text-2); border-radius: var(--r-full);
  width: 32px; height: 32px; display: grid; place-items: center;
  cursor: pointer; flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--s5) var(--s5);
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: var(--s3) 0; width: 100%; font-size: var(--fs-body); }
  .nav-toggle { display: grid; margin-left: auto; }
}

/* ---------------------------------------------------------------- layout */

section { padding: var(--s9) 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.section--tight { padding: var(--s8) 0; }
.sec-head { margin-bottom: var(--s7); }
.sec-head p { color: var(--text-2); max-width: 64ch; margin-bottom: 0; }

.hero { padding: var(--s9) 0 var(--s8); border-top: 0; }
.hero .lead { font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }

.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  border-radius: var(--r-full); padding: 10px var(--s5);
  font-size: var(--fs-sm); font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--text);
  background: var(--surface); cursor: pointer;
  transition: transform .12s var(--ease), border-color .12s var(--ease);
}
.btn:hover { text-decoration: none; border-color: var(--text-3); transform: translateY(-1px); }
.btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 6px var(--s4); font-size: var(--fs-xs); }
.btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s8); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }

.cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: var(--s5);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: 0; }
.card .mod {
  font-family: var(--mono); font-size: var(--fs-xs);
  color: var(--text-3); display: block; margin-bottom: var(--s3);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: var(--fs-xs);
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  padding: 3px 10px; color: var(--text-2);
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}
.badge--warn::before { background: var(--warn); }

/* ---------------------------------------------------------------- terminal */

.term {
  background: var(--term-bg); color: #d7e0ea;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--mono); font-size: var(--fs-mono); line-height: 1.62;
}
.term-bar {
  display: flex; align-items: center; gap: var(--s2);
  padding: 8px var(--s4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #7f8b99; font-size: 12px;
}
.term-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2c343e; flex: none; }
.term pre {
  margin: 0; padding: var(--s4) var(--s5);
  overflow-x: auto; white-space: pre;
}
.term .c { color: #7f8b99; }            /* comment / chrome  */
.term .p { color: #67d0f0; }            /* prompt / command  */
.term .g { color: #6fcf97; }            /* good              */
.term .y { color: #e6b45e; }            /* warn / number     */
.term .r { color: #f08c72; }            /* error             */
.term .d { color: #b39ddb; }            /* identifier        */

/* ---------------------------------------------------------------- demo */

.demo {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.demo-head .spacer { margin-left: auto; }
.demo-title {
  font-family: var(--mono); font-size: var(--fs-xs);
  color: var(--text-2); letter-spacing: .04em;
}
/* One definite height for the whole body, rather than letting either column
 * negotiate. Both previous attempts failed in opposite directions: an
 * aspect-ratio stage left a dead band under the video when the side column was
 * taller, and a stretching stage let the event log drive the row height until
 * the canvas was taller than it was wide. Fixing the row makes the stage a
 * camera-shaped frame and gives the side column a definite height to scroll
 * inside. */
.demo-body {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  height: clamp(430px, 44vw, 560px);
}
@media (max-width: 940px) {
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .stage { aspect-ratio: 16 / 10; }
}

.stage {
  position: relative; background: #05080b;
  display: block; width: 100%; height: 100%;
}
.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.stage-msg {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: var(--s6);
  color: #9fb0c0; font-size: var(--fs-sm); font-family: var(--mono);
  background: rgba(5, 8, 11, .82);
}
.stage-msg p { max-width: 40ch; margin: 0 auto var(--s4); }

.side {
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  overflow-y: auto;
}
@media (max-width: 940px) { .side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; } }
.side-sec { padding: var(--s4); border-bottom: 1px solid var(--line); flex: none; }
.side-sec:last-child { border-bottom: 0; }

/* The event log absorbs the slack left by the fixed panels, and scrolls within
 * it. It never grows the column, because the column's height is already fixed
 * by .demo-body. */
.side-sec--grow { flex: 1 1 auto; min-height: 120px; display: flex; flex-direction: column; }
.side-sec--grow .log { flex: 1 1 auto; max-height: none; min-height: 74px; }
.side-sec h4 {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  margin: 0 0 var(--s3);
}

/* Module toggles. The swatch is a secondary channel next to the label, never
 * the only channel — the label is always present. */
.mods { display: grid; gap: 6px; }
.mod-row {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--fs-sm); cursor: pointer;
  padding: 5px 6px; border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.mod-row:hover { background: var(--surface-2); }
.mod-row input { accent-color: var(--accent); margin: 0; }
.mod-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mod-row .nm { font-family: var(--mono); font-size: var(--fs-xs); }
.mod-row .ct { margin-left: auto; font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mod-row.denied { opacity: .5; }
.mod-row.denied .nm { text-decoration: line-through; }

/* Stat tiles. Value in primary ink, label muted, no colour carrying meaning. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.tile { background: var(--surface); padding: var(--s3) var(--s4); }
.tile .v {
  font-family: var(--mono); font-size: 19px; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  display: block; line-height: 1.25;
}
.tile .k {
  font-size: 11.5px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Meter: a single bar for seats or allowance. Value is labelled in text so the
 * bar is decoration on top of a number, not a substitute for one. */
.meter { margin-top: var(--s2); }
.meter-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.meter-bar {
  height: 6px; border-radius: 3px; background: var(--surface-2);
  border: 1px solid var(--line); overflow: hidden; margin-top: 5px;
}
.meter-fill { height: 100%; background: var(--accent); border-radius: 2px 0 0 2px; transition: width .3s var(--ease); }
.meter-fill.full { background: var(--warn); }

/* Newest first. Rows are prepended, so this is a plain column — a
 * column-reverse flex box clipped the newest row against the scroll container
 * instead of showing it. */
.log {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55;
  max-height: 190px; overflow-y: auto; margin: 0;
  display: flex; flex-direction: column;
}
.log-row { display: flex; gap: var(--s2); padding: 2px 0; border-bottom: 1px solid var(--line); }
.log-row:first-child { border-bottom: 0; }
.log-row .t { color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.log-row .k { color: var(--text); }
.log-row .z { color: var(--text-2); }
.log-empty { color: var(--text-3); font-family: var(--mono); font-size: 11.5px; }

.ctrl { display: grid; gap: var(--s3); }
.ctrl label { font-size: var(--fs-xs); color: var(--text-2); display: grid; gap: 4px; }
.ctrl .rowv { display: flex; align-items: center; gap: var(--s3); }
.ctrl input[type="range"] { width: 100%; accent-color: var(--accent); }
.ctrl .val { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
select, input[type="text"], input[type="number"], textarea {
  font-family: var(--sans); font-size: var(--fs-sm);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 6px var(--s3);
}
textarea { font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.55; width: 100%; }

/* ---------------------------------------------------------------- token lab */

.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }
.tok {
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  word-break: break-all; background: var(--term-bg); color: #d7e0ea;
  border-radius: var(--r); padding: var(--s4); border: 1px solid rgba(255,255,255,.09);
}
.tok .hdr { color: #67d0f0; }
.tok .pl  { color: #6fcf97; }
.tok .sig { color: #b39ddb; }
.tok .dot { color: #7f8b99; }
.verdict {
  display: flex; align-items: flex-start; gap: var(--s3);
  border: 1px solid var(--line); border-left-width: 3px;
  border-radius: var(--r-sm); padding: var(--s3) var(--s4);
  font-size: var(--fs-sm); background: var(--surface);
}
.verdict .ico { font-family: var(--mono); font-weight: 600; flex: none; }
.verdict--ok { border-left-color: var(--ok); }
.verdict--ok .ico { color: var(--ok); }
.verdict--bad { border-left-color: var(--warn); }
.verdict--bad .ico { color: var(--warn); }
.verdict code { white-space: normal; }

/* ---------------------------------------------------------------- tables */

.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th, .tbl td {
  text-align: left; padding: 10px var(--s3);
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.tbl th {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .06em;
}
.tbl td:first-child { font-family: var(--mono); font-size: var(--fs-xs); white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: var(--s6); }
.step { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--s4); }
.step::before {
  content: counter(step);
  font-family: var(--mono); font-size: var(--fs-xs);
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text-2);
  display: grid; place-items: center; margin-top: 2px;
}
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--text-2); font-size: var(--fs-sm); }
.step .term { margin-top: var(--s3); }

/* ---------------------------------------------------------------- faq */

.faq { display: grid; gap: 0; max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq summary {
  cursor: pointer; font-weight: 500; list-style: none;
  display: flex; align-items: center; gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; font-family: var(--mono); color: var(--accent); flex: none;
}
.faq details[open] summary::before { content: "\2212"; }
.faq p { color: var(--text-2); font-size: var(--fs-sm); margin: var(--s3) 0 0 var(--s5); }

/* ---------------------------------------------------------------- cta */

.closer {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2); padding: var(--s7);
  text-align: center;
}
.closer h2 { margin-left: auto; margin-right: auto; }
.closer p { margin-left: auto; margin-right: auto; }
.closer .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s7); color: var(--text-2); }
.foot-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  margin-bottom: var(--s7);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-3);
  margin: 0 0 var(--s3);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--text-2); font-size: var(--fs-sm); }
.foot a:hover { color: var(--text); }
.foot .fine { border-top: 1px solid var(--line); padding-top: var(--s5); }
.foot .fine p { margin-bottom: var(--s2); }

/* ---------------------------------------------------------------- misc */

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); background: var(--surface-2);
  padding: var(--s4) var(--s5); font-size: var(--fs-sm);
  color: var(--text-2); max-width: 78ch;
}
.note strong { color: var(--text); }
.note--warn { border-left-color: var(--warn); }
.note p:last-child { margin-bottom: 0; }

/* Utilities. These exist because the CSP is `style-src 'self'` with no
 * 'unsafe-inline', which blocks style attributes in markup. A handful of named
 * classes is a cheaper price than weakening the policy for cosmetics. */
.mt-1 { margin-top: var(--s3); }
.mt-2 { margin-top: var(--s4); }
.mt-3 { margin-top: var(--s5); }
.mt-4 { margin-top: var(--s6); }
.mt-5 { margin-top: var(--s7); }
.mb-0 { margin-bottom: 0; }
.tight { margin: var(--s3) 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.centered { margin-left: auto; margin-right: auto; }
.cap { text-align: left; margin-bottom: 10px; }
.scroll-box { max-height: 280px; overflow: auto; }

.sw--detect { background: var(--m-detect); }
.sw--defect { background: var(--m-defect); }
.sw--ppe    { background: var(--m-ppe); }
.sw--anpr   { background: var(--m-anpr); }

.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
