:root {
  --paper: #f4efe7;
  --paper-deep: #e8ded1;
  --ink: #28242c;
  --muted: #726d79;
  --terracotta: #725db2;
  --terracotta-dark: #59478d;
  --apricot: #c9bbed;
  --clay: #9b88ce;
  --espresso: #4c3d70;
  --violet: #6f5ab0;
  --violet-deep: #493a6b;
  --violet-soft: #b9a8e2;
  --cream: #fbf7f0;
  --line: rgba(76, 61, 112, 0.18);
  --font-sans: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Aptos Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --max-width: 1320px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.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;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.section-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding-inline: var(--pad);
  transition: background 250ms ease, border-color 250ms ease, height 250ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(244, 239, 231, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.wordmark b { color: var(--terracotta); font-weight: 600; }
.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  transform: rotate(45deg);
}
.wordmark-mark i { display: block; border-radius: 50%; background: var(--ink); }
.wordmark-mark i:nth-child(2), .wordmark-mark i:nth-child(3) { background: var(--terracotta); }
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.site-nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(var(--pad), calc((100vw - var(--max-width)) / 2 + var(--pad)));
  min-height: min(940px, 100svh);
  padding-top: clamp(9rem, 18vh, 12rem);
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  grid-template-rows: 1fr;
  column-gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--line) 14%, var(--line) 86%, transparent);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index {
  margin: 0 0 1.5rem;
  color: var(--terracotta-dark);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .join h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.96;
}
.hero .eyebrow {
  max-width: 760px;
  margin-bottom: 2.1rem;
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  letter-spacing: 0.18em;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 820px;
}
.hero h1 .hero-lab-name {
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: clamp(5rem, 8.7vw, 8.8rem);
  font-weight: 750;
  letter-spacing: -0.085em;
  line-height: 0.8;
  padding-right: 0.16em;
  margin-right: -0.16em;
  overflow: visible;
  white-space: nowrap;
}
.hero h1 .hero-lab-name em {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
}
.hero h1 .hero-claim {
  display: block;
  max-width: 640px;
  padding-top: clamp(1.2rem, 2vw, 1.7rem);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.35vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.18;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 200ms ease, background 200ms ease;
}
.button-primary { background: var(--ink); color: var(--cream); }
.button-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }

.loop-visual {
  position: relative;
  z-index: 2;
  isolation: isolate;
  aspect-ratio: 1;
  width: min(100%, 570px);
  justify-self: center;
}
.loop-visual::before {
  content: "";
  position: absolute;
  inset: 18%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 90, 176, 0.12), rgba(111, 90, 176, 0.025) 56%, transparent 73%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-neural-bg {
  position: absolute;
  inset: 82px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-neural-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.5;
  filter: saturate(.86) contrast(.94);
}
.hero-neural-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(244,239,231,.34) 0%, rgba(244,239,231,.2) 44%, rgba(244,239,231,.08) 68%, rgba(244,239,231,.16) 100%);
}
.hero-neural-wave,
.hero-neural-wave::before,
.hero-neural-wave::after {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 3;
  width: 16%;
  aspect-ratio: 1;
  border: 1px solid rgba(111, 90, 176, 0.42);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  content: "";
}
.hero-neural-wave::before,
.hero-neural-wave::after { top: 50%; left: 50%; width: 100%; }
.hero-neural-wave::before { animation-delay: .62s !important; }
.hero-neural-wave::after { animation-delay: 1.24s !important; }
.hero[data-right-hover="true"] .hero-neural-wave,
.hero[data-right-hover="true"] .hero-neural-wave::before,
.hero[data-right-hover="true"] .hero-neural-wave::after {
  animation: hero-neural-ripple 2.35s ease-out infinite;
}
.loop-orbit {
  position: absolute;
  inset: 9%;
  z-index: 2;
  border: 1px solid rgba(140, 64, 41, 0.45);
  border-radius: 50%;
  transition: border-color 500ms ease, filter 500ms ease;
}
.loop-orbit-a { border-color: rgba(111, 90, 176, 0.52); animation: orbit-a 18s linear infinite; }
.loop-orbit-b { inset: 20% 2%; border-color: rgba(89, 71, 141, 0.28); animation: orbit-b 22s linear infinite; }
.loop-orbit::before, .loop-orbit::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 8px rgba(114, 93, 178, 0.12);
}
.loop-orbit::before { top: 15%; left: 8%; }
.loop-orbit::after { right: 10%; bottom: 13%; background: var(--ink); }
.loop-core {
  position: absolute;
  inset: 31%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  color: var(--cream);
  box-shadow: 0 25px 80px rgba(75, 57, 116, 0.28);
  cursor: pointer;
  animation: core-breathe 5.5s ease-in-out infinite;
  transition: scale 500ms cubic-bezier(.2,.8,.2,1), box-shadow 500ms ease, background 500ms ease;
}
.loop-core strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}
.loop-label {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.35vw, 2.05rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  transition: color 300ms ease, transform 450ms cubic-bezier(.2,.8,.2,1), text-shadow 350ms ease;
}
.loop-label::before,
.loop-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: clamp(76px, 8vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.08;
  transform: translate(-50%, -50%) scale(.72);
  pointer-events: none;
}
.loop-label::before {
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.2), rgba(185,168,226,.11) 34%, rgba(111,90,176,.035) 66%, transparent 74%);
  box-shadow: 0 16px 42px rgba(76,61,112,.055), inset 0 0 0 1px rgba(111,90,176,.07);
  filter: blur(.35px);
  animation: bubble-haze 5.4s ease-in-out infinite;
  transition: opacity 350ms ease, transform 500ms cubic-bezier(.2,.85,.2,1);
}
.loop-label::after {
  border: 1px solid rgba(111,90,176,.16);
  animation: label-water-idle 4.8s ease-out infinite;
}
.loop-brain::before, .loop-brain::after { animation-delay: .8s; }
.loop-machine::before, .loop-machine::after { animation-delay: 1.55s; }
.loop-language { top: 2%; left: 7%; }
.loop-brain { right: -1%; top: 42%; }
.loop-machine { bottom: 2%; left: 8%; }
.loop-label:hover,
.loop-label:focus-visible,
.loop-label[aria-pressed="true"] {
  color: var(--violet-deep);
  text-shadow: 0 8px 24px rgba(76,61,112,.18);
  transform: translateY(-4px) scale(1.06);
  outline: none;
}
.loop-label:hover::before,
.loop-label:focus-visible::before,
.loop-label[aria-pressed="true"]::before { animation: bubble-hover 2.5s ease-in-out infinite; }
.loop-label:hover::after,
.loop-label:focus-visible::after,
.loop-label[aria-pressed="true"]::after { animation: label-ripple 1.5s ease-out infinite; }
.loop-core:hover,
.loop-core:focus-visible,
.loop-core[aria-pressed="true"] {
  scale: 1.1;
  outline: none;
  background: #765fc0;
  box-shadow: 0 30px 94px rgba(75,57,116,.38), 0 0 0 12px rgba(111,90,176,.08);
  animation-play-state: paused;
}
.loop-visual[data-active="language"] .loop-orbit-a,
.loop-visual[data-active="machine"] .loop-orbit-b,
.loop-visual[data-active="brain"] .loop-orbit-a,
.loop-visual[data-active="brain"] .loop-orbit-b {
  border-color: rgba(111,90,176,.78);
  filter: drop-shadow(0 0 7px rgba(111,90,176,.22));
}
.loop-visual[data-active="intelligence"] .loop-orbit { border-color: rgba(111,90,176,.66); filter: drop-shadow(0 0 8px rgba(111,90,176,.18)); }
@keyframes orbit-a { to { transform: rotate(360deg); } }
@keyframes orbit-b { from { transform: rotate(40deg); } to { transform: rotate(-320deg); } }
@keyframes core-breathe {
  0%, 100% { scale: 1; box-shadow: 0 25px 80px rgba(75,57,116,.28), 0 0 0 0 rgba(111,90,176,0); }
  50% { scale: 1.07; box-shadow: 0 34px 98px rgba(75,57,116,.4), 0 0 0 15px rgba(111,90,176,.075); }
}
@keyframes bubble-haze {
  0%, 100% { opacity: .055; transform: translate(-50%, -50%) scale(.68); }
  50% { opacity: .16; transform: translate(-50%, -50%) scale(.9); }
}
@keyframes bubble-hover {
  0%, 100% { opacity: .26; transform: translate(-50%, -50%) scale(.94); }
  50% { opacity: .5; transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes label-water-idle {
  0% { opacity: .12; transform: translate(-50%, -50%) scale(.62); }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}
@keyframes label-ripple {
  0% { opacity: .4; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.95); }
}
@keyframes hero-neural-ripple {
  0% { opacity: .52; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7.2); }
}

.js .hero-copy.reveal .eyebrow,
.js .hero-copy.reveal .hero-lab-name,
.js .hero-copy.reveal .hero-claim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(.2,.75,.2,1), letter-spacing 450ms ease, text-shadow 450ms ease;
}
.js .hero-copy.reveal.visible .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
.js .hero-copy.reveal.visible .hero-lab-name { opacity: 1; transform: translateY(0); transition-delay: 210ms; }
.js .hero-copy.reveal.visible .hero-claim { opacity: 1; transform: translateY(0); transition-delay: 380ms; }
.hero-lab-name { display: inline-block; }
.hero-lab-name:hover {
  letter-spacing: -0.065em;
  text-shadow: 0 16px 52px rgba(111,90,176,.34);
  transform: translateY(-5px) scale(1.012) !important;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-lab-name {
    background: linear-gradient(105deg, #725db2 0%, #725db2 34%, #c7b5f3 43%, #fffaf2 50%, #a68cdd 58%, #725db2 70%, #725db2 100%);
    background-size: 260% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-lab-name:hover { animation: lab-shimmer 1.35s ease-in-out infinite; }
}
@keyframes lab-shimmer { from { background-position: 115% 50%; } to { background-position: -15% 50%; } }

.manifesto { padding-block: clamp(7rem, 10vw, 10rem); background: var(--violet-deep); color: var(--cream); }
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.manifesto .section-index { color: var(--apricot); }
.manifesto-content { max-width: 1120px; }
.display-copy {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.65vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.48;
}
.mission-block {
  max-width: 1120px;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 247, 240, 0.24);
}
.mission-kicker {
  margin: 0 0 2.3rem;
  color: var(--violet-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mission-grid li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2rem, 4vw, 3.4rem) 0;
  border-bottom: 1px solid rgba(251, 247, 240, 0.18);
}
.mission-grid li > span { padding-top: 0.6rem; color: var(--violet-soft); font-size: 0.7rem; letter-spacing: 0.12em; }
.mission-grid p {
  max-width: 980px;
  margin: 0;
  color: #f3eef8;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.research { padding-block: clamp(7rem, 11vw, 11rem); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.42fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.section-heading h2 { font-size: clamp(3.4rem, 7vw, 7rem); }
.section-summary { max-width: 430px; margin: 0 0 0.5rem; color: var(--muted); font-size: 1.05rem; }
.research-list { border-top: 1px solid var(--line); }
.research-item {
  display: grid;
  grid-template-columns: 50px minmax(150px, 0.42fr) 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  min-height: 280px;
  padding-block: 3.2rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.research-number { align-self: start; color: var(--terracotta-dark); font-size: 0.68rem; }
.research-item h3 { margin: 0 0 1rem; font: 500 clamp(1.8rem, 3.5vw, 3.4rem)/1.1 var(--font-display); letter-spacing: -0.05em; }
.research-item p { max-width: 570px; margin: 0; color: var(--muted); font-size: 1rem; }
.research-item ul { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.research-item li { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 0.72rem; }
.research-symbol { position: relative; width: 145px; aspect-ratio: 1; }
.research-symbol i { position: absolute; display: block; }
.symbol-language i { left: 18%; width: 64%; height: 23%; border: 1px solid var(--terracotta); border-radius: 100%; }
.symbol-language i:nth-child(1) { top: 14%; }
.symbol-language i:nth-child(2) { top: 39%; transform: translateX(14%); border-color: var(--ink); }
.symbol-language i:nth-child(3) { top: 64%; transform: translateX(-8%); border-color: var(--clay); }
.symbol-brain i { border: 1px solid var(--terracotta); border-radius: 50%; }
.symbol-brain i:nth-child(1) { inset: 12% 31%; }
.symbol-brain i:nth-child(2) { inset: 31% 12%; border-color: var(--ink); }
.symbol-brain i:nth-child(3) { inset: 20%; border-color: var(--clay); transform: rotate(45deg); }
.symbol-machine i { width: 15px; height: 15px; background: var(--terracotta); border-radius: 50%; box-shadow: 0 0 0 8px rgba(114, 93, 178, 0.12); }
.symbol-machine i:nth-child(1) { top: 14%; left: 43%; }
.symbol-machine i:nth-child(2) { left: 15%; bottom: 21%; background: var(--ink); }
.symbol-machine i:nth-child(3) { right: 13%; bottom: 14%; background: var(--clay); }
.symbol-machine::before, .symbol-machine::after { content: ""; position: absolute; height: 1px; width: 67%; top: 49%; left: 17%; background: var(--line); transform: rotate(55deg); }
.symbol-machine::after { transform: rotate(-57deg); }

.people { padding-block: clamp(7rem, 11vw, 11rem); background: var(--espresso); color: var(--cream); }
.section-heading-light .section-index { color: var(--apricot); }
.section-heading-light .section-summary { color: #d1c8e3; }
.member-groups { display: grid; gap: clamp(4.5rem, 8vw, 7.5rem); }
.member-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(251,247,240,0.22);
}
.member-group-heading h3 {
  margin: 0;
  font: 500 clamp(1.5rem, 2.7vw, 2.3rem)/1.1 var(--font-display);
  letter-spacing: -0.045em;
}
.member-group-heading span {
  color: var(--apricot);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.member-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.member-card { grid-column: span 4; min-width: 0; }
.member-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #5c4d7c;
}
.member-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(47, 35, 70, 0.34)); pointer-events: none; }
.member-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) sepia(0.09); transition: transform 550ms cubic-bezier(.2,.7,.2,1), filter 350ms ease; }
.member-card:hover img { transform: scale(1.025); filter: saturate(0.92); }
.member-info { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; padding: 1.2rem 0 2rem; border-bottom: 1px solid rgba(251,247,240,0.18); }
.member-info h3 { margin: 0; font: 500 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--font-display); letter-spacing: -0.04em; }
.member-info p { margin: 0.3rem 0 0; color: #d1c8e3; font-size: 0.78rem; }
.profile-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(251,247,240,0.32);
  border-radius: 50%;
  color: var(--apricot);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.profile-link:hover { background: var(--cream); color: var(--espresso); transform: translateY(-2px); }
.profile-status { align-self: center; color: #b0a3c8; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.noscript-note { margin: 2rem 0 0; color: #d1c8e3; }

.join { padding-block: clamp(7rem, 11vw, 11rem); }
.join-panel {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem);
  border-radius: 2px;
  background: var(--terracotta);
  color: var(--cream);
  text-align: left;
}
.join-content { position: relative; z-index: 1; width: min(100%, 1060px); margin-inline: auto; }
.join h2 { font-size: clamp(3.8rem, 7.4vw, 7.2rem); line-height: 0.9; letter-spacing: -0.065em; }
.join h2 em { color: #ded3ff; font-family: var(--font-serif); font-weight: 600; }
.join-intro { max-width: 760px; margin: 2.4rem 0 0; color: #f0ebfb; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.7; }
.join-application {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.28);
}
.join-application > div {
  max-width: 680px;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid #ded3ff;
  border-radius: 0 10px 10px 0;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.join-application > div > span { display: block; margin-bottom: 0.65rem; color: #fffaf2; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.join-application p { margin: 0; color: #f0ebfb; font-size: 0.92rem; line-height: 1.65; }
.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 290px;
  padding: 0.8rem 0.9rem 0.8rem 1.15rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  background: transparent;
  color: var(--cream);
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.copy-email-status { min-width: 54px; padding: 0.35rem 0.55rem; border-radius: 100px; background: rgba(255,255,255,0.14); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.copy-email:hover, .copy-email:focus-visible, .copy-email.is-copied { background: var(--cream); color: var(--violet-deep); outline: none; transform: translateY(-2px); }
.copy-email:hover .copy-email-status, .copy-email:focus-visible .copy-email-status, .copy-email.is-copied .copy-email-status { background: rgba(111,90,176,0.12); }
.join-orbit { position: absolute; width: min(74vw, 720px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; }
.join-orbit::before, .join-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; }
.join-orbit::before { inset: 13%; }
.join-orbit::after { inset: 27%; }

.site-footer { padding-block: 4rem; background: var(--espresso); color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 3rem; align-items: end; }
.wordmark-footer { margin-bottom: 1rem; }
.wordmark-footer .wordmark-mark i { background: var(--cream); }
.wordmark-footer .wordmark-mark i:nth-child(2), .wordmark-footer .wordmark-mark i:nth-child(3) { background: var(--apricot); }
.footer-grid p { margin: 0; color: #cfc6e0; font-size: 0.78rem; }
.footer-statement { max-width: 390px; }
.footer-meta { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-end; color: #cfc6e0; font-size: 0.72rem; }
.footer-meta a { color: var(--cream); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 3rem; min-height: auto; padding-top: 9rem; }
  .hero::before { display: none; }
  .hero-neural-bg { inset: 82px 0 0; }
  .hero-neural-bg img { width: 100%; object-fit: cover; object-position: 50% 50%; }
  .loop-visual { width: min(80vw, 540px); }
  .manifesto-grid { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .research-item { grid-template-columns: 40px 145px 1fr; }
  .member-card { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 2; }
}

@media (max-width: 700px) {
  .site-header { height: 68px; }
  .menu-toggle {
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .menu-toggle > span:not(.sr-only) { display: block; width: 23px; height: 1px; margin-inline: auto; background: currentColor; transition: transform 220ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    padding: 5rem var(--pad);
    background: var(--paper);
    transform: translateY(-105%);
    transition: transform 300ms cubic-bezier(.2,.7,.2,1);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { font: 500 clamp(2.7rem, 13vw, 4.5rem)/1 var(--font-display); letter-spacing: -0.06em; }
  .hero h1 .hero-lab-name { font-size: clamp(4.2rem, 21vw, 7rem); }
  .hero h1 .hero-claim { max-width: 92%; font-size: clamp(1.3rem, 6.2vw, 2rem); }
  .loop-visual { width: 92vw; transform: translateX(-4vw); }
  .display-copy { font-size: clamp(1.08rem, 4.9vw, 1.55rem); }
  .mission-grid li { grid-template-columns: 1fr; gap: 0.8rem; }
  .mission-grid li > span { padding-top: 0; }
  .mission-grid p { font-size: clamp(1.5rem, 7.7vw, 2.3rem); }
  .section-heading h2 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .research-item { grid-template-columns: 34px 1fr; padding-block: 2.5rem; }
  .research-symbol { grid-column: 2; width: 110px; }
  .research-item > div:last-child { grid-column: 2; }
  .member-card { grid-column: span 12; }
  .join-panel { min-height: 620px; margin-inline: calc(var(--pad) * -0.35); }
  .join h2 { font-size: clamp(3.35rem, 15vw, 5.5rem); }
  .join-application { grid-template-columns: 1fr; align-items: start; }
  .copy-email { min-width: 0; width: 100%; white-space: normal; }
  .copy-email-address { overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { grid-column: 1; align-items: flex-start; }
}

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

/* Multi-page navigation and inner pages */
.site-header {
  --header-surface: rgba(244, 239, 231, 0.86);
  --header-surface-solid: var(--paper);
  --header-text: var(--ink);
  --header-accent: var(--violet);
  height: 94px;
  background: var(--header-surface);
  color: var(--header-text);
  border-bottom: 1px solid rgba(76, 61, 112, 0.1);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}
.site-header.scrolled {
  height: 78px;
  background: color-mix(in srgb, var(--header-surface-solid) 94%, transparent);
  border-color: rgba(76, 61, 112, 0.15);
}
.site-header[data-theme="dark"] {
  --header-surface: rgba(73, 58, 107, 0.88);
  --header-surface-solid: var(--violet-deep);
  --header-text: var(--cream);
  --header-accent: var(--violet-soft);
  border-color: rgba(251, 247, 240, 0.14);
}
.site-header[data-theme="dark"].scrolled {
  border-color: rgba(251, 247, 240, 0.18);
}
.site-header .wordmark { flex: 0 0 auto; color: var(--header-text); font-size: 1.38rem; }
.site-header .wordmark b { color: var(--header-accent); }
.site-header .wordmark-mark i { background: var(--header-text); }
.site-header .wordmark-mark i:nth-child(2),
.site-header .wordmark-mark i:nth-child(3) { background: var(--header-accent); }
.site-header .site-nav { gap: clamp(1.25rem, 2.15vw, 2.6rem); }
.site-header .site-nav a {
  padding: 1.05rem 0;
  color: var(--header-text);
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-header .site-nav a::after {
  bottom: 0.42rem;
  height: 2px;
  background: var(--header-accent);
}
.site-header .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .site-nav .nav-handbook {
  margin-left: 0;
  padding-left: 0;
  border: 0;
  color: var(--header-text);
}

.news { padding-block: clamp(7rem, 11vw, 11rem); }
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news-card {
  display: flex;
  min-width: 0;
  min-height: 480px;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line);
}
.news-card:first-child { padding-left: 0; }
.news-card:last-child { padding-right: 0; border-right: 0; }
.news-card-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--terracotta-dark); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding-top: clamp(2.5rem, 4vw, 4rem); }
.news-journal { margin: 0 0 1.1rem; color: var(--terracotta-dark); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1.45; text-transform: uppercase; }
.news-card h3 { margin: 0; font: 500 clamp(1.55rem, 2.35vw, 2.2rem)/1.08 var(--font-display); letter-spacing: -0.04em; }
.news-headline { margin: 1.25rem 0 0; color: var(--ink); font-size: 0.98rem; line-height: 1.55; }
.news-finding { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.68; }
.news-finding strong { display: block; margin-bottom: 0.35rem; color: var(--terracotta-dark); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
.news-link { align-self: flex-start; margin-top: auto; padding-top: 2rem; color: var(--terracotta-dark); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; }
.news-link:hover { color: var(--violet); }
.news-empty,
.page-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 150px;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news-empty p,
.page-empty p { max-width: 520px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.news-status,
.page-empty > span {
  color: var(--terracotta-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inner-page {
  min-height: calc(100svh - 250px);
  padding-top: 94px;
  background: var(--paper);
}
.page-hero {
  padding-top: clamp(6.5rem, 10vw, 10rem);
  padding-bottom: clamp(4.5rem, 7vw, 7rem);
  text-align: center;
}
.page-kicker {
  margin: 0 0 1.4rem;
  color: var(--terracotta-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-hero h1,
.subpage-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1;
}
.page-hero h1 { font-size: clamp(3.8rem, 7.5vw, 7.4rem); }
.page-hero > p:last-child { max-width: 680px; margin: 2rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.2rem); }
.placeholder-section { min-height: 390px; padding-bottom: clamp(7rem, 11vw, 11rem); }

.publications-feed,
.teaching-feed { padding-bottom: clamp(7rem, 11vw, 11rem); }
.publication-year,
.teaching-term {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.publication-year p,
.teaching-term p,
.teaching-term span { margin: 0; color: var(--terracotta-dark); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.publication-year h2,
.teaching-term h2 { margin: 0; font: 400 clamp(3.5rem, 6vw, 6rem)/0.9 var(--font-display); letter-spacing: -0.06em; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-entry {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(2.15rem, 3.2vw, 3.25rem) clamp(0.2rem, 1vw, 1rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease;
}
.publication-entry:hover { background: rgba(111, 90, 176, 0.035); }
.publication-number {
  display: grid;
  width: 2.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(89, 71, 141, 0.3);
  border-radius: 50%;
  color: var(--terracotta-dark);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.course-number { color: var(--terracotta-dark); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; }
.publication-citation {
  max-width: 1040px;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1rem, 1.35vw, 1.24rem)/1.65 var(--font-sans);
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.teaching-term { grid-template-columns: minmax(150px, 0.25fr) 1fr auto; }
.teaching-term > span { padding-bottom: 0.45rem; }
.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); min-height: 320px; padding: clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.course-card:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.course-card:last-child { padding-right: 0; }
.course-code { margin: 0 0 1.15rem; color: var(--terracotta-dark); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.course-card h3 { max-width: 520px; margin: 0; font: 500 clamp(1.75rem, 3vw, 2.8rem)/1.08 var(--font-display); letter-spacing: -0.045em; }
.course-semester { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.88rem; }

.people-section { padding-bottom: clamp(7rem, 10vw, 10rem); }
.people-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.person-card {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: clamp(2.4rem, 3.5vw, 3.8rem) clamp(1.5rem, 2.6vw, 2.8rem);
  background: #fff;
  border: 1px solid rgba(76, 61, 112, 0.08);
  box-shadow: 0 18px 45px rgba(46, 36, 66, 0.055);
  text-align: center;
}
.person-portrait {
  width: clamp(145px, 13vw, 180px);
  aspect-ratio: 4 / 5;
  margin: 0 auto 2.4rem;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(76, 61, 112, 0.14);
  background: #f1eef6;
}
.person-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82); transition: transform 400ms ease, filter 250ms ease; }
.person-portrait-empty { background: #f7f5f2; }
.person-card:hover .person-portrait img { transform: scale(1.025); filter: saturate(1); }
.person-body { display: flex; flex: 1; flex-direction: column; align-items: center; }
.person-name { display: flex; min-height: 4.5rem; flex-direction: column; align-items: center; justify-content: flex-start; }
.person-name-single { justify-content: center; }
.person-body h3 { margin: 0; font: 600 clamp(1.35rem, 2vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -0.035em; }
.person-body h3 a:hover { color: var(--terracotta-dark); }
.person-name-zh { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em; line-height: 1; }
.person-role { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }
.person-start { margin: 0.3rem 0 0; color: #8c8792; font-size: 0.78rem; }
.person-supervision { max-width: 280px; margin: 0.85rem 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.person-supervision a { color: var(--terracotta-dark); text-decoration: underline; text-decoration-color: rgba(112, 82, 181, 0.28); text-underline-offset: 0.2em; }
.person-research,
.person-affiliation {
  width: 100%;
  min-height: 148px;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.person-research span,
.person-affiliation span { color: var(--terracotta-dark); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.person-research p,
.person-affiliation p { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.person-profile { margin-top: auto; color: var(--terracotta-dark); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; }
.person-profile span { padding-left: 0.2rem; }
.person-profile-muted { color: #9d98a4; }
.alumni-section,
.collaborators-section { padding-top: clamp(6rem, 9vw, 9rem); padding-bottom: clamp(7rem, 11vw, 11rem); border-top: 1px solid var(--line); }
.collaborator-card-grid { margin-top: 1rem; }
.collaborator-card { min-height: 600px; }
.subpage-heading { margin-bottom: 3rem; }
.subpage-heading h2 { font-size: clamp(3.2rem, 6vw, 6rem); }
.alumni-section .page-empty,
.collaborators-section .page-empty { min-height: 180px; }

.activities-page { overflow: clip; }
.activities-feed { padding-bottom: clamp(7rem, 11vw, 11rem); }
.activity-entry {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.5vw, 6rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}
.activity-meta { padding-top: 0.2rem; }
.activity-meta time {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}
.activity-meta time span {
  margin-bottom: 0.15rem;
  color: var(--terracotta-dark);
  font: 400 clamp(3.4rem, 6vw, 6.4rem)/0.9 var(--font-display);
  letter-spacing: -0.07em;
}
.activity-meta p {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.activity-story { margin: 0; }
.activity-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ded6ca;
}
.activity-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.activity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 350ms ease;
}
.activity-entry:hover .activity-photo img { transform: scale(1.018); filter: saturate(1.04); }
.activity-story figcaption {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(250px, 0.34fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(2rem, 3.8vw, 3.5rem);
}
.activity-copy {
  position: relative;
  padding-left: clamp(1.2rem, 2vw, 2rem);
}
.activity-copy::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  bottom: 0.2rem;
  left: 0;
  width: 2px;
  background: var(--terracotta-dark);
}
.activity-copy > p {
  margin: 0 0 0.7rem;
  color: var(--terracotta-dark);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.activity-story h2 {
  max-width: 680px;
  margin: 0;
  font: 500 clamp(1.8rem, 3.1vw, 3.15rem)/1.08 var(--font-display);
  letter-spacing: -0.045em;
}
.activity-location {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 76px;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 200ms ease, border-color 200ms ease;
}
.activity-location:hover { color: var(--terracotta-dark); border-color: rgba(112, 82, 181, 0.42); }
.activity-location-icon { color: var(--terracotta-dark); font-size: 1.4rem; }
.activity-location strong { display: block; font-size: 0.78rem; line-height: 1.35; }
.activity-location small { display: block; margin-top: 0.28rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; }
.activity-location-arrow { font-size: 1rem; transition: transform 200ms ease; }
.activity-location:hover .activity-location-arrow { transform: translate(2px, -2px); }

.handbook-page { overflow: clip; }
.handbook-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.48fr);
  column-gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-bottom: clamp(5rem, 9vw, 9rem);
  text-align: left;
}
.handbook-hero .page-kicker { grid-column: 1 / -1; }
.handbook-hero h1 { font-size: clamp(4.8rem, 10.4vw, 10rem); line-height: 0.78; }
.handbook-hero > p:last-child {
  max-width: 430px;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
}
.handbook-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8.5rem);
  align-items: start;
  padding-bottom: clamp(8rem, 13vw, 13rem);
}
.handbook-toc {
  position: sticky;
  top: 110px;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.handbook-toc > p,
.handbook-label,
.requirement-kicker,
.graduation-line > span {
  margin: 0;
  color: var(--terracotta-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.handbook-toc nav { display: grid; margin-top: 1.1rem; }
.handbook-toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.45rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(76, 61, 112, 0.11);
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
  transition: color 180ms ease, padding-left 180ms ease;
}
.handbook-toc a span { color: var(--violet); font-size: 0.62rem; letter-spacing: 0.1em; }
.handbook-toc a:hover,
.handbook-toc a:focus-visible { padding-left: 0.35rem; color: var(--ink); }
.handbook-content { min-width: 0; }
.handbook-section {
  padding: clamp(1.8rem, 3vw, 2.6rem) 0 clamp(6rem, 9vw, 9rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.handbook-section + .handbook-section { padding-top: clamp(5rem, 8vw, 8rem); }
.handbook-section-heading {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.handbook-section-heading > span {
  padding-top: 0.65rem;
  color: var(--violet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.handbook-section-heading h2 {
  margin: 0;
  font: 400 clamp(2.85rem, 5.4vw, 5.7rem)/0.94 var(--font-display);
  letter-spacing: -0.065em;
}
.handbook-lede {
  margin: 0 0 clamp(4rem, 7vw, 6rem) 4.25rem;
  color: #4f4956;
  font: 400 clamp(1.25rem, 2vw, 1.65rem)/1.58 var(--font-serif);
}
.handbook-subsection {
  margin-left: 4.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(76, 61, 112, 0.14);
}
.handbook-subsection + .handbook-subsection { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.handbook-subsection > p:not(.handbook-label, .channel-line) {
  max-width: 850px;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}
.handbook-mission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.handbook-mission-list li {
  min-height: 230px;
  padding: 1.65rem;
  border-radius: 2px;
  background: var(--violet-deep);
  color: var(--cream);
}
.handbook-mission-list li > span { color: var(--violet-soft); font-size: 0.65rem; letter-spacing: 0.14em; }
.handbook-mission-list p { margin: 2.5rem 0 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.55; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.value-grid li {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.value-grid li:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.value-grid li:nth-child(even) { padding-left: 2rem; }
.value-grid li:last-child { grid-column: 1 / -1; min-height: 0; border-right: 0; }
.value-grid strong { font: 500 1.12rem/1.35 var(--font-display); }
.value-grid span { margin-top: 0.8rem; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.handbook-list {
  display: grid;
  gap: 0;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: handbook-item;
}
.handbook-list li {
  position: relative;
  padding: 1.35rem 0 1.35rem 3.2rem;
  border-bottom: 1px solid rgba(76, 61, 112, 0.12);
  color: var(--muted);
  line-height: 1.7;
  counter-increment: handbook-item;
}
.handbook-list li::before {
  content: counter(handbook-item, decimal-leading-zero);
  position: absolute;
  top: 1.55rem;
  left: 0;
  color: var(--violet);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.handbook-list strong { color: var(--ink); font-weight: 600; }
.handbook-note {
  display: block;
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--violet-soft);
  color: var(--terracotta-dark);
  font-size: 0.86rem;
}
.handbook-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.handbook-policy-grid > div { padding: 1.7rem; background: #f8f4ee; }
.handbook-policy-grid > div > span { color: var(--violet); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.handbook-policy-grid p { margin: 1rem 0 0; color: var(--muted); line-height: 1.68; }
.handbook-reference { color: var(--ink); font-weight: 600; }
.channel-line { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.5rem 0 0; }
.channel-line span { padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 100px; color: var(--terracotta-dark); font-size: 0.85rem; }
.handbook-list-compact { margin-left: 4.25rem; }
.requirement-card {
  margin-top: 1.5rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--violet-deep);
  color: var(--cream);
}
.requirement-card .requirement-kicker { color: var(--violet-soft); }
.requirement-card h3 { margin: 0.9rem 0 1.8rem; font: 400 clamp(2.1rem, 4vw, 3.8rem)/1 var(--font-display); letter-spacing: -0.055em; }
.requirement-card p { margin: 0; color: #e4deed; line-height: 1.72; }
.requirement-card ul { margin: 1.3rem 0; padding-left: 1.25rem; color: #f3eef8; }
.requirement-card li { margin: 0.55rem 0; padding-left: 0.35rem; }
.graduation-line {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) 1fr;
  gap: 2rem;
  margin-top: 1px;
  padding: 1.7rem;
  background: #e9e1f5;
}
.graduation-line p { margin: 0; color: var(--ink); line-height: 1.55; }

/* Plain document treatment for the Lab Handbook */
.handbook-page-simple {
  padding-bottom: clamp(4rem, 8vw, 8rem);
  background: #ebe7e0;
}
.handbook-paper-wrap { width: min(100%, 980px); }
.handbook-paper {
  max-width: 850px;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  padding: clamp(2.5rem, 6vw, 5.2rem);
  border: 1px solid #d8d5cf;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.52;
}
.handbook-paper h1 {
  margin: 0;
  font-family: inherit;
  font-size: 1.55rem;
  line-height: 1.25;
}
.handbook-paper h1 + p { margin-top: 0; }
.handbook-paper h2 {
  margin: 1.8rem 0 0.5rem;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.3;
}
.handbook-paper h3 {
  margin: 1.35rem 0 0.35rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
}
.handbook-paper p { margin: 0.45rem 0; }
.handbook-paper ul,
.handbook-paper ol { margin: 0.55rem 0; padding-left: 2rem; }
.handbook-paper li { margin: 0.22rem 0; padding-left: 0.15rem; }

@media (max-width: 1120px) {
  .site-header > .wordmark { position: relative; z-index: 3; }
  .site-header .menu-toggle {
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--header-text);
  }
  .site-header .menu-toggle > span:not(.sr-only) { display: block; width: 23px; height: 1px; margin-inline: auto; background: currentColor; transition: transform 220ms ease; }
  .site-header .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header .site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    gap: clamp(0.5rem, 1.4vh, 0.95rem);
    padding: clamp(7rem, 14vh, 9rem) var(--pad) 2.5rem;
    background: var(--header-surface-solid);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transform: translate3d(0, -100%, 0);
    transition: transform 300ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease, visibility 0s linear 300ms;
  }
  .site-header .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }
  .site-header .site-nav a { padding: 0.25rem 0; font: 400 clamp(1.8rem, 6.5vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -0.045em; }
  .site-header .site-nav a::after { bottom: -0.05rem; height: 2px; }
  .site-header .site-nav .nav-handbook { margin: 0; padding: 0.25rem 0; border: 0; }
}

@media (max-width: 980px) {
  .activity-entry { grid-template-columns: 1fr; gap: 1.7rem; }
  .activity-meta { display: flex; align-items: end; justify-content: space-between; }
  .activity-meta time { flex-direction: row; gap: 0.65rem; align-items: baseline; }
  .activity-meta time span { margin: 0; font-size: 3.4rem; }
  .activity-meta p { margin: 0 0 0.25rem; }
  .activity-story figcaption { grid-template-columns: 1fr; }
  .activity-location { max-width: 380px; }
  .handbook-layout { grid-template-columns: 1fr; }
  .handbook-toc { position: static; }
  .handbook-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}

@media (max-width: 900px) {
  .people-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list { grid-template-columns: 1fr; }
  .news-card { min-height: 0; padding: 2.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-card:last-child { border-bottom: 0; }
  .news-card-body { padding-top: 2.25rem; }
  .news-link { margin-top: 1.75rem; padding-top: 0; }
}

@media (max-width: 620px) {
  .site-header, .site-header.scrolled { height: 72px; }
  .site-header .site-nav {
    gap: 0.55rem;
    padding-top: 6.5rem;
  }
  .site-header .site-nav a { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .inner-page { padding-top: 72px; }
  .page-hero { text-align: left; }
  .page-hero > p:last-child { margin-left: 0; }
  .people-card-grid { grid-template-columns: 1fr; }
  .person-card { min-height: 535px; }
  .publication-year,
  .teaching-term { grid-template-columns: 1fr; gap: 0.75rem; align-items: start; }
  .publication-year h2,
  .teaching-term h2 { grid-row: 1; }
  .publication-entry { grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding-inline: 0; }
  .publication-number { width: 1.9rem; }
  .course-list { grid-template-columns: 1fr; }
  .course-card { min-height: 0; padding: 2.5rem 0; border-right: 0 !important; }
  .activities-feed { padding-inline: 0; }
  .activity-entry { padding-inline: var(--pad); }
  .activity-meta { align-items: center; }
  .activity-meta time { align-items: center; }
  .activity-meta time span { font-size: 2.9rem; }
  .activity-photo { margin-inline: calc(var(--pad) * -1); }
  .activity-story h2 { font-size: clamp(1.9rem, 8.2vw, 2.8rem); }
  .news-empty, .page-empty { align-items: flex-start; flex-direction: column; justify-content: center; }
  .handbook-hero { grid-template-columns: 1fr; align-items: start; }
  .handbook-hero h1 { font-size: clamp(4.4rem, 23vw, 7rem); }
  .handbook-hero > p:last-child { margin-top: 2.2rem; }
  .handbook-toc nav { grid-template-columns: 1fr; }
  .handbook-section-heading { grid-template-columns: 2.25rem 1fr; }
  .handbook-section-heading h2 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .handbook-lede,
  .handbook-subsection,
  .handbook-list-compact { margin-left: 0; }
  .handbook-mission-list,
  .value-grid,
  .handbook-policy-grid,
  .graduation-line { grid-template-columns: 1fr; }
  .value-grid li:nth-child(odd),
  .value-grid li:nth-child(even) { padding-inline: 0; border-right: 0; }
  .value-grid li:last-child { grid-column: auto; }
  .handbook-policy-grid > div { padding: 1.4rem; }
  .handbook-page-simple { background: #fff; }
  .handbook-paper-wrap { padding-inline: 0; }
  .handbook-paper {
    margin-top: 0;
    padding: 2rem 1.35rem 3rem;
    border: 0;
    font-size: 0.96rem;
  }
}
