:root {
  --bg: #0e0905;
  --bg-deep: #090503;
  --panel: #171009;
  --panel-2: #1f160d;
  --panel-3: #2a1c11;
  --text: #f3e8d4;
  --text-soft: #d6c7b0;
  --muted: #b6a589;
  --faint: #8c7c65;
  --amber: #f0a63c;
  --amber-bright: #ffcb78;
  --orange: #ff5c26;
  --gold: #d9a847;
  --silver: #f5eeda;
  --node: #ffd35f;
  --red: #ef4130;
  --red-soft: #ff6b52;
  --line: rgba(230, 183, 106, 0.16);
  --line-strong: rgba(230, 183, 106, 0.34);
  --bezel-1: #ddcba5;
  --bezel-2: #b39b6f;
  --bezel-3: #786342;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 75% 45% at 78% -8%, rgba(240, 166, 60, 0.1), transparent 62%),
    radial-gradient(ellipse 45% 35% at 8% 12%, rgba(217, 168, 71, 0.055), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 166, 60, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 166, 60, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 18%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 18%, #000 0%, transparent 78%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--amber);
  color: #180d05;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--silver);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--amber);
  color: #180d05;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 12px;
  color: #180d05;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 9, 5, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(240, 166, 60, 0.65);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--amber);
  opacity: 0.6;
}

.brand-mark::before {
  width: 27px;
  height: 1px;
}

.brand-mark::after {
  width: 1px;
  height: 27px;
}

.brand-mark i {
  width: 6px;
  height: 6px;
  background: var(--node);
  box-shadow: 0 0 10px rgba(255, 211, 95, 0.55);
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--amber-bright);
}

.site-nav .nav-github {
  color: var(--amber);
}

/* Base type and shared bits */

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-square {
  width: 6px;
  height: 6px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(240, 166, 60, 0.4);
  flex: none;
}

.eyebrow-num {
  color: var(--faint);
  font-weight: 400;
}

h1 {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 3.9vw, 3.45rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 20ch;
}

.highlight {
  color: var(--amber-bright);
  text-shadow: 0 0 30px rgba(240, 166, 60, 0.2);
}

h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 22ch;
}

h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.section-head {
  max-width: 800px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-lede {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.section {
  padding: clamp(66px, 8.5vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.section--demo {
  padding-top: clamp(58px, 7vw, 92px);
}

.led {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--node);
  box-shadow: 0 0 8px rgba(255, 211, 95, 0.45);
  animation: led-pulse 2.8s ease-in-out infinite;
  flex: none;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0b04;
  font-weight: 600;
  box-shadow: 0 0 26px rgba(255, 92, 38, 0.14);
}

.btn-primary:hover {
  background: #ff7543;
  border-color: #ff7543;
  color: #140802;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(240, 166, 60, 0.42);
  background: rgba(240, 166, 60, 0.03);
  color: var(--amber-bright);
}

.btn-ghost:hover {
  border-color: var(--amber);
  background: rgba(240, 166, 60, 0.08);
  color: var(--silver);
}

.btn-quiet {
  padding-inline: 7px;
  color: var(--text-soft);
}

.btn-quiet:hover {
  color: var(--amber-bright);
}

/* Hero */

.hero {
  padding: clamp(52px, 7.5vw, 96px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.hero-sub {
  max-width: 50ch;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 9px;
  margin: 24px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-meta .led {
  flex: none;
  margin-top: 0.56em;
}

.meta-sep {
  color: rgba(240, 166, 60, 0.45);
}

.hero-visual {
  min-width: 0;
}

.figure-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.figure-caption > span:first-child {
  color: var(--amber);
}

/* Monitor */

.monitor {
  width: 100%;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.42));
}

.bezel {
  padding: clamp(12px, 1.7vw, 19px) clamp(13px, 1.9vw, 22px) 0;
  border: 1px solid rgba(54, 41, 25, 0.9);
  border-radius: clamp(28px, 4vw, 46px) clamp(30px, 4.4vw, 52px) clamp(24px, 3.4vw, 38px) clamp(26px, 3.8vw, 42px);
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(165deg, var(--bezel-1) 0%, #c8b184 42%, var(--bezel-2) 72%, #8f7953 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 249, 233, 0.7),
    inset 0 -5px 14px rgba(60, 43, 22, 0.46),
    inset 0 0 0 4px rgba(255, 245, 222, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.32);
}

.bezel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 9px;
  border-radius: 7px 9px 5px 5px;
  background: linear-gradient(180deg, #45120b, #2a0a06);
  box-shadow:
    inset 0 1px 0 rgba(255, 202, 140, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.bezel-bar--top {
  margin-bottom: clamp(7px, 1vw, 11px);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #b3271a, #7c1a10);
  color: #ffe9d2;
  font-family: var(--font-mono);
  font-size: clamp(6px, 0.6vw, 7.8px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 8px rgba(179, 39, 26, 0.35);
}

.chip--small {
  padding: 1px 6px 2px;
}

.bar-label,
.bar-menu {
  color: rgba(255, 226, 188, 0.52);
  font-family: var(--font-mono);
  font-size: clamp(5.5px, 0.55vw, 7.2px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bar-menu {
  letter-spacing: 0.12em;
}

.bar-rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: rgba(255, 226, 188, 0.6);
  font-family: var(--font-mono);
  font-size: clamp(5.5px, 0.55vw, 7.2px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bar-rec i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4130;
  box-shadow: 0 0 7px rgba(239, 65, 48, 0.85);
  animation: rec-blink 1.9s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.22; }
}

.screen {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(20px, 3.2vw, 34px) clamp(23px, 3.5vw, 38px) clamp(18px, 2.7vw, 30px) clamp(21px, 3vw, 33px);
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, #1b1209 0%, #120c07 58%, #0a0603 100%);
  box-shadow:
    inset 0 0 0 1px rgba(152, 206, 197, 0.34),
    inset 0 0 0 3px #3a2c1c,
    inset 0 0 28px rgba(0, 0, 0, 0.92),
    inset 0 0 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(22, 14, 7, 0.85);
}

.screen-viz {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.screen-log {
  position: relative;
  z-index: 1;
  padding: 7px clamp(10px, 1.3vw, 15px) 9px;
  border-top: 1px solid rgba(240, 166, 60, 0.22);
  background: linear-gradient(180deg, #100603, #080302 72%, #060201);
  font-family: var(--font-mono);
  text-transform: uppercase;
  overflow: hidden;
}

.screen-log::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  right: 5px;
  width: 2px;
  background: rgba(240, 166, 60, 0.14);
}

.screen-log::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 5px;
  width: 2px;
  height: clamp(15px, 1.9vw, 22px);
  background: rgba(240, 166, 60, 0.55);
  box-shadow: 0 0 6px rgba(240, 166, 60, 0.35);
}

.log-head,
.log-row {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.2fr 1.5fr;
  gap: clamp(5px, 0.7vw, 9px);
  padding-right: 10px;
}

.log-head {
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(240, 166, 60, 0.22);
  color: var(--amber);
  font-size: clamp(6px, 0.6vw, 7.6px);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(240, 166, 60, 0.3);
}

.log-row {
  padding: 1px 10px 1px 0;
  color: rgba(255, 178, 96, 0.8);
  font-size: clamp(6.4px, 0.64vw, 8.2px);
  line-height: 1.55;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.log-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-row.is-fault {
  color: var(--red-soft);
  text-shadow: 0 0 9px rgba(239, 65, 48, 0.32);
}

.log-row.is-terminal {
  color: rgba(255, 138, 112, 0.88);
}

.log-row.is-new {
  color: var(--amber-bright);
  animation: log-flash 720ms ease-out;
}

@keyframes log-flash {
  0% { background: rgba(240, 166, 60, 0.16); }
  100% { background: transparent; }
}

.screen-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 72% 76% at 50% 46%, transparent 46%, rgba(4, 2, 1, 0.44) 88%, rgba(2, 1, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 16%, transparent 82%, rgba(0, 0, 0, 0.3));
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.75);
}

.scanlines,
.facade-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 3px
  );
  opacity: 0.42;
}

.screen-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 38% 24% at 27% 5%, rgba(255, 246, 224, 0.1), transparent 75%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0%, transparent 36%);
}

.screen-refresh {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 18%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 203, 120, 0.075), transparent);
  animation: refresh-sweep 8.5s linear infinite;
}

@keyframes refresh-sweep {
  0% { transform: translateY(-10%); }
  100% { transform: translateY(720%); }
}

.hud {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(6.2px, 0.68vw, 8.6px);
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(240, 166, 60, 0.35);
  pointer-events: none;
}

.hud-key {
  color: var(--amber-bright);
}

.hud-sub {
  color: rgba(214, 199, 176, 0.62);
  font-size: 0.9em;
  letter-spacing: 0.08em;
}

.hud-value {
  color: var(--amber-bright);
  font-size: clamp(10px, 1.4vw, 17px);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.hud--tl {
  top: 4.4%;
  left: 4.4%;
}

.hud--tr {
  top: 4.4%;
  right: 4.4%;
  text-align: right;
  align-items: flex-end;
}

.hud--bl {
  bottom: 5.5%;
  left: 4.4%;
}

.branch-alert {
  position: absolute;
  left: 50%;
  bottom: 24%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(240, 166, 60, 0.4);
  background: rgba(16, 10, 5, 0.76);
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: clamp(6.2px, 0.66vw, 8.2px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(240, 166, 60, 0.32);
  pointer-events: none;
  transition: color 220ms ease, border-color 220ms ease;
}

.branch-alert-led {
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.branch-alert.is-pruned {
  border-color: rgba(239, 65, 48, 0.6);
  color: var(--red-soft);
}

.bezel-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin: clamp(8px, 1vw, 11px) 0 clamp(11px, 1.5vw, 16px);
  padding: 3px 9px;
  border-radius: 5px 5px 9px 10px;
  background: linear-gradient(180deg, #3d100a, #240905);
  box-shadow:
    inset 0 1px 0 rgba(255, 202, 140, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.bezel-plate {
  color: rgba(255, 226, 188, 0.5);
  font-family: var(--font-mono);
  font-size: clamp(5.5px, 0.55vw, 7.2px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bezel-vents {
  width: clamp(38px, 7vw, 78px);
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 214, 170, 0.13) 0,
    rgba(255, 214, 170, 0.13) 1px,
    transparent 1px,
    transparent 4px
  );
}

.bezel-led {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: rgba(255, 226, 188, 0.55);
  font-family: var(--font-mono);
  font-size: clamp(5.5px, 0.55vw, 7.2px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bezel-led i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7f9c5f;
  box-shadow: 0 0 6px rgba(127, 156, 95, 0.65);
}

/* Video */

.video-figure {
  max-width: 980px;
  margin: 0 auto;
}

.monitor--video .screen {
  aspect-ratio: 16 / 9;
}

.video-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0a0603;
}

.video-facade {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0a0603;
  color: var(--amber);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.facade-art,
.facade-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.facade-art svg {
  opacity: 0.88;
  transition: opacity 220ms ease;
}

.facade-duration {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  padding: 3px 7px;
  border: 1px solid rgba(240, 166, 60, 0.34);
  background: rgba(10, 6, 3, 0.72);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(54px, 7vw, 74px);
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--amber-bright);
  filter: drop-shadow(0 0 16px rgba(240, 166, 60, 0.28));
  transition: transform 200ms ease, color 200ms ease;
}

.facade-play svg {
  width: 100%;
  height: auto;
}

.facade-label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 1px solid rgba(240, 166, 60, 0.3);
  background: rgba(10, 6, 3, 0.72);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.75vw, 9px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.video-facade:hover .facade-play {
  color: var(--silver);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-facade:hover .facade-art svg {
  opacity: 1;
}

.video-facade:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: -6px;
}

.video-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
}

.video-slot.is-playing .video-player {
  opacity: 1;
  visibility: visible;
}

.video-slot.is-playing .video-facade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.monitor--video .bezel-led.is-live {
  color: var(--amber);
}

.monitor--video .bezel-led.is-live i {
  background: var(--amber-bright);
  box-shadow: 0 0 7px rgba(240, 166, 60, 0.8);
}

.video-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}

.video-caption {
  display: block;
  margin-top: 17px;
  text-align: center;
}

.caption-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.caption-len {
  padding: 2px 6px;
  border: 1px solid rgba(240, 166, 60, 0.34);
  color: var(--amber);
  font-size: 9px;
}

.caption-sub {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.video-fallback {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.78rem;
}

/* Problem */

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: start;
}

.problem-copy p {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.problem-list {
  display: grid;
  gap: 15px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.problem-list strong {
  color: var(--text);
  font-weight: 600;
}

.list-mark {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(240, 166, 60, 0.36);
  flex: none;
}

.trace-figure {
  margin: 0;
  padding: clamp(15px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(165deg, rgba(240, 166, 60, 0.04), transparent 40%),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.panel-badge {
  padding: 2px 6px;
  border: 1px solid rgba(240, 166, 60, 0.24);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
}

.trace-rows {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.trace-rows li {
  display: grid;
  grid-template-columns: 56px 82px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 7px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(230, 183, 106, 0.055);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
}

.trace-rows li:last-child {
  border-bottom: 0;
}

.tr-time {
  color: var(--faint);
  font-size: 8.5px;
}

.tr-agent {
  color: var(--amber);
  white-space: nowrap;
}

.tr-event {
  color: var(--text-soft);
}

.trace-rows li.is-cause {
  border-left-color: var(--amber);
  background: rgba(240, 166, 60, 0.055);
}

.trace-rows li.is-cause .tr-event {
  color: var(--amber-bright);
}

.trace-rows li.is-failure {
  border-left-color: var(--red);
  background: rgba(239, 65, 48, 0.07);
}

.trace-rows li.is-failure .tr-agent,
.trace-rows li.is-failure .tr-event {
  color: var(--red-soft);
}

.trace-gap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gap-rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(239, 65, 48, 0.55) 0, rgba(239, 65, 48, 0.55) 3px, transparent 3px, transparent 7px);
}

.trace-figure figcaption {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.55;
}

/* Solution cards */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hud-card {
  position: relative;
  padding: 18px 21px 23px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(157deg, rgba(240, 166, 60, 0.045), transparent 34%),
    linear-gradient(160deg, var(--panel-2), var(--panel) 72%);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hud-card::before,
.hud-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(240, 166, 60, 0.48);
  border-style: solid;
  pointer-events: none;
}

.hud-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hud-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.hud-card:hover {
  border-color: var(--line-strong);
}

.hud-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-led {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(240, 166, 60, 0.72);
}

.card-led i {
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.card-led--alert {
  color: var(--red-soft);
}

.card-figure {
  display: flex;
  align-items: center;
  height: clamp(122px, 13.5vw, 164px);
  margin: 10px 0 13px;
}

.card-figure svg {
  width: 100%;
  height: 100%;
}

.card-figure--center {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.hud-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
}

.hud-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.62;
}

.svg-glow {
  fill: none;
  stroke: rgba(245, 238, 218, 0.18);
  stroke-width: 5;
}

.svg-trunk {
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.4;
  opacity: 0.92;
}

.svg-trunk--thin {
  stroke-width: 1.1;
  opacity: 0.8;
}

.svg-trunk--dim {
  opacity: 0.42;
}

.svg-branch {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.85;
}

.svg-branch--dim {
  opacity: 0.24;
}

.svg-edge {
  fill: none;
  stroke: rgba(245, 238, 218, 0.34);
  stroke-width: 1;
}

.svg-edge--muted {
  stroke: rgba(245, 238, 218, 0.2);
}

.svg-node {
  fill: var(--node);
}

.svg-node--gold {
  fill: var(--gold);
}

.svg-node--red {
  fill: var(--red);
}

.svg-threshold {
  stroke: var(--orange);
  stroke-width: 1;
  opacity: 0.62;
}

.svg-threshold--soft {
  opacity: 0.5;
}

.svg-pruned {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.3;
}

.svg-fray {
  fill: none;
  stroke: var(--red);
  stroke-width: 0.8;
  opacity: 0.75;
}

.svg-bracket {
  fill: none;
  stroke: var(--amber);
  stroke-width: 0.8;
  stroke-dasharray: 2 2;
  opacity: 0.6;
}

.svg-trace {
  fill: none;
  stroke: var(--amber-bright);
  stroke-width: 1.7;
}

.svg-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 0.8;
  opacity: 0.3;
}

.svg-label {
  fill: var(--faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.svg-label--amber {
  fill: var(--amber);
}

.svg-label--red {
  fill: var(--red-soft);
}

.mini-prov {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.prov-chip {
  padding: 7px 9px;
  border: 1px solid rgba(240, 166, 60, 0.28);
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.prov-chip--coarse {
  border-style: dashed;
  border-color: rgba(240, 166, 60, 0.44);
  color: var(--muted);
}

.prov-chip--target {
  border-color: rgba(245, 238, 218, 0.38);
  color: var(--silver);
}

.prov-arrow {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.mini-prov-note {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* How it works */

.section--how {
  background:
    linear-gradient(180deg, rgba(240, 166, 60, 0.025), transparent 30%),
    rgba(9, 5, 3, 0.35);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.timeline-readout {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline-controls {
  display: flex;
  gap: 6px;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.rail-btn:hover {
  border-color: var(--line-strong);
  background: rgba(240, 166, 60, 0.06);
  color: var(--amber-bright);
}

.timeline-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: 4px;
}

.timeline-scroller::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  display: flex;
  align-items: stretch;
  gap: 15px;
  width: max-content;
  padding: 2px 2px 6px;
}

.time-step {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(276px, 30vw, 336px);
  scroll-snap-align: start;
  padding: 0 20px 21px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(160deg, rgba(240, 166, 60, 0.04), transparent 30%),
    var(--panel);
}

.time-step::after {
  content: "\2192";
  position: absolute;
  top: 48%;
  right: -13px;
  z-index: 2;
  color: rgba(240, 166, 60, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
}

.time-step:last-child::after {
  display: none;
}

.step-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -20px;
  padding: 9px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(240, 166, 60, 0.018);
}

.step-tick {
  width: 6px;
  height: 6px;
  background: var(--amber);
  box-shadow: 0 0 7px rgba(240, 166, 60, 0.4);
}

.step-time {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.step-index {
  margin-top: 27px;
  color: rgba(240, 166, 60, 0.16);
  font-family: var(--font-mono);
  font-size: 50px;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.time-step h3 {
  position: relative;
  margin: -6px 0 8px;
  color: var(--text);
  font-size: 1.28rem;
}

.time-step p {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-visual {
  display: flex;
  align-items: center;
  min-height: 110px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.step-visual > svg {
  width: 100%;
  height: auto;
}

.mini-events {
  display: grid;
  gap: 5px;
  width: 100%;
}

.mini-event {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(230, 183, 106, 0.06);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
}

.mini-event i {
  width: 5px;
  height: 5px;
  background: var(--amber);
}

.mini-event b {
  overflow: hidden;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-event em {
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
}

.mini-event--warn i {
  background: var(--orange);
}

.mini-event--fail i {
  background: var(--red);
}

.mini-event--fail b {
  color: var(--red-soft);
}

.attribute-visual {
  width: 100%;
}

.attribute-parents {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.attr-chip {
  padding: 3px 5px;
  border: 1px solid rgba(240, 166, 60, 0.22);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
}

.attr-chip--fault {
  border-color: rgba(239, 65, 48, 0.55);
  color: var(--red-soft);
}

.attr-link {
  display: block;
  width: 1px;
  height: 15px;
  margin: 0 auto;
  background: rgba(240, 166, 60, 0.4);
}

.attribute-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line);
}

.attr-target {
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 9px;
}

.attr-verdict {
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.timeline-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.timeline-progress {
  flex: 1;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.timeline-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(240, 166, 60, 0.45);
  transition: width 120ms linear;
}

.timeline-hint {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Interactive explorer */

.instruction {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 16px;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.instruction-mark {
  width: 6px;
  height: 6px;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(240, 166, 60, 0.5);
}

.explorer {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.explorer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 43px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 166, 60, 0.025);
}

.explorer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.explorer-slash {
  color: var(--faint);
}

.explorer-stats {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-fault {
  padding: 2px 6px;
  border: 1px solid rgba(239, 65, 48, 0.34);
  color: var(--red-soft);
}

.explorer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  min-height: 500px;
}

.run-map-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border-right: 1px solid var(--line);
  background: #0d0804;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 166, 60, 0.3) transparent;
}

.run-map-wrap::-webkit-scrollbar {
  height: 7px;
}

.run-map-wrap::-webkit-scrollbar-thumb {
  background: rgba(240, 166, 60, 0.28);
}

.run-map {
  position: relative;
  min-width: 760px;
  height: 500px;
  background-image:
    linear-gradient(rgba(240, 166, 60, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 166, 60, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  background-position: center;
}

.run-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 48%, rgba(6, 3, 1, 0.42) 100%);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.6);
}

.run-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.edge {
  fill: none;
  stroke: rgba(245, 238, 218, 0.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke 160ms ease, opacity 160ms ease;
}

.edge--gold {
  stroke: rgba(217, 168, 71, 0.42);
}

.edge.is-cause {
  stroke: var(--amber-bright);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(240, 166, 60, 0.6));
}

.edge.is-dim {
  opacity: 0.16;
}

.run-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.node {
  position: absolute;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-areas:
    "marker agent"
    "marker event";
  column-gap: 7px;
  row-gap: 2px;
  width: 132px;
  min-height: 54px;
  padding: 8px 9px 9px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 166, 60, 0.28);
  border-radius: 2px;
  background: rgba(28, 19, 11, 0.96);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.node:hover {
  border-color: rgba(240, 166, 60, 0.68);
  background: var(--panel-3);
}

.node:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
}

.node-marker {
  grid-area: marker;
  align-self: start;
  width: 7px;
  height: 7px;
  margin-top: 3px;
  background: var(--node);
  box-shadow: 0 0 7px rgba(255, 211, 95, 0.38);
}

.node-agent {
  grid-area: agent;
  overflow: hidden;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.node-event {
  grid-area: event;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.node.is-cause {
  border-color: rgba(240, 166, 60, 0.72);
  background: #2a1c11;
  box-shadow: 0 0 0 1px rgba(240, 166, 60, 0.2), 0 0 24px rgba(240, 166, 60, 0.1);
}

.node.is-cause .node-marker {
  background: var(--amber-bright);
  box-shadow: 0 0 10px rgba(255, 203, 120, 0.65);
}

.node.is-selected {
  border-color: var(--amber-bright);
  background: #30200f;
  box-shadow: 0 0 0 1px var(--amber-bright), 0 0 28px rgba(240, 166, 60, 0.18);
}

.node.is-dim {
  opacity: 0.34;
}

.node--fault,
.node--failure {
  border-color: rgba(239, 65, 48, 0.55);
}

.node--fault .node-marker,
.node--failure .node-marker {
  background: var(--red);
  box-shadow: 0 0 9px rgba(239, 65, 48, 0.65);
}

.node--fault .node-agent,
.node--failure .node-agent {
  color: var(--red-soft);
}

.node-flag {
  position: absolute;
  top: -16px;
  left: -1px;
  color: var(--red-soft);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.node-flag--failure {
  color: var(--red);
}

.map-noscript {
  position: absolute;
  inset: 20px;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 9, 5, 0.92);
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
}

.inspector {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #120c07;
}

.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 43px;
}

.inspector-title {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.inspector-clear {
  padding: 3px 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.inspector-clear:hover {
  border-color: var(--line-strong);
  color: var(--amber-bright);
}

.inspector-body {
  flex: 1;
  padding: 17px 16px;
  overflow-y: auto;
  max-height: 457px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.inspector-kicker {
  margin-bottom: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.inspector-empty {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.inspector-tip {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.6;
}

.inspector-tip span {
  margin-right: 6px;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.inspector-key {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.7rem;
  line-height: 1.5;
}

.ins-kicker {
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ins-event {
  margin-bottom: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.ins-agent {
  margin-bottom: 12px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ins-summary {
  margin-bottom: 17px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.58;
}

.ins-section {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ins-section h4 {
  margin: 0 0 7px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ins-section ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ins-section li {
  position: relative;
  padding-left: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ins-section li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: var(--amber);
}

.ins-parents {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ins-attribution {
  margin-top: 16px;
  padding: 11px;
  border: 1px solid rgba(239, 65, 48, 0.42);
  background: rgba(239, 65, 48, 0.055);
}

.ins-attribution-head {
  display: block;
  margin-bottom: 6px;
  color: var(--red-soft);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.ins-attribution p {
  margin: 0 0 7px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.ins-attribution strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
}

.ins-chain {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.explorer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  background: rgba(240, 166, 60, 0.02);
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 6px;
  height: 6px;
}

.legend-swatch--node {
  background: var(--node);
}

.legend-swatch--fault {
  background: var(--red);
}

.legend-line {
  width: 16px;
  height: 1px;
  background: var(--amber-bright);
}

.map-hint {
  display: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Use cases */

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.use-card {
  position: relative;
  padding: 20px 21px 23px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(160deg, rgba(240, 166, 60, 0.035), transparent 36%),
    var(--panel);
  transition: border-color 160ms ease;
}

.use-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 34px;
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}

.use-card:hover {
  border-color: var(--line-strong);
}

.use-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.use-index {
  color: var(--amber);
  font-size: 9px;
}

.use-tag {
  padding-left: 9px;
  border-left: 1px solid rgba(240, 166, 60, 0.35);
}

.use-card h3 {
  margin: 30px 0 9px;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.4;
}

.use-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.62;
}

/* Quickstart */

.section--quickstart {
  background:
    radial-gradient(ellipse 55% 55% at 82% 50%, rgba(240, 166, 60, 0.045), transparent 70%),
    rgba(9, 5, 3, 0.3);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.quickstart-copy .section-head {
  margin-bottom: 24px;
}

.req-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.req-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: rgba(240, 166, 60, 0.76);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-note {
  max-width: 44ch;
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 1px solid rgba(240, 166, 60, 0.34);
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.6;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #0a0603;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.terminal-lights {
  display: flex;
  gap: 5px;
}

.terminal-lights i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5e4b31;
}

.terminal-lights i:first-child {
  background: rgba(240, 166, 60, 0.65);
}

.terminal-lights i:last-child {
  background: rgba(239, 65, 48, 0.42);
}

.terminal-title {
  flex: 1;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.copy-btn {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.copy-btn:hover {
  border-color: var(--line-strong);
  background: rgba(240, 166, 60, 0.06);
  color: var(--amber-bright);
}

.copy-btn.is-copied {
  border-color: rgba(255, 203, 120, 0.6);
  color: var(--amber-bright);
}

.terminal-code {
  margin: 0;
  padding: 19px 18px;
  overflow-x: auto;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 1.15vw, 12.5px);
  line-height: 1.9;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 166, 60, 0.3) transparent;
}

.term-prompt {
  color: var(--amber);
  user-select: none;
}

.cmd {
  color: var(--text);
}

.term-out {
  color: var(--gold);
  opacity: 0.8;
}

.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.terminal-status {
  color: var(--amber-bright);
}

.quickstart-extra {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
}

.quickstart-extra p {
  margin: 0;
}

.quickstart-extra code {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-soft);
  font-size: 10.5px;
}

.quickstart-extra a {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.quickstart-extra a:hover {
  color: var(--amber-bright);
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: clamp(42px, 6vw, 64px) 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--amber-bright);
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0;
}

.footer-credit {
  max-width: 640px;
  color: rgba(140, 124, 101, 0.82);
  text-align: right;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.1rem, 3.7vw, 3rem);
  }

  .explorer-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .run-map-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inspector {
    min-height: 260px;
  }

  .inspector-body {
    max-height: none;
  }

  .map-hint {
    display: inline;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 6vw, 54px);
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    max-width: 680px;
  }

  h1 {
    max-width: 18ch;
  }

  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trace-figure {
    max-width: 660px;
  }

  .use-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .use-card h3 {
    margin-top: 22px;
  }

  .quickstart-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .quickstart-copy {
    max-width: 680px;
  }

  .quickstart-extra a {
    margin-left: 0;
  }
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 9px 0;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 2px 17px;
    padding-bottom: 3px;
  }

  .solution-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }

  .footer-credit {
    text-align: left;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 104px;
  }

  .site-nav a.nav-more {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(1.95rem, 7.6vw, 2.6rem);
    max-width: none;
  }

  h2 {
    font-size: clamp(1.7rem, 6.4vw, 2.15rem);
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .btn {
    padding-inline: 14px;
  }

  .hero-meta {
    font-size: 8px;
  }

  .bezel {
    padding: 10px 11px 0;
    border-radius: 24px 28px 22px 26px;
  }

  .screen {
    border-radius: 17px 20px 16px 18px;
  }

  .bezel-foot {
    min-height: 27px;
    gap: 9px;
  }

  .hud {
    font-size: 6px;
  }

  .hud-value {
    font-size: 10px;
  }

  .branch-alert {
    font-size: 6px;
    padding: 3px 6px;
  }

  .figure-caption {
    font-size: 7px;
    gap: 6px 12px;
  }

  .section {
    padding: 58px 0;
  }

  .trace-rows li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 6px;
    font-size: 8.5px;
  }

  .tr-time {
    display: none;
  }

  .trace-figure {
    padding: 13px;
  }

  .time-step {
    flex-basis: 74vw;
  }

  .timeline-hint {
    display: none;
  }

  .explorer-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 13px;
  }

  .explorer-stats {
    gap: 10px;
  }

  .explorer-title {
    font-size: 8px;
  }

  .run-map {
    height: 420px;
  }

  .inspector-body {
    padding: 15px 13px;
  }

  .explorer-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .legend {
    gap: 10px;
    font-size: 7px;
  }

  .quickstart-extra {
    align-items: flex-start;
  }

  .terminal-code {
    padding: 16px 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .quickstart-extra code {
    overflow-wrap: anywhere;
  }

  .footer-nav {
    gap: 10px 16px;
  }
}

@media (max-width: 460px) {
  .eyebrow {
    font-size: 8.5px;
  }

  .hero-actions .btn-quiet {
    flex-basis: 100%;
    min-height: 38px;
    justify-content: flex-start;
    padding-left: 2px;
  }

  .hud--tl .hud-sub,
  .hud--bl .hud-sub {
    display: none;
  }

  .bezel-vents {
    display: none;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .trace-rows li {
    grid-template-columns: 72px minmax(0, 1fr);
    font-size: 8px;
  }

  .mini-prov {
    flex-wrap: wrap;
  }

  .mini-prov-note {
    font-size: 6.5px;
  }

  .req-row span {
    font-size: 7.5px;
  }

  .terminal {
    margin-inline: -4px;
  }

  .terminal-code {
    font-size: 10px;
  }

  .facade-label {
    display: none;
  }

  .facade-duration {
    top: 9px;
    right: 10px;
    font-size: 7.5px;
  }

  .facade-play {
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .screen-refresh {
    display: none;
  }

  .led {
    animation: none;
    opacity: 1;
  }

  .btn-primary:hover {
    transform: none;
  }
}

/* ==========================================================================
   Revamp layer
   Elevates the page inside the incumbent CRT causal-monitor world: display
   type, page rhythm, instrument-style content sections, motion, states.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter-page: clamp(22px, 5vw, 64px);
  --text-body: 1.0625rem;
}

html {
  color-scheme: dark;
  scrollbar-color: rgba(240, 166, 60, 0.3) #0b0603;
  scrollbar-width: thin;
}

body {
  font-size: var(--text-body);
  line-height: 1.62;
  caret-color: var(--amber-bright);
}

::selection {
  background: var(--amber);
  color: #180d05;
}

a {
  text-underline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0603;
}

::-webkit-scrollbar-thumb {
  background: rgba(240, 166, 60, 0.24);
  border: 2px solid #0b0603;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 166, 60, 0.42);
}

.wrap {
  width: min(100% - (var(--gutter-page) * 2), 1200px);
}

/* header */

.site-header {
  background: rgba(14, 9, 5, 0.72);
  border-bottom-color: rgba(230, 183, 106, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 66px;
}

.brand-name {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.site-nav {
  gap: clamp(14px, 2vw, 28px);
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-soft);
  transition: color 180ms var(--ease-out);
}

.site-nav a:hover {
  color: var(--amber-bright);
}

.site-nav .nav-github {
  color: var(--amber-bright);
}

/* display type */

#hero-title {
  max-width: none;
  font-size: clamp(1.95rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 0;
  text-wrap: balance;
}

h2 {
  max-width: 27ch;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-lede {
  max-width: 62ch;
  font-size: clamp(1.06rem, 1.35vw, 1.19rem);
  line-height: 1.6;
  margin-top: clamp(16px, 1.6vw, 22px);
}

.section {
  padding: clamp(84px, 9.5vw, 152px) 0;
  border-top: 0;
}

.section--demo {
  padding-top: clamp(64px, 7vw, 100px);
}

/* hero */

.hero {
  padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  column-gap: clamp(32px, 4vw, 68px);
  row-gap: clamp(26px, 3vw, 40px);
  align-items: start;
}

.hero-copy {
  display: contents;
}

#hero-title {
  grid-column: 1 / -1;
}

.hero-sub {
  grid-column: 1;
  max-width: 46ch;
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  line-height: 1.55;
  margin-bottom: 0;
}

.hero-actions {
  grid-column: 1;
}

.hero-meta {
  grid-column: 1;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.hero-visual {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: start;
}

.hero-caption {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-sub,
  .hero-actions,
  .hero-meta {
    grid-column: 1;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: auto;
    margin-top: clamp(8px, 2vw, 18px);
  }
}

/* buttons */

.btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
    color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn-primary {
  box-shadow: none;
  background: var(--orange);
  color: #170a04;
}

.btn-ghost {
  color: var(--amber-bright);
  border-color: rgba(240, 166, 60, 0.32);
  background: transparent;
}

.btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #ff6f3d;
    transform: none;
  }

  .btn-ghost:hover {
    border-color: rgba(240, 166, 60, 0.55);
    background: rgba(240, 166, 60, 0.06);
  }
}

/* demo poster */

.facade-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* problem */

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.problem-copy p {
  max-width: 60ch;
  color: var(--text-soft);
  margin-bottom: 1.1em;
}

.problem-list {
  margin-top: 26px;
}

.problem-list li {
  font-size: 1.0625rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* instruments (former solution cards) */

.instruments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 64px) clamp(32px, 5vw, 72px);
}

.instrument {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(230, 183, 106, 0.14);
}

.instrument .card-figure {
  height: clamp(120px, 12vw, 158px);
  margin-bottom: 4px;
}

.instrument h3 {
  margin: 0;
}

.instrument p {
  margin: 0;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .instruments {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

/* how it works */

.time-step p {
  font-size: 15.5px;
  color: var(--text-soft);
}

.step-time,
.mini-event,
.attr-chip,
.attr-verdict,
.timeline-hint {
  font-size: 13px;
}

@media (min-width: 1020px) {
  .timeline-head,
  .timeline-foot {
    display: none;
  }

  .timeline-scroller {
    overflow: visible;
    padding-right: 0;
    cursor: default;
  }

  .timeline-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 36px);
    width: auto;
    transform: none;
  }

  .time-step {
    flex: none;
    min-width: 0;
  }
}

/* trace */

.instruction {
  margin-top: 18px;
  font-size: 15px;
  border: 0;
  background: none;
  color: var(--amber-bright);
}

.inspector-body p {
  font-size: 14px;
  line-height: 1.55;
}

.inspector-kicker,
.inspector-title,
.inspector-tip,
.inspector-key {
  font-size: 13px;
}

/* moments (former use cases) */

.moments {
  display: grid;
  gap: clamp(28px, 3.2vw, 44px);
  max-width: 1020px;
}

.moment {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: start;
}

.moment h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.moment p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-soft);
}

.moment-tag {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.01em;
  color: var(--amber);
}

@media (max-width: 820px) {
  .moment {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* quickstart */

.quickstart-grid {
  gap: clamp(32px, 4.5vw, 64px);
}

.quick-note {
  max-width: 52ch;
  font-size: 15.5px;
  color: var(--text-soft);
}

.req-row,
.req-row span {
  font-size: 13px;
}

.terminal-code {
  font-size: 13.5px;
  line-height: 1.75;
}

.quickstart-extra,
.quickstart-extra p {
  font-size: 15.5px;
}

/* footer */

.site-footer {
  padding: clamp(48px, 5vw, 72px) 0 clamp(32px, 4vw, 44px);
}

.footer-brand p {
  font-size: 15.5px;
  color: var(--text-soft);
}

.footer-nav a {
  font-size: 14px;
}

.footer-legal p {
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-credit {
  font-size: 13px;
}

/* motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

/* narrow screens */

@media (max-width: 640px) {
  .site-nav a.nav-quick {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Revamp pass 2 - resolution of the inspector gate
   ------------------------------------------------------------------ */

/* Video chrome and captions at reading size */
.facade-label,
.facade-duration {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.video-caption .caption-main {
  font-size: 14px;
  letter-spacing: 0;
}

.caption-len,
.video-fallback {
  font-size: 13px;
}

/* Small diagram + control labels brought up to reading size */
.prov-chip {
  font-size: 13px;
  padding: 5px 8px;
}

.prov-arrow {
  font-size: 13px;
}

.mini-prov-note {
  font-size: 13px;
  margin-top: 14px;
}

.instrument .card-figure {
  height: clamp(140px, 13.5vw, 176px);
}

.timeline-readout {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.mini-event b,
.mini-event em {
  font-size: 13px;
}

.attr-target {
  font-size: 13px;
}

.quickstart-extra code,
.quickstart-extra a {
  font-size: 13px;
}

/* Requirements: a line of text, not three chips */
.req-row {
  gap: 0;
}

.req-row span {
  border: 0;
  padding: 0;
  font-size: 13px;
}

.req-row span + span::before {
  content: "\00B7";
  padding: 0 9px;
  color: var(--faint);
}

/* Inline code: a tone step, not an outlined pill */
.problem-copy code,
.quickstart-extra code {
  border: 0;
  background: rgba(240, 166, 60, 0.09);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.92em;
}

/* Timeline steps read as panels by tone and space, not boxes */
.time-step {
  border: 0;
  padding: 18px 0 4px;
}

/* Attribution chips: fill, not outline */
.attr-chip {
  border: 0;
  background: rgba(240, 166, 60, 0.11);
  padding: 3px 8px;
}

.attr-chip--fault {
  background: rgba(239, 65, 48, 0.17);
}

.attribute-result {
  border: 0;
  background: rgba(23, 16, 9, 0.72);
  padding: 10px 12px;
  border-radius: 2px;
}

/* Graph nodes rest without a halo */
.node {
  box-shadow: none;
}

/* Section chrome: spacing instead of rules in content areas */
.site-header {
  border-bottom-color: transparent;
}

.instrument {
  border-top: 0;
  padding-top: 0;
}

/* Timeline header: controls sit beside the readout */
.timeline-head {
  justify-content: flex-start;
  gap: 16px;
}

/* Two-up timeline on tablets: nothing clipped at the edge */
@media (min-width: 700px) and (max-width: 1019px) {
  .timeline-head,
  .timeline-foot {
    display: none;
  }

  .timeline-scroller {
    overflow: visible;
    padding-right: 0;
    cursor: default;
  }

  .timeline-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: auto;
  }

  .time-step {
    flex: none;
    min-width: 0;
  }
}

/* ------------------------------------------------------------------
   Revamp pass 3 - timeline rhythm without rules, readable labels
   ------------------------------------------------------------------ */

.skip-link {
  font-size: 13px;
}

.req-row span {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.step-rail {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.step-rail::after {
  content: "";
  flex: 1;
  height: 2px;
  margin-left: 4px;
  background: linear-gradient(90deg, rgba(240, 166, 60, 0.3), rgba(240, 166, 60, 0.03));
}

.step-visual {
  border-top: 0;
  padding-top: 18px;
}

.mini-event {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .timeline-head,
  .timeline-foot {
    display: none;
  }

  .timeline-scroller {
    overflow: visible;
    padding-right: 0;
    cursor: default;
  }

  .timeline-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    width: auto;
  }

  .time-step {
    flex: none;
    min-width: 0;
  }
}

/* Revamp pass 4 - last dividers become spacing */
.quickstart-extra,
.site-footer,
.footer-legal {
  border-top: 0;
}

/* Revamp pass 5 - polish */
.section {
  padding: clamp(72px, 8.5vw, 132px) 0;
}

.section--demo {
  padding-bottom: clamp(52px, 6vw, 84px);
}

.time-step {
  background: transparent;
}

.quickstart-extra a {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--amber-bright);
}

@media (max-width: 640px) {
  .hero-meta {
    gap: 8px;
  }
}
/* ------------------------------------------------------------------
   Revamp pass 6 - hero rhythm, caption and footer type, mobile header
   ------------------------------------------------------------------ */

.hero-grid {
  row-gap: clamp(22px, 2.6vw, 34px);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 2.6vw, 32px);
  max-width: 52ch;
}

.hero-sub,
.hero-actions,
.hero-meta {
  margin: 0;
}

.hero-visual {
  grid-row: 2;
}

.video-caption .caption-main {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.video-caption .caption-len {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--amber-bright);
}

.video-caption .caption-sub {
  font-family: var(--font-body);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}

.video-fallback {
  font-size: 13.5px;
}

.footer-nav a,
.footer-legal p {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.footer-nav a {
  font-size: 14px;
}

.footer-legal p {
  font-size: 13.5px;
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 15px;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand-name {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 980px) {
  .hero-visual {
    grid-row: auto;
  }
}
/* ------------------------------------------------------------------
   Readability pass - contrast + functional UI text sizes
   ------------------------------------------------------------------ */

:root {
  --faint: #97866e;
}

.term-out {
  opacity: 1;
}

.panel-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (min-width: 641px) {
  .trace-rows li {
    grid-template-columns: 62px 94px minmax(0, 1fr);
    padding: 8px 8px;
    font-size: 11px;
  }
}

.tr-time {
  font-size: 10.5px;
}

.trace-gap {
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.explorer-stats {
  gap: 11px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.inspector-clear {
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.inspector-key,
.inspector-tip {
  font-size: 12.5px;
}

.map-hint {
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.mini-event em {
  font-size: 11px;
}

.attr-target {
  font-size: 12px;
}

.timeline-hint {
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.video-caption .caption-len {
  font-size: 13px;
}

.attr-target {
  font-size: 13px;
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 13px;
  }
}

.mini-event em {
  font-size: 13px;
}

/* mobile: time column is hidden, so size the two visible columns for content */
@media (max-width: 640px) {
  .trace-rows li {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 8px;
    font-size: 10.5px;
  }

  .tr-agent,
  .tr-event {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
