/* AIMRIS landing, variant B: Control room.
   The page is the console as a site security booth sees it at night:
   graphite surfaces, one amber accent, signal red/green only for events. */

:root {
  --bg: #0c0f14;
  --band: #161b24;
  --panel: #141922;
  --panel-2: #11151c;
  --raised: #1c2230;
  --line: #262d3a;
  --line-2: #343c4c;
  --field-line: #6e7888;   /* form borders: 4.3:1 on the field, 3.9:1 on panels */

  --text: #e9ecef;
  --muted: #a2abb7;
  --dim: #8a94a3;

  --amber: #f5a800;
  --amber-hi: #ffb933;
  --amber-ink: #14151a;
  --amber-ink-2: #413215;  /* secondary text on amber, 6.2:1 */
  --amber-tint: rgba(245, 168, 0, 0.12);
  --amber-line: rgba(245, 168, 0, 0.45);

  --alert: #e0442f;
  --alert-fill: #c8382a;
  --alert-text: #f2604a;
  --alert-tint: rgba(224, 68, 47, 0.18);
  --alert-line: rgba(224, 68, 47, 0.5);
  --ok: #1e9e62;
  --ok-text: #3dbe84;
  --ok-tint: rgba(30, 158, 98, 0.18);
  --ok-line: rgba(30, 158, 98, 0.5);

  --f-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 3vw, 32px);
  --wrap: 1376px;
  --top-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
  scrollbar-color: var(--line-2) var(--bg);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(245, 168, 0, 0.18);
}

::selection { background: var(--amber); color: var(--amber-ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 3px;
}

img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--amber-ink); padding: 10px 14px;
  border-radius: 4px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); }
.dot-amber { background: var(--amber); }
.dot-alert { background: var(--alert); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 4px;
  font: 600 15px/1.1 var(--f-ui);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hi); color: var(--amber-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--raised); border-color: var(--dim); color: var(--text); }
.btn-quiet {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0;
  color: var(--text); font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color 0.15s;
}
.btn-quiet:hover { color: var(--text); text-decoration-color: var(--amber); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 15, 20, 0.95);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.brand { display: block; color: var(--text); padding: 4px 0; }
.brand .logo { width: auto; height: 26px; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}
.top-nav a:hover { color: var(--text); background: var(--raised); }
.top .btn { flex: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(22px, 2vw, 28px) 0 clamp(64px, 8vw, 112px); }
.hero-head { display: grid; gap: 12px; margin-bottom: clamp(18px, 1.6vw, 22px); }
h1 {
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.03; font-weight: 800; letter-spacing: -0.026em;
  font-stretch: 104%;
}
.h1-line { display: block; }
.hero-sub {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 40px; flex-wrap: wrap;
}
.lead { font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 76ch; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.console-note { font-size: 13px; color: var(--dim); margin-top: 12px; max-width: 100ch; }

/* ---------- console ---------- */
.console {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9);
}
.con-bar {
  display: flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 0 10px 0 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 13px; white-space: nowrap;
}
.con-title { display: flex; align-items: center; gap: 8px; }
.con-title b { font-weight: 700; }
.con-crumb { color: var(--muted); }
.con-crumb::before { content: "/"; color: var(--dim); margin: 0 8px; }
.con-title .con-crumb::before { margin-left: 0; }
.con-site { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; }
.con-hint {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line);
}
.con-review {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  padding: 3px 10px 3px 4px; border-radius: 4px;
  border: 1px solid var(--alert-line); background: var(--alert-tint);
  color: #ffd4cc; font-weight: 600;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.con-review b {
  min-width: 24px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  background: var(--alert-fill); color: #fff; border-radius: 3px; font-size: 13px; font-weight: 600;
}
.con-review.is-zero { border-color: var(--line-2); background: transparent; color: var(--muted); }
.con-review.is-zero b { background: var(--raised); color: var(--muted); }
.lbl-short { display: none; }
.con-review.pulse, .rail-n.pulse { animation: badge-pulse 1.1s var(--ease); }
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 68, 47, 0.75); }
  100% { box-shadow: 0 0 0 12px rgba(224, 68, 47, 0); }
}
.con-play {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.con-play:hover { background: var(--raised); border-color: var(--dim); }
.con-play svg { fill: currentColor; }
.con-play .i-play { display: none; }
.con-play[data-paused="true"] .i-play { display: block; }
.con-play[data-paused="true"] .i-pause { display: none; }
.con-play[data-paused="true"] { border-color: var(--amber-line); color: var(--amber); }

.con-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 312px;
  grid-template-areas:
    "rail stage feed"
    "rail wall feed";
  grid-template-rows: auto 1fr;
}

/* icon rail: the real console's sections; two link to this page */
.con-rail { grid-area: rail; background: var(--panel-2); border-right: 1px solid var(--line); padding: 8px 0; }
.con-rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail-i {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 36px; border-radius: 6px; color: var(--dim);
}
.rail-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-i .knob { fill: var(--panel-2); }
.rail-i.is-on { color: var(--amber); background: var(--amber-tint); box-shadow: inset 0 0 0 1px var(--amber-line); }
a.rail-i { color: var(--muted); transition: color 0.15s, background-color 0.15s; }
a.rail-i:hover { color: var(--text); background: var(--raised); }
.rail-i::after {
  content: attr(data-tip); position: absolute; z-index: 10;
  left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 1.2;
  color: var(--text); background: var(--raised); border: 1px solid var(--line-2);
  padding: 5px 8px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.rail-i:hover::after, .rail-i:focus-visible::after { opacity: 1; }
.rail-n {
  position: absolute; top: -3px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--alert-fill); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}
.rail-n.is-zero { display: none; }

.stage { grid-area: stage; padding: 10px 12px 0; min-width: 0; }
.stage-view {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; border-radius: 4px; overflow: hidden;
}
.stage-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-view::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: var(--bg); opacity: 0;
}
.stage-view.is-switching::after { animation: cut 0.32s var(--ease); }
@keyframes cut { 0% { opacity: 0.85; } 100% { opacity: 0; } }

.hud { position: absolute; z-index: 3; margin: 0; }
.hud-tl {
  top: 10px; left: 10px; right: 120px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.hud-cam {
  background: var(--amber); color: var(--amber-ink);
  font-size: 13px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: 3px;
}
.hud-place, .hud-check {
  background: rgba(12, 15, 20, 0.82); color: var(--text);
  font-size: 13px; font-weight: 500; line-height: 1; padding: 5px 8px; border-radius: 3px;
}
.hud-check { color: #c9d0d8; font-weight: 400; }
.hud-tr {
  top: 10px; right: 10px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(12, 15, 20, 0.82); padding: 5px 8px; border-radius: 3px;
  font-size: 13px; line-height: 1;
}
.hud-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px;
  background: rgba(255, 255, 255, 0.14);
}
.hud-progress i {
  display: block; height: 100%; background: var(--amber);
  transform-origin: left center; transform: scaleX(0);
}
.stage-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  flex-wrap: wrap; padding: 7px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.4;
}
.stage-tap { display: none; }
.stage-next { color: var(--dim); }
.stage-next b { color: var(--text); font-weight: 500; }

.wall { grid-area: wall; padding: 8px 12px 12px; min-width: 0; }
.wall-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: 3px; overflow: hidden;
  background: #000; cursor: pointer;
}
.tile img, .tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.8; transition: opacity 0.2s;
}
.tile video { z-index: 1; }
.tile:hover img, .tile:hover video { opacity: 1; }
.tile-cam {
  position: absolute; left: 4px; bottom: 4px; z-index: 2;
  font: 600 12px/1 var(--f-mono); color: #fff;
  background: rgba(12, 15, 20, 0.85); padding: 3px 5px; border-radius: 2px;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  --c: var(--amber); --l: 12px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--amber-line); }
.tile[aria-pressed="true"]::after { opacity: 1; }
.tile[aria-pressed="true"] img, .tile[aria-pressed="true"] video { opacity: 1; }
.tile[aria-pressed="true"] .tile-cam { background: var(--amber); color: var(--amber-ink); }
.tile.is-next .tile-cam { box-shadow: inset 0 0 0 1px var(--amber-line); }
.tile:focus-visible { outline-offset: 1px; }

.feed {
  grid-area: feed; min-width: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  contain: size;
}
.feed-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px 10px; border-bottom: 1px solid var(--line); flex: none;
}
.feed-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.feed-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.feed-live .dot { animation: blink 2s steps(1) infinite; }
.feed-live.is-paused .dot { animation: none; background: var(--dim); }
@keyframes blink { 50% { opacity: 0.25; } }
.feed-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.feed-pill {
  position: sticky; top: 8px; z-index: 2;
  display: block; width: max-content; margin: 8px auto -38px;
  min-height: 30px; padding: 0 14px; border: 0; border-radius: 15px;
  background: var(--amber); color: var(--amber-ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7);
}
.feed-pill:hover { background: var(--amber-hi); }
.feed-pill[hidden] { display: none; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.ev { border-bottom: 1px solid var(--line); }
.ev.is-new { animation: ev-in 0.6s var(--ease); }
@keyframes ev-in {
  0% { opacity: 0; transform: translateY(-8px); background: var(--amber-tint); }
  40% { opacity: 1; transform: none; background: var(--amber-tint); }
  100% { background: transparent; }
}
.ev.is-flash { animation: ev-flag 1.1s var(--ease); }
@keyframes ev-flag {
  0% { box-shadow: inset 0 0 0 2px var(--alert); background: var(--alert-tint); }
  100% { box-shadow: inset 0 0 0 2px transparent; background: transparent; }
}
.ev-main {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 11px; align-items: start;
  width: 100%; padding: 10px 14px; margin: 0;
  background: transparent; border: 0; text-align: left; cursor: pointer;
  transition: background-color 0.15s;
}
.ev-main:hover { background: var(--raised); }
.ev-main:focus-visible { outline-offset: -2px; }
.ev.is-active .ev-main { background: var(--amber-tint); }
.ev-thumb { width: 80px; height: 60px; border-radius: 3px; background: #000; }
.ev-text { display: block; min-width: 0; }
.ev-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.ev-detail { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.ev-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px;
  margin-top: 5px; font-size: 13px; color: var(--dim); line-height: 1.3;
}
.ev-where .mono { color: var(--muted); font-size: 13px; }
.feed-more {
  display: none; width: 100%; min-height: 44px; margin: 0; padding: 0 14px;
  background: transparent; border: 0; border-top: 1px solid var(--line);
  color: var(--amber); font-size: 14px; font-weight: 600; cursor: pointer;
}
.feed-more:hover { background: var(--raised); }
.feed-more[hidden] { display: none !important; }
.feed-more:focus-visible { outline-offset: -2px; }

.chip {
  display: inline-flex; align-items: center; flex: none;
  font: 600 12px/1 var(--f-ui); padding: 3px 6px; border-radius: 3px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.chip-alert { color: #ffd4cc; background: var(--alert-tint); border-color: var(--alert-line); }
.chip-entry { color: #c3f0d9; background: var(--ok-tint); border-color: var(--ok-line); }
.chip-done { color: #c3f0d9; border-color: var(--ok-line); }
.chip-amber { color: var(--amber); border-color: var(--amber-line); background: var(--amber-tint); }

/* ---------- sections ---------- */
.section {
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.section-band {
  background: var(--band);
  --panel: #1c2230;
  --panel-2: #191e2a;
  --line: #2c3444;
}
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 56px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
h2 {
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.022em;
  font-stretch: 104%;
}
.sec-lead { font-size: clamp(16px, 1.2vw, 17.5px); color: var(--muted); max-width: 58ch; }
.sec-lead a { color: var(--amber); }

/* camera panel chrome, shared by checks / dev */
.cam {
  margin: 0; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.cam-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 12px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.cam-id { color: var(--amber); font-size: 12.5px; font-weight: 600; }
.cam-place { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cam-clock { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cam-view { position: relative; aspect-ratio: 16 / 9; background: #000; }
.cam-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-play {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 10px; margin: 0; border: 0; background: transparent; cursor: pointer;
}
.cam-play i {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px 0 11px; border-radius: 17px;
  background: rgba(12, 15, 20, 0.86); border: 1px solid rgba(255, 255, 255, 0.3);
  font: 600 13px/1 var(--f-ui); font-style: normal; color: var(--text);
  transition: opacity 0.2s, background-color 0.15s;
}
.cam-play svg { width: 14px; height: 14px; fill: var(--amber); }
.cam-play .i-pause { display: none; }
.cam.is-playing .cam-play .i-play { display: none; }
.cam.is-playing .cam-play .i-pause { display: block; }
.cam.is-playing .cam-play i { opacity: 0; }
.cam.is-playing .cam-play:hover i, .cam.is-playing .cam-play:focus-visible i { opacity: 1; }
.cam-play:hover i { background: rgba(12, 15, 20, 0.95); border-color: var(--amber-line); }
.cam-play:focus-visible { outline-offset: -4px; border-radius: 0; }
.cam-log {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 42px; padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.35; color: var(--dim);
}
.cam-log .log-t { font-size: 12.5px; color: var(--dim); }
.cam-log .log-text { min-width: 0; flex: 1 1 200px; }
.cam-log.has-event .log-text { color: var(--text); }
.cam-log.has-event .log-text span { color: var(--muted); }
.cam-log.is-new { animation: log-in 0.8s var(--ease); }
@keyframes log-in { 0% { background: var(--amber-tint); } 100% { background: transparent; } }

/* ---------- checks ---------- */
.check { margin-bottom: clamp(64px, 8vw, 104px); }
.check-wide {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 3.4vw, 56px); align-items: center;
}
.check-copy h3 {
  font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; font-weight: 800;
  letter-spacing: -0.016em; font-stretch: 104%; margin-bottom: 8px;
}
.check-line { font-size: 17.5px; line-height: 1.45; color: var(--text); font-weight: 500; margin-bottom: 10px; }
.check-copy > p:not(.check-line):not(.readout) { color: var(--muted); max-width: 58ch; }
.check-stack .check-copy { margin-top: 22px; }

.rules { margin: 24px 0 0; border-top: 1px solid var(--line); }
.rules div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.rules dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rules dd { margin: 0; color: var(--muted); text-align: right; }
.sw { width: 16px; height: 16px; border-radius: 2px; flex: none; }
.sw-red { border: 1px dashed var(--alert); background: repeating-linear-gradient(135deg, rgba(224, 68, 47, 0.55) 0 2px, transparent 2px 5px); }
.sw-green { border: 1px dashed var(--ok); background: repeating-linear-gradient(135deg, rgba(30, 158, 98, 0.55) 0 2px, transparent 2px 5px); }
.sw-both { border: 1px dashed var(--alert); background: linear-gradient(135deg, rgba(30, 158, 98, 0.55) 0 50%, rgba(224, 68, 47, 0.7) 50% 100%); }

.check-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 56px) clamp(24px, 3vw, 40px);
  margin-bottom: clamp(72px, 8vw, 112px);
}
.check-cell { margin: 0; display: flex; flex-direction: column; }
.check-cell .check-copy { margin-top: 18px; display: flex; flex-direction: column; flex: 1; }
.check-cell .check-copy h3 { font-size: clamp(20px, 1.6vw, 24px); }
.check-cell .check-line { font-size: 16.5px; margin-bottom: 6px; }
.check-cell .check-copy > p:not(.check-line):not(.readout) { font-size: 15px; }
.readout {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted); line-height: 1.45;
}
.check-cell .readout { margin-top: 14px; }
.readout-k::after { content: ":"; }
.readout b { color: var(--amber); font-weight: 600; }
.readout-n { color: var(--dim); }

.ops { margin-bottom: clamp(56px, 7vw, 96px); }
.ops-intro {
  font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.25;
  letter-spacing: -0.01em; margin-bottom: 24px; max-width: 30ch;
}
.ops-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.ops .check { margin-bottom: 0; }
.minitab { margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.minitab-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
  padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.minitab-head b { color: var(--text); font-weight: 600; }
.minitab-sub { grid-column: 1 / -1; color: var(--dim); }
.minitab-rows { list-style: none; margin: 0; padding: 0; }
.minitab-rows li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35;
}
.minitab-rows li:last-child { border-bottom: 0; }
.minitab-rows canvas { width: 56px; height: 42px; border-radius: 2px; background: #000; }
.minitab-rows .mt-sub { display: block; font-size: 13px; color: var(--dim); }
.minitab-rows .mt-dur { color: var(--amber); font-weight: 600; font-size: 13px; }
.minitab-rows .mono { font-size: 13px; }
.minitab-rows li.is-new { animation: log-in 0.8s var(--ease); }
.minitab-rows .minitab-empty { display: block; color: var(--dim); padding: 14px 12px; font-size: 13.5px; }

.also {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 56px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.also h3 { font-size: 19px; font-weight: 700; }
.also-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; }
.also p { color: var(--muted); font-size: 15px; }
.also b { color: var(--text); font-weight: 600; }

/* ---------- how it works ---------- */
.chain {
  --gap: clamp(28px, 4vw, 64px);
  --vis-h: clamp(190px, 16vw, 236px);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px var(--gap);
}
.station { position: relative; min-width: 0; }
.station-vis { height: var(--vis-h); border-radius: 6px; overflow: hidden; position: relative; }
.station:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--vis-h) / 2); left: 100%;
  width: var(--gap); border-top: 1px dashed var(--line-2);
}
.link-tag {
  position: absolute; z-index: 1; top: calc(var(--vis-h) / 2); left: calc(100% + var(--gap) / 2);
  transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--band); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 3px;
}
.station h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 20px 0 6px; }
.station p { color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.station-cams { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.station-cams img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 3px; opacity: 0.9; }
.station-edge .station-vis { background: #000; }
.station-edge .station-vis video { width: 100%; height: 100%; object-fit: cover; }
.station-edge .station-vis::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 2;
  --c: var(--amber); --l: 18px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
.station-hub { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.hub-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700;
}
.hub-langs { display: flex; gap: 4px; }
.hub-langs b {
  font: 500 12px/1 var(--f-mono); color: var(--muted);
  padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 3px;
}
.hub-langs b.is-on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.hub-roles {
  list-style: none; margin: 0; padding: 4px 0; flex: 1;
  display: flex; flex-direction: column; justify-content: space-evenly;
}
.hub-roles li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 12px; font-size: 14px; }
.hub-roles .mono { font-size: 12.5px; color: var(--dim); }
.hub-roles li:nth-child(4) .mono { color: var(--amber); }

.latency {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: center;
  margin-top: clamp(56px, 7vw, 88px); padding-top: 36px; border-top: 1px solid var(--line);
}
.latency h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.latency p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.scale { margin: 0; padding-top: 58px; }
.scale-track { position: relative; height: 12px; background: var(--raised); border-radius: 2px; }
.section-band .scale-track { background: #262d3b; }
.scale-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 87.5%; border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, var(--amber) 0 32.14%, rgba(245, 168, 0, 0.32) 32.14% 100%);
}
.scale-mark {
  position: absolute; bottom: 0; height: 58px; padding-left: 9px;
  border-left: 1px solid var(--text);
  display: flex; flex-direction: column; justify-content: flex-start;
  font-size: 13px; color: var(--muted); line-height: 1.3; white-space: nowrap;
}
.scale-mark b { font-size: 15px; color: var(--text); font-weight: 600; }
.scale-med { left: 28.125%; }
.scale-p95 { left: 87.5%; padding-left: 0; padding-right: 9px; border-left: 0; border-right: 1px solid var(--text); transform: translateX(-100%); text-align: right; align-items: flex-end; }
.scale-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--dim); }

/* ---------- review loop ---------- */
.loop {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 56px; align-items: start;
}
.loop-steps { list-style: none; margin: 0; padding: 0; }
.loop-steps li {
  position: relative;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 16px;
  padding-bottom: 24px;
}
.loop-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px;
  width: 1px; background: var(--line-2);
}
.ls-n {
  grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.ls-t { font-weight: 700; font-size: 16px; line-height: 1.35; padding-top: 3px; }
.ls-d { color: var(--muted); font-size: 14px; line-height: 1.45; }
.loop-steps li.is-done .ls-n { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.loop-steps li.is-current .ls-n { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 4px var(--amber-tint); }
.loop-steps li.is-skipped { opacity: 0.4; }

.case {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 40px 80px -56px rgba(0, 0, 0, 0.9);
}
.case-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 12px;
  min-height: 42px; padding: 0 12px 0 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 13px;
}
.case-bar b { font-weight: 700; }
.case-steps { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.case-steps li {
  width: 28px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 3px;
  font: 600 12px/1 var(--f-mono); color: var(--muted);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.case-steps li.is-done { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.case-steps li.is-current { border-color: var(--amber); color: var(--amber); }
.case-steps li.is-skipped { opacity: 0.4; }
.case-state {
  font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 3px 7px; border-radius: 3px;
  border: 1px solid var(--alert-line); color: #ffd4cc; background: var(--alert-tint);
}
.case-state.st-amber { color: var(--amber); border-color: var(--amber-line); background: var(--amber-tint); }
.case-state.st-ok { color: #c3f0d9; border-color: var(--ok-line); background: var(--ok-tint); }
.case-state.st-muted { color: var(--muted); border-color: var(--line-2); background: transparent; }
.case-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.case-photo { position: relative; background: #000; aspect-ratio: 4 / 3; align-self: start; }
.case-photo canvas { width: 100%; height: 100%; }
.case-photo-tag {
  position: absolute; left: 8px; bottom: 8px; font-size: 12px; line-height: 1;
  background: rgba(12, 15, 20, 0.85); color: var(--text); padding: 5px 7px; border-radius: 3px;
}
.case.is-waiting .case-photo canvas { opacity: 0.35; }
.case-info { padding: 20px 22px 22px; display: flex; flex-direction: column; min-width: 0; }
.case-title { font-size: 21px; line-height: 1.25; font-weight: 700; margin-bottom: 6px; }
.case-meta { font-size: 13.5px; color: var(--muted); }
.case-meta .mono { color: var(--text); font-size: 13px; }
.case-detail { font-size: 14.5px; color: var(--text); margin-top: 6px; }
.case-src { font-size: 13px; color: var(--dim); margin-top: 2px; margin-bottom: 18px; }
.case-stage { border-top: 1px solid var(--line); padding-top: 16px; }
.case-stage.is-new { animation: log-in 0.9s var(--ease); }
.case-msg { font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.case-msg b { font-weight: 600; color: var(--amber); }
.case-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.case-hint { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* ---------- forms ---------- */
.field-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.req { color: var(--amber); }
.opt { color: var(--dim); font-weight: 400; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 44px; padding: 0 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--field-line); border-radius: 4px;
  font-size: 15px; line-height: 1.4;
  transition: border-color 0.15s;
}
textarea { padding: 10px 12px; resize: vertical; min-height: 66px; display: block; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A2ABB7' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
select option { background: var(--panel); color: var(--text); }
input::placeholder, textarea::placeholder { color: #7d8796; opacity: 1; }
input:hover:not(:disabled), select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--amber); }
input:disabled { opacity: 0.6; cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--alert-text) !important; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--amber); cursor: pointer; }

/* ---------- rollout ---------- */
.rail {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 0;
}
.rail li { position: relative; padding-right: 28px; }
.rail li:not(:last-child)::before {
  content: ""; position: absolute; top: 23px; left: 60px; right: 16px;
  border-top: 1px solid var(--line-2);
}
.rail-num {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 22px;
  font-size: 18px; font-weight: 600; color: var(--amber);
  --c: var(--amber); --l: 11px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
.rail h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.rail p { color: var(--muted); font-size: 15.5px; max-width: 30ch; }

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 56px; align-items: start;
}
.faq-side { position: sticky; top: calc(var(--top-h) + 32px); }
.faq-side h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 44px 18px 0; font-size: 17px; font-weight: 600; line-height: 1.4;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--amber), var(--amber)) center / 14px 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) center / 2px 14px no-repeat;
  transition: background-size 0.2s var(--ease);
}
.faq details[open] summary::after { background-size: 14px 2px, 2px 0; }
.faq summary:hover { color: #fff; }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { color: var(--muted); padding: 0 44px 20px 0; max-width: 62ch; }

/* ---------- in development (compact) ---------- */
.section-compact { padding-block: clamp(56px, 6vw, 80px); }
.dev-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 28px; }
.dev-head h2 { font-size: clamp(24px, 2.3vw, 32px); }
.dev-head .sec-lead { font-size: 16px; }
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
.dev-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dev-copy h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.dev-copy p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.dev-badge {
  display: inline-block; font: 600 12.5px/1 var(--f-ui); color: var(--amber); white-space: nowrap;
  border: 1px dashed var(--amber-line); border-radius: 3px; padding: 4px 7px;
}
.cam-dev, .ask { border-style: dashed; border-color: var(--line-2); }
.ask { background: var(--panel); border-width: 1px; border-radius: 6px; overflow: hidden; }
.ask-body { padding: 12px; display: grid; gap: 8px; }
.ask-q {
  padding: 8px 10px; font-size: 13.5px; line-height: 1.4; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
}
.ask-input {
  padding: 8px 10px; font-size: 13.5px; color: var(--dim);
  border: 1px dashed var(--line-2); border-radius: 4px;
}

/* ---------- demo request: the destination ---------- */
.section-demo {
  background: var(--amber); color: var(--amber-ink); border-top: 0;
}
.section-demo ::selection { background: var(--amber-ink); color: var(--amber); }
.demo-wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px; align-items: start;
}
.demo-copy h2 { margin-bottom: 16px; font-size: clamp(32px, 3.6vw, 52px); }
.demo-lead { font-size: clamp(16.5px, 1.3vw, 18px); color: var(--amber-ink-2); max-width: 46ch; }
.demo-points { list-style: none; margin: 28px 0; padding: 0; }
.demo-points li {
  position: relative; padding: 11px 0 11px 28px; border-top: 1px solid rgba(20, 21, 26, 0.22);
  font-size: 16px; font-weight: 500;
}
.demo-points li:last-child { border-bottom: 1px solid rgba(20, 21, 26, 0.22); }
.demo-points li::before {
  content: ""; position: absolute; left: 1px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  --c: var(--amber-ink); --l: 5px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
.demo-mail { color: var(--amber-ink-2); font-size: 16px; }
.demo-mail a { color: var(--amber-ink); font-weight: 700; }
.demo-mail a:hover { color: var(--amber-ink); text-decoration-thickness: 2px; }
.demo-copy :focus-visible { outline-color: var(--amber-ink); }

.form {
  background: var(--panel); color: var(--text); border-radius: 8px; overflow: hidden;
  box-shadow: 0 36px 72px -36px rgba(20, 21, 26, 0.65), 0 2px 6px rgba(20, 21, 26, 0.2);
}
.form ::selection { background: var(--amber); color: var(--amber-ink); }
.form-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: 42px; padding: 8px 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 13px;
}
.form-bar .mono { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; padding: 22px; }
.field { min-width: 0; }
.field-err { color: var(--alert-text); font-size: 13px; line-height: 1.4; margin-top: 6px; }
.form-hint { grid-column: 1 / -1; margin-top: -6px; font-size: 13px; color: var(--muted); }
.form-contact-err { grid-column: 1 / -1; margin-top: -10px; }
.consent {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  padding-top: 4px;
}
.consent label { font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.consent .field-err { grid-column: 2; margin-top: 0; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 0 22px 22px; }
.form-note { flex: 1 1 220px; font-size: 13px; color: var(--dim); }
.form-status { padding: 0 22px 22px; font-size: 14.5px; color: var(--ok-text); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.foot { padding: 56px 0 36px; }
.foot-in {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr);
  gap: 32px 48px;
}
.foot-brand .logo { width: auto; height: 28px; color: var(--text); margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.foot-langs { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.foot-langs a { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.foot-langs a:hover { color: var(--text); text-decoration: underline; }
.foot-langs a[aria-current] { color: var(--text); }
.foot-note { font-size: 13px; line-height: 1.55; color: var(--dim); }
.foot-legal {
  grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.foot-legal a { color: var(--text); }

/* ================= responsive ================= */
@media (min-width: 1680px) {
  :root { --wrap: 1520px; }
}

@media (max-width: 1279px) {
  .con-rail { display: none; }
  .con-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "stage feed"
      "wall feed";
  }
  .con-site { display: none; }
}

@media (max-width: 1100px) {
  .top-nav a { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 1023px) {
  .con-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "wall" "feed";
  }
  .feed { contain: none; border-left: 0; border-top: 1px solid var(--line); }
  .feed-scroll { overflow: visible; }
  .feed-pill { position: static; margin: 10px auto; }
  .feed:not(.is-all) .feed-list > li:nth-child(n + 4) { display: none; }
  .feed-more { display: block; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .check-wide { grid-template-columns: minmax(0, 1fr); }
  .check-wide .check-copy { max-width: 64ch; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: minmax(0, 1fr); --vis-h: auto; }
  .station-vis { aspect-ratio: 16 / 9; height: auto; }
  .station-hub { aspect-ratio: auto; }
  .station:not(:last-child)::after, .link-tag { display: none; }
  .chain .station { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .chain .station .station-vis { grid-row: span 3; }
  .chain .station h3 { margin-top: 0; }
  .latency { grid-template-columns: minmax(0, 1fr); }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .loop-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .loop-steps li { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; row-gap: 8px; }
  .loop-steps li:not(:last-child)::before { left: 40px; right: -8px; top: 15px; bottom: auto; width: auto; height: 1px; }
  .ls-n { grid-row: auto; }
  .ls-d { display: none; }
  .ls-t { font-size: 14px; padding-top: 0; }
  .dev { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .rail li:nth-child(2)::before { display: none; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .demo-wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-note { grid-column: 1 / -1; }
}

@media (max-width: 939px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .con-hint { display: none; }
}

@media (max-width: 899px) and (min-width: 720px) {
  .ops-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
}

@media (max-width: 719px) {
  :root { --top-h: 56px; }
  .brand .logo { height: 22px; }
  h1 { font-size: clamp(30px, 8.4vw, 36px); }
  .hero-actions { gap: 8px 18px; }

  .con-bar { gap: 10px; padding: 0 8px 0 12px; }
  .con-crumb { display: none; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .stage { padding: 8px 8px 0; }
  .hud-tl { top: 7px; left: 7px; right: 92px; gap: 4px; }
  .hud-check { display: none; }
  .hud-place { font-size: 12.5px; }
  .hud-tr { top: 7px; right: 7px; font-size: 12.5px; }
  .stage-foot { font-size: 12.5px; flex-direction: column; gap: 2px; }
  .stage-tap { display: inline; color: var(--text); }
  .wall { padding: 4px 0 8px; }
  .wall-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 8px; scroll-padding-inline: 8px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .wall-grid::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 116px; scroll-snap-align: start; }

  .check-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .chain .station { grid-template-columns: minmax(0, 1fr); }
  .chain .station .station-vis { grid-row: auto; margin-bottom: 18px; }
  .station-hub { min-height: 0; }
  .scale { padding-top: 64px; }
  .scale-mark { height: 64px; font-size: 12.5px; }
  .loop-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .loop-steps li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; padding-bottom: 16px; }
  .loop-steps li:not(:last-child)::before { left: 14.5px; right: auto; top: 34px; bottom: 2px; width: 1px; height: auto; }
  .ls-n { grid-row: span 2; }
  .ls-t { font-size: 15px; padding-top: 4px; }
  .ls-d { display: block; }
  .case-bar { flex-wrap: wrap; padding: 8px 12px; }
  .case-steps { display: flex; order: 3; flex-basis: 100%; }
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-info { padding: 18px 16px 18px; }
  .also-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .dev-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .rail li::before { display: none; }
  .rail-num { grid-row: span 2; margin-bottom: 0; }
  .rail p { max-width: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .form-foot { padding: 0 16px 18px; }
  .form-status { padding: 0 16px 18px; }
  .form-bar .mono { display: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 16px; }
  .rules div { flex-wrap: wrap; }
  .cam-log { gap: 6px 10px; }
  .cam-log .log-text { order: 3; flex-basis: 100%; }
  .cam-log .chip { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .feed-live .dot { animation: none; }
}
