:root {
  --paper: #f6f6f1;
  --white: #ffffff;
  --ink: #111114;
  --muted: #6e6e76;
  --line: #c9c9c5;
  --violet: #5a35ff;
  --blue: #2864ff;
  --acid: #c8ff32;
  --coral: #ff625d;
  --lavender: #e8e3ff;
  --green-soft: #ecffd0;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(17, 17, 20, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 12%, rgba(107, 78, 255, 0.07), transparent 22rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 clamp(20px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  background: rgba(246, 246, 241, 0.94);
  border-bottom: 1.5px solid var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-block;
}

.brand-mark i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--violet);
}

.brand-mark i:nth-child(1) { left: 0; top: 13px; }
.brand-mark i:nth-child(2) { left: 8px; top: 5px; }
.brand-mark i:nth-child(3) { left: 8px; top: 20px; }
.brand-mark i:nth-child(4) { left: 16px; top: 13px; }
.brand-mark i:nth-child(5) { left: 16px; top: 28px; }
.brand-mark i:nth-child(6) { left: 24px; top: 20px; }
.brand-mark i:nth-child(7) { left: 31px; top: 28px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.model-badge {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--lavender);
}

.pulse-line {
  font-size: 26px;
  line-height: 1;
}

.badge-dot::before {
  content: "·";
  padding-right: 6px;
  color: var(--violet);
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: 590px;
  padding: 40px clamp(20px, 3vw, 52px) 22px;
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(620px, 1.65fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  font-family: "Arial Black", Inter, sans-serif;
  font-size: clamp(52px, 5.1vw, 82px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 span {
  position: relative;
  z-index: 0;
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: 4px;
  left: -5px;
  height: 12px;
  content: "";
  background: var(--violet);
  border-radius: 10px;
}

.hero-intro {
  max-width: 500px;
  margin: 24px 0 28px;
  color: #35353a;
  font-size: clamp(16px, 1.35vw, 19px);
}

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

.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button-primary {
  min-width: 265px;
  background: var(--acid);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--ink);
}

.is-running .play-icon {
  width: 13px;
  height: 16px;
  border: 0;
  border-right: 5px solid var(--ink);
  border-left: 5px solid var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  color: var(--violet);
  font-size: 25px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.speed-control {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.speed-control > span {
  margin-right: 7px;
  font-weight: 700;
}

.speed-control button {
  padding: 4px 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  cursor: pointer;
}

.speed-control button.is-active {
  color: var(--ink);
  background: var(--lavender);
  border-color: var(--violet);
  font-weight: 750;
}

.training-area {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 18px;
  align-items: stretch;
}

.training-panel,
.data-card,
.step-card,
.test-console {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.training-panel {
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  min-height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.panel-head-dark {
  color: var(--white);
  background: var(--ink);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status i {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 255, 50, 0.45);
}

.status.is-live i {
  animation: status-pulse 1.25s infinite;
}

.training-content {
  min-height: 360px;
  padding: 42px 36px 28px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
}

.equation-block {
  padding-right: 28px;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.number-box,
.operator-box {
  min-width: 0;
  height: 70px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  font-size: 30px;
  font-weight: 900;
}

.operator-box {
  background: var(--white);
  border-color: var(--line);
}

.metric {
  min-width: 0;
  min-height: 100px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--line);
}

.metric:last-of-type {
  border-right: 0;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.metric strong {
  margin-top: 9px;
  font-size: clamp(25px, 2.3vw, 36px);
  line-height: 1;
}

.prediction-metric,
.error-metric {
  color: var(--coral);
}

.distance-viz {
  position: relative;
  align-self: end;
  grid-column: 1 / -1;
  margin-top: 32px;
}

.distance-caption {
  min-height: 22px;
  margin-bottom: 18px;
  color: var(--coral);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.number-line {
  position: relative;
  height: 52px;
  margin: 0 18px;
  border-top: 2px solid var(--ink);
}

.tick-layer {
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(6.25% - 1px), var(--ink) calc(6.25% - 1px) 6.25%);
}

.line-label {
  position: absolute;
  top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.line-label-start { left: 0; }
.line-label-end { right: 0; }

.point {
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.point b {
  position: absolute;
  top: 20px;
  left: 50%;
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.point-prediction {
  left: 0;
  z-index: 2;
  color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 98, 93, 0.12);
}

.point-target {
  left: 61%;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--ink);
}

.distance-legend {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 10px;
}

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

.distance-legend i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

.legend-prediction { background: var(--coral); }
.legend-target { background: var(--ink); }

.epoch-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.rail-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.epoch-rail strong {
  margin: 6px 0 15px;
  color: var(--violet);
  font-size: 26px;
}

.epoch-rail small {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.rail-track {
  position: relative;
  width: 1px;
  height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px);
}

.rail-track span {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 0;
  background: var(--violet);
  transition: height 350ms ease;
}

.rail-track i {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-left: -4px;
  background: var(--paper);
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.rail-track i:first-of-type {
  background: var(--violet);
  border-color: var(--violet);
}

.rail-end {
  margin-top: 13px;
  font-size: 12px;
}

.dashboard {
  padding: 0 clamp(20px, 3vw, 52px) 74px;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1.12fr;
  gap: 16px;
}

.data-card {
  min-width: 0;
  min-height: 320px;
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.card-icon,
.matrix-icon {
  color: var(--violet);
  font-size: 22px;
}

.card-note {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.formula {
  margin: 10px 0 16px;
  padding: 9px 12px;
  color: var(--violet);
  background: var(--lavender);
  border-left: 4px solid var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.weight-row {
  display: grid;
  grid-template-columns: 46px 58px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.weight-name {
  color: var(--violet);
  font-weight: 850;
}

.weight-row strong {
  font-size: 17px;
}

.weight-track {
  position: relative;
  height: 7px;
  overflow: visible;
  background: #e8e8e5;
  border-radius: 10px;
}

.weight-track i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: inherit;
  transition: width 380ms ease, left 380ms ease;
}

.weight-track b {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 1px;
  height: 15px;
  background: var(--ink);
  opacity: 0.35;
}

.weight-goal {
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
}

.weight-goal i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.mse-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mse-label strong {
  margin-left: 7px;
  color: var(--coral);
  font-size: 27px;
}

.chart-wrap {
  width: 100%;
  height: 205px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid line {
  stroke: #d8d8d4;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-axis text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.loss-area {
  fill: url(#none);
  opacity: 0.08;
}

.loss-path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 300ms ease;
}

.loss-point {
  fill: var(--acid);
  stroke: var(--ink);
  stroke-width: 1.5;
  transition: cx 300ms ease, cy 300ms ease;
}

.matrix {
  min-height: 166px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 40px;
  border: 1px solid var(--ink);
  background: #f1f1ed;
}

.matrix-empty {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.matrix-cell {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(17, 17, 20, 0.15);
  border-bottom: 1px solid rgba(17, 17, 20, 0.15);
  font-size: 11px;
  font-weight: 800;
  animation: cell-in 260ms ease both;
}

.matrix-cell small {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 7px;
  font-weight: 650;
  opacity: 0.6;
}

.matrix-legend {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 9px;
}

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

.matrix-legend i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(17, 17, 20, 0.25);
}

.matrix-legend .negative { background: var(--coral); }
.matrix-legend .near { background: var(--acid); }
.matrix-legend .positive { background: var(--lavender); }

.learn-section {
  margin: 0 clamp(20px, 3vw, 52px);
  padding: 76px clamp(22px, 5vw, 80px);
  color: var(--white);
  background: var(--ink);
  border-radius: 12px;
}

.section-heading {
  max-width: 790px;
}

.section-heading h2,
.test-section h2 {
  margin: 0;
  font-family: "Arial Black", Inter, sans-serif;
  font-size: clamp(35px, 4.2vw, 62px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading > p:last-child,
.test-section > div > p:last-child {
  max-width: 660px;
  color: #b7b7bd;
  font-size: 16px;
}

.steps-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  min-height: 270px;
  padding: 28px;
  color: var(--ink);
  box-shadow: none;
}

.step-card:nth-child(2) { background: var(--lavender); }
.step-card:nth-child(3) { background: var(--green-soft); }

.step-number {
  display: block;
  color: var(--violet);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin: 36px 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.step-card p {
  min-height: 52px;
  color: #4d4d54;
  font-size: 13px;
}

.step-card code {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--violet);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 700;
}

.explanation-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #45454b;
}

.explanation-strip div {
  padding: 25px 28px;
}

.explanation-strip div + div {
  border-left: 1px solid #45454b;
}

.explanation-strip span {
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
}

.explanation-strip p {
  margin: 8px 0 0;
  color: #b7b7bd;
  font-size: 12px;
}

.test-section {
  padding: 96px clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
}

.test-section > div > p:last-child {
  color: var(--muted);
}

.test-console {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 14px;
}

.test-console label span,
.test-result span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.test-console input {
  width: 100%;
  height: 56px;
  padding: 0 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  font-size: 24px;
  font-weight: 850;
}

.test-plus {
  padding-bottom: 12px;
  font-size: 25px;
  font-weight: 900;
}

.button-dark {
  grid-column: 1 / -1;
  color: var(--white);
  background: var(--ink);
}

.test-result {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--green-soft);
  border-left: 5px solid var(--acid);
}

.test-result span {
  margin: 0;
  color: var(--ink);
}

.test-result strong {
  color: var(--violet);
  font-size: 28px;
}

.test-result small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--muted);
}

footer {
  min-height: 100px;
  padding: 26px clamp(20px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  background: var(--violet);
}

footer p {
  font-size: 11px;
}

footer > a:last-child {
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
}

.footer-brand {
  color: var(--white);
  font-size: 18px;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-brand .brand-mark i {
  background: var(--acid);
}

@keyframes status-pulse {
  70% { box-shadow: 0 0 0 8px rgba(200, 255, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 50, 0); }
}

@keyframes cell-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

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

  .hero h1 br {
    display: none;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .matrix-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
  }

  .brand {
    max-width: 210px;
    gap: 8px;
    font-size: 13px;
  }

  .brand-mark {
    transform: scale(0.82);
    transform-origin: left center;
  }

  .model-badge {
    padding: 0 11px;
  }

  .model-badge .pulse-line,
  .model-badge > span:nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .training-area {
    grid-template-columns: 1fr;
  }

  .epoch-rail {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 10px;
  }

  .epoch-rail strong {
    margin: 0;
    font-size: 19px;
  }

  .rail-track {
    width: 100%;
    height: 1px;
    flex-direction: row;
    background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px);
  }

  .rail-track span {
    width: 0;
    height: 3px;
    transition: width 350ms ease;
  }

  .rail-track i {
    margin-top: -4px;
    margin-left: 0;
  }

  .rail-end {
    margin: 0;
  }

  .training-content {
    padding: 28px 18px 22px;
    grid-template-columns: repeat(3, 1fr);
  }

  .equation-block {
    grid-column: 1 / -1;
    margin-bottom: 22px;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric {
    min-height: 90px;
    padding: 8px;
  }

  .metric strong {
    font-size: clamp(19px, 7vw, 30px);
  }

  .dashboard,
  .steps-grid,
  .test-section {
    grid-template-columns: 1fr;
  }

  .matrix-card {
    grid-column: auto;
  }

  .learn-section {
    padding: 58px 20px;
  }

  .explanation-strip {
    grid-template-columns: 1fr;
  }

  .explanation-strip div + div {
    border-top: 1px solid #45454b;
    border-left: 0;
  }

  .test-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  footer {
    padding: 28px 20px;
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 430px) {
  .training-content {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    border-bottom: 1px solid var(--line);
  }

  .error-metric {
    grid-column: 1 / -1;
  }

  .distance-viz {
    grid-column: 1 / -1;
  }

  .matrix {
    grid-template-columns: repeat(4, 1fr);
  }
}

@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;
  }
}
