:root {
  --ink: #0c1631;
  --ink-2: #253451;
  --muted: #61708b;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #dce3ef;
  --blue: #2457ff;
  --cyan: #00aeca;
  --coral: #ff684a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(21, 39, 84, 0.12);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle at 1px 1px, rgba(36, 87, 255, 0.13) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 35%);
}

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(76px, 10vw, 132px);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 227, 239, 0.85);
  background: rgba(245, 247, 251, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: -0.06em;
}

.wordmark-name {
  letter-spacing: -0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.primary-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--blue);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.hero {
  overflow: hidden;
  padding-top: clamp(78px, 10vw, 142px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
}

.eyebrow,
.section-index,
.publication-kind,
.project-meta,
.publication-type {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

h1 {
  max-width: 870px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 7.3vw, 6.7rem);
  letter-spacing: -0.075em;
}

h1 span,
.publications-hero h1 span {
  color: var(--blue);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(36, 87, 255, 0.24);
  color: var(--white);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.profile-links a,
.text-link {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-portrait {
  position: relative;
  max-width: 390px;
  justify-self: end;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  inset: -18px 18px 18px -18px;
  border: 3px solid var(--cyan);
  border-radius: 34px;
  content: "";
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
}

.availability-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(310px, 90%);
  align-items: center;
  gap: 12px;
  margin: -30px auto 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(21, 39, 84, 0.14);
}

.availability-card strong,
.availability-card span {
  display: block;
}

.availability-card strong {
  font-size: 0.92rem;
}

.availability-card span:not(.signal) {
  color: var(--muted);
  font-size: 0.8rem;
}

.signal {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(0, 174, 202, 0.12);
}

.evidence-strip {
  display: grid;
  margin-top: clamp(68px, 9vw, 116px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 18px 50px rgba(21, 39, 84, 0.06);
}

.evidence-strip > div {
  padding: 24px 28px;
}

.evidence-strip > div + div {
  border-left: 1px solid var(--line);
}

.evidence-value,
.evidence-label {
  display: block;
}

.evidence-value {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.evidence-label {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.focus {
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.section-heading {
  max-width: 810px;
  margin-bottom: clamp(42px, 6vw, 70px);
}

.section-heading > p:last-child,
.section-heading-split > p,
.sticky-heading > p:last-child {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading-split {
  display: grid;
  max-width: none;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(30px, 7vw, 100px);
}

.section-heading-split h2,
.section-heading-split p {
  margin-bottom: 0;
}

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

.focus-card,
.project-card,
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.focus-card {
  position: relative;
  min-height: 280px;
  padding: 34px;
  overflow: hidden;
}

.focus-card::after {
  position: absolute;
  right: -64px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(36, 87, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.focus-card h3,
.project-card h3 {
  margin: 56px 0 15px;
}

.focus-card p,
.project-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
}

.card-number {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.work .section-index,
.contact .section-index {
  color: var(--cyan);
}

.work .section-heading-split > p {
  color: #aebbd2;
}

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

.project-card {
  min-height: 360px;
  padding: 32px;
  border-color: rgba(255, 255, 255, 0.14);
  background: #121f3f;
  color: var(--white);
}

.project-card-featured {
  background: var(--blue);
}

.project-card h3 {
  max-width: 480px;
  margin-top: 76px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.project-card p {
  color: #c5cfe0;
}

.project-card-featured p,
.project-card-featured .project-meta {
  color: rgba(255, 255, 255, 0.86);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  color: var(--cyan);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.project-card .text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--white);
}

.research-arcade {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(36, 87, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 87, 255, 0.055) 1px, transparent 1px),
    #eef3ff;
  background-size: 32px 32px;
}

.research-arcade::before {
  position: absolute;
  top: -210px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 70px solid rgba(0, 174, 202, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.research-arcade .section-heading {
  position: relative;
  z-index: 1;
}

.arcade-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(21, 39, 84, 0.1);
  flex-direction: column;
}

.game-header {
  position: relative;
  min-height: 255px;
  padding: 30px 32px 26px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.game-card-testing .game-header {
  background: #3b2034;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #aebbd2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-card-testing .game-meta {
  color: #e6b8ce;
}

.game-symbol {
  position: absolute;
  right: 24px;
  bottom: -34px;
  color: rgba(255, 255, 255, 0.09);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10rem;
  font-weight: 600;
  line-height: 1;
}

.game-header h3 {
  position: relative;
  margin: 62px 0 12px;
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
}

.game-header p {
  position: relative;
  max-width: 470px;
  margin-bottom: 0;
  color: #c8d2e5;
  line-height: 1.6;
}

.game-card-testing .game-header p {
  color: #ecd7e1;
}

.game-stage {
  display: flex;
  min-width: 0;
  flex: 1;
  padding: 30px 32px;
  flex-direction: column;
}

.game-intro {
  display: flex;
  min-height: 270px;
  justify-content: center;
  flex-direction: column;
}

.game-intro > p:not(.game-kicker) {
  max-width: 470px;
  margin-bottom: 28px;
  color: var(--muted);
}

.game-kicker,
.game-progress,
.game-scenario-label {
  margin-bottom: 12px;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-card-testing .game-kicker,
.game-card-testing .game-progress,
.game-card-testing .game-scenario-label {
  color: #d84f67;
}

.game-button {
  min-height: 48px;
  align-self: flex-start;
  padding: 11px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(36, 87, 255, 0.2);
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card-testing .game-button {
  background: #d84f67;
  box-shadow: 0 10px 22px rgba(216, 79, 103, 0.2);
}

.game-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.game-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.game-round {
  display: flex;
  flex: 1;
  flex-direction: column;
}

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

.game-progress {
  margin: 0;
}

.game-score {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.game-progress-track {
  height: 4px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf3;
}

.game-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 240ms ease;
}

.game-card-testing .game-progress-track span {
  background: #d84f67;
}

.game-scenario-label {
  margin-bottom: 7px;
}

.game-question {
  margin-bottom: 18px;
  font-size: 1.12rem;
  line-height: 1.45;
}

[data-game-focus] {
  scroll-margin-top: 96px;
}

.research-graph {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faff;
}

.graph-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.graph-title span:first-child {
  color: var(--blue);
}

.game-card-testing .graph-title span:first-child {
  color: #c53f58;
}

.research-graph svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 4px 8px 8px;
}

.history-lane line {
  stroke: #c4ccda;
  stroke-width: 1.5;
}

.history-lane text,
.history-commit-label,
.history-event text,
.evolution-grid text,
.evolution-release,
.evolution-event text,
.evolution-legend text,
.team-link text,
.team-node text,
.team-column-label,
.responsibility-column > text,
.responsibility-node text,
.responsibility-link text {
  fill: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.history-lane text {
  fill: var(--ink-2);
  font-size: 11px;
}

.history-commit-label {
  font-size: 9px;
  text-anchor: middle;
}

.history-connector {
  stroke: #65738a;
  stroke-width: 2;
}

.history-commit {
  fill: var(--white);
  stroke: #4f5f78;
  stroke-width: 2.4;
}

.history-event line {
  stroke: #986e51;
  stroke-dasharray: 4 4;
  stroke-width: 1.4;
}

.history-event text {
  fill: #775139;
  font-size: 9px;
}

.evolution-grid line {
  stroke: #d9dfe9;
  stroke-width: 1;
}

.evolution-grid text {
  font-size: 9px;
  text-anchor: end;
}

.evolution-release {
  font-size: 9px;
  text-anchor: middle;
}

.evolution-event line {
  stroke: #986e51;
  stroke-dasharray: 4 4;
  stroke-width: 1.4;
}

.evolution-event text {
  fill: #775139;
  font-size: 9px;
}

.evolution-series polyline,
.evolution-series circle,
.evolution-legend line {
  fill: none;
  stroke-width: 2.3;
  vector-effect: non-scaling-stroke;
}

.evolution-series circle {
  fill: #f8faff;
}

.evolution-series.series-a polyline,
.evolution-series.series-a circle,
.evolution-legend.series-a line {
  stroke: #334158;
}

.evolution-series.series-b polyline,
.evolution-series.series-b circle,
.evolution-legend.series-b line {
  stroke: #778399;
  stroke-dasharray: 7 4;
}

.evolution-series.series-c polyline,
.evolution-series.series-c circle,
.evolution-legend.series-c line {
  stroke: #a1aaba;
  stroke-dasharray: 2 4;
}

.evolution-legend text {
  fill: var(--ink-2);
  font-size: 9px;
}

.team-link line,
.team-link path {
  fill: none;
  stroke: #59677e;
  stroke-width: 2;
}

.team-link text,
.responsibility-link text {
  fill: var(--ink-2);
  font-size: 9px;
  paint-order: stroke;
  stroke: #f8faff;
  stroke-linejoin: round;
  stroke-width: 6px;
  text-anchor: middle;
}

.contribution-link path {
  stroke: #7c899d;
  stroke-dasharray: 6 5;
}

.team-node rect {
  stroke: #aeb9cb;
  stroke-width: 1.5;
}

.team-node rect {
  fill: #eef1f6;
}

.team-node.service-node rect {
  fill: var(--white);
}

.team-node text {
  fill: var(--ink);
  font-size: 11px;
  text-anchor: middle;
}

.team-column-label {
  fill: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-anchor: middle;
  text-transform: uppercase;
}

.responsibility-column > rect {
  fill: #f1f3f7;
  stroke: #c5cedc;
  stroke-width: 1.2;
}

.responsibility-column > text {
  fill: var(--ink-2);
  font-size: 10px;
  text-anchor: middle;
}

.responsibility-node rect {
  fill: var(--white);
  stroke: #b8c2d1;
  stroke-width: 1.2;
}

.responsibility-node text {
  fill: var(--ink);
  font-size: 10px;
  text-anchor: middle;
}

.responsibility-link line {
  stroke: #6e7b90;
  stroke-width: 1.7;
}

.evidence-heading {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.evidence-list,
.game-options,
.test-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-list {
  margin-bottom: 18px;
}

.evidence-list li {
  position: relative;
  padding: 9px 12px 9px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.45;
}

.evidence-list li::before {
  position: absolute;
  top: 16px;
  left: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.game-option {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.game-option:hover:not(:disabled) {
  border-color: var(--blue);
  background: #f5f7ff;
}

.game-option.is-correct {
  border-color: #13815c;
  background: #eaf8f2;
  color: #075b3f;
}

.game-option.is-wrong {
  border-color: #d84f67;
  background: #fff0f2;
  color: #8d2638;
}

.game-option:disabled {
  cursor: default;
}

.game-feedback {
  margin: 16px 0 0;
  padding: 13px 14px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  background: #eef9fb;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.game-card-testing .game-feedback {
  border-left-color: #d84f67;
  background: #fff2f5;
}

.game-feedback strong {
  color: var(--ink);
}

.game-next {
  margin-top: 16px;
}

.change-brief {
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.change-brief code {
  color: #9d3047;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

.impact-graph {
  background: #fff8fa;
}

.impact-track {
  display: flex;
  align-items: center;
  padding: 16px 12px;
}

.impact-node {
  display: flex;
  min-width: 0;
  min-height: 70px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 9px 7px;
  border: 1px solid #d8c7ce;
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  flex-direction: column;
}

.impact-node span {
  margin-bottom: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.impact-node strong {
  color: var(--ink-2);
  font-size: 0.75rem;
  line-height: 1.25;
}

.impact-node.is-changed {
  border-color: #d84f67;
  background: #d84f67;
  box-shadow: 0 9px 18px rgba(216, 79, 103, 0.18);
}

.impact-node.is-changed span,
.impact-node.is-changed strong {
  color: var(--white);
}

.impact-arrow {
  flex: 0 0 24px;
  color: #c53f58;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  text-align: center;
}

.budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.budget-value {
  color: #13815c;
}

.budget-value.is-over {
  color: #b72f47;
}

.test-list {
  margin-bottom: 18px;
}

.test-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.test-option {
  position: relative;
}

.test-option label {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.test-option label:hover {
  border-color: #d84f67;
}

.test-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #d84f67;
}

.test-option span:last-child {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.test-option input:checked + span {
  color: #9d3047;
}

.pipeline-story {
  background:
    radial-gradient(circle at 78% 22%, rgba(216, 79, 103, 0.3), transparent 28%),
    radial-gradient(circle at 14% 86%, rgba(255, 170, 196, 0.14), transparent 31%),
    #2f172a;
}

.pipeline-story .lab-story-skip {
  background: rgba(47, 23, 42, 0.58);
}

.pipeline-story .lab-story-scene p {
  color: #ff9cb5;
}

.pipeline-story .lab-story-scene strong {
  color: #f2c7d5;
}

.pipeline-story .lab-story-progress span {
  background: #ff789b;
}

.testing-round-title {
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  text-wrap: balance;
}

.testing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.testing-step {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8f8fa;
  color: var(--muted);
}

.testing-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #e8e9ee;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.testing-step p,
.testing-step strong {
  display: block;
  margin: 0;
}

.testing-step p {
  font-size: 0.78rem;
  line-height: 1.45;
}

.testing-step strong {
  margin-bottom: 2px;
  color: var(--ink-2);
  font-size: 0.82rem;
}

.testing-step.is-active {
  border-color: #e3859b;
  background: #fff4f7;
  color: #744050;
}

.testing-step.is-active > span {
  background: #d84f67;
  color: var(--white);
}

.testing-step.is-complete > span {
  background: #16815d;
  color: var(--white);
}

.testing-ticket {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
  border-color: #e3cbd2;
  background: #fff8fa;
}

.testing-ticket > span {
  padding: 3px 7px;
  border-radius: 6px;
  background: #3b2034;
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testing-ticket p {
  margin: 0;
}

.method-test-panel {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #dfd3d7;
  border-radius: 15px;
  background: #fffafb;
}

.method-test-heading {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: 24px;
  padding: 16px 18px;
  border-bottom: 1px solid #eadde1;
}

.method-test-heading .game-scenario-label {
  margin-bottom: 4px;
}

.method-test-heading h5 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}

.method-test-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.method-test-legend span {
  padding-left: 10px;
  border-left: 2px solid #ddb1bd;
}

.method-test-legend strong {
  display: block;
  color: var(--ink-2);
}

.method-test-mobile-hint {
  display: none;
}

.method-test-path-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px 18px;
  border-bottom: 1px solid #eadde1;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.method-test-path-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.method-test-path-legend span::before {
  width: 24px;
  height: 0;
  border-top: 2px solid #c9c2c5;
  content: "";
}

.method-test-path-legend .is-indirect::before {
  border-color: #5d78b8;
  border-top-style: dashed;
}

.method-test-path-legend .is-lifecycle::before {
  border-color: #9b68a1;
  border-top-style: dotted;
}

.method-test-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #cf9cab transparent;
}

.method-test-graph {
  display: grid;
  min-width: 790px;
  grid-template-columns: minmax(230px, 1fr) 180px minmax(280px, 1.15fr);
  gap: 0;
  padding: 14px 16px 18px;
}

.method-test-column > p {
  height: 34px;
  margin: 0;
  color: #815264;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.test-column > p {
  text-align: right;
}

.method-test-nodes {
  display: grid;
  grid-template-rows: repeat(var(--graph-rows), 72px);
}

.production-method,
.test-method {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  align-self: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid #d8c9ce;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  flex-direction: column;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.test-method {
  align-items: flex-end;
  text-align: right;
}

.production-method:hover:not(:disabled),
.test-method:hover:not(:disabled) {
  border-color: #d84f67;
  transform: translateY(-1px);
}

.production-method:focus-visible,
.test-method:focus-visible {
  outline: 3px solid rgba(216, 79, 103, 0.25);
  outline-offset: 2px;
}

.production-method span,
.test-method span {
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-method strong,
.test-method strong {
  overflow: hidden;
  max-width: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-method:disabled,
.test-method:disabled {
  cursor: default;
}

.test-method:disabled:not(.is-selected, .is-covered, .is-missed, .is-extra, .is-automatic),
.production-method:disabled:not(.is-changed) {
  opacity: 0.74;
}

.test-method.is-automatic {
  border-style: dashed;
  border-color: #b99abc;
  background: #fbf4fc;
  color: #62436a;
  cursor: default;
}

.test-method.is-automatic span {
  color: #805887;
}

.production-method.is-wrong {
  border-color: #d84f67;
  background: #fff0f3;
  animation: testNodeShake 320ms ease both;
}

.production-method.is-changed {
  border-color: #d84f67;
  background: #d84f67;
  box-shadow: 0 9px 20px rgba(216, 79, 103, 0.18);
  color: var(--white);
  opacity: 1;
}

.production-method.is-changed span {
  color: #ffe0e8;
}

.test-method.is-selected {
  border-color: #9d3047;
  background: #fff0f4;
  box-shadow: inset 4px 0 #d84f67;
}

.test-method.is-covered {
  border-color: #16815d;
  background: #edf8f4;
  box-shadow: inset 4px 0 #16815d;
}

.test-method.is-missed {
  border-color: #c93651;
  background: #fff0f3;
  box-shadow: inset 4px 0 #c93651;
}

.test-method.is-extra {
  border-color: #d49a2a;
  background: #fff8e8;
  box-shadow: inset 4px 0 #d49a2a;
}

.method-test-lines {
  width: 180px;
  height: calc(var(--graph-rows) * 72px);
  margin-top: 34px;
  overflow: visible;
}

.method-test-edge {
  fill: none;
  stroke: #c9c2c5;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transition: stroke 160ms ease, stroke-width 160ms ease, opacity 160ms ease;
}

.production-call-edge,
.test-lifecycle-edge {
  fill: none;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  transition: stroke 160ms ease, stroke-width 160ms ease, opacity 160ms ease;
}

.production-call-edge {
  stroke: #7f94c3;
  stroke-dasharray: 6 4;
}

.test-lifecycle-edge {
  stroke: #a681aa;
  stroke-dasharray: 2 4;
}

.method-test-edge.is-selected,
.production-call-edge.is-selected,
.test-lifecycle-edge.is-selected {
  stroke: #d84f67;
  stroke-width: 3;
}

.method-test-edge.is-covered,
.production-call-edge.is-covered,
.test-lifecycle-edge.is-covered {
  stroke: #16815d;
  stroke-width: 3;
}

.method-test-edge.is-missed,
.production-call-edge.is-missed,
.test-lifecycle-edge.is-missed {
  stroke: #c93651;
  stroke-width: 2.5;
  stroke-dasharray: 5 4;
}

.method-test-edge.is-extra,
.production-call-edge.is-extra,
.test-lifecycle-edge.is-extra {
  stroke: #d49a2a;
  stroke-width: 2.5;
}

@keyframes testNodeShake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(4px); }
  70% { transform: translateX(-3px); }
}

.testing-diff {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #d9dce4;
  border-radius: 12px;
  background: #171923;
  color: #f6f7fb;
}

.testing-diff.is-hidden {
  display: none;
}

.testing-diff-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #afb6c8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testing-diff-heading strong {
  color: #ff9cb5;
  text-transform: none;
}

.diff-line {
  display: block;
  overflow-x: auto;
  padding: 9px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.diff-line.is-removed {
  background: rgba(216, 79, 103, 0.15);
  color: #ffb4c7;
}

.diff-line.is-added {
  background: rgba(22, 129, 93, 0.19);
  color: #9ce7ca;
}

.testing-diff p {
  margin: 0;
  padding: 12px 14px;
  color: #cbd0dc;
  font-size: 0.82rem;
  line-height: 1.5;
}

.testing-selection-summary,
.testing-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.testing-selection-summary > div,
.testing-result-metrics > div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f8fa;
}

.testing-selection-summary span,
.testing-selection-summary strong,
.testing-result-metrics span,
.testing-result-metrics strong {
  display: block;
}

.testing-selection-summary span,
.testing-result-metrics span {
  margin-bottom: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testing-selection-summary strong,
.testing-result-metrics strong {
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.35;
}

.testing-status {
  min-height: 24px;
  margin: 0 0 14px;
  color: #744050;
  font-size: 0.84rem;
  line-height: 1.5;
}

.testing-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px;
}

.testing-feedback > div:first-child strong,
.testing-feedback > div:first-child span {
  display: block;
}

.testing-feedback > div:first-child strong {
  margin-bottom: 4px;
}

.testing-feedback-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.testing-feedback-metrics > span {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.testing-feedback-metrics small,
.testing-feedback-metrics strong {
  display: block;
}

.testing-feedback-metrics small {
  margin-bottom: 2px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.testing-feedback-metrics strong {
  font-size: 0.78rem;
}

.testing-result {
  min-height: 430px;
}

.testing-result .game-result-mark {
  width: 68px;
  height: 68px;
}

.testing-result-metrics {
  width: min(100%, 650px);
  margin: 2px 0 18px;
}

.testing-result > p {
  max-width: 650px;
}

.testing-takeaway {
  padding: 12px 14px;
  border-left: 3px solid #d84f67;
  background: #fff3f6;
}

.game-result {
  display: flex;
  min-height: 330px;
  justify-content: center;
  flex-direction: column;
}

.game-result-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  background: #e7efff;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;
}

.game-card-testing .game-result-mark {
  background: #fff0f3;
  color: #d84f67;
}

.game-result h4 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.game-result p {
  max-width: 470px;
  margin-bottom: 24px;
  color: var(--muted);
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.game-footer a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

.game-card-coupling,
.game-card-testing {
  grid-column: 1 / -1;
}

.game-card-coupling .game-header p {
  max-width: 650px;
}

.game-card-coupling .game-stage {
  padding: clamp(24px, 4vw, 48px);
}

.game-card-coupling .game-intro > p:not(.game-kicker) {
  max-width: 720px;
}

.lab-story {
  position: relative;
  display: grid;
  min-height: 440px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 197, 224, 0.2), transparent 27%),
    radial-gradient(circle at 16% 84%, rgba(72, 103, 255, 0.28), transparent 30%),
    #0c1631;
  color: var(--white);
  outline: none;
}

.lab-story::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.lab-story-skip {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 22, 49, 0.5);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.lab-story-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 220px;
}

.lab-story-scene {
  display: grid;
  min-height: 220px;
  align-content: center;
  gap: 13px;
  animation: labStoryIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lab-story-scene p {
  margin: 0;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-story-scene h4 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
}

.lab-story-scene strong {
  color: #b9c8ff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.4;
}

.lab-story-progress {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 6vw, 64px);
  bottom: 24px;
  left: clamp(28px, 6vw, 64px);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.lab-story-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  transition: width 500ms ease;
}

@keyframes labStoryIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(7px);
  }

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

.lab-entry {
  display: grid;
  gap: 24px;
}

.lab-entry-heading {
  max-width: 780px;
}

.lab-entry-heading h4 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.lab-entry-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lab-entry-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lab-entry-chapters article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faff;
}

.lab-entry-chapters span,
.lab-entry-optional {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lab-entry-chapters strong {
  color: var(--ink);
  font-size: 1rem;
}

.lab-entry-chapters p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.lab-entry-actions,
.lab-result-actions,
.lab-completion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.lab-entry-actions > button {
  display: grid;
  min-width: min(100%, 285px);
  gap: 3px;
  text-align: left;
}

.lab-entry-actions > button span {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.82;
}

.lab-entry-optional {
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  line-height: 1.55;
  text-transform: none;
}

.lab-entry-optional strong {
  color: var(--ink-2);
}

.coupling-lab {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.lab-progress-row,
.lab-title-row,
.workspace-heading,
.simulation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.lab-progress-row .game-progress {
  margin: 0;
}

.lab-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-journey-step {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #8a95a6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
}

.lab-journey-step::before {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 2px;
  background: #dbe1eb;
  content: "";
}

.lab-journey-step:first-child::before {
  left: 15px;
}

.lab-journey-step:last-child::before {
  right: calc(100% - 15px);
}

.lab-journey-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #cbd3df;
  border-radius: 50%;
  background: var(--panel);
}

.lab-journey-step small {
  display: grid;
  gap: 2px;
  max-width: 110px;
  line-height: 1.35;
}

.lab-journey-step small strong {
  color: inherit;
  font-size: 0.68rem;
}

.lab-journey-step.is-optional:not(.is-current):not(.is-complete) {
  color: #9a89a9;
}

.lab-journey-step.is-current,
.lab-journey-step.is-complete {
  color: var(--blue);
}

.lab-journey-step.is-current > span,
.lab-journey-step.is-complete > span {
  border-color: var(--blue);
}

.lab-journey-step.is-current > span {
  background: var(--blue);
  color: var(--white);
}

.lab-title-row {
  align-items: center;
  padding-top: 8px;
}

.lab-title-row > div {
  max-width: 760px;
}

.lab-title-row h4 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.lab-title-row p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lab-title-row > span,
.workspace-heading > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.lab-stakes {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #efd3a0;
  border-radius: 11px;
  background: #fff9ed;
}

.lab-stakes span {
  flex: 0 0 auto;
  color: #9a5e00;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lab-stakes p {
  margin: 0;
  color: #695533;
  font-size: 0.78rem;
  line-height: 1.5;
}

.lab-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
}

.lab-terms > div {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
}

.lab-terms > div + div {
  border-left: 1px solid var(--line);
}

.lab-terms strong {
  color: var(--ink);
  font-size: 0.83rem;
}

.lab-terms span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.lab-research-note {
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.lab-research-note strong {
  color: var(--ink-2);
}

.lab-terms-reminder {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faff;
  color: var(--muted);
  font-size: 0.78rem;
}

.lab-terms-reminder summary {
  color: var(--ink-2);
  font-weight: 800;
  cursor: pointer;
}

.lab-terms-reminder p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.lab-objectives,
.tutorial-callout {
  padding: 18px 20px;
  border: 1px solid #b9c9f6;
  border-radius: 14px;
  background: #f1f5ff;
}

.lab-objectives ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-objectives li {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.lab-mission-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid #b9c9f6;
  border-radius: 14px;
  background: #f1f5ff;
}

.lab-mission-focus .evidence-heading {
  margin-bottom: 5px;
}

.lab-mission-focus > div > strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lab-mission-focus details {
  min-width: 230px;
  color: var(--muted);
  font-size: 0.74rem;
}

.lab-mission-focus summary {
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.lab-mission-focus ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding-left: 18px;
  line-height: 1.45;
}

.tutorial-callout > p:nth-child(2) {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.tutorial-callout > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tutorial-callout > div p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.tutorial-callout > div strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
}

.lab-workspace {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8faff;
}

.workspace-heading {
  align-items: center;
  margin-bottom: 14px;
}

.workspace-heading h5 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.workspace-heading .evidence-heading {
  margin-bottom: 4px;
}

.board-heading {
  margin-top: 28px;
}

.lab-evidence-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

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

.lab-evidence .research-graph {
  margin-bottom: 0;
  background: var(--white);
}

.lab-evidence .research-graph svg {
  max-height: 290px;
}

.lab-toolbox {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.lab-toolbox.team-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-tool {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.lab-tool strong {
  color: var(--ink-2);
  font-size: 0.78rem;
}

.lab-tool span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.lab-tool.is-current {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: #edf2ff;
}

.lab-howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.lab-howto > div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #e9edf4;
}

.lab-howto strong {
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.lab-howto span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.lab-howto-compact {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #e9edf4;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.lab-howto-compact strong {
  color: var(--ink-2);
}

.lab-status {
  min-height: 42px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  background: #eef9fb;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.lab-boundary {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c7d0de;
  border-radius: 14px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lab-boundary.is-guided,
.new-boundary.is-guided {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.11);
}

.lab-boundary.is-drop-target,
.new-boundary.is-drop-target {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 174, 202, 0.14);
  transform: translateY(-2px);
}

.lab-boundary.is-affected {
  animation: labBoundarySettle 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.boundary-handle {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #eef2f8;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: grab;
}

.boundary-handle > span:first-child {
  display: grid;
  gap: 2px;
}

.boundary-handle small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boundary-handle > span:last-child {
  color: #8490a2;
  font-size: 1.2rem;
}

.boundary-handle.is-selected,
.lab-piece.is-selected {
  outline: 3px solid rgba(36, 87, 255, 0.3);
  outline-offset: -3px;
}

.boundary-handle:disabled,
.lab-piece:disabled,
.new-boundary:disabled {
  cursor: default;
  opacity: 0.72;
}

.responsibility-list,
.ownership-list,
.people-list,
.ownership-evidence,
.contribution-evidence {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.lab-piece {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #d2d9e4;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: grab;
}

.lab-piece:hover:not(:disabled),
.boundary-handle:hover:not(:disabled) {
  border-color: var(--blue);
  background: #f5f7ff;
}

.lab-piece.is-guided {
  border-color: var(--blue);
  background: #edf2ff;
}

.responsibility-piece > span,
.ownership-piece > span {
  color: #8c98aa;
}

.responsibility-piece .piece-label {
  flex: 1;
  color: var(--ink-2);
}

.lab-piece.has-impact {
  border-width: 2px;
}

.lab-piece.has-impact.is-resolved {
  border-color: #8bcdb7;
  background: #eff9f5;
}

.lab-piece.has-impact.is-remaining {
  border-color: #e7bf72;
  background: #fff8e9;
}

.lab-piece.is-affected {
  animation: labPieceArrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lab-piece .piece-impact {
  flex: 0 0 auto;
  color: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.new-boundary {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 2px dashed #b9c3d2;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
}

.new-boundary > span {
  color: var(--blue);
  font-size: 1.3rem;
}

.new-boundary small {
  color: var(--muted);
  font-size: 0.7rem;
}

.boundary-section-label {
  margin: 0;
  padding: 12px 12px 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ownership-list {
  padding-bottom: 4px;
}

.ownership-piece {
  border-color: #b9c9f6;
  background: #f1f5ff;
  color: #2448b9;
}

.people-list {
  padding-top: 8px;
}

.person-piece {
  justify-content: space-between;
}

.person-piece > span:first-child {
  display: grid;
  gap: 2px;
}

.person-piece small,
.empty-ownership {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.empty-ownership {
  padding: 6px 2px;
}

.team-evidence {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.team-evidence > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.ownership-evidence,
.contribution-evidence {
  padding: 0;
}

.ownership-evidence li,
.contribution-evidence li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f3f5f9;
  color: var(--ink-2);
  font-size: 0.76rem;
}

.ownership-evidence span {
  color: var(--muted);
}

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

.contribution-evidence li > span {
  display: grid;
  gap: 2px;
}

.contribution-evidence li > span:last-child {
  text-align: right;
}

.contribution-evidence small {
  color: var(--muted);
  font-size: 0.62rem;
}

.boundary-impact {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.boundary-impact-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.boundary-impact-heading .evidence-heading {
  margin: 0;
}

.boundary-impact-heading > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.boundary-impact-list {
  display: grid;
  gap: 7px;
}

.boundary-impact-row {
  display: grid;
  grid-template-columns: 30px minmax(160px, 0.8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  animation: labImpactReveal 500ms calc(var(--impact-index, 0) * 90ms) ease both;
}

@keyframes labBoundarySettle {
  0% { box-shadow: 0 0 0 0 rgba(36, 87, 255, 0); transform: scale(0.985); }
  45% { box-shadow: 0 0 0 5px rgba(36, 87, 255, 0.13); transform: scale(1.01); }
  100% { box-shadow: 0 0 0 0 rgba(36, 87, 255, 0); transform: scale(1); }
}

@keyframes labPieceArrive {
  0% { opacity: 0.35; transform: translateY(-10px); }
  55% { opacity: 1; transform: translateY(3px); }
  100% { transform: translateY(0); }
}

@keyframes labImpactReveal {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.boundary-impact-row.is-resolved {
  border-color: #b9dfd2;
  background: #eff9f5;
}

.boundary-impact-row.is-remaining {
  border-color: #eed39b;
  background: #fff8e9;
}

.impact-state {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-2);
  font-weight: 900;
}

.boundary-impact-row > div {
  display: grid;
  gap: 2px;
}

.boundary-impact-row strong {
  color: var(--ink-2);
  font-size: 0.76rem;
}

.boundary-impact-row small,
.boundary-impact-row p {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.boundary-impact-row p {
  margin: 0;
  text-align: right;
}

.action-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.action-trail > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
}

.action-trail small {
  padding: 6px 8px;
  border-radius: 7px;
  background: #e9edf4;
  color: var(--ink-2);
  font-size: 0.68rem;
}

.lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.lab-controls .game-button {
  margin-left: auto;
}

.lab-secondary-button {
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.lab-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.simulation-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.simulation-panel.is-waiting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.simulation-panel.is-waiting strong {
  color: var(--ink-2);
  font-size: 0.82rem;
}

.simulation-panel.is-waiting > div:last-child {
  max-width: 440px;
}

.simulation-panel.is-waiting > div:last-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.simulation-disclaimer {
  display: block;
  margin-top: 9px;
  color: #768296;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.45;
}

.simulation-heading {
  align-items: baseline;
  margin-bottom: 12px;
}

.simulation-heading .evidence-heading {
  margin: 0;
}

.simulation-heading strong {
  font-size: 0.88rem;
}

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

.secondary-metrics {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.secondary-metrics summary {
  width: fit-content;
  color: var(--ink-2);
  font-weight: 800;
  cursor: pointer;
}

.secondary-metrics .metric-grid {
  margin-top: 10px;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}

.metric-card > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
}

.metric-card > strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.metric-card b {
  color: #8b96a8;
  font-weight: 500;
}

.metric-card small {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.metric-card.is-improved {
  border-color: #9ed6c3;
  background: #eff9f5;
}

.metric-card.is-improved > strong {
  color: #08704e;
}

.simulation-narrative {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  background: #eef9fb;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.55;
}

.lab-result {
  min-height: 440px;
}

.lab-result > p:not(.game-kicker) {
  max-width: 760px;
}

.strategy-tradeoff {
  display: grid;
  max-width: 760px;
  gap: 5px;
  margin-bottom: 20px;
  padding: 15px 17px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  background: #eef9fb;
}

.strategy-tradeoff strong {
  color: var(--ink-2);
  font-size: 0.76rem;
}

.strategy-tradeoff span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.lab-result .lab-result-summary {
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.lab-completion-actions,
.lab-result-actions {
  margin-top: 16px;
}

.lab-piece:focus-visible,
.boundary-handle:focus-visible,
.new-boundary:focus-visible,
.lab-secondary-button:focus-visible {
  outline: 3px solid rgba(36, 87, 255, 0.32);
  outline-offset: 2px;
}

.experience {
  background: var(--panel);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(56px, 10vw, 130px);
}

.sticky-heading {
  position: sticky;
  top: 124px;
  align-self: start;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.timeline-org {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-item h3 {
  margin-bottom: 13px;
}

.timeline-item div:last-child > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-preview {
  border-top: 1px solid var(--line);
}

.featured-publications {
  border-top: 1px solid var(--line);
}

.publication-teaser {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 30px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.publication-year {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.publication-teaser h3 {
  max-width: 850px;
  margin-bottom: 10px;
}

.publication-teaser h3 a,
.publication-entry h4 a {
  text-decoration: none;
}

.publication-teaser h3 a:hover,
.publication-entry h4 a:hover {
  color: var(--blue);
}

.publication-teaser p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-type {
  margin-bottom: 10px;
  color: var(--cyan);
}

.publication-cta {
  margin-top: 32px;
}

.education-service {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(44px, 9vw, 120px);
}

.compact-list {
  border-top: 1px solid var(--line);
}

.compact-list article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.compact-list article > span {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.compact-list h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.compact-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card {
  align-self: start;
  padding: clamp(30px, 5vw, 50px);
  background: var(--paper);
}

.service-card h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.service-card > p:not(.section-index) {
  color: var(--muted);
}

.contact {
  padding-top: 0;
  background: var(--panel);
}

.contact-card {
  padding: clamp(42px, 7vw, 84px);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--blue), #142c79 74%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 850px;
}

.contact-card > p:not(.section-index) {
  max-width: 740px;
  color: #dce5ff;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer-inner {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.publications-hero {
  padding-bottom: 74px;
}

.publication-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(36px, 8vw, 110px);
}

.publications-hero h1 {
  margin-bottom: 0;
  font-size: clamp(3.1rem, 6.8vw, 6.2rem);
}

.publications-hero .hero-lede {
  margin-bottom: 8px;
}

.publication-record {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.publication-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
}

.publication-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.year-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.year-group[hidden] {
  display: none;
}

.year-heading {
  margin: 5px 0 0;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.publication-entry[hidden] {
  display: none;
}

.publication-kind {
  margin: 3px 0 0;
  color: var(--cyan);
}

.publication-entry h4 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.authors,
.venue {
  max-width: 920px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.venue {
  margin-bottom: 0;
  color: var(--ink-2);
  font-weight: 700;
}

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

.dataset-list {
  display: grid;
  gap: 14px;
}

.dataset-list a {
  display: grid;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.dataset-list a:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.dataset-list span,
.dataset-list small {
  color: var(--muted);
}

.dataset-list strong {
  margin: 3px 0 10px;
  font-size: 1.08rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .publication-hero-grid,
  .experience-layout,
  .two-column-section,
  .section-heading-split,
  .arcade-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
  }

  .hero-portrait {
    width: min(390px, 88vw);
    justify-self: start;
    margin-left: 18px;
  }

  .sticky-heading {
    position: static;
  }

  .section-heading-split {
    align-items: start;
    gap: 20px;
  }

  .publication-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

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

  .nav-shell {
    min-height: 68px;
  }

  .wordmark-name {
    max-width: 190px;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    flex-direction: column;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 8px 0;
    font-size: 1rem;
  }

  .hero {
    padding-top: 64px;
  }

  h1,
  .publications-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .evidence-strip,
  .focus-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .evidence-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .focus-card,
  .project-card {
    min-height: 0;
  }

  .focus-card h3,
  .project-card h3 {
    margin-top: 40px;
  }

  .timeline-item,
  .publication-teaser,
  .year-group,
  .publication-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .year-group {
    gap: 18px;
  }

  .year-heading {
    font-size: 1.2rem;
  }

  .publication-entry {
    gap: 12px;
  }

  .publication-kind {
    margin-bottom: 0;
  }

  .game-header,
  .game-stage {
    padding-right: 22px;
    padding-left: 22px;
  }

  .game-header {
    min-height: 235px;
  }

  .game-header h3 {
    margin-top: 48px;
  }

  .game-footer {
    align-items: flex-start;
    padding-right: 22px;
    padding-left: 22px;
    flex-direction: column;
  }

  .test-option label {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }

  .graph-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .history-graph,
  .evolution-graph,
  .team-graph,
  .responsibility-graph {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #b8c2d1 transparent;
  }

  .history-graph .graph-title,
  .evolution-graph .graph-title,
  .team-graph .graph-title,
  .responsibility-graph .graph-title,
  .history-graph svg,
  .evolution-graph svg,
  .team-graph svg,
  .responsibility-graph svg {
    width: 500px;
    max-width: none;
  }

  .history-graph::after,
  .evolution-graph::after,
  .team-graph::after,
  .responsibility-graph::after {
    position: sticky;
    left: 0;
    display: block;
    width: 100%;
    padding: 7px 12px;
    border-top: 1px solid var(--line);
    background: #f8faff;
    color: var(--muted);
    content: "Swipe horizontally to inspect the full graph →";
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 600;
  }

  .impact-track {
    padding: 13px 8px;
  }

  .impact-arrow {
    flex-basis: 15px;
    font-size: 0.76rem;
  }

  .impact-node {
    min-height: 68px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .impact-node strong {
    font-size: 0.67rem;
  }

  .footer-inner {
    align-items: flex-start;
    justify-content: center;
    padding-block: 28px;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .lab-journey-step small > span {
    display: none;
  }

  .lab-terms,
  .tutorial-callout > div,
  .team-evidence,
  .lab-howto,
  .lab-mission-focus {
    grid-template-columns: 1fr;
  }

  .lab-mission-focus details {
    min-width: 0;
  }

  .lab-terms > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lab-toolbox.team-tools,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .method-test-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .method-test-mobile-hint {
    display: block;
    margin: 0;
    padding: 9px 18px 0;
    color: var(--muted);
    font-size: 0.75rem;
  }

  .testing-feedback {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .game-card-testing .game-stage {
    padding-right: 16px;
    padding-left: 16px;
  }

  .testing-steps,
  .testing-selection-summary,
  .testing-result-metrics {
    grid-template-columns: 1fr;
  }

  .testing-step {
    grid-template-columns: 28px 1fr;
  }

  .testing-step > span {
    width: 28px;
    height: 28px;
  }

  .testing-ticket {
    grid-template-columns: 1fr;
  }

  .method-test-heading {
    padding-right: 14px;
    padding-left: 14px;
  }

  .method-test-legend {
    grid-template-columns: 1fr;
  }

  .method-test-graph {
    min-width: 740px;
    grid-template-columns: 220px 150px 330px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .method-test-lines {
    width: 150px;
  }

  .testing-feedback-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .game-card-coupling .game-stage {
    padding-right: 16px;
    padding-left: 16px;
  }

  .lab-entry-chapters {
    grid-template-columns: 1fr;
  }

  .lab-story {
    min-height: 400px;
    padding: 28px 20px;
    border-radius: 15px;
  }

  .lab-story-frame,
  .lab-story-scene {
    min-height: 240px;
  }

  .lab-story-scene h4 {
    font-size: clamp(1.8rem, 10vw, 2.65rem);
  }

  .lab-story-progress {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .lab-stakes {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .lab-entry-actions,
  .lab-entry-actions > button,
  .lab-result-actions,
  .lab-result-actions > button,
  .lab-completion-actions,
  .lab-completion-actions > button {
    width: 100%;
  }

  .lab-progress-row,
  .lab-title-row,
  .workspace-heading,
  .simulation-panel.is-waiting {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .lab-progress-row .game-score,
  .workspace-heading > span {
    display: none;
  }

  .lab-title-row > span {
    order: -1;
  }

  .lab-toolbox,
  .lab-toolbox.team-tools,
  .metric-grid,
  .contribution-evidence {
    grid-template-columns: 1fr;
  }

  .lab-toolbox {
    gap: 6px;
  }

  .lab-tool {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

  .boundary-impact-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .boundary-impact-row {
    grid-template-columns: 28px 1fr;
  }

  .boundary-impact-row p {
    grid-column: 2;
    text-align: left;
  }

  .new-boundary {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-controls .game-button {
    width: 100%;
    margin-left: 0;
    order: -1;
  }

  .lab-secondary-button {
    flex: 1;
  }

  .simulation-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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