@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/poppins/v24/pxiDyp8kv8JHgFVrJJLm21lVF9eO.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecg.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --canvas: #fbfbfa;
  --surface: #fefefd;
  --surface-muted: #f6f7fb;
  --surface-warm: #faf7f2;
  --ink: #2a2a2a;
  --ink-soft: #4f5057;
  --muted: #676879;
  --line: #e4e4df;
  --line-strong: #d7d8dd;
  --horizon: #2d6a4f;
  --horizon-hover: #235540;
  --horizon-light: #74c69d;
  --monday-blue: #0073ea;
  --monday-violet: #6161ff;
  --monday-yellow: #ffcc00;
  --monday-red: #fb275d;
  --monday-pink: #ff84e4;
  --monday-orange: #fda900;
  --monday-green: #00ca72;
  --monday-ink: #323338;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-soft: 0 18px 60px rgba(42, 42, 42, 0.08);
  --shadow-ui: 0 12px 32px rgba(24, 27, 52, 0.12);
  --radius: 10px;
  --radius-large: 18px;
  --shell: 1320px;
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
}

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

button,
a[href] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(0, 115, 234, 0.5);
  outline-offset: 3px;
}

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

::selection {
  background: rgba(97, 97, 255, 0.2);
  color: var(--ink);
}

.shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

.page {
  background: var(--canvas);
}

.page main {
  display: block;
}

.page section {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  transition: transform 180ms var(--ease);
}

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

.eyebrow,
.lab-kicker {
  color: var(--horizon);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.35rem, 4vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.button--primary {
  border: 1px solid var(--horizon);
  background: var(--horizon);
  color: var(--surface);
}

.button--text {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--text::after {
  content: "↓";
  color: var(--monday-blue);
  font-size: 1.05em;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(228, 228, 223, 0.85);
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  width: min(var(--shell), calc(100% - 64px));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand > img {
  width: 14px;
  height: 40px;
}

.brand strong {
  color: var(--horizon);
  font-weight: 800;
}

.nav-panel,
.nav-main,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-panel {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
}

.nav-main {
  gap: clamp(14px, 1.9vw, 30px);
}

.nav-main > a,
.nav-more > button,
.nav-lang {
  position: relative;
  padding: 10px 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-main > a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--horizon);
  content: "";
  transition: transform 220ms var(--ease);
}

.nav-main > a.is-current::after {
  transform: scaleX(1);
}

.nav-actions {
  gap: 16px;
}

.button--nav {
  min-height: 42px;
  padding: 9px 16px;
}

.nav-more {
  position: relative;
}

.nav-more > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-more > button::after {
  content: "+";
  color: var(--horizon);
  font-size: 1rem;
  transition: transform 220ms var(--ease);
}

.nav-more.is-open > button::after {
  transform: rotate(45deg);
}

.nav-more__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -18px;
  display: grid;
  min-width: 180px;
  padding: 8px;
  transform: translateY(-7px);
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  background: var(--surface);
  box-shadow: var(--shadow-ui);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.nav-more.is-open .nav-more__menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-more__menu a {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Shared hero */
.hero {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  background-color: var(--canvas);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-copy h1 {
  margin-top: 24px;
  font-size: clamp(3.65rem, 4.6vw, 4.3rem);
  font-weight: 300;
  letter-spacing: -0.062em;
  line-height: 1.04;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 strong {
  color: var(--horizon);
  font-weight: 800;
}

.hero-copy h1 em {
  display: inline-block;
  padding-bottom: 0.08em;
  font-weight: 300;
  line-height: 1.12;
}

.hero-lead {
  max-width: 575px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 64px;
}

.section-heading p {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Command center */
.command-hero {
  padding-block: 64px;
}

.command-hero__grid,
.team-hero__grid {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(600px, 1.08fr);
  align-items: center;
  gap: clamp(40px, 5vw, 84px);
}

.command-demo {
  --run-step: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-bar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--line);
}

.product-monday-lockup {
  font-size: 0.92rem;
}

.product-industry,
.mission-picker,
.industry-switch,
.mandate-tabs,
.builder-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.product-industry button,
.mission-picker button,
.industry-switch button,
.mandate-tabs button,
.builder-tabs button {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.product-industry button.is-active,
.mission-picker button.is-active,
.industry-switch button.is-active,
.mandate-tabs button.is-active,
.builder-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(24, 27, 52, 0.09);
}

.command-stage {
  position: relative;
  min-height: 486px;
  overflow: hidden;
  background: var(--surface-muted);
}

.command-board {
  position: absolute;
  inset: 26px 28px 122px 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 27, 52, 0.1);
}

.command-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.agent-marker {
  position: absolute;
  z-index: 3;
  top: 92px;
  left: 112px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: translate3d(calc(var(--run-step) * 58px), calc(var(--run-step) * 22px), 0);
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--monday-violet);
  box-shadow: 0 6px 18px rgba(97, 97, 255, 0.28);
  transition: transform 600ms var(--ease), background-color 320ms ease;
}

.agent-marker img {
  width: 28px;
  height: 28px;
}

.command-run {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  grid-template-columns: auto minmax(160px, 0.65fr) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 13px 17px;
  border: 1px solid rgba(215, 216, 221, 0.96);
  border-radius: 12px;
  background: rgba(254, 254, 253, 0.97);
  box-shadow: var(--shadow-ui);
  backdrop-filter: blur(12px);
}

.command-run__agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.command-run__agent > img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f0f3ff;
  object-fit: contain;
}

.command-run__agent div {
  display: grid;
}

.command-run__agent span,
.run-state,
.story-log > span,
.activity-log > div span {
  color: var(--monday-violet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-run__agent strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.command-run h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.command-run > p:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.run-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
}

.run-steps {
  display: flex;
  flex: 1;
  gap: 5px;
}

.run-steps button {
  position: relative;
  flex: 1;
  padding: 9px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.run-steps button::before {
  position: absolute;
  top: 0;
  right: 5px;
  left: 5px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--monday-violet);
  content: "";
  transition: transform 320ms var(--ease);
}

.run-steps button.is-active {
  color: var(--ink);
}

.run-steps button.is-active::before {
  transform: scaleX(1);
}

.run-play {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--monday-violet);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* monday partner strip */
.monday-lockup {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.42em;
  color: var(--monday-ink);
  line-height: 1;
  white-space: nowrap;
}

.monday-lockup > img {
  width: 1.48em;
  height: 1.48em;
  flex: 0 0 auto;
  object-fit: contain;
}

.monday-lockup__name {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.monday-lockup__name strong {
  font-weight: 800;
}

.partner-band {
  border-block: 1px solid #e1e5f1;
  background: var(--surface-muted);
}

.partner-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(280px, 1.4fr) minmax(130px, 0.6fr);
  min-height: 126px;
  align-items: center;
  gap: 48px;
}

.partner-band__inner::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 4px;
  border-right: 18px solid var(--monday-yellow);
  border-left: 18px solid var(--monday-blue);
  background: var(--monday-violet);
  content: "";
}

.partner-badge {
  width: min(100%, 250px);
  height: auto;
}

.partner-band p {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.monday-wordmark {
  font-size: 1.03rem;
  justify-self: end;
}

/* Agents */
.agents-section,
.mandate-section,
.industry-section,
.approach,
.story-section,
.builder-section,
.handoff-section,
.activity-section {
  padding-block: clamp(100px, 11vw, 168px);
}

.agent-workspace {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.agent-buttons {
  display: grid;
  align-content: start;
  gap: 8px;
}

.agent-choice {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 220ms var(--ease);
}

.agent-choice img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f0f3ff;
  object-fit: contain;
}

.agent-choice span {
  display: grid;
}

.agent-choice b {
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.agent-choice small {
  color: var(--muted);
  font-size: 0.76rem;
}

.agent-choice.is-active {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(42, 42, 42, 0.06);
}

.agent-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.agent-detail__portrait {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: end center;
  overflow: hidden;
  background: #f0f3ff;
}

.agent-detail__portrait::before,
.hero-roster::before {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid color-mix(in srgb, var(--agent-accent, var(--monday-violet)) 34%, transparent);
  border-radius: 50%;
  content: "";
}

.agent-detail__portrait::after {
  position: absolute;
  bottom: 30px;
  width: 66%;
  height: 1px;
  background: color-mix(in srgb, var(--agent-accent, var(--monday-violet)) 52%, transparent);
  content: "";
}

.agent-detail__portrait img {
  position: relative;
  z-index: 1;
  width: min(94%, 440px);
  height: auto;
  object-fit: contain;
}

.agent-detail__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
}

.agent-detail__copy > p:first-child {
  color: var(--agent-accent, var(--monday-violet));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-detail__copy h3 {
  margin-top: 8px;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  font-weight: 300;
}

.agent-detail__copy h4 {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.agent-detail__copy > p:not(:first-child) {
  max-width: 530px;
  margin-top: 12px;
  color: var(--muted);
}

.agent-limit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.agent-limit span {
  color: var(--monday-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-limit p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Mandate */
.mandate-section,
.builder-section,
.activity-section {
  background: var(--surface-muted);
}

.mandate-layout,
.builder-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1.25fr);
  align-items: start;
  column-gap: clamp(60px, 9vw, 140px);
}

.mandate-layout .section-heading,
.builder-layout .section-heading {
  display: block;
  grid-row: span 2;
}

.mandate-layout .section-heading p,
.builder-layout .section-heading p {
  max-width: 430px;
  margin-top: 22px;
}

.mandate-tabs,
.builder-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
}

.mandate-panel,
.builder-panel {
  min-height: 330px;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.mandate-panel > span,
.builder-panel span,
.handoff-detail > span,
.route-explanation > span {
  color: var(--monday-violet);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mandate-panel h3,
.builder-panel h3,
.handoff-detail h3,
.route-explanation h2 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.mandate-panel p,
.builder-panel p,
.handoff-detail > p,
.route-explanation p {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

/* Industry */
.industry-section .industry-switch {
  margin-top: 42px;
}

.industry-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  min-height: 600px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.industry-story figure {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--surface-muted);
  isolation: isolate;
}

.industry-story__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: scale(1.035);
  transition: opacity 260ms var(--ease), transform 680ms var(--ease), object-position 680ms var(--ease);
  will-change: opacity, transform;
}

.industry-story__image.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1.015);
}

.industry-story__image.is-entering {
  z-index: 2;
  opacity: 1;
  transform: scale(1.015);
}

.industry-story__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 76px);
}

.industry-monday-lockup {
  align-self: flex-start;
  margin-bottom: 30px;
  font-size: 1rem;
}

.industry-story__copy h3 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 300;
}

.industry-story__copy > p {
  margin-top: 20px;
  color: var(--muted);
}

.industry-story__copy ol {
  display: grid;
  gap: 0;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.industry-story__copy li {
  border-top: 1px solid var(--line);
}

.industry-story__copy li:last-child {
  border-bottom: 1px solid var(--line);
}

.industry-story__copy li button {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  transition: color 180ms ease, padding-left 220ms var(--ease), background-color 180ms ease;
}

.industry-story__copy li button span {
  color: var(--monday-blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.industry-story__copy li button b {
  font-size: 0.88rem;
  font-weight: 600;
}

.industry-story__copy li button.is-active {
  padding-left: 10px;
  background: #f5f7ff;
  color: var(--ink);
}

.industry-story__copy li button.is-active span {
  color: var(--monday-violet);
}

.industry-step-detail {
  min-height: 58px;
  margin-top: 14px !important;
  padding: 12px 14px;
  border-left: 2px solid var(--monday-violet);
  background: var(--surface-muted);
  color: var(--ink-soft) !important;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Approach and footer */
.approach-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  padding: 0;
  list-style: none;
  counter-reset: approach;
}

.approach-route li {
  position: relative;
  min-height: 210px;
  padding: 34px 30px 0 0;
  border-top: 1px solid var(--line-strong);
  counter-increment: approach;
}

.approach-route li::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 4px solid var(--canvas);
  border-radius: 50%;
  background: var(--horizon);
  content: "";
}

.approach-route span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.approach-route span::before {
  margin-right: 10px;
  color: var(--horizon);
  content: "0" counter(approach);
  font-size: 0.67rem;
  vertical-align: 0.18em;
}

.approach-route p {
  max-width: 260px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-approach-compact {
  padding-top: clamp(104px, 8.5vw, 126px);
}

.team-approach-title {
  min-width: 0;
  font-size: clamp(2.35rem, 3.48vw, 3.125rem);
  letter-spacing: -0.055em;
  line-height: 1.18;
  text-wrap: initial;
}

.team-approach-title > span {
  display: block;
}

@media (min-width: 1280px) {
  .team-approach-compact .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  }

  .team-approach-title > span {
    white-space: nowrap;
  }

  .team-approach-compact .approach-route {
    margin-top: 130px;
  }
}

.final-cta {
  padding-block: clamp(80px, 9vw, 126px);
  border-block: 1px solid var(--line);
  background: var(--surface-warm);
}

.final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 80px;
}

.final-cta h2 {
  max-width: 820px;
}

.final-cta__inner > div p {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.site-footer {
  padding-block: 56px 110px;
  background: var(--canvas);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 1fr) auto;
  align-items: start;
  gap: 48px;
}

.site-footer__inner > p {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 28px;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-footer__note {
  grid-column: 2 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: right;
}

/* Living plan */
.plan-hero {
  min-height: auto;
  padding-block: 72px 78px;
}

.plan-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 60px;
}

.plan-hero .hero-copy h1 {
  font-size: clamp(4.2rem, 5.8vw, 5.6rem);
}

.plan-hero .hero-copy {
  max-width: 940px;
}

.plan-partner-badge {
  width: 246px;
  height: auto;
  margin-top: 4px;
}

.mission-picker {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 56px;
}

.route-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 46px 34px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.route-track {
  position: absolute;
  z-index: 0;
  top: 104px;
  right: 11%;
  left: 11%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.route-track i {
  display: block;
  height: 2px;
  transform: scaleX(0.24);
  transform-origin: left;
  background: var(--line-strong);
  transition: transform 600ms var(--ease), background-color 320ms ease;
}

.route-track i.is-active {
  transform: scaleX(1);
  background: var(--monday-violet);
}

.route-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 122px;
  align-content: end;
  justify-items: start;
  gap: 7px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  text-align: left;
  transition: transform 260ms var(--ease), border-color 180ms ease, background-color 180ms ease;
}

.route-node::before {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.route-node span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.route-node strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.28;
}

.route-node.is-active {
  transform: translateY(-8px);
  border-color: var(--monday-violet);
  background: #f0f3ff;
}

.route-node.is-active::before {
  background: var(--monday-violet);
  box-shadow: 0 0 0 1px var(--monday-violet);
}

.route-node--agent {
  min-height: 155px;
  margin-top: -17px;
  background: #f0f3ff;
}

.route-node--agent img {
  position: absolute;
  top: -31px;
  right: -4px;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.route-explanation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(280px, 0.85fr) minmax(260px, 1fr);
  align-items: start;
  gap: 30px;
  margin-top: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.route-explanation h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.7rem);
}

.route-explanation p {
  margin-top: 2px;
}

.chapter-nav {
  position: sticky;
  z-index: 60;
  top: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(254, 254, 253, 0.94);
  backdrop-filter: blur(16px);
}

.chapter-nav .shell {
  display: flex;
  justify-content: center;
  gap: 40px;
  min-height: 54px;
  align-items: center;
}

.chapter-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.chapter-nav a::after {
  position: absolute;
  right: 0;
  bottom: -17px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--monday-blue);
  content: "";
  transition: transform 220ms var(--ease);
}

.chapter-nav a.is-current::after {
  transform: scaleX(1);
}

.story-layout {
  display: grid;
  grid-template-columns: 0.35fr minmax(0, 1fr);
  gap: 70px;
}

.story-intro {
  align-self: start;
}

.story-intro h2 {
  font-size: clamp(2.7rem, 4vw, 4.7rem);
}

.story-intro p {
  margin-top: 24px;
  color: var(--muted);
}

.story-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface-muted);
}

.story-board figure {
  position: absolute;
  inset: 28px 28px 124px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.story-board figure img,
.activity-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.story-log {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 48px 0.35fr 1fr 1fr;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(254, 254, 253, 0.97);
  box-shadow: var(--shadow-ui);
}

.story-log img {
  width: 42px;
  height: 42px;
}

.story-log h3 {
  font-size: 0.96rem;
}

.story-log p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

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

.story-steps button {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  transition: border-color 180ms ease, transform 220ms var(--ease), background-color 180ms ease;
}

.story-steps button span {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.story-steps button p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.story-steps button.is-active {
  border-color: var(--monday-violet);
  background: #f0f3ff;
}

.builder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: end;
  overflow: hidden;
  padding-bottom: 0;
}

.builder-panel img {
  align-self: end;
  width: 180px;
  height: auto;
  object-fit: contain;
}

/* Augmented team */
.team-hero {
  padding-block: 58px;
}

.hero-roster {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-roster::before {
  z-index: 0;
  top: -35px;
  right: -35px;
  width: 110px;
  height: 110px;
  border-color: rgba(97, 97, 255, 0.26);
  pointer-events: none;
}

.hero-roster .agent-detail {
  grid-template-columns: minmax(210px, 0.86fr) minmax(250px, 1.14fr);
  min-height: 380px;
  border: 0;
  border-radius: 12px;
}

.hero-roster .agent-detail__portrait {
  min-height: 350px;
}

.hero-roster .agent-detail__copy {
  padding: 30px;
}

.hero-roster .agent-detail__copy h3 {
  font-size: clamp(2.5rem, 3.5vw, 4.2rem);
}

.hero-roster .agent-detail__copy > p:not(:first-child) {
  font-size: 0.87rem;
}

.hero-roster .agent-limit {
  margin-top: 18px;
  padding-top: 14px;
}

.agent-buttons--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.agent-buttons--compact .agent-choice {
  grid-template-columns: 38px 1fr;
  min-width: 0;
  min-height: 54px;
  gap: 7px;
  padding: 6px;
}

.agent-buttons--compact .agent-choice img {
  width: 38px;
  height: 38px;
}

.agent-buttons--compact .agent-choice b {
  font-size: 0.74rem;
}

.agent-buttons--compact .agent-choice small {
  display: none;
}

.roster-controls {
  display: none;
}

.handoff-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
}

.handoff-route::before {
  position: absolute;
  z-index: 0;
  top: 56px;
  right: 11%;
  left: 11%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.handoff-route button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 12px 20px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.handoff-route button img {
  width: 112px;
  height: 112px;
  transform: translateY(0);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-muted);
  object-fit: contain;
  transition: transform 260ms var(--ease), border-color 180ms ease, background-color 180ms ease;
}

.handoff-route button.is-active img {
  transform: translateY(-10px);
  border-color: var(--monday-violet);
  background: #f0f3ff;
}

.handoff-detail {
  display: grid;
  grid-template-columns: 0.25fr 0.9fr 0.9fr 1.2fr;
  align-items: start;
  gap: 30px;
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.handoff-detail h3,
.handoff-detail > p {
  margin-top: 0;
}

.handoff-detail > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 0.84rem;
}

.handoff-detail > div b {
  color: var(--monday-violet);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.activity-layout {
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.65fr;
  align-items: center;
  gap: 24px;
}

.activity-layout .section-heading {
  display: block;
  align-self: start;
  padding-right: 36px;
}

.activity-layout .section-heading h2 {
  font-size: clamp(2.6rem, 4vw, 4.5rem);
}

.activity-layout .section-heading p {
  margin-top: 22px;
}

.activity-board {
  position: relative;
  height: 470px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.activity-board > img {
  transform: scale(1.015);
  transition: transform 650ms var(--ease);
}

.activity-board[data-activity-phase="1"] > img {
  transform: scale(1.035) translate3d(-0.8%, -0.4%, 0);
}

.activity-board[data-activity-phase="2"] > img {
  transform: scale(1.045) translate3d(-1.4%, -1.2%, 0);
}

.activity-board[data-activity-phase="3"] > img {
  transform: scale(1.035) translate3d(-0.6%, -2%, 0);
}

.activity-board__focus {
  position: absolute;
  top: 15%;
  left: 9%;
  width: 72%;
  height: 15%;
  border: 2px solid var(--monday-violet);
  border-radius: 8px;
  background: rgba(97, 97, 255, 0.06);
  box-shadow:
    0 0 0 1000px rgba(247, 248, 252, 0.48),
    0 10px 26px rgba(50, 51, 56, 0.12);
  pointer-events: none;
  transition: top 520ms var(--ease), left 520ms var(--ease), width 520ms var(--ease), height 520ms var(--ease), border-color 180ms ease;
}

.activity-board__focus::after {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--monday-violet);
  content: "";
  opacity: 0.55;
  animation: activity-scan 1.45s var(--ease) both;
}

.activity-board__focus span {
  position: absolute;
  top: -31px;
  left: -2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--monday-violet);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.activity-board[data-activity-phase="1"] .activity-board__focus {
  top: 34%;
  left: 18%;
  width: 70%;
  height: 15%;
  border-color: var(--monday-blue);
}

.activity-board[data-activity-phase="1"] .activity-board__focus span,
.activity-board[data-activity-phase="1"] .activity-board__focus::after {
  background: var(--monday-blue);
}

.activity-board[data-activity-phase="2"] .activity-board__focus {
  top: 53%;
  left: 29%;
  width: 62%;
  height: 16%;
  border-color: var(--monday-pink);
}

.activity-board[data-activity-phase="2"] .activity-board__focus span,
.activity-board[data-activity-phase="2"] .activity-board__focus::after {
  background: var(--monday-pink);
}

.activity-board[data-activity-phase="3"] .activity-board__focus {
  top: 72%;
  left: 42%;
  width: 48%;
  height: 14%;
  border-color: var(--monday-yellow);
}

.activity-board[data-activity-phase="3"] .activity-board__focus span,
.activity-board[data-activity-phase="3"] .activity-board__focus::after {
  background: var(--monday-yellow);
  color: var(--ink);
}

.activity-log {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.activity-log__agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.activity-log__agent img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f0f3ff;
  object-fit: contain;
}

.activity-log__agent span {
  display: grid;
}

.activity-log__agent b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.activity-log__summary {
  min-height: 44px;
  padding: 15px 0 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.activity-log ol {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.activity-log li {
  border-bottom: 1px solid var(--line);
}

.activity-log li:last-child {
  border-bottom: 0;
}

.activity-log li button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 58px;
  gap: 4px;
  padding: 10px 9px 10px 13px;
  background: transparent;
  text-align: left;
  transition: background-color 180ms ease, padding-left 220ms var(--ease);
}

.activity-log li button::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  transform: scaleY(0);
  background: var(--monday-violet);
  content: "";
  transition: transform 220ms var(--ease);
}

.activity-log li button.is-active {
  padding-left: 17px;
  background: #f5f7ff;
}

.activity-log li button.is-active::before {
  transform: scaleY(1);
}

.activity-log li b {
  color: var(--monday-blue);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.activity-log li span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.activity-play {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--monday-violet);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes activity-scan {
  from {
    left: 0;
  }

  to {
    left: 100%;
  }
}

/* Interactive grid reveal */
.page--team {
  position: relative;
  isolation: isolate;
  background: #fbfbfa;
}

.page--team > main {
  position: relative;
  z-index: 1;
}

.page--team .team-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #fbfbfa;
}

.page--team .team-hero__grid {
  position: relative;
  z-index: 2;
}

.team-reveal-grid {
  --reveal-accent: var(--horizon);
  --reveal-x: 42%;
  --reveal-y: 52%;
  --ambient-x: 72%;
  --ambient-y: 34%;
  --reveal-radius: 220px;
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.team-reveal-grid__base,
.team-reveal-grid__underlay,
.team-reveal-grid__texture,
.team-reveal-grid__canvas {
  position: absolute;
  inset: 0;
}

.team-reveal-grid__base {
  z-index: 2;
  background-image:
    linear-gradient(color-mix(in srgb, var(--horizon) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--horizon) 11%, transparent) 1px, transparent 1px),
    radial-gradient(circle, color-mix(in srgb, var(--horizon) 27%, transparent) 0 1px, transparent 1.2px);
  background-position: -1px -1px, -1px -1px, -1px -1px;
  background-size: 56px 56px;
  opacity: 0.62;
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.9) 58%, transparent 100%);
}

.team-reveal-grid__base::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--reveal-accent) 28%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--reveal-accent) 28%, transparent) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 56px 56px;
  content: "";
  opacity: 0.48;
  mask-image: radial-gradient(circle 170px at var(--reveal-x) var(--reveal-y), #000 0, rgba(0, 0, 0, 0.55) 56%, transparent 100%);
  transition: opacity 180ms ease;
}

.team-reveal-grid[data-pointer="active"] .team-reveal-grid__base::after {
  opacity: 0.9;
}

.team-reveal-grid__underlay {
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 25%, rgba(50, 51, 56, 0.045), transparent 34%),
    linear-gradient(135deg, rgba(50, 51, 56, 0.025), transparent 68%);
  opacity: 0.88;
  -webkit-mask-image:
    radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0, #000 36%, rgba(0, 0, 0, 0.72) 64%, transparent 100%),
    radial-gradient(circle 135px at var(--ambient-x) var(--ambient-y), rgba(0, 0, 0, 0.84) 0, rgba(0, 0, 0, 0.42) 54%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-image:
    radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0, #000 36%, rgba(0, 0, 0, 0.72) 64%, transparent 100%),
    radial-gradient(circle 135px at var(--ambient-x) var(--ambient-y), rgba(0, 0, 0, 0.84) 0, rgba(0, 0, 0, 0.42) 54%, transparent 100%);
  mask-repeat: no-repeat;
  transition: opacity 260ms ease;
}

.team-reveal-grid__board {
  position: absolute;
  z-index: 0;
  top: 9%;
  right: -3%;
  width: min(58vw, 840px);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  opacity: 0.18;
  filter: saturate(0.72) contrast(1.04);
  transform: rotate(-1deg) translate3d(2%, 0, 0);
  transform-origin: center;
  transition: opacity 260ms ease, transform 700ms var(--ease);
}

.team-reveal-grid__canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.team-reveal-grid__texture {
  z-index: 2;
  inset: -10%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 6px,
    color-mix(in srgb, var(--reveal-accent) 9%, transparent) 7px,
    transparent 8px 13px
  );
  opacity: 0.28;
  transform: translate3d(0, 0, 0);
  animation: reveal-texture-drift 11s linear infinite;
}

.team-reveal-grid.is-agent-pulse .team-reveal-grid__canvas {
  animation: reveal-agent-pulse 520ms var(--ease);
}

.roster-platform {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -2px 4px 14px;
  padding: 0 5px 12px;
  border-bottom: 1px solid var(--line);
}

.roster-platform__status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
}

.roster-platform__status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #00c875;
  box-shadow: 0 0 0 4px rgba(0, 200, 117, 0.1);
}

.roster-platform__status b {
  color: var(--ink);
  font-weight: 750;
}

.roster-monday-lockup {
  margin-inline-start: auto;
  font-size: 0.82rem;
}

@keyframes reveal-texture-drift {
  50% {
    transform: translate3d(2.5%, 1.5%, 0);
  }

  100% {
    transform: translate3d(5%, 3%, 0);
  }
}

@keyframes reveal-agent-pulse {
  50% {
    opacity: 0.58;
  }
}

@media (max-width: 960px) {
  .team-reveal-grid {
    --reveal-radius: 190px;
  }

  .team-reveal-grid__board {
    right: -18%;
    width: 78vw;
  }
}

@media (max-width: 700px) {
  .page--team .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page--team .hero-actions .button {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .team-reveal-grid {
    --reveal-radius: 150px;
  }

  .team-reveal-grid__base,
  .team-reveal-grid__base::after {
    background-size: 42px 42px;
  }

  .team-reveal-grid__underlay {
    -webkit-mask-image:
      radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0, rgba(0, 0, 0, 0.7) 58%, transparent 100%),
      radial-gradient(circle 95px at var(--ambient-x) var(--ambient-y), rgba(0, 0, 0, 0.65), transparent 100%);
    mask-image:
      radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0, rgba(0, 0, 0, 0.7) 58%, transparent 100%),
      radial-gradient(circle 95px at var(--ambient-x) var(--ambient-y), rgba(0, 0, 0, 0.65), transparent 100%);
  }

  .team-reveal-grid__board {
    top: 15%;
    right: -68vw;
    width: 138vw;
    opacity: 0.12;
  }

  .team-reveal-grid__texture {
    opacity: 0.16;
  }

  .roster-platform {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
  }

  .roster-monday-lockup {
    font-size: 0.78rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .team-reveal-grid__base::after {
    opacity: 0.58;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .team-reveal-grid__underlay {
    opacity: 0.58;
  }

  .team-reveal-grid__texture {
    display: none;
  }
}

.handoff-route button span {
  display: grid;
  gap: 1px;
}

.handoff-route button small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
}

/* Variation switcher */
body[data-variation="team"] .variation-switcher {
  display: none;
}

.variation-switcher {
  position: fixed;
  z-index: 120;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 32px);
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(254, 254, 253, 0.96);
  box-shadow: 0 10px 36px rgba(42, 42, 42, 0.12);
  backdrop-filter: blur(14px);
}

.variation-home,
.variation-links a,
.variation-toggle {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.variation-home {
  color: var(--horizon);
}

.variation-links {
  display: flex;
  gap: 3px;
}

.variation-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.variation-links a span {
  color: var(--monday-violet);
}

.variation-links a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--ink);
}

.variation-toggle {
  display: none;
  background: var(--ink);
  color: var(--surface);
}

/* Selector */
.lab-body {
  min-height: 100svh;
  background: var(--canvas);
}

.lab-header {
  display: flex;
  width: min(1480px, calc(100% - 64px));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.lab-round {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.lab-round strong {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--monday-violet);
}

.lab-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 100px;
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(76px, 10vw, 150px) 80px;
}

.lab-intro h1 {
  margin-top: 20px;
  font-size: clamp(4rem, 7.4vw, 8.3rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.lab-intro h1 strong {
  color: var(--horizon);
  font-weight: 800;
}

.lab-locks {
  align-self: end;
  padding: 26px;
  border-top: 3px solid var(--horizon);
  background: var(--surface-muted);
}

.lab-locks > p {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
}

.lab-locks ul {
  display: grid;
  gap: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  list-style: none;
}

.lab-locks li::before {
  margin-right: 9px;
  color: var(--horizon);
  content: "✓";
  font-weight: 700;
}

.lab-variations {
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
  padding-bottom: 100px;
}

.lab-section-title {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 500px);
  align-items: end;
  gap: 60px;
  margin-bottom: 34px;
}

.lab-section-title h2 {
  font-size: clamp(2rem, 3.2vw, 3.9rem);
}

.lab-section-title p {
  color: var(--muted);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.lab-card {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.lab-card > a {
  display: block;
  height: 100%;
}

.lab-preview {
  position: relative;
  height: clamp(300px, 31vw, 480px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.lab-card__copy {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  min-height: 154px;
  padding: 24px;
}

.lab-card__copy > span {
  color: var(--monday-violet);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.lab-card__copy h3 {
  font-size: 1.25rem;
}

.lab-card__copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.lab-card__copy > b {
  color: var(--horizon);
  font-size: 1.35rem;
  font-weight: 300;
}

.lab-preview--command .mini-copy {
  position: absolute;
  top: 12%;
  left: 8%;
  display: grid;
  width: 35%;
  gap: 12px;
}

.mini-copy span,
.mini-copy b,
.mini-copy i,
.mini-detail span,
.mini-detail b,
.lab-preview--team div span,
.lab-preview--team div b {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--line-strong);
}

.mini-copy span {
  width: 42%;
  background: var(--horizon);
}

.mini-copy b:nth-child(2) {
  width: 100%;
  height: 22px;
  background: var(--ink);
}

.mini-copy b:nth-child(3) {
  width: 75%;
  height: 22px;
  background: var(--horizon);
}

.mini-copy i {
  width: 58%;
  margin-top: 10px;
}

.mini-board {
  position: absolute;
  top: 13%;
  right: 6%;
  width: 49%;
  height: 72%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-ui);
}

.mini-board > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.mini-board > div {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 42%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-board > div img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.lab-preview--plan {
  display: grid;
  place-items: center;
}

.mini-route {
  position: absolute;
  top: 34%;
  right: 8%;
  left: 8%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mini-route::before {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--line-strong);
  content: "";
}

.mini-route i {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  justify-self: center;
  border: 8px solid var(--surface);
  border-radius: 50%;
  background: var(--monday-blue);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.mini-route i:nth-child(3) {
  width: 68px;
  height: 68px;
  margin-top: -16px;
  background: var(--monday-violet);
}

.mini-detail {
  position: absolute;
  right: 15%;
  bottom: 15%;
  left: 15%;
  display: grid;
  gap: 10px;
}

.mini-detail span {
  width: 25%;
  background: var(--monday-violet);
}

.mini-detail b:nth-child(2) {
  width: 78%;
  height: 16px;
  background: var(--ink);
}

.mini-detail b:nth-child(3) {
  width: 54%;
}

.lab-preview--team {
  overflow: hidden;
  background: #fbfbfa;
}

.mini-team-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 115, 234, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 115, 234, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
}

.mini-team-lens {
  position: absolute;
  z-index: 1;
  top: 12%;
  left: 32%;
  width: 34%;
  height: 48%;
  overflow: hidden;
  border: 2px solid var(--monday-blue);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 115, 234, 0.14);
}

.mini-team-lens img {
  width: 170%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  opacity: 0.82;
}

.lab-preview--team > img {
  position: absolute;
  z-index: 2;
  bottom: 7%;
  width: 27%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(50, 51, 56, 0.12);
}

.lab-preview--team > img:nth-of-type(1) {
  left: 3%;
  width: 23%;
  height: 48%;
  opacity: 0.78;
}

.lab-preview--team > img:nth-of-type(2) {
  z-index: 3;
  left: 19%;
  width: 31%;
  height: 68%;
}

.lab-preview--team > img:nth-of-type(3) {
  left: 43%;
  width: 24%;
  height: 52%;
  opacity: 0.86;
}

.mini-agent-detail {
  position: absolute;
  z-index: 4;
  top: 13%;
  right: 6%;
  display: grid;
  width: 31%;
  min-height: 70%;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(254, 254, 253, 0.97);
  box-shadow: var(--shadow-ui);
}

.mini-agent-detail em {
  color: var(--monday-blue);
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.mini-agent-detail strong {
  margin-top: 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 2.6rem);
  line-height: 1;
}

.mini-agent-detail span {
  width: 36%;
  margin-top: 18px;
  background: var(--monday-violet);
}

.mini-agent-detail b {
  width: 92%;
  margin-top: 10px;
}

.mini-agent-detail b:last-child {
  width: 64%;
}


.lab-footer {
  display: flex;
  width: min(1480px, calc(100% - 64px));
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.lab-references {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1.3fr);
  gap: 80px;
  margin-top: 64px;
  padding: 54px;
  border: 1px solid var(--line-strong);
  background: var(--surface-muted);
}

.lab-references h2 {
  max-width: 560px;
  margin-top: 16px;
  font-size: clamp(2rem, 3vw, 3.45rem);
}

.lab-references ol {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.lab-references li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
}

.lab-references li > span {
  color: var(--monday-violet);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.lab-references li p {
  color: var(--muted);
  font-size: 0.9rem;
}

.lab-references li strong {
  color: var(--ink);
  font-weight: 700;
}

.lab-references nav {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lab-references nav a {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Motion */
.intro-sequence > *,
.intro-visual {
  animation: intro-rise 700ms var(--ease) both;
}

.intro-sequence > *:nth-child(2) {
  animation-delay: 80ms;
}

.intro-sequence > *:nth-child(3) {
  animation-delay: 150ms;
}

.intro-sequence > *:nth-child(4) {
  animation-delay: 220ms;
}

.intro-visual {
  animation-delay: 180ms;
}

.reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: opacity 600ms ease, transform 700ms var(--ease);
}

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

@keyframes intro-rise {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover {
    transform: translateY(-2px);
    border-color: var(--horizon-hover);
    background: var(--horizon-hover);
  }

  .button--text:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
  }

  .nav-main > a:hover,
  .nav-more > button:hover,
  .nav-lang:hover,
  .chapter-nav a:hover {
    color: var(--ink);
  }

  .nav-more__menu a:hover,
  .variation-links a:hover,
  .variation-home:hover {
    background: var(--surface-muted);
  }

  .agent-choice:hover,
  .route-node:hover,
  .story-steps button:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
  }

  .handoff-route button:hover img {
    transform: translateY(-6px);
    border-color: var(--line-strong);
  }

  .lab-card:hover .lab-preview > * {
    transform: translateY(-5px);
  }

  .lab-card:hover .lab-card__copy > b {
    transform: translate(3px, -3px);
  }

  .lab-preview > *,
  .lab-card__copy > b {
    transition: transform 320ms var(--ease);
  }
}

@media (max-width: 1180px) {
  .command-hero__grid,
  .team-hero__grid {
    grid-template-columns: minmax(390px, 0.9fr) minmax(500px, 1.1fr);
    gap: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(3.45rem, 5.1vw, 4.1rem);
  }

  .command-run {
    grid-template-columns: auto 1fr;
  }

  .command-run > p:last-child {
    display: none;
  }

  .agent-detail {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .activity-layout {
    grid-template-columns: 0.7fr 1fr;
  }

  .activity-log {
    grid-column: 2;
  }

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

  .lab-preview {
    height: min(58vw, 620px);
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 68px;
  }

  .shell,
  .site-nav,
  .lab-header,
  .lab-intro,
  .lab-variations,
  .lab-footer {
    width: min(100% - 40px, var(--shell));
  }

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

  .nav-panel {
    position: fixed;
    z-index: 79;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    display: flex;
    width: min(430px, 100%);
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: 32px 24px 42px;
    transform: translateY(-8px);
    visibility: hidden;
    opacity: 0;
    border-left: 1px solid var(--line);
    background: var(--surface);
    box-shadow: -18px 0 50px rgba(42, 42, 42, 0.08);
    pointer-events: none;
    transition: opacity 180ms ease, transform 260ms var(--ease), visibility 0s linear 260ms;
  }

  .nav-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-main,
  .nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-main {
    gap: 0;
  }

  .nav-main > a,
  .nav-more > button,
  .nav-lang {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .nav-more__menu {
    position: static;
    display: none;
    transform: none;
    border: 0;
    border-radius: 0;
    opacity: 1;
    box-shadow: none;
  }

  .nav-more.is-open .nav-more__menu {
    display: grid;
  }

  .nav-actions {
    gap: 10px;
  }

  .command-hero__grid,
  .team-hero__grid,
  .plan-hero__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-hero__grid,
  .team-hero__grid,
  .command-hero__grid > *,
  .team-hero__grid > *,
  .hero-roster {
    min-width: 0;
    max-width: 100%;
  }

  .hero {
    min-height: auto;
    padding-block: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy h1 {
    font-size: clamp(4.2rem, 10vw, 6.3rem);
  }

  .command-demo,
  .hero-roster {
    width: 100%;
    max-width: 820px;
  }

  .plan-partner-badge {
    display: none;
  }

  .section-heading,
  .final-cta__inner,
  .site-footer__inner,
  .lab-intro,
  .lab-section-title {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading p {
    max-width: 600px;
  }

  .partner-band__inner {
    grid-template-columns: 1fr 1.2fr;
  }

  .partner-band .monday-wordmark {
    display: none;
  }

  .agent-workspace,
  .mandate-layout,
  .builder-layout,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .agent-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .agent-workspace {
    gap: 12px;
  }

  .mandate-layout .section-heading,
  .builder-layout .section-heading {
    grid-row: auto;
  }

  .story-steps {
    grid-column: 1;
  }

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

  .industry-story figure {
    min-height: 480px;
    max-height: 600px;
  }

  .approach-route {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 0;
  }

  .final-cta__inner > div {
    max-width: 560px;
  }

  .site-footer__note {
    grid-column: 1;
    text-align: left;
  }

  .route-canvas {
    grid-template-columns: repeat(3, 1fr);
  }

  .route-node:nth-of-type(4),
  .route-node:nth-of-type(5) {
    grid-row: 2;
  }

  .route-track {
    display: none;
  }

  .route-explanation {
    grid-template-columns: 0.4fr 1fr;
  }

  .route-explanation p {
    grid-column: 2;
  }

  .handoff-detail {
    grid-template-columns: 0.35fr 1fr;
  }

  .handoff-detail > p,
  .handoff-detail > div {
    grid-column: 2;
  }

  .activity-layout {
    grid-template-columns: 1fr 1fr;
  }

  .activity-layout .section-heading {
    grid-column: 1 / -1;
  }

  .activity-log {
    grid-column: auto;
  }

  .lab-intro {
    padding-top: 90px;
  }

  .lab-locks {
    max-width: 580px;
  }

  .lab-references {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .lab-references nav {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .shell,
  .site-nav,
  .lab-header,
  .lab-intro,
  .lab-variations,
  .lab-footer {
    width: min(100% - 28px, var(--shell));
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand > img {
    height: 34px;
  }

  .hero {
    padding-block: 54px 64px;
  }

  .hero-copy h1,
  .plan-hero .hero-copy h1 {
    max-width: 100%;
    margin-top: 18px;
    font-size: clamp(3.05rem, 14.2vw, 4.45rem);
    line-height: 1.03;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button {
    flex: 1 1 160px;
  }

  h2 {
    font-size: clamp(2.4rem, 11vw, 3.45rem);
  }

  .section-heading {
    gap: 18px;
  }

  .agents-section,
  .mandate-section,
  .industry-section,
  .approach,
  .story-section,
  .builder-section,
  .handoff-section,
  .activity-section {
    padding-block: 88px;
  }

  .command-stage {
    min-height: 475px;
  }

  .command-board {
    inset: 18px 14px 174px;
  }

  .agent-marker {
    top: 70px;
    left: 52px;
    transform: translate3d(calc(var(--run-step) * 39px), calc(var(--run-step) * 17px), 0);
  }

  .command-run {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 146px;
    padding: 12px;
  }

  .command-run__agent img {
    width: 42px;
    height: 42px;
  }

  .run-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .run-steps button {
    overflow: hidden;
    padding-inline: 3px;
    font-size: 0.65rem;
    text-overflow: ellipsis;
  }

  .partner-band__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding-block: 34px;
  }

  .partner-badge {
    width: 225px;
  }

  .agent-buttons,
  .agent-buttons--compact {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .agent-buttons::-webkit-scrollbar {
    display: none;
  }

  .agent-choice,
  .agent-buttons--compact .agent-choice {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }

  .agent-detail,
  .hero-roster .agent-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-detail__portrait,
  .hero-roster .agent-detail__portrait {
    min-height: 340px;
  }

  .agent-detail__portrait img {
    width: min(92%, 360px);
  }

  .agent-detail__copy,
  .hero-roster .agent-detail__copy {
    padding: 28px 24px 32px;
  }

  .agent-detail__copy h3 {
    font-size: 3rem;
  }

  .agent-limit {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mandate-tabs,
  .builder-tabs,
  .mission-picker,
  .industry-switch,
  .product-industry {
    width: 100%;
    overflow-x: auto;
  }

  .mandate-tabs button,
  .builder-tabs button,
  .mission-picker button,
  .industry-switch button,
  .product-industry button {
    flex: 1 0 auto;
  }

  .mandate-panel,
  .builder-panel {
    min-height: 0;
    padding: 30px 24px;
  }

  .builder-panel {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .builder-panel img {
    width: 150px;
    justify-self: end;
  }

  .industry-story {
    min-height: 0;
  }

  .industry-story figure {
    min-height: 330px;
  }

  .industry-story__copy {
    padding: 34px 24px;
  }

  .industry-story__copy h3 {
    font-size: 2.25rem;
  }

  .approach-route {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 50px;
  }

  .approach-route li {
    min-height: 0;
    padding: 30px 0 42px 28px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .approach-route li::before {
    top: 35px;
    left: -8px;
  }

  .approach-route p {
    max-width: 500px;
  }

  .final-cta__inner {
    gap: 34px;
  }

  .site-footer {
    padding-bottom: 120px;
  }

  .site-footer nav {
    justify-content: start;
  }

  .plan-hero {
    padding-block: 54px 62px;
  }

  .mission-picker {
    margin-top: 42px;
  }

  .route-canvas {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .route-node,
  .route-node--agent,
  .route-node:nth-of-type(4),
  .route-node:nth-of-type(5) {
    grid-row: auto;
    min-height: 84px;
    margin-top: 0;
    padding: 18px 18px 18px 60px;
  }

  .route-node::before {
    top: 35px;
  }

  .route-node--agent img {
    top: 3px;
    right: 8px;
    width: 78px;
    height: 78px;
  }

  .route-node--agent strong,
  .route-node--agent span {
    max-width: calc(100% - 84px);
  }

  .route-node.is-active {
    transform: translateX(6px);
  }

  .route-explanation {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 22px;
  }

  .route-explanation p {
    grid-column: 1;
  }

  .chapter-nav {
    overflow-x: auto;
  }

  .chapter-nav .shell {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    gap: 25px;
    padding-inline: 14px;
  }

  .story-board {
    min-height: 470px;
  }

  .story-board figure {
    inset: 16px 16px 195px;
  }

  .story-log {
    grid-template-columns: 40px 1fr;
    gap: 8px 12px;
  }

  .story-log h3,
  .story-log p {
    grid-column: 1 / -1;
  }

  .story-steps {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .story-steps button {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .team-hero {
    padding-top: 54px;
  }

  .hero-roster {
    padding: 10px;
    overflow: hidden;
  }

  .roster-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
  }

  .roster-controls button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .handoff-route {
    grid-template-columns: repeat(4, 138px);
    overflow-x: auto;
    padding-top: 12px;
    scroll-snap-type: x mandatory;
  }

  .handoff-route::before {
    display: none;
  }

  .handoff-route button {
    scroll-snap-align: center;
  }

  .handoff-detail {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 22px;
  }

  .handoff-detail > p,
  .handoff-detail > div {
    grid-column: 1;
  }

  .handoff-detail > div {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .handoff-detail > div span + b {
    margin-top: 12px;
  }

  .activity-layout {
    grid-template-columns: 1fr;
  }

  .activity-layout .section-heading,
  .activity-log {
    grid-column: 1;
  }

  .activity-board {
    height: 370px;
  }

  .variation-switcher {
    right: 12px;
    bottom: 12px;
    left: auto;
    display: grid;
    max-width: calc(100% - 24px);
    transform: none;
  }

  .variation-home,
  .variation-links {
    display: none;
  }

  .variation-switcher.is-open .variation-home,
  .variation-switcher.is-open .variation-links {
    display: grid;
  }

  .variation-links {
    gap: 2px;
  }

  .variation-toggle {
    display: block;
  }

  .lab-header {
    min-height: 72px;
  }

  .lab-round span {
    display: none;
  }

  .lab-intro {
    gap: 48px;
    padding-block: 70px 62px;
  }

  .lab-intro h1 {
    font-size: clamp(3.3rem, 15vw, 5.2rem);
    line-height: 1.02;
  }

  .lab-section-title {
    gap: 16px;
  }

  .lab-references {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 40px;
    padding: 30px 22px;
  }

  .lab-references nav {
    grid-column: 1;
  }

  .lab-preview {
    height: min(80vw, 440px);
  }

  .lab-card__copy {
    min-height: 0;
    padding: 20px 16px;
  }

  .lab-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 24px;
  }
}

@media (max-width: 390px) {
  .hero-copy h1,
  .plan-hero .hero-copy h1 {
    font-size: 2.82rem;
  }

  .hero-copy h1 span:last-child,
  .plan-hero .hero-copy h1 span:last-child {
    font-size: 0.78em;
    white-space: nowrap;
  }

  .product-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-industry {
    width: 100%;
  }

  .command-stage {
    min-height: 455px;
  }

  .agent-detail__portrait,
  .hero-roster .agent-detail__portrait {
    min-height: 310px;
  }

  .lab-preview {
    height: 330px;
  }
}


@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 {
    transform: none;
    opacity: 1;
  }

  .team-reveal-grid__board,
  .team-reveal-grid__underlay {
    transition: none !important;
  }

  .team-reveal-grid__texture,
  .activity-board__focus::after {
    animation: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .chapter-nav,
  .variation-switcher,
  .command-run,
  .story-log {
    background: var(--surface);
    backdrop-filter: none;
  }
}
