/* Minimal lab page — blue Morandi palette, scoped to .lab-page */

:root {
  --lab-paper: #eef2f4;
  --lab-surface: #f8fafb;
  --lab-ink: #354a59;
  --lab-muted: #6d7981;
  --lab-sage: #7d95a5;
  --lab-sage-dark: #567385;
  --lab-sage-soft: #dde6eb;
  --lab-clay: #a87f6d;
  --lab-clay-soft: #eee2dc;
  --lab-line: #d2dbe0;
  --lab-radius: 18px;
}

.lab-body {
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Libre Baskerville", Georgia, "Times New Roman", serif;

  background: var(--lab-paper);
}

.lab-body .masthead {
  border-bottom-color: var(--lab-line);
  background: rgba(238, 242, 244, 0.94);
}

.lab-body .masthead__inner-wrap {
  max-width: 1080px;
}

.lab-body .greedy-nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lab-body .masthead__menu-item--lg a,
.lab-body .greedy-nav .site-title {
  font-weight: 700 !important;
}

.lab-body .page__footer {
  display: none;
}

.lab-page {
  overflow: hidden;
  background: var(--lab-paper);
  color: var(--lab-ink);
  font-family: var(--font-sans);
  letter-spacing: -0.006em;
}

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

.lab-page a {
  color: inherit;
}

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

.lab-hero {
  padding: 88px 0 54px;
}

.lab-hero__inner {
  max-width: 1040px;
}

.lab-label {
  margin: 0;
  color: var(--lab-sage-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-hero h1 {
  max-width: 800px;
  margin: 18px 0 22px;
  color: var(--lab-ink);
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

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

.lab-intro {
  max-width: 620px;
  margin: 0;
  color: var(--lab-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.recruit-card {
  padding: 34px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  box-shadow: 0 14px 34px rgba(53, 74, 89, 0.06);
  scroll-margin-top: 90px;
}

.recruit-card__header {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--lab-line);
}

.recruit-card h2 {
  margin: 8px 0 0;
  color: var(--lab-ink);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 4.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  white-space: nowrap;
}

.recruit-card__header > p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.recruit-card__header > .recruit-manifesto {
  color: var(--lab-ink);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.55;
}

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

.role-list li {
  min-width: 0;
  margin: 0;
  padding: 0 20px;
  border-left: 1px solid var(--lab-line);
}

.role-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.role-list strong,
.role-list span {
  display: block;
}

.role-list .role-status {
  display: inline-block;
  width: auto;
  margin-bottom: 10px;
  color: var(--lab-sage-dark);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.role-list .role-status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--lab-sage);
  content: "";
  vertical-align: 0.03em;
}

.role-list .role-status--future {
  color: var(--lab-clay);
}

.role-list .role-status--future::before {
  background: var(--lab-clay);
}

.role-list strong {
  color: var(--lab-ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.role-list span {
  margin-top: 5px;
  color: var(--lab-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.role-list .role-mode {
  margin-top: 8px;
  color: var(--lab-sage-dark);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.recruit-card__action {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.lab-page .lab-button,
.lab-page .lab-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--lab-sage-dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.lab-page .lab-button:hover,
.lab-page .lab-button:focus {
  background: var(--lab-ink);
  color: #fff;
  text-decoration: none;
}

.lab-page .lab-button:focus-visible {
  outline: 3px solid var(--lab-clay);
  outline-offset: 3px;
}

.principles-glance {
  max-width: 520px;
  text-align: right;
}

.principles-glance > span {
  display: block;
  margin-bottom: 2px;
  color: var(--lab-muted);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: -0.006em;
}

.principles-glance p {
  margin: 0;
  color: var(--lab-clay);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.25;
}

.principles-glance p span {
  display: block;
}

.recruit-fallback {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--lab-line);
}

.recruit-fallback > p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.recruit-fallback > p strong {
  color: var(--lab-ink);
}

.recruit-fallback a {
  color: var(--lab-sage-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recruit-fallback ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recruit-fallback li {
  margin: 0;
}

.recruit-fallback li span,
.recruit-fallback li strong {
  display: block;
}

.recruit-fallback li span {
  color: var(--lab-muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recruit-fallback li strong {
  margin-top: 2px;
  color: var(--lab-ink);
  font-size: 0.68rem;
  font-weight: 600;
}

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

.lab-section--overview {
  padding: 40px 0 36px;
}

.lab-section--overview .agent-schema {
  margin-bottom: 0;
}

.lab-section--details {
  padding: 20px 0 100px;
}

.lab-content {
  max-width: 900px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 14px 0 18px;
  color: var(--lab-ink);
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--lab-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-heading__jump {
  display: block;
  margin-top: 9px;
  font-size: inherit;
  font-weight: 800;
}

.section-heading__jump a {
  color: var(--lab-clay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.worlds-highlight {
  color: var(--lab-ink);
  font-weight: 900;
}

.worlds-highlight span {
  color: var(--lab-clay);
}

.agent-schema {
  margin: 44px 0 52px;
  padding: 28px;
  border: 1px solid var(--lab-line);
  border-radius: 14px;
  background: transparent;
}

.agent-schema__flow {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.agent-schema__map {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.agent-schema__flow span {
  color: var(--lab-ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.agent-schema__flow > i {
  color: var(--lab-muted);
  font-style: normal;
}

.agent-schema__loop {
  padding: 11px 15px;
  border: 1px solid var(--lab-sage);
  border-radius: 999px;
  color: var(--lab-sage-dark) !important;
}

.agent-schema__loop b {
  margin: 0 7px;
  font-weight: 500;
}

.agent-schema__return {
  position: relative;
  height: 24px;
  margin: 0 19px 0 34px;
  border: 1px solid var(--lab-sage);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.agent-schema__return::before {
  position: absolute;
  top: -6px;
  left: -5px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--lab-sage-dark);
  border-left: 4px solid transparent;
  content: "";
}

.agent-schema figcaption {
  margin-top: 16px;
  color: var(--lab-muted);
  font-size: 0.67rem;
  text-align: center;
}

.disclosures {
  display: grid;
  gap: 10px;
}

.disclosure {
  border: 1px solid var(--lab-line);
  border-radius: 13px;
  background: var(--lab-surface);
  scroll-margin-top: 90px;
}

.disclosure[open] {
  border-color: #c9cec8;
}

.disclosure summary {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure__number {
  color: var(--lab-sage-dark);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.disclosure summary strong,
.disclosure summary small {
  display: block;
}

.disclosure summary strong {
  color: var(--lab-ink);
  font-family: var(--font-head);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.disclosure summary small {
  margin-top: 3px;
  color: var(--lab-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.disclosure summary > i {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--lab-line);
  border-radius: 50%;
}

.disclosure summary > i::before,
.disclosure summary > i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--lab-ink);
  content: "";
  transform: translate(-50%, -50%);
}

.disclosure summary > i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.disclosure[open] summary > i::after {
  display: none;
}

.disclosure__body {
  margin: 0 22px 22px 78px;
  padding-top: 22px;
  border-top: 1px solid var(--lab-line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.research-arc-figure {
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: #fff;
}

.research-arc-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.next-overview-figure {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: 12px;
}

.next-overview-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.work-grid article {
  min-width: 0;
}

.work-grid h3,
.direction-list h3,
.principle-list h3 {
  margin: 0 0 8px;
  color: var(--lab-ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.work-grid article > p,
.direction-list p,
.principle-list p,
.westlake-summary > p,
.pi-summary > div > p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.79rem;
  line-height: 1.6;
}

.work-grid h3 {
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.work-grid article > p {
  font-size: 0.66rem;
  line-height: 1.5;
}

.work-grid article > p strong {
  color: var(--lab-ink);
  font-weight: 700;
}

.work-highlights {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.work-highlights li {
  padding: 11px 12px 12px;
  border: 1px solid var(--lab-line);
  border-radius: 9px;
  background: rgba(238, 242, 244, 0.58);
}

.work-highlights li > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 7px;
}

.work-highlights a {
  width: 100%;
  margin: 0 0 1px;
  color: var(--lab-sage-dark);
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.work-highlights li > div > span {
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--lab-sage-soft);
  color: var(--lab-sage-dark);
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.work-highlights li > div > .work-badge--honor {
  background: var(--lab-clay-soft);
  color: var(--lab-clay);
}

.work-highlights li > div > .work-badge--impact {
  border: 1px solid var(--lab-sage);
  background: transparent;
}

.work-highlights li > p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.54rem;
  line-height: 1.48;
}

.direction-list {
  display: grid;
  gap: 0;
}

.direction-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lab-line);
}

.direction-list article:first-child {
  padding-top: 0;
}

.direction-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.direction-list article > span {
  color: var(--lab-clay);
  font-size: 0.7rem;
  font-weight: 900;
}

.direction-list p strong {
  color: var(--lab-ink);
  font-weight: 700;
}

.pi-summary {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
}

.pi-summary img {
  width: 120px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  filter: saturate(0.72);
}

.pi-summary ul,
.westlake-summary ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--lab-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.pi-summary li,
.westlake-summary li {
  margin: 4px 0;
}

.pi-summary li strong {
  color: var(--lab-ink);
}

.pi-summary > div > p a {
  color: var(--lab-sage-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px !important;
}

.text-links a {
  color: var(--lab-sage-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 34px;
}

.westlake-summary {
  max-width: 720px;
}

.lab-footer {
  padding: 32px 0;
  border-top: 1px solid var(--lab-line);
  background: var(--lab-sage-soft);
}

.lab-footer .lab-shell {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.lab-footer p {
  margin: 0;
}

.lab-footer p strong,
.lab-footer p span {
  display: block;
}

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

.lab-footer p span {
  margin-top: 3px;
  color: var(--lab-muted);
  font-size: 0.62rem;
}

.lab-footer a {
  color: var(--lab-sage-dark);
  font-size: 0.68rem;
  font-weight: 900;
}

@media (max-width: 820px) {
  .lab-shell {
    width: min(100% - 32px, 720px);
  }

  .lab-hero {
    padding-top: 68px;
  }

  .recruit-card__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .role-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .role-list li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

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

@media (max-width: 620px) {
  .lab-shell {
    width: min(100% - 24px, 540px);
  }

  .lab-hero {
    padding: 56px 0 38px;
  }

  .lab-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .lab-intro {
    font-size: 0.96rem;
  }

  .recruit-card {
    padding: 24px 18px;
  }

  .role-list {
    grid-template-columns: 1fr;
  }

  .role-list li,
  .role-list li:nth-child(3) {
    padding: 0 0 15px;
    border-bottom: 1px solid var(--lab-line);
    border-left: 0;
  }

  .role-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .recruit-card__action {
    align-items: stretch;
    flex-direction: column;
  }

  .recruit-fallback {
    grid-template-columns: 1fr;
  }

  .principles-glance {
    max-width: none;
    text-align: left;
  }

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

  .lab-section--overview {
    padding: 32px 0 28px;
  }

  .lab-section--details {
    padding: 16px 0 76px;
  }

  .agent-schema {
    padding: 24px 16px;
  }

  .agent-schema__flow {
    flex-direction: column;
  }

  .agent-schema__flow > i {
    transform: rotate(90deg);
  }

  .agent-schema__map {
    display: flex;
    align-items: stretch;
  }

  .agent-schema__return {
    width: 26px;
    height: auto;
    margin: 20px 0 20px 8px;
    border: 1px solid var(--lab-sage);
    border-left: 0;
    border-radius: 0 12px 12px 0;
  }

  .agent-schema__return::before {
    top: -5px;
    left: -7px;
    border-top: 4px solid transparent;
    border-right: 7px solid var(--lab-sage-dark);
    border-bottom: 4px solid transparent;
    border-left: 0;
  }

  .disclosure summary {
    grid-template-columns: 30px 1fr 26px;
    gap: 9px;
    padding: 18px 14px;
  }

  .disclosure__body {
    margin: 0 14px 20px;
  }

  .pi-summary,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .pi-summary img {
    width: 100px;
    height: 116px;
  }

  .lab-footer .lab-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-page *,
  .lab-page *::before,
  .lab-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
