:root {
  color-scheme: light;
  --ink: oklch(0.2 0.02 245);
  --ink-soft: oklch(0.34 0.022 245);
  --ink-muted: oklch(0.47 0.012 245);
  --paper: oklch(0.985 0.004 245);
  --white: oklch(1 0 0);
  --line: oklch(0.88 0.012 245);
  --line-dark: oklch(0.38 0.02 245);
  --action: oklch(0.57 0.15 255);
  --action-strong: oklch(0.47 0.17 255);
  --action-pale: oklch(0.95 0.025 255);
  --response: oklch(0.69 0.15 58);
  --response-strong: oklch(0.57 0.17 52);
  --response-pale: oklch(0.96 0.03 65);
  --success: oklch(0.65 0.17 142);
  --danger: oklch(0.61 0.2 27);
  --max-width: 1180px;
  --header-height: 68px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section-space: clamp(72px, 8vw, 112px);
  --section-space-compact: clamp(60px, 7vw, 96px);
  --control-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pill-motion: cubic-bezier(0.2, 0, 0, 1);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: var(--ink);
  background: color-mix(in oklch, var(--action) 28%, var(--white));
}

button,
select,
input {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  color: inherit;
}

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

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

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

.skip-link {
  position: fixed;
  inset: 12px auto auto 16px;
  z-index: 200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--white);
  border-radius: 6px;
  background: var(--ink);
  font-size: 14px;
  font-weight: 760;
  transform: translateY(calc(-100% - 20px));
  transition: transform 180ms var(--control-ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

main:focus {
  outline: 0;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--response-strong);
  outline-offset: 2px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--response);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 3px 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(var(--space-lg), calc((100vw - var(--max-width)) / 2));
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms var(--control-ease),
    color 180ms var(--control-ease),
    border-color 180ms var(--control-ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.site-header-start {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-back-link {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 180ms var(--control-ease), transform 180ms var(--control-ease);
}

.site-back-link:hover {
  background: rgb(255 255 255 / 11%);
}

.site-header.is-scrolled .site-back-link:hover,
.site-header.is-open .site-back-link:hover {
  background: color-mix(in oklch, var(--line) 64%, transparent);
}

.site-back-link:active {
  transform: translateX(-1px) scale(0.96);
}

.site-back-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}

.brand img {
  flex: 0 0 auto;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-block: 8px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--response);
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms var(--control-ease), transform 180ms var(--control-ease);
}

.nav-toggle:hover {
  background: rgb(255 255 255 / 10%);
}

.site-header.is-scrolled .nav-toggle:hover,
.site-header.is-open .nav-toggle:hover {
  background: color-mix(in oklch, var(--line) 62%, transparent);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin-block: 4px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms var(--control-ease), opacity 140ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(820px, 86svh);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100svh * 5 / 3));
  aspect-ratio: 5 / 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 2px;
  transform: translate(-50%, -50%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.94;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgb(8 12 15 / 64%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(calc(100% - 48px), 1040px);
  margin-inline: auto;
  padding-block: calc(var(--header-height) + 52px) 44px;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: 72px;
  line-height: 1.02;
  font-weight: 820;
}

.hero-title-long {
  max-width: 1040px;
  margin: 20px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-title-line {
  white-space: nowrap;
}

.semantic-lock {
  white-space: nowrap;
}

.hero-authorship {
  max-width: 1040px;
  margin: 20px auto 0;
  color: oklch(0.86 0.01 245);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  letter-spacing: 0;
}

.hero-author-list,
.hero-affiliations,
.hero-equal-contribution {
  margin: 0;
}

.hero-author-list {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-author-line,
.hero-affiliation-line {
  display: block;
}

.hero-author,
.hero-affiliation-line > span {
  white-space: nowrap;
}

.hero-author-link {
  text-decoration: none;
  transition: color 160ms var(--control-ease);
}

.hero-author-link:hover {
  color: var(--white);
}

.hero-authorship sup {
  position: relative;
  top: -0.28em;
  margin-left: 1px;
  font-size: 0.68em;
  line-height: 0;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}

.hero-affiliations {
  margin-top: 10px;
  color: oklch(0.84 0.008 245);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-equal-contribution {
  margin-top: 6px;
  color: oklch(0.76 0.008 245);
  font-size: 13.5px;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 14px;
}

.hero-equal-contribution a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms var(--control-ease), text-decoration-color 160ms var(--control-ease);
}

.hero-equal-contribution a:hover {
  color: var(--white);
  text-decoration-color: currentColor;
}

.hero-corresponding-symbol {
  margin-right: 2px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-resource-button {
  gap: 9px;
  min-width: 132px;
  padding-block: 9px;
}

.hero-resource-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.hero-resource-icon-pdf {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.hero-resource-icon-hf {
  background: currentColor;
  -webkit-mask: url("assets/icons/hugging-face.svg") center / contain no-repeat;
  mask: url("assets/icons/hugging-face.svg") center / contain no-repeat;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  transition:
    transform 180ms var(--control-ease),
    background-color 180ms var(--control-ease),
    border-color 180ms var(--control-ease),
    box-shadow 180ms var(--control-ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 3px 12px rgb(0 0 0 / 14%);
}

.button-quiet {
  color: var(--white);
  background: rgb(10 15 18 / 28%);
}

.button-quiet:hover {
  background: rgb(10 15 18 / 46%);
  border-color: rgb(255 255 255 / 58%);
}

.section-index {
  margin: 0 0 var(--space-xs);
  color: var(--action-strong);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 780;
  text-wrap: balance;
}

h3 {
  text-wrap: balance;
}

.gap-section {
  padding: clamp(88px, 10vw, 144px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.story-shell {
  width: min(calc(100% - 48px), 1120px);
}

.research-story {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.story-lead {
  max-width: none;
}

.story-lead h2,
.story-section-heading h2 {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.08;
  text-wrap: balance;
}

.story-lead h2 {
  white-space: nowrap;
  text-wrap: nowrap;
}

.gap-lead-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(38px, 5vw, 64px);
  margin-top: 34px;
  padding-block: 28px;
}

.gap-lead-layout::before {
  position: absolute;
  inset: -12px -34px -18px -42px;
  z-index: -1;
  content: "";
  background: linear-gradient(
    112deg,
    color-mix(in oklch, var(--action-pale) 58%, var(--white)) 0%,
    color-mix(in oklch, var(--white) 92%, oklch(0.94 0.06 150)) 43%,
    color-mix(in oklch, var(--response-pale) 64%, var(--white)) 100%
  );
  clip-path: polygon(0 16%, 14% 5%, 34% 11%, 52% 2%, 73% 8%, 100% 0, 97% 82%, 83% 96%, 61% 89%, 39% 98%, 17% 91%, 2% 76%);
  opacity: 0.72;
}

.gap-lead-layout > p {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.78;
  text-wrap: pretty;
}

.story-term {
  font-weight: 780;
}

.story-term-action {
  color: var(--action-strong);
}

.story-term-response {
  color: oklch(0.49 0.13 52);
}

.story-term-faithful {
  color: var(--ink);
  font-size: 1.08em;
}

.gap-lead-figure {
  min-width: 0;
  margin: 0;
}

.gap-lead-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.94) brightness(1.015);
}

.gap-lead-figure figcaption {
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 580;
  line-height: 1.48;
  text-wrap: pretty;
}

.failure-taxonomy {
  margin-top: clamp(92px, 11vw, 144px);
}

.story-section-heading {
  max-width: 830px;
}

.failure-chain-scroller {
  margin-top: clamp(48px, 6vw, 70px);
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.failure-chain-map {
  position: relative;
  min-width: 1040px;
  min-height: 304px;
}

.failure-chain-stages {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  padding-inline: 22px;
}

.failure-chain-stages span {
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.failure-chain-stages span:first-child {
  color: var(--action-strong);
}

.failure-chain-stages span:last-child {
  color: var(--response-strong);
}

.failure-chain-line {
  position: absolute;
  top: 56px;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 280px;
  pointer-events: none;
}

.failure-chain-base {
  opacity: 0.22;
}

.failure-chain-thread {
  opacity: 0.76;
  stroke-dasharray: 7 14;
  animation: failure-chain-flow 5.8s linear infinite;
}

.failure-chain-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, 144px);
  min-height: 288px;
  margin-top: 8px;
}

.failure-chain-tab {
  --failure-tilt: 0deg;
  --failure-active-tilt: 0deg;
  --failure-shift-y: 0px;
  width: min(208px, calc(100% - 10px));
  min-height: 124px;
  align-self: center;
  justify-self: center;
  position: relative;
  display: block;
  padding: 14px 16px;
  color: var(--ink-soft);
  text-align: right;
  border: 1px solid color-mix(in oklch, var(--action) 28%, var(--line));
  border-radius: 7px 3px 8px 4px;
  background: color-mix(in oklch, var(--white) 90%, var(--action-pale));
  box-shadow: 0 5px 16px rgb(20 31 38 / 7%);
  cursor: pointer;
  transform: translateY(var(--failure-shift-y)) rotate(var(--failure-tilt));
  transform-origin: center;
  transition:
    color 300ms ease,
    border-color 320ms ease,
    background-color 320ms ease,
    box-shadow 340ms ease,
    filter 320ms ease,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.failure-chain-tab:nth-child(odd) {
  grid-row: 1;
}

.failure-chain-tab:nth-child(even) {
  grid-row: 2;
}

.failure-chain-tab:nth-child(1) {
  grid-column: 1;
  --failure-tilt: -1.45deg;
  --failure-active-tilt: -0.45deg;
  --failure-shift-y: -2px;
}

.failure-chain-tab:nth-child(2) {
  grid-column: 2;
  --failure-tilt: 1.1deg;
  --failure-active-tilt: 0.35deg;
  --failure-shift-y: 3px;
  border-radius: 3px 8px 5px 7px;
}

.failure-chain-tab:nth-child(3) {
  grid-column: 3;
  --failure-tilt: -0.8deg;
  --failure-active-tilt: -0.3deg;
  --failure-shift-y: -4px;
  border-radius: 8px 4px 6px 3px;
}

.failure-chain-tab:nth-child(4) {
  grid-column: 4;
  --failure-tilt: 1.55deg;
  --failure-active-tilt: 0.5deg;
  --failure-shift-y: 2px;
  border-radius: 4px 7px 3px 8px;
}

.failure-chain-tab:nth-child(5) {
  grid-column: 5;
  --failure-tilt: -1.15deg;
  --failure-active-tilt: -0.4deg;
  --failure-shift-y: -1px;
  border-radius: 7px 3px 8px 5px;
}

.failure-chain-icon {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 42px;
  height: 42px;
  display: block;
  padding: 5px;
  object-fit: contain;
  border-radius: 50%;
  background: color-mix(in oklch, var(--action-pale) 84%, var(--white));
  opacity: 0.72;
  transition:
    opacity 260ms ease,
    background-color 280ms ease,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.failure-chain-tab strong {
  position: absolute;
  right: 15px;
  bottom: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  color: inherit;
  text-align: right;
  font-size: 14.8px;
  line-height: 1.28;
  font-weight: 780;
  text-wrap: balance;
}

.failure-chain-tab strong > span {
  display: block;
  white-space: nowrap;
}

.failure-chain-tab-response {
  border-color: color-mix(in oklch, var(--response) 30%, var(--line));
  background: color-mix(in oklch, var(--white) 90%, var(--response-pale));
}

.failure-chain-tab-response .failure-chain-icon {
  background: color-mix(in oklch, var(--response-pale) 84%, var(--white));
}

.failure-chain-tab:hover {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--action) 66%, var(--line));
  transform: translateY(calc(var(--failure-shift-y) - 2px)) rotate(var(--failure-tilt)) scale(1.01);
}

.failure-chain-tab:hover .failure-chain-icon,
.failure-chain-tab:focus-visible .failure-chain-icon {
  opacity: 0.9;
  transform: translateY(-1px) rotate(-2deg);
}

.failure-chain-tab-response:hover {
  border-color: color-mix(in oklch, var(--response) 68%, var(--line));
}

.failure-chain-tab.is-active {
  color: var(--ink);
  border-color: var(--action);
  background: var(--white);
  box-shadow: 0 11px 28px rgb(20 31 38 / 14%);
  transform: translateY(calc(var(--failure-shift-y) - 4px)) rotate(var(--failure-active-tilt)) scale(1.015);
}

.failure-chain-tab.is-active .failure-chain-icon {
  opacity: 1;
  transform: translateY(-1px) rotate(-2deg);
}

.failure-chain-tab-response.is-active {
  border-color: var(--response);
}

.failure-chain-tab:active {
  transform: translateY(var(--failure-shift-y)) rotate(var(--failure-active-tilt)) scale(0.97);
}

.failure-chain-tab:focus-visible {
  outline: 2px solid var(--action-strong);
  outline-offset: 3px;
}

.failure-chain-tab-response:focus-visible {
  outline-color: var(--response-strong);
}

.failure-suite-jump {
  --failure-jump-x: 0px;
  --failure-jump-y: 0px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--action-strong);
  border: 1px solid color-mix(in oklch, var(--action) 56%, var(--line));
  border-radius: 50%;
  background: color-mix(in oklch, var(--white) 88%, var(--action-pale));
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--failure-jump-x), var(--failure-jump-y), 0) scale(0.78);
  transition:
    opacity 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.failure-suite-jump.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(var(--failure-jump-x), var(--failure-jump-y), 0) scale(1);
}

.failure-suite-jump.is-response {
  color: var(--response-strong);
  border-color: color-mix(in oklch, var(--response) 58%, var(--line));
  background: color-mix(in oklch, var(--white) 88%, var(--response-pale));
}

.failure-suite-jump svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.failure-suite-jump:hover {
  color: var(--white);
  border-color: var(--action-strong);
  background: var(--action-strong);
  transform: translate3d(var(--failure-jump-x), var(--failure-jump-y), 0) scale(1.06);
}

.failure-suite-jump.is-response:hover {
  border-color: var(--response-strong);
  background: var(--response-strong);
}

.failure-suite-jump:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.failure-detail-frame {
  display: grid;
  min-height: 360px;
  margin-top: 12px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklch, var(--paper) 72%, var(--white));
}

.failure-detail-frame:has(> #failure-panel-grounding.is-active),
.failure-detail-frame:has(> #failure-panel-dynamics.is-active) {
  min-height: 0;
}

.failure-detail {
  grid-area: 1 / 1;
  min-width: 0;
  align-items: center;
  gap: clamp(30px, 4vw, 48px);
}

.failure-detail[data-failure-layout="split"] {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

.failure-detail[data-failure-layout="split"] .failure-detail-media {
  margin-top: calc(clamp(23px, 2.1vw, 28px) + 20px);
}

.failure-detail[data-failure-layout="stacked"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.failure-detail[data-failure-layout="stacked"] .failure-detail-copy {
  width: 100%;
  max-width: none;
}

.failure-detail[data-failure-layout="stacked"] .failure-detail-copy p {
  text-wrap: wrap;
}

.failure-detail[hidden] {
  display: none;
}

.failure-detail-copy {
  max-width: 70ch;
}

.failure-detail-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 29px);
  line-height: 1.16;
  font-weight: 780;
  text-wrap: balance;
}

.failure-detail[data-failure-layout="split"] .failure-detail-copy h3 {
  font-size: clamp(23px, 2.1vw, 28px);
  white-space: nowrap;
}

.failure-detail-copy p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.failure-term,
.contract-term {
  font-weight: 760;
}

.failure-term-action,
.contract-term-action {
  color: var(--action-strong);
}

.failure-term-response,
.contract-term-response {
  color: var(--response-strong);
}

.failure-detail-media {
  position: relative;
  min-width: 0;
  margin: 0;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.failure-detail-media > span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: var(--ink-soft);
  font-size: 13px;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

.failure-detail-media img,
.failure-detail-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  outline: 0;
}

.failure-detail-media.is-loaded > span {
  opacity: 0;
}

.failure-media-source {
  width: min(100%, 920px);
  margin-inline: auto;
}

@keyframes failure-chain-flow {
  to {
    stroke-dashoffset: -42;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .failure-detail.is-entering {
    z-index: 2;
    animation: failure-detail-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .failure-detail.is-leaving {
    z-index: 1;
    pointer-events: none;
    animation: failure-detail-leave 220ms ease-out both;
  }
}

@keyframes failure-detail-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes failure-detail-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .failure-chain-thread {
    animation: none;
    stroke-dasharray: none;
  }
}

.contract-section {
  padding: var(--section-space) 0;
  color: var(--ink);
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.contract-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(620px, 1.28fr);
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

.contract-heading {
  margin-bottom: clamp(30px, 4vw, 44px);
}

.contract-heading h2 {
  font-size: 40px;
  text-wrap: nowrap;
}

.contract-heading h2 span {
  display: inline;
}

.contract-heading .section-index {
  color: var(--response-strong);
}

.contract-copy p {
  color: var(--ink-soft);
}

.contract-summary {
  max-width: 43ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  text-wrap: pretty;
}

.contract-term-standard {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in oklch, var(--action) 52%, var(--response));
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

.contract-toggle {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contract-tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 11px 14px;
  color: var(--ink-soft);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease,
    filter 180ms ease,
    transform 260ms var(--pill-motion);
}

.contract-tab + .contract-tab {
  border-top: 0;
}

.contract-tab:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--white) 76%, var(--paper));
}

.contract-tab-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in oklch, var(--line) 58%, transparent);
  font-size: 12px;
  font-weight: 800;
}

.contract-tab-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.contract-tab-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.contract-tab-copy small {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.contract-tab.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 2px 8px rgb(20 31 38 / 7%);
  transform: scale(1.012);
}

.contract-tab:active {
  transform: scale(0.96);
}

.contract-tab[data-contract-stage="realization"].is-active .contract-tab-index,
.contract-tab[data-contract-stage="realization"].is-active .contract-tab-copy strong {
  color: var(--action-strong);
}

.contract-tab[data-contract-stage="response"].is-active .contract-tab-index,
.contract-tab[data-contract-stage="response"].is-active .contract-tab-copy strong {
  color: var(--response-strong);
}

.contract-visual {
  --contract-formula-gap: 14px;
  padding: 20px 28px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 38px;
  padding: 0;
  color: color-mix(in oklch, var(--ink-soft) 62%, var(--white));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.equation:hover {
  color: var(--ink);
}

.equation sub {
  font-size: 60%;
}

.equation-arrow {
  color: inherit;
  font-family: Inter, Arial, sans-serif;
}

.contract-visual[data-active-stage="realization"] .equation-realization,
.contract-visual[data-active-stage="response"] .equation-response {
  color: var(--ink);
}

.chain {
  display: grid;
  grid-template-columns: 132px 48px 142px 48px 48px 156px;
  align-items: center;
  justify-content: center;
  min-height: calc(172px - var(--contract-formula-gap));
  padding-block: 14px;
}

.chain-node {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.chain-node[data-contract-target] {
  color: inherit;
  cursor: pointer;
}

.chain-node[data-contract-target]:hover {
  background: var(--white);
  opacity: 0.78;
}

.chain-node strong {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.chain-node small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.25;
}

.node-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.action-node .node-symbol,
.motion-node .node-symbol {
  color: var(--action-strong);
}

.response-node .node-symbol {
  color: var(--response-strong);
}

.chain-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.chain-link span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.contact-gate {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.contact-gate::before {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  width: 1px;
  background: var(--line);
}

.contact-gate span {
  position: relative;
  padding: 6px 3px;
  background: var(--white);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  writing-mode: vertical-rl;
}

.contract-visual[data-active-stage="realization"] .action-node,
.contract-visual[data-active-stage="realization"] .motion-node {
  border-color: var(--action);
  transform: translateY(-2px);
}

.contract-visual[data-active-stage="realization"] .action-link span {
  background: var(--action);
}

.contract-visual[data-active-stage="realization"] .response-node,
.contract-visual[data-active-stage="realization"] .response-link {
  opacity: 0.42;
}

.contract-visual[data-active-stage="response"] .motion-node,
.contract-visual[data-active-stage="response"] .response-node {
  border-color: var(--response);
  transform: translateY(-2px);
}

.contract-visual[data-active-stage="response"] .response-link span {
  background: var(--response);
}

.contract-visual[data-active-stage="response"] .action-node,
.contract-visual[data-active-stage="response"] .action-link {
  opacity: 0.42;
}

.operator-note {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: var(--contract-formula-gap) 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.overview-section {
  padding: var(--section-space-compact) 0;
  background: var(--white);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-2xl);
  margin-bottom: clamp(32px, 4vw, 44px);
}

.section-heading-row > p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  text-wrap: pretty;
}

.paper-figure {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: zoom-in;
}

.paper-figure img {
  width: 100%;
  height: auto;
  outline: 1px solid oklch(0 0 0 / 10%);
  outline-offset: -1px;
}

.operational-figure {
  position: relative;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.operational-reveal-canvas {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 12960350 / 4410075;
  overflow: hidden;
  background: var(--white);
}

.operational-figure.is-loading .operational-reveal-canvas::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(150px, 24%);
  height: 3px;
  border-radius: 999px;
  background: var(--action);
  transform: translate(-50%, -50%) scaleX(0.22);
  transform-origin: left center;
  animation: operational-load-progress 900ms cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.paper-figure .operational-reveal-base,
.operational-reveal-layers,
.paper-figure .operational-reveal-step {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.paper-figure .operational-reveal-base {
  object-fit: fill;
  outline: 0;
  transition:
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.operational-reveal-layers {
  z-index: 1;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.paper-figure .operational-reveal-step {
  object-fit: fill;
  outline: 0;
  opacity: 0;
}

.operational-figure.is-playing .operational-reveal-step {
  animation: operational-layer-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--reveal-index) * 480ms);
}

.operational-figure.is-reveal-pending .operational-reveal-base {
  filter: grayscale(1) saturate(0) contrast(0.8) brightness(1.1);
  opacity: 0.56;
}

.operational-figure.is-complete .operational-reveal-base {
  filter: none;
  opacity: 1;
}

.operational-figure.is-settled .operational-reveal-layers {
  visibility: hidden;
  opacity: 0;
}

@keyframes operational-layer-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes operational-load-progress {
  to {
    transform: translate(-50%, -50%) scaleX(1);
  }
}

.suites-section {
  padding: var(--section-space) 0 calc(var(--section-space) + 8px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.suites-heading > p,
.results-heading > p {
  max-width: 480px;
}

.suite-stack {
  margin-top: 0;
}

.suite-gallery-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.suite-gallery-index {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.suite-gallery-stage-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.suite-gallery-stage-map span {
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
}

.suite-gallery-stage-action {
  grid-column: 1 / 4;
  color: var(--action-strong);
}

.suite-gallery-stage-response {
  grid-column: 4 / 6;
  color: var(--response-strong);
}

.suite-gallery-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.suite-gallery-tab {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in oklch, var(--white) 72%, var(--paper));
  text-align: start;
  cursor: pointer;
  transition:
    transform 180ms var(--control-ease),
    color 180ms var(--control-ease),
    border-color 180ms var(--control-ease),
    background-color 180ms var(--control-ease),
    filter 180ms var(--control-ease),
    box-shadow 180ms var(--control-ease);
}

.suite-gallery-tab span {
  min-width: 32px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--action-pale);
  color: var(--action-strong);
  font-size: 12px;
  font-weight: 850;
}

.suite-gallery-tab strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.suite-gallery-tab:hover {
  color: var(--action-strong);
  border-color: color-mix(in oklch, var(--action) 42%, var(--line));
}

.suite-gallery-tab:active {
  transform: scale(0.96);
}

.suite-gallery-tab.is-active {
  color: var(--action-strong);
  border-color: color-mix(in oklch, var(--action) 55%, var(--line));
  background: var(--action-pale);
  box-shadow: inset 0 -3px 0 color-mix(in oklch, var(--action) 72%, var(--action-strong));
}

.suite-gallery-tab-response span {
  color: var(--response-strong);
  background: var(--response-pale);
}

.suite-gallery-tab-response:hover,
.suite-gallery-tab-response.is-active {
  color: var(--response-strong);
  border-color: color-mix(in oklch, var(--response) 56%, var(--line));
}

.suite-gallery-tab-response.is-active {
  background: var(--response-pale);
  box-shadow: inset 0 -3px 0 color-mix(in oklch, var(--response) 72%, var(--response-strong));
}

.suite-gallery-arrow {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 0 3px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms var(--control-ease),
    color 180ms var(--control-ease),
    border-color 180ms var(--control-ease),
    background-color 180ms var(--control-ease);
}

.suite-gallery-arrow:hover {
  color: var(--action-strong);
  border-color: color-mix(in oklch, var(--action) 46%, var(--line));
  background: var(--action-pale);
}

.suite-gallery-arrow:active {
  transform: scale(0.96);
}

.suite-gallery-panels,
.suite-gallery-panel {
  min-width: 0;
}

.suite-gallery-panel[hidden] {
  display: none;
}

.suite-gallery .suite-showcase {
  padding: 28px 0 10px;
  border-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .suite-gallery-panel.is-active {
    animation: suite-gallery-enter 180ms ease-out;
  }
}

@keyframes suite-gallery-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.suite-stage-marker {
  position: sticky;
  top: calc(var(--header-height) + 3px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 10px;
  border-bottom: 2px solid currentColor;
  background: var(--paper);
  font-size: 12px;
  font-weight: 820;
}

.suite-stage-marker span {
  font-size: 14px;
}

.suite-stage-marker small {
  color: var(--ink-soft);
  font-size: 11px;
}

.suite-stage-action {
  color: var(--action-strong);
}

.suite-stage-response {
  margin-top: var(--space-xl);
  color: var(--response-strong);
}

.suite-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--line);
}

.suite-showcase-copy {
  position: relative;
  min-width: 0;
  max-width: none;
  display: block;
  padding-top: 3px;
}

.suite-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suite-number {
  min-width: 38px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  color: var(--action-strong);
  border: 1px solid color-mix(in oklch, var(--action) 42%, var(--line));
  border-radius: 6px;
  background: var(--action-pale);
  font-size: 12px;
  font-weight: 850;
}

.suite-showcase-response .suite-number {
  color: var(--response-strong);
  border-color: color-mix(in oklch, var(--response) 45%, var(--line));
  background: var(--response-pale);
}

.suite-showcase h3 {
  font-size: 25px;
  line-height: 1.16;
  text-wrap: balance;
}

.suite-showcase .suite-title-line h3 {
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.suite-findings-stamp {
  position: absolute;
  top: 49px;
  left: -12px;
  z-index: 2;
  display: block;
  width: 80px;
  transform: rotate(-14deg);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.suite-findings-stamp::before {
  position: absolute;
  inset: 7% 5% 8%;
  z-index: 0;
  content: "";
  background: var(--white);
  border-radius: 18% 14% 17% 13%;
  clip-path: polygon(2% 9%, 22% 3%, 49% 6%, 74% 2%, 98% 8%, 97% 90%, 77% 96%, 51% 93%, 24% 97%, 3% 90%);
}

.suite-findings-stamp-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.suite-finding {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 14px 0 0 48px;
  padding: 15px 20px 16px;
}

.suite-finding::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    108deg,
    color-mix(in oklch, var(--action-pale) 72%, var(--white)) 0%,
    color-mix(in oklch, var(--white) 94%, oklch(0.94 0.06 150)) 58%,
    color-mix(in oklch, var(--white) 86%, var(--response-pale)) 100%
  );
  clip-path: polygon(0 11%, 13% 3%, 31% 7%, 52% 1%, 74% 6%, 100% 2%, 99% 86%, 84% 97%, 62% 91%, 40% 99%, 18% 93%, 1% 88%);
  opacity: 0.78;
}

.suite-showcase-response .suite-finding::before {
  background: linear-gradient(
    108deg,
    color-mix(in oklch, var(--response-pale) 76%, var(--white)) 0%,
    color-mix(in oklch, var(--white) 94%, oklch(0.94 0.06 150)) 58%,
    color-mix(in oklch, var(--white) 88%, var(--action-pale)) 100%
  );
}

.suite-finding p {
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;
}

.suite-finding strong {
  color: var(--ink);
  font-weight: 780;
}

.suite-visual-grid {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.suite-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.suite-video-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.suite-video-card video {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #090d10;
}

.suite-media-square .suite-video-card video {
  aspect-ratio: 1;
}

.suite-media-wide .suite-video-card video {
  aspect-ratio: 2 / 1;
}

.suite-media-landscape .suite-video-card video {
  aspect-ratio: 5 / 3;
}

.suite-video-card figcaption {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 11px 10px;
  border-top: 1px solid var(--line);
}

.suite-video-card figcaption strong,
.suite-video-card figcaption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-video-card figcaption strong {
  color: var(--ink);
  font-size: 12px;
}

.suite-video-card figcaption small {
  color: var(--ink-soft);
  font-size: 11px;
}

.task1-comparison-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.task1-gallery-panel {
  min-width: 0;
}

.task1-gallery-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.task1-gallery-head > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task1-reference-head {
  justify-content: center;
  text-align: center;
}

.task1-gallery-head span,
.task1-gallery-head small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.task1-gallery-head strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task1-model-head > div {
  flex: 1;
  align-items: center;
  text-align: center;
}

.task1-gallery-arrow {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.task1-gallery-arrow:hover,
.task1-gallery-arrow:focus-visible {
  color: var(--action-strong);
  border-color: var(--action);
}

.task1-gallery-arrow:active {
  transform: scale(0.96);
}

.task1-gallery-arrow:disabled {
  color: color-mix(in oklch, var(--ink-soft) 55%, transparent);
  border-color: color-mix(in oklch, var(--line) 72%, transparent);
  cursor: default;
  transform: none;
}

.task1-swipe-surface {
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.task1-swipe-surface:active {
  cursor: grabbing;
}

.task1-swipe-surface:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--action) 52%, transparent);
  outline-offset: 4px;
}

.task1-model-track {
  width: 100%;
  display: flex;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task1-model-track.is-animating,
.task1-model-track.is-dragging {
  will-change: transform;
}

.task1-model-track.is-dragging {
  transition: none;
}

.task1-model-slide {
  flex: 0 0 100%;
  min-width: 0;
  backface-visibility: hidden;
}

.task1-triplet {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.task1-triplet-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.task1-triplet-card video {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  background: #090d10;
}

.task1-triplet-card figcaption {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
}

.task1-triplet-card figcaption strong,
.task1-triplet-card figcaption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task1-triplet-card figcaption strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.task1-triplet-card figcaption small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.task1-model-rail {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}

.task1-model-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 11px;
  font-weight: 740;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.task1-model-tab:hover,
.task1-model-tab:focus-visible {
  color: var(--action-strong);
  border-color: var(--action);
}

.task1-model-tab.is-active {
  color: var(--action-strong);
  border-color: color-mix(in oklch, var(--action) 58%, var(--line));
  background: var(--action-pale);
  transform: translateY(-1px);
}

.task2-linked-gallery {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.task2-rollout-surface,
.task2-flow-surface {
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.task2-rollout-surface:active,
.task2-flow-surface:active {
  cursor: grabbing;
}

.task2-rollout-surface:focus-visible,
.task2-flow-surface:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--action) 52%, transparent);
  outline-offset: 4px;
}

.task2-rollout-track,
.task2-flow-track {
  width: 100%;
  display: flex;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task2-rollout-track.is-animating,
.task2-rollout-track.is-dragging,
.task2-flow-track.is-animating,
.task2-flow-track.is-dragging {
  will-change: transform;
}

.task2-rollout-track.is-dragging,
.task2-flow-track.is-dragging {
  transition: none;
}

.task2-rollout-slide,
.task2-flow-slide {
  flex: 0 0 100%;
  min-width: 0;
  backface-visibility: hidden;
}

.task2-rollout-slide.is-wide-source video {
  object-fit: fill;
}

.task2-linked-controls {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.task2-model-rail {
  justify-content: safe center;
  margin-top: 0;
  padding-bottom: 2px;
}

.task2-flow-panel {
  min-width: 0;
  margin-top: 6px;
}

.task2-flow-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.task2-flow-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.task2-flow-head small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.task2-flow-slide {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090d10;
}

.task2-flow-slide video {
  width: 100%;
  display: block;
  aspect-ratio: 720 / 196;
  object-fit: contain;
  background: #090d10;
}

.task3-linked-gallery {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.task3-source-control,
.task4-case-control {
  min-width: 0;
}

.suite-inline-selector {
  position: absolute;
  top: 64px;
  inset-inline-start: 0;
  z-index: 12;
  width: 224px;
}

.suite-inline-selector summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-content: center;
  column-gap: 10px;
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in oklch, var(--white) 90%, var(--paper));
  box-shadow: 0 4px 14px rgb(20 31 38 / 6%);
  cursor: pointer;
  list-style: none;
  transition:
    border-color 180ms var(--control-ease),
    background-color 180ms var(--control-ease),
    box-shadow 180ms var(--control-ease);
}

.suite-inline-selector summary::-webkit-details-marker {
  display: none;
}

.suite-inline-selector summary::after {
  width: 8px;
  height: 8px;
  align-self: center;
  justify-self: center;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--control-ease);
}

.suite-inline-selector[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.suite-inline-selector summary:hover,
.suite-inline-selector summary:focus-visible,
.suite-inline-selector[open] summary {
  border-color: color-mix(in oklch, var(--action) 52%, var(--line));
  background: color-mix(in oklch, var(--action-pale) 56%, var(--white));
  box-shadow: 0 6px 18px rgb(20 31 38 / 9%);
}

.suite-showcase-response .suite-inline-selector summary:hover,
.suite-showcase-response .suite-inline-selector summary:focus-visible,
.suite-showcase-response .suite-inline-selector[open] summary {
  border-color: color-mix(in oklch, var(--response) 54%, var(--line));
  background: color-mix(in oklch, var(--response-pale) 58%, var(--white));
}

.suite-inline-selector summary:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--action) 42%, transparent);
  outline-offset: 3px;
}

.suite-showcase-response .suite-inline-selector summary:focus-visible {
  outline-color: color-mix(in oklch, var(--response) 46%, transparent);
}

.suite-inline-selector summary span,
.suite-inline-selector summary strong {
  min-width: 0;
  grid-column: 1;
}

.suite-inline-selector summary span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
}

.suite-inline-selector summary strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-inline-selector summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.suite-inline-selector .task3-source-rail,
.suite-inline-selector .task4-case-rail,
.suite-inline-selector .task5-primitive-rail {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  min-width: 0;
  max-height: 286px;
  display: grid;
  gap: 3px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgb(20 31 38 / 14%);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.suite-inline-selector:not([open]) > .task3-source-rail,
.suite-inline-selector:not([open]) > .task4-case-rail,
.suite-inline-selector:not([open]) > .task5-primitive-rail {
  display: none;
}

.suite-inline-selector .task1-model-tab {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  text-align: start;
}

.task3-comparison-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, calc((100% - 30px) / 4)));
  justify-content: center;
  column-gap: clamp(56px, 8vw, 96px);
}

.task3-centered-head {
  justify-content: center;
  text-align: center;
}

.task3-gallery-panel,
.task3-rollout-surface,
.task3-flow-panel,
.task3-flow-surface {
  min-width: 0;
}

.task3-rollout-surface,
.task3-flow-surface {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.task3-rollout-surface:active,
.task3-flow-surface:active {
  cursor: grabbing;
}

.task3-rollout-surface:focus-visible,
.task3-flow-surface:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--action) 52%, transparent);
  outline-offset: 4px;
}

.task3-reference-track,
.task3-model-track,
.task3-flow-model-track,
.task3-source-track {
  width: 100%;
  display: flex;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task3-reference-track.is-animating,
.task3-reference-track.is-dragging,
.task3-model-track.is-animating,
.task3-model-track.is-dragging,
.task3-flow-model-track.is-animating,
.task3-flow-model-track.is-dragging,
.task3-source-track.is-animating,
.task3-source-track.is-dragging {
  will-change: transform;
}

.task3-reference-track.is-dragging,
.task3-model-track.is-dragging,
.task3-flow-model-track.is-dragging,
.task3-source-track.is-dragging {
  transition: none;
}

.task3-model-page,
.task3-flow-model-page,
.task3-source-slide,
.task3-flow-source-slide {
  flex: 0 0 100%;
  min-width: 0;
  backface-visibility: hidden;
}

.task3-model-page,
.task3-flow-model-page {
  overflow: hidden;
}

.task3-source-slide video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #090d10;
}

.task3-source-slide figcaption strong {
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.task3-flow-head small {
  max-width: 72%;
  line-height: 1.35;
  text-align: right;
}

.task4-linked-gallery {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.task4-comparison-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, calc((100% - 30px) / 4)));
  justify-content: center;
  column-gap: clamp(56px, 8vw, 96px);
}

.task4-centered-head {
  justify-content: center;
  text-align: center;
}

.task4-gallery-panel,
.task4-rollout-surface,
.task4-tracking-panel,
.task4-tracking-surface {
  min-width: 0;
}

.task4-rollout-surface,
.task4-tracking-surface {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.task4-rollout-surface:active,
.task4-tracking-surface:active {
  cursor: grabbing;
}

.task4-rollout-surface:focus-visible,
.task4-tracking-surface:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--response) 52%, transparent);
  outline-offset: 4px;
}

.task4-reference-track,
.task4-model-track,
.task4-tracking-model-track,
.task4-case-track {
  width: 100%;
  display: flex;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task4-reference-track.is-animating,
.task4-reference-track.is-dragging,
.task4-model-track.is-animating,
.task4-model-track.is-dragging,
.task4-tracking-model-track.is-animating,
.task4-tracking-model-track.is-dragging,
.task4-case-track.is-animating,
.task4-case-track.is-dragging {
  will-change: transform;
}

.task4-reference-track.is-dragging,
.task4-model-track.is-dragging,
.task4-tracking-model-track.is-dragging,
.task4-case-track.is-dragging {
  transition: none;
}

.task4-model-page,
.task4-tracking-model-page,
.task4-case-slide,
.task4-tracking-case-slide {
  flex: 0 0 100%;
  min-width: 0;
  backface-visibility: hidden;
}

.task4-model-page,
.task4-tracking-model-page {
  overflow: hidden;
}

.task4-case-slide video {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  background: #090d10;
}

.task4-distractor-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #090d10;
}

.task4-distractor-stage video {
  aspect-ratio: 4 / 3;
  object-fit: fill;
}

.task4-case-slide figcaption strong {
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.task4-tracking-panel {
  width: calc(65% - 19.5px);
  margin: 6px auto 0;
}

.task4-tracking-head small {
  max-width: 72%;
  line-height: 1.35;
  text-align: right;
}

.task4-tracking-case-slide {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090d10;
}

.task4-tracking-case-slide video {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #090d10;
}

.task5-rollout-surface {
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.task5-rollout-surface:active {
  cursor: grabbing;
}

.task5-rollout-surface:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--response) 52%, transparent);
  outline-offset: 4px;
}

.task5-reference-track,
.task5-model-track,
.task5-primitive-track {
  width: 100%;
  display: flex;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task5-reference-track.is-animating,
.task5-reference-track.is-dragging,
.task5-model-track.is-animating,
.task5-model-track.is-dragging,
.task5-primitive-track.is-animating,
.task5-primitive-track.is-dragging {
  will-change: transform;
}

.task5-reference-track.is-dragging,
.task5-model-track.is-dragging,
.task5-primitive-track.is-dragging {
  transition: none;
}

.task5-model-page,
.task5-primitive-slide {
  flex: 0 0 100%;
  min-width: 0;
  backface-visibility: hidden;
}

.task5-model-page {
  overflow: hidden;
}

.task5-video-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #090d10;
}

.task5-video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  background: #090d10;
}

.task5-primitive-slide figcaption strong {
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.suite-evidence {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 2px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklch, var(--line) 76%, transparent);
}

.suite-evidence-head,
.evidence-lane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.suite-evidence-head {
  margin-bottom: 20px;
}

.suite-evidence-head > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.suite-evidence-head small,
.evidence-lane-head small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.evidence-lanes {
  display: grid;
  gap: 26px;
}

.evidence-lane {
  min-width: 0;
}

.evidence-lane-head {
  margin-bottom: 9px;
}

.evidence-lane-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 790;
}

.evidence-strip {
  --evidence-columns: 7;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--evidence-columns), minmax(132px, 140px));
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.evidence-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.evidence-card:hover,
.evidence-card:focus-within {
  border-color: color-mix(in oklch, var(--action) 55%, var(--line));
}

.suite-showcase-response .evidence-card:hover,
.suite-showcase-response .evidence-card:focus-within {
  border-color: color-mix(in oklch, var(--response) 58%, var(--line));
}

.evidence-card.is-playing {
  border-color: var(--action-strong);
}

.suite-showcase-response .evidence-card.is-playing {
  border-color: var(--response-strong);
}

.evidence-media {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #090d10;
  cursor: pointer;
}

.evidence-media:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: -3px;
}

.suite-showcase-response .evidence-media:focus-visible {
  outline-color: var(--response);
}

.evidence-media video,
.evidence-poster {
  width: 100%;
  display: block;
  aspect-ratio: var(--evidence-aspect, 1);
  object-fit: contain;
  background: #090d10;
}

.evidence-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  background: rgb(8 13 16 / 70%);
  transition: opacity 160ms ease, scale 180ms ease;
  pointer-events: none;
}

.evidence-play::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  content: "";
}

.evidence-media:hover .evidence-play,
.evidence-media:focus-visible .evidence-play {
  scale: 1.08;
}

.evidence-card.is-playing .evidence-play {
  opacity: 0;
}

.evidence-caption {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 9px 9px;
  border-top: 1px solid var(--line);
}

.evidence-caption strong,
.evidence-caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-caption strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
}

.evidence-caption small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.suite-evidence.is-error .suite-evidence-head small {
  color: var(--danger);
}

.suite-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 28px auto;
  column-gap: 6px;
  row-gap: 0;
  margin-top: 56px;
}

.track-group {
  padding-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.action-group {
  grid-column: 1 / 4;
  color: var(--action-strong);
  border-bottom: 3px solid var(--action);
}

.response-group {
  grid-column: 4 / 6;
  color: var(--response-strong);
  border-bottom: 3px solid var(--response);
}

.suite-tab {
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 14px 18px;
  color: var(--ink-soft);
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease,
    transform 260ms var(--pill-motion);
}

.suite-tab:first-of-type {
  border-left: 0;
}

.suite-tab span {
  font-size: 12px;
  font-weight: 820;
}

.suite-tab strong {
  width: 100%;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.suite-tab:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.suite-tab.is-active {
  z-index: 1;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px rgb(20 31 38 / 6%);
  transform: scale(1.012);
}

.suite-tab:active {
  transform: translateY(0) scale(0.96);
}

.suite-tab.is-active::after {
  content: "";
  position: absolute;
  inset: auto 18px 5px;
  height: 4px;
  border-radius: 999px;
  background: var(--action);
}

.suite-tab[data-task="4"].is-active::after,
.suite-tab[data-task="5"].is-active::after {
  background: var(--response);
}

.suite-viewer {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.62fr);
  gap: 48px;
  align-items: start;
  padding-block: 52px 12px;
}

.suite-kicker {
  margin: 0 0 9px;
  color: var(--action-strong);
  font-size: 12px;
  font-weight: 820;
}

.suite-viewer[data-stage="response"] .suite-kicker {
  color: var(--response-strong);
}

.suite-copy h3 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
}

.suite-question {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
}

.suite-meta {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.suite-meta div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

.suite-meta dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 760;
}

.suite-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.live-section {
  padding: var(--section-space) 0 calc(var(--section-space) + 8px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.live-heading {
  align-items: flex-end;
  margin-bottom: var(--space-xl);
}

.live-probe-tabs {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.live-probe-tabs button {
  position: relative;
  min-width: 104px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 12px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 260ms var(--pill-motion),
    color 180ms var(--control-ease),
    filter 180ms var(--control-ease),
    background-color 180ms var(--control-ease);
}

.live-probe-tabs button::after {
  content: "";
  position: absolute;
  inset: auto 50% 0 auto;
  width: 14px;
  height: 9px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%232b66b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  transform: translate(50%, -4px);
  transition:
    opacity 180ms var(--control-ease),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.live-probe-tabs button:hover {
  color: var(--action-strong);
}

.live-probe-tabs button:active {
  transform: scale(0.96);
}

.live-probe-tabs button.is-active {
  color: var(--action-strong);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.live-probe-tabs button.is-active::after {
  opacity: 1;
  transform: translate(50%, 0);
}

.live-probe-tabs button:focus-visible {
  outline: 0;
  box-shadow: inset 0 -3px 0 var(--response-strong);
}

.live-probe-tabs button span {
  font-size: 11px;
  font-weight: 850;
}

.live-probe-tabs button strong {
  font-size: 13px;
}

.live-probe-panel[hidden] {
  display: none;
}

.task1-console {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.task1-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 0 24px;
  background: transparent;
  border-bottom: 0;
}

.task1-selector {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.task1-selector-label {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.probe-select-bordered {
  min-width: 0;
  min-height: 40px;
  padding: 7px 34px 7px 12px;
  appearance: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper) right 13px center / 12px 8px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%236b7780' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.probe-select-bordered:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--action) 28%, transparent);
  outline-offset: 2px;
}

.probe-select-bordered:disabled {
  color: color-mix(in oklch, var(--ink-soft) 64%, var(--paper));
  cursor: not-allowed;
  opacity: 0.68;
}

.task1-platform {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 760;
}

.task1-scene {
  flex: 0 0 auto;
}

.task1-scene select {
  width: auto;
  max-width: none;
  min-height: 40px;
  padding: 8px 30px 8px 2px;
  appearance: none;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--action) 48%, var(--line));
  border-radius: 0;
  color: var(--ink);
  background: right 5px center / 12px 8px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%236b7780' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-size: 15px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.task1-scene select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--action) 26%, transparent);
  outline-offset: 2px;
}

.task1-scene select:disabled {
  cursor: wait;
  opacity: 0.62;
}

.task1-toggle {
  width: auto;
  flex: 1 1 auto;
  min-height: 40px;
  display: grid;
  grid-template-columns: repeat(var(--task1-model-count, 3), minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.task1-toggle button[hidden] {
  display: none;
}

.task1-toggle button {
  min-width: 0;
  min-height: 32px;
  padding: 6px 11px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 260ms var(--pill-motion),
    color 180ms var(--control-ease),
    background-color 180ms var(--control-ease);
}

.task1-toggle button:hover:not(:disabled) {
  color: var(--action-strong);
}

.task1-toggle button:active:not(:disabled) {
  transform: scale(0.96);
}

.task1-toggle button.is-active {
  color: var(--action-strong);
  background: var(--action-pale);
  transform: scale(1.012);
}

.task1-toggle button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.task1-service-status {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.task1-model-selector {
  flex: 0 0 auto;
}

.task1-toolbar-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.task1-service-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ink-soft) 42%, var(--paper));
}

.task1-console[data-state="loading"] .task1-service-status i,
.task1-console[data-state="running"] .task1-service-status i {
  background: var(--response);
  animation: live-status-pulse 1.2s ease-in-out infinite;
}

.task1-console[data-state="ready"] .task1-service-status i,
.task1-console[data-state="complete"] .task1-service-status i {
  background: var(--success);
}

.task1-console[data-state="error"] .task1-service-status i {
  background: var(--danger);
}

.task1-console[data-state="busy"] .task1-service-status i {
  background: var(--response-strong);
}

.task1-workbench {
  display: grid;
  grid-template-columns: minmax(270px, 0.3fr) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 42px);
  min-height: 0;
}

.task1-controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 8px 6px;
  background: transparent;
  border-right: 0;
}

.task1-control-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.task1-control-title label {
  font-size: 15px;
  font-weight: 790;
}

.task1-control-title output {
  color: var(--action-strong);
  font-size: 24px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

#task1-magnitude {
  --range-progress: 75%;
  width: 100%;
  height: 28px;
  margin: 18px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#task1-magnitude:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

#task1-magnitude::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      var(--action) 0 var(--range-progress),
      var(--line) var(--range-progress) 100%
    );
}

#task1-magnitude::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  appearance: none;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--action-strong);
  box-shadow: 0 0 0 1px var(--action-strong);
}

#task1-magnitude::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
}

#task1-magnitude::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--action);
}

#task1-magnitude::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--action-strong);
  box-shadow: 0 0 0 1px var(--action-strong);
}

.task1-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.task1-actions {
  display: grid;
  gap: 10px;
}

.task1-results {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
}

.task1-video-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.task1-video-grid figure {
  min-width: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.task1-video-grid figure.task1-simulator-reference {
  border-color: transparent;
}

.task1-simulator-reference figcaption {
  background: transparent;
}

.task1-video-grid figcaption {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 10px;
  border-bottom: 0;
}

.task1-video-grid figcaption strong {
  font-size: 12px;
}

.task1-video-grid figcaption span {
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.task1-video-shell {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  background: #070b0d;
  outline: 1px solid rgb(0 0 0 / 10%);
}

.task1-video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms var(--control-ease);
}

.task1-video-shell video.is-current.is-visible {
  opacity: 1;
}

.task1-video-shell video.task1-video-pending {
  pointer-events: none;
}

.task1-video-shell video[hidden],
.task1-video-empty[hidden] {
  display: none;
}

.task1-video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px;
  color: rgb(255 255 255 / 62%);
  text-align: center;
}

.task1-video-empty img {
  width: 34px;
  height: 34px;
  opacity: 0.72;
}

.task1-variant-status {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 680;
  background: transparent;
}

.task1-variant-status.is-stacked {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.task1-variant-status[data-status="pass"] {
  color: var(--ink-soft);
  background: transparent;
}

.task1-variant-status[data-status="fail"] {
  color: var(--ink-soft);
  background: transparent;
}

.task1-variant-status[data-status="loading"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--response);
  animation: live-status-pulse 1.2s ease-in-out infinite;
}

.task1-variant-status strong {
  font-weight: 820;
}

.task1-variant-status[data-status="pass"] strong {
  color: color-mix(in oklch, var(--success) 78%, var(--ink));
}

.task1-variant-status[data-status="fail"] strong {
  color: var(--danger);
}

.task1-play {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 240ms var(--pill-motion),
    color 180ms var(--control-ease),
    border-color 180ms var(--control-ease);
}

.task1-controls .task1-play {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  font-size: 12px;
}

.task1-play:hover:not(:disabled) {
  color: var(--action-strong);
  border-color: var(--action);
  transform: translateY(-1px) scale(1.012);
}

.task1-play:active:not(:disabled) {
  transform: scale(0.96);
}

.task1-play:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.task2-console {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.task2-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.35vw, 20px);
  padding: 0 0 28px;
  border-bottom: 0;
  background: transparent;
}

.task2-selector {
  min-width: max-content;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.task2-selector-label {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.task2-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.task2-toggle button {
  min-height: 34px;
  padding: 6px 11px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 260ms var(--pill-motion),
    color 180ms var(--control-ease),
    background-color 180ms var(--control-ease);
}

.task2-toggle button:hover {
  color: var(--action-strong);
}

.task2-toggle button:active {
  transform: scale(0.96);
}

.task2-toggle button.is-active {
  color: var(--action-strong);
  background: var(--action-pale);
  transform: scale(1.012);
}

.task2-load-status {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.task2-toolbar-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.task2-load-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--response);
  animation: live-status-pulse 1.2s ease-in-out infinite;
}

.task2-console[data-state="ready"] .task2-load-status i {
  background: var(--success);
  animation: none;
}

.task2-console[data-state="error"] .task2-load-status i {
  background: var(--danger);
  animation: none;
}

.task2-workbench {
  padding: 0;
}

.task2-causal-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) max-content;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  margin-bottom: 30px;
}

.task2-causal-strip .task2-play {
  min-width: 156px;
  justify-content: center;
}

.task2-causal-node {
  min-width: 0;
  min-height: 40px;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 8px;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--action) 42%, var(--line));
  border-radius: 0;
  background: transparent;
}

.task2-causal-node span {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.task2-causal-node strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
}

.task2-causal-node select {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 28px 0 0;
  appearance: none;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  background: right 4px center / 12px 8px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%236b7780' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.task2-causal-node select:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

.task2-causal-node select:disabled {
  color: var(--ink-soft);
  cursor: not-allowed;
}

.task2-receiver-node {
  border-color: color-mix(in oklch, var(--action) 62%, var(--line));
  background: transparent;
}

.task2-donor-node {
  border-color: color-mix(in oklch, var(--response) 66%, var(--line));
  background: transparent;
}

.task2-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.task2-video-grid figure {
  min-width: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.task2-video-grid figcaption {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 10px;
  border-bottom: 0;
}

.task2-video-grid figcaption strong {
  font-size: 12px;
}

.task2-video-grid figcaption small {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.task2-source-video figcaption {
  background: transparent;
}

.task2-replay-video {
  border-color: transparent;
}

.task2-video-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.task2-reference-dot {
  background: var(--success);
}

.task2-receiver-dot {
  background: var(--action);
}

.task2-donor-dot {
  background: var(--response);
}

.task2-model-dot {
  background: var(--action);
}

.task2-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  background: #070b0d;
  outline: 1px solid rgb(0 0 0 / 10%);
  isolation: isolate;
}

.task2-video-grid video,
.task2-video-buffer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.task2-video-grid video {
  z-index: 0;
  background: #070b0d;
}

.task2-video-buffer {
  z-index: 1;
  background: #070b0d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task2-video-stage.is-swapping .task2-video-buffer {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .task2-video-buffer {
    transition: none;
  }
}

.task2-play {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 240ms var(--pill-motion),
    color 180ms var(--control-ease),
    border-color 180ms var(--control-ease);
}

.task2-play:hover:not(:disabled) {
  color: var(--action-strong);
  border-color: var(--action);
  transform: translateY(-1px) scale(1.012);
}

.task2-play:active:not(:disabled) {
  transform: scale(0.96);
}

.task2-play:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.live-console {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.live-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 24px;
  background: transparent;
  border-bottom: 0;
}

.live-scene-fields {
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-scene-fields label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-scene-fields label:first-child {
  min-width: 0;
  flex: 0 0 auto;
}

.live-scene-fields label > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 780;
}

.live-scene-fields select {
  min-width: 0;
  height: 42px;
  padding: 0 30px 0 2px;
  appearance: none;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--action) 48%, var(--line));
  border-radius: 0;
  background: right 5px center / 12px 8px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%236b7780' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-size: 13px;
  font-weight: 680;
}

.live-scene-fields label:first-child select {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.live-scene-fields select:disabled {
  color: color-mix(in oklch, var(--ink-soft) 62%, var(--paper));
  cursor: not-allowed;
}

.live-scene-fields select:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

.live-model-selector {
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-field-label {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.live-model-toggle {
  min-width: 0;
  min-height: 42px;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.live-model-toggle button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 260ms var(--pill-motion),
    color 180ms var(--control-ease),
    background-color 180ms var(--control-ease);
}

.live-model-toggle button:hover:not(:disabled) {
  color: var(--action-strong);
}

.live-model-toggle button:active:not(:disabled) {
  transform: scale(0.96);
}

.live-model-toggle button.is-active {
  color: var(--action-strong);
  background: var(--action-pale);
  transform: scale(1.012);
}

.live-model-toggle button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.live-session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-connect,
.live-reset {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
  transition:
    transform 240ms var(--pill-motion),
    color 180ms var(--control-ease),
    background-color 180ms var(--control-ease),
    border-color 180ms var(--control-ease);
}

.live-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--action-strong);
  border-color: var(--action-strong);
}

.live-connect:hover {
  background: var(--action);
  border-color: var(--action);
  transform: translateY(-1px) scale(1.012);
}

.live-connect:active,
.live-reset:active {
  transform: scale(0.96);
}

.live-connect-icon {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.live-console[data-state="online"] .live-connect,
.live-console[data-state="connecting"] .live-connect,
.live-console[data-state="queued"] .live-connect {
  color: var(--ink);
  background: var(--action-pale);
  border-color: var(--action);
}

.live-console[data-state="online"] .live-connect-icon,
.live-console[data-state="connecting"] .live-connect-icon,
.live-console[data-state="queued"] .live-connect-icon {
  background: var(--action);
}

.live-reset {
  color: var(--ink);
  background: var(--white);
}

.live-reset:hover:not(:disabled) {
  color: var(--action-strong);
  border-color: var(--action);
  transform: translateY(-1px) scale(1.012);
}

.live-reset:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.live-connection {
  width: 150px;
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 12px;
}

.live-status {
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.live-status strong {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.live-status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ink-soft) 42%, var(--paper));
}

.live-console[data-state="connecting"] .live-status-dot {
  background: var(--response);
  animation: live-status-pulse 1.2s ease-in-out infinite;
}

.live-console[data-state="queued"] .live-status-dot {
  background: var(--response);
}

.live-console[data-state="online"] .live-status-dot {
  background: var(--success);
}

.live-console[data-state="error"] .live-status-dot {
  background: var(--danger);
}

.live-latency {
  min-width: 0;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.live-stage {
  display: grid;
  grid-template-areas: "rollouts controls";
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 3vw, 42px);
  align-items: start;
  padding: 0;
  outline: 0;
}

.live-stage:focus-visible {
  outline: none;
}

.live-stage:focus-visible .live-viewport-head i {
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--action) 22%, transparent);
}

.live-control-bank {
  min-width: 0;
}

.live-controls-bank {
  grid-area: controls;
}

.live-rollout-pair {
  grid-area: rollouts;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block-start: 8px;
}

.live-control-group + .live-control-group {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.live-control-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 7px;
}

.live-control-head strong {
  font-size: 13px;
}

.live-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 7px;
}

.live-command-grid button,
.live-gripper button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 4px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
  transition:
    transform 220ms var(--pill-motion),
    color 170ms var(--control-ease),
    background-color 170ms var(--control-ease),
    border-color 170ms var(--control-ease);
}

.live-command-grid button:hover:not(:disabled),
.live-gripper button:hover:not(:disabled) {
  color: var(--action-strong);
  border-color: var(--action);
  transform: translateY(-1px);
}

.live-command-grid button:active:not(:disabled),
.live-gripper button:active:not(:disabled) {
  color: var(--action-strong);
  background: var(--action-pale);
  border-color: var(--action);
  transform: scale(0.96);
}

.live-command-grid button.is-active,
.live-gripper button.is-active {
  color: var(--action-strong);
  background: var(--action-pale);
  border-color: var(--action);
  transform: scale(1.012);
}

.live-command-grid button:disabled,
.live-gripper button:disabled {
  color: color-mix(in oklch, var(--ink-soft) 46%, var(--paper));
  background: color-mix(in oklch, var(--white) 66%, var(--paper));
  cursor: not-allowed;
}

.live-command-grid kbd,
.live-gripper kbd {
  font-family: inherit;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.1;
}

.live-command-grid small,
.live-gripper small {
  color: currentColor;
  font-size: 11px;
  font-weight: 640;
  line-height: 1.2;
}

.live-arm-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.live-arm-toggle button {
  min-height: 34px;
  padding: 6px 8px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 240ms var(--pill-motion),
    color 170ms var(--control-ease),
    background-color 170ms var(--control-ease);
}

.live-arm-toggle button.is-active {
  color: var(--action-strong);
  background: var(--action-pale);
  transform: scale(1.012);
}

.live-arm-toggle button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.live-gripper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.live-gripper button {
  min-height: 48px;
}

.live-viewport {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--ink);
}

.live-viewport-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  color: rgb(255 255 255 / 74%);
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  font-size: 12px;
  font-weight: 700;
}

#live-frame-count {
  min-width: 150px;
  text-align: right;
  white-space: nowrap;
}

.live-viewport-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
}

.live-viewport-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action);
}

.live-frame-shell {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #070b0d;
}

.live-frame-shell > img#live-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-frame-shell > img#live-frame[hidden] {
  display: none;
}

.live-frame-shell > img.live-model-input-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070b0d;
  user-select: none;
}

.live-frame-shell > img.live-model-input-frame[hidden] {
  display: none;
}

.live-frame-shell > video.live-model-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: #070b0d;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.live-frame-shell > video.live-model-video.is-active {
  z-index: 1;
  opacity: 1;
}

.live-frame-shell > video.live-model-video[hidden] {
  display: none;
}

.live-frame-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: rgb(255 255 255 / 66%);
  text-align: center;
}

.live-frame-empty[hidden] {
  display: none;
}

.live-frame-empty img {
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  opacity: 0.78;
}

.live-frame-empty strong {
  color: var(--white);
  font-size: 15px;
}

.live-frame-empty span {
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.45;
}

#live-model-empty-copy {
  max-width: none;
  white-space: nowrap;
}

.live-ready-cue {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px 6px 7px;
  color: color-mix(in oklch, var(--success) 58%, var(--ink));
  border-radius: 999px;
  background: color-mix(in oklch, var(--white) 93%, var(--success));
  box-shadow: 0 3px 8px rgb(0 0 0 / 18%);
  animation: live-ready-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.live-ready-cue[hidden] {
  display: none;
}

.live-ready-cue svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  padding: 3px;
  color: var(--white);
  border-radius: 50%;
  background: var(--success);
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.live-ready-cue strong {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-model-queue {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 24px;
  color: var(--white);
  background: rgb(7 11 13 / 92%);
  text-align: center;
}

.live-model-queue[hidden] {
  display: none;
}

.live-model-queue strong {
  color: var(--response);
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 0.98;
}

.live-model-queue span {
  margin-top: 5px;
  color: var(--white);
  font-size: 15px;
  font-weight: 780;
}

.live-model-queue small {
  margin-top: 6px;
  color: rgb(255 255 255 / 62%);
  font-size: 11px;
  font-weight: 650;
}

@keyframes live-ready-enter {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.live-frame-empty.is-starting > img,
.live-frame-empty.is-starting > strong {
  display: none;
}

.live-startup-progress {
  width: min(78%, 390px);
  display: grid;
  gap: 13px;
  color: rgb(255 255 255 / 66%);
  text-align: left;
}

.live-startup-progress[hidden] {
  display: none;
}

.live-startup-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.live-startup-summary strong {
  color: var(--white);
  font-size: 14px;
}

.live-startup-summary time {
  flex: 0 0 auto;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.live-startup-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
}

.live-startup-track span {
  display: block;
  width: var(--live-startup-progress, 12%);
  height: 100%;
  border-radius: inherit;
  background: var(--response);
  transition: width 380ms var(--control-ease);
}

.live-startup-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-startup-stages li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 42%);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.live-startup-stages i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / 20%);
}

.live-startup-stages li[data-state="done"] {
  color: rgb(255 255 255 / 72%);
}

.live-startup-stages li[data-state="done"] i {
  background: var(--success);
}

.live-startup-stages li[data-state="active"] {
  color: var(--white);
}

.live-startup-stages li[data-state="active"] i {
  background: var(--response);
  animation: live-status-pulse 1.2s ease-in-out infinite;
}

.live-frame-scan {
  display: none;
}

.live-console[data-state="connecting"]
  .live-simulator-viewport
  .live-frame-empty:not([hidden])
  ~ .live-frame-scan {
  position: absolute;
  inset: 0 auto auto;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--response);
  animation: live-scan 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.live-readout {
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.live-readout span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  color: rgb(255 255 255 / 54%);
  font-size: 11px;
  white-space: nowrap;
}

.live-readout span + span {
  border-left: 1px solid rgb(255 255 255 / 13%);
}

.live-readout strong {
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.live-model-meta {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  color: rgb(255 255 255 / 54%);
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 11px;
}

.live-model-meta time {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Keep equivalent controls typographically aligned across all three interactive probes. */
.task1-selector-label,
.task2-selector-label,
.live-field-label,
.live-scene-fields label > span {
  font-size: 12px;
  font-weight: 800;
}

.task1-platform,
.task1-scene select,
.probe-select-bordered,
.live-scene-fields select,
.task2-causal-node select {
  font-size: 13px;
  font-weight: 760;
}

.task1-service-status,
.task2-load-status,
.live-connection {
  font-size: 12px;
}

.task1-toggle,
.task2-toggle,
.live-model-toggle {
  position: relative;
}

.task1-toggle button,
.task2-toggle button,
.live-model-toggle button {
  position: relative;
  z-index: 1;
}

.task1-toggle button.is-active,
.task2-toggle button.is-active,
.live-model-toggle button.is-active {
  background: transparent;
}

.gliding-tab-indicator {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--action-pale);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    width 250ms cubic-bezier(0.22, 1, 0.36, 1),
    height 250ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms var(--control-ease),
    background-color 180ms var(--control-ease),
    border-color 180ms var(--control-ease);
  will-change: transform, width, height;
}

.gliding-tab-indicator.is-snapping {
  transition: none;
}

.has-gliding-indicator {
  position: relative;
  isolation: isolate;
}

.has-gliding-indicator > button {
  position: relative;
  z-index: 2;
}

.has-gliding-indicator.is-initializing-glide > button {
  transition: none !important;
}

.has-gliding-indicator[data-gliding-mode="pill"] .gliding-tab-indicator {
  border: 1px solid color-mix(in oklch, var(--action) 34%, var(--line));
  background: var(--action-pale);
}

.has-gliding-indicator[data-gliding-mode="surface"] .gliding-tab-indicator {
  border: 1px solid color-mix(in oklch, var(--action) 54%, var(--line));
  border-radius: 7px;
  background: var(--action-pale);
  box-shadow: 0 2px 8px rgb(20 31 38 / 7%);
}

.has-gliding-indicator .gliding-tab-indicator[data-tone="response"] {
  border-color: color-mix(in oklch, var(--response) 56%, var(--line));
  background: var(--response-pale);
}

.has-gliding-indicator[data-gliding-mode="pointer"] .gliding-tab-indicator {
  border-radius: 0;
  background: transparent;
}

.has-gliding-indicator[data-gliding-mode="pointer"] .gliding-tab-indicator::after {
  content: "";
  position: absolute;
  inset: auto auto 0 50%;
  width: 14px;
  height: 9px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%232b66b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: translateX(-50%);
}

.task1-toggle.has-gliding-indicator button.is-active,
.task2-toggle.has-gliding-indicator button.is-active,
.live-model-toggle.has-gliding-indicator button.is-active,
.segmented-control.has-gliding-indicator .platform-button.is-active,
.task1-model-rail.has-gliding-indicator .task1-model-tab.is-active,
.task3-source-rail.has-gliding-indicator .task1-model-tab.is-active,
.task4-case-rail.has-gliding-indicator .task1-model-tab.is-active,
.contract-toggle.has-gliding-indicator .contract-tab.is-active,
.suite-gallery-tabs.has-gliding-indicator .suite-gallery-tab.is-active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.contract-toggle.has-gliding-indicator .gliding-tab-indicator {
  border-color: var(--line);
  background: var(--white);
}

.live-probe-tabs.has-gliding-indicator button::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .gliding-tab-indicator,
  .task1-toggle button,
  .task2-toggle button,
  .live-model-toggle button,
  .live-probe-tabs button,
  .failure-suite-jump,
  .suite-gallery-tab,
  .contract-tab,
  .platform-button,
  .task1-model-tab,
  .live-ready-cue {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes live-status-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

@keyframes live-scan {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(380px);
  }
}

.suite-example {
  min-width: 0;
}

.suite-example-head {
  min-height: 92px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.suite-platform-picker {
  flex: 0 0 auto;
}

.suite-platform-picker > span {
  display: block;
  margin: 0 0 7px 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.example-platform-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.example-platform-tab {
  position: relative;
  z-index: 0;
  min-width: 104px;
  min-height: 44px;
  padding: 9px 15px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease,
    transform 260ms var(--pill-motion);
}

.example-platform-tab:last-child {
  border-right: 0;
}

.example-platform-tab:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 66%);
}

.example-platform-tab.is-active {
  z-index: 1;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgb(20 31 38 / 10%), inset 0 0 0 1px rgb(20 31 38 / 5%);
  transform: scale(1.012);
}

.example-platform-tab:active {
  transform: scale(0.96);
}

.example-platform-tab.is-active::after {
  content: none;
}

.example-case {
  min-width: 0;
  max-width: 430px;
}

.example-case p {
  margin: 0;
}

.example-kicker {
  color: var(--action-strong);
  font-size: 12px;
  font-weight: 820;
}

.suite-viewer[data-stage="response"] .example-kicker {
  color: var(--response-strong);
}

.example-case h3 {
  margin: 6px 0 8px;
  font-size: 31px;
  line-height: 1.18;
  text-wrap: balance;
}

#example-case-description {
  color: var(--ink-soft);
  font-size: 15px;
  text-wrap: pretty;
}

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

.example-rollout {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.example-rollout header {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.example-rollout header > span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
}

.example-rollout:nth-child(2) header > span {
  background: var(--action);
}

.example-rollout:nth-child(3) header > span {
  background: var(--response);
}

.example-rollout header div {
  min-width: 0;
}

.example-rollout header strong,
.example-rollout header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example-rollout header strong {
  font-size: 13px;
}

.example-rollout header small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.example-video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #000;
}

.example-rollout video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.example-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
  background: var(--paper);
}

.example-placeholder[hidden] {
  display: none;
}

.example-placeholder strong {
  color: var(--ink);
  font-size: 15px;
}

.example-placeholder p {
  max-width: 26ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.example-rollout.is-reserved {
  border-style: dashed;
  background: var(--paper);
}

.example-rollout.is-reserved header > span {
  background: var(--line-dark);
}

.example-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
}

.example-footer p {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.example-footer p span {
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.example-footer a {
  color: var(--action-strong);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sync-control {
  min-width: 146px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  cursor: pointer;
  transition:
    background-color 180ms var(--control-ease),
    box-shadow 180ms var(--control-ease),
    transform 180ms var(--control-ease);
}

.sync-control span {
  width: 14px;
  font-size: 12px;
  text-align: center;
}

.sync-control strong {
  font-size: 12px;
}

.sync-control:hover {
  background: var(--action-strong);
  box-shadow: 0 4px 14px rgb(20 31 38 / 14%);
  transform: translateY(-1px);
}

.sync-control:active {
  box-shadow: none;
  transform: translateY(0) scale(0.98);
}

.sync-control:disabled {
  color: var(--ink-soft);
  background: var(--line);
  cursor: not-allowed;
}

.results-section {
  padding: var(--section-space) 0 calc(var(--section-space) + 8px);
  color: var(--ink);
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.results-section .section-index {
  color: var(--response-strong);
}

.results-heading > p {
  color: var(--ink-soft);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segmented-control {
  position: relative;
  display: inline-flex;
  isolation: isolate;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--line) 28%, var(--white));
  overflow: visible;
}

.platform-button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 4px 14px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease,
    filter 180ms ease,
    transform 260ms var(--pill-motion);
}

/* Inactive section selectors remain available, but recede behind the active module. */
.failure-chain-tab:not(.is-active),
.contract-tab:not(.is-active),
.suite-gallery-tab:not(.is-active),
.platform-button:not(.is-active) {
  color: var(--ink-muted);
  background-color: color-mix(in oklch, var(--line) 30%, var(--paper));
  box-shadow: none;
  filter: grayscale(1) saturate(0);
}

.failure-chain-tab:not(.is-active) {
  border-color: color-mix(in oklch, var(--line) 82%, var(--ink-muted));
}

.contract-tab:not(.is-active) {
  border-color: color-mix(in oklch, var(--line) 68%, transparent);
}

.contract-tab:not(.is-active) .contract-tab-index,
.contract-tab:not(.is-active) .contract-tab-copy strong,
.contract-tab:not(.is-active) .contract-tab-copy small {
  color: var(--ink-muted);
}

.failure-chain-tab:not(.is-active):hover,
.failure-chain-tab:not(.is-active):focus-visible,
.contract-tab:not(.is-active):hover,
.contract-tab:not(.is-active):focus-visible,
.suite-gallery-tab:not(.is-active):hover,
.suite-gallery-tab:not(.is-active):focus-visible,
.platform-button:not(.is-active):hover,
.platform-button:not(.is-active):focus-visible {
  color: var(--ink-soft);
  background-color: color-mix(in oklch, var(--white) 82%, var(--paper));
  filter: grayscale(0.3) saturate(0.65);
}

.live-probe-tabs button:not(.is-active) {
  color: var(--ink-muted);
  background: transparent;
  box-shadow: none;
  filter: none;
}

.contract-tab:not(.is-active):hover .contract-tab-index,
.contract-tab:not(.is-active):hover .contract-tab-copy strong,
.contract-tab:not(.is-active):hover .contract-tab-copy small,
.contract-tab:not(.is-active):focus-visible .contract-tab-index,
.contract-tab:not(.is-active):focus-visible .contract-tab-copy strong,
.contract-tab:not(.is-active):focus-visible .contract-tab-copy small {
  color: var(--ink-soft);
}

.platform-button.is-active {
  z-index: 2;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgb(20 31 38 / 10%), inset 0 0 0 1px rgb(20 31 38 / 5%);
  transform: scale(1.012);
}

.platform-button:not(.is-active):hover {
  color: var(--ink);
  background: rgb(255 255 255 / 66%);
}

.platform-button:active {
  transform: scale(0.96);
}

.platform-button:focus-visible {
  border-radius: 999px;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--response-strong);
}

.model-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-picker span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
}

.model-picker select {
  min-height: 40px;
  padding: 7px 36px 7px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 180ms var(--control-ease), background-color 180ms var(--control-ease);
}

.model-picker select:hover {
  border-color: color-mix(in oklch, var(--ink-soft) 54%, var(--line));
  background: var(--action-pale);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
  gap: var(--space-2xl);
  align-items: start;
  padding-top: 44px;
}

.radar-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.radar-title {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 20px;
  padding: 4px 4px 12px;
}

.radar-title span {
  color: var(--ink-soft);
  font-size: 12px;
}

.radar-title span b {
  color: var(--ink);
  font-weight: 760;
}

#radar-chart {
  width: 100%;
  max-height: 460px;
  overflow: visible;
}

#radar-grid polygon {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

#radar-axes line {
  stroke: var(--line);
  stroke-width: 1;
}

.radar-series-shape {
  fill-opacity: 0.035;
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-opacity: 0.78;
}

.radar-series-group.is-selected .radar-series-shape {
  fill-opacity: 0.11;
  stroke-width: 4;
  stroke-opacity: 1;
}

.radar-series-point {
  stroke: var(--white);
  stroke-width: 2;
}

.radar-series-group.is-selected .radar-series-point {
  stroke-width: 2.5;
}

.radar-series-value {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 820;
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 4px;
  stroke-linejoin: round;
  text-anchor: middle;
}

#radar-labels text {
  fill: var(--ink-soft);
  font-size: 18px;
  font-weight: 760;
  text-anchor: middle;
}

#radar-labels text.action-label {
  fill: var(--action-strong);
}

#radar-labels text.response-label {
  fill: var(--response-strong);
}

.radar-series-legend {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, 22px);
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  height: 64px;
  padding: 4px 4px 10px;
}

.radar-series-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.radar-series-legend-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

.radar-series-legend-item.is-selected {
  color: var(--ink);
  font-weight: 780;
}

.series-swatch {
  width: 16px;
  height: 3px;
  border-radius: 999px;
}

.series-selected-tag {
  padding: 2px 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.stage-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 720;
}

.stage-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
}

.legend-action {
  color: var(--action-strong);
}

.legend-action::before {
  background: var(--action);
}

.legend-response {
  color: var(--response-strong);
}

.legend-response::before {
  background: var(--response);
}

.results-table-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.results-table-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.results-open-source-note {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  text-align: right;
  text-wrap: pretty;
}

.results-open-source-note > span {
  display: block;
}

.results-open-source-note a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.results-open-source-note a:hover {
  color: inherit;
  text-decoration-color: currentColor;
}


.results-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.results-table th,
.results-table td {
  padding: 16px 10px;
  line-height: 1.25;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.results-table th:first-child,
.results-table td:first-child {
  width: 35%;
  padding-left: 0;
  text-align: left;
}

.results-table th {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 820;
}

.results-table td {
  font-size: 16px;
  font-weight: 560;
}

.results-table tbody td:not(:first-child) {
  color: var(--ink-muted);
}

.results-table tr {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.results-table tbody tr:hover,
.results-table tbody tr.is-selected {
  background: var(--white);
}

.results-table tbody tr:focus-within {
  background: var(--white);
  box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--response) 42%, transparent);
}

.results-table tbody tr.is-selected td:first-child {
  color: var(--response-strong);
  font-weight: 800;
}

.model-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0;
  color: inherit;
  text-align: start;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.rank-medal {
  width: 18px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.results-table tbody td.is-column-best {
  color: var(--ink);
  font-size: inherit;
  font-weight: 850;
}

.results-table th:nth-child(2),
.results-table th:nth-child(3),
.results-table th:nth-child(4) {
  color: var(--action-strong);
}

.results-table th:nth-child(5),
.results-table th:nth-child(6) {
  color: var(--response-strong);
}

.findings-section {
  padding: 112px 0;
  background: var(--white);
}

.finding-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-block: 1px solid var(--line);
}

.finding-row article {
  min-width: 0;
  padding: 32px;
}

.finding-row article + article {
  border-left: 1px solid var(--line);
}

.finding-row strong {
  display: block;
  color: var(--action-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.1;
}

.finding-row article:nth-child(n + 2) strong {
  color: var(--response-strong);
}

.finding-row h3 {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.finding-row p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.validation-section {
  padding: 96px 0;
  background: var(--action-pale);
  border-block: 1px solid color-mix(in oklch, var(--action) 25%, var(--line));
}

.validation-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(520px, 1.1fr);
  gap: 72px;
  align-items: center;
}

.validation-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid color-mix(in oklch, var(--action) 28%, var(--line));
}

.validation-evidence div {
  padding: 26px;
}

.validation-evidence div + div {
  border-left: 1px solid color-mix(in oklch, var(--action) 28%, var(--line));
}

.validation-evidence strong {
  color: var(--action-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.validation-evidence p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.figure-dialog {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  overflow: auto;
  padding: 44px 16px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
}

.figure-dialog::backdrop {
  background: rgb(6 10 12 / 78%);
}

.figure-dialog img {
  width: 100%;
  height: auto;
}

.dialog-close {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms var(--control-ease), transform 180ms var(--control-ease);
}

.dialog-close:hover {
  background: var(--line);
}

.dialog-close:active {
  transform: scale(0.96);
}

@media (max-width: 1120px) {
  .live-stage {
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
    justify-content: stretch;
    gap: 18px;
    padding: 24px;
  }
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 60px;
  }

  .hero-title-long {
    font-size: 24px;
  }

  .contract-layout,
  .validation-layout {
    gap: 48px;
  }

  .contract-layout {
    grid-template-columns: 1fr;
  }

  .gap-intro {
    max-width: 720px;
  }

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

  .suite-viewer {
    grid-template-columns: 1fr;
  }

  .live-toolbar {
    flex-wrap: wrap;
  }

  .live-connection {
    margin-left: 0;
  }

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

  .task1-toolbar {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .task1-model-selector {
    flex: 1 1 520px;
  }

  .live-rollout-pair .live-viewport {
    width: auto;
    margin-inline: 0;
  }

  .suite-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }

  .suite-kicker,
  .suite-copy h3,
  .suite-question {
    grid-column: 1;
  }

  .suite-meta {
    grid-column: 2;
  }

  .suite-meta {
    grid-row: 1 / 4;
    margin-top: 0;
  }

  .example-video-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
  }

  .example-rollout {
    scroll-snap-align: start;
  }

  .results-layout {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
    gap: 32px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

  .evidence-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(164px, 32vw);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 7px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .evidence-card {
    scroll-snap-align: start;
  }

  .section-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: var(--header-height) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 200ms var(--control-ease),
      visibility 0s linear 200ms;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-nav a {
    min-height: 48px;
    padding: 11px 8px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-media {
    width: max(100%, calc(100svh * 3 / 5));
    aspect-ratio: 3 / 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  .hero-content {
    width: min(calc(100% - 32px), 680px);
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-title-long {
    font-size: 22px;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-author-list {
    font-size: 15.5px;
  }

  .hero-affiliations {
    font-size: 13.5px;
  }

  h2 {
    font-size: 36px;
  }

  .gap-summary {
    max-width: 68ch;
  }

  .gap-section,
  .overview-section,
  .suites-section,
  .live-section,
  .results-section,
  .findings-section {
    padding-block: var(--section-space);
  }

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

  .section-heading-row {
    align-items: start;
    flex-direction: column;
    gap: var(--space-md);
  }

  .live-probe-tabs {
    width: min(100%, 460px);
  }

  .live-probe-tabs button {
    flex: 1;
    min-width: 0;
  }

  .task2-toolbar {
    flex-wrap: wrap;
    gap: 12px 28px;
  }

  .task2-toolbar-actions {
    margin-left: auto;
  }

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

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

  .task1-toolbar {
    grid-template-columns: minmax(112px, 0.55fr) minmax(0, 1fr);
  }

  .task1-model-selector {
    grid-column: 1 / -1;
  }

  .task1-controls {
    border-right: 0;
    border-bottom: 0;
  }

  .suite-track {
    grid-template-columns: repeat(5, minmax(138px, 1fr));
    overflow-x: auto;
  }

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

  .suite-track::after {
    content: "";
    position: sticky;
    right: 0;
    width: 16px;
    pointer-events: none;
  }

  .suite-tab {
    min-height: 78px;
    padding-inline: 14px;
  }

  .suite-copy {
    display: block;
  }

  .live-scene-fields {
    max-width: none;
    flex: 1 1 100%;
  }

  .live-model-selector {
    max-width: none;
    flex: 1 1 250px;
  }

  .live-scene-fields label:first-child {
    min-width: 0;
  }

  .live-scene-fields label:first-child select {
    width: min(46vw, 280px);
  }

  .live-connection {
    margin-left: auto;
  }

  .live-stage {
    gap: 18px;
    padding: 20px;
  }

  .suite-meta {
    margin-top: 26px;
  }

  .results-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
  }

  .radar-panel {
    max-width: 620px;
    margin-inline: auto;
  }

  .finding-row {
    grid-template-columns: 1fr;
  }

  .finding-row article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .validation-evidence {
    max-width: 620px;
  }
}

@media (max-width: 980px) {
  .suite-inline-selector {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    width: min(100%, 320px);
  }
}

@media (max-width: 700px) {
  .task1-comparison-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .task3-comparison-gallery,
  .task4-comparison-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .task4-tracking-panel {
    width: 100%;
  }

}

@media (max-width: 600px) {
  .gap-intro h2 {
    max-width: none;
    font-size: 32px;
    text-wrap: wrap;
  }

  .gap-intro h2 span,
  .contract-heading h2 span {
    display: block;
  }

  .gap-summary {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.68;
  }

  .gap-unresolved {
    margin-top: 30px;
    padding-top: 24px;
  }

  .evidence-strip {
    grid-auto-columns: minmax(172px, 60vw);
  }

  .suite-evidence {
    padding-top: 20px;
  }

  .evidence-lanes {
    gap: 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-title-long {
    font-size: 19px;
  }

  .hero-authorship {
    max-width: 520px;
    margin-top: 17px;
  }

  .hero-author-list {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-affiliations {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  .hero-affiliation-line > span {
    white-space: normal;
  }

  .hero-equal-contribution {
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero-resource-button {
    min-width: 0;
    padding-inline: 10px;
  }

  h2 {
    font-size: 32px;
  }

  .contract-section {
    padding-block: var(--section-space);
  }

  .contract-heading h2 {
    font-size: 30px;
    white-space: normal;
    text-wrap: wrap;
  }

  .contract-visual {
    padding: 22px 12px;
  }

  .equation {
    gap: 10px;
    font-size: 19px;
  }

  .chain {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding-block: 13px;
  }

  .chain-node {
    width: min(100%, 240px);
    min-height: 108px;
    margin-inline: auto;
  }

  .chain-link {
    flex-direction: column;
  }

  .contact-gate {
    min-height: 48px;
  }

  .contact-gate::before {
    inset: 0 auto;
    left: 50%;
  }

  .contact-gate span {
    writing-mode: horizontal-tb;
  }

  .operator-note {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .paper-figure {
    overflow-x: auto;
  }

  .paper-figure img {
    width: 900px;
    max-width: none;
  }

  .figure-dialog img {
    width: 1100px;
    max-width: none;
  }

  .task1-toolbar {
    display: grid;
    grid-template-columns: minmax(96px, 0.55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 12px 14px;
    padding: 0 0 22px;
  }

  .task1-selector {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .task1-model-selector {
    grid-column: 1 / -1;
  }

  .task1-toggle {
    width: 100%;
  }

  .task1-toggle button {
    padding-inline: 5px;
    font-size: 12px;
  }

  .task1-service-status {
    align-self: center;
  }

  .task1-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-inline-start: 0;
  }

  .task1-scene {
    width: 100%;
  }

  .task1-scene select {
    max-width: 100%;
  }

  .task1-results {
    padding: 20px 12px;
  }

  .task1-controls {
    gap: 20px;
    padding: 8px 2px 22px;
  }

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

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

  .task2-selector {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .task2-toggle {
    width: 100%;
  }

  .task2-toggle button {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
  }

  .task2-load-status {
    justify-content: flex-end;
  }

  .task2-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

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

  .task2-causal-strip .task2-play {
    grid-column: 1 / -1;
    width: 100%;
  }

  .task2-workbench {
    padding: 0;
  }

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

  .live-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .live-scene-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .live-scene-fields label {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .live-scene-fields label:first-child select,
  .live-scene-fields select {
    width: 100%;
  }

  .live-session-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .live-connect,
  .live-reset {
    width: 100%;
  }

  .live-connection {
    width: 100%;
    flex: 0 0 auto;
    justify-content: space-between;
    margin-left: 0;
  }

  .live-stage {
    grid-template-areas:
      "rollouts"
      "controls";
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .live-model-selector {
    width: 100%;
    flex: 0 0 auto;
  }

  .live-rollout-pair {
    grid-template-columns: minmax(0, 1fr);
    margin-block-start: 0;
  }

  .live-control-bank {
    padding: 8px 0;
  }

  .live-command-grid button {
    min-height: 54px;
  }

  .suite-copy h3 {
    font-size: 27px;
  }

  .suite-stack {
    margin-top: 0;
  }

  .suite-gallery-nav {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .suite-gallery-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-block: 2px 8px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .suite-gallery-stage-map {
    display: none;
  }

  .suite-gallery-tab {
    flex: 0 0 176px;
    scroll-snap-align: start;
  }

  .suite-gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .suite-gallery .suite-showcase {
    padding-block: 24px 8px;
  }

  .suite-stage-response {
    margin-top: 22px;
  }

  .suite-showcase {
    padding-block: 28px 32px;
  }

  .suite-showcase-copy {
    display: block;
  }

  .suite-showcase h3 {
    margin-block: 12px 15px;
    font-size: 24px;
  }

  .suite-showcase .suite-title-line h3 {
    margin: 0;
    white-space: normal;
  }

  .suite-finding {
    margin: 12px 0 0;
    padding: 14px 15px 15px;
  }

  .suite-findings-stamp {
    top: 43px;
    right: 2px;
    left: auto;
    width: 68px;
  }

  .suite-finding p {
    padding-right: 62px;
    font-size: 14px;
    line-height: 1.58;
  }

  .suite-visual-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 76vw);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .suite-video-card {
    scroll-snap-align: start;
  }

  .suite-example-head {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .suite-platform-picker {
    width: 100%;
  }

  .example-platform-tabs {
    width: 100%;
  }

  .example-platform-tab {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
  }

  .example-video-grid {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .example-rollout {
    min-width: 0;
  }

  .example-case h3 {
    font-size: 27px;
  }

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

  .sync-control {
    width: 100%;
  }

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

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-button {
    padding-inline: 8px;
  }

  .model-picker {
    justify-content: space-between;
  }

  .model-picker select {
    max-width: 68%;
  }

  .radar-panel {
    padding: 10px;
  }

  #radar-labels text {
    font-size: 22px;
  }

  .radar-series-value {
    font-size: 18px;
    stroke-width: 5px;
  }

  .results-table th,
  .results-table td {
    padding-inline: 7px;
  }

  .results-table td {
    font-size: 15px;
  }

  .finding-row article {
    padding-inline: 12px;
  }

  .validation-evidence {
    grid-template-columns: 1fr;
  }

  .validation-evidence div + div {
    border-left: 0;
    border-top: 1px solid color-mix(in oklch, var(--action) 28%, var(--line));
  }

}

@media (max-width: 820px) {
  .operational-figure {
    overflow-x: auto;
  }

  .operational-reveal-canvas {
    width: 1200px;
    max-width: none;
  }

  .figure-dialog[data-figure-kind="operational"] img {
    width: 1300px;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .story-shell {
    width: min(calc(100% - 36px), 1120px);
  }

  .story-lead h2 {
    font-size: 36px;
  }

  .gap-lead-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .gap-lead-layout::before {
    inset-inline: -18px;
  }

  .gap-lead-layout > p {
    max-width: 72ch;
    font-size: 17px;
  }

  .failure-detail[data-failure-layout="split"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .failure-detail[data-failure-layout="split"] .failure-detail-copy h3 {
    white-space: normal;
  }

  .failure-detail-copy {
    max-width: 74ch;
  }

  .failure-detail-media {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .failure-detail[data-failure-layout="split"] .failure-detail-media {
    margin-top: 0;
  }

}

@media (max-width: 810px) {
  .story-lead h2 {
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 600px) {
  .gap-section {
    padding-block: 72px;
  }

  .story-shell {
    width: min(calc(100% - 28px), 1120px);
  }

  .story-lead h2,
  .story-section-heading h2 {
    font-size: 34px;
  }

  .story-lead h2 {
    font-size: 33px;
    white-space: normal;
    text-wrap: balance;
  }

  .gap-lead-layout {
    margin-top: 26px;
    padding-block: 18px;
  }

  .gap-lead-layout::before {
    inset: -8px -14px -12px;
  }

  .gap-lead-layout > p,
  .failure-detail-copy p {
    font-size: 16px;
    line-height: 1.72;
  }

  .failure-taxonomy {
    margin-top: 78px;
  }

  .failure-chain-scroller {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .failure-chain-map {
    min-width: 1040px;
  }

  .failure-detail-frame {
    min-height: 0;
    padding: 22px;
  }

  .failure-detail-copy h3 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .hero-title-long {
    font-size: 17px;
  }

  .contract-heading h2 {
    font-size: 28px;
  }

  .results-table th,
  .results-table td {
    padding-inline: 4px;
  }

  .results-table th {
    font-size: 13px;
  }

  .results-table td {
    font-size: 14px;
  }

  .results-table th:first-child,
  .results-table td:first-child {
    width: 34%;
  }

  .model-cell {
    gap: 4px;
    max-width: 100%;
    font-size: 13px;
  }

  .model-cell > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rank-medal {
    width: 14px;
    font-size: 14px;
  }
}

.citation-section {
  padding: var(--section-space-compact) 0;
  color: var(--ink);
  background: var(--white);
}

.citation-shell {
  display: block;
}

.citation-heading {
  display: block;
}

.citation-heading h2 {
  margin: 0;
}

.citation-code-shell {
  min-width: 0;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: color-mix(in oklch, var(--paper) 76%, var(--white));
}

.citation-code-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 9px 7px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--white) 72%, var(--paper));
}

.citation-code-toolbar > span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1;
  font-weight: 720;
}

.citation-copy-button {
  width: 40px;
  flex: 0 0 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 14px;
  line-height: 1;
  font-weight: 720;
  cursor: pointer;
  transition:
    color 160ms var(--control-ease),
    background-color 160ms var(--control-ease),
    border-color 160ms var(--control-ease),
    transform 160ms var(--control-ease);
}

.citation-copy-button:hover,
.citation-copy-button.is-copied {
  color: var(--action-strong);
  border-color: color-mix(in oklch, var(--action) 38%, var(--line));
  background: var(--action-pale);
}

.citation-copy-button:active {
  transform: scale(0.96);
}

.citation-copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.citation-code-shell pre {
  margin: 0;
  padding: 22px 24px 26px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: color-mix(in oklch, var(--ink-muted) 45%, transparent) transparent;
}

.citation-code-shell code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.68;
  tab-size: 2;
}

@media (max-width: 600px) {
  .citation-section {
    padding-block: 72px;
  }

  .citation-code-toolbar {
    padding-inline-start: 16px;
  }

  .citation-code-shell pre {
    padding: 18px 16px 22px;
  }

  .citation-code-shell code {
    font-size: 12.5px;
  }
}

@media (forced-colors: active) {
  button:focus-visible,
  a:focus-visible,
  select:focus-visible,
  input:focus-visible {
    outline-color: Highlight;
  }

  .site-nav a.is-current,
  [aria-pressed="true"],
  [aria-selected="true"] {
    outline: 1px solid Highlight;
  }
}

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

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

  .operational-reveal-layers {
    display: none;
  }
}
