:root {
  --ink: #11132f;
  --muted: #676a84;
  --line: #dfe2f3;
  --soft: #f4f5ff;
  --paper: #fbfbff;
  --navy: #10083f;
  --navy-2: #22236f;
  --teal: #5368ff;
  --teal-bright: #8d7dff;
  --coral: #9b64ff;
  --blue: #5578ff;
  --gold: #7f6cff;
  --green: #6f8cff;
  --purple: #8f5dff;
  --max: 1240px;
  --gutter: clamp(22px, 5vw, 72px);
  --display: clamp(3.25rem, 6vw, 6.4rem);
  --h2: clamp(2.3rem, 4.5vw, 4.75rem);
  --h3: clamp(1.5rem, 2.2vw, 2.15rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: rgba(251, 251, 255, 0.94);
  border-bottom: 1px solid rgba(34, 35, 111, 0.12);
  transition: min-height 220ms ease, box-shadow 220ms ease;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  min-height: 62px;
  box-shadow: 0 10px 30px rgba(13, 35, 42, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand b {
  color: var(--teal);
}

.brand-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 2.4;
}

.primary-nav {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
}

.primary-nav a {
  position: relative;
  color: #263741;
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  padding: 10px 15px;
  color: white;
  background: var(--navy);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.header-action svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-action:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.language-selector {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 62px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(34, 35, 111, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-trigger[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(82, 96, 255, 0.1);
}

.language-trigger svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.language-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 168px;
  padding: 6px;
  background: white;
  border: 1px solid rgba(34, 35, 111, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(16, 8, 63, 0.16);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-checked="true"] {
  background: #f0f1ff;
}

.language-menu button span {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.language-menu button small {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  min-height: min(860px, calc(100vh - 72px));
  padding: clamp(105px, 12vh, 155px) var(--gutter) clamp(55px, 7vh, 85px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(133deg, rgba(237, 54, 255, 0.13) 0%, transparent 29%),
    linear-gradient(316deg, rgba(49, 119, 255, 0.22) 0%, transparent 38%),
    linear-gradient(122deg, #0d0636 0%, #1d1b67 56%, #2938a8 112%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(116, 129, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 129, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 1px, transparent 1.5px);
  background-size: 72px 72px, 72px 72px, 18px 18px;
  filter: blur(0.65px);
  mask-image: linear-gradient(108deg, black 0%, rgba(0, 0, 0, 0.76) 48%, transparent 91%);
  transform: scale(1.01);
}

.hero-glow {
  position: absolute;
  border-radius: 0;
  filter: blur(1.4px);
  pointer-events: none;
}

.hero-glow-one {
  top: -36%;
  left: -18%;
  width: 64vw;
  height: 64vw;
  background: conic-gradient(from 210deg, rgba(245, 55, 255, 0.62), rgba(125, 78, 255, 0.18), rgba(56, 129, 255, 0.56), rgba(245, 55, 255, 0.62));
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 0 63.8%, black 64% 64.45%, transparent 64.7% 72.8%, black 73% 73.25%, transparent 73.5%);
  mask: radial-gradient(circle, transparent 0 63.8%, black 64% 64.45%, transparent 64.7% 72.8%, black 73% 73.25%, transparent 73.5%);
  transform: rotate(-12deg);
}

.hero-glow-two {
  right: -9%;
  bottom: -2%;
  width: 68vw;
  height: 21vw;
  background: linear-gradient(96deg, transparent 0%, rgba(238, 54, 255, 0.08) 28%, rgba(73, 91, 255, 0.22) 60%, rgba(49, 139, 255, 0.35) 78%, transparent 100%);
  clip-path: polygon(0 43%, 100% 0, 100% 16%, 5% 71%);
  transform: rotate(-3deg);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: 100%;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(210, 246, 244, 0.76);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: var(--display);
  font-weight: 460;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--green);
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-weight: 630;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: var(--navy);
  background: #dce1ff;
}

.button-primary:hover {
  background: white;
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  min-height: min(68vw, 670px);
  max-height: 690px;
  border: 0;
  border-radius: 3px;
  background: rgba(16, 12, 70, 0.14);
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: none;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-visual::before {
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.hero-visual::after {
  top: 50%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero-visual canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-hand {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: clamp(150px, 14vw, 210px);
  height: auto;
  max-width: none;
  opacity: 0.3;
  filter: saturate(0.68) brightness(1.05) drop-shadow(0 18px 24px rgba(13, 7, 55, 0.3));
  pointer-events: none;
  transform-origin: 50% 92%;
  will-change: top, left, transform;
}

.hero-hand-a {
  mix-blend-mode: screen;
}

.hero-hand-b {
  mix-blend-mode: luminosity;
}

.visual-label {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 30px;
}

.visual-label span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.visual-label strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
  font-weight: 560;
}

.mode-chips {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 24px;
  left: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mode-chips button {
  appearance: none;
  padding: 9px 7px;
  color: rgba(255, 255, 255, 0.36);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.64rem;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: color 260ms ease, border-color 260ms ease, background 260ms ease;
}

.mode-chips button:hover,
.mode-chips button:focus-visible {
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
}

.mode-chips button.active {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.42);
}

.motion-toggle {
  position: absolute;
  z-index: 5;
  top: 26px;
  right: 26px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.68rem;
}

.pause-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.pause-icon::before,
.pause-icon::after {
  position: absolute;
  top: 6px;
  width: 2px;
  height: 8px;
  background: currentColor;
  content: "";
}

.pause-icon::before { left: 7px; }
.pause-icon::after { right: 7px; }

.motion-toggle[aria-pressed="true"] .pause-icon::before {
  top: 5px;
  left: 8px;
  width: 0;
  height: 0;
  background: none;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.motion-toggle[aria-pressed="true"] .pause-icon::after {
  display: none;
}

.research-nav {
  position: sticky;
  z-index: 80;
  top: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 var(--gutter);
  background: rgba(251, 250, 247, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.research-label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
}

.research-label span {
  color: var(--teal);
}

.research-links {
  display: flex;
  gap: clamp(20px, 2.7vw, 40px);
}

.research-links a {
  position: relative;
  padding: 24px 0 20px;
  color: #52616a;
  font-size: 0.82rem;
  font-weight: 580;
  text-decoration: none;
}

.research-links a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.research-links a.active {
  color: var(--ink);
}

.research-links a.active::after {
  transform: scaleX(1);
}

.section-pad {
  padding: clamp(90px, 11vw, 160px) var(--gutter);
}

.section-heading {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading.center {
  max-width: 940px;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
  gap: clamp(40px, 9vw, 130px);
  align-items: end;
}

.section-heading h2,
.apparatus h2,
.closing-story h2 {
  margin: 0;
  font-size: var(--h2);
  font-weight: 470;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-heading .dek {
  max-width: 760px;
  margin: 26px auto 0 !important;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem) !important;
}

.section-heading .conditions-insight {
  max-width: 760px;
  margin: 20px auto 0 !important;
  padding: 16px 20px;
  color: #34454f !important;
  background: rgba(83, 104, 255, 0.055);
  border-left: 2px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: 0.93rem !important;
  line-height: 1.6 !important;
  text-align: left;
}

.conditions-insight strong {
  color: var(--ink);
  font-weight: 720;
}

.overview-question {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 36px;
  width: min(100%, 1040px);
  margin: clamp(70px, 9vw, 120px) auto 0;
  padding: clamp(28px, 4vw, 50px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.question-index {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.overview-question p {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: min(100%, var(--max));
  margin: 70px auto 0;
  border-top: 1px solid var(--line);
}

.overview-method-label {
  width: min(100%, var(--max));
  margin: 72px auto 0;
}

.overview-method-label .eyebrow {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 720;
  letter-spacing: 0.08em;
}

.overview-method-label + .overview-grid {
  margin-top: 16px;
}

.overview-item {
  padding: 32px 35px 0 0;
}

.overview-item + .overview-item {
  padding-left: 35px;
  border-left: 1px solid var(--line);
}

.item-number {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
}

.overview-item h3 {
  margin: 45px 0 12px;
  font-size: 1.28rem;
  font-weight: 610;
}

.overview-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tasks {
  padding-right: var(--gutter);
  background: linear-gradient(180deg, #f4f1fa 0%, #fbfaf7 100%);
  overflow: hidden;
}

.tasks .section-heading,
.tasks .carousel-controls {
  margin-right: var(--gutter);
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(calc(100% - var(--gutter)), var(--max));
  margin: 58px auto 20px;
}

.carousel-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.carousel-controls p span {
  color: var(--ink);
  font-weight: 700;
}

.carousel-controls div {
  display: flex;
  gap: 9px;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.carousel-controls button:hover {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.carousel-controls svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.task-carousel {
  display: grid;
  grid-auto-columns: minmax(360px, 38vw);
  grid-auto-flow: column;
  gap: 18px;
  padding: 0 var(--gutter) 20px max(var(--gutter), calc((100vw - var(--max)) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.task-carousel::-webkit-scrollbar {
  display: none;
}

.task-card {
  min-height: 630px;
  background: white;
  border: 1px solid #e2e7e9;
  scroll-snap-align: start;
}

.task-image {
  display: grid;
  place-items: center;
  height: 315px;
  padding: 24px;
  overflow: hidden;
  background: #fbfcfc;
  border-bottom: 1px solid var(--line);
}

.task-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.task-content {
  padding: 30px;
}

.task-tag {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-tag span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.collaboration-card .task-tag span { background: var(--coral); }
.competition-card .task-tag span { background: var(--blue); }
.conflict-card .task-tag span { background: var(--gold); }
.exchange-card .task-tag span { background: var(--green); }

.task-card h3 {
  margin: 0;
  font-size: var(--h3);
  font-weight: 520;
  letter-spacing: -0.035em;
}

.task-card .task-content > p:not(.task-tag) {
  min-height: 75px;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.task-card dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.task-card dl div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.task-card dt {
  color: #87939a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-card dd {
  margin: 0;
  color: #394a54;
  font-size: 0.82rem;
}

.conditions {
  background: white;
}

.condition-tabs {
  width: min(100%, 1120px);
  margin: 65px auto 0;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.tab-list button {
  position: relative;
  padding: 16px 10px 20px;
  color: #6a7880;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.tab-list button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.tab-list button[aria-selected="true"] {
  color: var(--ink);
}

.tab-list button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.condition-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(35px, 7vw, 100px);
  align-items: center;
  padding: 70px 0 20px;
}

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

.condition-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.condition-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.interaction-setups {
  background:
    radial-gradient(circle at 12% 8%, rgba(83, 104, 255, 0.14), transparent 29%),
    radial-gradient(circle at 90% 90%, rgba(143, 93, 255, 0.12), transparent 31%),
    #f6f7ff;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  width: min(var(--max), 100%);
  margin: clamp(58px, 7vw, 90px) auto 0;
}

.setup-card {
  --setup-accent: var(--blue);
  position: relative;
  min-width: 0;
  padding: clamp(26px, 3vw, 38px);
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 255, 0.88));
  border: 1px solid rgba(83, 104, 255, 0.18);
  border-radius: 7px 30px 7px 30px;
  box-shadow: 0 22px 55px rgba(34, 35, 111, 0.1);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.setup-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--setup-accent), rgba(143, 93, 255, 0.38), transparent 86%);
  content: "";
}

.setup-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(83, 104, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 104, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(135deg, black, transparent 55%);
  pointer-events: none;
}

.setup-card > * {
  position: relative;
  z-index: 1;
}

.setup-card:hover {
  border-color: rgba(83, 104, 255, 0.34);
  box-shadow: 0 28px 68px rgba(34, 35, 111, 0.14);
  transform: translateY(-4px);
}

.setup-collaboration { --setup-accent: #5368ff; }
.setup-competition { --setup-accent: #7165ff; }
.setup-conflict { --setup-accent: #9c5cff; }
.setup-exchange { --setup-accent: #4f7dff; }

.setup-card > header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 15px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(83, 104, 255, 0.11);
}

.setup-card > header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--setup-accent);
  font-size: 0.72rem;
  font-weight: 780;
  background: linear-gradient(145deg, rgba(83, 104, 255, 0.11), rgba(143, 93, 255, 0.04));
  border: 1px solid rgba(83, 104, 255, 0.16);
  border-radius: 4px 13px 4px 13px;
}

.setup-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.setup-mode-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.setup-card .setup-mode-heading small {
  max-width: none;
  color: var(--setup-accent);
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.setup-card header small {
  max-width: 145px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.setup-card .setup-game {
  display: grid;
  gap: 2px;
  justify-items: end;
  line-height: 1.3;
}

.setup-card .setup-game strong {
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-diagram {
  width: 100%;
  height: 194px;
  margin: 22px 0 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(83, 104, 255, 0.055), rgba(143, 93, 255, 0.025));
  border: 1px solid rgba(83, 104, 255, 0.1);
  border-radius: 5px 22px 5px 22px;
}

.setup-diagram .setup-zone {
  fill: rgba(83, 104, 255, 0.025);
  stroke: rgba(17, 19, 47, 0.55);
  stroke-width: 4;
  stroke-dasharray: 8 8;
}

.setup-diagram .setup-goal {
  fill: var(--setup-accent);
  stroke: white;
  stroke-width: 3;
}

.setup-diagram .setup-orbit {
  fill: none;
  stroke: rgba(17, 19, 47, 0.52);
  stroke-width: 3;
}

.setup-diagram path {
  fill: none;
  stroke: rgba(17, 19, 47, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-summary {
  min-height: 78px;
  margin: 0;
  padding: 0 4px 22px;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 560;
  line-height: 1.45;
  border-bottom: 1px solid rgba(83, 104, 255, 0.16);
}

.setup-condition {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(83, 104, 255, 0.045);
  border-left: 2px solid var(--setup-accent);
  border-radius: 0 12px 12px 0;
}

.setup-condition span {
  color: var(--setup-accent);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setup-condition p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.condition-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #eef3f3;
  border-radius: 2px;
}

.condition-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(#96a8ae 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
}

.puck {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: white;
  border: 5px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  font-size: 1.12rem;
  font-weight: 750;
  transform: translateY(-50%);
  box-shadow: 0 9px 26px rgba(15, 42, 51, 0.18);
}

.puck-a { left: 22%; background: var(--coral); }
.puck-b { right: 22%; background: var(--blue); }

.force-line {
  position: absolute;
  top: 50%;
  right: calc(22% + 62px);
  left: calc(22% + 62px);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(15, 92, 104, 0.65) 0 10px, transparent 10px 18px);
}

.bump-visual .puck,
.bump-visual .force-line {
  top: 64%;
}

.gaussian-bump {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(46%, 280px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -58%);
}

.gaussian-bump path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.gaussian-axis {
  stroke: rgba(83, 104, 255, 0.24);
  stroke-width: 1.25;
}

.gaussian-curve {
  stroke: #6579ff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.gaussian-guide {
  stroke: rgba(83, 104, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.barrier {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(146, 47, 53, 0.56);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96) 0 7%, rgba(255, 221, 214, 0.98) 18%, transparent 34%),
    radial-gradient(circle at 40% 34%, #f2a298 0 24%, #da625b 55%, #98343e 78%, #672837 100%);
  transform: translate(-50%, -50%);
  box-shadow:
    inset 12px 15px 22px rgba(255, 255, 255, 0.34),
    inset -15px -18px 24px rgba(80, 17, 29, 0.34),
    0 15px 18px rgba(90, 31, 39, 0.24),
    0 0 0 18px rgba(222, 93, 82, 0.08),
    0 0 0 38px rgba(222, 93, 82, 0.04);
}

.barrier::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 244, 240, 0.42);
  border-radius: inherit;
  content: "";
}

.barrier::after {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 28px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(2px);
  transform: rotate(-28deg);
  content: "";
}

.well {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 20px rgba(12, 133, 151, 0.1), 0 0 0 42px rgba(12, 133, 151, 0.05);
}

.hole-visual .puck-a { left: 32%; }
.hole-visual .puck-b { right: 32%; }
.hole-visual .force-line { left: calc(32% + 62px); right: calc(32% + 62px); }

.flat-visual .puck-a { animation: flat-left 3.2s ease-in-out infinite; }
.flat-visual .puck-b { animation: flat-right 3.2s ease-in-out infinite; }

@keyframes flat-left {
  50% { transform: translate(44px, -50%); }
}

@keyframes flat-right {
  50% { transform: translate(-44px, -50%); }
}

.apparatus {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
  min-height: 800px;
  padding: clamp(85px, 10vw, 145px) var(--gutter);
  color: white;
  background: linear-gradient(145deg, #171039, #26205b 58%, #0a5e65);
}

.apparatus-copy {
  max-width: 610px;
}

.apparatus-copy > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1.04rem;
}

.apparatus-list {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.apparatus-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.apparatus-list span {
  color: var(--teal-bright);
  font-size: 0.7rem;
  font-weight: 720;
}

.apparatus-media {
  position: relative;
  min-height: 600px;
}

.apparatus-media::before {
  position: absolute;
  inset: 6% 3%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.device-card,
.data-chain-card {
  position: absolute;
  display: grid;
  place-items: center;
  background: white;
  box-shadow: 0 30px 70px rgba(0, 18, 24, 0.34);
}

.device-card span,
.data-chain-card span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #75848b;
  font-size: 0.6rem;
  font-weight: 730;
  letter-spacing: 0.11em;
}

.device-card {
  top: 5%;
  left: 0;
  width: 40%;
  aspect-ratio: 1 / 1.15;
  padding: 38px;
}

.device-card img {
  max-height: 82%;
  object-fit: contain;
}

.data-chain-card {
  right: 0;
  bottom: 3%;
  width: 76%;
  min-height: 260px;
  padding: 30px;
}

.data-chain-card img {
  width: 100%;
  object-fit: contain;
}

.session {
  background: white;
}

.timeline {
  display: flex;
  width: min(100%, var(--max));
  min-height: 190px;
  margin: 72px auto 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.timeline-phase {
  flex: var(--weight) 0 min(130px, calc(var(--weight) * 15px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 105px;
  padding: 20px 16px;
  background: #edf2f4;
  border: 0;
  border-right: 1px solid white;
  cursor: pointer;
  text-align: left;
  transition: filter 180ms ease, transform 180ms ease;
}

.timeline-phase:hover {
  filter: brightness(0.97);
}

.timeline-phase[aria-expanded="true"] {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

.timeline-phase:nth-child(2) { background: #d9f1f2; }
.timeline-phase:nth-child(3) { background: #ece7f1; }
.timeline-phase.phase-collaboration { background: #f6dfd8; }
.timeline-phase.phase-competition { background: #dfeaf5; }
.timeline-phase.phase-conflict { background: #f7e9bf; }
.timeline-phase.phase-exchange { background: #dfefe5; }

.phase-number {
  font-size: 0.7rem;
  font-weight: 760;
}

.timeline-phase b {
  margin-top: auto;
  font-size: 0.83rem;
  line-height: 1.2;
}

.timeline-phase small {
  margin-top: 8px;
  color: #687780;
  font-size: 0.68rem;
}

.timeline-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 20px 65px;
  width: min(100%, var(--max));
  min-height: 185px;
  margin: 0 auto;
  padding: 30px 35px;
  background: var(--navy);
  color: white;
}

.timeline-detail .eyebrow {
  grid-row: 1 / span 2;
  color: var(--teal-bright);
}

.timeline-detail h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.timeline-detail > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.93rem;
}

.protocol-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: min(100%, var(--max));
  margin: 70px auto 0;
}

.protocol-figure {
  margin: 0;
  padding: 24px;
  background: var(--soft);
}

.protocol-figure img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.protocol-figure figcaption {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.protocol-figure figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: white;
  background: linear-gradient(135deg, #160d34, #2a1b58 60%, #0b6265);
}

.metric {
  display: flex;
  gap: 22px;
  align-items: end;
  min-height: 205px;
  padding: 42px var(--gutter);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.metric strong {
  color: #bff3ed;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  font-weight: 420;
  letter-spacing: -0.06em;
  line-height: 0.83;
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.learning {
  background: #f6f4fa;
}

.learning-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, var(--max));
  margin: 70px auto 0;
  border-top: 1px solid var(--line);
}

.learning-steps article {
  padding: 26px 25px 0 0;
}

.learning-steps article + article {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.learning-steps span {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 720;
}

.learning-steps h3 {
  margin: 40px 0 9px;
  font-size: 1.22rem;
  font-weight: 620;
}

.learning-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.architecture {
  width: min(100%, var(--max));
  margin: 72px auto 0;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
}

.architecture img {
  width: 100%;
}

.architecture figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.closing-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  color: white;
  background: var(--navy);
}

.closing-visual {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(227, 66, 255, 0.18), transparent 20%),
    radial-gradient(circle at 68% 40%, rgba(71, 128, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #10063d, #27236f 58%, #3e43bd);
  cursor: default;
  outline: none;
}

.closing-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
}

.closing-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(120deg, rgba(246, 72, 255, 0.08), transparent 34%, rgba(65, 135, 255, 0.13));
  content: "";
  pointer-events: none;
}

.closing-touch-image {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 116%;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 28px 38px rgba(7, 4, 32, 0.34));
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.closing-touch-image-human {
  clip-path: inset(0 50% 0 0);
  animation: human-hand-contact 6s ease-in-out infinite;
}

.closing-touch-image-robot {
  clip-path: inset(0 0 0 50%);
  animation: robot-hand-contact 6s ease-in-out infinite;
}

.closing-touch-field {
  position: absolute;
  z-index: 2;
  top: calc(50% - clamp(38px, 4.6vw, 58px));
  left: 50%;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(174, 130, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(97, 122, 255, 0.07), 0 0 70px rgba(227, 66, 255, 0.18);
  transform: translate(-50%, -50%);
  animation: contact-field-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

.closing-touch-field::before,
.closing-touch-field::after,
.closing-touch-field i {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(113, 148, 255, 0.42);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.closing-touch-field::before { width: 176px; height: 176px; }
.closing-touch-field::after { width: 250px; height: 250px; opacity: 0.42; }
.closing-touch-field i {
  width: 12px;
  height: 12px;
  background: #d768ff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 20px rgba(105, 151, 255, 0.9);
  animation: touch-pulse 2.2s ease-in-out infinite;
}

@keyframes human-hand-contact {
  0%, 100% { transform: translate(-50%, -50%) translateX(-26px) translateY(3px); }
  45%, 58% { transform: translate(-50%, -50%) translateX(0) translateY(-1px); }
}

@keyframes robot-hand-contact {
  0%, 100% { transform: translate(-50%, -50%) translateX(26px) translateY(-3px); }
  45%, 58% { transform: translate(-50%, -50%) translateX(0) translateY(1px); }
}

@keyframes contact-field-breathe {
  0%, 100% {
    border-color: rgba(174, 130, 255, 0.42);
    box-shadow: 0 0 0 18px rgba(97, 122, 255, 0.05), 0 0 55px rgba(227, 66, 255, 0.14);
    transform: translate(-50%, -50%) scale(0.94);
  }
  45%, 58% {
    border-color: rgba(244, 99, 255, 0.76);
    box-shadow: 0 0 0 30px rgba(97, 122, 255, 0.09), 0 0 95px rgba(227, 66, 255, 0.34);
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes touch-pulse {
  50% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.5); }
}

.closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(70px, 9vw, 140px) var(--gutter);
}

.closing-copy h2 {
  max-width: 650px;
  font-size: clamp(2.45rem, 4.5vw, 4.8rem);
}

.closing-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 35px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1.02rem;
}

.resources {
  background: white;
}

.resource-grid {
  width: min(100%, var(--max));
  margin: 70px auto 0;
  border-top: 1px solid var(--line);
}

.resource-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 35px;
  align-items: center;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.resource-card:hover {
  color: var(--teal);
}

.resource-index {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 750;
}

.resource-card p {
  margin: 0 0 5px;
  color: #87939a;
  font-size: 0.62rem;
  font-weight: 730;
  letter-spacing: 0.12em;
}

.resource-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 2.25rem);
  font-weight: 510;
  letter-spacing: -0.035em;
}

.resource-card svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.resource-status {
  justify-self: end;
  padding: 8px 12px;
  color: #627078;
  background: #f2f4f6;
  border: 1px solid #e2e7ea;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
  min-height: 150px;
  padding: 35px var(--gutter);
  color: rgba(255, 255, 255, 0.74);
  background: #100823;
}

.brand-footer {
  color: white;
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
}

.site-footer > a:last-child {
  justify-self: end;
  font-size: 0.75rem;
  text-decoration: none;
}

.site-footer > a:last-child span {
  margin-left: 8px;
  color: var(--teal-bright);
}

/* Interactive social-mode laboratory */
.tasks .section-heading {
  margin-right: auto;
}

.mode-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, var(--max));
  margin: 68px auto 0;
  border-bottom: 1px solid var(--line);
}

.mode-selector button {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 12px 18px;
  color: #77748a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
}

.mode-selector button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--mode-tab, var(--purple));
  content: "";
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.mode-selector button:nth-child(1) { --mode-tab: var(--coral); }
.mode-selector button:nth-child(2) { --mode-tab: var(--blue); }
.mode-selector button:nth-child(3) { --mode-tab: var(--gold); }
.mode-selector button:nth-child(4) { --mode-tab: var(--green); }

.mode-selector button[aria-pressed="true"] {
  color: var(--ink);
}

.mode-selector button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.mode-selector span {
  color: var(--mode-tab, var(--purple));
  font-size: 0.66rem;
  font-weight: 800;
}

.mode-lab {
  --mode: var(--coral);
  --mode-2: var(--teal-bright);
  --mode-soft: rgba(83, 104, 255, 0.2);
  width: min(100%, var(--max));
  margin: 26px auto 0;
  padding: clamp(22px, 3vw, 42px);
  color: white;
  background:
    radial-gradient(circle at 16% 14%, var(--mode-soft), transparent 27%),
    radial-gradient(circle at 92% 84%, rgba(111, 140, 255, 0.15), transparent 30%),
    #120a2b;
  box-shadow: 0 32px 90px rgba(32, 19, 65, 0.18);
  transition: background 350ms ease;
}

.mode-lab[data-active-mode="collaboration"] { --mode: #5368ff; --mode-2: #9b64ff; --mode-soft: rgba(83, 104, 255, 0.22); }
.mode-lab[data-active-mode="competition"] { --mode: #6f63ff; --mode-2: #5b8dff; --mode-soft: rgba(111, 99, 255, 0.22); }
.mode-lab[data-active-mode="conflict"] { --mode: #9c5cff; --mode-2: #536fff; --mode-soft: rgba(156, 92, 255, 0.2); }
.mode-lab[data-active-mode="exchange"] { --mode: #4f7dff; --mode-2: #9467ff; --mode-soft: rgba(79, 125, 255, 0.2); }

.mode-toolbar {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mode-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mode-kicker span:first-child {
  margin-right: 8px;
  color: var(--mode-2);
}

.mode-toolbar h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.mode-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.condition-switch {
  display: flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.condition-switch button {
  min-height: 36px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 680;
}

.condition-switch button[aria-pressed="true"] {
  color: #171329;
  background: var(--mode-2);
}

.mode-play {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
}

.mode-play span {
  width: 10px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.mode-play[aria-pressed="true"] span {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 0;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.mode-play b {
  font-size: 0.7rem;
  font-weight: 650;
}

.mode-media {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 12px;
}

.motion-screen {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(7, 5, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.motion-screen figcaption {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 20px;
  display: grid;
  gap: 3px;
}

.motion-screen figcaption span {
  color: var(--mode-2);
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.14em;
}

.motion-screen figcaption b {
  font-size: 0.78rem;
  font-weight: 540;
}

.motion-screen svg {
  width: 100%;
  height: auto;
  min-height: 380px;
}

.screen-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.045);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.finger-grid path,
.scene-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.finger-coupling {
  fill: none;
  stroke: var(--mode-2);
  stroke-dasharray: 7 8;
  stroke-width: 2;
  opacity: 0.55;
}

.finger > path {
  stroke: rgba(255, 255, 255, 0.46);
  stroke-width: 2;
}

.finger-a > path { fill: url(#finger-a-fill); }
.finger-b > path { fill: url(#finger-b-fill); }
.finger-a-stop-one { stop-color: var(--mode); }
.finger-a-stop-two { stop-color: #7b274f; }
.finger-b-stop-one { stop-color: #86a0ff; }
.finger-b-stop-two { stop-color: #243ca7; }

.finger .nail {
  fill: rgba(255, 255, 255, 0.27);
  stroke: rgba(255, 255, 255, 0.38);
}

.finger-tip {
  fill: var(--mode-2);
  opacity: 0.76;
}

.finger text {
  fill: white;
  font-size: 17px;
  font-weight: 780;
  text-anchor: middle;
}

.device-shell {
  fill: #d9d7e8;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
}

.device-surface {
  fill: #23203a;
}

.tactile-pad {
  fill: url(#pad-glow);
  stroke: var(--mode-2);
  stroke-width: 2;
}

.pad-stop-one { stop-color: var(--mode-2); stop-opacity: 0.55; }
.pad-stop-two { stop-color: var(--mode); stop-opacity: 0.06; }

.contact-ripple {
  fill: none;
  stroke: var(--mode-2);
  stroke-width: 2;
  opacity: 0.4;
}

.device-label {
  fill: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-anchor: middle;
}

.scene-screen svg {
  touch-action: none;
}

.scene-screen [hidden] {
  display: none !important;
}

.scene-course {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-dasharray: 8 10;
  stroke-width: 2;
}

.scene-trail {
  fill: none;
  stroke-width: 2;
  opacity: 0.55;
}

.trail-a { stroke: var(--mode); }
.trail-b { stroke: #7892ff; }

.target-aura {
  fill: var(--mode-soft);
  stroke: var(--mode-2);
  stroke-width: 2;
}

.target-core {
  fill: var(--mode-2);
}

.scene-flag path:first-child {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 5;
}

.scene-flag path:last-child {
  fill: var(--mode-2);
  stroke: white;
  stroke-width: 1.5;
}

.scene-sonar circle {
  fill: none;
  stroke: var(--mode-2);
  stroke-width: 2;
  opacity: 0.45;
}

.scene-sonar circle:nth-child(2) { opacity: 0.27; }
.scene-sonar circle:nth-child(3) { opacity: 0.13; }

.scene-objects circle {
  fill: rgba(255, 255, 255, 0.19);
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 2;
}

.scene-objects circle:nth-child(3) {
  fill: var(--mode-soft);
  stroke: var(--mode-2);
}

.dyad-link {
  fill: none;
  stroke: var(--mode-2);
  stroke-dasharray: 5 7;
  stroke-width: 2;
  opacity: 0.7;
}

.scene-agent circle {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
}

.scene-agent text {
  fill: white;
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
}

.agent-a {
  cursor: grab;
}

.agent-a:active {
  cursor: grabbing;
}

.agent-a circle { fill: var(--mode); }
.agent-b circle { fill: #597bff; }

.drag-label {
  fill: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

.mode-caption {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mode-caption span {
  color: var(--mode-2);
  font-size: 0.66rem;
  font-weight: 780;
}

.mode-caption p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.mode-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.11);
}

.mode-signal-grid article {
  padding: 18px;
  background: #171031;
}

.mode-signal-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.mode-signal-grid span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.mode-signal-grid strong {
  color: var(--mode-2);
  font-size: 0.78rem;
  font-weight: 650;
}

.mode-signal-grid svg {
  width: 100%;
  height: 86px;
  margin-top: 12px;
  overflow: visible;
}

.signal-baseline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1;
}

.signal-path {
  fill: none;
  stroke: var(--mode);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 5px var(--mode-soft));
}

.mode-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.11);
}

.mode-facts div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.mode-facts span {
  color: var(--mode-2);
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.mode-facts strong {
  font-size: 0.85rem;
  font-weight: 520;
}

/* Restyled multimodal architecture */
.architecture-live {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 52px);
  color: white;
  background:
    radial-gradient(circle at 15% 15%, rgba(181, 108, 255, 0.18), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(83, 120, 255, 0.17), transparent 32%),
    var(--navy);
  border: 0;
}

.flow-label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-label span,
.flow-alignment > span,
.flow-output > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #171329;
  background: var(--teal-bright);
  border-radius: 50%;
  font-size: 0.64rem;
}

.flow-sources,
.flow-encoders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flow-node {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border-top: 2px solid rgba(255, 255, 255, 0.28);
}

.flow-node b {
  color: var(--teal-bright);
  font-size: 0.78rem;
  font-weight: 700;
}

.flow-node span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
}

.flow-tactos { border-color: var(--coral); }
.flow-tactos b { color: #ff9e92; }
.flow-empatica { border-color: var(--gold); }
.flow-empatica b { color: #ffdf77; }
.flow-typeform { border-color: var(--purple); }
.flow-typeform b { color: #d4a7ff; }

.flow-stream {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 38px;
}

.flow-stream::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 7px solid var(--teal-bright);
  content: "";
  transform: translateX(-50%);
}

.flow-stream i {
  position: relative;
  display: block;
}

.flow-stream i::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--teal-bright), transparent);
  content: "";
}

.flow-stream i::after {
  position: absolute;
  top: 0;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  background: var(--teal-bright);
  border-radius: 50%;
  content: "";
  animation: data-drop 1.8s ease-in infinite;
}

.flow-stream i:nth-child(2)::after { animation-delay: 0.35s; }
.flow-stream i:nth-child(3)::after { animation-delay: 0.7s; }

.flow-stream-short {
  grid-template-columns: 1fr;
  height: 28px;
}

@keyframes data-drop {
  from { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; }
  to { opacity: 0; transform: translateY(30px); }
}

.flow-alignment {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(83, 104, 255, 0.13);
  border: 1px solid rgba(111, 140, 255, 0.28);
}

.flow-alignment > span {
  grid-row: 1 / span 2;
}

.flow-alignment b {
  font-size: 0.78rem;
  font-weight: 680;
}

.flow-alignment small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.67rem;
}

.flow-fusion {
  display: grid;
  gap: 13px;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(83, 104, 255, 0.15), rgba(143, 93, 255, 0.16), rgba(79, 125, 255, 0.13));
}

.flow-fusion > span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.flow-fusion div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.flow-fusion b {
  padding: 8px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.66rem;
  font-weight: 580;
  text-align: center;
}

.flow-output {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 19px;
  color: #171329;
  background: var(--teal-bright);
}

.flow-output > span {
  color: white;
  background: #171329;
}

.flow-output b {
  font-size: 0.76rem;
  font-weight: 800;
}

.flow-output i {
  font-style: normal;
}

.flow-output small {
  width: 100%;
  font-size: 0.68rem;
  text-align: center;
}

.architecture-live figcaption {
  color: rgba(255, 255, 255, 0.43);
}

/* Clear dataset-to-model architecture */
.architecture-live {
  display: block;
  padding: clamp(26px, 3.5vw, 46px);
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 0%, rgba(83, 104, 255, 0.1), transparent 25%),
    linear-gradient(145deg, #fbfcff, #f2f4ff);
  border: 1px solid rgba(83, 104, 255, 0.17);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(35, 40, 110, 0.11);
}

.ai-architecture-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 10px 54px;
  align-items: end;
  margin-bottom: 34px;
}

.ai-architecture-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.ai-architecture-head h3 {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 3.05rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.ai-architecture-head > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.ai-pipeline {
  display: grid;
  grid-template-columns: minmax(190px, 1.08fr) 60px minmax(175px, 0.92fr) 60px minmax(200px, 1.08fr) 60px minmax(180px, 0.94fr);
  align-items: stretch;
}

.ai-stage {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(57, 70, 140, 0.14);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(32, 38, 92, 0.06);
}

.ai-stage-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
}

.ai-stage-title > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: white;
  background: var(--blue);
  border-radius: 9px;
  font-size: 0.66rem;
  font-weight: 750;
}

.ai-stage-title h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.ai-source {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 14px 13px 14px 17px;
  background: #f7f8ff;
  border: 1px solid rgba(83, 104, 255, 0.12);
  border-radius: 12px;
}

.ai-source + .ai-source {
  margin-top: 10px;
}

.ai-source::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  background: var(--source-color, var(--blue));
  border-radius: 0 3px 3px 0;
  content: "";
}

.ai-source b {
  font-size: 0.76rem;
  font-weight: 680;
}

.ai-source small {
  color: var(--source-color, var(--blue));
  font-size: 0.54rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.ai-source p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.ai-source-motion { --source-color: #647cff; }
.ai-source-body { --source-color: #9a62ff; }
.ai-source-report { --source-color: #ff62c8; }

.ai-connector {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: #69738e;
  text-align: center;
}

.ai-connector span {
  font-size: 0.55rem;
  font-weight: 620;
  line-height: 1.25;
}

.ai-connector i {
  color: #6274ff;
  font-size: 1.7rem;
  font-style: normal;
  line-height: 1;
}

.ai-process-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: preparation;
}

.ai-process-list li {
  position: relative;
  padding: 12px 12px 12px 34px;
  background: #f6f7ff;
  border-radius: 11px;
  counter-increment: preparation;
}

.ai-process-list li::before {
  position: absolute;
  top: 13px;
  left: 12px;
  color: #6a78ff;
  content: counter(preparation);
  font-size: 0.62rem;
  font-weight: 780;
}

.ai-process-list b,
.ai-process-list span {
  display: block;
}

.ai-process-list b {
  font-size: 0.76rem;
}

.ai-process-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.ai-stage-model {
  background: linear-gradient(150deg, #14104f, #29277a 64%, #3745a8);
  border-color: transparent;
  color: white;
}

.ai-stage-model .ai-stage-title > span {
  color: #171329;
  background: #b5b9ff;
}

.ai-model-core {
  display: grid;
  gap: 6px;
  padding: 22px 15px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  text-align: center;
}

.ai-model-core strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.ai-model-core small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.62rem;
}

.ai-model-label {
  margin: 18px 0 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.ai-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ai-mode-grid span {
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  font-size: 0.55rem;
  text-align: center;
}

.ai-stage-output {
  background: linear-gradient(145deg, #f5f2ff, #edf1ff);
}

.ai-output-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: white;
  border: 1px solid rgba(83, 104, 255, 0.13);
  border-radius: 12px;
}

.ai-output-card + .ai-output-card {
  margin-top: 10px;
}

.ai-output-card small {
  color: #6574ff;
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-output-card b {
  font-size: 0.72rem;
  line-height: 1.4;
}

.ai-output-primary {
  color: white;
  background: linear-gradient(135deg, #5b6fff, #8e60ff);
  border-color: transparent;
}

.ai-output-primary small {
  color: rgba(255, 255, 255, 0.7);
}

.ai-training-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 17px;
  background: rgba(83, 104, 255, 0.07);
  border-radius: 12px;
}

.ai-training-note span {
  color: #5e6eff;
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-training-note p {
  margin: 0;
  color: #59647c;
  font-size: 0.69rem;
  line-height: 1.45;
}

.architecture-live figcaption {
  margin-top: 17px;
  color: #7b8298;
}

@media (max-width: 1000px) {
  .ai-architecture-head {
    grid-template-columns: 1fr;
  }

  .ai-pipeline {
    grid-template-columns: 1fr;
  }

  .ai-connector {
    min-height: 64px;
  }

  .ai-connector i {
    transform: rotate(90deg);
  }

  .ai-source p,
  .ai-process-list span,
  .ai-model-core small,
  .ai-output-card b {
    font-size: 0.72rem;
  }
}

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

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

:focus-visible {
  outline: 3px solid #7d74ff;
  outline-offset: 4px;
}

/* Dyadic motion model gallery */
.motion-models {
  overflow: hidden;
  padding: clamp(105px, 10vw, 150px) 0 clamp(100px, 9vw, 140px);
  background:
    radial-gradient(circle at 50% 5%, rgba(83, 104, 255, 0.13), transparent 31%),
    #f8f8ff;
}

.motion-models-heading {
  width: min(760px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  text-align: center;
}

.motion-models-heading h2 {
  margin: 15px 0 20px;
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.motion-models-heading > p:last-child {
  max-width: 700px;
  margin: 0 auto;
  color: #46565f;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.5;
}

.motion-models-heading > p:not(.eyebrow) {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  color: #46565f;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.5;
}

.motion-models-heading .motion-world-note {
  max-width: 650px;
  margin-top: 18px;
  padding-top: 17px;
  color: #687781;
  border-top: 1px solid rgba(83, 104, 255, 0.16);
  font-size: 0.88rem;
}

.motion-gallery-shell {
  position: relative;
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-top: clamp(58px, 7vw, 92px);
  margin-right: auto;
  margin-left: auto;
}

.motion-gallery-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.motion-gallery-track::-webkit-scrollbar {
  display: none;
}

.dyad-model-card {
  --panel: #edf1ff;
  --panel-strong: #dce4ff;
  --mode-accent: #647cff;
  --mode-accent-b: #8d62ff;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border-radius: 32px;
  box-shadow: 0 22px 55px rgba(24, 36, 46, 0.08);
}

.model-competition {
  --panel: #f1efff;
  --panel-strong: #e4dfff;
  --mode-accent: #7a66ff;
  --mode-accent-b: #527cff;
}

.model-conflict {
  --panel: #f7efff;
  --panel-strong: #eadcff;
  --mode-accent: #a45fff;
  --mode-accent-b: #536fff;
}

.model-exchange {
  --panel: #edf5ff;
  --panel-strong: #dceaff;
  --mode-accent: #596dff;
  --mode-accent-b: #9b6cff;
}

.dyad-model-card > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  min-height: 130px;
  padding: 28px 30px 24px;
}

.dyad-model-card > header span,
.stage-label span,
.dyad-model-card > footer span {
  color: #516069;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dyad-model-card > header span {
  color: var(--mode-accent);
}

.dyad-model-card > header h3 {
  max-width: 410px;
  margin: 7px 0 0;
  font-size: clamp(1.55rem, 2.1vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dyad-model-card > header p {
  max-width: 150px;
  margin: 3px 0 0;
  color: #52616a;
  font-size: 0.78rem;
  text-align: right;
}

.dyad-circle-stage,
.finger-motion-stage {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(20, 42, 52, 0.09);
}

.dyad-circle-stage {
  height: 230px;
  background:
    linear-gradient(rgba(24, 42, 52, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 42, 52, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.2);
  background-size: 60px 60px;
}

.dyad-circle-stage svg,
.finger-motion-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-label {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 22px;
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.stage-label b {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
}

.finger-motion-stage .stage-label {
  padding: 9px 12px;
  border: 1px solid rgba(52, 68, 88, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 22px rgba(37, 49, 68, 0.08);
  backdrop-filter: blur(10px);
}

.stage-label-copy {
  max-width: min(420px, calc(100% - 44px));
}

.stage-label-copy b {
  line-height: 1.35;
}

.stage-label-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
}

.model-trail,
.model-link {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.model-trail {
  stroke-width: 3;
  opacity: 0.38;
}

.model-trail.trail-a { stroke: var(--mode-accent); }
.model-trail.trail-b { stroke: var(--mode-accent-b); }

.model-link {
  stroke: rgba(20, 42, 52, 0.34);
  stroke-width: 2;
  stroke-dasharray: 7 9;
}

.model-agent circle {
  stroke: white;
  stroke-width: 4;
  filter: drop-shadow(0 7px 12px rgba(25, 44, 53, 0.18));
}

.model-agent text {
  fill: white;
  font-size: 18px;
  font-weight: 760;
  text-anchor: middle;
}

.model-agent-a circle { fill: var(--mode-accent); }
.model-agent-b circle { fill: var(--mode-accent-b); }

.model-target > circle:first-child {
  fill: rgba(255, 255, 255, 0.35);
  stroke: rgba(20, 42, 52, 0.22);
  stroke-width: 2;
}

.model-target > circle:last-child {
  fill: var(--green);
}

.target-sonar circle {
  fill: none !important;
  stroke: var(--mode-accent);
  stroke-width: 3;
  opacity: 0.72;
}

.target-sonar circle:first-child { fill: var(--mode-accent) !important; opacity: 1; }

.target-flag path {
  fill: var(--gold);
  stroke: #554b31;
  stroke-linejoin: round;
  stroke-width: 4;
}

.target-exchange circle:first-child {
  fill: var(--mode-accent-b) !important;
  stroke: none;
}

.target-exchange circle:last-child {
  fill: none;
  stroke: var(--mode-accent-b);
  stroke-width: 3;
  opacity: 0.55;
}

.finger-motion-stage {
  height: 325px;
  background: #fff;
}

.finger-motion-stage::before {
  display: none;
}

.finger-motion-stage::after {
  display: none;
}

.finger-motion-overlay {
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.finger-motion-overlay path {
  fill: none;
  stroke: rgba(37, 57, 66, 0.34);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  vector-effect: non-scaling-stroke;
}

.photo-ripple {
  fill: none;
  stroke-width: 3;
  opacity: 0.64;
}

.photo-ripple-a { stroke: var(--mode-accent); }
.photo-ripple-b { stroke: var(--mode-accent-b); }

.model-conflict .finger-motion-overlay path {
  stroke: rgba(119, 59, 151, 0.62);
  stroke-width: 2.6;
}

.model-conflict .photo-ripple {
  stroke-width: 4;
  filter: drop-shadow(0 0 7px rgba(154, 73, 214, 0.3));
}

.photo-finger {
  position: absolute;
  z-index: 3;
  top: 14px;
  bottom: auto;
  left: 50%;
  width: clamp(130px, 10vw, 160px);
  height: auto;
  max-width: none;
  filter: saturate(0.92) drop-shadow(0 20px 22px rgba(28, 35, 39, 0.2));
  transform-origin: 50% 92%;
  will-change: left, top, transform;
}

.finger-id {
  position: absolute;
  z-index: 7;
  top: 114px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: white;
  font-size: 0.68rem;
  font-weight: 760;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(30, 45, 54, 0.15);
  transform: translateX(-50%);
  pointer-events: none;
}

.finger-id-a { left: 34%; background: var(--mode-accent); }
.finger-id-b { left: 66%; background: var(--mode-accent-b); }

.tactile-plane {
  position: absolute;
  z-index: 6;
  right: 11%;
  bottom: 22px;
  left: 11%;
  height: 59px;
  padding: 12px 18px;
  background: rgba(250, 250, 252, 0.92);
  border: 1px solid rgba(31, 44, 53, 0.12);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(30, 43, 51, 0.13);
}

.tactile-plane i {
  display: block;
  height: 20px;
  background: linear-gradient(90deg, #202633, #4f4869, #202633);
  border-radius: 9px;
}

.tactile-plane span {
  display: block;
  margin-top: 6px;
  color: #718089;
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.dyad-model-card > footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 18px 30px 20px;
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(20, 42, 52, 0.09);
}

.dyad-model-card > footer p {
  max-width: 68%;
  margin: 0;
  color: #34444d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dyad-model-card > footer span {
  max-width: 175px;
  color: var(--mode-accent);
  line-height: 1.55;
  text-align: right;
}

.gallery-arrow {
  position: absolute;
  z-index: 20;
  top: 47%;
  display: none;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--ink);
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(21, 38, 48, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow-prev { left: 18px; }
.gallery-arrow-next { right: 18px; }

.motion-gallery-meta {
  width: min(720px, calc(100% - (var(--gutter) * 2)));
  margin: 42px auto 0;
}

.motion-gallery-meta p {
  margin: 0;
  color: #44545d;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.motion-gallery-meta > div {
  display: grid;
  grid-template-columns: auto 58px auto;
  gap: 10px;
  align-items: center;
  color: #56656e;
  font-size: 0.72rem;
}

.motion-gallery-meta i {
  height: 1px;
  background: #9aaaae;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .primary-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: grid;
    justify-items: end;
    gap: 4px;
    width: 42px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--ink);
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    padding: 18px var(--gutter) 30px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(10, 35, 43, 0.12);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  }

  .research-label {
    display: none;
  }

  .research-nav {
    justify-content: center;
  }

  .task-carousel {
    grid-auto-columns: minmax(350px, 58vw);
  }

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

  .apparatus-copy {
    max-width: 780px;
  }

  .apparatus-media {
    width: min(100%, 820px);
    margin: 0 auto;
  }

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

  .closing-story {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 132px;
  }

  .site-header {
    min-height: 64px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 125px;
  }

  .hero h1 {
    max-width: 690px;
  }

  .hero-visual {
    width: 100%;
    min-height: 580px;
  }

  .research-nav {
    top: 62px;
    justify-content: flex-start;
    min-height: 56px;
    padding: 0;
    overflow-x: auto;
  }

  .research-links {
    width: max-content;
    gap: 26px;
    padding: 0 24px;
  }

  .research-links a {
    padding: 18px 0 16px;
  }

  .section-heading.split,
  .condition-panel,
  .timeline-detail {
    grid-template-columns: 1fr;
  }

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

  .overview-item,
  .overview-item + .overview-item {
    padding: 30px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .overview-item h3 {
    margin-top: 20px;
  }

  .tasks .section-heading,
  .tasks .carousel-controls {
    margin-right: 0;
  }

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

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

  .mode-controls {
    width: 100%;
    justify-content: space-between;
  }

  .mode-media {
    grid-template-columns: 1fr;
  }

  .motion-screen svg {
    min-height: 0;
  }

  .mode-signal-grid {
    grid-template-columns: 1fr;
  }

  .mode-signal-grid article {
    display: grid;
    grid-template-columns: minmax(170px, 0.45fr) 1fr;
    align-items: center;
  }

  .mode-signal-grid svg {
    margin-top: 0;
  }

  .flow-sources,
  .flow-encoders {
    grid-template-columns: 1fr;
  }

  .flow-node {
    min-height: auto;
  }

  .flow-stream {
    grid-template-columns: 1fr;
  }

  .flow-stream i:not(:first-child) {
    display: none;
  }

  .flow-fusion div {
    grid-template-columns: repeat(2, 1fr);
  }

  .task-carousel {
    grid-auto-columns: minmax(320px, 86vw);
  }

  .condition-panel {
    padding-top: 45px;
  }

  .condition-visual {
    min-height: 300px;
  }

  .timeline-detail .eyebrow {
    grid-row: auto;
  }

  .protocol-figures {
    grid-template-columns: 1fr;
  }

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

  .learning-steps article:nth-child(3) {
    border-left: 0;
  }

  .learning-steps article {
    padding-bottom: 35px;
    border-bottom: 1px solid var(--line);
  }

  .closing-story {
    grid-template-columns: 1fr;
  }

  .closing-visual {
    min-height: 500px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .motion-toggle [data-motion-toggle-label] {
    display: none;
  }

  .visual-label {
    top: 22px;
    left: 22px;
  }

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

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

  .section-heading h2,
  .apparatus h2,
  .closing-story h2 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .mode-selector {
    margin-top: 44px;
  }

  .mode-selector button {
    justify-content: flex-start;
    min-height: 56px;
    padding: 10px 8px;
    font-size: 0.74rem;
  }

  .mode-lab {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 20px;
  }

  .mode-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .condition-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .condition-switch button {
    padding: 0 8px;
  }

  .mode-play {
    justify-content: center;
  }

  .mode-caption {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }

  .mode-signal-grid article {
    display: block;
  }

  .mode-signal-grid svg {
    margin-top: 10px;
  }

  .mode-facts {
    grid-template-columns: 1fr;
  }

  .screen-foot {
    font-size: 0.54rem;
  }

  .flow-fusion div {
    grid-template-columns: 1fr;
  }

  .task-carousel {
    grid-auto-columns: calc(100vw - 38px);
    padding-left: 0;
    padding-right: 18px;
  }

  .carousel-controls {
    width: calc(100% - 40px);
    margin-right: 20px !important;
    margin-left: 20px;
  }

  .task-card {
    min-height: 580px;
  }

  .task-image {
    height: 245px;
    padding: 14px;
  }

  .task-content {
    padding: 24px;
  }

  .condition-visual {
    min-height: 250px;
  }

  .puck {
    width: 54px;
    height: 54px;
  }

  .puck-a { left: 15%; }
  .puck-b { right: 15%; }
  .force-line { left: calc(15% + 50px); right: calc(15% + 50px); }
  .hole-visual .puck-a { left: 26%; }
  .hole-visual .puck-b { right: 26%; }
  .hole-visual .force-line { left: calc(26% + 50px); right: calc(26% + 50px); }

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

  .apparatus-media {
    min-height: 450px;
  }

  .device-card {
    width: 48%;
    padding: 24px;
  }

  .data-chain-card {
    width: 88%;
    min-height: 210px;
    padding: 20px;
  }

  .timeline {
    margin-top: 45px;
  }

  .protocol-figure img {
    height: 190px;
  }

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

  .metric {
    min-height: 150px;
  }

  .learning-steps {
    grid-template-columns: 1fr;
  }

  .learning-steps article + article {
    padding-left: 0;
    border-left: 0;
  }

  .architecture {
    padding: 9px;
  }

  .architecture-live {
    gap: 12px;
    padding: 18px;
  }

  .closing-visual {
    min-height: 390px;
  }

  .closing-touch-image { width: 126%; }

  .resource-card {
    grid-template-columns: 34px 1fr auto;
    gap: 16px;
  }

  .resource-status {
    padding: 7px 9px;
    font-size: 0.58rem;
  }
}

@media (max-width: 800px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-summary {
    min-height: 0;
  }

  .motion-models {
    padding-top: 84px;
  }

  .motion-models-heading {
    text-align: left;
  }

  .motion-models-heading h2 {
    font-size: clamp(3rem, 12vw, 4.7rem);
  }

  .motion-models-heading > p:last-child {
    margin-left: 0;
  }

  .motion-gallery-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dyad-model-card {
    width: 100%;
  }

  .gallery-arrow {
    width: 46px;
    height: 46px;
  }

  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }
}

@media (max-width: 560px) {
  .setup-card > header {
    grid-template-columns: 44px 1fr;
  }

  .setup-card > header > span {
    width: 44px;
    height: 44px;
  }

  .setup-card > header > small {
    grid-column: 2;
    max-width: none;
    margin-top: -10px;
    text-align: left;
  }

  .setup-card .setup-game {
    justify-items: start;
  }

  .setup-diagram {
    height: 160px;
  }

  .motion-gallery-shell {
    margin-top: 46px;
  }

  .motion-gallery-track {
    gap: 16px;
  }

  .dyad-model-card {
    border-radius: 24px;
  }

  .dyad-model-card > header {
    display: grid;
    min-height: 142px;
    padding: 24px 22px 20px;
  }

  .dyad-model-card > header p {
    max-width: none;
    margin-top: -12px;
    text-align: left;
  }

  .dyad-circle-stage {
    height: 205px;
  }

  .finger-motion-stage {
    height: 300px;
  }

  .photo-finger {
    top: 38px;
    bottom: auto;
    width: 132px;
  }

  .finger-id {
    top: 106px;
  }

  .dyad-model-card > footer {
    display: flex;
    min-height: 66px;
    padding: 17px 22px 19px;
  }

  .dyad-model-card > footer p,
  .dyad-model-card > footer span {
    max-width: none;
    text-align: right;
  }

  .gallery-arrow {
    top: 48%;
    width: 42px;
    height: 42px;
  }

  .motion-gallery-meta {
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::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;
  }
}
