:root {
  --header-height: 74px;
  --lab-navy: #102a43;
  --lab-deep: #071a2b;
  --lab-blue: #2c91c3;
  --lab-sky: #dff4ff;
  --lab-red: #e84335;
  --lab-gold: #f6bd3b;
  --lab-paper: #f7f6f1;
  --lab-ink: #142435;
  --lab-muted: #647587;
  --lab-line: rgba(16, 42, 67, 0.14);
}

.lab-page {
  color: var(--lab-ink);
  background: var(--lab-paper);
}

.lab-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.lab-page .site-header {
  border-bottom: 1px solid rgba(16, 42, 67, 0.09);
}

.lab-scene-image {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.lab-photo-label {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  pointer-events: none;
}

.lab-photo-label span {
  margin-right: 8px;
  color: #8dd8f5;
}

.lab-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.28fr);
  min-height: calc(100vh - var(--header-height));
  padding: clamp(42px, 5vw, 76px) max(5vw, calc((100vw - 1440px) / 2));
  overflow: hidden;
  color: #fff;
  background: var(--lab-deep);
}

.lab-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(44, 145, 195, 0.22), transparent 31%),
    linear-gradient(90deg, rgba(7, 26, 43, 0.9) 0%, rgba(7, 26, 43, 0.76) 42%, rgba(9, 31, 50, 0.58) 100%);
  content: "";
  pointer-events: none;
}

.lab-hero-scene {
  z-index: 0;
  inset: 0;
  object-position: center 48%;
}

.lab-hero-copy,
.model-card {
  position: relative;
  z-index: 2;
}

.lab-hero-photo-label {
  right: max(5vw, calc((100vw - 1440px) / 2));
  bottom: 18px;
}

.lab-hero-copy {
  align-self: center;
  max-width: 520px;
  padding-right: clamp(20px, 4vw, 64px);
}

.lab-kicker,
.step-eyebrow {
  margin: 0 0 20px;
  color: #8dd8f5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.lab-hero h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(3.2rem, 5.6vw, 6.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lab-hero h1 em {
  color: var(--lab-gold);
  font-style: normal;
}

.lab-hero-copy > p:not(.lab-kicker) {
  max-width: 44ch;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.04rem;
  line-height: 1.9;
}

.lab-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.lab-proof b {
  margin-right: 5px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.model-card {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  color: var(--lab-ink);
  background: #f8fbfc;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.model-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 19px;
  border-bottom: 1px solid var(--lab-line);
}

.model-card-head p,
.model-card-head h2 {
  margin: 0;
}

.model-card-head p {
  color: var(--lab-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.model-card-head h2 {
  margin-top: 4px;
  font-size: 1.35rem;
}

.model-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lab-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.model-status::before {
  width: 8px;
  height: 8px;
  background: var(--lab-red);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5px rgba(232, 67, 53, 0.1);
}

.dragon-canvas-wrap {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(rgba(16, 42, 67, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #eef7fa, #f9faf6);
  background-size: 32px 32px, 32px 32px, auto;
}

.dragon-canvas-wrap::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(16, 42, 67, 0.38);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  content: "INTERACTIVE SCHEMATIC";
  pointer-events: none;
}

.dragon-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 360px;
  cursor: grab;
  touch-action: none;
}

.dragon-canvas-wrap canvas:active {
  cursor: grabbing;
}

.dragon-canvas-wrap canvas:focus-visible {
  outline: 3px solid var(--lab-gold);
  outline-offset: -4px;
}

.gesture-toast {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 2;
  min-width: 178px;
  padding: 11px 15px 12px 18px;
  color: #fff;
  text-align: right;
  background: rgba(16, 42, 67, 0.91);
  border-right: 3px solid var(--lab-gold);
  box-shadow: 0 14px 36px rgba(16, 42, 67, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gesture-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.gesture-toast span,
.gesture-toast strong {
  display: block;
}

.gesture-toast span {
  color: #9dddf2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.gesture-toast strong {
  margin-top: 2px;
  color: var(--lab-gold);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
}

.canvas-hint {
  position: absolute;
  top: 18px;
  left: 22px;
  margin: 0;
  padding: 8px 12px;
  color: var(--lab-navy);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 42, 67, 0.1);
  pointer-events: none;
}

.model-controls {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(160px, 1.4fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  border-top: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
}

.model-controls label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 700;
}

.model-controls output {
  color: var(--lab-red);
  font-family: Georgia, serif;
  font-size: 1.24rem;
}

.model-controls input[type="range"] {
  width: 100%;
  accent-color: var(--lab-red);
}

.model-actions {
  display: flex;
  gap: 8px;
}

.lab-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--lab-navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(16, 42, 67, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.lab-button.primary {
  color: #fff;
  background: var(--lab-red);
  border-color: var(--lab-red);
}

.lab-button.secondary {
  color: var(--lab-navy);
  background: #fff;
}

.lab-button.ghost {
  color: var(--lab-muted);
  border-color: transparent;
}

.model-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 22px 28px 19px;
}

.model-results div {
  padding: 0 20px;
  border-left: 1px solid var(--lab-line);
}

.model-results div:first-child {
  padding-left: 0;
  border-left: 0;
}

.model-results dt {
  color: var(--lab-red);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.model-results dd {
  margin: 3px 0 0;
  color: var(--lab-muted);
  font-size: 0.78rem;
}

.model-cultural-state {
  min-width: 0;
}

.model-cultural-state dd {
  max-width: 13em;
  line-height: 1.55;
}

.model-card[data-cultural-state="complete"] .model-cultural-state dt {
  color: #b57a00;
}

.model-disclaimer {
  margin: 0;
  padding: 0 28px 20px;
  color: #738493;
  font-size: 0.72rem;
  line-height: 1.6;
}

.lab-section {
  padding: clamp(74px, 9vw, 132px) 0;
}

.lab-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.lab-section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px 64px;
  align-items: end;
  margin-bottom: 56px;
}

.lab-section-heading .chapter {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.lab-section-heading h2,
.test-intro h2,
.roadmap-grid h2 {
  margin: 0;
  color: var(--lab-navy);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  font-weight: 400;
  line-height: 1.12;
}

.lab-section-heading > p:last-child {
  max-width: 48ch;
  margin: 0;
  color: var(--lab-muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.research-section {
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(16, 42, 67, 0.045) 50%, transparent 50.06%),
    var(--lab-paper);
}

.research-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
}

.research-metrics article {
  padding: 28px 24px;
  border-left: 1px solid var(--lab-line);
}

.research-metrics article:first-child {
  padding-left: 0;
  border-left: 0;
}

.research-metrics strong,
.research-metrics span,
.research-metrics small {
  display: block;
}

.research-metrics strong {
  color: var(--lab-red);
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
}

.research-metrics span {
  margin-top: 9px;
  font-weight: 800;
}

.research-metrics small {
  margin-top: 5px;
  color: var(--lab-muted);
  line-height: 1.5;
}

.barrier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--lab-line);
  border: 1px solid var(--lab-line);
}

.barrier-grid article {
  min-height: 370px;
  padding: 36px 34px;
  background: #fff;
}

.barrier-grid article > span {
  color: var(--lab-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.barrier-grid h3 {
  margin: 38px 0 14px;
  color: var(--lab-navy);
  font-size: 1.35rem;
}

.barrier-grid p {
  min-height: 98px;
  margin: 0;
  color: var(--lab-muted);
  line-height: 1.8;
}

.barrier-grid b {
  display: block;
  margin-top: 28px;
  color: var(--lab-red);
  font-family: Georgia, serif;
  font-size: 2.15rem;
}

.barrier-grid small {
  display: block;
  margin-top: 5px;
  color: #7b8996;
  line-height: 1.55;
}

.coding-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
  margin-top: 92px;
  padding: clamp(36px, 5vw, 70px);
  color: #fff;
  overflow: hidden;
  background: var(--lab-navy);
}

.coding-panel::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 26, 43, 0.92), rgba(16, 42, 67, 0.8));
  content: "";
  pointer-events: none;
}

.lab-coding-scene {
  z-index: 0;
  inset: 0;
  object-position: center 45%;
}

.coding-panel > .coding-copy,
.coding-panel > .coding-chart {
  position: relative;
  z-index: 2;
}

.coding-panel > .lab-coding-photo-label {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 14px;
}

.coding-copy h3 {
  margin: 22px 0 18px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.coding-copy > p:not(.chapter) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
}

.coding-copy .method-note {
  margin-top: 24px;
  padding-top: 18px;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.coding-chart {
  display: grid;
  gap: 15px;
}

.coding-chart > div {
  display: grid;
  grid-template-columns: 110px minmax(100px, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.coding-chart span,
.coding-chart b {
  font-size: 0.82rem;
}

.coding-chart i {
  display: block;
  width: var(--value);
  height: 12px;
  background: linear-gradient(90deg, var(--lab-red), var(--lab-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-page .coding-chart i {
  transform: scaleX(1);
}

.coding-panel.visible .coding-chart i,
.coding-panel.is-visible .coding-chart i {
  transform: scaleX(1);
}

.research-to-product {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: var(--lab-line);
  border: 1px solid var(--lab-line);
}

.product-map-title,
.research-to-product article {
  padding: 30px;
  background: #fff;
}

.product-map-title h3 {
  margin: 20px 0 0;
  color: var(--lab-navy);
  font-size: 1.35rem;
  line-height: 1.5;
}

.research-to-product article b,
.research-to-product article span {
  display: block;
}

.research-to-product article b {
  color: var(--lab-red);
}

.research-to-product article span {
  margin: 22px 0;
  color: var(--lab-gold);
  font-size: 1.5rem;
}

.research-to-product article p {
  margin: 0;
  color: var(--lab-muted);
  line-height: 1.75;
}

.innovation-brief {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(42px, 7vw, 88px);
  align-items: start;
  margin-top: 88px;
  padding-top: 58px;
  border-top: 1px solid var(--lab-line);
}

.innovation-brief h3 {
  margin: 24px 0 0;
  color: var(--lab-navy);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(2.1rem, 3.7vw, 3.9rem);
  font-weight: 400;
  line-height: 1.16;
}

.innovation-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--lab-line);
  border: 1px solid var(--lab-line);
}

.innovation-brief-grid article {
  min-height: 180px;
  padding: 26px 24px;
  background: #fff;
}

.innovation-brief-grid span {
  color: var(--lab-red);
  font-size: 0.78rem;
  font-weight: 800;
}

.innovation-brief-grid p {
  margin: 22px 0 0;
  color: var(--lab-muted);
  line-height: 1.75;
}

.test-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--lab-deep);
}

.test-section::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(44, 145, 195, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(7, 26, 43, 0.7) 0, rgba(7, 26, 43, 0.84) 360px, rgba(7, 26, 43, 0.98) 720px, var(--lab-deep) 900px);
  content: "";
  pointer-events: none;
}

.lab-test-scene {
  z-index: 0;
  inset: 0 0 auto;
  height: 760px;
  object-position: center 40%;
}

.lab-test-photo-label {
  top: calc(var(--header-height) + 16px);
  left: max(5vw, calc((100vw - 1440px) / 2));
}

.test-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(560px, 1.38fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.test-intro {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.test-intro .chapter,
.test-intro .chapter span {
  color: #8dd8f5;
}

.test-intro h2 {
  margin-top: 28px;
  color: #fff;
}

.test-intro > p:not(.chapter) {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.69);
  line-height: 1.9;
}

.test-intro ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
}

.test-intro li::before {
  margin-right: 10px;
  color: var(--lab-gold);
  content: "✓";
}

.test-sample-status {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid rgba(141, 216, 245, 0.26);
}

.test-sample-status span {
  display: inline-block;
  padding: 4px 8px;
  color: var(--lab-deep);
  font-size: 0.7rem;
  font-weight: 800;
  background: #8dd8f5;
}

.test-sample-status p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.6;
}

.test-card {
  min-width: 0;
  color: var(--lab-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.test-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--lab-line);
  list-style: none;
}

.test-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  color: #86929d;
  font-size: 0.76rem;
  border-left: 1px solid var(--lab-line);
}

.test-progress li:first-child {
  border-left: 0;
}

.test-progress li.active {
  color: var(--lab-navy);
  background: #f4fafd;
}

.test-progress li.complete {
  color: var(--lab-blue);
}

.test-progress b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.test-card form {
  margin: 0;
}

.test-step {
  margin: 0;
  padding: clamp(26px, 4vw, 48px);
  border: 0;
}

.test-step[hidden] {
  display: none;
}

.test-step legend,
.test-step h3 {
  width: 100%;
  margin: 0;
  color: var(--lab-navy);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
}

.step-help,
.learning-tip {
  margin: 10px 0 28px;
  color: var(--lab-muted);
  line-height: 1.7;
}

.quiz-question {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--lab-line);
}

.quiz-question > p {
  margin: 0 0 13px;
  font-weight: 800;
  line-height: 1.6;
}

.quiz-question > label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 10px 12px;
  color: #4e6071;
  line-height: 1.55;
  background: #f7f9fa;
  border: 1px solid transparent;
  cursor: pointer;
}

.quiz-question > label:has(input:checked) {
  color: var(--lab-navy);
  background: #eef8fc;
  border-color: rgba(44, 145, 195, 0.38);
}

.quiz-question input {
  margin-top: 5px;
  accent-color: var(--lab-red);
}

.validation-message,
.submit-status {
  min-height: 1.5em;
  margin: 20px 0 8px;
  color: #b83227;
  font-size: 0.84rem;
}

.next-step,
.submit-test {
  width: 100%;
  margin-top: 10px;
}

.learning-cards {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.learning-cards article {
  padding: 20px 22px;
  background: #f5f8fa;
  border-left: 4px solid var(--lab-red);
}

.learning-cards b {
  color: var(--lab-red);
}

.learning-cards p {
  margin: 7px 0 0;
  color: var(--lab-muted);
  line-height: 1.7;
}

.learning-tip {
  margin-top: 26px;
  padding: 14px 16px;
  background: #fff8e6;
}

.step-actions {
  display: flex;
  gap: 10px;
}

.step-actions .lab-button {
  flex: 1;
}

.score-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: 34px;
  background: var(--lab-line);
  border: 1px solid var(--lab-line);
}

.score-preview > div {
  padding: 20px;
  background: #f4f9fb;
}

.score-preview span,
.score-preview small {
  color: var(--lab-muted);
}

.score-preview b {
  margin-left: 10px;
  color: var(--lab-red);
  font-family: Georgia, serif;
  font-size: 2.25rem;
}

.score-preview > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  color: #fff;
  background: var(--lab-navy);
  line-height: 1.6;
}

.field-label {
  display: block;
  margin: 22px 0 8px;
  font-weight: 800;
}

.feedback-step select,
.feedback-step textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--lab-ink);
  font: inherit;
  background: #f7f9fa;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 0;
}

.feedback-step textarea {
  resize: vertical;
}

.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px;
  color: #4f6171;
  font-size: 0.86rem;
  line-height: 1.65;
  background: #fff8e6;
}

.consent-label input {
  margin-top: 5px;
  accent-color: var(--lab-red);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.result-step {
  text-align: center;
}

.result-code-card {
  margin: 30px 0 22px;
  padding: 26px;
  background: var(--lab-navy);
}

.result-code-card span,
.result-code-card b {
  display: block;
}

.result-code-card span {
  color: #8dd8f5;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.result-code-card b {
  margin-top: 10px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
}

.result-code-card button {
  margin-top: 18px;
  padding: 8px 12px;
  color: var(--lab-navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--lab-gold);
  border: 0;
  cursor: pointer;
}

.result-step > p:not(.step-eyebrow) {
  color: var(--lab-muted);
  line-height: 1.75;
}

.roadmap-section {
  background: #eaf3f6;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.roadmap-grid .chapter {
  margin-bottom: 24px;
}

.roadmap-grid ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lab-line);
}

.roadmap-grid li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--lab-line);
}

.roadmap-grid li b {
  color: var(--lab-red);
}

.roadmap-grid li p {
  margin: 0;
  color: var(--lab-muted);
  line-height: 1.75;
}

.lab-footer .footer-back {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .lab-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 54px;
  }

  .lab-hero::before {
    background: linear-gradient(180deg, rgba(7, 26, 43, 0.66) 0, rgba(7, 26, 43, 0.82) 36%, rgba(7, 26, 43, 0.97) 68%, var(--lab-deep) 100%);
  }

  .lab-hero-scene {
    height: 620px;
    object-position: 55% center;
  }

  .lab-hero-photo-label {
    top: calc(var(--header-height) + 14px);
    right: 24px;
    bottom: auto;
  }

  .lab-hero-copy {
    max-width: 740px;
    padding-right: 0;
  }

  .dragon-canvas-wrap,
  .dragon-canvas-wrap canvas {
    height: 340px;
    min-height: 340px;
  }

  .research-to-product {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-map-title {
    grid-column: 1 / -1;
  }

  .test-layout {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .lab-page .site-nav {
    gap: 18px;
  }

  .lab-section-heading,
  .coding-panel,
  .innovation-brief,
  .test-layout,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .test-intro {
    position: static;
  }

  .research-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-metrics article:nth-child(3) {
    border-left: 0;
  }

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

  .barrier-grid article {
    min-height: 0;
  }

  .barrier-grid p {
    min-height: 0;
  }

  .research-to-product {
    grid-template-columns: 1fr;
  }

  .product-map-title {
    grid-column: auto;
  }

  .innovation-brief {
    margin-top: 64px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .lab-hero {
    min-height: auto;
    padding: 42px 17px 56px;
  }

  .lab-hero::before {
    background: linear-gradient(180deg, rgba(7, 26, 43, 0.72) 0, rgba(7, 26, 43, 0.88) 33%, rgba(7, 26, 43, 0.98) 58%, var(--lab-deep) 100%);
  }

  .lab-hero-scene {
    height: 500px;
    object-position: 58% center;
  }

  .lab-hero-photo-label {
    top: calc(var(--header-height) + 6px);
    right: 17px;
    max-width: calc(100% - 34px);
    text-align: right;
  }

  .lab-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .lab-proof {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .model-card-head,
  .model-controls,
  .model-results,
  .model-disclaimer {
    padding-right: 17px;
    padding-left: 17px;
  }

  .model-card-head {
    gap: 12px;
  }

  .model-status {
    font-size: 0.68rem;
  }

  .dragon-canvas-wrap,
  .dragon-canvas-wrap canvas {
    height: 300px;
    min-height: 300px;
  }

  .canvas-hint {
    right: 17px;
    left: 17px;
    width: fit-content;
    max-width: calc(100% - 34px);
  }

  .gesture-toast {
    top: 68px;
    right: 17px;
    min-width: 160px;
  }

  .model-controls {
    grid-template-columns: 1fr;
  }

  .model-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .model-results {
    gap: 10px;
  }

  .model-results div {
    padding: 0 8px;
  }

  .model-results dt {
    font-size: 1.25rem;
  }

  .lab-section {
    padding: 72px 0;
  }

  .lab-shell {
    width: min(100% - 34px, 1180px);
  }

  .lab-section-heading {
    gap: 24px;
    margin-bottom: 38px;
  }

  .lab-section-heading h2,
  .test-intro h2,
  .roadmap-grid h2 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .research-metrics article {
    padding: 22px 14px;
  }

  .research-metrics strong {
    font-size: 2.55rem;
  }

  .research-metrics small {
    font-size: 0.72rem;
  }

  .barrier-grid {
    margin-top: 42px;
  }

  .barrier-grid article,
  .product-map-title,
  .research-to-product article {
    padding: 26px 22px;
  }

  .coding-panel {
    gap: 40px;
    margin: 64px -17px 0;
    padding: 40px 22px;
  }

  .coding-panel::before {
    background: linear-gradient(180deg, rgba(7, 26, 43, 0.91), rgba(16, 42, 67, 0.94));
  }

  .lab-coding-scene {
    object-position: 62% center;
  }

  .lab-coding-photo-label {
    right: 17px;
    bottom: 12px;
    max-width: calc(100% - 34px);
    text-align: right;
  }

  .coding-chart > div {
    grid-template-columns: 95px minmax(60px, 1fr) 28px;
    gap: 8px;
  }

  .coding-chart span,
  .coding-chart b {
    font-size: 0.72rem;
  }

  .research-to-product {
    margin-top: 48px;
  }

  .innovation-brief {
    gap: 34px;
    margin-top: 56px;
    padding-top: 42px;
  }

  .innovation-brief-grid {
    grid-template-columns: 1fr;
  }

  .innovation-brief-grid article {
    min-height: 0;
    padding: 24px 22px;
  }

  .test-card {
    margin: 0 -17px;
  }

  .test-section::before {
    background: linear-gradient(180deg, rgba(7, 26, 43, 0.78) 0, rgba(7, 26, 43, 0.91) 280px, rgba(7, 26, 43, 0.99) 500px, var(--lab-deep) 620px);
  }

  .lab-test-scene {
    height: 520px;
    object-position: 58% center;
  }

  .lab-test-photo-label {
    top: calc(var(--header-height) + 10px);
    right: auto;
    left: 17px;
    max-width: calc(100% - 34px);
    text-align: right;
  }

  .test-progress span {
    display: none;
  }

  .test-progress li {
    justify-content: center;
  }

  .test-step {
    padding: 30px 20px;
  }

  .quiz-question > label {
    font-size: 0.9rem;
  }

  .step-actions {
    display: grid;
  }

  .score-preview b {
    display: block;
    margin: 6px 0 0;
  }

  .roadmap-grid li {
    grid-template-columns: 78px 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-button,
  .coding-chart i,
  .gesture-toast {
    transition: none;
  }

  .coding-chart i {
    transform: scaleX(1);
  }
}
