/* SAKSHI stylesheet.
   Base design system adapted from the DOJO site by MIT Critical Data
   (https://github.com/criticaldata/dojo, MIT License; see vendor/LICENSE-dojo.txt).
   SAKSHI additions follow the "SAKSHI additions" marker below. */

:root {
  --color-ivory: #f5f1eb;
  --color-paper: #fffdf9;
  --color-ink: #25221f;
  --color-muted: #6e6861;
  --color-terracotta: #8f3f30;
  --color-sage: #2f634e;
  --color-line: #d8d0c7;
  --color-soft-gray: #e6e0d8;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --shadow-soft: 0 18px 50px rgba(37, 34, 31, 0.08);
  --radius-card: 4px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-ivory);
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 5rem));
  margin-inline: auto;
}

.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: 20;
  top: 0.75rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--color-paper);
  background: var(--color-ink);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--color-line);
  background: rgba(245, 241, 235, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 5.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-header__identity,
.site-footer__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--color-terracotta);
  border-radius: 50%;
  color: var(--color-terracotta);
  font-size: 1.45rem;
  line-height: 1;
}

.brand__name {
  font-size: 1.2rem;
}

/* The lab name, in text only (no lockup with the MIT logo). */
.institutional-mark {
  display: inline-flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The MIT logo, top right of every page. The SVG carries its own clear
   space (one bar width on every side), so the rule and the nav never come
   closer to the mark than the brand rules allow. */
.mit-logo {
  display: block;
  flex: 0 0 auto;
  padding-left: 0.5rem;
  border-left: 1px solid var(--color-line);
  line-height: 0;
}

.mit-logo img {
  display: block;
  width: auto;
  height: 3.25rem;
}

.site-nav {
  flex: 1 1 auto;
}

.institutional-mark:hover,
.institutional-mark:focus-visible {
  color: var(--color-terracotta);
}

.institutional-mark--section {
  margin-bottom: 1.4rem;
}

.section-heading__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading__row .eyebrow {
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.95rem;
}

.site-nav a,
.text-link {
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav a {
  padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--color-terracotta);
}

.menu-toggle {
  display: none;
  min-width: 2.8rem;
  min-height: 2.8rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 1.2rem;
  cursor: pointer;
}

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(6rem, 11vw, 10rem) 0;
  scroll-margin-top: 5.7rem;
  overflow: hidden;
}

.section--hero {
  min-height: min(860px, calc(100svh - 5.7rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--color-terracotta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(3.4rem, 6.8vw, 6.3rem);
  letter-spacing: -0.055em;
}

h2 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.025em;
}

.hero__lede {
  max-width: 39rem;
  margin-bottom: 2.25rem;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: var(--color-paper);
  background: var(--color-terracotta);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #773326;
}

.button--quiet {
  border-color: var(--color-line);
  color: var(--color-ink);
  background: transparent;
}

.button--quiet:hover,
.button--quiet:focus-visible {
  border-color: var(--color-terracotta);
  background: rgba(255, 253, 249, 0.7);
}

.hero__scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 3.5rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__scroll-cue span {
  color: var(--color-terracotta);
  font-size: 1.4rem;
}

.section--what-is {
  background: var(--color-paper);
}

.section--architecture {
  color: var(--color-paper);
  background: var(--color-ink);
}

.section--team {
  background: var(--color-ivory);
}

.section--contact {
  color: var(--color-paper);
  background: var(--color-sage);
}

.compact-section {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 55rem;
  margin-bottom: clamp(3rem, 6vw, 5.3rem);
}

.section-heading > p:last-child {
  max-width: 39rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.section--architecture .section-heading > p:last-child,
.section--contact .section-heading > p:last-child {
  color: rgba(255, 253, 249, 0.72);
}

.section--contact .eyebrow {
  color: var(--color-paper);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.2em;
}

.what-is-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
}

.prose {
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.principles-list {
  display: grid;
  border-top: 1px solid var(--color-line);
}

.principle {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.2rem 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--color-line);
}

.principle > span,
.plane-card__number,
.flow-step > span {
  color: var(--color-terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.principle strong {
  font-size: 1.12rem;
}

.principle p {
  grid-column: 2;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.plane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  background: rgba(255, 253, 249, 0.22);
}

.plane-card {
  min-height: 19rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: var(--color-ink);
}

.plane-card--featured {
  color: var(--color-paper);
  background: var(--color-terracotta);
}

.plane-card__number {
  display: block;
  margin-bottom: 4.4rem;
  color: rgba(255, 253, 249, 0.67);
}

.plane-card h3 {
  margin-bottom: 1rem;
}

.plane-card p {
  max-width: 23rem;
  margin: 0;
  color: rgba(255, 253, 249, 0.72);
  font-size: 0.97rem;
}

.plane-card--featured p {
  color: rgba(255, 253, 249, 0.84);
}

.architecture-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 3.3rem;
}

.flow-step {
  min-width: 0;
}

.flow-step > span {
  display: block;
  margin-bottom: 1rem;
  color: var(--color-terracotta);
}

.flow-step strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.flow-step small {
  display: block;
  color: rgba(255, 253, 249, 0.64);
  font-size: 0.86rem;
  line-height: 1.45;
}

.flow-line {
  padding-top: 1.55rem;
  color: var(--color-terracotta);
  font-size: 1.4rem;
}

.evidence-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  padding: 1.45rem 0;
  border-top: 1px solid rgba(255, 253, 249, 0.25);
  border-bottom: 1px solid rgba(255, 253, 249, 0.25);
}

.evidence-strip__label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--color-terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evidence-strip strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
}

.evidence-strip p {
  align-self: end;
  margin: 0;
  color: rgba(255, 253, 249, 0.68);
  font-size: 0.95rem;
}

.research-library {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.research-library__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.research-library__header h3 {
  max-width: 17ch;
  margin-bottom: 0;
  color: var(--color-paper);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.research-library__header p {
  margin: 0;
  color: rgba(255, 253, 249, 0.68);
  font-size: 0.95rem;
}

.paper-card {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 253, 249, 0.28);
  background: var(--color-terracotta);
}

.paper-card + .paper-card {
  margin-top: 0.75rem;
}

.paper-card + .paper-list {
  margin-top: 1.5rem;
}

.paper-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.paper-card__index,
.paper-item__index {
  color: rgba(255, 253, 249, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-card h4 {
  max-width: 48ch;
  margin-bottom: 0.5rem;
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 400;
  line-height: 1.08;
}

.paper-card p {
  max-width: 48rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 253, 249, 0.82);
}

.paper-card .paper-card__meta,
.paper-item__content .paper-card__meta {
  margin-bottom: 0.9rem;
  color: rgba(255, 253, 249, 0.68);
  font-size: 0.86rem;
}

.paper-card a,
.paper-item__content a {
  color: var(--color-paper);
  font-weight: 700;
  text-decoration: none;
}

.paper-card a:hover,
.paper-card a:focus-visible,
.paper-item__content a:hover,
.paper-item__content a:focus-visible {
  color: #f0c4b8;
}

.paper-list {
  border-top: 1px solid rgba(255, 253, 249, 0.24);
}

.paper-item {
  border-bottom: 1px solid rgba(255, 253, 249, 0.24);
}

.paper-item summary {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  color: var(--color-paper);
  cursor: pointer;
  list-style: none;
}

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

.paper-item__index {
  color: var(--color-terracotta);
}

.paper-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.2;
}

.paper-item__toggle {
  color: var(--color-terracotta);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.paper-item[open] .paper-item__toggle {
  transform: rotate(45deg);
}

.paper-item__content {
  max-width: 48rem;
  margin-left: 5rem;
  padding: 0 2rem 1.4rem 0;
  color: rgba(255, 253, 249, 0.7);
  font-size: 0.95rem;
}

.paper-item__content p:last-of-type {
  margin-bottom: 0.8rem;
}

.team-group + .team-group {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.team-group__title {
  margin: 0 0 1.25rem;
  color: var(--color-sage);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.team-profile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}

.team-profile--principal {
  display: grid;
  max-width: 54rem;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1fr);
}

.team-profile__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-soft-gray);
}

.team-profile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: grayscale(100%);
}

.team-profile__body {
  display: flex;
  min-height: 10rem;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.team-profile--principal .team-profile__body {
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.team-profile__role {
  margin: 0 0 0.75rem;
  color: var(--color-terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.team-profile h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.team-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: auto;
}

.team-profile__links a {
  color: var(--color-sage);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.team-profile__links a:hover,
.team-profile__links a:focus-visible {
  color: var(--color-terracotta);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
}

.contact-layout h2 {
  max-width: 10ch;
}

.contact-card {
  padding: 1.6rem;
  border: 1px solid rgba(255, 253, 249, 0.34);
  background: rgba(37, 34, 31, 0.16);
}

.contact-card p {
  margin-bottom: 1.5rem;
  color: rgba(255, 253, 249, 0.8);
  font-size: 1.12rem;
}

.contact-people {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.contact-person {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 253, 249, 0.2);
}

.contact-person__name {
  color: var(--color-paper);
}

.contact-person a {
  color: rgba(255, 253, 249, 0.8);
  font-size: 0.9rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact-person a:hover,
.contact-person a:focus-visible {
  color: var(--color-paper);
}

.contact-card .button--quiet {
  border-color: rgba(255, 253, 249, 0.42);
  color: var(--color-paper);
}

.contact-card .button--quiet:hover,
.contact-card .button--quiet:focus-visible {
  border-color: var(--color-paper);
  background: rgba(255, 253, 249, 0.12);
}

.site-footer {
  color: var(--color-muted);
  background: var(--color-ivory);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 6.5rem;
}

.site-footer .brand {
  color: var(--color-ink);
}

.site-footer__identity {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.institutional-mark--footer {
  padding-left: 0.35rem;
}

.anatomy-mark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  animation: anatomy-float 13s ease-in-out infinite;
}

.anatomy-mark path {
  fill: none;
  stroke: var(--color-terracotta);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.anatomy-mark .anatomy-shade {
  fill: rgba(143, 63, 48, 0.08);
  stroke-width: 0.85;
}

.anatomy-mark .anatomy-hatch {
  stroke: var(--color-sage);
  stroke-width: 0.9;
}

.anatomy-mark--brain {
  top: 8%;
  right: -1rem;
  width: min(31rem, 40vw);
}

.anatomy-mark--thorax {
  top: 12%;
  right: -3rem;
  width: min(29rem, 38vw);
  opacity: 0.25;
}

.section--architecture .anatomy-mark path {
  stroke: #d58673;
}

.section--architecture .anatomy-mark .anatomy-hatch {
  stroke: #83aa95;
}

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

html.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 620ms ease, transform 620ms ease;
}

html.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes anatomy-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, 0.7rem, 0) rotate(1deg); }
}

@media (max-width: 960px) {
  .container {
    width: min(100% - 3.5rem, 760px);
  }

  .hero__grid,
  .what-is-grid,
  .contact-layout {
    gap: 3rem;
  }

  h1 {
    font-size: clamp(3.2rem, 8vw, 5rem);
  }

  .hero__signal {
    width: min(100%, 23rem);
  }

  .site-nav {
    gap: 0.3rem 0.8rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .anatomy-mark--brain,
  .anatomy-mark--thorax {
    right: -7rem;
    opacity: 0.15;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 2.5rem, 620px);
  }

  .site-header__inner {
    min-height: 4.9rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .mit-logo img {
    height: 3rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1.25rem;
    left: 1.25rem;
    display: grid;
    gap: 0;
    padding: 0.65rem 1rem;
    border: 1px solid var(--color-line);
    background: var(--color-paper);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--color-soft-gray);
    font-size: 0.9rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 5.5rem 0;
  }

  .section--hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .hero__grid,
  .what-is-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__signal {
    width: min(90vw, 22rem);
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .hero__signal > p {
    right: -0.6rem;
    bottom: -0.3rem;
    font-size: 1.25rem;
  }

  .hero__scroll-cue {
    padding-top: 2rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .plane-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .plane-card {
    min-height: 15rem;
  }

  .plane-card__number {
    margin-bottom: 2.8rem;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .flow-line {
    display: none;
  }

  .evidence-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-profile--principal {
    grid-template-columns: 1fr;
  }

  .team-profile__body,
  .team-profile--principal .team-profile__body {
    min-height: auto;
    padding: 1.35rem;
  }

  .contact-layout h2 {
    max-width: 12ch;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .anatomy-mark--brain,
  .anatomy-mark--thorax {
    top: 4%;
    right: -11rem;
    width: 23rem;
    opacity: 0.1;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 2rem, 620px);
  }

  .site-header__inner {
    gap: 1rem;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .mit-logo img {
    height: 2.6rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-person {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .button {
    width: 100%;
  }

  .hero__signal {
    width: min(100%, 19rem);
  }

  .hero__signal > p {
    right: -0.4rem;
    width: 8.5rem;
    font-size: 1.1rem;
  }

  .principle {
    grid-template-columns: 2.3rem 1fr;
    gap: 0.2rem 0.8rem;
  }

  .principle p {
    grid-column: 2;
  }

  .research-library__header,
  .paper-card {
    grid-template-columns: 1fr;
  }

  .paper-card__index {
    margin-bottom: -0.5rem;
  }

  .paper-item summary {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    gap: 0.7rem;
  }

  .paper-item__content {
    margin-left: 3.1rem;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .anatomy-mark {
    animation: none !important;
  }
}

/* ===================== SAKSHI additions ===================== */

:root { color-scheme: light; }

/* Brand mark: the witness eye inside the DOJO-style ring */
.brand__mark svg { width: 1.3rem; height: auto; display: block; }

/* Status line under the header: the site states its status on every page */
.status-line { border-bottom: 1px solid var(--color-line); background: var(--color-paper); }
.status-line p { margin: 0; padding: 0.55rem 0; color: var(--color-muted); font-size: 0.8rem; line-height: 1.4; }
.status-line strong { color: var(--color-ink); }

/* Hero */
.hero__eyebrow-deva { font-family: "Kohinoor Devanagari", "Devanagari MT", "Nirmala UI", "Noto Sans Devanagari", Mangal, serif; font-size: 1.1em; letter-spacing: 0; text-transform: none; margin-right: 0.6rem; }
.hero__status { margin: 0 0 2rem; color: var(--color-muted); font-size: 0.9rem; max-width: 39rem; }
.hero__status strong { color: var(--color-ink); }

/* Protocol section: four domain cards */
.plane-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plane-card ul { margin: 0; padding-left: 1.1rem; color: rgba(255, 253, 249, 0.72); font-size: 0.92rem; }
.plane-card li + li { margin-top: 0.35rem; }
.plane-card--featured ul { color: rgba(255, 253, 249, 0.84); }
.plane-card__what { margin-bottom: 0.9rem; }

/* Deeper pages row */
.deeper { margin-top: clamp(3rem, 6vw, 5rem); }
.deeper__label { display: block; margin-bottom: 1rem; }
.deeper .button-row .button { min-height: 2.9rem; padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.section--architecture .deeper .button--quiet { border-color: rgba(255, 253, 249, 0.38); color: var(--color-paper); }
.section--architecture .deeper .button--quiet:hover, .section--architecture .deeper .button--quiet:focus-visible { border-color: var(--color-paper); background: rgba(255, 253, 249, 0.1); }

/* Contributors map */
.section--team .section-heading { margin-bottom: clamp(2rem, 4vw, 3rem); }
.world { margin-top: 0; }
.world svg { display: block; width: 100%; height: auto; overflow: visible; }
.world__dots { fill: none; stroke: var(--color-line); stroke-width: 4.2; stroke-linecap: round; }
.world__links path { fill: none; stroke: var(--color-terracotta); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.45; }
.pin__dot { fill: var(--color-terracotta); }
.pin__ring { fill: none; stroke: var(--color-terracotta); stroke-width: 1; opacity: 0.45; }
.pin text, .hub text { fill: var(--color-ink); font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; paint-order: stroke; stroke: var(--color-ivory); stroke-width: 4px; stroke-linejoin: round; }
.hub__dot { fill: var(--color-sage); }
.hub__ring { fill: none; stroke: var(--color-sage); stroke-width: 1.2; opacity: 0.7; }
.hub text { fill: var(--color-sage); }
.world__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.world__legend li { padding: 0.3rem 0.75rem; border: 1px solid var(--color-line); border-radius: 999px; color: var(--color-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
/* Separate the governance notes from the map and keep paragraphs readable. */
.team-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}
.team-note h3 { margin: 0 0 0.75rem; }
.team-note p { max-width: 62ch; margin: 0; color: var(--color-muted); line-height: 1.7; }
.team-notes .team-note a { display: inline; padding-block: 0; text-underline-offset: 0.18em; }

/* Country markers breathe gently; the geographic dots and labels stay still. */
@keyframes map-dot-pulse {
  0%, 50%, 100% { transform: scale(1); opacity: 1; }
  22% { transform: scale(1.12); opacity: 0.85; }
}
@keyframes map-ring-pulse {
  0% { transform: scale(0.85); opacity: 0.45; }
  38%, 100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .world .pin__dot, .world .hub__dot,
  .world .pin__ring, .world .hub__ring {
    transform-box: fill-box;
    transform-origin: center;
    animation-duration: 6s;
    animation-delay: var(--map-pulse-delay, 0s);
    animation-iteration-count: infinite;
  }
  .world .pin__dot, .world .hub__dot { animation-name: map-dot-pulse; animation-timing-function: ease-in-out; }
  .world .pin__ring, .world .hub__ring { animation-name: map-ring-pulse; animation-timing-function: ease-out; }
  .world .pin:nth-child(3n + 2) { --map-pulse-delay: -2s; }
  .world .pin:nth-child(3n) { --map-pulse-delay: -4s; }
  .world .hub { --map-pulse-delay: -1s; }
}
@media (max-width: 760px) {
  .pin text, .hub text { font-size: 15px; }
  .team-notes { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 1.5rem; }
}
/* Contact */
.contact-card .button--primary { color: var(--color-paper); }
.contact-person .copy { font: inherit; font-size: 0.78rem; font-weight: 700; margin-left: 0.6rem; padding: 0.2rem 0.6rem; border: 1px solid rgba(255, 253, 249, 0.42); border-radius: 999px; background: transparent; color: var(--color-paper); cursor: pointer; }
.contact-person .copy:hover { border-color: var(--color-paper); }

/* Footer */
.site-footer__inner { padding-top: 1rem; padding-bottom: 1rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: flex-end; }

/* ---------- Inner pages (Protocol, Governance, Case Study, Template, Profiles, Get Involved, About) ---------- */
.section--page { background: var(--color-paper); padding-top: clamp(3.5rem, 7vw, 6rem); overflow: visible; }
.section--page .section-heading { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section--page .section-heading h1 { max-width: 16ch; margin-bottom: 1.25rem; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -0.045em; }
.section--page .section-heading .lede { max-width: 39rem; margin: 0; color: var(--color-muted); font-size: 1.1rem; }
.page-prose { max-width: 48rem; font-size: 1.02rem; }
.page-prose p, .page-prose ul, .page-prose ol, .page-prose dl, .page-prose blockquote, .page-prose table { margin: 0 0 1.1rem; }
.page-prose p, .page-prose li, .page-prose dd { max-width: 66ch; }
.page-prose h2 { max-width: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; }
.page-prose h3 { margin: 1.8rem 0 0.6rem; font-size: 1.35rem; }
.page-prose h4 { margin: 1.25rem 0 0.4rem; font-size: 0.95rem; font-weight: 700; }
.page-prose section > .eyebrow { margin-top: 2.5rem; }
.page-prose h2 + p, .page-prose h3 + p { margin-top: 0; }
.page-prose a { color: var(--color-sage); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.page-prose a:hover { color: var(--color-terracotta); }
.page-prose ul, .page-prose ol { padding-left: 1.25rem; }
.page-prose li + li { margin-top: 0.35rem; }
.page-prose ul.plain { list-style: none; padding: 0; }
.page-prose blockquote { margin-left: 0; padding-left: 1.1rem; border-left: 2px solid var(--color-terracotta); color: var(--color-ink); }
.page-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--color-soft-gray); padding: 0.1em 0.35em; border-radius: 2px; }
.page-prose small { color: var(--color-muted); font-size: 0.875rem; }
.page-prose .muted { color: var(--color-muted); }
.page-prose .note { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid var(--color-line); color: var(--color-muted); font-size: 0.92rem; }
.page-prose .eyebrow { margin-bottom: 0.75rem; }
.page-prose .lede { color: var(--color-muted); font-size: 1.12rem; max-width: 40ch; }

/* Parallel blocks (principles, elements) */
.blocks { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 1rem 0 0; }
@media (min-width: 48rem) { .blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } .blocks.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blocks > li { margin: 0; border-top: 2px solid var(--color-ink); padding-top: 0.75rem; min-width: 0; }
.blocks h3 { margin-top: 0; font-size: 1.2rem; }
.blocks p { font-size: 0.96rem; color: var(--color-muted); }

/* Domains, Q&A and fact lists */
.domains { display: grid; gap: 2rem; margin-top: 1.5rem; }
.domain { border-top: 1px solid var(--color-line); padding-top: 1rem; }
.domain h3 { margin-top: 0; }
.qa div, .facts div { display: grid; gap: 0.15rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-line); }
@media (min-width: 40rem) { .facts div, .scoring div, .setup div { grid-template-columns: 14rem minmax(0, 1fr); } }
.facts, .qa { margin: 1rem 0; }
.facts dt, .qa dt { font-weight: 700; }
.facts dd, .qa dd { margin: 0; }
.scoring dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }

/* Numbered phases */
ol.phases { counter-reset: phase; list-style: none; padding: 0; display: grid; gap: 1rem; }
ol.phases > li { counter-increment: phase; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.5rem; }
ol.phases > li::before { content: counter(phase); font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--color-terracotta); }
ol.phases h3 { margin-top: 0; font-size: 1.15rem; }

/* Boxes */
.box, .composite { border: 1px solid var(--color-line); padding: 0.9rem 1rem; margin: 1.25rem 0; background: var(--color-ivory); }
.composite { border: 1px solid var(--color-terracotta); }
.box h3 { margin-top: 0; font-size: 1.15rem; }
.box p:last-child, .box blockquote:last-child, .composite p { margin-bottom: 0; }
.composite p { max-width: none; }

/* Tables, badges, details */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--color-line); }
thead th { font-weight: 700; border-bottom: 2px solid var(--color-ink); }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--color-line); border-radius: 999px; padding: 0.2rem 0.65rem; color: var(--color-ink); margin: 0 0 1rem; }
.badge-status-published, .badge-independent-evidence-available { border-color: var(--color-sage); color: var(--color-sage); }
.badge-status-withdrawn, .badge-no-independent-evidence, .badge-company-did-not-engage { border-color: var(--color-terracotta); color: var(--color-terracotta); }
.page-prose details { margin: 1rem 0; }
.page-prose summary { cursor: pointer; font-weight: 700; }

/* Template page controls */
.toolbar { border: 1px solid var(--color-line); padding: 0.9rem 1rem; margin: 1.5rem 0; display: grid; gap: 0.75rem; background: var(--color-ivory); }
.toolbar p { margin: 0; max-width: none; font-size: 0.9rem; }
.toolbar .button-row .btn { min-height: 2.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.55rem 1.1rem; border: 1px solid var(--color-terracotta); border-radius: 999px; background: var(--color-terracotta); color: var(--color-paper); font: inherit; font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--color-ink); border-color: var(--color-line); }
.btn.secondary:hover { border-color: var(--color-terracotta); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
input[type="text"], input[type="date"], textarea, select { font: inherit; font-size: 0.95rem; color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-line); border-radius: 4px; padding: 0.45rem 0.55rem; width: 100%; max-width: 100%; }
textarea { resize: vertical; min-height: 2.5rem; }
table.items th:nth-child(1) { width: 3rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
table.items th:nth-child(3) { width: 9rem; }
table.items th:nth-child(4) { width: 30%; }
table.items td:nth-child(2) { min-width: 18rem; }
table.items td:nth-child(3) { min-width: 8rem; }
table.items td:nth-child(4) { min-width: 14rem; }
tr[data-status="Absent"] th, tr[data-status="Refused"] th { color: var(--color-terracotta); }
ol.gaps textarea { margin-top: 0.5rem; }

/* Citation */
.cite { max-width: 48rem; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--color-line); padding-top: 1rem; font-size: 0.88rem; color: var(--color-muted); }
.cite p { margin: 0; }
.cite a { color: var(--color-sage); font-weight: 600; }
.cite-label { display: inline-block; margin-right: 0.5rem; color: var(--color-terracotta); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* Home: the witness eye as the section decoration */
.anatomy-mark--eye { top: 6%; right: -2rem; width: min(30rem, 40vw); }
.anatomy-mark--eye-dark { top: 10%; right: -3rem; width: min(28rem, 38vw); opacity: 0.2; }

/* Responsive adjustments for additions */
@media (max-width: 960px) { .plane-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .plane-grid--four { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
  .section--page .section-heading h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
}
@media print { .site-nav, .menu-toggle, .skip-link, .toolbar, .copy { display: none; } }

/* Sub-heading inside a section (home: the gap) */
.section-heading--sub { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: 0; }
.h2--small { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 24ch; }
.section--what-is .blocks { margin-top: 1.5rem; }

/* ---------- Hero animation: the witness eye ---------- */
.hero__witness { position: relative; width: min(100%, 32rem); margin-inline: auto; }
.hero__witness .witness { display: block; width: 100%; height: auto; overflow: visible; }
.hero__witness > p { position: absolute; left: -0.25rem; bottom: -0.4rem; width: 9.5rem; margin: 0; color: var(--color-muted); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.08; }
.w-ring { fill: none; stroke: var(--color-line); stroke-width: 1; stroke-dasharray: 3 9; transform-box: fill-box; transform-origin: 50% 50%; animation: w-ring-turn 120s linear infinite; }
.w-beam { stroke: var(--color-terracotta); stroke-width: 1.2; stroke-dasharray: 4 7; opacity: 0.5; animation: w-beam-flow 1.1s linear infinite; }
.w-node circle { fill: var(--color-paper); stroke: var(--color-line); stroke-width: 1.5; transition: fill 320ms ease, stroke 320ms ease; }
.w-node text { fill: var(--color-muted); font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: fill 320ms ease; }
.w-node__tick { fill: none; stroke: var(--color-paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 320ms ease; }
.w-node.is-active circle { fill: var(--color-terracotta); stroke: var(--color-terracotta); }
.w-node.is-active text { fill: var(--color-ink); }
.w-node.is-done circle { fill: var(--color-sage); stroke: var(--color-sage); }
.w-node.is-done .w-node__tick { opacity: 1; }
.w-crease { fill: none; stroke: var(--color-ink); stroke-width: 1.1; stroke-linecap: round; opacity: 0.35; }
.w-white { fill: var(--color-paper); }
.w-shade { fill: url(#w-shade-grad); }
.w-lid { fill: none; stroke: var(--color-ink); stroke-linecap: round; stroke-linejoin: round; }
.w-lid--upper { stroke-width: 3.2; }
.w-lid--lower { stroke-width: 1.4; opacity: 0.8; }
.w-iris { transition: transform 460ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.w-iris__shadow { fill: rgba(37, 34, 31, 0.18); }
.w-iris__fill { fill: url(#w-iris-grad); }
.w-iris__fibres { fill: none; stroke: rgba(255, 253, 249, 0.28); stroke-width: 0.9; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 50%; animation: w-fibres-turn 60s linear infinite; }
.w-iris__limbus { fill: none; stroke: #3d1a12; stroke-width: 3; opacity: 0.85; }
.w-pupil circle { fill: url(#w-pupil-grad); }
.w-pupil { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 500ms ease; }
.w-pupil.is-wide { transform: scale(1.25); }
.w-glint { fill: var(--color-paper); opacity: 0.95; }
.w-glint--small { opacity: 0.7; }
.w-lids { transform-box: fill-box; transform-origin: 50% 100%; }
.w-lids.is-blinking { animation: w-blink 220ms ease-in-out; }
.w-now-label { fill: var(--color-terracotta); font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.w-now { fill: var(--color-ink); font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; transition: opacity 220ms ease; }
.w-now.is-swapping { opacity: 0; }
@keyframes w-ring-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes w-fibres-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes w-beam-flow { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes w-blink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(0.04); } }
@media (max-width: 760px) {
  .hero__witness { width: min(92vw, 24rem); margin-top: 1rem; margin-bottom: 2.4rem; }
  .hero__witness > p { left: 0; bottom: -1rem; width: 8rem; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .w-ring, .w-beam, .w-iris__fibres { animation: none; }
  .w-node circle { fill: var(--color-terracotta); stroke: var(--color-terracotta); }
  .w-node text { fill: var(--color-ink); }
}

/* ---------- Accessibility polish (audit 2026-10-25) ---------- */
/* Labels on the dark Protocol section: terracotta on ink was 2.2:1; the lighter tint reads at AA. */
.section--architecture .flow-step > span,
.section--architecture .flow-line,
.section--architecture .evidence-strip__label,
.section--architecture .paper-item__index,
.section--architecture .paper-item__toggle,
.section--architecture .paper-card__index { color: #d58673; }
.paper-card .paper-card__meta { color: rgba(255, 253, 249, 0.8); }
/* Focus ring: 3:1 against light surfaces, a pale tint on dark and sage surfaces. */
:focus-visible { outline: 3px solid var(--color-terracotta); outline-offset: 4px; }
.section--architecture :focus-visible, .section--contact :focus-visible { outline-color: #f0c4b8; }
/* Standalone links and marks reach the 24px minimum target size. */
.paper-card__links a, .paper-item__content a, .text-link, .team-profile__links a, .team-notes a { display: inline-block; padding-block: 0.3rem; }
.institutional-mark { padding-block: 0.4rem; }
.site-footer__links .text-link { padding-block: 0.45rem; }

/* ---------- Slop pass (2026-11-02) ---------- */
h1, h2, h3, .research-library__header h3 { text-wrap: balance; }
.lede, .hero__lede, .section-heading > p:last-child, .page-prose p { text-wrap: pretty; }
@media (max-width: 760px) {
  h1 { max-width: 12ch; font-size: clamp(2.4rem, 11vw, 3.6rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}
.section-heading h2 { max-width: 20ch; }
.contact-layout h2 { max-width: 12ch; }
