/* Figure previews and the motion-window disclosure. */
.first-picks {
  margin: 1.4rem 0;
  grid-column: 1/-1;
}

.first-picks img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.first-picks figcaption {
  margin-top: .55rem;
  font-size: .9rem;
}

#motion-details {
  margin: 1rem 0;
}

#motion-details summary {
  cursor: pointer;
  padding: .7rem 0;
  font-weight: 600;
}

#motion-details[hidden] {
  display: none !important;
}

/* Page layout and components */
@font-face {
  font-family: Inter;
  src: local('Inter');
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: #fbfcfe;
  color: #17223b;
  font-family: Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

button,input,select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

button {
  color: inherit;
}

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

button {
  border: 0;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid #739be7;
  outline-offset: 5px;
}

button:disabled {
  cursor: default;
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  letter-spacing: -.045em;
  line-height: 1.08;
}

p {
  line-height: 1.65;
}

.section-wrap {
  width: min(1280px,calc(100% - 96px));
  margin-inline: auto;
}

.display {
  font-size: clamp(40px,4.7vw,70px);
  font-weight: 680;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 700;
  line-height: 1.5;
  color: #586984;
}

.quiet,.small-note {
  font-size: 13px;
  color: #718096;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(105deg,#2b6c8d 0%,#5f4d98 55%,#8c5793 100%);
  background-clip: text;
  color: transparent;
}

.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 200;
  background: #fff;
  padding: 14px;
}

.skip:focus {
  top: 20px;
}

.nav {
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 max(32px,calc((100vw - 1320px)/2));
  gap: 45px;
  background: #fbfcfee8;
  backdrop-filter: blur(22px);
  border-bottom: 1px solid #dbe4ef90;
}

.brand img {
  width: 115px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 35px;
  margin: auto;
  font-size: 14px;
  font-weight: 550;
  color: #56647a;
}

.nav-links a {
  position: relative;
  padding: 25px 0;
}

.nav-links a:after {
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background: #6f5b9c;
  content: '';
  transform: scaleX(0);
  transition: transform .3s;
}

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

.nav-film {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #17223b;
  color: #fff;
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-film svg {
  width: 16px;
}

.scroll-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--scroll,0%);
  background: linear-gradient(90deg,#3d8574,#7261a3,#448abd);
}

.hero {
  position: relative;
  padding-top: 80px;
}

.hero-copy {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: .24em;
  color: #8b96a8;
  margin-bottom: 20px;
}

.hero-logo {
  width: clamp(250px,27vw,420px);
  height: auto;
  margin: 0 auto 27px;
  filter: drop-shadow(0 12px 28px #8c6ca413);
}

.hero h1 {
  font-size: clamp(33px,3.7vw,54px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.hero-subtitle {
  font-size: clamp(19px,2vw,27px);
  font-weight: 450;
  color: #586881;
  margin-top: 12px;
  letter-spacing: -.02em;
}

.hero-deck {
  font-size: 21px;
  line-height: 1.5;
  margin-top: 32px;
  font-weight: 550;
}

.hero-deck span {
  color: #7a87a0;
  font-weight: 400;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 23px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 99px;
  transition: transform .25s,box-shadow .25s,background .25s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #17223b12;
}

.button.primary {
  background: #253f65;
  color: white;
}

.button.secondary {
  background: #fff;
  border: 1px solid #d8e0ec;
  color: #344962;
}

.button svg {
  width: 16px;
}

.hero-orbit {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .55;
}

.orbit-a {
  height: 430px;
  width: 430px;
  background: radial-gradient(circle,#d8f2f440,transparent 68%);
  left: -300px;
  top: 0;
  animation: orbit 15s ease-in-out infinite alternate;
}

.orbit-b {
  height: 550px;
  width: 550px;
  background: radial-gradient(circle,#f1dff545,transparent 65%);
  right: -230px;
  top: 20px;
  animation: orbit 17s ease-in-out infinite alternate-reverse;
}

.orbit-c {
  height: 700px;
  width: 1100px;
  background: radial-gradient(ellipse,#dee8f83b,transparent 65%);
  left: 0;
  top: 300px;
}

.hero-cinema {
  position: relative;
  z-index: 3;
  margin-top: 55px;
  border: 1px solid #dfe7f0;
  border-radius: 27px;
  overflow: hidden;
  box-shadow: 0 28px 70px -34px #28425d50;
  background: #fff;
}

.cinema-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.cinema-label {
  font-size: 13px;
  font-weight: 600;
  color: #526782;
}

.soundless-toggle {
  background: none;
  font-size: 12px;
  color: #697b92;
  padding: 3px 0;
}

.hero-video-wrap {
  position: relative;
  aspect-ratio: 2/1;
  background: #e5eaf0;
  overflow: hidden;
}

.hero-video-wrap video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.cinema-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#101d3b90,transparent 45%);
  pointer-events: none;
}

.cinema-bottom {
  position: absolute;
  bottom: 26px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.cinema-bottom>span {
  font-size: clamp(22px,3vw,44px);
  font-weight: 650;
  letter-spacing: -.04em;
}

.round-play {
  background: #fffE;
  border: 1px solid #fff;
  color: #244c72;
  height: 54px;
  width: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: transform .3s;
}

.round-play:hover {
  transform: scale(1.1);
}

.cinema-rail {
  display: flex;
  justify-content: center;
  gap: 55px;
  color: #64758a;
  padding: 13px;
  font-size: 12px;
}

.authors {
  text-align: center;
  padding: 32px 0 0;
  color: #687489;
  font-size: 13px;
  line-height: 1.8;
}

.authors>div {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 12px;
  margin-top: 8px;
}

.authors sup {
  font-size: .7em;
}

.score-section {
  padding-top: 115px;
  padding-bottom: 100px;
}

.score-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
}

.score-intro h2 {
  font-size: 30px;
  font-weight: 600;
}

.score-intro>.eyebrow {
  padding-bottom: 6px;
}

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

.score-card {
  position: relative;
  padding: 34px 35px 32px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: linear-gradient(130deg,#fff,var(--tint));
  overflow: hidden;
  transition: transform .4s,box-shadow .4s;
  color: var(--tone);
}

.score-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 25px 45px -26px var(--tone);
}

.teal {
  --tone:#2d7665;
  --tint:#eff8f4;
  --border:#dcebe5;
}

.purple {
  --tone:#7653a0;
  --tint:#f7f2fc;
  --border:#e9dff2;
}

.blue {
  --tone:#2b6594;
  --tint:#eff6fc;
  --border:#dbe7f2;
}

.score-card>span {
  font-size: 14px;
  font-weight: 600;
}

.score-card>strong {
  font-size: clamp(52px,5.8vw,84px);
  font-weight: 650;
  display: block;
  letter-spacing: -.07em;
  line-height: 1.3;
  margin-top: 14px;
}

.score-card small {
  font-size: 25px;
  margin-left: 3px;
  font-weight: 450;
}

.score-card>b {
  font-size: 21px;
  font-weight: 650;
  display: block;
  margin-top: 8px;
}

.score-card p {
  color: #7e8b9b;
  font-size: 13px;
}

.score-spark {
  margin-top: 28px;
  display: grid;
  gap: 6px;
}

.score-spark i {
  display: block;
  width: var(--w);
  height: 5px;
  background: #aebaca70;
  border-radius: 99px;
  transform-origin: left;
  animation: growbar 1.5s cubic-bezier(.2,.8,.2,1) both;
}

.score-spark i+ i {
  background: var(--tone);
  animation-delay: .2s;
}

.score-section>.quiet {
  margin-top: 24px;
}

.story-section {
  background: linear-gradient(145deg,#eff4fa 0%,#f8f6fb 100%);
  padding: 110px 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.story-sticky>.eyebrow {
  margin-bottom: 20px;
}

.story-sticky .display {
  font-size: 56px;
}

.story-sticky>p:not(.eyebrow) {
  font-size: 18px;
  color: #586a83;
  max-width: 430px;
  margin-top: 24px;
}

.story-sticky .story-muted {
  font-size: 15px !important;
  color: #8b98a9 !important;
  margin-top: 12px !important;
}

.story-step-nav {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
  margin-top: 35px;
}

.story-step-nav button {
  background: transparent;
  border-left: 2px solid #cdd6e5;
  padding: 4px 0 4px 18px;
  color: #8390a2;
  text-align: left;
  font-size: 15px;
  transition: color .3s,border-color .3s;
}

.story-step-nav button[aria-pressed=true] {
  color: #405c87;
  border-color: #6b5b9e;
  font-weight: 600;
}

.story-stage {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid #dde4ed;
  min-height: 525px;
  box-shadow: 0 22px 65px -30px #21386130;
}

.stage-eyebrow {
  font-size: 13px;
  letter-spacing: .03em;
  color: #667b95;
  text-align: center;
  margin-bottom: 20px;
}

.evidence-history {
  display: flex;
  gap: 14px;
  justify-content: center;
  opacity: .13;
  filter: grayscale(1);
  transition: opacity .6s,filter .6s;
  min-height: 115px;
}

.evidence-history figure {
  width: 30%;
  text-align: center;
  transform: translateY(-6px);
  transition: transform .6s;
}

.evidence-history img {
  width: 100%;
  height: 78px;
  object-fit: contain;
  border-radius: 9px;
}

.evidence-history figcaption {
  font-size: 12px;
  color: #775b9e;
  margin-top: 6px;
}

.story-stage[data-step="1"] .evidence-history,.story-stage[data-step="2"] .evidence-history {
  opacity: 1;
  filter: none;
}

.story-stage[data-step="1"] .evidence-history figure,.story-stage[data-step="2"] .evidence-history figure {
  transform: translateY(0);
}

.evidence-path {
  height: 35px;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  opacity: .2;
  transition: opacity .5s;
}

.evidence-path i {
  width: 5px;
  height: 5px;
  background: #8b75aa;
  border-radius: 50%;
  animation: token 2s infinite;
  animation-delay: calc(var(--i,0)*.1s);
}

.evidence-path i:nth-child(2) {
  animation-delay: .2s;
}

.evidence-path i:nth-child(3) {
  animation-delay: .4s;
}

.evidence-path i:nth-child(4) {
  animation-delay: .6s;
}

.evidence-path i:nth-child(5) {
  animation-delay: .8s;
}

.story-stage[data-step="1"] .evidence-path,.story-stage[data-step="2"] .evidence-path {
  opacity: 1;
}

.evidence-current {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.evidence-current img {
  height: 110px;
  width: 150px;
  object-fit: contain;
  border: 1px solid #c8d8e8;
  border-radius: 10px;
}

.evidence-current span {
  font-size: 13px;
  color: #70839a;
  max-width: 95px;
}

.story-decision {
  text-align: center;
  border-radius: 14px;
  padding: 18px;
  background: #f2f5fa;
  margin-top: 22px;
  transition: background .6s;
}

.story-decision>span {
  font-size: 11px;
  font-weight: 650;
  color: #8491a5;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.story-decision strong {
  display: block;
  font-size: 23px;
  color: #55647e;
  margin-top: 7px;
  letter-spacing: -.03em;
}

.story-decision p {
  font-size: 12px;
  color: #8c96a8;
  margin-top: 4px;
}

.story-stage[data-step="2"] .story-decision {
  background: #edf6f2;
}

.story-stage[data-step="2"] .story-decision strong {
  color: #357e68;
}

.story-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #95a2b3;
  margin: 20px 0 8px;
}

.story-timeline i {
  height: 1px;
  flex: 1;
  background: #dce3ed;
}

.small-note {
  text-align: center;
  font-size: 10px;
}

.rollout-section {
  padding-top: 120px;
  padding-bottom: 90px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 70px;
  margin-bottom: 45px;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head>p {
  font-size: 17px;
  color: #728099;
  max-width: 350px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.benchmark-tabs {
  display: flex;
  gap: 8px;
  background: #edf1f7;
  border: 1px solid #e1e7f0;
  border-radius: 17px;
  padding: 6px;
  max-width: 850px;
  margin-bottom: 28px;
}

.benchmark-tabs>button {
  flex: 1;
  background: none;
  padding: 13px 22px;
  color: #7e8a9e;
  border-radius: 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 550;
  transition: background .3s,box-shadow .3s,color .3s;
}

.benchmark-tabs button>span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  margin-top: 4px;
}

.benchmark-tabs button[aria-selected=true] {
  background: #fff;
  color: #2b557d;
  box-shadow: 0 4px 14px #2443650b;
}

.task-strip {
  display: flex;
  overflow: auto;
  gap: 8px;
  padding-bottom: 15px;
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c9d5e4 transparent;
}

.task-strip button {
  font-size: 12px;
  border: 1px solid #dce4ef;
  border-radius: 99px;
  padding: 9px 14px;
  white-space: nowrap;
  background: white;
  color: #77849a;
  transition: background .3s,color .3s;
}

.task-strip button[aria-pressed=true] {
  background: #304f75;
  color: #fff;
  border-color: #304f75;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 25px;
  align-items: start;
}

.main-recording {
  border: 1px solid #dde5f0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 45px -38px #233f6d65;
}

.recording-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  font-size: 12px;
  color: #65758f;
}

.recording-platform {
  color: #94a0b2;
}

.recording-screen {
  background: #101a2e;
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recording-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recording-caption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 10px;
}

.recording-caption h3 {
  font-size: 24px;
  letter-spacing: -.03em;
}

.recording-caption p {
  font-size: 14px;
  color: #7888a0;
  margin-top: 8px;
}

.provenance-chip {
  display: inline-block;
  font-size: 10px;
  line-height: 1.5;
  max-width: 160px;
  background: #f2f5fa;
  color: #7788a0;
  border-radius: 7px;
  padding: 6px 9px;
  text-align: right;
  white-space: normal;
}

.recording-note {
  color: #9aa6b7;
  font-size: 11px;
  padding: 5px 22px 20px;
  line-height: 1.6;
}

.config-panel {
  background: #f2f5fa;
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  padding: 22px;
  min-height: 330px;
}

.config-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8392a8;
}

.config-heading .eyebrow {
  font-size: 10px;
  letter-spacing: .13em;
}

.config-panel>p {
  font-size: 12px;
  color: #8996aa;
  margin-top: 18px;
  margin-bottom: 13px;
}

.platform-switch {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.platform-switch:empty {
  display: none;
}

.platform-switch button {
  flex: 1;
  border: 1px solid #d7e0ed;
  border-radius: 7px;
  background: #fff;
  padding: 7px 6px;
  font-size: 11px;
  color: #7a8ca3;
}

.platform-switch button[aria-pressed=true] {
  color: #426b8c;
  background: #e6f0f8;
  border-color: #c8dae9;
}

.config-grid {
  display: grid;
  gap: 8px;
}

.config-grid button {
  background: white;
  border: 1px solid #e1e7f0;
  border-radius: 9px;
  text-align: left;
  padding: 11px 12px;
  color: #7d8ba1;
  font-size: 12px;
  transition: border .2s,background .2s,transform .2s;
}

.config-grid button:hover {
  border-color: #94b1d1;
  transform: translateX(2px);
}

.config-grid button[aria-pressed=true] {
  border-color: #7d9bbc;
  background: #eaf1fa;
  color: #375d82;
  font-weight: 600;
}

.config-grid.is-matrix {
  grid-template-columns: repeat(5,1fr);
  gap: 5px;
}

.config-grid.is-matrix button {
  text-align: center;
  padding: 10px 0;
  font-size: 10px;
  border-radius: 6px;
}

.config-grid.is-matrix button:hover {
  transform: translateY(-2px);
}

.config-details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #dce3ed;
  color: #9ba7b8;
  font-size: 11px;
  line-height: 1.7;
}

.config-details b {
  display: block;
  font-weight: 550;
  color: #6e7f97;
  margin-bottom: 5px;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  color: #8b98ad;
  font-size: 12px;
  gap: 25px;
}

.text-button {
  background: none;
  color: #4e6e95;
  font-size: 13px;
  padding: 4px 0;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.text-button>span {
  font-size: 17px;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background: #eef2f8;
  color: #6a7c96;
}

.video-fallback[hidden] {
  display: none;
}

.retry-section {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 80px;
  align-items: center;
  padding: 90px 0 130px;
}

.retry-copy>.eyebrow {
  font-size: 11px;
  margin-bottom: 20px;
}

.retry-copy>p:not(.eyebrow) {
  font-size: 16px;
  color: #7889a2;
  margin-top: 24px;
  max-width: 330px;
}

.retry-copy .quiet {
  font-size: 12px !important;
  margin-top: 14px !important;
}

.retry-copy .button {
  margin-top: 30px;
}

.retry-film {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 20px 45px -32px #3349663b;
}

.retry-film video {
  width: 100%;
  aspect-ratio: 4/3;
  background: #132238;
}

.retry-events {
  display: flex;
  justify-content: space-around;
  padding: 17px 10px;
  gap: 10px;
}

.retry-events button {
  font-size: 11px;
  border: 1px solid #e0e7f1;
  border-radius: 99px;
  padding: 7px 10px;
  background: white;
  color: #7f8fa6;
}

.wall-section {
  background: #111c31;
  color: #fff;
  padding-top: 85px;
  padding-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.wall-heading {
  text-align: center;
  position: relative;
  z-index: 2;
}

.wall-heading .eyebrow {
  color: #97aac5;
  margin-bottom: 20px;
}

.wall-heading h2 {
  font-size: 60px;
}

.wall-heading>p:not(.eyebrow) {
  font-size: 16px;
  color: #8296b2;
  margin: 24px 0;
}

.wall-window {
  position: relative;
  max-width: 1800px;
  margin: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.wall-window video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.wall-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#111c31 0%,transparent 15%,transparent 85%,#111c31 100%);
  pointer-events: none;
}

.wall-control {
  position: absolute;
  bottom: 35px;
  right: 45px;
  color: #aebed5;
  font-size: 12px;
  background: #182742cc;
  border: 1px solid #5266805c;
  border-radius: 99px;
  padding: 9px 15px;
}

.wall-note {
  color: #637892;
  text-align: center;
  font-size: 11px;
  margin-top: 4px;
}

.method-section {
  padding-top: 130px;
  padding-bottom: 100px;
}

.mechanism-tabs {
  display: flex;
  border-bottom: 1px solid #dce4ef;
  gap: 40px;
  margin-bottom: 35px;
}

.mechanism-tabs button {
  background: none;
  font-size: 14px;
  color: #92a0b5;
  text-align: left;
  padding: 15px 5px 18px;
  border-bottom: 3px solid transparent;
  min-width: 155px;
  transition: border .4s,color .4s;
}

.mechanism-tabs button span {
  display: block;
  font-size: 22px;
  line-height: 1.5;
  color: #718198;
  font-weight: 650;
  letter-spacing: -.04em;
}

.mechanism-tabs button[aria-selected=true] {
  color: var(--tone,#357360);
  border-color: var(--tone,#357360);
}

.mechanism-tabs button[aria-selected=true] span {
  color: inherit;
}

.mechanism-tabs button:nth-child(1) {
  --tone:#397d6b;
}

.mechanism-tabs button:nth-child(2) {
  --tone:#7e60a1;
}

.mechanism-tabs button:nth-child(3) {
  --tone:#b2733e;
}

.mechanism-scene {
  display: grid;
  grid-template-columns: .85fr 1.2fr;
  gap: 60px;
  padding: 45px;
  background: #f0f6f3;
  border: 1px solid #dfebe4;
  border-radius: 24px;
  min-height: 405px;
  transition: background .5s;
}

.mechanism-scene[data-active="1"] {
  background: #f5f0fa;
  border-color: #e6ddf1;
}

.mechanism-scene[data-active="2"] {
  background: #fbf5eb;
  border-color: #efe4d2;
}

.mechanism-copy>.eyebrow {
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.mechanism-copy h3 {
  font-size: 35px;
  max-width: 320px;
}

.mechanism-copy>p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: #7d8e9f;
  margin-top: 20px;
}

.mechanism-facts {
  display: flex;
  gap: 22px;
  margin-top: 23px;
  font-size: 12px;
  color: #73899a;
}

.mechanism-facts b {
  font-size: 22px;
  font-weight: 600;
  display: block;
  letter-spacing: -.03em;
  color: #425f74;
}

.mechanism-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 310px;
}

.memory-flow {
  display: flex;
  gap: 22px;
  width: 100%;
  align-items: center;
}

.memory-windows {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.memory-windows>span {
  color: #729589;
  font-size: 12px;
}

.motion-frames {
  display: flex;
  gap: 7px;
}

.motion-frames i {
  height: 55px;
  width: 45px;
  background: #b1d4c7;
  border: 1px solid #9bbfae;
  border-radius: 7px;
  animation: memoryshift 5s infinite;
}

.motion-frames i:nth-child(2) {
  background: #d1e0d8;
  animation-delay: .4s;
}

.motion-frames i:nth-child(3) {
  background: #e5eee8;
  animation-delay: .8s;
}

.memory-selector {
  position: absolute;
  bottom: 40px;
  left: 25px;
  background: white;
  border: 1px solid #cadecf;
  border-radius: 9px;
  padding: 8px 15px;
  color: #658a7c;
  font-size: 12px;
}

.bank-animation {
  width: 50%;
  background: #fff9;
  border: 1px solid #c6dbce;
  padding: 20px;
  border-radius: 16px;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.bank-grid i {
  height: 20px;
  background: #dcebe4;
  border-radius: 4px;
  animation: bankpulse 4s infinite;
  animation-delay: calc(var(--i)*.2s);
}

.bank-animation>span {
  display: block;
  text-align: center;
  color: #5d8574;
  font-size: 12px;
}

.flow-dots {
  position: absolute;
  top: 49%;
  left: 42%;
  display: flex;
  gap: 4px;
}

.flow-dots i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #6da68f;
  animation: token 2s infinite;
}

.reader-animation {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reader-stack {
  background: #fff9;
  border: 1px solid #dacde8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #917aaf;
  font-size: 12px;
}

.reader-stack b {
  display: block;
  font-size: 16px;
  margin: 17px 0;
}

.reader-layers {
  display: grid;
  gap: 5px;
}

.reader-layers i {
  display: block;
  height: 9px;
  border: 1px solid #d8c8e7;
  border-radius: 4px;
  background: #eee5f6;
  animation: layerpulse 4s infinite;
  animation-delay: calc(var(--i)*.15s);
}

.reader-layers i:nth-child(even) {
  background: #c9b4df;
}

.reader-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff9;
  border: 1px solid #deceeb;
  border-radius: 12px;
  color: #735493;
  gap: 18px;
}

.reader-action strong {
  font-size: 19px;
}

.reader-action span {
  font-size: 11px;
  color: #a291b4;
}

.prediction-animation {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.masked-frame {
  height: 120px;
  border: 1px solid #dcbf99;
  border-radius: 13px;
  background: repeating-linear-gradient(135deg,#f3e2c8 0px,#f3e2c8 5px,#fff4e6 5px,#fff4e6 15px);
  display: grid;
  place-items: center;
  color: #b28858;
  font-size: 13px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;
}

.prediction-grid i {
  height: 28px;
  border-radius: 4px;
  background: #e8c79f;
  animation: prediction 3s infinite;
  animation-delay: calc(var(--i)*.1s);
}

.prediction-label {
  text-align: center;
  grid-column: 1/-1;
  font-size: 12px;
  color: #b08c61;
  margin-top: 10px;
}

.architecture-card {
  margin-top: 50px;
  padding: 30px 32px;
  border: 1px solid #dde5ef;
  border-radius: 22px;
  background: white;
}

.architecture-card>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}

.architecture-card h3 {
  font-size: 20px;
  letter-spacing: -.025em;
}

.architecture-card img {
  width: 100%;
  height: auto;
}

.results-section {
  padding: 100px 0;
  background: #f0f4f9;
}

.result-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.result-switch button {
  background: white;
  border: 1px solid #dce5f1;
  color: #8795aa;
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 13px;
}

.result-switch button[aria-pressed=true] {
  background: var(--result-tone,#306f65);
  color: white;
  border-color: transparent;
}

.result-spotlight {
  display: grid;
  grid-template-columns: 1.7fr .8fr;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 26px;
  overflow: hidden;
  min-height: 345px;
  margin-bottom: 50px;
}

.result-chart {
  padding: 38px 45px 35px;
}

.chart-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 37px;
}

.chart-label h3 {
  font-size: 22px;
  letter-spacing: -.025em;
}

.chart-label span {
  font-size: 12px;
  color: #91a0b5;
}

.mean-row {
  display: grid;
  grid-template-columns: 100px 1fr 62px;
  gap: 15px;
  align-items: center;
  margin: 23px 0;
}

.mean-row>span {
  font-size: 14px;
  color: #8997a9;
}

.mean-row>strong {
  font-size: 19px;
  color: #6b7d93;
  letter-spacing: -.03em;
}

.mean-track {
  height: 36px;
  background: repeating-linear-gradient(90deg,transparent,transparent calc(25% - 1px),#e9edf5 calc(25% - 1px),#e9edf5 25%);
  position: relative;
  border-left: 1px solid #dfe7f1;
  border-right: 1px solid #dfe7f1;
}

.mean-track i {
  height: 100%;
  width: var(--w);
  display: block;
  background: #c1ccd9;
  border-radius: 0 5px 5px 0;
  animation: growbar 1.6s cubic-bezier(.2,.8,.2,1) both;
  transform-origin: left;
}

.mean-row.ours .mean-track i {
  background: var(--result-tone,#306f65);
  animation-delay: .25s;
}

.mean-row.ours>span,.mean-row.ours>strong {
  color: var(--result-tone,#306f65);
  font-weight: 650;
}

.mean-row.ours .mean-track {
  height: 48px;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin: 8px 78px 0 115px;
  font-size: 11px;
  color: #a5b0bf;
}

.result-magnitude {
  background: var(--result-tone,#306f65);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 40px;
  transition: background .5s;
}

.result-magnitude>span {
  font-size: 13px;
  opacity: .7;
}

.result-magnitude strong {
  font-size: clamp(48px,5.6vw,80px);
  letter-spacing: -.07em;
  font-weight: 600;
  line-height: 1.3;
  margin: 12px 0;
}

.result-magnitude small {
  font-size: 25px;
  font-weight: 450;
  letter-spacing: -.03em;
  margin-left: 5px;
}

.result-magnitude p {
  font-size: 14px;
  max-width: 220px;
  opacity: .8;
  line-height: 1.7;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.table-toolbar h3 {
  font-size: 24px;
  letter-spacing: -.025em;
}

.table-scroll {
  overflow: auto;
  border-radius: 17px;
  border: 1px solid #dfe6f0;
  background: #fff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 550px;
  text-align: left;
  font-size: 13px;
}

th,td {
  padding: 18px 22px;
  white-space: nowrap;
  border-bottom: 1px solid #edf1f6;
}

thead {
  background: #f8fafd;
  color: #8d9db1;
  font-size: 11px;
}

thead th {
  font-weight: 500;
}

tbody th {
  font-weight: 550;
  color: #4b607a;
}

td.score {
  font-size: 18px;
  letter-spacing: -.03em;
  font-weight: 550;
  text-align: right;
}

.rank {
  font-size: 11px;
  color: #a0adbf;
}

.table-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #99a6b8;
  margin-top: 3px;
}

.ours {
  background: var(--result-tint,#eef6f3);
}

.ours th,.ours td.score {
  color: var(--result-tone,#306f65);
  font-weight: 650;
}

.detail-col {
  text-align: right;
  font-size: 11px;
  color: #8392a7;
}

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

tbody tr:last-child>* {
  border-bottom: 0;
}

.results-section .quiet {
  margin-top: 20px;
  max-width: 920px;
}

.evidence-section {
  padding: 115px 0;
}

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

.diagnostic {
  padding: 30px 30px 0;
  border-radius: 23px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg,#fff,var(--tint));
  overflow: hidden;
  color: var(--tone);
  min-height: 430px;
  position: relative;
}

.diagnostic .eyebrow {
  font-size: 10px;
  color: inherit;
  opacity: .75;
  margin-bottom: 18px;
}

.diagnostic h3 {
  font-size: 29px;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.diag-number {
  font-size: 70px;
  letter-spacing: -.065em;
  font-weight: 620;
  line-height: 1.3;
  margin-top: 22px;
}

.diag-number small {
  font-size: 25px;
  margin-left: 4px;
}

.diagnostic>p:not(.eyebrow) {
  font-size: 13px;
  color: #8c9aab;
  margin-top: 8px;
  line-height: 1.6;
}

.diagnostic img {
  margin-top: 25px;
  max-height: 140px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px 8px 0 0;
}

.diag-comparison {
  display: flex;
  gap: 35px;
  margin-top: 35px;
}

.diag-comparison span {
  color: #9c8fae;
  font-size: 12px;
}

.diag-comparison b {
  display: block;
  color: #7d60a0;
  font-size: 34px;
  letter-spacing: -.04em;
}

.token-field {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 7px;
  margin: 34px 0;
}

.token-field i {
  height: 20px;
  border-radius: 5px;
  background: #cbb9e1;
  opacity: .5;
  animation: layerpulse 4s infinite;
  animation-delay: calc(var(--i)*.13s);
}

.swap-graphic {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  font-size: 12px;
  color: #7198b9;
}

.swap-graphic i {
  height: 2px;
  background: #9ebdd5;
}

.swap-graphic strong {
  font-weight: 550;
  color: #3b7ba9;
}

.platform-section {
  padding-bottom: 95px;
}

.platform-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid #e6edf4;
  background: #fff;
}

.platform-specs {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 26px;
  color: #8798ae;
  font-size: 12px;
}

.end-section {
  text-align: center;
  position: relative;
  padding: 90px 0 110px;
  border-top: 1px solid #e5ebf4;
}

.end-section>img {
  width: 210px;
  margin: 0 auto 26px;
}

.end-section h2 {
  font-size: 50px;
  line-height: 1.2;
  color: #304763;
  font-weight: 600;
}

.end-section>p {
  font-size: 13px;
  color: #9aa8bb;
  margin-top: 28px;
}

.end-section:before {
  position: absolute;
  inset: 0;
  content: '';
  background: radial-gradient(ellipse at center,#eee6fa50,transparent 70%);
  pointer-events: none;
  z-index: -1;
}

footer {
  border-top: 1px solid #e5ebf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  color: #94a3b8;
  font-size: 11px;
}

footer .brand img {
  width: 90px;
}

.film-dialog,.image-dialog {
  border: 1px solid #d3dfed;
  border-radius: 22px;
  padding: 20px;
  background: #f9fbfe;
  color: #263f5c;
  max-width: 1380px;
  width: calc(100vw - 70px);
  box-shadow: 0 30px 120px #0f1d4660;
}

.film-dialog::backdrop,.image-dialog::backdrop {
  background: #101d38b3;
  backdrop-filter: blur(12px);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 20px;
}

.dialog-top h2 {
  font-size: 18px;
  letter-spacing: -.02em;
}

.dialog-close {
  font-size: 12px;
  background: #eaf0f7;
  border: 1px solid #d8e2ef;
  border-radius: 99px;
  padding: 8px 16px;
  color: #5e7694;
}

.film-dialog video {
  width: 100%;
  max-height: 72vh;
  background: #0f1e35;
  border-radius: 10px;
}

.film-dialog>p {
  font-size: 11px;
  color: #93a2b6;
  margin-top: 15px;
}

.film-chapters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-top: 16px;
  scrollbar-width: thin;
}

.film-chapters button {
  white-space: nowrap;
  background: white;
  border: 1px solid #dae5f1;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 11px;
  color: #7590ae;
}

.image-dialog .dialog-close {
  display: block;
  margin-left: auto;
  margin-bottom: 15px;
}

.image-dialog img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}

.js-ready .reveal {
  transition: opacity .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1);
}

.score-grid>.reveal:nth-child(2) {
  transition-delay: .12s;
}

.score-grid>.reveal:nth-child(3) {
  transition-delay: .24s;
}

.diagnostic-grid>.reveal:nth-child(2) {
  transition-delay: .12s;
}

.diagnostic-grid>.reveal:nth-child(3) {
  transition-delay: .24s;
}

@keyframes growbar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes orbit {
  to {
    transform: translate(30px,-40px);
  }
}

@keyframes token {
  0%,100% {
    opacity: .2;
    transform: scale(.8);
  }

  45% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes bankpulse {
  0%,100% {
    background: #dcebe4;
  }

  40% {
    background: #82b39c;
  }
}

@keyframes memoryshift {
  0%,100% {
    transform: translateX(0);
    opacity: .7;
  }

  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

@keyframes layerpulse {
  0%,100% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes prediction {
  0%,100% {
    background: #e9d3b7;
  }

  50% {
    background: #bf915b;
  }
}

@media(min-width:1500px) {
  .hero {
    padding-top: 90px;
  }

  .hero-video-wrap {
    aspect-ratio: 2.1/1;
  }
}

@media(max-width:1050px) {
  .section-wrap {
    width: calc(100% - 64px);
  }

  .nav {
    gap: 20px;
    padding-inline: 32px;
  }

  .nav-links {
    gap: 23px;
  }

  .hero {
    padding-top: 55px;
  }

  .score-card {
    padding: 28px;
  }

  .story-layout {
    gap: 40px;
  }

  .story-sticky .display {
    font-size: 44px;
  }

  .section-head {
    gap: 35px;
  }

  .display {
    font-size: 50px;
  }

  .gallery-layout {
    grid-template-columns: minmax(0,1fr) 255px;
    gap: 17px;
  }

  .recording-caption {
    flex-direction: column;
  }

  .provenance-chip {
    text-align: left;
    max-width: none;
    font-size: 10px;
  }

  .config-panel {
    padding: 18px;
  }

  .retry-section {
    gap: 40px;
  }

  .retry-copy .display {
    font-size: 47px;
  }

  .mechanism-scene {
    gap: 30px;
    padding: 30px;
  }

  .result-chart {
    padding: 35px 27px;
  }

  .result-magnitude {
    padding: 30px;
  }

  .mean-row {
    grid-template-columns: 83px 1fr 56px;
    gap: 10px;
  }

  .chart-axis {
    margin-left: 95px;
    margin-right: 66px;
  }

  .diagnostic {
    padding: 25px 24px 0;
  }

  .diagnostic h3 {
    font-size: 24px;
  }

  .diag-number {
    font-size: 59px;
  }

  .platform-specs {
    gap: 20px;
    font-size: 11px;
  }
}

@media(max-width:760px) {
  .section-wrap {
    width: calc(100% - 38px);
  }

  .nav {
    height: 63px;
    padding-inline: 20px;
    gap: 15px;
  }

  .brand img {
    width: 91px;
  }

  .nav-links {
    gap: 18px;
    font-size: 11px;
  }

  .nav-links a:nth-child(1),.nav-links a:nth-child(3) {
    display: none;
  }

  .nav-film {
    font-size: 11px;
    padding: 9px 12px;
    gap: 6px;
  }

  .nav-film svg {
    width: 12px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: .19em;
  }

  .hero-logo {
    width: 260px;
    margin-bottom: 23px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-top: 12px;
  }

  .hero-deck {
    font-size: 17px;
    margin-top: 25px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 25px;
  }

  .button {
    font-size: 12px;
    padding: 12px 18px;
  }

  .hero-cinema {
    margin-top: 34px;
    border-radius: 17px;
  }

  .cinema-top {
    padding: 12px 15px;
  }

  .cinema-label {
    font-size: 10px;
  }

  .soundless-toggle {
    font-size: 10px;
  }

  .hero-video-wrap {
    aspect-ratio: 4/3;
  }

  .cinema-bottom {
    bottom: 20px;
    left: 18px;
    right: 18px;
  }

  .cinema-bottom>span {
    font-size: 25px;
  }

  .round-play {
    height: 43px;
    width: 43px;
  }

  .cinema-rail {
    gap: 18px;
    font-size: 9px;
  }

  .authors {
    font-size: 10px;
    padding-top: 25px;
  }

  .authors>div {
    font-size: 9px;
    gap: 18px;
  }

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

  .score-intro {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .score-intro h2 {
    font-size: 28px;
  }

  .score-intro .eyebrow {
    font-size: 10px;
  }

  .score-grid {
    gap: 10px;
  }

  .score-card {
    padding: 17px 14px 20px;
    border-radius: 17px;
  }

  .score-card>span {
    font-size: 10px;
  }

  .score-card>strong {
    font-size: 40px;
    letter-spacing: -.06em;
    margin-top: 14px;
  }

  .score-card small {
    font-size: 14px;
    margin-left: 1px;
  }

  .score-card>b {
    font-size: 15px;
    margin-top: 9px;
  }

  .score-card p {
    font-size: 9px;
  }

  .score-spark {
    margin-top: 20px;
    gap: 4px;
  }

  .score-spark i {
    height: 4px;
  }

  .score-section>.quiet {
    font-size: 10px;
    margin-top: 17px;
  }

  .story-section {
    padding: 70px 0;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-sticky .display {
    font-size: 43px;
  }

  .story-sticky>p:not(.eyebrow) {
    font-size: 16px;
    max-width: unset;
    margin-top: 18px;
  }

  .story-sticky .story-muted {
    font-size: 13px !important;
  }

  .story-step-nav {
    flex-direction: row;
    gap: 16px;
    margin-top: 25px;
  }

  .story-step-nav button {
    border-left: 0;
    border-bottom: 2px solid #d3deeb;
    padding: 7px 0;
    font-size: 11px;
  }

  .story-stage {
    min-height: 440px;
    padding: 22px;
  }

  .evidence-history {
    min-height: 85px;
  }

  .evidence-history img {
    height: 62px;
  }

  .evidence-current img {
    height: 94px;
  }

  .story-decision strong {
    font-size: 21px;
  }

  .stage-eyebrow {
    font-size: 11px;
  }

  .rollout-section {
    padding-top: 75px;
    padding-bottom: 50px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .display {
    font-size: 43px;
  }

  .section-head>p {
    font-size: 15px;
    max-width: unset;
  }

  .section-head .eyebrow {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .benchmark-tabs {
    gap: 3px;
    padding: 4px;
    border-radius: 13px;
    margin-bottom: 20px;
  }

  .benchmark-tabs>button {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 9px;
  }

  .benchmark-tabs button>span {
    font-size: 9px;
  }

  .task-strip {
    gap: 6px;
    padding-bottom: 12px;
  }

  .task-strip button {
    font-size: 10px;
    padding: 8px 12px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .recording-top {
    padding: 11px 16px;
    font-size: 10px;
  }

  .recording-caption {
    padding: 18px 18px 10px;
    gap: 12px;
  }

  .recording-caption h3 {
    font-size: 22px;
  }

  .recording-caption p {
    font-size: 12px;
  }

  .recording-note {
    padding: 4px 18px 17px;
    font-size: 10px;
  }

  .config-panel {
    min-height: unset;
    padding: 19px;
  }

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

  .config-grid button {
    font-size: 11px;
    padding: 10px;
  }

  .config-grid.is-matrix button {
    font-size: 11px;
  }

  .platform-switch {
    max-width: 310px;
  }

  .config-details {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 10px;
  }

  .config-panel>p {
    margin-top: 15px;
    font-size: 11px;
  }

  .gallery-footer {
    align-items: start;
    gap: 15px;
    font-size: 10px;
  }

  .gallery-footer>.text-button {
    font-size: 10px;
    white-space: nowrap;
  }

  .retry-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .retry-copy .display {
    font-size: 43px;
  }

  .retry-copy>p:not(.eyebrow) {
    font-size: 15px;
    max-width: unset;
    margin-top: 20px;
  }

  .retry-copy .quiet {
    font-size: 11px !important;
  }

  .retry-copy .button {
    margin-top: 22px;
  }

  .retry-events {
    padding: 13px 8px;
    gap: 5px;
  }

  .retry-events button {
    font-size: 9px;
    padding: 7px 9px;
  }

  .wall-section {
    padding-top: 65px;
  }

  .wall-heading h2 {
    font-size: 42px;
  }

  .wall-heading .eyebrow {
    font-size: 10px;
  }

  .wall-heading>p:not(.eyebrow) {
    font-size: 13px;
    margin-top: 20px;
  }

  .wall-window {
    aspect-ratio: 4/3;
  }

  .wall-window video {
    object-fit: contain;
  }

  .wall-control {
    bottom: 24px;
    right: 20px;
    font-size: 10px;
  }

  .wall-note {
    font-size: 9px;
    margin-top: -15px;
  }

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

  .mechanism-tabs {
    gap: 15px;
    margin-bottom: 22px;
  }

  .mechanism-tabs button {
    min-width: 0;
    flex: 1;
    font-size: 11px;
    padding-bottom: 12px;
  }

  .mechanism-tabs button span {
    font-size: 21px;
  }

  .mechanism-scene {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 25px;
  }

  .mechanism-copy h3 {
    font-size: 31px;
  }

  .mechanism-copy>p:not(.eyebrow) {
    font-size: 13px;
    margin-top: 15px;
  }

  .mechanism-facts {
    margin-top: 20px;
    font-size: 11px;
  }

  .mechanism-facts b {
    font-size: 21px;
  }

  .mechanism-animation {
    min-height: 220px;
  }

  .memory-selector {
    bottom: 20px;
  }

  .architecture-card {
    padding: 22px 18px;
    margin-top: 28px;
    border-radius: 16px;
  }

  .architecture-card>div {
    align-items: start;
    gap: 20px;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .architecture-card h3 {
    font-size: 18px;
  }

  .architecture-card .text-button {
    font-size: 11px;
  }

  .results-section {
    padding: 70px 0;
  }

  .result-switch {
    gap: 6px;
    margin-bottom: 24px;
  }

  .result-switch button {
    font-size: 11px;
    padding: 8px 12px;
  }

  .result-spotlight {
    grid-template-columns: 1fr;
    border-radius: 20px;
    margin-bottom: 35px;
  }

  .result-chart {
    padding: 25px 22px;
  }

  .chart-label {
    margin-bottom: 25px;
  }

  .chart-label h3 {
    font-size: 20px;
  }

  .chart-label span {
    font-size: 10px;
  }

  .mean-row {
    grid-template-columns: 79px 1fr 49px;
    gap: 10px;
    margin: 20px 0;
  }

  .mean-row>span {
    font-size: 12px;
  }

  .mean-row>strong {
    font-size: 15px;
  }

  .mean-track {
    height: 29px;
  }

  .mean-row.ours .mean-track {
    height: 37px;
  }

  .chart-axis {
    margin-left: 90px;
    margin-right: 60px;
    font-size: 10px;
  }

  .result-magnitude {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 0 20px;
  }

  .result-magnitude>span {
    grid-column: 1/-1;
    font-size: 11px;
  }

  .result-magnitude strong {
    font-size: 55px;
    margin: 5px 0;
  }

  .result-magnitude small {
    font-size: 20px;
  }

  .result-magnitude p {
    font-size: 11px;
    align-self: center;
  }

  .table-toolbar {
    align-items: start;
    gap: 20px;
  }

  .table-toolbar h3 {
    font-size: 20px;
  }

  .table-toolbar .text-button {
    font-size: 10px;
    text-align: right;
    line-height: 1.5;
    max-width: 110px;
  }

  th,td {
    padding: 14px 16px;
  }

  table {
    font-size: 12px;
    min-width: 480px;
  }

  td.score {
    font-size: 16px;
  }

  .results-section .quiet {
    font-size: 10px;
    margin-top: 16px;
  }

  .evidence-section {
    padding: 70px 0;
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .diagnostic {
    padding: 28px;
    min-height: 0;
  }

  .diagnostic h3 {
    font-size: 29px;
  }

  .diagnostic img {
    max-height: 170px;
    width: 100%;
    object-fit: contain;
  }

  .diag-number {
    font-size: 65px;
  }

  .diag-comparison {
    gap: 55px;
    margin-top: 25px;
  }

  .diagnostic>p:not(.eyebrow) {
    font-size: 13px;
  }

  .token-field {
    margin-bottom: 5px;
  }

  .swap-graphic {
    max-width: 300px;
  }

  .platform-section {
    padding-bottom: 65px;
  }

  .platform-image {
    border-radius: 14px;
  }

  .platform-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: center;
    font-size: 10px;
    margin-top: 20px;
  }

  .end-section {
    padding: 65px 0 70px;
  }

  .end-section>img {
    width: 180px;
  }

  .end-section h2 {
    font-size: 35px;
  }

  .end-section>p {
    font-size: 11px;
  }

  .end-section .hero-actions {
    gap: 8px;
  }

  footer {
    gap: 15px;
    font-size: 9px;
    padding-block: 23px;
  }

  footer .brand img {
    width: 75px;
  }

  .film-dialog,.image-dialog {
    width: calc(100vw - 20px);
    padding: 12px;
    border-radius: 16px;
  }

  .dialog-top h2 {
    font-size: 13px;
  }

  .dialog-close {
    font-size: 10px;
    padding: 6px 11px;
  }

  .film-dialog video {
    max-height: 65vh;
  }

  .film-dialog>p {
    font-size: 10px;
  }

  .film-chapters button {
    font-size: 10px;
  }

  .hero-orbit {
    display: none;
  }
}

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

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

  .js-ready .reveal:not(.visible) {
    opacity: 1;
    transform: none;
  }
}

.dual-section {
  padding-top: 100px;
  padding-bottom: 20px;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.dual-card {
  padding: 35px;
  border: 1px solid #e0e8f0;
  border-radius: 23px;
  background: #fff;
}

.dual-card>.eyebrow {
  font-size: 11px;
  color: #709285;
}

.dual-card h3 {
  font-size: 30px;
  line-height: 1.22;
  margin-top: 16px;
}

.dual-card p {
  font-size: 14px;
  color: #8b9aac;
  margin-top: 28px;
  max-width: 430px;
}

.supervision-sparse .eyebrow {
  color: #9272b3;
}

.sparse-timeline {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 42px;
  height: 55px;
}

.sparse-timeline i {
  background: #e3eee8;
  flex: 1;
  height: 29px;
  border-radius: 6px;
}

.sparse-timeline .event-cue {
  height: 50px;
  background: #76ac96;
  box-shadow: 0 0 0 5px #dbece350;
  animation: cuepulse 4s infinite;
}

.sparse-timeline .decision-cue {
  height: 38px;
  border: 2px solid #6b86a4;
  background: #f3f7fc;
  animation: cuepulse 4s infinite;
  animation-delay: 1.8s;
}

.timeline-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #9aa8ba;
  margin-top: 13px;
}

.supervision-tokens {
  display: grid;
  grid-template-columns: repeat(16,1fr);
  gap: 6px;
  margin-top: 46px;
  height: 51px;
}

.supervision-tokens i {
  background: #eae4f1;
  border-radius: 3px;
}

.supervision-tokens .history-required {
  background: #8f70b5;
  animation: cuepulse 4s infinite;
}

.supervision-tokens .history-required:nth-child(25) {
  animation-delay: 2s;
}

.bottleneck-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  gap: 23px;
}

.bottleneck-chain article {
  position: relative;
  padding-left: 22px;
}

.chain-dot {
  height: 7px;
  width: 7px;
  position: absolute;
  left: 0;
  top: 7px;
  border-radius: 50%;
}

.teal-dot {
  background: #629984;
}

.purple-dot {
  background: #9373b7;
}

.orange-dot {
  background: #bc9163;
}

.bottleneck-chain h3 {
  font-size: 17px;
  letter-spacing: -.02em;
}

.bottleneck-chain p {
  font-size: 11px;
  color: #8d9bb0;
  margin-top: 9px;
}

.chain-line {
  height: 1px;
  flex: 1;
  background: #dce4ef;
  max-width: 80px;
}

.chain-note {
  text-align: center;
  margin-top: 35px;
  font-size: 13px;
  color: #8899b0;
}

.method-section {
  padding-top: 90px;
}

.mechanism-copy .claim-note {
  font-size: 12px;
  color: #8a77a1;
  border-top: 1px solid #ddd2eb;
  margin-top: 18px;
  padding-top: 14px;
}

.config-grid button,.task-strip button,.benchmark-tabs>button,.platform-switch button {
  font-size: 14px;
}

.config-grid.is-matrix button {
  font-size: 12px;
}

.task-strip button {
  padding: 9px 16px;
}

.recording-note,.quiet {
  font-size: 12px;
}

.provenance-chip {
  font-size: 12px;
}

.film-chapters button,.retry-events button {
  font-size: 13px;
}

@keyframes cuepulse {
  0%,100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

@media(max-width:760px) {
  .dual-section {
    padding-top: 70px;
    padding-bottom: 0;
  }

  .dual-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .dual-card {
    padding: 27px;
  }

  .dual-card h3 {
    font-size: 27px;
  }

  .dual-card>.eyebrow {
    font-size: 10px;
  }

  .sparse-timeline {
    margin-top: 30px;
  }

  .supervision-tokens {
    margin-top: 32px;
  }

  .dual-card p {
    font-size: 13px;
    margin-top: 22px;
  }

  .bottleneck-chain {
    align-items: start;
    flex-direction: column;
    gap: 22px;
    margin-top: 33px;
  }

  .chain-line {
    width: 1px;
    height: 17px;
    min-height: 17px;
    margin-left: 3px;
  }

  .bottleneck-chain h3 {
    font-size: 18px;
  }

  .bottleneck-chain p {
    font-size: 12px;
  }

  .chain-note {
    text-align: left;
    font-size: 12px;
    padding-left: 22px;
    margin-top: 25px;
  }

  .config-grid button,.task-strip button,.benchmark-tabs>button,.platform-switch button {
    font-size: 13px;
  }

  .config-grid.is-matrix button {
    font-size: 12px;
  }

  .task-strip button {
    padding: 8px 12px;
  }

  .provenance-chip {
    font-size: 11px;
  }

  .recording-note {
    font-size: 11px;
  }

  .retry-events button {
    font-size: 11px;
  }

  .film-chapters button {
    font-size: 12px;
  }
}

.failure-section {
  padding-top: 60px;
  padding-bottom: 65px;
}

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

.failure-grid article {
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: 20px;
  overflow: hidden;
}

.failure-card-head {
  padding: 26px;
}

.failure-card-head span {
  font-size: 13px;
  color: #a17565;
  font-weight: 600;
  letter-spacing: .02em;
}

.failure-card-head h3 {
  font-size: 25px;
  line-height: 1.2;
  margin-top: 12px;
  letter-spacing: -.03em;
  color: #54657f;
}

.failure-grid video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #eef3f9;
}

.failure-grid p {
  padding: 19px 24px 23px;
  font-size: 13px;
  color: #93a0b3;
  line-height: 1.7;
}

@media(max-width:760px) {
  .failure-section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .failure-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .failure-card-head {
    padding: 23px;
  }

  .failure-card-head h3 {
    font-size: 27px;
  }

  .failure-grid p {
    font-size: 13px;
    padding: 20px 23px;
  }

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

.mechanism-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0 10px;
  padding-inline: 10px;
}

.mechanism-controls button {
  background: none;
  color: #6e839d;
  font-size: 13px;
  padding: 4px 7px;
}

.mechanism-controls button:nth-child(2) {
  border: 1px solid #d6e1ed;
  border-radius: 99px;
  background: #fff;
  padding: 8px 16px;
}

.mechanism-controls>span {
  font-size: 12px;
  color: #a0adbf;
  margin-left: 10px;
  white-space: nowrap;
}

.mechanism-progress {
  height: 3px;
  background: #e4eaf3;
  flex: 1;
  border-radius: 99px;
  overflow: hidden;
}

.mechanism-progress i {
  height: 3px;
  background: linear-gradient(90deg,#5f9c87,#9a79bb);
  width: 0%;
  display: block;
}

.phase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(27px);
  min-height: 55px;
}

.phase-caption b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #5f7b8e;
}

.phase-caption span {
  display: block;
  font-size: 11px;
  color: #91a2b3;
  margin-top: 5px;
  line-height: 1.5;
}

.mechanism-animation {
  padding-bottom: 55px;
}

.mechanism-scene .memory-flow,.mechanism-scene .reader-animation,.mechanism-scene .prediction-animation {
  transform: translateY(-10px);
}

.mechanism-scene[data-active="0"] .memory-selector {
  opacity: .2;
  transition: opacity .5s;
}

.mechanism-scene[data-active="0"] .bank-animation {
  opacity: .18;
  transition: opacity .7s;
}

.mechanism-scene[data-active="0"][data-phase="1"] .memory-selector,.mechanism-scene[data-active="0"][data-phase="2"] .memory-selector,.mechanism-scene[data-active="0"][data-phase="3"] .memory-selector {
  opacity: 1;
}

.mechanism-scene[data-active="0"][data-phase="2"] .bank-animation,.mechanism-scene[data-active="0"][data-phase="3"] .bank-animation {
  opacity: 1;
}

.mechanism-scene[data-active="0"][data-phase="3"] .motion-frames {
  opacity: .35;
  transition: opacity .6s;
}

.mechanism-scene[data-active="1"] .reader-action {
  opacity: .2;
  transition: opacity .6s;
}

.mechanism-scene[data-active="1"][data-phase="2"] .reader-action,.mechanism-scene[data-active="1"][data-phase="3"] .reader-action {
  opacity: 1;
}

.mechanism-scene[data-active="1"][data-phase="0"] .reader-layers {
  opacity: .35;
}

.mechanism-scene[data-active="1"][data-phase="1"] .reader-layers {
  opacity: 1;
}

.mechanism-scene[data-active="2"] .prediction-grid {
  opacity: .15;
  transition: opacity .7s;
}

.mechanism-scene[data-active="2"][data-phase="2"] .prediction-grid,.mechanism-scene[data-active="2"][data-phase="3"] .prediction-grid {
  opacity: 1;
}

.mechanism-scene[data-active="2"][data-phase="1"] .masked-frame {
  box-shadow: 0 0 0 5px #e9d9bd80;
}

.memory-selector {
  bottom: 87px;
}

@media(max-width:760px) {
  .mechanism-controls {
    gap: 6px;
    padding: 0;
  }

  .mechanism-controls button {
    font-size: 12px;
    padding: 5px;
  }

  .mechanism-controls button:nth-child(2) {
    font-size: 11px;
    padding: 8px 11px;
  }

  .mechanism-controls>span {
    margin-left: 3px;
    font-size: 10px;
  }

  .phase-caption {
    transform: translateY(16px);
  }

  .phase-caption b {
    font-size: 13px;
  }

  .phase-caption span {
    font-size: 11px;
  }

  .mechanism-animation {
    padding-bottom: 55px;
    margin-top: 12px;
    min-height: 260px;
  }

  .memory-selector {
    bottom: 72px;
  }
}

.grasp-strip {
  display: grid;
  grid-template-columns: .7fr 1.5fr;
  gap: 55px;
  align-items: center;
  margin-top: 30px;
  border-radius: 22px;
  padding: 28px 35px;
  background: #f1f5fa;
  border: 1px solid #e2e9f3;
}

.grasp-strip .eyebrow {
  font-size: 10px;
}

.grasp-strip h3 {
  font-size: 29px;
  line-height: 1.2;
  margin-top: 17px;
  color: #60758e;
}

.grasp-strip p {
  font-size: 12px;
  color: #91a3b8;
  margin-top: 15px;
}

.grasp-strip video {
  border-radius: 12px;
  width: 100%;
}

@media(max-width:760px) {
  .grasp-strip {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
  }

  .grasp-strip h3 {
    font-size: 27px;
  }
}

/* Bring real hardware into the first desktop viewport beside the paper identity. */
@media(min-width:1060px) {
  .hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 0 54px;
    padding-top: 72px;
    align-items: center;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-logo {
    width: 320px;
    margin: 0 0 26px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: .21em;
    margin-bottom: 23px;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.18;
    letter-spacing: -.045em;
  }

  .hero-subtitle {
    font-size: 20px;
    margin-top: 15px;
  }

  .hero-deck {
    font-size: 18px;
    margin-top: 27px;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-top: 28px;
  }

  .hero-cinema {
    margin-top: 0;
    align-self: center;
    border-radius: 24px;
  }

  .hero-video-wrap {
    aspect-ratio: 4/3;
  }

  .cinema-top {
    padding: 14px 19px;
  }

  .cinema-bottom {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .cinema-bottom>span {
    font-size: 30px;
    max-width: 290px;
  }

  .cinema-rail {
    font-size: 10px;
    gap: 22px;
    padding: 13px 10px;
  }

  .authors {
    grid-column: 1/-1;
    padding-top: 47px;
    font-size: 12px;
  }

  .authors>div {
    font-size: 11px;
  }

  .hero .orbit-a {
    left: -100px;
  }

  .hero .orbit-c {
    top: 100px;
  }

  .score-section {
    padding-top: 100px;
  }
}

/* Keep explanatory copy readable against the light manuscript palette. */
.section-head>p,.story-sticky>p:not(.eyebrow),.retry-copy>p:not(.eyebrow) {
  color: #64748b;
}

.dual-card p,.mechanism-copy>p:not(.eyebrow) {
  font-size: 16px;
  color: #68798e;
}

.failure-grid p {
  font-size: 14px;
  color: #718197;
}

.recording-note,.quiet,.gallery-footer {
  color: #7c8ca1;
}

.config-details {
  color: #8090a5;
}

.phase-caption span {
  color: #7e8fa4;
  font-size: 12px;
}

.config-panel>p {
  color: #72839a;
}

.mechanism-controls button {
  font-size: 14px;
}

.mechanism-copy .claim-note {
  font-size: 14px;
  color: #87739e;
}

.dual-card .eyebrow {
  color: #527f6c;
}

.supervision-sparse .eyebrow {
  color: #84639f;
}

@media(max-width:760px) {
  .dual-card p,.mechanism-copy>p:not(.eyebrow) {
    font-size: 15px;
  }

  .mechanism-controls button {
    font-size: 12px;
  }

  .phase-caption span {
    font-size: 11px;
  }

  .mechanism-copy .claim-note {
    font-size: 13px;
  }
}

/* Keep decorative glows inside the document without horizontal panning. */
html {
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

.hero {
  isolation: isolate;
}

@media(min-width:1060px) {
  .hero-video-wrap {
    aspect-ratio: 16/9;
  }
}

/* Memory illustrations, benchmark boards, and platform diagrams */
:root {
  --cyan:#338eaa;
  --violet:#7958b6;
  --magenta:#b64f93;
  --ink:#17253c;
}

.gradient-text {
  background-image: linear-gradient(110deg,#267d9f 5%,#7353b2 55%,#b6539a 100%);
}

.display {
  font-weight: 740;
  letter-spacing: -.055em;
}

.section-head>p {
  font-size: 18px;
  color: #52647e;
}

.eyebrow {
  color: #526888;
}

.hero-logo {
  filter: none;
}

.hero-cinema {
  box-shadow: 0 25px 60px -30px #7751ad4d;
}

.story-section {
  background: linear-gradient(135deg,#eef8fd,#f3edfc 62%,#fcf0f8);
  border-block: 1px solid #dce6f2;
}

.story-sticky h2 {
  font-size: clamp(44px,4.6vw,68px);
}

.story-sticky>p:not(.eyebrow) {
  font-size: 19px;
  color: #4c607b;
}

.story-stage {
  box-shadow: 0 24px 60px -25px #6363b24a;
  border-color: #c5c7e6;
  background: #fff;
}

.stage-eyebrow {
  background: #edf4fb;
  color: #385b84;
  font-weight: 700;
}

.story-decision {
  border-left: 4px solid #bf647c;
  background: #fff2f5;
}

.story-stage[data-step="2"] .story-decision {
  border-color: #398f9f;
  background: #edf9fa;
}

.story-decision strong {
  font-size: 27px;
  color: #243650;
}

.story-stage[data-step="1"] .evidence-history figure,.story-stage[data-step="2"] .evidence-history figure {
  animation: cue-reveal .65s both;
  animation-delay: calc(var(--reveal-index)*.32s);
}

@keyframes cue-reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.story-step-nav button[aria-pressed="true"] {
  background: #314f7e;
  box-shadow: 0 5px 20px #384f8130;
}

.dual-section {
  padding-top: 100px;
  padding-bottom: 90px;
}

.dual-grid {
  gap: 25px;
}

.dual-card {
  border-radius: 25px;
  padding: 34px;
  background: #f1f8fc;
  border: 1px solid #bbddeb;
  box-shadow: 0 16px 40px -30px #2c8ea8;
}

.dual-card.supervision-sparse {
  background: #f4eefb;
  border-color: #d0bde8;
}

.dual-card h3 {
  font-size: 32px;
  letter-spacing: -.04em;
}

.dual-card>p {
  color: #4e617a;
  font-size: 17px;
}

.cue-filmstrip {
  display: flex;
  gap: 8px;
  position: relative;
  margin: 26px 0 35px;
}

.cue-filmstrip img {
  width: calc(25% - 6px);
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(.65);
  opacity: .5;
}

.cue-filmstrip img.decisive {
  filter: none;
  opacity: 1;
  outline: 3px solid #39a6bb;
  box-shadow: 0 0 25px #359dba45;
  animation: cue-pulse 3s infinite;
}

.cue-filmstrip span {
  position: absolute;
  bottom: -25px;
  left: 49%;
  font-size: 13px;
  color: #257a91;
  font-weight: 700;
}

.sparse-timeline .event-cue {
  background: #38a4bb !important;
  box-shadow: 0 0 0 6px #38a4bb20;
}

.supervision-tokens i {
  background: #dcd1ed;
}

.supervision-tokens i.history-required {
  background: #9564c5;
  box-shadow: 0 0 0 4px #9564c520;
  animation: cue-pulse 3s infinite;
}

.bottleneck-chain {
  gap: 10px;
  align-items: stretch;
  margin-top: 36px;
}

.bottleneck-chain article {
  background: #fff;
  border: 1px solid #dce2ef;
  border-radius: 20px;
  padding: 27px 22px;
  flex: 1;
  box-shadow: 0 8px 25px -18px #445c8c;
}

.bottleneck-chain h3 {
  font-size: 25px;
  color: #244e69;
  margin-top: 10px;
}

.bottleneck-chain article:nth-of-type(2) h3 {
  color: #7351ad;
}

.bottleneck-chain article:nth-of-type(3) h3 {
  color: #a34b8a;
}

.bottleneck-chain p {
  font-size: 16px;
  color: #596a82;
  margin-top: 12px;
}

.chain-line {
  align-self: center;
  width: 22px;
  flex: 0 0 22px;
}

.chain-solution {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 23px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #e8f5fa;
  color: #2c809a;
}

.bottleneck-chain article:nth-of-type(2) .chain-solution {
  background: #f0e8fb;
  color: #7955ae;
}

.bottleneck-chain article:nth-of-type(3) .chain-solution {
  background: #f8e9f3;
  color: #a54f8c;
}

.chain-dot {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 6px #328eaa16;
}

.narrative-active article {
  animation: cue-reveal .6s both;
}

.narrative-active article:nth-of-type(2) {
  animation-delay: .22s;
}

.narrative-active article:nth-of-type(3) {
  animation-delay: .44s;
}

.method-section .display {
  font-size: clamp(42px,4.5vw,66px);
}

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

.mechanism-tabs button {
  border: 1px solid #d7e1ec !important;
  border-radius: 16px;
  padding: 19px !important;
  background: #f3f7fb;
  color: #597089;
  font-size: 16px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.mechanism-tabs button span {
  font-size: 30px;
  margin: 0 !important;
}

.mechanism-tabs button[aria-selected="true"] {
  background: #297f9b;
  color: white;
  box-shadow: 0 10px 25px #338eaa25;
}

.mechanism-tabs button[data-mechanism="1"][aria-selected="true"] {
  background: #7956b2;
}

.mechanism-tabs button[data-mechanism="2"][aria-selected="true"] {
  background: #af579b;
}

.mechanism-scene {
  border: 1px solid #b9d8e9 !important;
  background: linear-gradient(120deg,#fff,#edf7fd) !important;
  box-shadow: 0 22px 50px -35px #3a84ac60;
}

.mechanism-scene[data-active="1"] {
  border-color: #d0bce7 !important;
  background: linear-gradient(120deg,#fff,#f1eafa) !important;
}

.mechanism-scene[data-active="2"] {
  border-color: #e4c0d9 !important;
  background: linear-gradient(120deg,#fff,#faedf6) !important;
}

.mechanism-copy h3 {
  font-size: 38px;
}

.mechanism-copy>p:not(.eyebrow) {
  font-size: 17px;
  color: #53647e;
}

.mechanism-animation {
  min-height: 350px;
}

.mechanism-animation .motion-frames i {
  background-image: url('../assets/evidence-f1.png');
  background-size: cover;
  background-position: center;
}

.mechanism-animation .motion-frames i:nth-child(2) {
  background-image: url('../assets/evidence-f2.png');
}

.mechanism-animation .motion-frames i:nth-child(3) {
  background-image: url('../assets/evidence-f3.png');
}

.bank-grid i {
  background-image: url('../assets/evidence-f2.png');
  background-size: cover;
  opacity: 1 !important;
}

.phase-caption b {
  font-size: 20px;
  color: #334d6d;
}

.phase-caption span {
  font-size: 16px;
  color: #596d88;
}

.reader-stack {
  border-color: #9772bf;
  background: #fff;
}

.reader-layers i {
  background: #b795d8;
}

.reader-action strong {
  color: #7956b2;
}

.masked-frame {
  background: repeating-linear-gradient(135deg,#b36dac40 0 7px,#ffffff44 7px 14px),url('../assets/evidence-f2.png') center/cover;
  color: #fff;
  text-shadow: 0 2px 4px #253248;
  font-weight: 700;
}

.platform-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 45px;
  align-items: center;
  padding: 55px 0 65px !important;
  border-top: 1px solid #e1e7f2;
}

.platform-intro .section-head {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
}

.platform-intro .section-head h2 {
  font-size: 40px;
}

.platform-intro .section-head>p {
  font-size: 17px;
  margin-top: 20px;
  max-width: none;
}

.platform-intro .platform-image {
  grid-column: 1;
  grid-row: 1/3;
  width: 100%;
  border: 1px solid #d6e2ee;
  border-radius: 18px;
  background: white;
}

.platform-intro .platform-specs {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  font-size: 14px;
  margin: 0;
}

.gallery-section .section-head {
  margin-bottom: 35px;
}

.benchmark-tabs button[aria-selected="true"] {
  box-shadow: 0 8px 25px #33578a20;
  color: #264c7e;
}

.config-grid button[aria-pressed="true"] {
  background: #e2edf9;
  border-color: #7b9bbd;
  color: #244b72;
  font-weight: 700;
}

.wall-section {
  background: #10192d;
  color: #fff;
  padding-top: 75px;
  padding-bottom: 25px;
}

.wall-heading .eyebrow {
  color: #9db7dd;
}

.wall-heading .display {
  font-size: clamp(42px,4.4vw,65px);
}

.wall-heading>p {
  color: #b3c4df;
}

.wall-window {
  aspect-ratio: 16/9;
  margin-top: 35px;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 20px;
  background: #f4f7fc;
  overflow: hidden;
}

.wall-window video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wall-vignette {
  display: none;
}

.wall-note {
  color: #b1c3dd !important;
  margin-top: 20px !important;
  font-size: 14px !important;
}

.wall-control {
  background: #203653e8;
  border: 1px solid #617796;
  color: white;
}

.results-section {
  background: linear-gradient(180deg,#f1f5fc,#fff);
  padding-top: 100px;
}

.results-section .section-head h2 {
  font-size: clamp(42px,4.4vw,65px);
}

.all-benchmark-boards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
  margin-bottom: 55px;
}

.benchmark-board {
  border: 1px solid color-mix(in srgb,var(--board-tone) 30%,white);
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 45px -28px color-mix(in srgb,var(--board-tone) 50%,transparent);
  overflow: hidden;
  align-self: start;
}

.benchmark-board header {
  background: var(--board-tone);
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.benchmark-board header>span {
  font-weight: 700;
  font-size: 17px;
}

.benchmark-board header>b {
  font-size: 27px;
  letter-spacing: -.04em;
}

.benchmark-board header small {
  font-size: 13px;
}

.benchmark-total {
  font-size: 76px;
  letter-spacing: -.07em;
  font-weight: 760;
  color: var(--board-tone);
  padding: 16px 23px 0;
  line-height: 1.2;
}

.benchmark-total small {
  font-size: 30px;
}

.benchmark-total>span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #596a80;
  margin-top: 4px;
}

.board-comparison {
  padding: 23px;
}

.board-comparison>span {
  font-size: 13px;
  color: #64758e;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.board-comparison>span:nth-of-type(2) {
  margin-top: 13px;
  color: var(--board-tone);
  font-weight: 700;
}

.board-comparison>div {
  height: 14px;
  border-radius: 5px;
  background: #f0f3f8;
  overflow: hidden;
}

.board-comparison i {
  height: 100%;
  display: block;
  background: #b4bfd0;
}

.board-comparison .ours i {
  background: linear-gradient(90deg,var(--board-tone),color-mix(in srgb,var(--board-tone) 60%,#dee5ff));
}

.benchmark-board ol {
  padding: 0 14px;
  list-style: none;
  margin: 0;
}

.benchmark-board li {
  display: grid;
  grid-template-columns: 25px 1fr 43px;
  align-items: center;
  gap: 9px;
  padding: 13px 10px;
  border-top: 1px solid #e8edf5;
  font-size: 14px;
}

.benchmark-board li>span {
  font-size: 12px;
  color: #8493a6;
}

.benchmark-board li>b {
  font-weight: 550;
}

.benchmark-board li>strong {
  text-align: right;
  font-size: 17px;
}

.benchmark-board li.ours {
  border-radius: 10px;
  background: color-mix(in srgb,var(--board-tone) 12%,white);
  color: var(--board-tone);
  border-top: 0;
}

.benchmark-board li.ours b,.benchmark-board li.ours strong {
  font-weight: 760;
}

.benchmark-board details {
  padding: 15px 0 0;
  font-size: 13px;
  color: #566c88;
}

.benchmark-board summary {
  cursor: pointer;
  margin: 0 23px 15px;
}

.board-explore {
  margin: 17px 23px 23px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f2f5fb;
  color: var(--board-tone);
  font-size: 14px;
  font-weight: 650;
}

.result-switch {
  background: #e6edf8;
  padding: 7px;
  border-radius: 16px;
  display: flex;
  max-width: 650px;
}

.result-switch button {
  flex: 1;
  font-size: 15px;
  padding: 14px;
  border-radius: 11px;
}

.result-switch button[aria-pressed="true"] {
  background: #263f68;
  color: white;
  box-shadow: 0 5px 12px #28436b20;
}

.result-magnitude {
  background: var(--result-tone) !important;
  color: white !important;
}

.result-magnitude p,.result-magnitude>span {
  color: #ffffffda !important;
}

.result-magnitude strong {
  color: white !important;
  font-size: 86px;
}

.result-spotlight {
  border-color: #cbd9ec;
  box-shadow: 0 20px 50px -30px #435e8c40;
}

.mean-row.ours .mean-track i {
  background: var(--result-tone) !important;
}

.table-scroll {
  border: 1px solid #d2ddeb;
  box-shadow: 0 20px 40px -35px #263e6d;
}

.ours .score {
  font-size: 23px;
  font-weight: 750;
  color: var(--result-tone);
}

tr.ours {
  background: color-mix(in srgb,var(--result-tone) 13%,white) !important;
  border-left: 4px solid var(--result-tone);
}

.benchmark-board details[open] ol {
  animation: cue-reveal .3s;
}

.cinema-rail {
  color: #5d6d85;
}

.failure-section {
  padding-top: 80px;
}

.failure-grid article {
  border-color: #daceda;
}

.retry-section .display {
  background: linear-gradient(100deg,#7454b0,#b55496);
  background-clip: text;
  color: transparent;
}

@keyframes cue-pulse {
  50% {
    box-shadow: 0 0 0 6px #329ab715,0 0 26px #329ab735;
  }
}

@media(max-width:900px) {
  .all-benchmark-boards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benchmark-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .benchmark-board header {
    grid-column: 1/-1;
  }

  .benchmark-total {
    font-size: 68px;
    align-self: center;
    padding: 20px;
  }

  .board-comparison {
    align-self: center;
  }

  .benchmark-board ol,.benchmark-board details,.board-explore {
    grid-column: 1/-1;
  }

  .benchmark-board header>span {
    font-size: 19px;
  }

  .platform-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .platform-intro .section-head h2 {
    font-size: 36px;
  }

  .bottleneck-chain {
    flex-direction: column;
    display: flex;
  }

  .chain-line {
    height: 18px;
    flex: 0 0 18px;
    width: 2px;
  }

  .bottleneck-chain h3 {
    font-size: 27px;
  }

  .dual-card h3 {
    font-size: 29px;
  }

  .mechanism-tabs button {
    display: block;
    padding: 16px 8px !important;
    font-size: 13px;
  }

  .mechanism-tabs button span {
    display: block;
    font-size: 25px;
  }

  .mechanism-copy h3 {
    font-size: 31px;
  }

  .mechanism-copy>p:not(.eyebrow) {
    font-size: 16px;
  }

  .phase-caption span {
    font-size: 14px;
  }

  .mechanism-animation {
    min-height: 300px;
  }

  .result-magnitude strong {
    font-size: 65px;
  }

  .story-sticky h2 {
    font-size: 45px;
  }

  .wall-window {
    border-radius: 0;
  }

  .section-head>p {
    font-size: 16px;
  }

  .result-switch button {
    font-size: 13px;
    padding: 12px 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .cue-filmstrip img.decisive,.supervision-tokens i.history-required {
    animation: none;
  }
}

.board-protocol {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6c7d94;
  line-height: 1.4;
  margin-top: 3px;
}

.benchmark-board li.ours .board-protocol {
  color: var(--board-tone);
}

img {
  height: auto;
}

.benchmark-board [hidden] {
  display: none !important;
}

.story-step-nav button {
  padding: 9px 16px;
  color: #586f8b;
  border-radius: 0 8px 8px 0;
}

.story-step-nav button[aria-pressed="true"] {
  color: #fff;
  border-left-color: #4a86ac;
}

.evidence-current img {
  width: 245px;
  height: 160px;
}

.evidence-current span {
  font-size: 14px;
  color: #566b86;
}

.evidence-history img {
  height: 94px;
}

.story-decision>span {
  font-size: 12px;
  color: #637794;
}

.story-decision>p {
  font-size: 14px;
  color: #5c6d85;
}

@media(max-width:600px) {
  .evidence-current img {
    width: 200px;
    height: 135px;
  }

  .evidence-history img {
    height: 75px;
  }

  .story-step-nav button {
    font-size: 14px;
    padding: 9px 12px;
  }
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

/* Task breakdowns, recordings, and analysis panels */
:root {
  --v7-ink:#17273d;
  --v7-accent:#5874a6;
}

body {
  color: var(--v7-ink);
  background: #fcfdff;
}

.display {
  font-size: clamp(36px,4.1vw,58px) !important;
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 720;
}

.section-head {
  margin-bottom: 34px;
}

.section-head>p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 360px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.story-section {
  background: linear-gradient(115deg,#f0f7fc,#f5f1fb);
}

.story-sticky h2 {
  font-size: 52px;
}

.story-step-nav {
  margin-top: 28px;
}

.dual-section,.method-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.dual-card {
  box-shadow: none;
  background: #f4f9fc;
  border-color: #d6e4ef;
}

.dual-card.supervision-sparse {
  background: #f6f2fb;
  border-color: #e0d4ec;
}

.bottleneck-chain article {
  box-shadow: none;
  border-top: 3px solid #6b9db7;
  padding: 23px;
}

.bottleneck-chain article:nth-of-type(2) {
  border-top-color: #a28abd;
}

.bottleneck-chain article:nth-of-type(3) {
  border-top-color: #be83ad;
}

.bottleneck-chain h3 {
  font-size: 24px;
}

.mechanism-scene {
  box-shadow: none !important;
  border-radius: 20px;
}

.mechanism-animation {
  overflow: hidden;
}

.mechanism-animation>* {
  transition: opacity .4s ease,transform .4s ease;
}

.mechanism-tabs button {
  border-radius: 10px;
  padding: 14px !important;
}

.mechanism-tabs button span {
  font-size: 26px;
}

.architecture-card {
  box-shadow: none;
}

.results-section {
  padding: 80px 0;
  background: #f5f8fe;
}

.results-section .display {
  font-size: 54px !important;
}

.all-benchmark-boards {
  gap: 20px;
  margin-bottom: 36px;
}

.benchmark-board {
  border-radius: 17px;
  box-shadow: 0 12px 30px -24px #4b628d66;
}

.benchmark-board header {
  padding: 17px 21px;
}

.benchmark-board header>b {
  font-size: 25px;
}

.benchmark-total {
  font-size: 67px;
  padding: 19px 23px 0;
}

.board-comparison {
  padding-block: 19px;
}

.benchmark-board li {
  padding-block: 11px;
}

.task-breakdown {
  border-top: 1px solid #d8e3ef;
  padding-top: 30px;
}

.breakdown-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.breakdown-heading .eyebrow {
  font-size: 12px;
  margin-bottom: 8px;
}

.breakdown-heading h3 {
  font-size: 30px;
  letter-spacing: -.035em;
}

.breakdown-heading button {
  font-size: 14px;
  color: #4e6d98;
  background: white;
  border: 1px solid #d6e1ee;
  border-radius: 10px;
  padding: 13px 17px;
}

.breakdown-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 30px 0 24px;
}

.breakdown-controls label {
  font-size: 13px;
  color: #60718b;
  max-width: 430px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.breakdown-controls select {
  min-width: 0;
  max-width: 320px;
  font-size: 13px;
  color: #334e73;
  border: 1px solid #c9d7e6;
  background: #fff;
  border-radius: 8px;
  padding: 11px 34px 11px 13px;
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,#71839a 50%),linear-gradient(135deg,#71839a 50%,transparent 50%);
  background-position: calc(100% - 18px) 50%,calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.task-breakdown h4 {
  font-size: 17px;
  margin: 0 0 17px;
}

.task-breakdown table {
  width: 100%;
  min-width: 550px;
  font-size: 14px;
}

.task-breakdown th,.task-breakdown td {
  padding: 15px 22px;
}

.task-breakdown th:not(:first-child),.task-breakdown td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.task-breakdown th:first-child {
  font-weight: 500;
  max-width: 350px;
  white-space: normal;
}

.task-breakdown thead th {
  color: #60728d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #ecf2f9;
}

.our-task-value {
  color: #4d79a0;
  background: #eaf3f942;
  font-weight: 750;
}

.task-breakdown .positive {
  color: #347d76;
}

.task-breakdown .negative {
  color: #a75c79;
}

.task-mean {
  background: #eaf0fa;
  font-weight: 750;
  border-top: 2px solid #c6d5e7;
}

.task-mean th:first-child {
  font-weight: 750;
}

.task-breakdown .table-scroll {
  box-shadow: none;
  border: 1px solid #dce5f0;
  border-radius: 13px;
}

.task-breakdown .quiet {
  font-size: 12px;
  margin-top: 14px;
  max-width: 1000px;
}

.task-breakdown .result-switch {
  margin: 0;
}

.evidence-lab {
  padding: 80px 0;
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  border: 1px solid #dae3ef;
  border-radius: 14px;
  overflow: hidden;
  background: #e3e9f2;
  margin-bottom: 19px;
}

.lab-tabs button {
  background: #f4f7fb;
  text-align: left;
  padding: 21px 25px;
  color: #7c8ca3;
  font-size: 13px;
  line-height: 1.5;
  transition: background .3s,color .3s;
}

.lab-tabs button>span {
  display: block;
  font-size: 18px;
  color: #49637f;
  font-weight: 700;
  margin-bottom: 3px;
}

.lab-tabs button[aria-selected="true"] {
  background: #20334f;
  color: #b9cce8;
}

.lab-tabs button[aria-selected="true"]>span {
  color: #fff;
}

.lab-panel {
  --lab-tone:#54b4cc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 50px;
  background: radial-gradient(ellipse at 90% 10%,#273450,#152238 65%);
  color: #eaf1ff;
  border-radius: 20px;
  min-height: 480px;
}

.lab-copy .eyebrow {
  font-size: 11px;
  letter-spacing: .13em;
  color: var(--lab-tone);
}

.lab-copy h3 {
  font-size: 32px;
  font-weight: 640;
  letter-spacing: -.035em;
  line-height: 1.18;
  margin: 17px 0 20px;
  color: #f5f8ff;
}

.lab-copy>p:not(.eyebrow) {
  font-size: 16px;
  color: #aebfd8;
  line-height: 1.75;
  max-width: 470px;
}

.lab-copy details {
  margin-top: 26px;
  font-size: 13px;
  color: #a8bddb;
  line-height: 1.8;
}

.lab-copy summary {
  cursor: pointer;
  color: #b1c9e5;
  width: max-content;
  border-bottom: 1px dotted #6e89ac;
}

.lab-copy details p {
  font-size: 13px;
  margin-top: 12px;
  color: #9fb4d0;
}

.lab-copy #lab-metric {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lab-copy #lab-metric strong {
  font-size: 63px;
  letter-spacing: -.065em;
  line-height: 1;
  color: var(--lab-tone);
  font-weight: 700;
}

.lab-copy #lab-metric small {
  font-size: 27px;
  margin-left: 4px;
}

.lab-copy #lab-metric>span {
  font-size: 13px;
  line-height: 1.5;
  color: #b1c4df;
  max-width: 175px;
}

.lab-graphic {
  min-width: 0;
  align-self: center;
  padding: 20px 0;
}

.lab-chart-title {
  font-size: 14px;
  color: #c5d4e9;
  letter-spacing: -.01em;
  margin-bottom: 37px;
}

.lab-bars {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.bar-row-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  color: #b9c9df;
}

.bar-row-label strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #f2f5fc;
}

.lab-bar-track {
  height: 38px;
  background: #30405777;
  overflow: hidden;
  border-radius: 5px;
}

.lab-bar-track i {
  height: 100%;
  display: block;
  width: var(--target);
  border-radius: 5px;
  background: #7b8ba2;
}

.lab-bar-track i.tested {
  background: linear-gradient(90deg,var(--lab-tone),color-mix(in srgb,var(--lab-tone) 60%,white));
}

.lab-axis {
  display: flex;
  justify-content: space-between;
  color: #8096b3;
  font-size: 11px;
  margin-top: 14px;
  border-top: 1px solid #3b4e69;
  padding-top: 9px;
}

.lab-replay {
  display: block;
  margin-top: 30px;
  background: #30445f;
  color: #d4e5f8;
  border: 1px solid #4a6485;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  transition: background .25s;
}

.lab-replay:hover {
  background: #415a7c;
}

.swap-conditions {
  font-size: 12px;
  text-align: center;
  color: #a9bdd8;
  border: 1px solid #415773;
  border-radius: 8px;
  padding: 12px 10px;
  margin-bottom: 26px;
}

.swap-test {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 8px;
}

.history-pair {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.history-token {
  padding: 13px;
  border: 1px solid #495c77;
  border-radius: 10px;
  opacity: .4;
  transition: opacity .35s,border-color .35s;
}

.history-token i {
  display: inline-block;
  width: 25px;
  height: 24px;
  background: #6bb0c2;
  border-radius: 4px;
  margin-right: 5px;
}

.history-token.history-b i {
  background: #ad8dc9;
}

.history-token b {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: #d4e0f1;
  margin-top: 8px;
}

.history-token.selected {
  opacity: 1;
  border-color: var(--lab-tone);
  box-shadow: 0 0 25px #b58ab316;
}

.swap-path {
  height: 1px;
  background: #5b7290;
  position: relative;
}

.swap-path i {
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lab-tone);
  animation: history-to-action 1.5s ease-in-out infinite;
}

.target-output {
  padding: 24px 14px;
  background: #263b59;
  border: 1px solid #6584a8;
  border-radius: 12px;
  text-align: center;
}

.target-output span {
  display: block;
  font-size: 11px;
  color: #91a9c8;
  margin-bottom: 12px;
}

.target-output b {
  font-size: 25px;
  color: var(--lab-tone);
}

.switch-history {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  border: 1px solid #6785a8;
  color: #d9e6f8;
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 13px;
}

.platform-intro {
  padding-top: 55px !important;
}

.case-section {
  padding: 55px 0 85px;
}

.case-tabs {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}

.case-tabs button {
  background: #f0f4fa;
  color: #64778f;
  font-size: 14px;
  padding: 12px 19px;
  border-radius: 9px;
  border: 1px solid #d7e1ef;
}

.case-tabs button[aria-selected="true"] {
  background: #304d76;
  border-color: #304d76;
  color: #fff;
}

.case-comparison {
  display: grid;
  grid-template-columns: repeat(var(--case-columns,3),minmax(0,1fr));
  gap: 20px;
}

.case-card {
  background: white;
  border: 1px solid #dbe4ef;
  border-radius: 15px;
  overflow: hidden;
  min-width: 0;
}

.case-card.ours {
  border-color: #a1becd;
  box-shadow: 0 12px 30px -25px #5390ab77;
}

.case-card header {
  padding: 20px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 98px;
}

.case-card h3 {
  font-size: 23px;
  color: #304965;
  margin-bottom: 6px;
}

.case-card header div>span {
  font-size: 12px;
  color: #75859b;
}

.case-status {
  font-size: 10px;
  line-height: 1.5;
  max-width: 115px;
  text-align: right;
  color: #a0657a;
  background: #f8f0f4;
  padding: 5px 7px;
  border-radius: 5px;
}

.case-card.ours .case-status {
  background: #edf6fa;
  color: #3c8595;
}

.case-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #111c2d;
}

.case-card>p {
  font-size: 11px;
  color: #7c8da3;
  margin: 10px 18px 13px;
}

.collection-wall {
  margin-top: 28px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #f5f8fc;
  overflow: hidden;
}

.collection-wall summary {
  font-size: 14px;
  font-weight: 600;
  color: #4c688d;
  padding: 19px 24px;
  cursor: pointer;
}

.collection-wall .wall-window {
  margin: 0;
  border-radius: 0;
  max-width: none;
  position: relative;
}

.collection-wall .wall-window video {
  width: 100%;
  height: 100%;
}

.collection-wall .wall-control {
  bottom: 20px;
  right: 20px;
}

.gallery-section {
  padding-bottom: 40px;
}

.end-section {
  border-top: 1px solid #e4eaf2;
}

.hero-cinema {
  box-shadow: 0 22px 60px -34px #3e5d8e47;
}

.hero .cinema-bottom>span {
  font-size: 25px;
}

.hero .cinema-gradient {
  background: linear-gradient(0deg,#111b3455,transparent 40%);
}

@keyframes history-to-action {
  0% {
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@media(max-width:1000px) {
  .lab-panel {
    gap: 35px;
    padding: 35px;
  }

  .lab-copy h3 {
    font-size: 29px;
  }

  .breakdown-controls {
    flex-wrap: wrap;
  }

  .case-card header {
    padding: 15px;
    display: block;
    min-height: 120px;
  }

  .case-status {
    display: inline-block;
    text-align: left;
    margin-top: 10px;
    max-width: none;
  }

  .case-card h3 {
    font-size: 21px;
  }

  .case-comparison {
    gap: 13px;
  }

  .case-tabs button {
    font-size: 13px;
  }

  .hero .cinema-bottom>span {
    font-size: 23px;
  }
}

@media(max-width:700px) {
  .section-head>p {
    font-size: 16px;
  }

  .display,.results-section .display {
    font-size: 39px !important;
  }

  .evidence-lab {
    padding: 60px 0;
  }

  .lab-panel {
    grid-template-columns: 1fr;
    padding: 27px;
    gap: 25px;
  }

  .lab-tabs button {
    padding: 13px 10px;
    font-size: 10px;
  }

  .lab-tabs button>span {
    font-size: 13px;
  }

  .lab-copy h3 {
    font-size: 29px;
  }

  .lab-copy>p:not(.eyebrow) {
    font-size: 15px;
  }

  .lab-copy #lab-metric strong {
    font-size: 57px;
  }

  .lab-graphic {
    padding-top: 10px;
  }

  .lab-chart-title {
    font-size: 13px;
    margin-bottom: 25px;
  }

  .lab-bar-track {
    height: 32px;
  }

  .bar-row-label {
    font-size: 13px;
  }

  .bar-row-label strong {
    font-size: 18px;
  }

  .lab-bars {
    gap: 23px;
  }

  .lab-replay {
    font-size: 12px;
  }

  .swap-test {
    grid-template-columns: 1fr 30px 1fr;
  }

  .history-token i {
    width: 20px;
    height: 20px;
    margin-right: 3px;
  }

  .target-output b {
    font-size: 21px;
  }

  .case-comparison {
    grid-template-columns: 1fr;
  }

  .case-card header {
    display: flex;
    min-height: 0;
    padding: 17px;
  }

  .case-status {
    margin: 0;
    text-align: right;
    max-width: 120px;
  }

  .case-card h3 {
    font-size: 24px;
  }

  .case-tabs {
    gap: 6px;
  }

  .case-tabs button {
    font-size: 12px;
    padding: 10px 11px;
  }

  .case-section {
    padding-bottom: 60px;
  }

  .breakdown-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .breakdown-heading h3 {
    font-size: 28px;
  }

  .breakdown-controls {
    gap: 18px;
    margin-top: 24px;
  }

  .breakdown-controls label {
    display: block;
    max-width: 100%;
    width: 100%;
  }

  .breakdown-controls select {
    display: block;
    margin-top: 8px;
    max-width: none;
    width: 100%;
  }

  .task-breakdown th,.task-breakdown td {
    padding: 13px 15px;
  }

  .task-breakdown table {
    font-size: 12px;
    min-width: 500px;
  }

  .task-breakdown h4 {
    font-size: 15px;
  }

  .task-breakdown .quiet {
    font-size: 11px;
  }

  .story-sticky h2 {
    font-size: 39px !important;
  }

  .dual-card h3 {
    font-size: 26px;
  }

  .bottleneck-chain h3 {
    font-size: 24px;
  }

  .platform-intro .section-head h2 {
    font-size: 35px !important;
  }
}

@media(prefers-reduced-motion:reduce) {
  .swap-path i {
    animation: none;
  }

  .lab-panel {
    scroll-behavior: auto;
  }
}

/* S²Mem's own event-trace motif: cyan evidence, violet reader, warm supervision. */
#evidence-lab .section-heading::before {
  content: "";
  display: block;
  width: 124px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: linear-gradient(90deg,#4ca9bd 0 32%,#a788cc 32% 66%,#c48b69 66% 100%);
}

.lab-tabs [data-lab="0"] {
  border-top: 3px solid #62b2c2;
}

.lab-tabs [data-lab="1"] {
  border-top: 3px solid #ad91ce;
}

.lab-tabs [data-lab="2"] {
  border-top: 3px solid #d5a183;
}

.case-card video {
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #152238;
}

.case-section .section-heading {
  max-width: 980px;
}

.case-section .case-card {
  box-shadow: none;
  border-radius: 14px;
}

.case-card.ours {
  border-color: #7eadd0;
}

.case-card.ours header {
  background: linear-gradient(100deg,#edf5f8,#f0edf8);
}

/* A moving evidence trace, kept subtle so the experiment remains the focus. */
.lab-panel {
  position: relative;
  overflow: hidden;
}

.lab-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,transparent,#65bfd0 20%,#b49ada 55%,#dfa47d 80%,transparent);
  transform-origin: left;
  animation: s2mem-trace 5s cubic-bezier(.4,0,.2,1) infinite;
  opacity: .5;
  pointer-events: none;
}

@keyframes s2mem-trace {
  0%,15% {
    transform: scaleX(.06);
    opacity: 0;
  }

  40% {
    opacity: .65;
  }

  80%,100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .lab-panel::after {
    animation: none;
    opacity: .4;
  }
}

/* Paper header, project film, and ranked results */
:root {
  --paper-ink:#17233e;
  --paper-cyan:#267f9d;
  --paper-violet:#7852ad;
  --paper-rose:#a64b83;
}

body {
  color: var(--paper-ink);
}

.nav {
  background: rgba(255,255,255,.96);
}

.nav-links a {
  font-size: 15px;
  font-weight: 700;
}

.section-wrap {
  max-width: 1320px;
}

.paper-hero {
  padding-top: 132px;
  padding-bottom: 45px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 80px;
  row-gap: 35px;
  position: relative;
}

.paper-intro .eyebrow {
  font-size: 13px;
  color: #4e607b;
  margin: 0 0 15px;
}

.paper-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 0 14px;
}

.paper-intro h1 {
  font-size: clamp(29px,3vw,43px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 750;
  margin: 0 0 20px;
  max-width: 700px;
}

.paper-intro h1 span {
  display: block;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -.35px;
  margin-top: 10px;
  color: #4b5a76;
  font-weight: 500;
}

.paper-thesis {
  font-size: 19px;
  line-height: 1.6;
  color: #425470;
  margin: 0 0 25px;
}

.paper-intro .hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.paper-intro .button {
  font-size: 14px;
  padding: 15px 20px;
}

.hero-evidence {
  padding-top: 9px;
}

.hero-evidence>.eyebrow {
  font-size: 12px;
  letter-spacing: 1.9px;
  color: #4a5b76;
  margin-bottom: 13px;
}

.impact-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 17px 22px 15px;
  border: 1px solid #dce3ee;
  border-left: 4px solid var(--impact);
  border-radius: 12px;
  margin-bottom: 12px;
  background: linear-gradient(110deg,#fff,var(--impact-tint));
  transition: transform .25s,border-color .25s;
}

.impact-row:hover {
  transform: translateX(5px);
  border-color: var(--impact);
}

.impact-row.cyan {
  --impact:#2d879e;
  --impact-tint:#f0f8fb;
}

.impact-row.violet {
  --impact:#7b57af;
  --impact-tint:#f5f1fb;
}

.impact-row.rose {
  --impact:#aa527f;
  --impact-tint:#fcf1f7;
}

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

.impact-top>span {
  font-size: 18px;
  font-weight: 750;
}

.impact-top>b {
  font-size: 24px;
  color: var(--impact);
}

.impact-top small {
  font-size: 14px;
}

.impact-bottom {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 25px;
  align-items: center;
  margin-top: 5px;
}

.impact-bottom>strong {
  font-size: 59px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.12;
  color: var(--impact);
}

.impact-bottom>strong small {
  font-size: 25px;
  letter-spacing: 0;
}

.impact-bottom>div>span {
  font-size: 13px;
  color: #51627c;
}

.impact-track {
  position: relative;
  height: 20px;
  margin: 7px 0;
  background: #e8edf4;
  border-radius: 4px;
  overflow: hidden;
}

.impact-track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: #bec9d7;
  height: 6px;
  top: 0;
}

.impact-track b {
  position: absolute;
  inset: auto auto 0 0;
  background: var(--impact);
  height: 10px;
}

.impact-explore {
  font-weight: 600;
  color: var(--impact) !important;
}

.paper-authors {
  grid-column: 1/-1;
  margin: 0 !important;
  padding: 27px 30px !important;
  border-top: 1px solid #d9e1ec !important;
  background: #f3f6fb;
  border-radius: 12px;
  text-align: center;
}

.paper-authors p {
  font-size: 19px !important;
  line-height: 1.9 !important;
  font-weight: 550 !important;
  color: #1a2b47 !important;
  letter-spacing: 0 !important;
  margin: 0 0 14px !important;
}

.paper-authors sup {
  color: #74619b;
  font-size: 12px;
}

.paper-authors>div {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.paper-authors>div span {
  font-size: 18px !important;
  font-weight: 700;
  color: #31476a !important;
  opacity: 1 !important;
}

.paper-authors>div sup {
  margin-right: 5px;
}

#results {
  padding: 65px 0 76px;
  background: #fff;
  border-top: 1px solid #e6eaf1;
}

#results .section-head {
  margin-bottom: 25px;
  align-items: end;
}

#results .section-head h2 {
  font-size: 49px;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0;
}

#results .section-head>p {
  font-size: 17px;
  max-width: 400px;
  color: #5b6881;
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.leaderboard-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f3f8;
  border: 1px solid #dbe2ed;
  border-radius: 10px;
  color: #53627b;
  padding: 19px 22px;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  transition: background .25s,color .25s;
}

.leaderboard-tabs button b {
  font-size: 23px;
}

.leaderboard-tabs button[aria-selected=true] {
  background: #202e50;
  color: white;
  border-color: #202e50;
  box-shadow: 0 8px 20px #18264118;
}

.leaderboard-stage {
  display: grid !important;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 0 !important;
  border: 1px solid #253352;
  border-radius: 18px;
  overflow: hidden;
  background: #17223e;
  color: white;
}

.rank-spotlight {
  padding: 36px 28px;
  background: linear-gradient(150deg,#25395c,#27304b 55%,#3e2e54);
  border-right: 1px solid #ffffff16;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.rank-spotlight .eyebrow {
  font-size: 12px;
  line-height: 1.6;
  color: #d3e1f4;
  letter-spacing: 1.6px;
  margin-bottom: 23px;
}

.rank-spotlight>strong {
  font-size: 80px;
  line-height: 1;
  letter-spacing: -4px;
  font-weight: 800;
  color: #c6f0f6;
}

.rank-spotlight>strong small {
  font-size: 31px;
  letter-spacing: 0;
}

.rank-spotlight>span {
  font-size: 14px;
  color: #b9c9e0;
  margin: 10px 0 30px;
}

.rank-gain {
  font-size: 37px;
  font-weight: 750;
  letter-spacing: -1.4px;
  color: #d5b7f1;
}

.rank-gain small {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  margin-top: 5px;
}

.rank-spotlight>p {
  font-size: 15px;
  line-height: 1.9;
  color: #bdcce0;
  margin: 20px 0 28px;
}

.rank-spotlight>p b {
  color: #f3f7ff;
  font-size: 19px;
}

.rank-detail {
  margin-top: auto;
  background: #fff;
  color: #26395a;
  border: 0;
  border-radius: 7px;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.rank-comparison {
  min-width: 0;
  padding: 24px 22px 22px;
}

.rank-column-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #9eacc5;
  padding: 0 12px 14px 48px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 24px minmax(160px,1.15fr) minmax(100px,1fr) 68px;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 9px;
  background: #ffffff04;
  min-height: 66px;
}

.rank-list li.is-ours {
  background: linear-gradient(100deg,#315d72,#514472);
  outline: 1px solid #9ed4e866;
  box-shadow: 0 8px 30px #0002;
  margin-bottom: 7px;
  padding-block: 17px;
}

.rank-position {
  font-size: 14px;
  color: #a3b4ce;
  font-variant-numeric: tabular-nums;
}

.rank-method strong {
  display: block;
  color: #eef4ff;
  font-size: 16px;
  line-height: 1.35;
}

.rank-method>span {
  display: block;
  font-size: 12px;
  color: #a9b8cf;
  line-height: 1.4;
  margin-top: 4px;
}

.is-ours .rank-method strong {
  font-size: 20px;
  color: white;
}

.is-ours .rank-method>span {
  color: #d1e6f0;
}

.rank-track {
  height: 16px;
  border-radius: 3px;
  background: #ffffff09;
  overflow: hidden;
}

.rank-track i {
  display: block;
  height: 100%;
  width: var(--score);
  background: #677997;
  border-radius: 3px;
}

.is-ours .rank-track {
  height: 25px;
  background: #ffffff12;
}

.is-ours .rank-track i {
  background: linear-gradient(90deg,#74c1ce,#ccb3ee);
}

.rank-value {
  font-size: 20px;
  color: #e2ebfa;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

.rank-value small {
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
}

.is-ours .rank-value {
  font-size: 28px;
  color: #d5f9fa;
}

.rank-note {
  font-size: 12px;
  line-height: 1.6;
  color: #9aaecb;
  margin: 18px 12px 0;
}

.task-breakdown {
  margin-top: 23px !important;
}

.task-breakdown .breakdown-heading h3 {
  font-size: 24px;
}

.project-film {
  padding-top: 75px;
  padding-bottom: 85px;
}

.project-film>.hero-cinema {
  max-width: 1030px;
  margin: auto;
  transform: none;
}

.project-film .section-head {
  margin-bottom: 30px;
}

.project-film h2 {
  font-size: 45px;
  line-height: 1.14;
  letter-spacing: -1.6px;
}

.project-film .cinema-label {
  font-size: 16px;
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f3f6fa;
  border-bottom: 1px solid #dce3ee;
  gap: 15px;
}

.view-mode {
  display: flex;
  gap: 4px;
  background: #e4eaf3;
  padding: 3px;
  border-radius: 7px;
}

.view-mode button {
  font-size: 14px;
  font-weight: 650;
  color: #50647f;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.view-mode button[aria-pressed=true] {
  background: #fff;
  color: #254568;
  box-shadow: 0 2px 6px #20375c12;
}

.viewer-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #51617d;
}

.viewer-toolbar select {
  font-size: 14px;
  border: 1px solid #ccd6e6;
  border-radius: 5px;
  padding: 7px 25px 7px 9px;
  background: #fff;
  color: #243d61;
}

.recording-screen {
  overflow: hidden;
  background: #0c1729 !important;
}

.recording-screen video {
  transition: transform .45s cubic-bezier(.2,.8,.2,1),filter .4s;
}

.recording-screen[data-framing=workspace] video {
  transform: none;
}

#gallery-panel[data-real=true] .recording-screen {
  aspect-ratio: 4/3;
}

#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] video {
  transform: scale(1.13);
  transform-origin: 50% 86%;
  filter: brightness(1.07) contrast(1.025);
}

#gallery-panel[data-real=true] .recording-screen[data-framing=full] video {
  transform: none;
  filter: brightness(1.035);
}

#gallery-panel .gallery-layout {
  grid-template-columns: minmax(0,1fr) 255px;
  gap: 20px;
}

.recording-caption h3 {
  font-size: 24px;
}

.recording-note {
  font-size: 14px;
}

.config-panel {
  padding: 20px !important;
}

.config-grid button {
  font-size: 15px !important;
  min-height: 43px;
}

.paper-hero~#results {
  scroll-margin-top: 80px;
}

@media(min-width:1550px) {
  .paper-hero {
    padding-top: 125px;
  }

  .paper-authors {
    margin-top: 0 !important;
  }
}

@media(max-width:1100px) {
  .paper-hero {
    gap: 32px;
    grid-template-columns: 1fr 1fr;
  }

  .paper-intro h1 {
    font-size: 33px;
  }

  .impact-bottom {
    grid-template-columns: 125px 1fr;
    gap: 12px;
  }

  .impact-bottom>strong {
    font-size: 53px;
  }

  .impact-top>span {
    font-size: 16px;
  }

  .rank-list li {
    grid-template-columns: 20px minmax(145px,1fr) minmax(60px,.8fr) 60px;
    gap: 9px;
  }

  .leaderboard-stage {
    grid-template-columns: 220px minmax(0,1fr);
  }

  .rank-spotlight {
    padding: 30px 20px;
  }

  .rank-spotlight>strong {
    font-size: 70px;
  }

  .paper-authors p {
    font-size: 17px !important;
  }
}

@media(max-width:760px) {
  .paper-hero {
    display: flex;
    flex-direction: column;
    padding-top: 105px;
    padding-bottom: 32px;
    gap: 26px;
  }

  .paper-logo {
    width: 180px;
  }

  .paper-intro h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }

  .paper-intro h1 span {
    font-size: 18px;
  }

  .paper-thesis {
    font-size: 17px;
  }

  .hero-evidence {
    padding-top: 0;
  }

  .impact-row {
    padding: 14px 18px;
  }

  .impact-bottom>strong {
    font-size: 49px;
  }

  .impact-bottom {
    grid-template-columns: 125px 1fr;
  }

  .paper-authors {
    padding: 19px 16px !important;
  }

  .paper-authors p {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }

  .paper-authors>div {
    gap: 12px 18px;
  }

  .paper-authors>div span {
    font-size: 15px !important;
  }

  #results {
    padding-top: 40px;
  }

  #results .section-head h2 {
    font-size: 35px;
    letter-spacing: -1px;
  }

  .leaderboard-tabs {
    gap: 5px;
  }

  .leaderboard-tabs button {
    padding: 12px 8px;
    font-size: 12px;
    display: block;
    text-align: center;
  }

  .leaderboard-tabs button b {
    display: block;
    font-size: 21px;
    margin-top: 4px;
  }

  .leaderboard-stage {
    display: block !important;
  }

  .rank-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 5px 15px;
    border-right: 0;
    border-bottom: 1px solid #ffffff20;
  }

  .rank-spotlight .eyebrow {
    grid-column: 1/-1;
    margin: 0 0 8px;
  }

  .rank-spotlight>strong {
    font-size: 64px;
  }

  .rank-spotlight>span {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .rank-gain {
    grid-column: 2;
    grid-row: 2;
    font-size: 32px;
  }

  .rank-spotlight>p {
    grid-column: 2;
    grid-row: 3;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
  }

  .rank-spotlight>p b {
    font-size: 15px;
  }

  .rank-detail {
    grid-column: 1/-1;
    margin-top: 14px;
    text-align: center;
  }

  .rank-comparison {
    padding: 18px 10px;
  }

  .rank-list li {
    grid-template-columns: 17px minmax(110px,1fr) 58px;
    gap: 7px;
    padding: 11px 8px;
  }

  .rank-track {
    grid-column: 2;
    grid-row: 2;
    height: 6px !important;
  }

  .rank-method {
    grid-column: 2;
    grid-row: 1;
  }

  .rank-position {
    grid-column: 1;
    grid-row: 1/3;
  }

  .rank-value {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 19px;
  }

  .rank-method strong {
    font-size: 14px;
  }

  .rank-method>span {
    font-size: 11px;
  }

  .is-ours .rank-value {
    font-size: 25px;
  }

  .is-ours .rank-method strong {
    font-size: 18px;
  }

  .rank-column-head {
    padding-left: 32px;
    font-size: 10px;
  }

  .rank-note {
    font-size: 11px;
  }

  .project-film {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .project-film h2 {
    font-size: 34px;
  }

  #gallery-panel .gallery-layout {
    grid-template-columns: 1fr;
  }

  .viewer-toolbar {
    padding: 9px;
    gap: 8px;
  }

  .view-mode button {
    padding: 8px 10px;
    font-size: 12px;
  }

  .viewer-toolbar label {
    font-size: 12px;
    gap: 5px;
  }

  .viewer-toolbar select {
    font-size: 12px;
  }

  .recording-caption h3 {
    font-size: 20px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .impact-row,.recording-screen video {
    transition: none;
  }
}

.paper-hero {
  padding-top: 50px;
  row-gap: 25px;
}

.paper-authors {
  padding-block: 23px !important;
}

@media(min-width:1550px) {
  .paper-hero {
    padding-top: 52px;
  }
}

@media(max-width:760px) {
  .paper-hero {
    padding-top: 32px;
    gap: 24px;
  }
}

.paper-thesis strong {
  display: block;
  font-size: 27px;
  line-height: 1.3;
  color: #8b437a;
  letter-spacing: -.7px;
  margin-bottom: 8px;
}

.paper-thesis>span {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #52617b;
  max-width: 440px;
}

.paper-intro .hero-actions {
  margin-top: 22px;
}

#gallery-panel[data-real=false] .view-mode {
  visibility: hidden;
}

@media(max-width:760px) {
  .paper-thesis strong {
    font-size: 24px;
  }

  .paper-thesis>span {
    font-size: 15px;
  }
}

.paper-logo {
  width: 190px;
  margin-bottom: 12px;
}

.paper-intro h1 {
  font-size: clamp(29px,2.7vw,38px);
  margin-bottom: 15px;
}

.paper-intro .paper-authors {
  padding: 13px 16px !important;
  margin: 15px 0 19px !important;
  text-align: left;
  border: 1px solid #dce4ef !important;
  background: #f1f5fb;
}

.paper-intro .paper-authors p {
  font-size: 16.5px !important;
  line-height: 1.85 !important;
  margin-bottom: 10px !important;
}

.paper-intro .paper-authors>div {
  justify-content: flex-start;
  gap: 10px 18px;
}

.paper-intro .paper-authors>div span {
  font-size: 16px !important;
}

.paper-intro .paper-thesis {
  margin-bottom: 15px;
}

.paper-intro .paper-thesis strong {
  font-size: 25px;
}

.paper-intro .hero-actions {
  margin-top: 16px;
}

.paper-intro .paper-thesis>span {
  font-size: 15px;
}

@media(max-width:760px) {
  .paper-intro .paper-authors p {
    font-size: 15px !important;
  }

  .paper-intro .paper-authors>div span {
    font-size: 14px !important;
  }

  .paper-intro h1 {
    font-size: 30px;
  }

  .paper-intro .paper-thesis strong {
    font-size: 23px;
  }
}

#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] {
  aspect-ratio: 16/10;
}

#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] video {
  transform: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  filter: brightness(1.07) contrast(1.025);
}

#gallery-panel[data-real=true] .recording-screen[data-framing=full] {
  aspect-ratio: 4/3;
}

#gallery-panel[data-real=true] .recording-screen[data-framing=full] video {
  object-fit: contain;
  transform: none;
}

#results {
  scroll-margin-top: 0 !important;
  padding-top: 45px;
}

#rollouts {
  padding-top: 55px;
}

#rollouts>.section-head {
  margin-bottom: 23px;
  align-items: end;
}

#rollouts>.section-head h2 {
  font-size: 43px;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

#rollouts>.section-head>p {
  font-size: 16px;
  max-width: 310px;
}

.benchmark-tabs {
  max-width: none;
  width: 100%;
  margin-bottom: 17px;
}

.benchmark-tabs button {
  padding: 15px 20px;
  font-size: 16px;
}

.benchmark-tabs button span {
  font-size: 12px;
}

.task-strip {
  margin-bottom: 18px;
}

.task-strip button {
  font-size: 14px;
  padding: 10px 15px;
}

#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] {
  aspect-ratio: 16/9;
}

@media(max-width:760px) {
  #rollouts>.section-head h2 {
    font-size: 32px;
  }

  .benchmark-tabs button {
    font-size: 13px;
    padding: 12px 9px;
  }

  .benchmark-tabs button span {
    font-size: 10px;
  }

  .task-strip button {
    font-size: 12px;
    padding: 9px 12px;
  }
}

main section h2.display {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.7px;
}

.section-head>p {
  font-size: 17px;
}

.end-section h2 {
  font-size: 43px;
  line-height: 1.15;
}

.end-section {
  padding-block: 65px;
}

.method-section .section-head {
  margin-bottom: 30px;
}

@media(max-width:760px) {
  main section h2.display {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .section-head>p {
    font-size: 16px;
  }

  .end-section h2 {
    font-size: 32px;
  }
}

@media(max-width:760px) {
  .nav-links {
    display: flex !important;
    gap: 12px !important;
  }

  .nav-links a {
    display: none !important;
  }

  .nav-links a[href="#results"],.nav-links a[href="#rollouts"] {
    display: inline-block !important;
    font-size: 12px !important;
  }

  .paper-intro .paper-authors p {
    font-size: 16px !important;
  }

  .paper-intro .paper-authors>div span {
    font-size: 16px !important;
  }

  .rank-method>span,.rank-note {
    font-size: 12px;
  }

  .rank-column-head {
    font-size: 11px;
  }

  .task-strip button {
    font-size: 14px;
  }

  .benchmark-tabs button {
    font-size: 14px;
    padding-inline: 5px;
  }
}

/* Keep the previous vertical field and trim the sides of its workspace. */
#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] {
  aspect-ratio: var(--workspace-ratio, 16/9);
}

.recording-screen[data-workspace-crop="aloha"] {
  --workspace-ratio:2/1;
}

@supports (object-view-box:inset(10%)) {
  .recording-screen[data-workspace-crop="aloha"] {
    --workspace-ratio:1.76/1;
    --workspace-inset:33.333% 6% 0;
  }

  .recording-screen[data-workspace-crop="dos"],.recording-screen[data-workspace-crop="ood"] {
    --workspace-ratio:1.56444/1;
    --workspace-inset:25% 6% 0;
  }
}

#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] video {
  object-fit: cover;
  object-position: center bottom;
  object-view-box: inset(var(--workspace-inset, 0));
  transition: none;
}

/* Method walkthrough and feature diagrams */
:root {
  --s2-cyan:#7fbfcc;
  --s2-violet:#aa9ad8;
  --s2-pink:#cb98c6;
  --s2-ink:#26314c;
}

.impact-row.cyan {
  --impact:#3b7f93;
  --impact-tint:#eff7fa;
}

.impact-row.violet {
  --impact:#7662a6;
  --impact-tint:#f4f1fb;
}

.impact-row.rose {
  --impact:#9d5e91;
  --impact-tint:#faf2f9;
}

.paper-thesis strong {
  color: #8e5a91;
}

.leaderboard-stage {
  background: #202740;
  border-color: #343b59;
}

.rank-spotlight {
  background: linear-gradient(150deg,#2c405d 0%,#343752 58%,#4b3d63);
}

.rank-list li.is-ours {
  background: linear-gradient(105deg,#335f70,#625078);
  outline-color: #b7b7e96b;
  box-shadow: 0 8px 30px #101a3418;
}

.rank-list li.is-ours .rank-track i {
  background: linear-gradient(95deg,#85c9d4,#b9aae7 62%,#d3a5ce);
}

.rank-track i {
  background: #8592ad;
}

.rank-track {
  background: #ffffff0b;
}

.rank-gain {
  color: #dfc5ee;
}

.rank-spotlight>strong {
  color: #d8f2f5;
}

.rank-method>span {
  color: #bdc5d7;
}

.rank-note {
  color: #b1bdd0;
}

.leaderboard-tabs [data-leaderboard=robotwin][aria-selected=true] {
  background: #345f73;
  border-color: #345f73;
}

.leaderboard-tabs [data-leaderboard=rmbench][aria-selected=true] {
  background: #655384;
  border-color: #655384;
}

.leaderboard-tabs [data-leaderboard=real][aria-selected=true] {
  background: #885579;
  border-color: #885579;
}

.leaderboard-stage[data-palette=rmbench] .rank-spotlight {
  background: linear-gradient(145deg,#3d395d,#514067);
}

.leaderboard-stage[data-palette=real] .rank-spotlight {
  background: linear-gradient(145deg,#493953,#684663);
}

.viewer-toolbar .view-mode button[aria-pressed=true] {
  color: #5a5184;
}

.config-grid button[aria-pressed=true] {
  background: #eeeaf7;
  border-color: #b7acd2;
  color: #4d4572;
}

.mechanism-scene {
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  gap: 32px;
  padding: 30px;
  align-items: center;
}

.mechanism-copy>.eyebrow {
  font-size: 12px;
  letter-spacing: 1.1px;
}

.mechanism-copy h3 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 390px;
}

.mechanism-copy>p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 18px;
}

.mechanism-copy .claim-note {
  font-size: 14px;
  line-height: 1.65;
}

.mechanism-animation {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.mechanism-animation .phase-caption {
  position: static;
  transform: none;
  min-height: 0;
  text-align: left;
  margin-top: 15px;
  padding: 15px 18px;
  border: 1px solid #d9e3ef;
  background: #ffffffd9;
  border-radius: 10px;
}

.phase-caption b {
  font-size: 17px;
  line-height: 1.4;
  color: #2f4968;
}

.phase-caption span {
  font-size: 14px;
  line-height: 1.55;
  color: #566781;
  margin-top: 5px;
}

.method-theater {
  width: 100%;
  padding: 20px;
  background: #ffffffc4;
  border: 1px solid #dce5f0;
  border-radius: 15px;
  box-shadow: 0 10px 28px #22365a08;
  --focus:#5b9eac;
  --focus-bg:#eef8fa;
}

.mechanism-scene[data-active="1"] .method-theater {
  --focus:#9581bd;
  --focus-bg:#f5f0fb;
}

.mechanism-scene[data-active="2"] .method-theater {
  --focus:#b281a8;
  --focus-bg:#faf1f8;
}

.diagram-node {
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  padding: 13px;
  transition: border-color .45s,box-shadow .45s,background .45s;
}

.node-label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #415472;
  margin-bottom: 10px;
}

.node-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.node-heading>strong {
  font-size: 15px;
  color: #344b69;
}

.node-heading>span {
  font-size: 12px;
  color: #6a7890;
}

.diagram-node small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #708099;
}

.theater-inputs {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.recent-photos {
  display: flex;
  gap: 5px;
  align-items: center;
}

.recent-photos img {
  width: calc((100% - 10px)/3);
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #d6dfeb;
}

.recent-photos .candidate-photo {
  outline: 2px solid #baa8d5;
  outline-offset: 1px;
}

.motion-node svg {
  width: 100%;
  height: 54px;
  display: block;
}

.motion-node path {
  fill: none;
  stroke: #65a6b5;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 0;
  color: #6c829b;
}

.diagram-route b {
  font-size: 12px;
  font-weight: 500;
}

.diagram-route span {
  height: 1px;
  width: 60px;
  background: #b6c9d7;
}

.selector-node {
  text-align: center;
  max-width: 340px;
  margin: auto;
  padding: 13px 20px;
}

.node-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8293a7;
  margin-bottom: 4px;
}

.selector-node strong {
  font-size: 17px;
  line-height: 1.3;
  color: #344d6c;
}

.selector-progress {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 5px;
  height: 22px;
  margin-top: 9px;
}

.selector-progress i {
  display: block;
  width: 12px;
  height: 6px;
  background: #d5e4e9;
  border-radius: 2px;
  transition: height .5s,background .5s;
}

.selector-progress i:nth-child(2),.selector-progress i:nth-child(6) {
  height: 10px;
}

.selector-progress i:nth-child(3),.selector-progress i:nth-child(5) {
  height: 16px;
}

.selector-progress i:nth-child(4) {
  height: 22px;
}

.diagram-arrow,.down-route {
  display: block;
  text-align: center;
  font-size: 23px;
  line-height: 1.3;
  color: #a0b2c6;
  padding: 6px;
}

.theater-bank {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 5px;
  margin: 12px 0 8px;
}

.theater-bank>span {
  height: 25px;
  border: 1px solid #d6e1eb;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.theater-bank img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity .55s,transform .55s;
}

.mechanism-scene[data-active="0"][data-phase="0"] .recent-node,.mechanism-scene[data-active="0"][data-phase="1"] .motion-node,.mechanism-scene[data-active="0"][data-phase="2"] .selector-node,.mechanism-scene[data-active="0"][data-phase="3"] .bank-node {
  border-color: var(--focus);
  background: var(--focus-bg);
  box-shadow: 0 0 0 3px #70b4c114;
}

.mechanism-scene[data-phase="1"] .motion-node path {
  stroke-dasharray: 450;
  animation: motion-trace .9s ease both;
}

.mechanism-scene[data-phase="2"] .selector-progress i {
  background: #7bb8c3;
}

.mechanism-scene[data-phase="3"] .theater-bank img {
  opacity: 1;
  transform: translateY(0);
}

@keyframes motion-trace {
  from {
    stroke-dashoffset: 450;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.adaptation-layout {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 14px;
}

.vlm-layers {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}

.vlm-layers>span {
  display: block;
  height: 13px;
  border-radius: 3px;
  border: 1px solid #b9cbdc;
  background: linear-gradient(90deg,#d7e7ee,#eaf1f7);
}

.frozen-chip {
  font-size: 11px !important;
  white-space: nowrap;
  background: #edf3f8;
  color: #627b94 !important;
  padding: 4px 7px;
  border-radius: 4px;
}

.lora-node {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f3fc;
}

.lora-node>strong {
  font-size: 21px;
  color: #7e659f;
}

.lora-node>span {
  font-size: 13px;
  color: #8e7ca8;
}

.lora-bars {
  display: grid;
  gap: 7px;
  margin: 13px 0;
  width: 100%;
}

.lora-bars i {
  height: 6px;
  display: block;
  background: #b7a5d1;
  border-radius: 3px;
  margin: auto;
  width: 40%;
}

.prefix-flow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 19px 8px;
  color: #6b7c94;
}

.prefix-flow span {
  height: 1px;
  background: #c0cfdf;
  flex: 1;
}

.prefix-flow b {
  font-size: 12px;
  font-weight: 500;
}

.expert-node {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 15px 18px;
  background: #f1f7fb;
}

.expert-node>strong {
  font-size: 19px;
  color: #375c7a;
}

.expert-node>span {
  font-size: 13px;
  color: #6e8298;
  grid-column: 1;
}

.trainable-chip {
  grid-column: 2;
  grid-row: 1/3;
  font-size: 12px;
  color: #58708d;
  border: 1px solid #cbdce9;
  border-radius: 5px;
  padding: 6px 9px;
  font-weight: 500;
}

.readout-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e0e7f0;
  margin-top: 20px;
  padding-top: 17px;
  color: #74829a;
}

.readout-node>span {
  font-size: 12px;
}

.readout-node>strong {
  font-size: 14px;
  color: #6d638d;
}

.readout-trace {
  display: flex;
  gap: 4px;
  align-items: center;
}

.readout-trace i {
  height: 10px;
  width: 5px;
  background: #c3b6dc;
  border-radius: 2px;
  transition: height .5s;
}

.readout-trace i:nth-child(2),.readout-trace i:nth-child(4) {
  height: 18px;
}

.readout-trace i:nth-child(3) {
  height: 26px;
}

.mechanism-scene[data-active="1"][data-phase="0"] .frozen-node,.mechanism-scene[data-active="1"][data-phase="1"] .lora-node,.mechanism-scene[data-active="1"][data-phase="2"] .expert-node {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px #ac9bcd18;
}

.mechanism-scene[data-active="1"][data-phase="1"] .lora-bars i {
  animation: lora-update .7s ease both;
}

.mechanism-scene[data-active="1"][data-phase="3"] .readout-node {
  color: #826aa7;
  border-color: #b8a6d1;
}

.mechanism-scene[data-active="1"][data-phase="3"] .readout-trace i {
  background: #9d87be;
}

@keyframes lora-update {
  from {
    width: 16%;
  }

  to {
    width: 40%;
  }
}

.mpe-theater {
  padding: 17px;
}

.mpe-context {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 18px;
  align-items: start;
}

.mpe-recent {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 56px;
}

.mpe-recent>img,.masked-slot {
  width: 29%;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d8deea;
}

.masked-slot {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.masked-slot>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s;
}

.slot-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: repeating-linear-gradient(135deg,#f3eaf5,#f3eaf5 5px,#e7dbea 5px,#e7dbea 8px);
  font-size: 10px;
  text-align: center;
  line-height: 1.3;
  color: #8b6d95;
  opacity: 0;
  transition: opacity .4s;
}

.masked-separator {
  height: 44px;
  width: 4px;
  background: #c4cede;
  border-radius: 2px;
}

.teacher-node {
  text-align: center;
  border: 1px dashed #c8b1ca;
  background: #fcf8fc;
  padding: 9px;
  border-radius: 8px;
}

.teacher-node .node-label {
  font-size: 12px;
  margin-bottom: 6px;
}

.teacher-node>img {
  width: 63px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}

.teacher-node>strong {
  display: block;
  font-size: 12px;
  color: #936d92;
  margin-top: 6px;
}

.mpe-paths {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 18px;
}

.bank-context {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #74859a;
  margin: 10px 0 0;
}

.bank-context img {
  width: 37px;
  height: 25px;
  object-fit: cover;
  border: 1px solid #dae4ee;
  border-radius: 3px;
}

.query-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px;
}

.query-node>strong {
  font-size: 14px;
  color: #7b6395;
}

.query-dots {
  display: flex;
  gap: 5px;
}

.query-dots i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: #bfa7d5;
}

.mpe-theater .down-route {
  font-size: 19px;
  padding: 3px;
  color: #bcc7d7;
}

.prediction-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  padding: 10px;
  background: white;
  gap: 10px;
}

.prediction-node>span {
  font-size: 12px;
  color: #6c7893;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 3px;
  width: 66px;
}

.feature-grid i {
  display: block;
  aspect-ratio: 1;
  background: hsl(calc(255 + var(--cell)*2) 25% calc(82% - var(--cell)*1%));
  border-radius: 1px;
}

.teacher-path {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-path>.down-route {
  padding-top: 18px;
  padding-bottom: 9px;
}

.target-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.target-features>span {
  font-size: 11px;
  color: #896b8c;
}

.target-features .feature-grid i {
  background: hsl(calc(305 + var(--cell)*2) 20% calc(84% - var(--cell)*1%));
}

.target-features>small {
  font-size: 10px;
  color: #a18ba6;
}

.mpe-loss {
  margin-top: 13px;
  padding: 11px;
  text-align: center;
  border: 1px solid #e5dbe9;
  border-radius: 7px;
  background: #f9f4fa;
  opacity: .4;
  transition: opacity .45s,border-color .45s;
}

.mpe-loss strong {
  display: block;
  font-size: 13px;
  color: #8e7097;
}

.mpe-loss span {
  display: block;
  font-size: 11px;
  color: #a08ca6;
  margin-top: 3px;
}

.mechanism-scene[data-active="2"][data-phase="0"] .masked-slot {
  outline: 2px solid #b69bc3;
  outline-offset: 1px;
}

.mechanism-scene[data-active="2"]:not([data-phase="0"]) .slot-mask {
  opacity: 1;
}

.mechanism-scene[data-active="2"]:not([data-phase="0"]) .masked-slot>img {
  opacity: 0;
}

.mechanism-scene[data-active="2"]:not([data-phase="0"]) .masked-separator {
  background: repeating-linear-gradient(135deg,#ba9fc5,#ba9fc5 3px,#f2e7f5 3px,#f2e7f5 6px);
}

.mechanism-scene[data-active="2"][data-phase="2"] .query-node {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px #c291bc18;
}

.mechanism-scene[data-active="2"][data-phase="3"] .prediction-node {
  border-color: #b99cc5;
  background: #faf6fc;
}

.mechanism-scene[data-active="2"][data-phase="3"] .mpe-loss {
  opacity: 1;
  border-color: #c5a6cf;
}

.mechanism-controls {
  margin-top: 16px;
  gap: 14px;
}

.mechanism-controls button {
  font-size: 14px;
}

.mechanism-controls>span {
  font-size: 13px;
}

.mechanism-progress {
  height: 4px;
  background: #e8e6f0;
}

.mechanism-progress i {
  height: 4px;
  background: linear-gradient(90deg,#80becb,#ab9cd5,#ca9bc9);
}

@media(max-width:1000px) {
  .mechanism-scene {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mechanism-copy h3 {
    max-width: none;
  }

  .mechanism-copy>p:not(.eyebrow) {
    max-width: 680px;
  }

  .method-theater {
    max-width: 700px;
    margin: auto;
  }

  .mechanism-animation {
    width: 100%;
    max-width: 700px;
    margin: auto;
  }

  .mechanism-facts {
    gap: 30px;
  }

  .mechanism-copy .claim-note {
    max-width: 680px;
  }
}

@media(max-width:600px) {
  .mechanism-scene {
    padding: 19px;
    gap: 21px;
  }

  .mechanism-copy h3 {
    font-size: 28px;
  }

  .mechanism-copy>p:not(.eyebrow) {
    font-size: 16px;
  }

  .method-theater {
    padding: 12px;
  }

  .theater-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .recent-photos img {
    height: 65px;
  }

  .motion-node svg {
    height: 37px;
  }

  .diagram-route {
    padding: 9px 0;
  }

  .theater-bank {
    gap: 4px;
  }

  .theater-bank>span {
    height: 21px;
  }

  .node-heading {
    align-items: flex-start;
  }

  .node-heading>span {
    max-width: 100px;
    text-align: right;
  }

  .adaptation-layout {
    grid-template-columns: 1.4fr .85fr;
    gap: 8px;
  }

  .frozen-node {
    padding: 10px;
  }

  .frozen-node .node-heading {
    display: block;
  }

  .frozen-chip {
    display: inline-block;
    margin-top: 6px;
  }

  .lora-node {
    padding: 9px;
  }

  .readout-node {
    flex-wrap: wrap;
  }

  .readout-node>strong {
    font-size: 13px;
  }

  .mpe-theater {
    padding: 10px;
  }

  .mpe-context,.mpe-paths {
    grid-template-columns: 1.4fr .85fr;
    gap: 10px;
  }

  .mpe-recent {
    gap: 3px;
    height: 47px;
  }

  .mpe-recent>img,.masked-slot {
    height: 46px;
  }

  .teacher-node {
    padding: 7px 4px;
  }

  .teacher-node>img {
    width: 49px;
    height: 36px;
  }

  .query-node {
    display: block;
    padding: 9px;
  }

  .query-dots {
    margin-top: 7px;
  }

  .prediction-node {
    display: block;
    padding: 8px;
  }

  .prediction-node .feature-grid {
    margin: 7px auto 0;
  }

  .feature-grid {
    width: 56px;
  }

  .bank-context {
    font-size: 10px;
  }

  .bank-context img {
    width: 30px;
  }

  .phase-caption b {
    font-size: 16px;
  }

  .phase-caption span {
    font-size: 14px;
  }

  .mechanism-animation .phase-caption {
    padding: 13px;
  }

  .mechanism-controls {
    gap: 7px;
  }

  .mechanism-controls button {
    font-size: 12px;
    padding-inline: 5px;
  }

  .mechanism-controls>span {
    font-size: 12px;
  }

  .mechanism-progress {
    min-width: 25px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .method-theater * {
    animation: none !important;
    transition: none !important;
  }
}

.teacher-node .node-label {
  font-size: 14px;
}

.teacher-node>img {
  width: 86px;
  height: 60px;
}

.teacher-node>strong {
  font-size: 14px;
}

.prediction-node>span {
  font-size: 14px;
}

.target-features>span {
  font-size: 13px;
}

.target-features>small {
  font-size: 12px;
}

.feature-grid {
  width: 76px;
}

.slot-mask {
  font-size: 11px;
}

.mpe-loss {
  opacity: 1;
}

.mpe-loss strong {
  font-size: 14px;
  color: #80658f;
}

.mpe-loss span {
  font-size: 12px;
  color: #8d7a98;
}

.mechanism-scene[data-active="2"][data-phase="3"] .mpe-loss {
  background: #f1e7f6;
  box-shadow: 0 0 0 3px #c291c015;
}

@media(max-width:600px) {
  .teacher-node .node-label {
    font-size: 12px;
  }

  .teacher-node>img {
    width: 49px;
    height: 36px;
  }

  .teacher-node>strong {
    font-size: 12px;
  }

  .feature-grid {
    width: 56px;
  }

  .prediction-node>span {
    font-size: 12px;
  }

  .target-features>span {
    font-size: 11px;
  }

  .target-features>small {
    font-size: 10px;
  }

  .mpe-loss strong {
    font-size: 13px;
  }

  .mpe-loss span {
    font-size: 11px;
  }
}

.lora-node {
  position: relative;
}

.lora-node::before {
  content: '+';
  position: absolute;
  left: -17px;
  top: 47%;
  font-size: 18px;
  font-weight: 500;
  color: #a18abb;
}

.prefix-flow {
  position: relative;
  padding-bottom: 25px;
}

.prefix-flow::after {
  content: '↓';
  position: absolute;
  left: 50%;
  bottom: 0;
  font-size: 20px;
  line-height: 1;
  color: #9bafc7;
}

.diagram-route {
  position: relative;
  padding-bottom: 24px;
}

.diagram-route::after {
  content: '↓';
  position: absolute;
  left: 50%;
  bottom: 0;
  font-size: 19px;
  line-height: 1;
  color: #9eb8c6;
}

@media(max-width:600px) {
  .adaptation-layout {
    gap: 14px;
  }

  .lora-node::before {
    left: -15px;
    font-size: 16px;
  }

  .diagram-route {
    padding-bottom: 21px;
  }
}

@media(max-width:600px) {
  .mechanism-controls {
    flex-wrap: wrap;
    gap: 7px;
    padding-inline: 0;
  }

  .mechanism-controls button {
    font-size: 14px;
    min-height: 40px;
  }

  .mechanism-controls>span {
    font-size: 13px;
  }

  .mechanism-progress {
    flex-basis: 100%;
    margin-top: 3px;
  }
}

.mechanism-scene[data-active="1"][data-phase="2"] .prefix-flow span {
  transform-origin: left;
  animation: kv-trace .7s cubic-bezier(.2,.8,.2,1) both;
}

.mechanism-scene[data-active="2"][data-phase="2"] .query-dots i {
  animation: query-read .45s ease both;
}

.mechanism-scene[data-active="2"][data-phase="2"] .query-dots i:nth-child(2) {
  animation-delay: 70ms;
}

.mechanism-scene[data-active="2"][data-phase="2"] .query-dots i:nth-child(3) {
  animation-delay: 140ms;
}

.mechanism-scene[data-active="2"][data-phase="2"] .query-dots i:nth-child(4) {
  animation-delay: 210ms;
}

.mechanism-scene[data-active="2"][data-phase="3"] .feature-grid i {
  animation: feature-match .4s ease both;
  animation-delay: calc(var(--cell)*12ms);
}

@keyframes kv-trace {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes query-read {
  from {
    opacity: .35;
    transform: translateY(4px);
  }

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

@keyframes feature-match {
  from {
    opacity: .35;
  }

  to {
    opacity: 1;
  }
}

@media(prefers-reduced-motion:reduce) {
  .method-theater * {
    animation: none !important;
  }
}

/* Keep native seek bars reachable on every video. */
.cinema-gradient {
  pointer-events: none;
}

.cinema-bottom {
  pointer-events: none;
  bottom: 65px;
}

.cinema-bottom button {
  pointer-events: auto;
}

.wall-control {
  top: 14px;
  right: 14px;
  bottom: auto;
}

.hero-video-wrap video {
  pointer-events: auto;
}

.recording-screen video {
  pointer-events: auto;
}

/* Compact inline player */
/* A visible, compact film directly under the paper cover. */
.inline-film {
  max-width: 900px;
  padding-top: 18px;
  padding-bottom: 32px;
  scroll-margin-top: 80px;
}

.inline-film .section-head {
  gap: 24px;
  margin-bottom: 20px;
  align-items: end;
}

.inline-film .section-head h2 {
  font-size: clamp(28px,3.2vw,42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.inline-film .section-head>p {
  max-width: 320px;
  font-size: 16px;
  line-height: 1.5;
}

.inline-film .hero-cinema {
  border: 1px solid #9ca5c033;
  border-radius: 20px;
  overflow: hidden;
  background: #19243a;
  box-shadow: 0 20px 55px #35477417;
}

.inline-film .hero-video-wrap {
  aspect-ratio: 16/9;
  background: #10192b;
}

.inline-film .hero-video-wrap video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.inline-film .cinema-top {
  padding: 12px 18px;
}

.inline-film .cinema-label {
  font-size: 14px;
  color: #eef0ff;
}

.inline-film .cinema-rail {
  padding: 11px 18px;
  gap: 18px;
  font-size: 13px;
  color: #d1dced;
}

@media(max-width:600px) {
  .inline-film {
    padding-top: 12px;
    padding-bottom: 30px;
  }

  .inline-film .section-head {
    display: block;
  }

  .inline-film .section-head>p {
    margin-top: 12px;
    max-width: none;
  }

  .inline-film .cinema-label {
    font-size: 12px;
  }

  .inline-film .cinema-top {
    padding: 10px;
  }

  .inline-film .cinema-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px;
    font-size: 12px;
  }

  .inline-film .hero-cinema {
    border-radius: 14px;
  }
}

.inline-film .soundless-toggle {
  font-size: 14px;
  color: #edf3ff;
  opacity: 1;
  padding: 7px 12px;
  border: 1px solid #ffffff35;
  border-radius: 7px;
  background: #ffffff0b;
}

/* History replay, memory snapshots, and player controls */
.history-replay {
  margin: 36px auto 0;
  padding: clamp(16px,3vw,36px);
  border-radius: 24px;
  background: #19243a;
  color: #f5f7ff;
}

.history-replay h3 {
  margin: 0;
  font-size: clamp(24px,4vw,38px);
  letter-spacing: -.035em;
}

.history-replay p {
  color: #d4def0;
  margin: .65rem 0 1.3rem;
}

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

.replay-pair article {
  min-width: 0;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  padding: clamp(8px,1.5vw,18px);
  background: #ffffff09;
  display: grid;
  gap: 10px;
}

.replay-pair article>span {
  color: #b5ecf6;
}

.replay-pair article+article>span {
  color: #e1beff;
}

.replay-pair img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 8px;
  background: #0d1629;
}

.replay-pair ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.replay-pair li {
  background: #ffffff13;
  padding: 4px 8px;
  border-radius: 6px;
}

.replay-pair li[aria-current] {
  background: #c3e8f5;
  color: #15243e;
}

.replay-controls {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.replay-controls label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.replay-controls input {
  width: 100%;
  accent-color: #b5d8fb;
}

.replay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.replay-buttons button {
  background: #ffffff12;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  padding: 7px 11px;
  color: inherit;
  cursor: pointer;
}

.inline-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}

.inline-chapters button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #e0e8fa;
  cursor: pointer;
  font-size: 14px;
}

.inline-chapters span {
  color: #aac5dd;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.inline-chapters button:hover,.inline-chapters button[aria-current] {
  border-color: #9cbad467;
  background: #d7d9ff1c;
}

.compare-controls {
  display: grid;
  grid-template-columns: auto auto minmax(80px,1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eaf0fa;
  color: #253957;
}

.compare-controls button {
  border: 0;
  border-radius: 8px;
  background: #253957;
  color: white;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.compare-controls input {
  width: 100%;
  accent-color: #634e8b;
}

.compare-controls output {
  font-variant-numeric: tabular-nums;
}

@media(max-width:600px) {
  .compare-controls {
    grid-template-columns: auto 1fr auto;
  }

  .compare-controls label {
    grid-column: 2/-1;
  }

  .compare-controls input {
    grid-column: 1/3;
  }
}

.film-quick-links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.film-quick-links a {
  color: #3c5081;
  font-weight: 650;
  font-size: 14px;
  text-underline-offset: 4px;
}

.nav-film[href] {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#history-replay,#failure-examples {
  scroll-margin-top: 92px;
}

@media(max-width:800px) {
  .nav-links .nav-compare {
    display: none;
  }
}

.ood-guide {
  display: grid;
  grid-template-columns: minmax(180px,.75fr) minmax(0,2fr);
  gap: clamp(20px,4vw,56px);
  padding-block: 18px 42px;
}

.ood-guide h2 {
  font-size: clamp(24px,3vw,38px);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.035em;
}

.ood-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ood-guide article {
  padding: 18px;
  border: 1px solid #dce4f1;
  border-radius: 14px;
  background: #eef4fc;
}

.ood-guide article+article {
  background: #f3eef9;
  border-color: #e3daee;
}

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

.ood-guide article p {
  margin: 8px 0 12px;
  color: #44536b;
}

.ood-guide a {
  display: inline-block;
  margin: 0 12px 5px 0;
  color: #374e81;
  text-underline-offset: 3px;
  font-weight: 650;
}

@media(max-width:720px) {
  .ood-guide,.ood-guide-grid {
    grid-template-columns: 1fr;
  }
}

.history-replay .replay-controls {
  margin: 0 0 16px;
}

.replay-buttons button[aria-pressed="true"] {
  background: #c3e8f5;
  color: #15243e;
  border-color: #c3e8f5;
}

@media(max-width:600px) {
  .replay-pair {
    gap: 8px;
  }

  .replay-pair ol {
    gap: 4px;
  }

  .replay-pair li {
    padding: 3px 5px;
    font-size: 13px;
  }

  .replay-buttons,.inline-chapters {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .replay-buttons button,.inline-chapters button {
    min-height: 44px;
    white-space: normal;
  }
}

.replay-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.replay-choices[hidden] {
  display: none;
}

.replay-choices button {
  min-height: 44px;
  border: 1px solid #ffffff40;
  border-radius: 7px;
  padding: 5px 9px;
  background: #ffffff12;
  color: #f5f7ff;
  font: inherit;
  cursor: pointer;
}

.replay-choices button[aria-pressed="true"] {
  background: #c3e8f5;
  color: #15243e;
}

.replay-pair ol[hidden] {
  display: none;
}

.memory-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  background: #edf2fa;
  border-radius: 18px;
  padding: clamp(16px,3vw,30px);
  margin-block: 18px 32px;
  scroll-margin-top: 90px;
}

.memory-snapshot[hidden] {
  display: none;
}

.memory-snapshot h2 {
  font-size: clamp(24px,3vw,36px);
  letter-spacing: -.035em;
  margin: 0;
}

.memory-snapshot label,.memory-snapshot input {
  display: block;
  width: 100%;
}

.memory-snapshot label {
  font-weight: 650;
}

.memory-snapshot output {
  display: block;
  font-weight: 400;
}

.memory-snapshot img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #19243a;
  border-radius: 10px;
}

.snapshot-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.snapshot-views button {
  min-height: 44px;
  border: 1px solid #bbc9dc;
  border-radius: 8px;
  padding: 7px 10px;
  background: white;
  color: #253957;
  cursor: pointer;
}

@media(max-width:680px) {
  .memory-snapshot {
    grid-template-columns: 1fr;
  }
}

.snapshot-strip {
  grid-column: 1/-1;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 3px 10px;
  scroll-snap-type: x proximity;
}

.snapshot-strip button {
  flex: 0 0 86px;
  padding: 2px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #dce5f2;
  cursor: pointer;
  scroll-snap-align: nearest;
}

.snapshot-strip button[aria-pressed="true"] {
  border-color: #65498e;
}

.snapshot-strip img {
  display: block;
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.paper-explainer {
  max-width: 49ch;
  margin: 10px 0 0;
  color: #3d4c67;
  font-size: clamp(15px,1.4vw,17px);
  line-height: 1.45;
}

.mechanism-evidence-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 650;
  color: #374e81;
  text-underline-offset: 4px;
}

#evidence-lab {
  scroll-margin-top: 88px;
}

.compare-step {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.compare-step button {
  min-height: 44px;
  background: white;
  color: #253957;
  border: 1px solid #bac9de;
}

#compare-time {
  min-width: 6ch;
  text-align: right;
}

.story-rebuilt {
  padding-block: clamp(46px,7vw,106px);
  scroll-margin-top: 72px;
}

.story-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  column-gap: 42px;
  align-items: end;
}

.story-heading .eyebrow {
  grid-column: 1/-1;
  margin: 0 0 16px;
}

.story-heading h2 {
  margin: 0;
  font-size: clamp(34px,4.4vw,63px);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.story-heading>p:last-child {
  max-width: 40ch;
  color: #46536b;
  font-size: clamp(16px,1.5vw,20px);
  line-height: 1.55;
}

.story-rebuilt .history-replay {
  background: linear-gradient(125deg,#edf7f7,#f7eef8);
  color: #27263b;
  border: 1px solid #e0ddea;
  box-shadow: 0 16px 45px #382b5710;
}

.story-rebuilt .replay-pair article {
  background: #fff;
  border: 1px solid #deddea;
  padding: 12px;
  gap: 10px;
  align-content: start;
}

.story-rebuilt .replay-pair article>span {
  color: #26626d;
  font-weight: 750;
}

.story-rebuilt .replay-pair article+article>span {
  color: #795280;
}

.story-rebuilt .replay-pair img {
  aspect-ratio: 1.72;
  object-fit: cover;
  background: #eff1ee;
}

.story-rebuilt .replay-buttons button,.story-rebuilt .replay-choices button {
  background: #fff;
  border-color: #cfcbdf;
  color: #2a2b43;
}

.story-rebuilt .replay-buttons button[aria-pressed=true],.story-rebuilt .replay-choices button[aria-pressed=true] {
  background: #3e335d;
  color: #fff;
}

.story-rebuilt .replay-pair li {
  background: #efe9f5;
}

.story-rebuilt .replay-pair li[aria-current] {
  background: #c7e7e9;
}

.story-rebuilt .replay-controls input {
  accent-color: #705590;
}

.story-source {
  font-size: 13px;
  color: #58637b;
  margin: 12px 3px 0;
}

#case-comparison .case-card video {
  aspect-ratio: 16/9;
  object-fit: cover;
}

@media(max-width:680px) {
  .story-heading {
    display: block;
  }

  .story-rebuilt .history-replay {
    margin-top: 20px;
  }

  .story-rebuilt .replay-pair article {
    padding: 7px;
  }

  .story-rebuilt .replay-pair strong {
    font-size: 14px;
  }
}

/* Mild spatial sharpening for source-resolution workspace footage. */
#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] video {
  filter: url(#workspace-detail) brightness(1.05) contrast(1.045);
}

/* Match the player chrome to the light cyan/lavender paper palette. */
#project-film .hero-cinema {
  background: #f3eff8;
  border-color: #dfd7e9;
}

#project-film .cinema-top {
  background: #f2eef7;
  color: #2e2840;
  border-bottom: 1px solid #e2d9eb;
}

#project-film .cinema-label {
  color: #2e2840;
}

#project-film .soundless-toggle {
  color: #37304c;
  background: #fff;
  border-color: #d8cce5;
}

#project-film .inline-chapters {
  background: #f2edf7;
  border-top: 1px solid #e2d9eb;
}

#project-film .inline-chapters button {
  color: #383048;
}

#project-film .inline-chapters span {
  color: #625379;
}

#project-film .inline-chapters button:hover,#project-film .inline-chapters button[aria-current=true] {
  background: #e5d9f0;
  border-color: #d4c3e4;
  color: #2b203d;
}

#story .story-counting {
  margin-top: 32px;
  scroll-margin-top: 78px;
}

#story .story-counting .section-head {
  margin-bottom: 12px;
  align-items: end;
}

#story h3 {
  letter-spacing: -.035em;
}

#story .story-counting h3,#story .story-reveal-heading h3 {
  font-size: clamp(23px,3vw,38px);
  line-height: 1.1;
  margin: 0;
}

#story .case-card h3 {
  font-size: clamp(16px,2vw,24px);
}

#story .case-card {
  background: #fff;
  border: 1px solid #e0d9e9;
  box-shadow: 0 8px 22px #45335a10;
}

#story .story-reveal-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 30px 0 12px;
}

#story .story-reveal-heading p {
  margin: 0;
  max-width: 48ch;
  color: #46536b;
}

#story .replay-pair img {
  object-fit: contain;
  aspect-ratio: 16/10;
  background: #f0f2f6;
}

#story .replay-pair article {
  min-width: 0;
}

#story .replay-controls {
  padding: 8px 2px 14px;
}

#story .history-replay {
  margin-top: 0;
  background: linear-gradient(130deg,#edf7f7,#f4edf8);
}

#case-comparison .case-card video {
  filter: url(#workspace-detail) brightness(1.035) contrast(1.04);
}

@media(max-width:680px) {
  #story .story-reveal-heading {
    display: grid;
    gap: 7px;
  }
}

#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] video {
  filter: url(#workspace-detail) brightness(1.05) contrast(1.055) saturate(1.035);
}

/* Project cover, benchmark navigation, and video galleries */
:root {
  --project-ink:#202c36;
  --project-green:#235d51;
  --project-violet:#654576;
  --project-line:#dce5df;
}

[hidden] {
  display: none !important;
}

body {
  color: var(--project-ink);
  background: #fafbf8;
}

.project-title {
  padding-block: clamp(42px,6vw,82px) 27px;
  text-align: center;
}

.project-mark {
  width: clamp(145px,19vw,268px);
  height: auto;
}

.project-title h1 {
  font-size: clamp(34px,5vw,77px);
  line-height: 1.02;
  letter-spacing: -.064em;
  font-weight: 780;
  max-width: 1180px;
  margin: 16px auto 24px;
}

.project-title h1 span {
  color: #375f5d;
}

.project-title h1 small {
  display: inline-block;
  margin-top: .30em;
  font-size: .55em;
  letter-spacing: -.035em;
  color: #3e4d52;
}

.project-title .authors {
  max-width: 1120px;
  margin-inline: auto;
  color: #243741;
}

.release-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 0;
  margin: 22px 0 0;
}

.release-links li {
  border: 1px solid #d8e1db;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

.release-links small {
  margin-left: 6px;
  color: #53645b;
  font-weight: 500;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0,2.05fr) minmax(0,1fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 8px;
}

.hero-main #project-film {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.hero-main .hero-cinema {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-main #project-film .hero-cinema {
  border-color: #dae4de;
  background: #f5f8f4;
}

.hero-main #project-film .cinema-top,.hero-main #project-film .inline-chapters {
  background: #eff4ef;
  border-color: #dce6de;
  color: #254139;
}

.hero-main #project-film .cinema-label {
  color: #254139;
  margin-right: auto;
}

.hero-main #project-film .soundless-toggle {
  color: #254139;
  border-color: #d5dfd6;
}

.hero-main #project-film .inline-chapters button[aria-current=true] {
  background: #d8e9df;
  border-color: #b9d4c5;
  color: #163e33;
}

.hero-main .cinema-top {
  gap: 6px;
  flex-wrap: wrap;
}

.hero-main .hero-video-wrap {
  background: #17221f;
}

.hero-main .hero-video-wrap video {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
  object-fit: contain;
}

.hero-main .hero-evidence {
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: stretch;
  border: 1px solid #dbe6df;
  background: #f4f8f3;
  border-radius: 18px;
  min-width: 0;
}

.hero-main .hero-evidence .eyebrow {
  align-self: end;
  margin: 1px 8px;
  font-size: 10px;
  color: #365950;
}

.hero-main .impact-row {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  box-shadow: none;
}

.hero-main .impact-bottom {
  align-items: center;
}

.hero-main .impact-bottom strong {
  font-size: clamp(30px,4vw,67px);
  line-height: .95;
}

.hero-main .impact-explore {
  display: none;
}

.project-contributions {
  padding-block: clamp(50px,6vw,90px) 15px;
}

.project-contributions h2 {
  font-size: clamp(29px,4.5vw,53px);
  letter-spacing: -.05em;
  margin: 0 0 20px;
}

.project-contributions>div {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.project-contributions a {
  display: block;
  padding: 22px;
  border: 1px solid #dbe6df;
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  background: #edf5ef;
  transition: transform .24s,box-shadow .24s;
}

.project-contributions a:nth-child(2) {
  background: #f2edf6;
  border-color: #e3dae9;
}

.project-contributions a:nth-child(3) {
  background: #f7efe4;
  border-color: #eadfd0;
}

.project-contributions a:is(:hover,:focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px #24363115;
}

.project-contributions a span {
  font-size: 13px;
  font-weight: 750;
  color: #405b4e;
}

.project-contributions h3 {
  margin: 9px 0;
  font-size: clamp(20px,2.3vw,30px);
  line-height: 1.12;
}

.project-contributions p {
  margin: 0;
  color: #415251;
  font-size: 15px;
  line-height: 1.55;
}

.trace-control,.method-mode button,#show-episode-overview {
  border: 1px solid #cadbd1;
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
  color: #23463d;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.trace-control[aria-pressed=true],.method-mode button[aria-pressed=true],#show-episode-overview[aria-pressed=true] {
  background: #235d51;
  color: white;
}

.trace-active .cue-filmstrip img:not(.decisive),.trace-active .supervision-tokens i:not(.history-required) {
  opacity: .2;
}

.trace-active .decisive,.trace-active .history-required {
  outline: 2px solid #326959;
  outline-offset: 2px;
}

.cue-filmstrip img,.supervision-tokens i {
  transition: opacity .36s,outline-color .36s;
}

.method-mode {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

#method-overview {
  margin-top: 0;
}

#method-overview>p {
  margin: .75rem 1rem;
  color: #415550;
}

#method-overview img {
  display: block;
  width: 100%;
  height: auto;
}

.rollout-split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(170px,20%);
  gap: 18px;
  align-items: start;
}

.task-sidebar {
  padding: 14px;
  border: 1px solid #dce6de;
  background: #f2f6f1;
  border-radius: 14px;
}

.task-sidebar h3 {
  font-size: 16px;
  margin: 0 0 11px;
}

.task-sidebar .task-strip {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 6px;
  margin: 8px 0 0;
  overflow: visible;
}

.task-sidebar .task-strip button,#show-episode-overview {
  width: 100%;
  text-align: left;
  white-space: normal;
}

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

.episode-grid article {
  min-width: 0;
  border: 1px solid #d8e4dc;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: box-shadow .2s;
}

.episode-grid article:focus-within,.episode-grid article:hover {
  box-shadow: 0 5px 20px #203c3020;
}

.episode-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #dde4df;
}

.episode-open {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 0;
  background: white;
  color: #24433b;
  font: inherit;
  padding: 10px;
  cursor: pointer;
  min-height: 44px;
}

.episode-open strong {
  font-size: 13px;
  line-height: 1.3;
}

.episode-open small {
  font-size: 11px;
  color: #4e675a;
}

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

  .hero-main .impact-bottom strong {
    font-size: 32px;
  }

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

@media(max-width:660px) {
  .hero-main,.rollout-split,.project-contributions>div {
    grid-template-columns: minmax(0,1fr);
  }

  .task-sidebar {
    grid-row: 1;
  }

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

  .project-title h1 {
    margin-bottom: 16px;
  }

  .hero-main .hero-evidence {
    gap: 7px;
  }

  .nav-links {
    max-width: 100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  .project-contributions a,.cue-filmstrip img,.supervision-tokens i {
    transition: none;
  }
}

.project-title .authors p {
  font-size: clamp(14px,1.55vw,20px);
  line-height: 1.55;
  margin: 0;
}

.project-title .authors>div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
  font-size: 14px;
}

#episode-overview:not([hidden])~.gallery-footer {
  display: none;
}

#history-autoplay {
  margin-bottom: 14px;
}

.motivation-figure,.ablation-figure {
  margin: 25px 0 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--project-line);
  border-radius: 14px;
}

.motivation-figure img,.ablation-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.motivation-figure figcaption,.ablation-figure summary {
  color: #416259;
  font-size: 14px;
  margin: 9px 0 0;
}

.ablation-figure summary {
  cursor: pointer;
  margin: 0;
  font-weight: 700;
}

.ablation-figure img {
  margin-top: 14px;
}

@media(max-width:660px) {
  .hero-main .inline-chapters {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .hero-main .inline-chapters button {
    text-align: left;
  }
}

.project-title {
  padding-top: clamp(28px,4vw,55px);
  padding-bottom: 18px;
}

.project-mark {
  display: block;
  margin-inline: auto;
  width: clamp(132px,15vw,213px);
}

.project-title h1 {
  font-size: clamp(33px,4.55vw,67px);
  letter-spacing: -.05em;
  text-wrap: balance;
  margin: 12px auto 15px;
}

.project-title h1 span {
  white-space: normal;
}

.project-title .authors {
  padding: 4px 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.release-links {
  margin-top: 16px;
}

.hero-main .hero-video-wrap {
  flex: 1;
  display: grid;
  align-items: center;
}

.hero-main .inline-chapters {
  margin-top: auto;
}

@media(max-width:660px) {
  .hero-main .hero-cinema {
    height: auto;
  }

  .project-title h1 {
    font-size: clamp(29px,7.8vw,45px);
  }
}

#film-dialog[open] {
  box-sizing: border-box;
  width: min(96vw,1600px);
  max-width: none;
  max-height: 96vh;
}

#film-dialog #full-film {
  display: block;
  width: 100%;
  max-height: calc(96vh - 170px);
  object-fit: contain;
}

#film-dialog[open] {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}

#film-dialog #full-film {
  max-height: calc(100dvh - 180px);
}

.motivation-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.motivation-jumps a {
  color: #275749;
  border: 1px solid #cddfd5;
  background: #f0f5ef;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
}

.motivation-jumps a:is(:hover,:focus-visible) {
  background: #d9ebe0;
}

#requirements,#history-replay {
  scroll-margin-top: 90px;
}

.window-explorer {
  margin-block: 24px;
  padding: clamp(17px,3vw,32px);
  background: #f5faf5;
  border: 1px solid #d8e6dd;
  border-radius: 18px;
}

.window-explorer header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.window-explorer h3 {
  margin: 0;
  font-size: clamp(23px,3.2vw,35px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.window-explorer p {
  margin: .5rem 0;
  color: #405d52;
}

.window-explorer output {
  flex: none;
  background: #d6e9dc;
  border: 1px solid #c5dcce;
  color: #224f42;
  border-radius: 9px;
  padding: 4px 12px;
  font-size: clamp(21px,3vw,29px);
  font-weight: 750;
}

.window-explorer label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #385a4e;
}

.window-explorer input {
  width: 100%;
  accent-color: #397867;
}

.motion-window-ticks {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 5px;
}

.motion-window-ticks button {
  background: #fff;
  border: 1px solid #c9ddd0;
  border-radius: 7px;
  color: #2f5649;
  padding: 5px;
  cursor: pointer;
}

.motion-window-ticks button[aria-pressed=true] {
  background: #235d51;
  color: #fff;
  font-weight: 700;
}

.motion-window-bars {
  display: grid;
  gap: 10px;
  margin: 19px 0;
}

.motion-window-row {
  display: grid;
  grid-template-columns: minmax(120px,22%) minmax(0,1fr) 47px;
  gap: 10px;
  align-items: center;
  color: #254c40;
  font-size: 14px;
}

.motion-window-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.motion-window-track {
  height: 9px;
  background: #dde9de;
  border-radius: 999px;
  overflow: hidden;
}

.motion-window-track i {
  display: block;
  height: 100%;
  background: #639889;
  border-radius: inherit;
  transition: width .45s cubic-bezier(.22,.8,.25,1);
}

.motion-window-row:first-child .motion-window-track i {
  background: #2f7060;
}

.window-explorer .window-source {
  font-size: 12px;
}

@media(max-width:460px) {
  .motion-window-row {
    grid-template-columns: minmax(96px,40%) minmax(0,1fr) 34px;
    font-size: 12px;
  }

  .window-explorer header {
    align-items: center;
  }
}

@media(prefers-reduced-motion:reduce) {
  .motion-window-track i {
    transition: none;
  }
}

/* Color themes, reader controls, and motion preferences */
:root {
  --page-bg:#fbfcfa;
  --panel:#fff;
  --panel-alt:#f4f7f5;
  --line:#dce6e1;
  --theme-ink:#203133;
  --theme-muted:#526665;
  --theme-accent:#276f67;
  --bench-accent:#236f64;
  --bench-strong:#195b53;
  --bench-soft:#e9f4ee;
  --bench-line:#cbe1d8;
  --bench-track:#e5ede9;
  --bench-bar:#afc3bc;
  --bench-comparator:#af8059;
}

#theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--theme-ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

#theme-toggle:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

#theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
}

:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 4px;
}

@media(max-width:600px) {
  #theme-toggle {
    width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
  }

  #theme-toggle span {
    display: none;
  }

  .nav .nav-links {
    gap: 10px;
  }
}

#story .story-heading {
  padding-bottom: 0;
}

#story .story-counting {
  margin-top: 22px;
}

#story .story-counting .section-head {
  margin-bottom: 12px;
}

#story .story-counting .section-head h3 {
  font-size: clamp(22px,3vw,38px);
  line-height: 1.1;
}

#story .case-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: none;
}

#story .case-card header {
  background: var(--panel-alt);
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  flex-wrap: wrap;
}

#story .case-card h3, #story .case-card header div>span {
  color: var(--theme-ink);
}

#story .case-card header div>span {
  color: var(--theme-muted);
}

#story .case-card .case-status {
  max-width: none;
  margin: 0;
  white-space: normal;
  background: #f7eee8;
  color: #794623;
  padding: 5px 9px;
  border-radius: 6px;
}

#story .case-card.ours .case-status {
  background: #e8f4ec;
  color: #215e4d;
}

#case-comparison .case-card video {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: contain;
  filter: none;
  background: #202829;
}

#story .compare-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--theme-muted);
  border-radius: 11px;
}

#story #compare-play {
  min-width: 145px;
  background: var(--theme-accent);
  color: var(--play-ink,#fff);
  border-color: transparent;
}

#story #compare-clock {
  accent-color: var(--theme-accent);
  width: 100%;
  min-width: 0;
}

#story #compare-time {
  font-variant-numeric: tabular-nums;
  color: var(--theme-muted);
}

@media(max-width:600px) {
  #story .compare-controls {
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 7px;
  }

  #story .compare-clock-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  #story #compare-play {
    min-width: 0;
    padding-inline: 9px;
  }
}

#results[data-benchmark="rmbench"] {
  --bench-accent:#7050a0;
  --bench-strong:#563783;
  --bench-soft:#f0ebf9;
  --bench-line:#e2d6f0;
  --bench-track:#ebe6f0;
  --bench-bar:#beb4ce;
}

#results[data-benchmark="real"] {
  --bench-accent:#965a37;
  --bench-strong:#7d4425;
  --bench-soft:#fbefe5;
  --bench-line:#ebd7c7;
  --bench-track:#eee6df;
  --bench-bar:#c9baae;
  --bench-comparator:#747e9c;
}

#results {
  background: var(--page-bg);
  border-color: var(--line);
}

#results .section-head>p {
  color: var(--theme-muted);
}

#results .leaderboard-tabs {
  gap: 8px;
}

#results .leaderboard-tabs button {
  background: var(--panel);
  color: var(--theme-muted);
  border: 1px solid var(--line);
  border-radius: 10px;
}

#results .leaderboard-tabs button b {
  color: var(--theme-accent);
}

#results .leaderboard-tabs button[aria-selected="true"] {
  background: var(--bench-soft);
  color: var(--bench-strong);
  border-color: var(--bench-accent);
  box-shadow: inset 0 -2px var(--bench-accent);
}

#results .leaderboard-tabs button[aria-selected="true"] b {
  color: var(--bench-strong);
}

#results .leaderboard-stage {
  align-items: stretch;
  gap: 14px;
}

#results .rank-spotlight, #results .rank-comparison, #results .task-breakdown {
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 17px;
}

#results .rank-spotlight {
  background: var(--bench-soft);
  border-color: var(--bench-line);
  color: var(--bench-strong);
}

#results .rank-spotlight :is(.eyebrow,strong,span,.rank-gain,p,b) {
  color: inherit;
}

#results .rank-spotlight>strong {
  letter-spacing: -.085em;
  line-height: .98;
}

#results .rank-gain {
  margin-top: 24px;
  border-color: var(--bench-line);
}

#results .rank-reference {
  display: grid;
  gap: 11px;
  margin: 15px 0 20px;
  width: 100%;
}

#results .rank-reference>div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

#results .rank-reference b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

#results .rank-reference i {
  grid-column: 1/-1;
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 8px;
  background: var(--bench-track);
  overflow: hidden;
}

#results .rank-reference i::before {
  display: block;
  content: "";
  height: 100%;
  width: var(--value);
  background: var(--bench-comparator);
  border-radius: 8px;
}

#results .rank-reference>div:last-child i::before {
  background: var(--bench-accent);
}

#results .rank-detail {
  background: var(--panel);
  border-color: var(--bench-line);
  color: var(--bench-strong);
}

#results .rank-comparison, #results .task-breakdown {
  background: var(--panel);
  color: var(--theme-ink);
}

#results .rank-column-head, #results .rank-note, #results .rank-method span {
  color: var(--theme-muted);
}

#results .rank-list li {
  background: var(--panel);
  border-color: var(--line);
}

#results .rank-list li.is-ours {
  background: var(--bench-soft);
  border-color: var(--bench-line);
}

#results .rank-list li.is-reference .rank-track i {
  background: var(--bench-comparator);
}

#results .rank-list .rank-track {
  background: var(--bench-track);
}

#results .rank-list .rank-track i {
  background: var(--bench-bar);
}

#results .rank-list .is-ours .rank-track i {
  background: var(--bench-accent);
}

#results .rank-list :is(.rank-position,.rank-method strong,.rank-value) {
  color: var(--theme-ink);
}

#results .rank-list .is-ours :is(.rank-position,.rank-method strong,.rank-value) {
  color: var(--bench-strong);
}

#results .rank-value {
  font-variant-numeric: tabular-nums;
}

#results .result-switch button[aria-pressed="true"] {
  background: var(--bench-strong);
  color: var(--play-ink,#fff);
}

#results .leaderboard-stage {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: var(--theme-ink);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg:#141c21;
  --panel:#1d282e;
  --panel-alt:#233139;
  --line:#3a4b52;
  --theme-ink:#ecf2ef;
  --theme-muted:#b3c5c1;
  --theme-accent:#8bd1bd;
  --play-ink:#142326;
  --project-ink:var(--theme-ink);
  --project-green:var(--theme-accent);
  --project-violet:#d2bbef;
  --project-line:var(--line);
  --v7-ink:var(--theme-ink);
  --s2-ink:var(--theme-ink);
  --bench-accent:#86cbb6;
  --bench-strong:#b5efda;
  --bench-soft:#213a36;
  --bench-line:#42665a;
  --bench-track:#304b46;
  --bench-bar:#718f8a;
  --bench-comparator:#d5a47d;
}

[data-theme="dark"] #results[data-benchmark="rmbench"] {
  --bench-accent:#c5ace7;
  --bench-strong:#e6d7f8;
  --bench-soft:#362b43;
  --bench-line:#615270;
  --bench-track:#4b3f55;
  --bench-bar:#8f819d;
}

[data-theme="dark"] #results[data-benchmark="real"] {
  --bench-accent:#e7ad89;
  --bench-strong:#ffdbc4;
  --bench-soft:#3e302a;
  --bench-line:#735849;
  --bench-track:#523e35;
  --bench-bar:#9f8578;
  --bench-comparator:#aab6d5;
}

[data-theme="dark"] body,
[data-theme="dark"] :is(.story-rebuilt,.rollout-section,.method-section,.platform-section) {
  background: var(--page-bg);
  color: var(--theme-ink);
}

[data-theme="dark"] .nav {
  background: #182329f4;
  border-color: var(--line);
}

[data-theme="dark"] .nav :is(.nav-links a,.nav-film) {
  color: var(--theme-ink);
}

[data-theme="dark"] .nav-film {
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] .project-title h1 span,
[data-theme="dark"] :is(.eyebrow,.mechanism-evidence-link,.paper-explainer) {
  color: var(--theme-accent);
}

[data-theme="dark"] .gradient-text {
  background-image: linear-gradient(105deg,#96d9ce,#ceb7f0 67%,#e2b9d7);
}

[data-theme="dark"] .project-title :is(.authors,h1 small),
[data-theme="dark"] :is(.section-head>p,.story-heading>p:last-child,.quiet,.release-links small,footer span) {
  color: var(--theme-muted);
}

[data-theme="dark"] :is(.release-links li,.motivation-jumps a,.platform-specs span,.episode-open,.episode-grid article,.task-sidebar,.task-strip button,.suite-switch button,.window-explorer,.motion-window-ticks button,.method-mode button,.trace-control,#show-episode-overview,.method-theater,.architecture-card,.mechanism-scene,.mechanism-tabs button,.method-overview,.memory-snapshot,.snapshot-views button,.gallery-panel,.main-recording,.recording-caption,.config-details,.gallery-footer,.collection-wall,.lab-panel,.lab-tabs button,.lab-replay,.ablation-figure,.motivation-figure,.ood-guide article) {
  background: var(--panel);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] :is(.hero-main .hero-evidence,.dual-card,.requirements article,.project-contributions a,.project-contributions a:nth-child(2),.project-contributions a:nth-child(3)) {
  background: var(--panel-alt);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] :is(.project-contributions a span,.project-contributions p,.release-links small,.timeline-caption,.sparse-timeline span,.requirements p,.episode-open small,.task-sidebar p,.recording-note,.recording-caption span,.config-help,.window-explorer p,.window-explorer label,.motion-window-row,.ablation-figure summary,.motivation-figure figcaption,.ood-guide article p,.lab-copy p) {
  color: var(--theme-muted);
}

[data-theme="dark"] .hero-main #project-film :is(.hero-cinema,.cinema-top,.inline-chapters,.soundless-toggle) {
  background: var(--panel);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] .hero-main #project-film :is(.cinema-label,.inline-chapters button,.inline-chapters span) {
  color: var(--theme-ink);
}

[data-theme="dark"] .hero-main #project-film .inline-chapters button[aria-current=true] {
  background: #35514a;
  border-color: #527269;
  color: var(--theme-ink);
}

[data-theme="dark"] .hero-main .hero-evidence .eyebrow {
  color: var(--theme-muted);
}

[data-theme="dark"] .impact-row.cyan {
  --impact:#a3dfeb;
  --impact-tint:#273944 ;
}

[data-theme="dark"] .impact-row.violet {
  --impact:#d5c3f5;
  --impact-tint:#362e47 ;
}

[data-theme="dark"] .impact-row.rose {
  --impact:#edc1e0;
  --impact-tint:#402e3c ;
}

[data-theme="dark"] .hero-main .impact-track {
  background: #ffffff24;
}

[data-theme="dark"] .hero-main .impact-top>span, [data-theme="dark"] .hero-main .impact-bottom small {
  color: var(--theme-ink);
}

[data-theme="dark"] #story .case-card.baseline .case-status {
  background: #423229;
  color: #ffccab;
}

[data-theme="dark"] #story .case-card.ours .case-status {
  background: #27443a;
  color: #b0e9d3;
}

[data-theme="dark"] :is(.trace-control,.method-mode button,#show-episode-overview,.result-switch button,.task-strip button,.snapshot-views button,.motion-window-ticks button)[aria-pressed="true"],
[data-theme="dark"] :is(.mechanism-tabs,.lab-tabs,.gallery-tabs,.rollout-tabs,.suite-tabs) button[aria-selected="true"] {
  background: #34564e;
  color: #d4f3e6;
  border-color: #6c9c90;
}

[data-theme="dark"] #method-overview>p,
[data-theme="dark"] :is(.mechanism-copy>p,.mechanism-controls>span,.method-overview h3,.recording-setting,.recording-note) {
  color: var(--theme-muted);
}

[data-theme="dark"] .mechanism-scene .phase-caption,
[data-theme="dark"] :is(.mechanism-controls button,.mechanism-facts span,.mechanism-facts div,.method-gallery,.rank-detail) {
  background: var(--panel-alt);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] .phase-caption :is(b,span) {
  color: var(--theme-ink);
}

[data-theme="dark"] :is(.mechanism-animation .method-theater,.lab-graphic) {
  background: var(--panel-alt);
  border-color: var(--line);
}

[data-theme="dark"] .window-explorer output {
  background: #34564e;
  color: #d4f3e6;
  border-color: #6c9c90;
}

[data-theme="dark"] .motion-window-track {
  background: var(--line);
}

[data-theme="dark"] .motion-window-row:first-child .motion-window-track i {
  background: #8bd1bd;
}

[data-theme="dark"] :is(#results th,#results td) {
  color: var(--theme-ink);
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] #results :is(.text-button,select,.result-switch button:not([aria-pressed="true"])) {
  background: var(--panel-alt);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] :is(.image-dialog,.film-dialog) {
  background: var(--page-bg);
  color: var(--theme-ink);
}

#results .leaderboard-stage {
  gap: 14px !important;
  grid-template-columns: minmax(245px,.31fr) minmax(0,1fr);
}

#results .rank-spotlight {
  padding: 24px;
}

#results .rank-spotlight .eyebrow {
  margin: 0 0 15px;
}

#results .rank-spotlight>span {
  margin: 7px 0 0;
}

#results .rank-spotlight>p {
  margin: 7px 0 0;
}

#results .rank-gain small {
  display: inline;
  margin-inline-start: 4px;
  font-size: 12px;
}

#results .rank-detail {
  margin-top: 8px;
  border: 1px solid var(--bench-line);
}

#results .rank-list li.is-ours {
  outline: none;
  box-shadow: none;
}

#results .leaderboard-tabs button:not([aria-selected="true"]) {
  background: var(--panel);
  color: var(--theme-muted);
  box-shadow: none;
}

#results .leaderboard-tabs button[aria-selected="true"] {
  background: var(--bench-soft);
  color: var(--bench-strong);
}

#results .rank-comparison {
  align-self: stretch;
}

@media(max-width:760px) {
  #results .leaderboard-stage {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  #results .rank-spotlight {
    padding: 18px;
  }

  #results .rank-reference {
    grid-column: 1/-1;
    margin: 10px 0 0;
  }

  #results .rank-spotlight>p {
    margin: 0;
  }

  #results .rank-gain {
    align-self: end;
    margin-top: 0;
  }
}

@media(max-width:710px) {
  #story .compare-controls label {
    grid-column: auto;
  }

  #story .compare-controls input {
    grid-column: auto;
  }
}

[data-theme="dark"] .hero-main .impact-row {
  background: linear-gradient(120deg,var(--panel),var(--impact-tint));
  border-color: var(--line);
  border-left-color: var(--impact);
}

[data-theme="dark"] .hero-main .impact-bottom :is(span,label) {
  color: var(--theme-muted);
}

[data-theme="dark"] #method-overview,
[data-theme="dark"] #gallery-panel :is(.main-recording,.recording-top,.recording-caption,.config-details),
[data-theme="dark"] :is(.lab-protocol,.lab-graphic,.motion-graph,.config-grid button,.gallery-tabs button,.rollout-tabs button) {
  background: var(--panel);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] #requirements :is(article,div) {
  background: var(--panel-alt);
  border-color: var(--line);
  color: var(--theme-ink);
}

[data-theme="dark"] #requirements a {
  color: var(--theme-accent);
}

[data-theme="dark"] .closing {
  background: var(--panel-alt);
  border-color: var(--line);
}

@keyframes section-entrance {
  from {
    opacity: .38;
    transform: translateY(20px);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .section-entered > :is(.section-head,.story-heading,header,h2),
  .section-entered:is(#requirements) > article {
    animation: section-entrance .58s cubic-bezier(.22,.75,.24,1) both;
  }

  .section-entered > :is(.motivation-jumps,.compare-controls,.case-comparison,.leaderboard-tabs,.method-mode,.suite-tabs),
  .section-entered > .section-wrap > .section-head {
    animation: section-entrance .58s .06s cubic-bezier(.22,.75,.24,1) both;
  }

  .section-entered > :is(.dual-grid,.requirements-grid,.rollout-split,.platform-image),
  .section-entered > .section-wrap > .leaderboard-tabs {
    animation: section-entrance .62s .11s cubic-bezier(.22,.75,.24,1) both;
  }
}

[data-theme="dark"] .project-title .paper-authors {
  background: transparent;
  border-color: transparent !important;
}

[data-theme="dark"] .project-title .paper-authors p {
  color: var(--theme-ink) !important;
}

[data-theme="dark"] .project-title .paper-authors>div span {
  color: var(--theme-muted) !important;
}

[data-theme="dark"] .project-title .paper-authors sup {
  color: #d2bbef;
}

[data-theme="dark"] .end-section {
  background: var(--panel-alt);
  color: var(--theme-ink);
  border-color: var(--line);
}

[data-theme="dark"] .end-section h2 {
  color: var(--theme-ink);
}

[data-theme="dark"] .end-section p {
  color: var(--theme-muted);
}

[data-theme="dark"] .end-section .button.primary {
  background: #9dd6c4;
  color: #142d26;
  border-color: #9dd6c4;
}

[data-theme="dark"] .end-section .button.secondary {
  background: #253a3a;
  color: #dbf3ea;
  border-color: #5c8280;
}

[data-theme="dark"] footer {
  border-color: var(--line);
}

[data-theme="dark"] .dual-card :is(.timeline-caption,.claim-note,p),
[data-theme="dark"] #requirements :is(h3,p),
[data-theme="dark"] .lab-tabs button>span,
[data-theme="dark"] .benchmark-tabs button small {
  color: var(--theme-ink);
}

[data-theme="dark"] #requirements .chain-solution {
  background: #2d4b46;
  color: #c5efdf;
}

[data-theme="dark"] #requirements article:nth-of-type(2) .chain-solution {
  background: #443653;
  color: #ecdcfa;
}

[data-theme="dark"] #requirements article:nth-of-type(3) .chain-solution {
  background: #4e3936;
  color: #ffdfc5;
}

[data-theme="dark"] :is(#expand-architecture,.collection-wall summary,#wall-toggle,.benchmark-tabs button) {
  color: var(--theme-ink);
  background: var(--panel-alt);
  border-color: var(--line);
}

[data-theme="dark"] .benchmark-tabs button[aria-selected="true"] {
  color: #d4f3e6;
  background: #34564e;
  border-color: #6c9c90;
}

[data-theme="dark"] .dual-card .sparse-timeline span {
  color: var(--theme-muted);
}

/* Keep captions legible in the reserved bottom band in both players. */
:is(#hero-preview,#full-film)::cue {
  font-size: 3.6vmin;
  color: #fff;
  background: rgba(23,34,31,.88);
}

#hero-preview::cue {
  font-size: clamp(11px,1.25vw,19px);
}

.film-caption-rail {
  display: grid;
  place-items: center;
  min-height: 2.05em;
  padding: .2em 1em;
  background: #edf2eb;
  color: #223b32;
  font-size: clamp(12px,1.35vw,17px);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

#film-dialog .film-caption-rail {
  font-size: clamp(15px,2vw,23px);
  border-radius: 0 0 8px 8px;
}

#film-dialog #full-film {
  max-height: calc(100dvh - 215px);
}

.film-caption-toggle {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--theme-ink);
  padding: 6px 9px;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}

.film-caption-toggle[aria-pressed="true"] {
  background: var(--panel-alt);
  color: var(--theme-accent);
}

#film-dialog .film-caption-toggle {
  margin-left: auto;
  margin-right: 10px;
}

/* Keep the film and benchmark summaries in the same first-screen composition. */
.project-title {
  padding-top: clamp(22px,3vw,43px);
}

.project-title .paper-authors {
  padding-block: 4px;
}

.project-title .release-links {
  margin-top: clamp(10px,1.8vw,22px);
}

.hero-main .hero-evidence {
  grid-template-rows: auto repeat(3,minmax(0,1fr));
  align-content: normal;
}

.hero-main .hero-evidence .eyebrow {
  align-self: start;
  margin: 5px 4px 2px;
}

.hero-main .impact-row {
  display: grid;
  align-content: center;
  gap: 5px;
}

#project-film .inline-chapters button {
  font-size: .79rem;
  padding: 6px 8px;
}

#project-film .inline-chapters span {
  font-size: .72rem;
}

.film-caption-rail {
  min-height: 3.15em;
  padding: .3em .8em;
  text-wrap: balance;
}

[data-theme="dark"] .film-caption-rail {
  background: var(--panel-alt);
  color: var(--theme-ink);
}

.episode-grid article {
  background-image: var(--episode-poster);
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.episode-grid article:not(.media-ready) video {
  visibility: hidden;
}

.episode-grid .episode-open {
  background: var(--panel,#fff);
}

@media (max-width:660px) {
  .hero-main .hero-evidence {
    grid-template-rows: auto;
  }

  #project-film .inline-chapters button {
    min-height: 40px;
  }
}

/* Keep the chapter links distinct from the film action on all screen sizes. */
.nav .nav-links {
  gap: clamp(12px,2vw,27px);
  white-space: nowrap;
}

.nav .nav-links a:hover {
  color: var(--theme-accent);
}

.nav .nav-links a::after {
  background: var(--theme-accent);
}

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

  .nav {
    flex-wrap: wrap;
    height: auto;
    gap: 0 10px;
    padding: 6px 16px 0;
  }

  .nav .nav-film {
    margin-left: auto;
  }

  .nav .nav-links {
    order: 2;
    flex: 0 0 100%;
    justify-content: space-between;
    gap: clamp(4px,2vw,12px);
    font-size: clamp(10px,2.9vw,13px);
  }

  .nav .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .nav .nav-links a::after {
    bottom: 5px;
  }
}

/* Category accents stay quiet until a dark-mode tab is selected. */
[data-theme="dark"] :is([data-lab="0"],[data-suite="robotwin"]) {
  --tab-accent:#8ac9bc;
  --tab-wash:#284640 ;
}

[data-theme="dark"] :is([data-lab="1"],[data-suite="rmbench"]) {
  --tab-accent:#c3afea;
  --tab-wash:#39324f ;
}

[data-theme="dark"] :is([data-lab="2"],[data-suite="real"]) {
  --tab-accent:#e7b98a;
  --tab-wash:#48392d ;
}

[data-theme="dark"] :is(.lab-tabs,.benchmark-tabs[aria-label="Recording benchmark"]) {
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] :is(.lab-tabs,.benchmark-tabs[aria-label="Recording benchmark"]) button[role="tab"] {
  border: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 color-mix(in srgb,var(--tab-accent) 45%,transparent);
}

[data-theme="dark"] :is(.lab-tabs,.benchmark-tabs[aria-label="Recording benchmark"]) button[role="tab"]:is(:hover,[aria-selected="true"]) {
  border-color: var(--tab-accent);
  background: var(--tab-wash);
  color: var(--theme-ink);
}

[data-theme="dark"] :is(.lab-tabs,.benchmark-tabs[aria-label="Recording benchmark"]) button[role="tab"][aria-selected="true"] {
  box-shadow: inset 0 -3px 0 var(--tab-accent);
}

[data-theme="dark"] :is(.lab-tabs,.benchmark-tabs[aria-label="Recording benchmark"]) button[role="tab"][aria-selected="true"] span {
  color: var(--tab-accent);
}

[data-theme="dark"] :is(.task-strip button,#show-episode-overview,.collection-wall summary):hover {
  border-color: var(--theme-accent);
  background: var(--panel-alt);
}

[data-theme="dark"] :is(.task-strip button,#show-episode-overview)[aria-pressed="true"] {
  box-shadow: inset 3px 0 0 #8ac9bc;
  border-color: #75a99c;
}
