:root {
  --ink: #071a33;
  --muted: #526a7e;
  --line: #dbe5ec;
  --blue: #0b5ea8;
  --blue-2: #1878c2;
  --blue-soft: #eaf3f9;
  --red: #e94b3c;
  --red-soft: #fceae7;
  --green: #218739;
  --green-soft: #e8f4eb;
  --purple: #94617c;
  --paper: #ffffff;
  --dark: #071a33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
video {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: relative;
  z-index: 10;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--blue);
  font-size: 24px;
}

.navLinks {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.navLinks a {
  transition: color 180ms ease;
}

.navLinks a:hover {
  color: var(--blue);
}

.anonymous {
  border: 1px solid #bcd2e2;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  padding: 92px 0 104px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 10px;
  background: radial-gradient(circle, rgba(11, 94, 168, 0.11), transparent 70%);
}

.hero::after {
  width: 320px;
  height: 320px;
  left: -140px;
  top: 310px;
  background: radial-gradient(circle, rgba(33, 135, 57, 0.08), transparent 70%);
}

.eyebrow,
.sectionTag {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1120px;
  margin: 20px auto 24px;
  font-size: clamp(46px, 6.3vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 790px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.6;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 58px;
}

.primaryAction,
.secondaryAction {
  border-radius: 9px;
  padding: 13px 19px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primaryAction:hover,
.secondaryAction:hover {
  transform: translateY(-2px);
}

.primaryAction {
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 26px rgba(11, 94, 168, 0.22);
}

.secondaryAction {
  border: 1px solid #bdcfdd;
  background: white;
}

.videoFrame {
  overflow: hidden;
  border: 1px solid #c9d8e4;
  border-radius: 18px;
  background: var(--dark);
  box-shadow: 0 28px 80px rgba(7, 26, 51, 0.17);
}

.videoFrame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
}

.videoCaption {
  margin: 16px 0 0;
  color: #71879a;
  font-size: 13px;
  font-weight: 700;
}

.abstractBand {
  border-block: 1px solid var(--line);
  background: #f7fafc;
}

.abstractGrid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 92px;
  align-items: start;
  padding-block: 78px;
}

.abstractGrid h2,
.sectionHeading h2,
.takeawaySection > h2 {
  margin: 14px 0 0;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.abstractGrid > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.abstractGrid > p a {
  color: var(--blue);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(11, 94, 168, 0.35);
  text-underline-offset: 0.16em;
}

.abstractGrid > p a:hover {
  text-decoration-color: currentColor;
}

.section {
  padding-block: 112px;
}

.sectionHeading {
  max-width: 820px;
  margin-bottom: 58px;
}

.sectionHeading > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.problemGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problemCard {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 14px 40px rgba(7, 26, 51, 0.055);
}

.problemNumber {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
}

.problemCard h3 {
  margin: 42px 0 14px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.problemCard p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.speedSketch,
.rangeSketch,
.transferSketch {
  position: absolute;
  inset: auto 30px 28px;
  height: 86px;
}

.speedSketch {
  display: grid;
  align-content: center;
  gap: 25px;
}

.path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: rotate(-5deg);
}

.path i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.pathFast i {
  background: var(--red);
}

.pathFast i:nth-child(even) {
  opacity: 0.18;
}

.rangeSketch {
  display: grid;
  align-content: center;
  gap: 28px;
}

.rangeLine {
  height: 8px;
  border-radius: 999px;
  background: #dcecf6;
  position: relative;
}

.rangeLine::before,
.rangeLine::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 2px;
  height: 22px;
  background: #738a9c;
}

.rangeLine::before { left: 0; }
.rangeLine::after { right: 0; }

.rangeLine i {
  position: absolute;
  left: 64%;
  top: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
}

.rangeC {
  width: 78%;
  background: #f8d8d3;
}

.rangeC i {
  left: 42%;
  background: var(--red);
}

.transferSketch {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transferSketch b {
  height: 3px;
  position: relative;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.transferSketch b::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-left: 10px solid var(--red);
  border-block: 6px solid transparent;
}

.methodSection {
  padding-block: 112px;
  color: white;
  background:
    linear-gradient(130deg, rgba(11, 94, 168, 0.18), transparent 45%),
    var(--dark);
}

.sectionHeadingLight .sectionTag {
  color: #75b8ee;
}

.sectionHeadingLight > p {
  color: #aec0cf;
}

.methodFlow {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}

.flowStep {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.flowStepFocus {
  border-color: rgba(92, 188, 111, 0.58);
  background: rgba(33, 135, 57, 0.19);
}

.flowLabel {
  display: block;
  margin-bottom: 13px;
  color: #8ebdde;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flowStep strong {
  display: block;
  margin-bottom: 16px;
  font-size: 24px;
}

.flowStep code {
  display: block;
  overflow-wrap: anywhere;
  color: #d3e3ef;
  font-size: 13px;
  line-height: 1.6;
}

.flowArrow {
  align-self: center;
  color: #6ca8d6;
  font-size: 44px;
}

.equationGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.equationGrid article {
  padding: 26px 30px;
  border-radius: 14px;
  color: var(--ink);
  background: white;
}

.equationGrid article > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.equationGrid h3 {
  display: block;
  margin: 20px 0 7px;
  font-size: 15px;
}

.equationGrid code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.whySection {
  overflow: hidden;
}

.directionDemo {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
  min-height: 440px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
}

.vectorPanel {
  position: relative;
  height: 320px;
}

.axis,
.demoArrow {
  position: absolute;
  left: 22%;
  top: 63%;
  height: 3px;
  border-radius: 999px;
  transform-origin: left center;
}

.axis {
  width: 58%;
  background: #9eb2c2;
}

.axisX { transform: rotate(5deg); }
.axisY { transform: rotate(-64deg); }
.axisZ { transform: rotate(146deg); width: 39%; }

.demoArrow {
  width: 44%;
  height: 8px;
  background: var(--blue);
  transform: rotate(-39deg);
  animation: scaleVector 4.4s ease-in-out infinite;
}

.demoArrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 19px solid currentColor;
  border-block: 11px solid transparent;
  transform: translateY(-50%);
}

.demoArrowA { color: var(--blue); }

.demoArrowC {
  width: 31%;
  height: 6px;
  color: var(--red);
  background: var(--red);
  animation-delay: -2.2s;
}

.vectorOrigin {
  position: absolute;
  left: calc(22% - 6px);
  top: calc(63% - 5px);
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
}

.vectorLabel {
  position: absolute;
  font-size: 13px;
  font-weight: 850;
}

.vectorLabelA { left: 54%; top: 24%; color: var(--blue); }
.vectorLabelC { left: 45%; top: 36%; color: var(--red); }

.vectorPanel strong {
  position: absolute;
  left: 22%;
  bottom: 4px;
  color: var(--green);
  font-size: 18px;
}

.normalizationPanel {
  display: grid;
  gap: 38px;
}

.normalizationMeta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.normalizationMeta b {
  color: var(--blue);
}

.normalizationRow:nth-child(2) .normalizationMeta b {
  color: var(--red);
}

.normalizationTrack {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #dcecf6;
}

.normalizationTrack::before,
.normalizationTrack::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 2px;
  height: 28px;
  background: #71879a;
}

.normalizationTrack::before { left: 0; }
.normalizationTrack::after { right: 0; }

.normalizationTrack i {
  position: absolute;
  top: -5px;
  left: 68%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
}

.trackC {
  background: #f8d9d4;
}

.trackC i {
  left: 42%;
  background: var(--red);
  animation: shiftScale 4.4s ease-in-out infinite;
}

.directionTokens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.directionTokens > span {
  margin-right: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.directionTokens code {
  padding: 9px 12px;
  border: 1px solid #b9cad6;
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font-weight: 800;
  animation: tokenGlow 4.4s ease-in-out infinite;
}

.directionTokens b {
  margin-left: 8px;
  color: var(--green);
  font-size: 13px;
}

.resultsSection {
  padding-block: 112px;
  background: #f3f7fa;
}

.resultsGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
}

.resultCard {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.resultTitle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}

.resultTitle span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resultTitle h3 {
  margin: 7px 0 0;
  font-size: 24px;
}

.resultTitle > b {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 14px;
}

.pairedScores + .pairedScores {
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.scoreRow + .scoreRow {
  margin-top: 10px;
}

.scoreMeta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scoreTrack {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #edf2f5;
}

.scoreFill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9bb0be;
}

.scoreFillAccent {
  background: var(--blue);
}

.simplerenvResultCard {
  position: relative;
  overflow: hidden;
  border-color: rgba(117, 184, 238, 0.3);
  color: white;
  background:
    radial-gradient(circle at 88% 12%, rgba(24, 120, 194, 0.3), transparent 36%),
    linear-gradient(145deg, #06182c, #0a2744);
  box-shadow: 0 24px 65px rgba(7, 26, 51, 0.22);
}

.simplerenvResultCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #70ba7f, #8ec8f1);
}

.simplerenvResultCard .resultTitle,
.simplerenvResultCard .cotrainingSlope,
.simplerenvResultCard .resultNote {
  position: relative;
  z-index: 1;
}

.simplerenvResultCard .resultTitle span {
  color: #8ec8f1;
}

.simplerenvResultCard .resultTitle h3 {
  color: white;
}

.simplerenvResultCard .resultTitle > b {
  color: #9be0a7;
  background: rgba(112, 186, 127, 0.16);
}

.cotrainingSlope {
  display: grid;
  gap: 10px;
  padding: 2px 0 22px;
}

.slopeColumns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 72px 0 106px;
  color: #9fb5c6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slopeColumns span:last-child {
  text-align: right;
}

.slopeColumns b {
  color: #6f8ca3;
  font-size: 16px;
}

.slopeSeries {
  /* Shared 28–47 score domain for both series. */
  --start-y: 36.8%;
  --end-y: 73.7%;
  --series-tone: #f07167;
  display: grid;
  grid-template-columns: 90px minmax(150px, 1fr) 58px;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.slopeSeriesUp {
  --start-y: 33.2%;
  --end-y: 19.5%;
  --series-tone: #83d293;
  border-color: rgba(131, 210, 147, 0.3);
  background: rgba(33, 135, 57, 0.11);
}

.slopeMethod {
  display: grid;
  gap: 3px;
}

.slopeMethod strong {
  color: white;
  font-size: 13px;
}

.slopeMethod span {
  color: #8fa7b9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slopePlot {
  position: relative;
  height: 78px;
  background: repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, 0.055) 25px 26px);
}

.slopeConnector {
  position: absolute;
  inset: 0 7px;
  background: var(--series-tone);
  clip-path: polygon(
    0 calc(var(--start-y) - 2px),
    100% calc(var(--end-y) - 2px),
    100% calc(var(--end-y) + 2px),
    0 calc(var(--start-y) + 2px)
  );
  opacity: 0.8;
}

.slopePoint {
  position: absolute;
  top: var(--start-y);
  left: 0;
  min-width: 48px;
  padding: 7px 9px;
  border: 2px solid var(--series-tone);
  border-radius: 8px;
  color: white;
  background: #0b2946;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  font-variant-numeric: tabular-nums;
  text-align: center;
  transform: translate(-8%, -50%);
}

.slopePointEnd {
  top: var(--end-y);
  right: 0;
  left: auto;
  transform: translate(8%, -50%);
}

.slopePoint b {
  font-size: 14px;
}

.slopeSeriesUp .slopePointEnd {
  color: #b8f1c2;
}

.slopeDelta {
  color: var(--series-tone);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.slopeTakeaway {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 18px;
  margin-top: 3px;
  padding: 15px 17px;
  border: 1px solid rgba(131, 210, 147, 0.4);
  border-radius: 11px;
  background: rgba(33, 135, 57, 0.18);
}

.slopeTakeaway span {
  color: #a9becd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.slopeTakeaway strong {
  color: white;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.slopeTakeaway b {
  padding: 6px 8px;
  border-radius: 7px;
  color: #b8f1c2;
  background: rgba(131, 210, 147, 0.15);
  font-size: 12px;
}

.simplerenvResultCard .resultNote {
  color: #c2d2de;
  background: rgba(255, 255, 255, 0.065);
}

.resultNote {
  margin: 0;
  padding: 16px 18px;
  border-radius: 9px;
  color: var(--muted);
  background: #f5f8fa;
  font-size: 13px;
  line-height: 1.55;
}

.splitHeading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 70px;
  align-items: end;
}

.splitHeading > p {
  margin-bottom: 2px;
}

.rolloutGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rolloutCard,
.taskCard {
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: var(--dark);
}

.rolloutCard video {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: center;
  background: black;
}

.rolloutCard figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: white;
  font-size: 16px;
}

.rolloutCard figcaption span {
  font-weight: 850;
}

.rolloutCard figcaption strong {
  font-size: 22px;
}

.beastCard figcaption { background: var(--purple); }
.binCard figcaption { background: var(--blue); }
.dsdCard figcaption { background: var(--green); }

.lightTakeaway {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: fit-content;
  margin: 28px auto 0;
  padding: 13px 18px;
  border: 1px solid #a7cfb0;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 16px;
}

.robotSection {
  padding-block: 112px;
  color: white;
  background: var(--dark);
}

.taskGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.taskCard {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d2948;
}

.taskCard video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: black;
}

.taskCard figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 20px;
}

.taskCard h3 {
  margin: 0;
  font-size: 18px;
}

.taskCard figcaption > div {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.taskCard figcaption span {
  color: #9db2c2;
}

.taskCard figcaption strong {
  color: #83d293;
}

.robotSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.robotSummary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 18px;
  align-items: baseline;
  padding: 20px 22px;
  border: 1px solid rgba(131, 210, 147, 0.35);
  border-radius: 12px;
  background: rgba(33, 135, 57, 0.12);
}

.robotSummary span {
  grid-column: 1 / -1;
  color: #b9cad7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.robotSummary strong {
  font-size: clamp(22px, 3vw, 32px);
}

.robotSummary b {
  color: #83d293;
  font-size: 14px;
}

.takeawaySection {
  text-align: center;
}

.takeawaySection > h2 {
  max-width: 760px;
  margin-inline: auto;
}

.takeawayGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.takeawayGrid article {
  padding: 25px;
  border-top: 3px solid var(--blue);
  background: #f7fafc;
}

.takeawayGrid span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.takeawayGrid p {
  margin: 22px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.releaseNote {
  margin: 50px 0 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
}

.footerInner {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footerInner span:first-child {
  color: var(--blue);
  font-weight: 900;
}

@keyframes scaleVector {
  0%, 100% { transform: rotate(-39deg) scaleX(0.72); }
  50% { transform: rotate(-39deg) scaleX(1); }
}

@keyframes shiftScale {
  0%, 100% { transform: translateX(-18px); }
  50% { transform: translateX(18px); }
}

@keyframes tokenGlow {
  0%, 100% { border-color: #b9cad6; box-shadow: none; }
  50% { border-color: #67ad77; box-shadow: 0 0 0 3px rgba(33, 135, 57, 0.08); }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .abstractGrid,
  .directionDemo,
  .resultsGrid,
  .splitHeading {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .problemGrid,
  .takeawayGrid {
    grid-template-columns: 1fr;
  }

  .problemCard {
    min-height: 310px;
  }

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

  .flowArrow {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    height: 68px;
  }

  .navLinks {
    display: none;
  }

  .anonymous {
    margin-left: auto;
    padding-inline: 9px;
    font-size: 9px;
  }

  .hero {
    padding: 60px 0 78px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .heroActions {
    flex-direction: column;
    align-items: stretch;
  }

  .abstractGrid,
  .section,
  .methodSection,
  .resultsSection,
  .robotSection {
    padding-block: 76px;
  }

  .sectionHeading {
    margin-bottom: 40px;
  }

  .abstractGrid h2,
  .sectionHeading h2,
  .takeawaySection > h2 {
    font-size: 38px;
  }

  .equationGrid,
  .taskGrid,
  .robotSummary {
    grid-template-columns: 1fr;
  }

  .directionDemo {
    padding: 24px 20px;
  }

  .vectorPanel {
    height: 260px;
  }

  .normalizationMeta,
  .directionTokens,
  .taskCard figcaption,
  .footerInner {
    flex-wrap: wrap;
  }

  .directionTokens b {
    width: 100%;
    margin: 2px 0 0;
  }

  .taskCard figcaption {
    align-items: flex-start;
  }

  .footerInner {
    padding-block: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Interactive paper stories and one-by-one rollout browser */

[hidden] {
  display: none !important;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.problemStories {
  display: grid;
  gap: 26px;
}

.problemStory {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 52px rgba(7, 26, 51, 0.06);
}

.problemCopy {
  display: flex;
  flex-direction: column;
  padding: 38px 34px;
}

.problemCopy h3 {
  margin: 32px 0 16px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.problemCopy > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.storyConclusion {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 30px;
}

.storyConclusion span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storyConclusion strong {
  font-size: 15px;
  line-height: 1.45;
}

.storyConclusion strong > b {
  color: var(--red);
}

.problemExperience {
  min-width: 0;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #f7fafc;
}

.problemStage {
  --progress: 0;
  min-height: 360px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #d5e2ea;
  border-radius: 14px;
  background: white;
}

.stageHeader {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.stageHeader > b {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef4f7;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.problemStage svg {
  width: 100%;
  height: auto;
  display: block;
}

.motionPath {
  fill: none;
  stroke: #89b7da;
  stroke-width: 5;
  stroke-linecap: round;
}

.motionPathFast {
  stroke: #f2a9a1;
}

.svgLaneLabel,
.svgSmall,
.vectorText,
.axis3d text {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.svgLaneLabel {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.svgSmall {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.sampleDot {
  opacity: 0.42;
}

.sampleSlow,
.playheadSlow {
  fill: var(--blue);
}

.sampleFast,
.playheadFast {
  fill: var(--red);
}

.playhead {
  stroke: white;
  stroke-width: 4;
  filter: drop-shadow(0 4px 5px rgba(7, 26, 51, 0.22));
}

.stepArrow {
  stroke-width: 5;
  stroke-linecap: round;
}

.stepArrowSlow { stroke: var(--blue); }
.stepArrowFast { stroke: var(--red); }

.tokenComparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: -6px;
}

.tokenComparison > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfd;
}

.tokenComparison span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tokenComparison code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.parameterControl,
.problemControls {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.parameterControl {
  padding: 9px 12px;
  border: 1px solid #d5e2ea;
  border-radius: 10px;
  background: white;
}

.parameterControl label {
  min-width: max-content;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parameterControl input,
.problemControls input {
  min-width: 80px;
  flex: 1;
  accent-color: var(--blue);
}

.parameterControl output,
.problemControls output {
  min-width: 58px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.problemControls {
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr) minmax(150px, auto);
}

.problemControls button,
.modeToggle button,
.robotTaskTabs button,
.robotMethodTabs button,
.rolloutControls button {
  min-height: 42px;
  border: 1px solid #bfd0dc;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.problemControls button:hover,
.robotTaskTabs button:hover,
.robotMethodTabs button:hover,
.rolloutControls button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.problemControls .playButton {
  min-width: 82px;
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.problemControls label {
  display: flex;
}

.normalizationStage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
}

.rawActionPill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 850;
}

.rawActionPill i {
  margin-left: 10px;
  font-style: normal;
}

.normalizationExample {
  display: grid;
  grid-template-columns: 185px minmax(120px, 1fr) 72px;
  align-items: center;
  gap: 14px;
}

.normalizationLabel {
  display: grid;
  gap: 3px;
}

.normalizationLabel strong {
  font-size: 13px;
}

.normalizationLabel span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.normalizationExample > code {
  padding: 8px 7px;
  border-radius: 7px;
  color: var(--ink);
  background: #f0f5f8;
  font-size: 11px;
  text-align: center;
}

.binAxis {
  position: relative;
  height: 20px;
  border-block: 1px solid #aebfca;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(82, 106, 126, 0.2) 8px 9px);
}

.rangeWindow {
  position: absolute;
  inset-block: 4px;
  left: 13%;
  width: 72%;
  border-radius: 999px;
  background: rgba(11, 94, 168, 0.2);
}

.violaWindow {
  left: calc(10% + var(--stats-mix, 1) * 11%);
  width: calc(74% - var(--stats-mix, 1) * 22%);
  background: rgba(233, 75, 60, 0.2);
}

.valueMarker {
  position: absolute;
  top: 50%;
  left: 57.5%;
  width: 14px;
  height: 14px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 6px rgba(7, 26, 51, 0.22);
  transform: translate(-50%, -50%);
}

.violaMarker {
  left: var(--norm-position, 94%);
  background: var(--red);
}

.directionConstant {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid #b9d7bf;
  border-radius: 9px;
  background: var(--green-soft);
}

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

.directionConstant strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.directionConstant b {
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  text-transform: uppercase;
}

.modeToggle {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: #eaf0f4;
}

.modeToggle button {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  background: transparent;
}

.modeToggle button[aria-pressed="true"] {
  color: white;
  background: var(--blue);
  box-shadow: 0 3px 8px rgba(7, 26, 51, 0.16);
}

.transferStage svg {
  max-height: 286px;
}

.axis3d line {
  stroke: #a8bac6;
  stroke-width: 2;
}

.axis3d text {
  fill: #71879a;
  font-size: 13px;
  font-weight: 800;
}

.vector {
  stroke-width: 8;
  stroke-linecap: round;
}

.sourceVector { stroke: var(--blue); }
.targetVector { stroke: var(--red); opacity: var(--target-opacity, 0); }
.dsdVector { stroke: var(--green); opacity: var(--dsd-opacity, 0); }
.angleArc { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 5 5; opacity: var(--target-opacity, 0); }

.vectorText {
  font-size: 12px;
  font-weight: 850;
}

.sourceText { fill: var(--blue); }
.targetText { fill: var(--red); opacity: var(--target-opacity, 0); }
.dsdText { fill: var(--green); opacity: var(--dsd-opacity, 0); }

.transferChain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  margin-top: -9px;
}

.transferChain span,
.transferChain strong {
  display: grid;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 7px;
  background: #eef4f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-align: center;
}

.transferChain [data-label]::before {
  content: attr(data-label);
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transferChain strong {
  color: var(--red);
  background: var(--red-soft);
}

[data-story="transfer"][data-mode="dsd"] .transferChain strong {
  color: var(--green);
  background: var(--green-soft);
}

.transferChain i {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

/* Raw-versus-DSD story comparisons */

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

.problemControls .motionTimeline {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(42px, auto) minmax(110px, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid #d5e2ea;
  border-radius: 9px;
  background: white;
}

.motionTimeline .timelineTitle {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.motionTimeline output {
  min-width: 42px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

.motionTimeline input {
  width: 100%;
  min-width: 80px;
}

.statsMismatchTimeline {
  border-color: #efc4bf !important;
  background: #fffafa !important;
}

.statsMismatchTimeline input {
  accent-color: var(--red);
}

.statsMismatchTimeline output {
  color: #a7372c;
}

.motionMarker rect {
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 3px rgba(7, 26, 51, 0.12));
}

.motionMarker text {
  fill: white;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-anchor: middle;
  text-transform: uppercase;
}

.motionMarkerSlow rect {
  fill: var(--blue);
  stroke: #084c88;
}

.motionMarkerFast rect {
  fill: #c27612;
  stroke: #955708;
}

.motionPathFast {
  stroke: #d9a25d;
}

.stepArrow {
  stroke-width: 2.5;
}

.stepArrowFast {
  stroke: #c27612;
}

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

.representationPanel,
.transferPanel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e2e9;
  border-radius: 11px;
  background: #fbfdfe;
}

.representationPanel > header,
.transferPanel > header {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #dfe8ed;
}

.representationPanel > header span,
.transferPanel > header span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.representationPanel > header b,
.transferPanel > header b {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.rawRepresentation > header b,
.rawTransferPanel > header b {
  color: #a7372c;
  background: var(--red-soft);
}

.dsdRepresentation,
.dsdTransferPanel {
  border-color: #b9d7bf;
  background: #fbfefb;
}

.dsdRepresentation > header,
.dsdTransferPanel > header {
  border-bottom-color: #d9e9dc;
}

.dsdRepresentation > header b,
.dsdTransferPanel > header b {
  color: var(--green);
  background: var(--green-soft);
}

.tokenLine {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
}

.tokenLine + .tokenLine {
  border-top: 1px solid #edf2f5;
}

.tokenLine small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tokenLine code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
}

.dsdRepresentation .tokenLine code > span:first-child {
  color: var(--green);
}

.dsdRepresentation .tokenLine code > span:last-child {
  color: var(--blue);
}

.axisBoundsDiagram {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce7ed;
  border-radius: 11px;
  background: #f9fcfd;
}

.axisBoundRow {
  --axis-left: 18.18%;
  --axis-right: 81.36%;
  --axis-action: 54.55%;
  display: grid;
  grid-template-columns: 88px minmax(150px, 1fr) 72px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: white;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.axisBoundRow[data-axis-bound="z"] {
  --axis-action: 50%;
}

[data-story="normalization"]:has([data-normalization-axis="x"][aria-pressed="true"]) [data-axis-bound="x"],
[data-story="normalization"]:has([data-normalization-axis="y"][aria-pressed="true"]) [data-axis-bound="y"],
[data-story="normalization"]:has([data-normalization-axis="z"][aria-pressed="true"]) [data-axis-bound="z"] {
  border-color: #92bee0;
  background: #f4f9fd;
  box-shadow: inset 3px 0 0 var(--blue);
}

.axisBoundAction {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 7px;
}

.axisBoundAction > strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
}

.axisBoundAction > span {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.axisBoundExtent {
  min-width: 0;
}

.axisBoundNumbers {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.axisBoundNumbers span:last-child {
  text-align: right;
}

.axisBoundNumbers b {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.axisBoundTrack {
  position: relative;
  height: 18px;
  margin: 1px 5px 0;
}

.axisBoundTrack::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #d6e0e6;
}

.axisBoundRange {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: calc(100% - var(--axis-right));
  left: var(--axis-left);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #78b4e4, var(--blue));
}

.axisBoundHandle,
.axisActionMarker {
  position: absolute;
  z-index: 2;
  top: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(7, 26, 51, 0.24);
  transform: translate(-50%, -50%);
}

.axisBoundHandleLower {
  left: var(--axis-left);
}

.axisBoundHandleUpper {
  left: var(--axis-right);
}

.axisActionMarker {
  left: var(--axis-action);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f1a431;
}

.axisBoundMetric {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-left: 9px;
  border-left: 1px solid #e2eaef;
}

.axisBoundMetric span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.axisBoundMetric strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.normalizationStage .representationComparison {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.rawTokenTableWrap {
  padding: 8px 10px 10px;
}

.rawTokenTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.rawTokenTable th,
.rawTokenTable td {
  min-width: 0;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  text-align: left;
}

.rawTokenTable thead th {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.rawTokenTable thead th:first-child {
  width: 38px;
}

.rawTokenTable thead th:last-child {
  width: 84px;
}

.rawTokenTable tbody th,
.rawTokenTable tbody td {
  border-block: 1px solid #e4ebef;
  color: var(--ink);
  background: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.rawTokenTable tbody th {
  border-left: 1px solid #e4ebef;
  border-radius: 7px 0 0 7px;
  color: white;
  background: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.rawTokenTable tbody td:last-child {
  border-right: 1px solid #e4ebef;
  border-radius: 0 7px 7px 0;
}

.rawTokenTable tbody td strong {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  color: #a7372c;
  background: var(--red-soft);
  font-size: 10px;
}

.dsdComponentGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 9px 9px 7px;
}

.dsdComponentChip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 38px 12px minmax(76px, auto);
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #cfe3d3;
  border-radius: 8px;
  background: white;
}

.dsdComponentChip span,
.dsdScaleChip span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.dsdComponentName {
  min-width: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0.025em;
}

.dsdComponentChip strong,
.dsdComponentChip b,
.dsdScaleChip strong {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
}

.dsdComponentChip i {
  color: #86a18c;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.dsdComponentChip b {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.dsdScaleChip {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  padding: 7px 8px;
  border-radius: 7px;
  background: var(--green-soft);
}

.dsdScaleChip strong {
  padding: 3px 6px;
  border: 1px solid #a7cfb0;
  border-radius: 5px;
  background: white;
  text-align: right;
  white-space: nowrap;
}

.dsdScaleChip small {
  grid-column: 1 / -1;
  min-width: 0;
  color: #587261;
  font-size: 7px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dsdScaleChip small span {
  color: #356642;
  font-size: inherit;
}

.dsdComponentNote {
  margin: 0 9px 9px;
  padding-top: 7px;
  border-top: 1px solid #d9e9dc;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.boundControls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d5e2ea;
  border-radius: 10px;
  background: white;
}

.normalizationAxisTabs {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #eaf0f4;
}

.normalizationAxisTabs button {
  min-height: 30px;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.normalizationAxisTabs button[aria-pressed="true"],
.normalizationAxisTabs button[aria-selected="true"] {
  color: white;
  background: var(--blue);
  box-shadow: 0 3px 8px rgba(7, 26, 51, 0.16);
}

.boundControlField {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) 54px;
  align-items: center;
  gap: 8px;
}

.boundControls label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.boundControls input {
  min-width: 70px;
  width: 100%;
  accent-color: var(--blue);
}

.boundControls output {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
}

.transferComparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.transferStatsMap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.25fr) auto;
  align-items: stretch;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d8e3ea;
  border-radius: 10px;
  background: #f7fafc;
}

.transferStatsMap > i {
  align-self: center;
  color: #8aa0af;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.transferStatsCard {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #cbdbe5;
  border-radius: 8px;
  background: white;
}

.transferStatsCard small,
.transferMismatchBadge span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.transferStatsCard strong {
  min-width: 0;
  color: var(--blue);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.transferStatsCard > span {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.3;
}

.transferStatsDecoded {
  border-color: #efc4bf;
  background: #fffafa;
}

.transferStatsDecoded strong {
  color: #a7372c;
}

.transferMismatchBadge {
  min-width: 66px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #a7372c;
  background: var(--red-soft);
  text-align: center;
}

.transferMismatchBadge b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.transferPanel svg {
  width: 100%;
  max-height: 206px;
}

.transferPanel > code {
  display: block;
  margin: 0 9px 9px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #a7372c;
  background: var(--red-soft);
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.dsdTransferPanel > code {
  color: var(--green);
  background: var(--green-soft);
}

.transferStage svg {
  max-height: 206px;
}

.vector {
  stroke-width: 4;
}

.sourceVectorGhost {
  opacity: 0.22;
}

.transferChain {
  margin-top: 11px;
}

.invariancePanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
}

.invarianceVisual {
  position: relative;
  min-height: 330px;
  background:
    linear-gradient(rgba(11, 94, 168, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 94, 168, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.invarianceOrigin {
  position: absolute;
  left: 18%;
  top: 72%;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
}

.invarianceArrow {
  position: absolute;
  left: 18%;
  top: 72%;
  height: 7px;
  border-radius: 999px;
  transform: rotate(-38deg);
  transform-origin: left center;
}

.invarianceArrow::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  border-left: 18px solid currentColor;
  border-block: 10px solid transparent;
  transform: translateY(-50%);
}

.shortArrow {
  width: 34%;
  color: var(--blue);
  background: var(--blue);
}

.longArrow {
  width: 62%;
  height: 5px;
  color: var(--green);
  background: var(--green);
  opacity: 0.82;
}

.invarianceVisual span {
  position: absolute;
  right: 14%;
  top: 24%;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.invarianceExplanation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 34px;
  border-left: 1px solid var(--line);
}

.invarianceTokenCard {
  overflow: hidden;
  border: 1px solid #cbdbe5;
  border-radius: 11px;
  background: white;
}

.invarianceTokenCard > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2eaf0;
  background: #f7fafc;
}

.invarianceTokenCard > header span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.invarianceTokenCard > header b {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invarianceTokenCardLarge > header b {
  color: var(--green);
  background: var(--green-soft);
}

.invarianceTokenCard > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.invarianceTokenCard > div + div {
  border-top: 1px solid #edf2f5;
}

.invarianceTokenCard small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.invarianceTokenCard code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
}

.invarianceTokenCard > div strong {
  min-width: 54px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.invarianceTokenCard > div:last-child strong {
  color: var(--blue);
  background: var(--blue-soft);
}

.invarianceExplanation > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.rolloutCard video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dsdBeastCard figcaption {
  background: #4f7d68;
}

.lightTakeaway strong {
  margin-inline: 2px;
}

.robotBrowser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #0d2948;
}

.robotTaskTabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a223d;
}

.robotTaskTabs button {
  min-height: 48px;
  padding: 9px 12px;
  border-color: rgba(255, 255, 255, 0.14);
  color: #b9cad7;
  background: rgba(255, 255, 255, 0.04);
}

.robotTaskTabs button.active,
.robotTaskTabs button[aria-selected="true"] {
  border-color: #75b8ee;
  color: white;
  background: rgba(11, 94, 168, 0.48);
}

.robotViewerGrid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px;
}

.robotMethodTabs {
  display: grid;
  gap: 8px;
}

.robotMethodTabs button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-color: rgba(255, 255, 255, 0.13);
  color: #c9d7e1;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.robotMethodTabs button strong {
  color: #8fa8ba;
  font-size: 11px;
}

.robotMethodTabs button.active,
.robotMethodTabs button[aria-selected="true"] {
  border-color: #83d293;
  color: white;
  background: rgba(33, 135, 57, 0.19);
}

.robotMethodTabs button.active strong,
.robotMethodTabs button[aria-selected="true"] strong {
  color: #83d293;
}

.singleRollout {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #06182c;
}

.singleRolloutVideo {
  position: relative;
  background: black;
}

.singleRollout video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: black;
}

.speedBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: white;
  background: rgba(7, 26, 51, 0.72);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.singleRollout figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.singleRollout figcaption > div:first-child {
  display: grid;
  gap: 5px;
}

.singleRollout figcaption span {
  color: #9fb4c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.singleRollout figcaption strong {
  font-size: 20px;
}

.activeScore {
  display: grid;
  gap: 3px;
  text-align: right;
}

.activeScore strong {
  color: #83d293;
}

.rolloutControls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 18px;
}

.rolloutControls button {
  min-width: 120px;
  padding-inline: 14px;
  border-color: rgba(255, 255, 255, 0.17);
  color: #c9d7e1;
  background: rgba(255, 255, 255, 0.04);
}

.aiDisclosure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-top: 70px;
  padding: 34px 38px;
  border: 1px solid #c7d9e5;
  border-radius: 16px;
  background: #f6fafc;
  text-align: left;
}

.aiDisclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

  .problemExperience,
  .invarianceExplanation {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .storyConclusion {
    margin-top: 24px;
  }

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

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

  .robotMethodTabs button {
    min-height: 58px;
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .problemCopy,
  .problemExperience {
    padding: 24px 20px;
  }

  .problemStage {
    min-height: 0;
    padding: 15px;
  }

  .stageHeader {
    align-items: flex-start;
  }

  .tokenComparison,
  .rolloutGrid,
  .aiDisclosure {
    grid-template-columns: 1fr;
  }

  .normalizationExample {
    grid-template-columns: 1fr 64px;
  }

  .normalizationExample .binAxis {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .directionConstant {
    flex-wrap: wrap;
  }

  .directionConstant b {
    width: 100%;
    margin-left: 0;
  }

  .parameterControl {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .parameterControl input {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

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

  .problemControls label {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .problemControls output {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 18px;
    text-align: left;
  }

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

  .transferChain i {
    padding: 2px 0;
    transform: none;
  }

  .aiDisclosure {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .invarianceVisual {
    min-height: 260px;
  }

  .invarianceExplanation {
    padding: 30px 24px;
  }

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

  .robotViewerGrid {
    padding: 12px;
  }

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

  .singleRollout figcaption {
    align-items: flex-end;
  }

  .rolloutControls button {
    min-width: 0;
    flex: 1;
  }

  .aiDisclosure {
    margin-top: 50px;
    padding: 28px 24px;
  }
}

@media (max-width: 460px) {
  .robotMethodTabs {
    grid-template-columns: 1fr;
  }

  .singleRollout figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .activeScore {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .speedStage .svgLaneLabel {
    font-size: 22px;
  }

  .speedStage .svgSmall {
    font-size: 18px;
  }

  .speedStage .motionMarker text {
    font-size: 13px;
  }

  .speedStage .motionPath {
    stroke-width: 7;
  }

  .speedStage .stepArrow {
    stroke-width: 4;
  }

  .representationComparison,
  .transferComparison {
    grid-template-columns: 1fr;
  }

  .normalizationStage .representationComparison {
    grid-template-columns: 1fr;
  }

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

  .normalizationAxisTabs {
    justify-self: start;
  }

  .boundControlField {
    width: 100%;
  }

  .problemControls .motionTimeline {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .problemControls .motionTimeline output {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    text-align: center;
  }

  .transferPanel svg,
  .transferStage svg {
    max-height: 235px;
  }

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

  .transferMismatchBadge {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

}

@media (max-width: 560px) {
  .axisBoundRow {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .axisBoundAction {
    grid-template-columns: 22px 1fr;
    gap: 5px;
  }

  .axisBoundAction > strong {
    width: 22px;
    height: 22px;
  }

  .axisBoundMetric {
    grid-column: 2;
    grid-row: 2;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: #edf4f8;
  }

  .boundControlField {
    grid-template-columns: 72px minmax(70px, 1fr) 54px;
  }

  .dsdComponentChip {
    grid-template-columns: minmax(70px, 1fr) 40px 12px minmax(74px, auto);
  }

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

  .transferStatsMap > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .transferMismatchBadge {
    grid-column: 1;
  }

  .slopeColumns {
    margin-inline: 76px 48px;
  }

  .slopeSeries {
    grid-template-columns: 66px minmax(100px, 1fr) 42px;
    gap: 8px;
    padding-inline: 8px;
  }

  .slopeMethod span {
    display: none;
  }

  .slopePoint {
    min-width: 40px;
    padding: 6px;
  }

  .slopePoint b {
    font-size: 12px;
  }

  .slopeTakeaway {
    grid-template-columns: 1fr auto;
  }

  .slopeTakeaway span {
    grid-column: 1 / -1;
  }
}

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

  .dsdComponentChip i {
    display: none;
  }

  .dsdComponentChip b {
    grid-column: 1 / -1;
    text-align: left;
  }

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

  .dsdScaleChip strong {
    max-width: 100%;
    justify-self: start;
    text-align: left;
    white-space: normal;
  }

  .dsdScaleChip small {
    grid-column: 1;
  }

  .motionTimeline .timelineTitle {
    grid-column: 1 / -1;
  }

  .problemControls .motionTimeline {
    grid-template-columns: minmax(40px, auto) minmax(90px, 1fr) minmax(40px, auto);
  }
}
