/* Original RaceLab visual and motion system. Reference principles: Bearplus. */
@view-transition {
  navigation: auto;
}
:root {
  --paper: #fff;
  --ink: #0d0d0d;
  --muted: #848484;
  --line: #e7e7e7;
  --lime: #d9edb7;
  --surface: #f5f5f5;
  --surface-strong: #eee;
  --red: #ee7956;
  --blue: #7789d5;
  --studio-font: "Google Sans Flex", "Segoe UI", Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: var(--studio-font);
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}
button,
input,
textarea {
  font-family: inherit;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 120;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.studio-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 84px;
  padding: 0 4.5%;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(20px);
  border: 0;
}
.brand {
  gap: 8px;
  font-family: var(--studio-font);
  letter-spacing: -1.6px;
  font-size: 31px;
  font-weight: 650;
  view-transition-name: brand;
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand-text {
  position: relative;
}
.brand-sign {
  font-weight: 400;
  font-size: 30px;
  margin-left: 3px;
}
.studio-header nav {
  font-size: 12px;
  gap: 27px;
}
.studio-header nav > a {
  border: 0;
}
.studio-header .connection {
  font-size: 8px;
  letter-spacing: 0;
  color: var(--muted);
}
.studio-header #focus-button {
  font-size: 10px;
  color: var(--muted);
}
.roll-link {
  position: relative;
  padding: 6px 0 !important;
  isolation: isolate;
}
.roll-link:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.roll-link:hover:after,
.roll-link:focus-visible:after {
  transform: scaleX(1);
  transform-origin: left;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  padding: 9px 10px 9px 21px;
  border: 1px solid var(--line);
  border-radius: 100px;
  min-height: 45px;
  font-size: 12px;
  line-height: 1.2;
  background: var(--paper);
  color: var(--ink);
  transition:
    background 0.35s,
    border-color 0.35s,
    color 0.35s;
}
.round-arrow {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 20px;
  line-height: 1;
  background: var(--surface);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s,
    color 0.35s;
}
.pill-link:hover .round-arrow {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
}
.pill-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pill-dark .round-arrow {
  background: #ffffff24;
  color: var(--paper);
}
.pill-dark:hover .round-arrow {
  background: var(--paper);
  color: var(--ink);
}
.theme-toggle {
  border: 0;
  width: 29px;
  height: 29px;
  background: none;
  color: var(--ink);
  font-size: 22px;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
  transform: rotate(180deg);
}
.section-kicker {
  display: block;
  font: 9px/1.6 var(--mono);
  letter-spacing: 0.7px;
  color: var(--muted);
}
.cover {
  min-height: calc(100svh - 84px);
  max-width: 2000px;
  margin: auto;
  padding: 32px 4.5% 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
  scroll-margin-top: 84px;
}
.cover-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  flex: 1;
  gap: 0;
  min-height: 570px;
}
.cover-copy {
  position: relative;
  z-index: 2;
  padding: 20px 0 40px;
}
.cover-copy > .section-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 31px;
}
.tiny-orbit {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  display: inline-block;
  border-radius: 50%;
}
.cover-title {
  font-family: var(--studio-font);
  font-size: clamp(48px, 5.2vw, 98px);
  line-height: 1.04;
  font-weight: 450;
  letter-spacing: -0.065em;
  margin: 0 -8vw 0 0;
  position: relative;
  font-stretch: normal;
}
.cover-title > .line-mask {
  color: var(--ink);
  font-weight: inherit;
}
.cover-title em {
  font-style: normal;
  color: #9c9c9c;
  font-weight: 400;
}
.line-mask {
  display: block;
  overflow: hidden;
  padding: 0 0 0.15em;
  margin-bottom: -0.15em;
}
.line-inner {
  display: block;
  will-change: transform;
}
.motion-ready:not(.intro-done) .cover-title .line-inner {
  transform: translateY(115%);
}
.intro-done .cover-title .line-inner {
  transform: translateY(0);
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-done .cover-title .line-mask:nth-child(2) .line-inner {
  transition-delay: 0.12s;
}
.cover-description {
  margin-top: 37px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.cover-description > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.2px;
}
.cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 28px 0 0;
}
.cover-bottom > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.cover-bottom > span {
  font: 8px/1.7 var(--mono);
  letter-spacing: 0.5px;
  text-align: right;
  color: var(--muted);
}
.scroll-cue {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.scroll-cue .round-arrow {
  width: 31px;
  height: 31px;
  color: var(--ink);
}
.scroll-cue:hover .round-arrow {
  transform: translateY(5px);
}
.sculpture-wrap {
  position: relative;
  min-width: 0;
  width: 112%;
  min-height: 560px;
  height: 65svh;
  max-height: 740px;
  perspective: 1000px;
  margin: 0 -5vw 0 -3vw;
  isolation: isolate;
}
.scene-label {
  position: absolute;
  font: 8px var(--mono);
  letter-spacing: 0.6px;
  color: #9b9b9b;
  z-index: 3;
}
.scene-label-top {
  left: 25%;
  top: 6%;
}
.orbit-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  overflow: visible;
  z-index: -1;
}
.orbit-lines ellipse {
  fill: none;
  stroke: #b9b9b9;
  stroke-width: 1;
  opacity: 0.24;
}
.flow-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 30 600;
  opacity: 0.65;
}
.flow-path-a {
  stroke: url(#flow-a);
  animation: flow-travel 9s linear infinite paused;
}
.flow-path-b {
  stroke: url(#flow-b);
  animation: flow-travel 11s linear infinite reverse paused;
}
@keyframes flow-travel {
  to {
    stroke-dashoffset: -1400;
  }
}
.sculpture {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--pointer-x, 0deg)) rotateY(var(--pointer-y, 0deg));
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.object-shadow {
  position: absolute;
  width: 54%;
  height: 17%;
  left: 28%;
  top: 65%;
  border-radius: 50%;
  background: #00000015;
  filter: blur(28px);
  transform: rotate(-24deg);
}
.memory-object {
  position: absolute;
  width: 260px;
  height: 215px;
  left: 53%;
  top: 48%;
  transform: translate(-50%, -50%) rotateX(48deg) rotateZ(-32deg);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.chip-edge,
.chip-top {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: visible;
}
.chip-edge-one {
  background: #252525;
  transform: translateZ(-25px);
  box-shadow:
    -4px 14px 4px #00000012,
    0 24px 28px #00000018;
}
.chip-edge-two {
  background: linear-gradient(135deg, #f0f0f0, #b9b9b9);
  transform: translateZ(-13px);
  border: 1px solid #a3a3a3;
}
.chip-top {
  background: linear-gradient(145deg, #fff 28%, #f6f6f6 58%, #e6e6e6);
  border: 1px solid #d3d3d3;
  color: #1c1c1c;
  padding: 25px 27px;
  box-shadow:
    inset 1px 1px 1px #fff,
    inset -2px -2px 4px #ccc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chip-label {
  font: 10px var(--mono);
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
  color: #838383;
}
.chip-top > strong {
  font-size: 102px;
  line-height: 0.85;
  font-weight: 450;
  letter-spacing: -8px;
  align-self: center;
}
.chip-brand {
  font: 8px var(--mono);
  color: #a0a0a0;
  letter-spacing: 0.5px;
}
.chip-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid #aaa;
  border-radius: 50%;
  box-shadow: inset 1px 1px #ddd;
}
.screw-one {
  left: 13px;
  top: 13px;
}
.screw-two {
  right: 13px;
  top: 13px;
}
.screw-three {
  left: 13px;
  bottom: 13px;
}
.screw-four {
  right: 13px;
  bottom: 13px;
}
.copy-object {
  position: absolute;
  width: 186px;
  min-height: 87px;
  background: linear-gradient(150deg, #fff, #f9f9f9);
  border: 1px solid #fff;
  border-radius: 17px;
  box-shadow:
    0 18px 33px #0000000e,
    inset 0 -1px 2px #ddd;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  transform-style: preserve-3d;
  color: #161616;
}
.copy-object-a {
  left: 9%;
  top: 22%;
  transform: rotate(-10deg) translateZ(70px);
  animation: float-a 7s ease-in-out infinite paused;
}
.copy-object-b {
  right: 1%;
  top: 55%;
  transform: rotate(11deg) translateZ(85px);
  animation: float-b 8s ease-in-out infinite paused;
}
.request-disc {
  height: 37px;
  width: 37px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: #f3b69d;
  color: #9e4528;
  font-size: 16px;
  box-shadow: inset 0 1px 1px #fff8;
}
.copy-object-b .request-disc {
  background: #c2cbf2;
  color: #5366b0;
}
.copy-object small {
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  display: block;
  color: #aaa;
  margin: 0 0 6px;
}
.copy-object strong {
  font: 500 24px var(--studio-font);
  letter-spacing: -1px;
}
.copy-spark {
  margin-left: auto;
  color: #b3b3b3;
  font-size: 23px;
  font-weight: 300;
}
@keyframes float-a {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}
@keyframes float-b {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 12px;
  }
}
.hero-active .copy-object,
.hero-active .flow-path {
  animation-play-state: running;
}
.outcome-slip {
  position: absolute;
  left: 46%;
  bottom: 14%;
  transform: translateX(-50%) rotate(-7deg);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 8px 23px #0000000a;
  font: 8px var(--mono);
  white-space: nowrap;
  color: #868686;
  border: 1px solid #eee;
}
.outcome-slip > span:last-child {
  font-size: 15px;
  color: #333;
}
.slip-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #aaa;
}
.sculpture-wrap[data-verdict="fail"] .slip-dot {
  background: #ed815b;
}
.sculpture-wrap[data-verdict="pass"] .slip-dot {
  background: #7f9a63;
}
.scene-bottom {
  position: absolute;
  bottom: 2%;
  left: 18%;
  right: 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font: 8px/1.6 var(--mono);
}
.scene-bottom > span {
  max-width: 230px;
}
.motion-toggle {
  border: 0;
  background: none;
  color: var(--muted);
  font: 9px var(--mono);
  padding: 10px 0;
  white-space: nowrap;
}
.motion-toggle span {
  margin-left: 5px;
  font-size: 12px;
}
.motion-paused .copy-object,
.motion-paused .flow-path,
.page-hidden .copy-object,
.page-hidden .flow-path {
  animation-play-state: paused !important;
}
.scroll-story {
  max-width: 1660px;
  padding: 7vh 4.5% 0;
  margin: 8vh auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  position: relative;
}
.story-chapter {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 7vh 0;
}
.story-chapter > .section-kicker {
  margin-bottom: 25px;
}
.story-chapter h2 {
  font-family: var(--studio-font);
  font-size: clamp(42px, 4.5vw, 74px);
  line-height: 1.05;
  font-weight: 450;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.story-chapter > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  margin: 0;
}
.story-chapter .pill-link {
  margin-top: 30px;
}
.story-stage {
  position: sticky;
  top: 17vh;
  align-self: start;
  margin: 9vh 0 6vh;
  height: 70svh;
  max-height: 650px;
  display: flex;
  align-items: center;
}
.replay-board {
  width: 100%;
  padding: 29px 30px 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  position: relative;
  box-shadow: 0 28px 90px #00000003;
  transition: background 0.5s;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 8px var(--mono);
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 25px;
}
.board-reads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 0 16px;
  position: relative;
  z-index: 2;
}
.board-read {
  background: #f3dfd4;
  border-radius: 14px;
  padding: 17px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  box-shadow: 0 8px 20px #00000003;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.board-read-b {
  background: #dce0f5;
  transform: translateY(12px) rotate(4deg);
}
.board-read-a {
  transform: rotate(-4deg);
}
.board-read > span {
  width: 100%;
  font: 8px var(--mono);
  color: #8d6d5e;
}
.board-read-b > span {
  color: #737fa5;
}
.board-read strong {
  font-size: 37px;
  font-weight: 450;
  color: #42382e;
  letter-spacing: -1px;
  line-height: 1;
}
.board-read-b strong {
  color: #4a526d;
}
.board-read > small {
  font: 8px var(--mono);
  color: #b39889;
}
.board-read-b > small {
  color: #939cba;
}
.board-memory {
  margin: 29px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  box-shadow: 0 8px 20px #00000003;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.board-memory > span {
  font: 10px var(--mono);
  color: var(--muted);
}
.board-memory > strong {
  font-size: 69px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: -4px;
}
.board-memory > small {
  position: absolute;
  bottom: 11px;
  left: 21px;
  font: 6px var(--mono);
  color: #a6a6a6;
}
.board-outcome {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.board-outcome > div > span {
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: var(--muted);
}
.board-outcome p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 29px;
  margin: 3px 0 0;
  letter-spacing: -1px;
}
.board-outcome p strong {
  font-weight: 450;
  font-size: 49px;
  line-height: 1.15;
  letter-spacing: -3px;
}
.board-outcome p > span:first-of-type {
  color: #aaa;
  font-weight: 300;
}
.board-verdict {
  font: 9px var(--mono);
  letter-spacing: 0.7px;
  border: 1px solid #b9b9b9;
  border-radius: 100px;
  padding: 9px 13px;
  color: var(--muted);
}
.replay-board[data-verdict="fail"] .board-verdict {
  color: #b45b3f;
  border-color: #dda48f;
  background: #f3e8e2;
}
.replay-board[data-verdict="pass"] .board-verdict {
  color: #657f50;
  border-color: #aec499;
  background: #ebf0e5;
}
.board-caption {
  padding-top: 20px;
}
.board-phase {
  font-size: 19px;
  letter-spacing: -0.6px;
  font-weight: 450;
  line-height: 1.3;
}
.board-caption p {
  font: 9px/1.7 var(--mono);
  color: var(--muted);
  margin: 9px 0 0;
  max-width: 390px;
}
.chapter-dots {
  display: flex;
  gap: 7px;
  margin-top: 19px;
}
.chapter-dots i {
  height: 3px;
  background: #ddd;
  flex: 1;
  border-radius: 3px;
  transition: background 0.5s;
}
.replay-board[data-chapter="0"] .chapter-dots i:first-child,
.replay-board[data-chapter="1"] .chapter-dots i:nth-child(2),
.replay-board[data-chapter="2"] .chapter-dots i:last-child {
  background: #777;
}
.replay-board[data-chapter="1"] .board-read-a {
  transform: rotate(0deg) translate(4px, 3px);
}
.replay-board[data-chapter="1"] .board-read-b {
  transform: rotate(-2deg) translate(-4px, -4px);
}
.replay-board[data-chapter="2"] .board-read-a,
.replay-board[data-chapter="2"] .board-read-b {
  transform: rotate(0deg);
}
.replay-board[data-chapter="2"] .board-memory {
  transform: translateY(-3px);
}
.experiment-intro,
.lab-intro {
  padding: 80px 4.5% 37px;
  max-width: 2000px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.experiment-intro > .section-kicker,
.lab-intro > .section-kicker {
  grid-column: 1/-1;
  margin-bottom: 10px;
}
.experiment-intro h2,
.lab-intro h2 {
  font-family: var(--studio-font);
  font-size: clamp(40px, 4.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 450;
  margin: 0;
}
.experiment-intro > p,
.lab-intro > p {
  justify-self: end;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 310px;
}
.case-navigation {
  height: auto;
  border: 0;
  max-width: 2000px;
  margin: auto;
  padding: 12px 4.5% 70px;
}
.case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 20px;
  height: auto;
}
.case-button {
  position: relative;
  min-height: 254px;
  padding: 25px 27px;
  border-radius: 23px;
  border: 1px solid transparent;
  display: flex;
  align-items: end;
  gap: 13px;
  overflow: hidden;
  background: #f2f2f2;
  color: #171717;
  isolation: isolate;
  transition:
    background 0.6s,
    border-color 0.6s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-button > span:first-child {
  position: absolute;
  left: 25px;
  top: 24px;
  font: 9px var(--mono);
  background: none;
  color: #929292;
  padding: 0 !important;
  z-index: 3;
}
.case-button > div {
  position: relative;
  z-index: 3;
}
.case-button strong {
  font-size: 21px;
  font-weight: 450;
  letter-spacing: -0.8px;
  display: block;
  line-height: 1.2;
}
.case-button small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #969696;
  margin-top: 7px;
}
.case-button:after {
  content: "↗";
  position: absolute;
  right: 22px;
  bottom: 29px;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition:
    background 0.5s,
    color 0.5s,
    rotate 0.5s;
}
.case-button:hover:not(:disabled) {
  transform: translateY(-4px);
  background: #ebebeb;
}
.case-button:hover:after {
  rotate: 45deg;
  background: #111;
  color: #fff;
  border-color: #111;
}
.case-button.selected {
  background: #ededed;
  border: 1px solid #bdbdbd;
}
.case-button.selected > span:first-child {
  color: #444;
  background: none;
}
.case-button.selected:after {
  background: #111;
  color: #fff;
  border-color: #111;
}
.case-art {
  position: absolute;
  left: 30%;
  right: 18%;
  top: 10%;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  perspective: 450px;
  z-index: 1;
  pointer-events: none;
}
.case-button.selected > .case-art {
  background: none;
  padding: 0;
  color: inherit;
}
.case-art i {
  font-style: normal;
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #e2e2e2);
  box-shadow:
    0 12px 16px #0000000a,
    inset 1px 1px 1px #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  transform: rotateX(38deg) rotateZ(-24deg);
  border: 1px solid #e1e1e1;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-art i:first-child {
  translate: 0 -11px;
  color: #c8866b;
  background: linear-gradient(145deg, #fff4ed, #eecbb6);
}
.case-art i:last-child {
  translate: 0 13px;
  color: #7b89bf;
  background: linear-gradient(145deg, #f4f5ff, #cdd4ed);
}
.case-button:hover .case-art i:first-child {
  transform: rotateX(28deg) rotateZ(-34deg) translateZ(15px);
}
.case-button:hover .case-art i:last-child {
  transform: rotateX(28deg) rotateZ(-14deg) translateZ(30px);
}
.case-button[data-case="webhook"] .case-art i {
  border-radius: 50%;
  transform: rotateX(26deg) rotateZ(12deg);
}
.case-button[data-case="lost-update"] .case-art i:first-child {
  rotate: 12deg;
}
.case-button[data-case="lost-update"] .case-art i:last-child {
  rotate: -5deg;
}
main#workspace {
  padding: 0 4.5%;
  max-width: 2000px;
  scroll-margin-top: 100px;
}
.lab-intro {
  padding: 55px 0 35px;
}
.lab-intro h2 {
  font-size: clamp(38px, 4.4vw, 70px);
}
.intro {
  padding: 36px 0 32px;
  grid-template-columns: 1fr 1fr 240px;
  border-top: 1px solid var(--line);
  gap: 30px;
}
.intro-title h2 {
  font-family: var(--studio-font);
  font-size: 48px;
  letter-spacing: -2.6px;
  line-height: 1.05;
  font-weight: 450;
  margin: 0;
}
.intro-title h2 > span {
  color: #9e9e9e;
  font-weight: 400;
}
.intro-copy > p {
  font-size: 16px;
  letter-spacing: -0.25px;
}
.intro-copy > span {
  color: #969696;
}
.intro-title > .eyebrow {
  font-size: 8px;
  margin-bottom: 14px;
}
.live-square {
  border-radius: 50%;
  background: #8a8a8a;
  width: 5px;
  height: 5px;
}
.impact {
  border-color: var(--line);
  padding-left: 25px;
}
.impact strong {
  font-family: var(--studio-font);
  font-weight: 450;
  font-size: 83px;
  letter-spacing: -5px;
}
.impact > div {
  font-family: var(--studio-font);
}
.impact-arrow {
  font-family: var(--studio-font);
  color: #a7a7a7;
}
.impact.is-failure strong {
  color: #bd7962;
}
.impact.is-pass strong {
  color: #7c8c6b;
}
.verdict-line strong {
  font-family: var(--studio-font);
  font-size: 12px;
  font-weight: 550;
}
.verdict-line small {
  font-size: 7px;
}
.pass-text {
  color: #768c63;
}
.fail-text {
  color: #ba755e;
}
.workbench {
  gap: 22px;
  view-transition-name: lab;
}
.source-panel {
  border-color: var(--line);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
}
.source-heading {
  height: 62px;
  padding: 0 24px;
}
.source-heading .eyebrow {
  color: #a6a6a6;
  font-size: 8px;
}
.language {
  border-color: var(--line);
  color: var(--muted);
  border-radius: 4px;
}
.source-tabs {
  padding: 0 22px;
  border-color: var(--line);
  gap: 25px;
}
.source-tabs > button {
  font-family: var(--studio-font);
  font-size: 11px;
  color: #aaa;
}
.source-tabs > button[aria-selected="true"] {
  border-color: #888;
}
.source-tabs > button span {
  background: var(--surface);
  color: #888;
  border-radius: 3px;
}
.source-tabs .reset-source {
  font: 9px var(--studio-font);
}
.source-heading .file-name {
  color: #686868;
}
.source-footer {
  border-color: var(--line);
  color: #999;
  font-size: 8px;
  padding: 12px 22px;
}
.editor {
  background: var(--paper);
}
.editor > pre {
  border-color: var(--line);
  color: #c2c2c2;
}
.editor textarea {
  caret-color: var(--ink);
}
.code-surface > pre {
  color: #626262;
}
.token-keyword {
  color: #8d7a68;
}
.token-string {
  color: #7d8b73;
}
.token-method {
  color: #8991b3;
}
.token-number {
  color: #b18b77;
}
.token-comment {
  color: #bbb;
}
.contract,
.store-api {
  border-color: var(--line);
  padding: 0 23px;
}
.contract > p,
.store-api > p {
  color: #8f8f8f;
  line-height: 1.8;
}
.contract summary,
.store-api summary {
  color: #7f7f7f;
  min-height: 49px;
  letter-spacing: 0.3px;
  font: 9px var(--studio-font);
}
.lock-icon {
  color: #929292;
}
.execution-panel {
  border-radius: 23px;
  background: #151515;
  color: #ededed;
}
.stage-heading {
  padding: 24px 25px 18px;
}
.stage-heading h2 {
  font-family: var(--studio-font);
  font-weight: 450;
  letter-spacing: -0.7px;
  font-size: 20px;
}
.stage-heading .eyebrow {
  color: #757575;
}
.stage-repair-button {
  border-radius: 100px;
  background: #eee;
  color: #222;
  padding: 11px 18px;
  transition:
    background 0.3s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-repair-button:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-2px);
}
.stage-repair-button > span {
  font: 500 11px var(--studio-font);
}
.stage-repair-button > small {
  font-size: 6px;
  color: #8d8d8d;
  opacity: 1;
}
.badge {
  border-radius: 100px;
  font-size: 8px;
  min-width: 60px;
  letter-spacing: 0.5px;
  border-color: #494949;
  color: #aaa;
}
.badge.fail {
  color: #c9957f;
  border-color: #725648;
  background: #c9957f08;
}
.badge.pass {
  color: #b7c5a9;
  border-color: #616b56;
  background: #b7c5a908;
}
.run-toolbar {
  border-color: #303030;
}
.mode-button {
  color: #818181;
  font-family: var(--studio-font);
  font-size: 10px;
}
.mode-button.active {
  color: #d7d7d7;
}
.mode-button.active:after {
  background: #bababa;
  height: 1px;
}
.local-label {
  color: #686868;
  font-size: 7px;
}
.local-label i {
  background: #a1ad92;
  box-shadow: none;
}
.timeline {
  background-image: radial-gradient(#ffffff11 0.6px, transparent 0.6px);
  scrollbar-color: #555 #1c1c1c;
}
.replay-controls {
  border-color: #303030;
  background: #1e1e1e;
}
.play-button {
  border-radius: 50%;
  background: #ddd;
  color: #151515;
  width: 34px;
  height: 34px;
}
input[type="range"] {
  accent-color: #c0c0c0;
}
.replay-controls > span {
  color: #929292;
}
.replay-controls .text-button {
  font-family: var(--studio-font);
  color: #8f8f8f;
}
.replay-controls #collision-button {
  color: #bebebe;
}
.observation {
  border-color: #303030;
}
.observation-label {
  color: #727272;
}
.observation p {
  color: #b5b5b5;
  font: 11px/1.7 var(--studio-font);
}
.state-panel,
.checks-panel {
  border-color: #d9d9d9;
}
.state-row {
  gap: 24px;
  margin-top: 18px;
}
.mini-heading .eyebrow {
  color: #959595;
}
.mini-heading > span:last-child {
  color: #b0b0b0;
}
.state-entry > span {
  color: #a4a4a4;
}
.state-entry > strong {
  color: #777;
  font-size: 19px;
  font-weight: 400;
}
.state-entry.changed > strong {
  color: #ad826e;
}
.state-entry > small {
  color: #a2a2a2;
}
.check-row {
  color: #8b9683;
  font-family: var(--studio-font);
  font-size: 11px;
}
.check-row.failed {
  color: #aa816e;
}
.check-row p {
  color: #949494;
}
.check-row summary > span:first-child {
  color: #95a486;
}
.check-row.failed summary > span:first-child {
  color: #bc917b;
}
.repair-section {
  border-color: var(--line);
  padding: 35px 0;
  margin-top: 34px;
}
.repair-intro h2 {
  font-family: var(--studio-font);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 450;
  letter-spacing: -1.2px;
}
.repair-intro h2 em {
  border-color: #b2b2b2;
}
.repair-intro > p {
  color: #aaa;
}
.button {
  border-radius: 100px;
  font-family: var(--studio-font);
  font-weight: 450;
  padding: 13px 21px;
  font-size: 12px;
}
.button.secondary {
  border-color: #ddd;
}
.button.secondary:hover {
  background: var(--surface);
}
.button.ink {
  background: var(--ink);
  color: var(--paper);
}
.live-options {
  color: #919191;
}
.live-options > summary {
  font-size: 11px;
}
.replay-note {
  color: #b4b4b4;
  font-size: 7px;
}
.verification {
  border-color: #a5b394;
  padding-left: 20px;
}
.verification > strong {
  font-family: var(--studio-font);
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.6px;
}
.verification > p {
  color: #a0a0a0;
  font: 10px/1.7 var(--studio-font);
}
.case-result {
  border-color: #e8e8e8;
  color: #9e9e9e;
}
.case-result strong {
  font: 400 30px var(--studio-font);
  color: #86967a;
  letter-spacing: -1px;
}
.case-result small {
  color: #aaa;
}
.verification.failed {
  border-color: #c69c82;
}
.experiment-log > summary {
  border-color: var(--line);
  color: #a0a0a0;
  font-family: var(--studio-font);
  font-size: 10px;
}
.agent-event {
  border-color: #ececec;
  color: #929292;
  font-family: var(--studio-font);
  font-size: 11px;
}
.agent-event > span {
  color: #b5b5b5;
}
.artifact-bar {
  border-color: var(--line);
  padding: 30px 0;
}
.artifact-bar strong {
  font-size: 15px;
  font-weight: 450;
  letter-spacing: -0.3px;
}
.artifact-bar p > span {
  color: #aaa;
  font: 10px var(--studio-font);
}
.artifact-icon {
  color: #b1b1b1;
}
.artifact-bar .text-button {
  font-size: 12px;
}
.closing-note {
  padding: 110px 0 90px;
  position: relative;
}
.closing-note h2 {
  font: 450 clamp(60px, 7.5vw, 122px)/1.01 var(--studio-font);
  letter-spacing: -0.06em;
  margin: 30px 0 34px;
}
.closing-note h2 em {
  font-style: normal;
  color: #b1b1b1;
}
.closing-note .pill-link {
  min-width: 230px;
}
.closing-note:after {
  content: "*";
  position: absolute;
  right: 8%;
  top: 24%;
  font: 300 clamp(180px, 24vw, 390px)/1 var(--studio-font);
  color: #e4e4e4;
  transform: rotate(-15deg);
  pointer-events: none;
}
footer {
  border-color: var(--line);
  color: #aaa;
  padding: 24px 0 32px;
  letter-spacing: 0.1px;
  font-size: 8px;
}
footer .text-button {
  color: #777;
  font-family: var(--studio-font);
  font-size: 10px;
}
.status-bar {
  background: #242424;
  color: #e5e5e5;
  border-radius: 14px;
  font-family: var(--studio-font);
  font-size: 12px;
  box-shadow: 0 6px 30px #00000012;
  padding: 14px 22px;
}
.status-bar.error {
  background: #a4654b;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--paper);
  color: var(--ink);
  padding: 42px;
  box-shadow: 0 28px 100px #00000017;
}
dialog::backdrop {
  background: #0008;
  backdrop-filter: blur(10px);
}
dialog h2 {
  font-family: var(--studio-font);
  font-size: 37px;
  font-weight: 450;
  letter-spacing: -1.4px;
}
dialog p {
  color: #929292;
  font-size: 13px;
  line-height: 1.9;
}
dialog textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 12px;
}
.dialog-close {
  color: #999;
}
dialog[open] {
  animation: dialog-arrive 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.motion-ready [data-reveal],
.motion-ready .experiment-intro,
.motion-ready .lab-intro,
.motion-ready .repair-section,
.motion-ready .artifact-bar {
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion-ready [data-reveal]:not(.in-view),
.motion-ready .experiment-intro:not(.in-view),
.motion-ready .lab-intro:not(.in-view),
.motion-ready .repair-section:not(.in-view),
.motion-ready .artifact-bar:not(.in-view) {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(5px);
}
.focus-mode .cover,
.focus-mode .scroll-story,
.focus-mode .experiment-intro,
.focus-mode .lab-intro,
.focus-mode .closing-note {
  display: none;
}
.focus-mode main#workspace {
  padding-top: 5px;
}
.focus-mode .workbench {
  margin-top: 23px;
}
::view-transition-old(lab) {
  animation: lab-out 0.28s ease both;
}
::view-transition-new(lab) {
  animation: lab-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes lab-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes lab-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
:root[data-theme="dark"] {
  --paper: #111;
  --ink: #efefef;
  --muted: #818181;
  --line: #2b2b2b;
  --surface: #1b1b1b;
  --surface-strong: #252525;
  color-scheme: dark;
}
:root[data-theme="dark"] .brand img {
  filter: invert(1);
}
:root[data-theme="dark"] .cover-title em {
  color: #6f6f6f;
}
:root[data-theme="dark"] .case-button {
  background: #1d1d1d;
  color: #e5e5e5;
}
:root[data-theme="dark"] .case-button:hover {
  background: #252525;
}
:root[data-theme="dark"] .case-button.selected {
  border-color: #686868;
  background: #222;
}
:root[data-theme="dark"] .case-button:after {
  border-color: #4a4a4a;
}
:root[data-theme="dark"] .case-button.selected:after {
  background: #eee;
  color: #222;
}
:root[data-theme="dark"] .source-panel {
  background: #161616;
}
:root[data-theme="dark"] .code-surface > pre {
  color: #aaa;
}
:root[data-theme="dark"] .editor > pre {
  color: #4b4b4b;
}
:root[data-theme="dark"] .closing-note:after {
  color: #2b2b2b;
}
:root[data-theme="dark"] .board-memory {
  background: #202020;
}
:root[data-theme="dark"] .board-read {
  filter: brightness(0.78);
}
:root[data-theme="dark"] .board-verdict {
  background: #222 !important;
}
:root[data-theme="dark"] .replay-board[data-verdict="fail"] .board-verdict {
  color: #d9a58d;
}
:root[data-theme="dark"] .replay-board[data-verdict="pass"] .board-verdict {
  color: #b6c99f;
}
@media (min-width: 1650px) {
  .cover-main {
    min-height: 640px;
  }
  .sculpture-wrap {
    min-height: 640px;
  }
  .memory-object {
    width: 295px;
    height: 240px;
  }
  .chip-top > strong {
    font-size: 115px;
  }
  .copy-object-a {
    left: 13%;
  }
  .copy-object-b {
    right: 2%;
  }
  .scene-label-top {
    top: 10%;
  }
  .scene-bottom {
    bottom: 5%;
  }
}
@media (max-width: 1200px) {
  .studio-header nav {
    gap: 20px;
  }
  .studio-header .connection {
    display: none;
  }
  .cover-main {
    min-height: 490px;
  }
  .sculpture-wrap {
    min-height: 470px;
    max-height: 600px;
    width: 115%;
    margin-left: -4vw;
  }
  .memory-object {
    width: 220px;
    height: 190px;
  }
  .chip-top {
    padding: 24px;
  }
  .chip-top > strong {
    font-size: 83px;
  }
  .copy-object {
    width: 160px;
    min-height: 73px;
    padding: 13px;
    gap: 10px;
  }
  .request-disc {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .copy-object strong {
    font-size: 22px;
  }
  .copy-object-a {
    left: 5%;
    top: 22%;
  }
  .copy-object-b {
    right: 0%;
    top: 57%;
  }
  .scene-bottom {
    font-size: 6px;
    left: 12%;
    right: 0;
    gap: 12px;
  }
  .scene-bottom > span {
    max-width: 170px;
  }
  .motion-toggle {
    font-size: 8px;
  }
  .cover-description {
    gap: 20px;
  }
  .cover-description > p {
    font-size: 12px;
  }
  .cover-bottom > span {
    font-size: 7px;
  }
  .scroll-story {
    gap: 6vw;
  }
  .replay-board {
    padding: 24px;
  }
  .board-heading {
    font-size: 7px;
  }
  .board-reads {
    margin: 0;
  }
  .board-read {
    padding: 15px;
  }
  .board-read strong {
    font-size: 30px;
  }
  .board-memory {
    margin: 25px 0 20px;
  }
  .board-phase {
    font-size: 17px;
  }
  .board-memory > strong {
    font-size: 58px;
  }
  .case-button {
    min-height: 230px;
    padding: 23px;
  }
  .case-button strong {
    font-size: 19px;
  }
  .case-art {
    left: 27%;
    right: 17%;
    height: 120px;
  }
  .case-art i {
    width: 57px;
    height: 57px;
  }
  .intro {
    grid-template-columns: 1fr 1fr 185px;
  }
  .intro-title h2 {
    font-size: 39px;
  }
  .impact strong {
    font-size: 74px;
  }
  .stage-actions {
    gap: 12px;
  }
  .stage-heading h2 {
    font-size: 18px;
  }
}
@media (max-width: 950px) {
  .studio-header {
    height: 76px;
    padding: 0 24px;
  }
  .studio-header nav {
    gap: 18px;
  }
  .studio-header nav > .roll-link:first-child {
    display: none;
  }
  .brand {
    font-size: 28px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .studio-header #focus-button {
    display: none;
  }
  .cover {
    padding: 20px 24px 20px;
    min-height: calc(100svh - 76px);
  }
  .cover-main {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    position: relative;
  }
  .cover-copy {
    padding: 25px 0 0;
    z-index: 2;
  }
  .cover-title {
    font-size: clamp(56px, 8.5vw, 78px);
    letter-spacing: -0.06em;
    margin-right: 0;
    max-width: 850px;
  }
  .cover-copy > .section-kicker {
    margin-bottom: 20px;
  }
  .cover-description {
    margin-top: 23px;
    justify-content: space-between;
  }
  .cover-description > p {
    font-size: 13px;
  }
  .sculpture-wrap {
    width: 85%;
    min-height: 420px;
    height: 51vw;
    max-height: 520px;
    margin: 0 auto;
    z-index: 1;
  }
  .memory-object {
    width: 240px;
    height: 190px;
    top: 47%;
  }
  .chip-top > strong {
    font-size: 87px;
  }
  .copy-object-a {
    left: 4%;
    top: 17%;
  }
  .copy-object-b {
    right: 0%;
    top: 57%;
  }
  .scene-label-top {
    top: 4%;
    font-size: 7px;
    left: 33%;
  }
  .outcome-slip {
    bottom: 10%;
    padding: 12px 15px;
  }
  .scene-bottom {
    bottom: -1%;
    left: 0;
    right: 0;
    font-size: 7px;
  }
  .scene-bottom > span {
    max-width: none;
  }
  .motion-toggle {
    font-size: 8px;
  }
  .cover-bottom {
    padding-top: 23px;
  }
  .cover-bottom > span {
    display: none;
  }
  .cover-bottom > p {
    font-size: 11px;
  }
  .scroll-story {
    padding: 30px 24px 0;
    gap: 5vw;
    margin-top: 50px;
  }
  .story-chapter h2 {
    font-size: 48px;
  }
  .story-chapter > p {
    font-size: 13px;
  }
  .story-stage {
    top: 15vh;
  }
  .replay-board {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .board-heading {
    font-size: 6px;
    gap: 7px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .board-reads {
    gap: 10px;
  }
  .board-read {
    padding: 12px;
    gap: 7px;
  }
  .board-read > span {
    font-size: 6px;
  }
  .board-read > small {
    font-size: 6px;
  }
  .board-read > strong {
    font-size: 30px;
  }
  .board-memory {
    padding: 15px;
    margin: 23px 0 16px;
  }
  .board-memory > small {
    left: 15px;
    bottom: 8px;
    font-size: 5px;
  }
  .board-memory > span {
    font-size: 8px;
  }
  .board-memory > strong {
    font-size: 49px;
  }
  .board-outcome p strong {
    font-size: 40px;
  }
  .board-outcome > div > span {
    font-size: 6px;
  }
  .board-outcome {
    gap: 10px;
  }
  .board-verdict {
    font-size: 7px;
    padding: 8px;
  }
  .board-phase {
    font-size: 16px;
  }
  .board-caption p {
    font-size: 8px;
    line-height: 1.65;
  }
  .experiment-intro {
    padding: 65px 24px 25px;
  }
  .experiment-intro h2,
  .lab-intro h2 {
    font-size: 57px;
  }
  .case-navigation {
    padding: 10px 24px 35px;
  }
  .case-list {
    gap: 13px;
  }
  .case-button {
    min-height: 210px;
    padding: 18px;
  }
  .case-button > span:first-child {
    top: 20px;
    left: 20px;
  }
  .case-button strong {
    font-size: 16px;
    max-width: 140px;
  }
  .case-button small {
    font-size: 8px;
    max-width: 120px;
    line-height: 1.5;
  }
  .case-button:after {
    right: 15px;
    bottom: 21px;
    width: 23px;
    height: 23px;
    font-size: 16px;
  }
  .case-art {
    left: 19%;
    right: 10%;
    top: 12%;
    height: 100px;
    gap: 6px;
  }
  .case-art i {
    width: 43px;
    height: 45px;
    border-radius: 12px;
    font-size: 17px;
  }
  .lab-intro {
    padding: 45px 0 24px;
  }
  .lab-intro > p {
    font-size: 12px;
    max-width: 260px;
  }
  .intro {
    grid-template-columns: 1fr 160px;
    gap: 24px;
  }
  .intro-title h2 {
    font-size: 47px;
  }
  .intro-copy {
    padding-top: 0;
  }
  .intro-copy > p {
    display: none;
  }
  .impact {
    grid-column: 2;
    grid-row: 1/3;
  }
  .workbench {
    gap: 24px;
  }
  .closing-note {
    padding: 85px 0 65px;
  }
  .closing-note h2 {
    font-size: 80px;
  }
  .closing-note:after {
    font-size: 240px;
    right: 4%;
    top: 25%;
  }
}
@media (max-width: 700px) {
  .scroll-story {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .story-stage {
    order: -1;
    position: sticky;
    top: 87px;
    z-index: 3;
    height: auto;
    max-height: none;
    margin: 0;
    display: block;
  }
  .replay-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 19px 20px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 25px #00000006;
  }
  .board-heading {
    grid-column: 1/-1;
    margin: 0;
    font-size: 7px;
  }
  .board-reads {
    grid-column: 1/3;
    gap: 8px;
    margin: 0;
  }
  .board-read {
    padding: 11px 13px;
    min-height: 79px;
    display: block;
    transform: none;
  }
  .board-read-b {
    transform: none;
  }
  .board-read > span {
    font-size: 6px;
    display: block;
    margin-bottom: 7px;
  }
  .board-read > strong {
    font-size: 29px;
    display: inline-block;
  }
  .board-read > small {
    font-size: 6px;
    display: inline-block;
    margin-left: 6px;
  }
  .board-memory {
    grid-column: 3;
    margin: 0;
    padding: 11px;
    display: block;
    min-height: 79px;
    border-radius: 13px;
  }
  .board-memory > span {
    font-size: 6px;
    display: block;
  }
  .board-memory > strong {
    font-size: 33px;
    display: block;
    margin-top: 5px;
    letter-spacing: -1px;
  }
  .board-memory > small {
    display: none;
  }
  .board-outcome {
    grid-column: 1/-1;
    padding: 10px 0;
    min-height: 62px;
  }
  .board-outcome p {
    font-size: 22px;
    gap: 8px;
  }
  .board-outcome p strong {
    font-size: 36px;
    line-height: 1;
  }
  .board-outcome > div > span {
    font-size: 6px;
  }
  .board-caption {
    grid-column: 1/-1;
    padding: 0;
  }
  .board-phase {
    font-size: 16px;
  }
  .board-caption p {
    display: none;
  }
  .chapter-dots {
    grid-column: 1/-1;
    margin-top: 0;
    gap: 6px;
  }
  .story-words {
    z-index: 1;
  }
  .story-chapter {
    min-height: 66svh;
    padding: 40px 0 65px;
    max-width: 460px;
  }
  .story-chapter h2 {
    font-size: 55px;
  }
  .story-chapter > p {
    font-size: 14px;
    max-width: 340px;
  }
  .story-chapter > .section-kicker {
    margin-bottom: 23px;
  }
  .replay-board[data-chapter="1"] .board-read-a {
    transform: translateY(-2px);
  }
  .replay-board[data-chapter="1"] .board-read-b {
    transform: translateY(2px);
  }
  .experiment-intro > p,
  .lab-intro > p {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 87px;
  }
  .studio-header {
    height: 72px;
    padding: 0 18px;
  }
  .studio-header nav {
    gap: 14px;
  }
  .studio-header .roll-link {
    display: none;
  }
  .studio-header .pill-link {
    display: inline-flex;
    font-size: 11px;
    gap: 11px;
    padding: 7px 8px 7px 15px;
    min-height: 40px;
  }
  .studio-header .round-arrow {
    width: 25px;
    height: 25px;
    font-size: 18px;
  }
  .brand {
    font-size: 26px;
    letter-spacing: -1.4px;
    gap: 6px;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .brand-sign {
    font-size: 26px;
  }
  .theme-toggle {
    width: 25px;
    height: 25px;
    font-size: 20px;
  }
  .cover {
    padding: 21px 19px 23px;
    min-height: auto;
  }
  .cover-copy {
    padding: 21px 0 0;
  }
  .cover-copy > .section-kicker {
    font-size: 7px;
    letter-spacing: 0.2px;
    margin-bottom: 23px;
    gap: 8px;
  }
  .tiny-orbit {
    width: 5px;
    height: 5px;
  }
  .cover-title {
    font-size: clamp(39px, 10.2vw, 61px);
    line-height: 1.07;
    letter-spacing: -0.06em;
  }
  .cover-description {
    margin-top: 26px;
    gap: 22px;
    display: block;
  }
  .cover-description > p {
    font-size: 13px;
    line-height: 1.7;
  }
  .cover-description > .pill-link {
    margin-top: 22px;
    font-size: 11px;
    padding: 8px 9px 8px 18px;
  }
  .cover-main {
    gap: 0;
  }
  .sculpture-wrap {
    width: 109%;
    min-height: 345px;
    height: 96vw;
    max-height: 480px;
    margin: 8px -5% 0;
  }
  .memory-object {
    width: 184px;
    height: 155px;
    top: 48%;
    left: 52%;
  }
  .chip-top {
    padding: 19px 20px;
    border-radius: 18px;
  }
  .chip-edge {
    border-radius: 18px;
  }
  .chip-top > strong {
    font-size: 69px;
    letter-spacing: -4px;
  }
  .chip-label {
    font-size: 7px;
  }
  .chip-brand {
    font-size: 6px;
  }
  .chip-screw {
    height: 4px;
    width: 4px;
  }
  .screw-one {
    left: 10px;
    top: 10px;
  }
  .screw-two {
    right: 10px;
    top: 10px;
  }
  .screw-three {
    left: 10px;
    bottom: 10px;
  }
  .screw-four {
    right: 10px;
    bottom: 10px;
  }
  .chip-edge-one {
    transform: translateZ(-21px);
  }
  .chip-edge-two {
    transform: translateZ(-11px);
  }
  .copy-object {
    width: 130px;
    min-height: 63px;
    border-radius: 12px;
    padding: 10px 11px;
    gap: 9px;
  }
  .copy-object-a {
    left: 3%;
    top: 18%;
    rotate: 2deg;
  }
  .copy-object-b {
    right: 0;
    top: 57%;
    rotate: 0deg;
  }
  .request-disc {
    width: 27px;
    height: 27px;
    font-size: 12px;
    border-radius: 9px;
  }
  .copy-object small {
    font-size: 5px;
    margin-bottom: 4px;
  }
  .copy-object strong {
    font-size: 21px;
  }
  .copy-spark {
    font-size: 18px;
  }
  .outcome-slip {
    font-size: 6px;
    left: 45%;
    bottom: 11%;
    gap: 8px;
    padding: 10px 13px;
  }
  .outcome-slip > span:last-child {
    font-size: 11px;
  }
  .scene-label-top {
    font-size: 6px;
    top: 5%;
    left: 24%;
    letter-spacing: 0;
  }
  .scene-bottom {
    font-size: 6px;
    bottom: -2%;
    left: 5%;
    right: 5%;
    gap: 15px;
  }
  .scene-bottom > span {
    max-width: 190px;
  }
  .motion-toggle {
    font-size: 7px;
    min-height: 40px;
  }
  .motion-toggle span {
    font-size: 10px;
  }
  .cover-bottom {
    margin-top: 18px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    align-items: center;
  }
  .cover-bottom > p {
    font-size: 10px;
    max-width: 190px;
    line-height: 1.7;
  }
  .scroll-cue {
    gap: 9px;
    font-size: 9px;
    max-width: 122px;
    line-height: 1.6;
  }
  .scroll-cue > .round-arrow {
    width: 27px;
    height: 27px;
    min-width: 27px;
    font-size: 15px;
  }
  .scroll-story {
    padding: 10px 19px 0;
    margin-top: 60px;
  }
  .story-stage {
    top: 83px;
  }
  .replay-board {
    padding: 16px 15px;
    gap: 11px;
    border-radius: 18px;
  }
  .board-heading {
    font-size: 6px;
    letter-spacing: 0.2px;
  }
  .board-read {
    padding: 10px;
    min-height: 71px;
    border-radius: 11px;
  }
  .board-read > span {
    font-size: 5px;
    letter-spacing: 0.3px;
  }
  .board-read > strong {
    font-size: 27px;
  }
  .board-read > small {
    font-size: 5px;
    margin-left: 4px;
  }
  .board-memory {
    min-height: 71px;
    padding: 10px;
  }
  .board-memory > strong {
    font-size: 30px;
  }
  .board-memory > span {
    font-size: 5px;
  }
  .board-phase {
    font-size: 14px;
  }
  .board-outcome p strong {
    font-size: 35px;
  }
  .board-outcome > div > span {
    font-size: 5px;
  }
  .board-outcome {
    padding: 8px 0;
    min-height: 59px;
  }
  .board-verdict {
    font-size: 6px;
    padding: 7px 10px;
  }
  .story-chapter h2 {
    font-size: 49px;
    letter-spacing: -0.055em;
  }
  .story-chapter {
    min-height: 64svh;
    padding: 45px 0 65px;
  }
  .story-chapter > p {
    font-size: 13px;
    line-height: 1.8;
  }
  .story-chapter > .section-kicker {
    font-size: 8px;
  }
  .experiment-intro {
    display: block;
    padding: 50px 19px 22px;
  }
  .experiment-intro > .section-kicker {
    font-size: 8px;
    margin-bottom: 22px;
  }
  .experiment-intro h2 {
    font-size: 51px;
    letter-spacing: -0.06em;
  }
  .experiment-intro > p {
    font-size: 12px;
    margin: 23px 0 0;
    line-height: 1.7;
  }
  .case-navigation {
    padding: 10px 19px 45px;
  }
  .case-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 13px;
    padding: 3px 0 10px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
  }
  .case-button {
    min-width: 76vw;
    max-width: 76vw;
    min-height: 260px;
    padding: 25px;
    scroll-snap-align: start;
    border-radius: 21px;
  }
  .case-button > span:first-child {
    left: 25px;
    top: 23px;
    font-size: 9px;
  }
  .case-button strong {
    font-size: 24px;
    max-width: 240px;
    letter-spacing: -0.8px;
  }
  .case-button small {
    font-size: 10px;
    max-width: 230px;
  }
  .case-button:after {
    right: 22px;
    bottom: 28px;
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .case-art {
    left: 30%;
    right: 15%;
    top: 10%;
    height: 140px;
    gap: 7px;
  }
  .case-art i {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    font-size: 22px;
  }
  .case-button[data-case="webhook"] .case-art i {
    border-radius: 50%;
  }
  main#workspace {
    padding: 0 18px;
    scroll-margin-top: 90px;
  }
  .lab-intro {
    display: block;
    padding: 38px 0 25px;
  }
  .lab-intro > .section-kicker {
    font-size: 8px;
    margin-bottom: 22px;
  }
  .lab-intro h2 {
    font-size: 49px;
    letter-spacing: -0.06em;
  }
  .lab-intro > p {
    font-size: 11px;
    margin: 22px 0 0;
    line-height: 1.7;
  }
  .intro {
    padding: 29px 0 24px;
    grid-template-columns: 1fr 102px;
    gap: 21px;
  }
  .intro-title h2 {
    font-size: 37px;
    letter-spacing: -1.8px;
    line-height: 1.06;
  }
  .intro-title > .eyebrow {
    font-size: 6px;
    letter-spacing: 0.3px;
    gap: 6px;
  }
  .intro-copy > span {
    font-size: 11px;
  }
  .impact {
    padding-left: 13px;
    grid-row: 1;
  }
  .impact strong {
    font-size: 59px;
    letter-spacing: -3px;
  }
  .impact > p {
    font-size: 6px;
    line-height: 1.7;
  }
  .impact-caption {
    font-size: 6px;
  }
  .verdict-line {
    gap: 15px;
    margin-top: 16px;
  }
  .verdict-line strong {
    font-size: 11px;
  }
  .verdict-line small {
    font-size: 7px;
  }
  .stage-heading {
    padding: 20px 17px 16px;
  }
  .stage-heading h2 {
    font-size: 18px;
    font-weight: 450;
  }
  .stage-heading .eyebrow {
    font-size: 7px;
  }
  .stage-repair-button {
    min-height: 46px;
    border-radius: 100px;
    padding: 11px 17px;
    flex: 1;
  }
  .stage-repair-button > span {
    font-size: 12px;
  }
  .stage-repair-button > small {
    font-size: 6px;
  }
  .stage-actions {
    gap: 15px;
    margin-top: 10px;
  }
  .execution-panel {
    border-radius: 19px;
  }
  .source-panel {
    border-radius: 19px;
  }
  .source-heading {
    height: 57px;
    padding: 0 19px;
  }
  .source-tabs {
    padding: 0 18px;
  }
  .editor textarea,
  .editor pre {
    font-size: 12px;
  }
  .contract,
  .store-api {
    padding: 0 20px;
  }
  .contract > p {
    font-size: 11px;
  }
  .contract summary,
  .store-api summary {
    font-size: 10px;
  }
  .source-footer {
    font-size: 7px;
    padding: 12px 19px;
  }
  .state-row {
    gap: 20px;
    margin-top: 20px;
  }
  .mini-heading .eyebrow {
    font-size: 8px;
  }
  .mini-heading > span:last-child {
    font-size: 8px;
  }
  .check-row {
    font-size: 11px;
  }
  .state-entry > strong {
    font-size: 21px;
  }
  .state-entry > small {
    font-size: 9px;
  }
  .repair-intro h2 {
    font-size: 33px;
  }
  .repair-intro > p {
    font-size: 12px;
  }
  .verification > strong {
    font-size: 17px;
  }
  .verification > p {
    font-size: 10px;
  }
  .case-result strong {
    font-size: 31px;
  }
  .agent-event {
    font-size: 11px;
  }
  .artifact-bar {
    padding: 25px 0;
  }
  .artifact-bar strong {
    font-size: 15px;
  }
  .artifact-bar p > span {
    font-size: 10px;
    line-height: 1.7;
    max-width: 260px;
  }
  .closing-note {
    padding: 85px 0 65px;
  }
  .closing-note > .section-kicker {
    font-size: 7px;
    max-width: 230px;
    line-height: 1.8;
  }
  .closing-note h2 {
    font-size: 64px;
    letter-spacing: -0.06em;
    line-height: 1.05;
    margin: 25px 0 30px;
  }
  .closing-note:after {
    font-size: 150px;
    right: 5%;
    top: 28%;
    opacity: 0.65;
  }
  .closing-note .pill-link {
    font-size: 11px;
    min-width: 220px;
  }
  footer {
    font-size: 6px;
    padding: 22px 0 30px;
    gap: 13px;
  }
  footer .text-button {
    font-size: 10px;
  }
  .status-bar {
    font-size: 11px;
  }
  dialog {
    padding: 33px 24px;
    border-radius: 20px;
  }
  dialog h2 {
    font-size: 32px;
  }
  dialog p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .motion-ready [data-reveal],
  .motion-ready .experiment-intro,
  .motion-ready .lab-intro,
  .motion-ready .repair-section,
  .motion-ready .artifact-bar,
  .motion-ready .cover-title .line-inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Preserve editor alignment and comfortable reading in the working product. */
.editor textarea,
.editor pre,
dialog textarea {
  font-family: var(--mono);
}
.contract > p,
.store-api > p,
.intro-copy > span,
.repair-intro > p {
  color: #737373;
}
.contract summary,
.store-api summary {
  font-size: 11px;
}
.source-tabs > button {
  font-size: 12px;
}
.source-tabs > button:not([aria-selected="true"]) {
  color: #767676;
}
.source-heading .file-name,
.source-footer {
  font-size: 10px;
}
.state-entry > span,
.state-entry > small,
.check-row p,
.verification > p,
.case-result,
.agent-event,
.artifact-bar p > span {
  color: #777;
}
.check-row {
  font-size: 12px;
  color: #596c4d;
}
.check-row.failed {
  color: #95634d;
}
.contract > p {
  font-size: 12px;
}
.replay-note {
  font-size: 9px;
  color: #777;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #8f7b6d;
  outline-offset: 5px;
}
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
  animation-play-state: paused !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.motion-paused [data-reveal],
.motion-paused .experiment-intro,
.motion-paused .lab-intro,
.motion-paused .repair-section,
.motion-paused .artifact-bar,
.motion-paused .cover-title .line-inner {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
:root[data-motion="paused"]::view-transition-old(*),
:root[data-motion="paused"]::view-transition-new(*) {
  animation: none !important;
}
:root[data-theme="dark"] .contract > p,
:root[data-theme="dark"] .store-api > p,
:root[data-theme="dark"] .intro-copy > span,
:root[data-theme="dark"] .repair-intro > p,
:root[data-theme="dark"] .state-entry > span,
:root[data-theme="dark"] .state-entry > small,
:root[data-theme="dark"] .check-row p,
:root[data-theme="dark"] .verification > p,
:root[data-theme="dark"] .case-result,
:root[data-theme="dark"] .agent-event,
:root[data-theme="dark"] .artifact-bar p > span {
  color: #aaa;
}
:root[data-theme="dark"] .check-row {
  color: #b2c2a4;
}
:root[data-theme="dark"] .check-row.failed {
  color: #d4a18a;
}
