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

:root {
  --bg: #f6f5f1;
  --bg-soft: #fbfaf7;
  --ink: #1f2d30;
  --ink-mid: #46575a;
  --muted: #718084;
  --white: #ffffff;
  --teal: #2f716d;
  --teal-soft: #e5efed;
  --coral: #a86f4e;
  --coral-soft: #f1eae4;
  --yellow: #b9934d;
  --yellow-soft: #f4efe5;
  --purple: #2f716d;
  --purple-soft: #e5efed;
  --line: #d4dddb;
  --outline: 1px solid var(--line);
  --shadow: 0 10px 30px rgba(31, 45, 48, .07);
  --shadow-lg: 0 16px 38px rgba(31, 45, 48, .11);
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border: var(--outline);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 6px;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.brand-corner {
  position: fixed;
  top: 23px;
  left: 6vw;
  z-index: 21;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a,
.pill-link,
.button {
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a {
  border-radius: 999px;
  color: var(--ink-mid);
  padding: 8px 14px;
  transition: background .2s, color .2s, transform .2s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-active {
  background: var(--ink);
  color: var(--yellow);
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 118px 6vw 64px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(46, 196, 182, .16), transparent 28%),
    radial-gradient(circle at 86% 26%, rgba(255, 107, 107, .13), transparent 24%),
    radial-gradient(circle at 70% 82%, rgba(124, 58, 237, .12), transparent 30%);
  pointer-events: none;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero > div {
  max-width: 880px;
}

.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 7px;
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 16px;
  padding: 5px 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Fredoka One", "Nunito", sans-serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.outline-text {
  -webkit-text-stroke: 3px var(--ink);
  color: transparent;
}

.lead {
  color: var(--ink-mid);
  font-size: 1.08rem;
  font-weight: 700;
  max-width: 690px;
}

.hero-actions,
.project-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.pill-link {
  align-items: center;
  border: var(--outline);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.button:hover,
.pill-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}

.button.primary {
  background: var(--ink);
  color: var(--yellow);
}

.button.secondary,
.pill-link {
  background: var(--white);
  color: var(--ink);
}

.section {
  padding: 92px 6vw;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 18px 3vw;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(26, 26, 46, .08);
  border-radius: 28px;
  opacity: .62;
  pointer-events: none;
}

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

.section.dark {
  background:
    linear-gradient(180deg,
      rgba(255, 248, 237, .18),
      rgba(237, 233, 254, .28));
  color: var(--ink);
}

.section.teal {
  background:
    linear-gradient(180deg,
      rgba(168, 237, 233, .34),
      rgba(253, 246, 227, .72));
}

.section-header {
  margin-bottom: 34px;
  max-width: 780px;
}

.section h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--ink-mid);
  font-size: 1rem;
  font-weight: 700;
}

.section-intro + .section-intro {
  margin-top: 14px;
}

.section-header > .button {
  margin-top: 24px;
}

.dark .section-intro,
.dark .body-copy {
  color: var(--ink-mid);
}

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

.project-card,
.publication-item,
.teaching-item,
.info-card {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 24px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -3px);
}

.accent-teal { border-top: 8px solid var(--teal); }
.accent-coral { border-top: 8px solid var(--coral); }
.accent-yellow { border-top: 8px solid var(--yellow); }
.accent-purple { border-top: 8px solid var(--purple); }

.project-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.project-card p,
.body-copy {
  color: var(--ink-mid);
  font-weight: 700;
}

.card-footer {
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-top: auto;
  padding-top: 18px;
  text-transform: uppercase;
}

.research-program-map {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 34px;
}

.research-program-map span {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.research-program-map b {
  color: var(--coral);
  font-size: 1.15rem;
}

.research-grid-programs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  padding: 0;
}

.project-card-copy {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-number {
  color: var(--purple);
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.program-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.project-question {
  border-left: 4px solid var(--teal);
  color: var(--ink) !important;
  font-size: .91rem;
  margin-top: 16px;
  padding-left: 12px;
}

.tag-list,
.hero-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin-top: 17px;
}

.tag-list li,
.hero-tag-list li {
  background: var(--bg-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.project-visual,
.research-hero-art {
  background: var(--yellow-soft);
  border-bottom: var(--outline);
  min-height: 190px;
  overflow: hidden;
  position: relative;
}

.visual-context {
  background: linear-gradient(135deg, var(--teal-soft), #f6fffe);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px;
}

.context-scene {
  align-items: center;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  justify-content: center;
  position: relative;
}

.context-scene::after {
  bottom: 8px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  position: absolute;
  text-transform: uppercase;
}

.activity-scene::after { content: "activity"; }
.homework-scene::after { content: "homework"; }

.shape-circle,
.shape-square,
.shape-triangle,
.shape-paper,
.shape-pencil {
  border: 3px solid var(--ink);
  position: absolute;
}

.shape-circle {
  background: var(--coral);
  border-radius: 50%;
  height: 35px;
  left: 21%;
  top: 28%;
  width: 35px;
}

.shape-square {
  background: var(--yellow);
  height: 31px;
  right: 18%;
  top: 39%;
  transform: rotate(10deg);
  width: 31px;
}

.shape-triangle {
  background: var(--purple);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 34px;
  left: 41%;
  top: 54%;
  width: 38px;
}

.shape-paper {
  background: repeating-linear-gradient(#fff 0 10px, #badbd7 11px 12px);
  height: 74px;
  transform: rotate(-4deg);
  width: 58px;
}

.shape-pencil {
  background: var(--yellow);
  height: 12px;
  right: 18%;
  top: 33%;
  transform: rotate(55deg);
  width: 66px;
}

.visual-interaction {
  align-items: center;
  background: linear-gradient(135deg, var(--coral-soft), #fff7f7);
  display: flex;
  justify-content: center;
}

.dyad {
  align-items: flex-end;
  display: flex;
  gap: 62px;
  position: relative;
}

.person {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 12px 12px;
  height: 75px;
  position: relative;
  width: 58px;
}

.person::before {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 35px;
  left: 9px;
  position: absolute;
  top: -25px;
  width: 35px;
}

.person-child {
  background: var(--teal-soft);
  height: 58px;
  width: 49px;
}

.person-child::before {
  background: var(--coral);
  height: 31px;
  left: 6px;
  width: 31px;
}

.interaction-table {
  background: var(--purple-soft);
  border: 3px solid var(--ink);
  bottom: 7px;
  height: 31px;
  left: 47px;
  position: absolute;
  width: 79px;
}

.interaction-table::before,
.interaction-table::after {
  background: var(--ink);
  content: "";
  height: 24px;
  position: absolute;
  top: 26px;
  width: 4px;
}

.interaction-table::before { left: 10px; }
.interaction-table::after { right: 10px; }

.timeline-dots {
  display: flex;
  gap: 6px;
  left: 50%;
  position: absolute;
  top: 27px;
  transform: translateX(-50%);
}

.timeline-dots i {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  height: 13px;
  width: 13px;
}

.visual-ai {
  align-items: center;
  background: linear-gradient(135deg, var(--purple-soft), #fbfaff);
  display: flex;
  justify-content: center;
}

.ai-core {
  align-items: center;
  background: var(--ink);
  border-radius: 18px;
  color: var(--yellow);
  display: flex;
  font-family: "Fredoka One", "Nunito", sans-serif;
  font-size: 2.1rem;
  height: 84px;
  justify-content: center;
  position: relative;
  width: 84px;
}

.ai-orbit {
  border: 3px solid var(--ink);
  border-radius: 50%;
  height: 145px;
  position: absolute;
  width: 205px;
}

.ai-orbit::before,
.ai-orbit::after {
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 27px;
  position: absolute;
  width: 27px;
}

.ai-orbit::before { left: 10px; top: 9px; }
.ai-orbit::after { bottom: 5px; right: 14px; }

.ai-orbit-secondary {
  height: 205px;
  transform: rotate(65deg);
  width: 130px;
}

.ai-orbit-secondary::before,
.ai-orbit-secondary::after {
  background: var(--teal);
}

.visual-pipeline {
  align-items: center;
  background: linear-gradient(135deg, var(--yellow-soft), #fffdf4);
  display: flex;
  justify-content: center;
  padding: 24px;
}

.pipeline-node {
  align-items: center;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  font-family: "Space Mono", monospace;
  font-size: .6rem;
  font-weight: 700;
  height: 64px;
  justify-content: center;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
  width: 88px;
}

.pipeline-node.machine { background: var(--purple-soft); }
.pipeline-node.human { background: var(--teal-soft); }
.pipeline-node.machine-node { background: var(--purple-soft); }
.pipeline-node.human-node { background: var(--teal-soft); }

.pipeline-arrow {
  color: var(--coral);
  font-size: 1.6rem;
  font-weight: 900;
  padding: 0 7px;
}

.context-scene .scene-label {
  font-family: "Space Mono", monospace;
  font-size: .63rem;
  font-weight: 700;
  left: 9px;
  position: absolute;
  text-transform: uppercase;
  top: 8px;
}

.context-scene small {
  bottom: 8px;
  font-family: "Space Mono", monospace;
  font-size: .55rem;
  font-weight: 700;
  position: absolute;
}

.context-scene.activity-scene::after,
.context-scene.homework-scene::after {
  content: none;
}

.context-scene .shape {
  border: 3px solid var(--ink);
  position: absolute;
}

.context-scene .circle {
  background: var(--coral);
  border-radius: 50%;
  height: 32px;
  left: 18%;
  top: 37%;
  width: 32px;
}

.context-scene .square {
  background: var(--yellow);
  height: 28px;
  right: 15%;
  top: 40%;
  transform: rotate(9deg);
  width: 28px;
}

.context-scene .triangle {
  background: var(--purple);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 31px;
  left: 42%;
  top: 50%;
  width: 34px;
}

.worksheet-line {
  background: var(--teal-soft);
  border-bottom: 3px solid var(--ink);
  height: 13px;
  position: absolute;
  top: 43%;
  width: 62%;
}

.worksheet-line.short {
  top: 58%;
  width: 44%;
}

.clock-mark {
  align-items: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-family: "Space Mono", monospace;
  font-size: .58rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 32px;
}

.parent-person,
.child-person {
  align-items: center;
  display: flex;
  font-family: "Space Mono", monospace;
  font-size: .65rem;
  font-weight: 700;
  justify-content: center;
}

.child-person {
  background: var(--teal-soft);
  height: 58px;
  width: 49px;
}

.child-person::before {
  background: var(--coral);
  height: 31px;
  left: 6px;
  width: 31px;
}

.interaction-spark {
  color: var(--purple);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 28px;
}

.interaction-labels {
  bottom: 15px;
  display: flex;
  gap: 7px;
  position: absolute;
}

.interaction-labels span,
.visual-ai .ai-orbit {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: .54rem;
  font-weight: 700;
  padding: 4px 7px;
  text-transform: uppercase;
}

.visual-ai .ai-orbit {
  height: auto;
  width: auto;
}

.visual-ai .ai-orbit::before,
.visual-ai .ai-orbit::after {
  content: none;
}

.visual-ai .orbit-one { left: 7%; top: 18%; }
.visual-ai .orbit-two { right: 7%; top: 18%; }
.visual-ai .orbit-three { bottom: 15%; left: 9%; }
.visual-ai .orbit-four { bottom: 15%; right: 9%; }

.publication-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.publication-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 20px 24px;
}

.publication-link {
  color: inherit;
  padding-right: 64px;
  position: relative;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.publication-link::after {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal);
  content: "↗";
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  width: 34px;
}

.publication-link:hover {
  background: var(--bg-soft);
  border-color: var(--teal);
  box-shadow: 0 12px 30px rgba(28, 70, 62, .13);
}

.publication-link:hover::after {
  background: var(--teal);
  color: var(--white);
  transform: translate(2px, calc(-50% - 2px));
}

.publication-link:focus-visible {
  outline: 3px solid rgba(47, 113, 109, .28);
  outline-offset: 3px;
}

.publication-year {
  color: var(--teal);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
}

.publication-item h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
}

.publication-meta {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

.publication-meta strong {
  font-weight: 600;
}

.publication-venue {
  color: var(--teal);
  font-size: .9rem;
  font-style: italic;
  font-weight: 400;
  margin-top: 2px;
}

.teaching-list,
.info-grid {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.teaching-item,
.info-card {
  color: var(--ink);
  padding: 24px;
}

.teaching-item h3,
.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.teaching-meta {
  color: var(--purple);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact-links a {
  background: var(--white);
}

.footer {
  align-items: center;
  background: rgba(253, 246, 227, .86);
  border-top: var(--outline);
  color: var(--ink-mid);
  display: flex;
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 6vw;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px) scale(.96);
  transform-origin: 50% 70%;
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2, .8, .2, 1);
}

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

.project-card.scroll-reveal,
.publication-item.scroll-reveal,
.teaching-item.scroll-reveal,
.info-card.scroll-reveal {
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2, .8, .2, 1),
    box-shadow .15s,
    background .15s;
}

.project-card.scroll-reveal.is-visible:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -3px) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-hero {
  overflow: hidden;
  padding: 118px 6vw 72px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 980px;
}

.content-wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 64px 6vw 92px;
}

.main-copy {
  display: grid;
  gap: 28px;
}

.main-copy h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.main-copy p {
  color: var(--ink-mid);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-wrap {
  grid-template-columns: minmax(0, 820px) minmax(240px, 320px);
  justify-content: space-between;
}

.about-copy {
  gap: 0;
}

.about-copy p {
  font-size: 1.04rem;
  line-height: 1.78;
  margin-bottom: 22px;
}

.about-question {
  background: var(--yellow-soft);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: "Fredoka One", "Nunito", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.25;
  margin-top: 10px;
  padding: 28px;
}

.about-question span {
  color: var(--purple);
  display: block;
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.about-notes li::before {
  color: var(--teal);
  content: "✦";
  margin-right: 8px;
}

.side-box {
  align-self: start;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: sticky;
  top: 90px;
}

.side-box h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.side-box ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.side-box li {
  border-bottom: 2px solid rgba(26, 26, 46, .12);
  font-weight: 800;
  padding-bottom: 10px;
}

.research-page .page-hero {
  min-height: 72vh;
  overflow: hidden;
  padding: 138px 6vw 70px;
  position: relative;
}

.research-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  margin: 0 auto;
  max-width: 1280px;
}

.research-hero-grid h1 {
  font-size: clamp(3.1rem, 6.8vw, 6.5rem);
  max-width: 900px;
}

.research-hero-art {
  border: var(--outline);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  min-height: 360px;
}

.research-hero-art.visual-context {
  padding: 42px 30px;
}

.research-hero-art .context-scene::after {
  bottom: 16px;
  font-size: .66rem;
}

.research-hero-art .ai-orbit {
  height: 210px;
  width: 290px;
}

.research-hero-art .ai-orbit-secondary {
  height: 290px;
  width: 190px;
}

.research-hero-art .ai-core {
  height: 112px;
  width: 112px;
}

.research-detail {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 70px 6vw 110px;
}

.research-detail p {
  color: var(--ink-mid);
  font-weight: 700;
}

.program-intro,
.research-section {
  background: rgba(255, 255, 255, .86);
  border: var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 54px);
}

.program-intro {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
}

.program-intro h2,
.research-section > h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--purple) !important;
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.question-box,
.evidence-callout {
  background: var(--yellow-soft);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.question-box h2,
.evidence-callout h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.question-box ul,
.evidence-callout ul,
.study-card ul,
.compact-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.question-box li,
.evidence-callout li,
.study-card li,
.compact-list li {
  color: var(--ink-mid);
  font-weight: 800;
  padding-left: 18px;
  position: relative;
}

.question-box li::before,
.evidence-callout li::before,
.study-card li::before,
.compact-list li::before {
  color: var(--coral);
  content: "→";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.framework-grid,
.contribution-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.framework-card,
.contribution-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
}

.framework-card:nth-child(3n + 1),
.contribution-card:nth-child(3n + 1) { background: var(--teal-soft); }
.framework-card:nth-child(3n + 2),
.contribution-card:nth-child(3n + 2) { background: var(--coral-soft); }
.framework-card:nth-child(3n),
.contribution-card:nth-child(3n) { background: var(--purple-soft); }

.framework-card h3,
.contribution-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.study-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.study-card {
  background: var(--bg-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(135px, .32fr) minmax(0, 1.68fr);
  padding: 24px;
}

.study-id {
  color: var(--purple);
  font-family: "Fredoka One", "Nunito", sans-serif;
  font-size: 1.3rem;
}

.study-status {
  background: var(--ink);
  border-radius: 999px;
  color: var(--yellow);
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 10px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.study-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.study-meta {
  color: var(--muted) !important;
  font-family: "Space Mono", monospace;
  font-size: .69rem;
  letter-spacing: .03em;
  margin: 10px 0 14px;
  text-transform: uppercase;
}

.finding-strip {
  background: var(--teal-soft);
  border-left: 5px solid var(--teal);
  color: var(--ink-mid);
  font-weight: 800;
  margin-top: 16px;
  padding: 14px 16px;
}

.finding-strip strong {
  color: var(--ink);
}

.finding-strip.caution {
  background: var(--yellow-soft);
  border-color: var(--yellow);
}

.method-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  margin-top: 28px;
}

.method-visual {
  background: var(--purple-soft);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 25px;
}

.method-track {
  align-items: stretch;
  display: flex;
}

.method-track .pipeline-node {
  flex: 1 1 0;
  height: auto;
  min-height: 78px;
  width: auto;
}

.output-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-top: 22px;
}

.output-list li {
  align-items: start;
  border-bottom: 2px solid rgba(26, 26, 46, .12);
  display: grid;
  gap: 16px;
  grid-template-columns: 64px 1fr;
  padding-bottom: 12px;
}

.output-year {
  color: var(--teal);
  font-family: "Fredoka One", "Nunito", sans-serif;
  font-size: 1.05rem;
}

.program-navigation {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 10px;
}

.program-navigation .button {
  background: var(--white);
}

@media (max-width: 960px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

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

  .research-hero-grid,
  .program-intro,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .research-hero-art {
    min-height: 300px;
  }

  .framework-grid,
  .contribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-box {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand-corner {
    position: absolute;
    top: 16px;
    left: 22px;
  }

  .site-nav {
    top: 52px;
    width: calc(100vw - 28px);
    border-radius: 24px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    flex: 1 1 auto;
    padding: 7px 9px;
    text-align: center;
  }

  .hero,
  .section,
  .page-hero,
  .content-wrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

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

  .research-program-map {
    align-items: stretch;
    flex-direction: column;
  }

  .research-program-map span {
    text-align: center;
  }

  .research-program-map b {
    line-height: .8;
    text-align: center;
    transform: rotate(90deg);
  }

  .program-card {
    grid-template-rows: 175px 1fr;
  }

  .project-visual.visual-pipeline .pipeline-node {
    font-size: .43rem;
    padding: 4px;
    width: 44px;
  }

  .project-visual.visual-pipeline .pipeline-arrow {
    font-size: 1.2rem;
    padding: 0 2px;
  }

  .project-visual.visual-pipeline {
    padding: 12px;
  }

  .visual-context {
    gap: 9px;
    padding: 20px;
  }

  .research-page .page-hero {
    padding-top: 152px;
  }

  .research-hero-grid {
    gap: 28px;
  }

  .research-hero-art {
    min-height: 250px;
  }

  .research-hero-art.visual-pipeline {
    flex-direction: column;
    gap: 3px;
    padding: 18px;
  }

  .research-hero-art.visual-pipeline .pipeline-node {
    height: 48px;
    width: 150px;
  }

  .research-hero-art.visual-pipeline .pipeline-arrow {
    line-height: .8;
    transform: rotate(90deg);
  }

  .research-detail {
    padding-left: 22px;
    padding-right: 22px;
  }

  .program-intro,
  .research-section {
    padding: 26px 20px;
  }

  .framework-grid,
  .contribution-grid,
  .study-card {
    grid-template-columns: 1fr;
  }

  .program-navigation,
  .method-track {
    align-items: stretch;
    flex-direction: column;
  }

  .program-navigation .button {
    width: 100%;
  }

  .method-track .pipeline-arrow {
    line-height: 1;
    text-align: center;
    transform: rotate(90deg);
  }

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

  .publication-item {
    grid-template-columns: 1fr;
  }

  .publication-link {
    padding-right: 58px;
  }

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

/* Refined visual system: quieter color, one typeface, larger reading text */
body,
body *,
body *::before,
body *::after {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
  color: var(--ink);
}

p,
li {
  line-height: 1.72;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.outline-text {
  -webkit-text-stroke: 0;
  color: var(--teal);
}

.site-nav {
  background: rgba(255, 255, 255, .94);
  border-color: var(--line);
  box-shadow: 0 6px 22px rgba(31, 45, 48, .08);
}

.brand-corner {
  font-size: .88rem;
  letter-spacing: .04em;
}

.nav-links a,
.pill-link,
.button {
  font-size: .78rem;
  letter-spacing: .025em;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-active {
  background: var(--teal);
  color: var(--white);
}

.badge {
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .07em;
  padding: 7px 13px;
}

.hero::before,
.page-hero::before {
  background-image:
    radial-gradient(circle at 14% 22%, rgba(47, 113, 109, .11), transparent 32%),
    radial-gradient(circle at 84% 28%, rgba(185, 147, 77, .09), transparent 28%);
}

.lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.72;
  max-width: 760px;
}

.button,
.pill-link {
  box-shadow: none;
  font-weight: 700;
  min-height: 46px;
  padding: 11px 19px;
}

.button:hover,
.pill-link:hover {
  box-shadow: 0 8px 22px rgba(31, 45, 48, .1);
  transform: translateY(-2px);
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.section {
  padding-bottom: 104px;
  padding-top: 104px;
}

.section::before {
  display: none;
}

.section.dark {
  background: rgba(229, 239, 237, .42);
}

.section.teal {
  background: var(--teal-soft);
}

.section-header {
  max-width: 850px;
}

.section h2 {
  font-size: clamp(2.55rem, 4.5vw, 3.75rem);
}

.section-intro,
.body-copy,
.main-copy p,
.project-card p,
.research-detail p {
  font-size: 1.04rem;
  font-weight: 500;
}

.project-card,
.publication-item,
.teaching-item,
.info-card,
.side-box,
.program-intro,
.research-section {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.accent-teal,
.accent-coral,
.accent-yellow,
.accent-purple {
  border-top: 4px solid var(--teal);
}

.program-card {
  grid-template-rows: 205px 1fr;
}

.project-card-copy {
  padding: 30px;
}

.program-card h3,
.project-card h3 {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  margin-bottom: 14px;
}

.project-number,
.card-footer {
  color: var(--teal);
  font-size: .73rem;
  letter-spacing: .05em;
}

.project-question {
  border-color: var(--teal);
  font-size: 1rem !important;
  line-height: 1.62;
  margin-top: 19px;
}

.tag-list li,
.hero-tag-list li {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: .7rem;
  letter-spacing: .02em;
  padding: 6px 10px;
}

.research-program-map {
  gap: 13px;
}

.research-program-map span {
  border: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: .72rem;
  letter-spacing: .02em;
  padding: 9px 13px;
}

.research-program-map span[aria-hidden="true"] {
  background: transparent;
  border: 0;
  color: var(--teal);
  font-size: 1.1rem;
  padding: 0;
}

.project-visual,
.research-hero-art {
  border-color: var(--line);
}

.visual-context,
.visual-ai {
  background: var(--teal-soft);
}

.visual-interaction,
.visual-pipeline {
  background: var(--yellow-soft);
}

.research-page .page-hero {
  min-height: 65vh;
}

.research-hero-grid h1 {
  font-size: clamp(3rem, 5.6vw, 5.4rem);
}

.research-hero-art {
  box-shadow: var(--shadow);
}

.research-detail {
  gap: 34px;
}

.program-intro,
.research-section {
  background: var(--white);
}

.program-intro h2,
.research-section > h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
}

.section-kicker {
  color: var(--teal) !important;
  font-size: .74rem !important;
  letter-spacing: .07em;
}

.question-box,
.evidence-callout {
  background: var(--yellow-soft);
  border-color: #e3d8c0;
  box-shadow: none;
}

.question-box li,
.evidence-callout li,
.study-card li,
.compact-list li {
  font-size: 1rem;
  font-weight: 600;
}

.question-box li::before,
.evidence-callout li::before,
.study-card li::before,
.compact-list li::before {
  color: var(--teal);
}

.framework-card,
.contribution-card,
.framework-card:nth-child(n),
.contribution-card:nth-child(n) {
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.framework-card h3,
.contribution-card h3 {
  font-size: 1.25rem;
}

.study-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 28px;
}

.study-id {
  color: var(--teal);
  font-size: 1.35rem;
}

.study-status {
  background: var(--teal);
  color: var(--white);
  font-size: .68rem;
  letter-spacing: .04em;
  padding: 6px 10px;
}

.study-card h3 {
  font-size: 1.62rem;
}

.study-meta {
  font-size: .76rem !important;
  font-weight: 600 !important;
  letter-spacing: .025em;
}

.finding-strip {
  background: var(--teal-soft);
  border-color: var(--teal);
  font-size: 1rem;
  font-weight: 600;
}

.finding-strip.caution {
  background: var(--yellow-soft);
  border-color: var(--yellow);
}

.method-visual {
  background: var(--teal-soft);
  border-color: var(--line);
}

.pipeline-node {
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: .67rem;
}

.pipeline-arrow {
  color: var(--teal);
}

.publication-year,
.output-year,
.publication-venue,
.teaching-meta {
  color: var(--teal);
}

.publication-item h3 {
  font-size: 1.12rem;
  line-height: 1.45;
}

.publication-meta,
.publication-venue {
  font-size: .98rem;
}

.footer {
  background: rgba(246, 245, 241, .94);
  border-color: var(--line);
  font-size: .82rem;
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .section {
    padding-bottom: 82px;
    padding-top: 82px;
  }

  .program-card {
    grid-template-rows: 185px 1fr;
  }

  .project-card-copy {
    padding: 25px 22px 27px;
  }

  .research-program-map span[aria-hidden="true"] {
    transform: rotate(90deg);
  }

  .research-hero-grid h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }
}

/* Home learning research question page */
.question-page-hero .research-hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
}

.question-page-hero .research-hero-grid h1 {
  font-size: clamp(2.55rem, 4.2vw, 4rem);
}

.question-page-hero .lead,
.question-page-hero .hero-context {
  color: var(--ink-mid);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.72;
}

.question-page-hero .hero-context {
  margin-top: 20px;
  max-width: 780px;
}

.method-tag-list li {
  background: var(--teal-soft);
  border-color: rgba(47, 113, 109, .25);
  color: var(--teal);
  font-size: .9rem;
  padding: 8px 12px;
}

.research-video {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 16px;
}

.research-video video {
  background: #172225;
  border-radius: 15px;
  display: block;
  height: min(56vh, 560px);
  object-fit: contain;
  width: 100%;
}

.research-video figcaption {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 4px 2px;
}

.study-program-section {
  padding-top: 10px;
}

.study-feature-list {
  display: grid;
  gap: 30px;
  margin-top: 18px;
}

.study-feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 46px);
  scroll-margin-top: 120px;
}

.study-feature-header {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.study-feature-header .study-id {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.study-feature-header h3 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  max-width: 790px;
}

.study-feature-header .study-status {
  flex: 0 0 auto;
  font-size: .8rem;
  line-height: 1.35;
  margin-top: 4px;
  max-width: 310px;
  padding: 8px 12px;
  text-align: center;
}

.study-method {
  align-items: center;
  background: transparent;
  color: var(--ink-mid);
  display: flex;
  flex-wrap: wrap;
  font-weight: 600;
  gap: 8px;
  margin: 20px 0 22px;
  padding: 0;
}

.study-method strong {
  color: var(--teal);
  flex: 0 0 100%;
  font-size: .78rem;
  letter-spacing: .07em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.study-method span {
  align-items: center;
  background: var(--teal-soft);
  border: 1px solid rgba(47, 113, 109, .25);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: .8rem;
  line-height: 1.25;
  padding: 8px 12px;
}

.study-method span:not(:last-child)::after {
  content: none;
}

.study-citation {
  border-left: 3px solid var(--teal);
  color: var(--ink-mid) !important;
  font-size: .94rem !important;
  margin: 3px 0 22px;
  max-width: 950px;
  padding-left: 15px;
}

.study-feature > p {
  max-width: 960px;
}

.study-links {
  margin-bottom: 12px;
  margin-top: 22px;
}

.discussion-panel {
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  margin-top: 32px;
  padding: clamp(22px, 3vw, 34px);
}

.discussion-panel h4,
.slide-deck-heading h4 {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.discussion-panel .button {
  margin-top: 18px;
}

.discussion-panel figure {
  min-width: 0;
}

.discussion-panel img {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: auto;
  width: 100%;
}

.discussion-panel figcaption,
.slide-frame figcaption {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 9px;
}

.presentation-citation {
  border-left: 4px solid var(--teal);
  margin-top: 28px;
  max-width: 980px;
  padding: 3px 0 3px 18px;
}

.presentation-citation p:last-child {
  font-size: .96rem;
}

.slide-deck {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 30px;
  padding: clamp(18px, 3vw, 30px);
}

.slide-deck-heading {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.slide-deck-heading h4 {
  margin-bottom: 0;
}

.slide-counter {
  color: var(--teal) !important;
  flex: 0 0 auto;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.slide-stage {
  background: #ebe8e1;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.slide-frame {
  margin: 0;
}

.slide-frame[hidden] {
  display: none;
}

.slide-frame img {
  aspect-ratio: 16 / 9;
  background: #f9f6ef;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.slide-frame figcaption {
  background: var(--white);
  margin: 0;
  min-height: 45px;
  padding: 11px 14px;
}

.slide-controls {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 18px;
}

.slide-controls .button {
  min-width: 114px;
}

.slide-dots {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.slide-dot {
  appearance: none;
  background: #c7d1cf;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 10px;
  padding: 0;
  transition: background .15s, transform .15s;
  width: 10px;
}

.slide-dot:hover,
.slide-dot:focus-visible {
  background: var(--yellow);
  outline: 3px solid rgba(185, 147, 77, .22);
  outline-offset: 2px;
}

.slide-dot.is-active {
  background: var(--teal);
  transform: scale(1.25);
}

/* Parent-child STEM interactions research question page */
.research-hero-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  padding: 16px;
}

.research-hero-figure img {
  background: var(--bg-soft);
  border-radius: 15px;
  display: block;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  width: 100%;
}

.research-hero-figure figcaption,
.task-figure figcaption,
.tml-task-gallery figcaption,
.document-preview-grid figcaption,
.eas-gallery figcaption {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
}

.research-hero-figure figcaption {
  padding: 12px 4px 2px;
}

.stem-interactions-page .method-tag-list li,
.stem-interactions-page .study-method span {
  font-size: .9rem;
}

.concept-publication-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.concept-publication {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
}

.concept-publication h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  margin-bottom: 12px;
}

.concept-publication > p:not(.publication-type) {
  color: var(--ink-mid);
  font-size: .96rem;
}

.publication-type {
  color: var(--teal);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.concept-publication .study-links {
  margin-bottom: 0;
}

.concept-news-feature {
  align-items: center;
  background: var(--teal-soft);
  border: 1px solid rgba(47, 113, 109, .25);
  border-radius: 18px;
  display: grid;
  gap: 24px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(22px, 3vw, 30px);
}

.concept-news-feature .news-label {
  color: var(--teal);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.concept-news-feature h3 {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
  margin: 0;
}

.concept-news-feature .button {
  white-space: nowrap;
}

.framework-heading {
  margin-top: 54px;
}

.study-media-split {
  align-items: start;
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  margin-top: 12px;
}

.task-figure,
.tml-task-gallery figure,
.document-preview-grid figure,
.eas-gallery figure {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0;
  overflow: hidden;
  padding: 14px;
}

.task-figure img {
  background: var(--white);
  border-radius: 10px;
  display: block;
  max-height: 460px;
  object-fit: contain;
  width: 100%;
}

.task-figure figcaption,
.tml-task-gallery figcaption,
.document-preview-grid figcaption,
.eas-gallery figcaption {
  padding: 10px 2px 1px;
}

.tml-task-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.tml-task-gallery img {
  background: var(--white);
  border-radius: 10px;
  display: block;
  height: 430px;
  object-fit: contain;
  object-position: top center;
  width: 100%;
}

.tml-task-gallery figcaption {
  color: var(--ink-mid);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}

.coding-systems-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 30px;
  padding: clamp(22px, 3vw, 32px);
}

.coding-systems-heading h4,
.standalone-coding-systems .coding-systems-heading h2 {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  margin-bottom: 20px;
}

.standalone-coding-systems {
  margin-top: 0;
}

.coding-system-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coding-system-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.coding-system-card h5 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  margin: 14px 0 8px;
}

.coding-system-card p {
  color: var(--ink-mid);
  font-size: .86rem;
  line-height: 1.55;
}

.coding-system-card img {
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.document-preview-grid,
.eas-gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.document-preview-grid img {
  background: var(--white);
  border-radius: 10px;
  display: block;
  height: 500px;
  object-fit: contain;
  width: 100%;
}

.eas-gallery img {
  background: var(--white);
  border-radius: 10px;
  display: block;
  height: 360px;
  object-fit: contain;
  width: 100%;
}

.interaction-process-grid {
  display: grid;
  gap: 46px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.interaction-process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 30px);
  position: relative;
}

.interaction-process-step:not(:last-child)::after {
  color: var(--teal);
  content: "→";
  font-size: 1.65rem;
  font-weight: 800;
  position: absolute;
  right: -37px;
  top: 50%;
  transform: translateY(-50%);
}

.interaction-process-step h3 {
  color: var(--ink);
  font-size: 1.18rem;
  margin: 13px 0 10px;
}

.interaction-process-step p {
  color: var(--ink-mid);
  font-size: .92rem;
  line-height: 1.62;
}

.process-number {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.design-summary {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .question-page-hero .research-hero-grid {
    grid-template-columns: 1fr;
  }

  .research-video {
    margin: 0 auto;
    max-width: 520px;
    width: 100%;
  }

  .research-hero-figure {
    margin: 0 auto;
    max-width: 560px;
    width: 100%;
  }

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

  .task-figure {
    max-width: 520px;
  }

  .coding-system-grid,
  .interaction-process-grid {
    grid-template-columns: 1fr;
  }

  .interaction-process-grid {
    gap: 44px;
  }

  .interaction-process-step:not(:last-child)::after {
    bottom: -37px;
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 680px) {
  .question-page-hero .badge {
    line-height: 1.4;
  }

  .question-page-hero .research-hero-grid h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .research-video video {
    height: min(68vh, 540px);
  }

  .study-feature {
    padding: 25px 20px;
  }

  .study-feature-header,
  .slide-deck-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-feature-header .study-status {
    max-width: 100%;
  }

  .study-method {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .study-method strong {
    margin-bottom: 2px;
  }

  .discussion-panel {
    grid-template-columns: 1fr;
  }

  .concept-publication-grid,
  .tml-task-gallery,
  .document-preview-grid,
  .eas-gallery {
    grid-template-columns: 1fr;
  }

  .concept-news-feature {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .concept-news-feature .button {
    white-space: normal;
  }

  .tml-task-gallery img {
    height: min(105vw, 500px);
  }

  .document-preview-grid img {
    height: min(118vw, 560px);
  }

  .eas-gallery img {
    height: min(82vw, 420px);
  }

  .slide-controls {
    grid-template-columns: 1fr 1fr;
  }

  .slide-dots {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .slide-controls .button {
    min-width: 0;
    width: 100%;
  }
}

/* Families and AI research question page */
.ai-families-page .question-page-hero .research-hero-grid h1 {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
}

.ai-meme-hero img {
  max-height: 560px;
  object-fit: contain;
}

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

.ai-program-intro > div {
  max-width: none;
}

.ai-families-page .study-program-section .study-feature-list {
  margin-top: 0;
}

.development-stage-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.development-stage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
}

.development-stage-card h3 {
  color: var(--ink);
  font-size: clamp(1.28rem, 2.2vw, 1.65rem);
  margin-bottom: 12px;
}

.development-stage-card p:last-child {
  color: var(--ink-mid);
  font-size: .96rem;
  line-height: 1.7;
}

.stage-label {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.conference-output-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.conference-output-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 28px);
}

.conference-output-card > p:last-child {
  color: var(--ink-mid);
  font-size: .92rem;
  line-height: 1.65;
}

.ai-presentation-photo {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 28px 0 0;
  overflow: hidden;
  padding: 14px;
}

.ai-presentation-photo img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center 76%;
  width: 100%;
}

.ai-presentation-photo figcaption {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 11px 3px 1px;
}

.ai-families-page .slide-deck[tabindex]:focus-visible {
  outline: 3px solid rgba(47, 113, 109, .28);
  outline-offset: 4px;
}

.ai-family-flow {
  margin-bottom: 26px;
  margin-top: 30px;
}

.ai-family-flow .interaction-process-step p {
  font-size: .94rem;
}

.collaboration-invite {
  align-items: center;
  background: linear-gradient(135deg, var(--teal-soft), var(--white));
  border: 1px solid rgba(47, 113, 109, .3);
  border-radius: 24px;
  display: grid;
  gap: clamp(26px, 5vw, 54px);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  position: relative;
}

.collaboration-invite::after {
  border: 38px solid rgba(47, 113, 109, .08);
  border-radius: 50%;
  content: "";
  height: 190px;
  pointer-events: none;
  position: absolute;
  right: -90px;
  top: -110px;
  width: 190px;
}

.collaboration-invite > * {
  position: relative;
  z-index: 1;
}

.collaboration-invite h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 780px;
}

.collaboration-invite > div > p:not(.section-kicker) {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 820px;
}

.collaboration-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 22px;
  padding: 0;
}

.collaboration-topics li {
  background: var(--white);
  border: 1px solid rgba(47, 113, 109, .24);
  border-radius: 999px;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 12px;
}

.collaboration-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.collaboration-actions .button {
  justify-content: center;
  text-align: center;
}

@media (max-width: 960px) {
  .collaboration-invite {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .collaboration-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .development-stage-grid,
  .conference-output-grid {
    grid-template-columns: 1fr;
  }

  .ai-meme-hero img {
    max-height: none;
  }

  .ai-presentation-photo img {
    aspect-ratio: 4 / 3;
    object-position: center 78%;
  }

  .collaboration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .collaboration-actions .button {
    width: 100%;
  }
}

/* Human-in-the-loop behavioral coding research question page */
.human-loop-page .question-page-hero .research-hero-grid h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.85rem);
}

.human-loop-hero img {
  max-height: 540px;
  object-fit: contain;
}

.data-foundation-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.data-foundation-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.data-foundation-card:hover,
.data-foundation-card:focus-visible {
  border-color: rgba(47, 113, 109, .55);
  box-shadow: 0 14px 32px rgba(32, 55, 57, .1);
  transform: translateY(-3px);
}

.data-foundation-card:focus-visible {
  outline: 3px solid rgba(47, 113, 109, .22);
  outline-offset: 3px;
}

.foundation-acronym {
  color: var(--teal) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.data-foundation-card h3 {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.28;
  margin-bottom: 12px;
}

.foundation-intro {
  color: var(--ink-mid) !important;
  font-size: .92rem !important;
  line-height: 1.62 !important;
}

.data-foundation-card h4 {
  color: var(--ink);
  font-size: .84rem;
  letter-spacing: .04em;
  margin: 22px 0 10px;
  text-transform: uppercase;
}

.data-foundation-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.data-foundation-card li {
  color: var(--ink-mid);
  font-size: .9rem;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.data-foundation-card li::before {
  color: var(--teal);
  content: "•";
  font-weight: 800;
  left: 2px;
  position: absolute;
}

.foundation-link {
  color: var(--teal);
  font-size: .86rem;
  font-weight: 800;
  margin-top: auto;
}

.methods-status {
  margin-top: 22px;
}

.methods-status a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.human-loop-workflow-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.human-loop-workflow-step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 2.7vw, 28px);
  position: relative;
}

.human-loop-workflow-step:not(:last-child)::after {
  color: var(--teal);
  content: "→";
  font-size: 1.55rem;
  font-weight: 800;
  position: absolute;
  right: -31px;
  top: 50%;
  transform: translateY(-50%);
}

.human-loop-workflow-step h3 {
  color: var(--ink);
  font-size: 1.12rem;
  margin: 13px 0 10px;
}

.human-loop-workflow-step p {
  color: var(--ink-mid);
  font-size: .9rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .data-foundation-grid,
  .human-loop-workflow-grid {
    grid-template-columns: 1fr;
  }

  .human-loop-workflow-grid {
    gap: 44px;
  }

  .human-loop-workflow-step:not(:last-child)::after {
    bottom: -37px;
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 680px) {
  .human-loop-hero img {
    max-height: none;
  }
}

/* Homepage research project rows */
.research-project-list {
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 34px;
}

.research-project-row {
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 0;
  grid-template-areas: "image content";
  grid-template-columns: minmax(260px, 33.333%) minmax(0, 1fr);
  min-height: 0;
  padding: 0;
  position: relative;
}

.research-project-row.image-right {
  grid-template-areas: "content image";
  grid-template-columns: minmax(0, 1fr) minmax(260px, 33.333%);
}

.research-project-row h3,
.project-card.research-project-row h3 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.25;
  margin: 0;
}

.research-row-image {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  grid-area: image;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.research-project-row.image-right .research-row-image {
  border-left: 1px solid var(--line);
  border-right: 0;
}

.research-row-image::after {
  background: linear-gradient(90deg, transparent 72%, rgba(255, 255, 255, .16));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.research-project-row.image-right .research-row-image::after {
  background: linear-gradient(270deg, transparent 72%, rgba(255, 255, 255, .16));
}

.research-row-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

.research-project-row:hover .research-row-image img,
.research-project-row:focus-visible .research-row-image img {
  transform: scale(1.025);
}

.research-row-content {
  align-self: center;
  grid-area: content;
  padding: clamp(28px, 4vw, 46px) clamp(76px, 7vw, 104px) clamp(28px, 4vw, 46px) clamp(28px, 4vw, 48px);
}

.research-project-label {
  background: #174f47;
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 16px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.research-project-question,
.project-card .research-project-question {
  color: var(--ink-mid);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.research-project-question span {
  color: var(--teal);
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.research-row-arrow {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: clamp(24px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, transform .18s ease;
  width: 42px;
}

.research-project-row.image-right .research-row-arrow {
  right: calc(33.333% + clamp(24px, 3vw, 36px));
}

.research-project-row:hover .research-row-arrow,
.research-project-row:focus-visible .research-row-arrow {
  background: var(--teal);
  color: var(--white);
  transform: translate(3px, -50%);
}

.research-project-row:focus-visible {
  outline: 3px solid rgba(47, 113, 109, .24);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .research-project-row,
  .research-project-row.image-right {
    grid-template-areas:
      "image"
      "content";
    grid-template-columns: 1fr;
  }

  .research-row-image {
    aspect-ratio: 16 / 8;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 0;
  }

  .research-project-row.image-right .research-row-image {
    border-left: 0;
  }

  .research-row-content {
    padding: 28px 72px 30px 28px;
  }

  .research-row-arrow,
  .research-project-row.image-right .research-row-arrow {
    bottom: 28px;
    right: 24px;
    top: auto;
    transform: none;
  }

  .research-project-row:hover .research-row-arrow,
  .research-project-row:focus-visible .research-row-arrow {
    transform: translateX(3px);
  }
}

@media (max-width: 520px) {
  .research-project-row {
    padding: 0;
  }

  .research-row-image {
    aspect-ratio: 16 / 9;
  }

  .research-row-content {
    padding: 24px 64px 26px 22px;
  }

  .research-row-arrow {
    bottom: 24px;
    right: 20px;
    height: 38px;
    width: 38px;
  }
}

/* Homepage teaching and mentoring */
.teaching-section .section-header {
  max-width: 980px;
}

.teaching-overview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  margin-top: 42px;
  max-width: 1180px;
}

.teaching-section .teaching-item {
  padding: clamp(28px, 3.4vw, 40px);
}

.teaching-eyebrow {
  color: var(--teal);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.teaching-section .teaching-item h3,
.teaching-areas h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 12px;
}

.teaching-course-card {
  background: #174f47;
  border-color: #174f47;
  color: var(--white);
}

.teaching-course-card .teaching-eyebrow,
.teaching-course-card .teaching-context {
  color: #bcd9d3;
}

.teaching-context {
  font-size: .96rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.course-description,
.teaching-philosophy-card > p,
.mentoring-copy > p {
  font-size: 1rem;
  line-height: 1.72;
}

.course-question {
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-top: 1px solid rgba(255, 255, 255, .22);
  margin-top: 24px;
  padding: 20px 0;
}

.course-question span {
  color: #bcd9d3;
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.course-question p {
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.55;
}

.teaching-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 22px;
}

.teaching-tag-list li {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #eef7f5;
  font-size: .72rem;
  font-weight: 600;
  padding: 7px 11px;
}

.teaching-philosophy-card {
  border-top: 4px solid var(--teal);
}

.teaching-philosophy-card > p {
  color: var(--ink-mid);
}

.teaching-support-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin-top: 22px;
}

.teaching-support-list li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 15px 0;
}

.teaching-support-list strong {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
}

.teaching-support-list span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.teaching-method-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  max-width: 1180px;
}

.teaching-method-card {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.teaching-method-number {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 750;
  height: 36px;
  justify-content: center;
  margin-bottom: 16px;
  width: 36px;
}

.teaching-method-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 9px;
}

.teaching-method-card p {
  color: var(--ink-mid);
  font-size: .91rem;
  line-height: 1.65;
}

.mentoring-feature {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.52fr);
  margin-top: 22px;
  max-width: 1180px;
}

.mentoring-copy > p {
  color: var(--ink-mid);
}

.mentoring-path {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  position: relative;
}

.mentoring-path::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.mentoring-path li {
  position: relative;
  z-index: 1;
}

.mentoring-path li > span {
  align-items: center;
  background: var(--teal);
  border: 4px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: .66rem;
  font-weight: 750;
  height: 36px;
  justify-content: center;
  margin-bottom: 14px;
  width: 36px;
}

.mentoring-path h4 {
  font-size: 1rem;
  margin-bottom: 7px;
}

.mentoring-path p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.teaching-areas {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 26px;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  max-width: 1180px;
  padding: clamp(28px, 3.4vw, 40px);
}

.teaching-areas h3 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.teaching-area-group {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.teaching-area-group h4 {
  color: var(--teal);
  font-size: .9rem;
  margin-bottom: 9px;
}

.teaching-area-group p {
  color: var(--ink-mid);
  font-size: .84rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .teaching-overview-grid,
  .mentoring-feature {
    grid-template-columns: 1fr;
  }

  .teaching-areas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teaching-areas-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .teaching-method-grid,
  .teaching-areas {
    grid-template-columns: 1fr;
  }

  .teaching-areas-intro {
    grid-column: auto;
  }

  .teaching-area-group {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }

  .mentoring-path {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .mentoring-path::before {
    bottom: 18px;
    height: auto;
    left: 18px;
    right: auto;
    top: 18px;
    width: 1px;
  }

  .mentoring-path li {
    display: grid;
    gap: 3px 16px;
    grid-template-columns: 36px 1fr;
    padding-bottom: 22px;
  }

  .mentoring-path li > span {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .mentoring-path h4,
  .mentoring-path p {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .teaching-section .teaching-item,
  .teaching-method-card,
  .teaching-areas {
    padding: 24px 22px;
  }
}

/* Homepage teaching summary */
.homepage-teaching-grid {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  margin-top: 38px;
  max-width: 1180px;
}

.teaching-summary-card {
  display: flex;
  flex-direction: column;
}

.teaching-summary-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 120px 1fr;
  padding: 22px 0;
}

.teaching-summary-row:first-child {
  padding-top: 0;
}

.teaching-summary-label {
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.teaching-section .teaching-summary-card .teaching-summary-row h3 {
  font-size: 1.13rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.teaching-summary-row p:not(.teaching-summary-label) {
  color: var(--ink-mid);
  font-size: .92rem;
  line-height: 1.62;
}

.mentoring-count-row {
  align-items: center;
  grid-template-columns: 120px 1fr;
}

.mentoring-count {
  color: var(--teal);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
}

.mentoring-count span {
  font-size: 1.3rem;
  margin-left: 2px;
  vertical-align: top;
}

.teaching-summary-action {
  align-self: flex-start;
  margin-top: 24px;
}

.teaching-note-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.teaching-note-preview img {
  display: block;
  height: calc(100% - 70px);
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.teaching-note-preview figcaption {
  color: var(--ink-mid);
  font-size: .82rem;
  line-height: 1.5;
  padding: 18px 20px;
}

/* Teaching and mentoring subpage */
.teaching-page {
  background: var(--bg);
}

.teaching-page-hero {
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.teaching-page-hero h1 {
  font-size: clamp(3rem, 6.7vw, 5.8rem);
  max-width: 930px;
}

.teaching-page-hero .lead {
  max-width: 780px;
}

.teaching-hero-stats {
  align-self: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  padding: 8px 26px;
}

.teaching-hero-stat {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 20px 0;
}

.teaching-hero-stat:last-child {
  border-bottom: 0;
}

.teaching-hero-stat strong {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 650;
}

.teaching-hero-stat:first-child strong {
  font-size: 2.15rem;
  letter-spacing: -.05em;
  line-height: 1;
}

.teaching-hero-stat span {
  color: var(--ink-mid);
  font-size: .84rem;
  line-height: 1.45;
}

.teaching-detail {
  display: grid;
  gap: 26px;
  padding: 0 6vw 96px;
}

.teaching-page-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(34px, 5vw, 58px);
  width: 100%;
}

.teaching-page-section-header {
  max-width: 830px;
}

.teaching-page-section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.teaching-page-section-header > p:last-child {
  color: var(--ink-mid);
  font-size: 1.02rem;
  line-height: 1.72;
}

.teaching-course-detail {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  margin-top: 36px;
}

.teaching-course-overview {
  background: #174f47;
  border-radius: var(--radius);
  color: var(--white);
  padding: clamp(28px, 4vw, 42px);
}

.teaching-course-overview .teaching-eyebrow {
  color: #bcd9d3;
}

.teaching-course-overview h3 {
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.teaching-course-overview > p:not(.teaching-eyebrow) {
  color: #e3f0ed;
  line-height: 1.7;
}

.teaching-course-overview blockquote {
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.58;
  margin: 24px 0;
  padding: 20px 0;
}

.teaching-course-overview blockquote span {
  color: #bcd9d3;
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.teaching-page-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.teaching-page-tag-list li {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #eef7f5;
  font-size: .72rem;
  font-weight: 600;
  padding: 7px 11px;
}

.teaching-course-principles {
  display: grid;
  gap: 14px;
}

.teaching-course-principles article {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 16px;
  grid-template-columns: 38px 1fr;
  padding: 22px;
}

.teaching-course-principles article > span {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal);
  display: flex;
  font-size: .68rem;
  font-weight: 700;
  grid-row: 1 / span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.teaching-course-principles h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 2px;
}

.teaching-course-principles p {
  color: var(--ink-mid);
  font-size: .86rem;
  line-height: 1.58;
}

.mentoring-page-section {
  background: rgba(229, 239, 237, .52);
}

.mentoring-page-path {
  margin-top: 38px;
}

.mentoring-support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.mentoring-support-grid article {
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.mentoring-support-grid h3 {
  font-size: 1.08rem;
  margin-bottom: 9px;
}

.mentoring-support-grid p {
  color: var(--ink-mid);
  font-size: .88rem;
  line-height: 1.62;
}

.teaching-gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.teaching-gallery-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.teaching-gallery-poster {
  grid-column: 1 / -1;
}

.teaching-gallery-item img {
  display: block;
  height: auto;
  width: 100%;
}

.teaching-gallery-item:not(.teaching-gallery-poster) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.teaching-gallery-item figcaption {
  color: var(--ink-mid);
  font-size: .85rem;
  line-height: 1.58;
  padding: 18px 20px 20px;
}

.teaching-gallery-item figcaption strong {
  color: var(--ink);
  font-weight: 650;
}

.teaching-gallery-item figcaption a {
  color: var(--teal);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.support-letters-section {
  background: var(--bg-soft);
}

.support-letter-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.support-letter-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(27, 48, 43, .07);
  min-width: 0;
  overflow: hidden;
}

.support-letter-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: calc((100% - 22px) / 2);
  width: 100%;
}

.support-letter-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px 20px;
}

.support-letter-heading h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-top: 4px;
}

.support-letter-type {
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.support-letter-heading a {
  color: var(--teal);
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 700;
  padding-top: 2px;
  text-underline-offset: 3px;
}

.support-letter-viewer {
  background: #e7eae8;
  max-height: 620px;
  overflow-y: auto;
  padding: 12px;
  scrollbar-gutter: stable;
}

.support-letter-viewer:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -4px;
}

.support-letter-viewer img {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(20, 38, 34, .14);
  display: block;
  height: auto;
  margin-bottom: 12px;
  width: 100%;
}

.support-letter-viewer img:last-child {
  margin-bottom: 0;
}

.teaching-preparation-section {
  background: var(--bg-soft);
}

.teaching-preparation-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.teaching-preparation-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.teaching-preparation-grid h3 {
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.teaching-preparation-grid p {
  border-top: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: .86rem;
  line-height: 1.5;
  padding: 10px 0;
}

.teaching-page-actions {
  margin-top: 30px;
}

@media (max-width: 960px) {
  .homepage-teaching-grid,
  .teaching-page-hero,
  .teaching-course-detail {
    grid-template-columns: 1fr;
  }

  .teaching-note-preview img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .teaching-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teaching-hero-stat {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 18px;
  }

  .teaching-hero-stat:last-child {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .teaching-hero-stats,
  .mentoring-support-grid,
  .teaching-gallery-grid,
  .support-letter-grid,
  .teaching-preparation-grid {
    grid-template-columns: 1fr;
  }

  .teaching-hero-stat {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .teaching-gallery-poster {
    grid-column: auto;
  }

  .support-letter-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .teaching-summary-row,
  .mentoring-count-row {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .teaching-summary-label {
    margin-bottom: 2px;
  }

  .teaching-page-section {
    padding: 28px 22px;
  }

  .teaching-course-principles article {
    padding: 20px 18px;
  }

  .support-letter-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .support-letter-viewer {
    max-height: 540px;
    padding: 8px;
  }
}

/* Homepage portrait hero */
.hero.home-hero {
  align-items: center;
  display: grid;
  gap: clamp(42px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .72fr);
  margin: 0 auto;
  max-width: 1540px;
  width: 100%;
}

.hero.home-hero > .home-hero-copy {
  max-width: 820px;
}

.home-hero-portrait {
  background: var(--white);
  border: 1px solid rgba(47, 113, 109, .22);
  border-radius: 26px;
  box-shadow: 0 24px 54px rgba(31, 45, 48, .14);
  justify-self: end;
  max-width: 450px;
  overflow: hidden;
  padding: 9px;
  position: relative;
  width: 100%;
}

.home-hero-portrait::after {
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  content: "";
  inset: 9px;
  pointer-events: none;
  position: absolute;
}

.home-hero-portrait img {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
}

@media (max-width: 960px) {
  .hero.home-hero {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  }

  .home-hero-portrait {
    max-width: 370px;
  }
}

@media (max-width: 760px) {
  .hero.home-hero {
    grid-template-columns: 1fr;
    padding-bottom: 74px;
    padding-top: 150px;
  }

  .home-hero-portrait {
    justify-self: center;
    max-width: 430px;
  }
}

/* About-page photo story */
.about-photo-story {
  border-top: 1px solid var(--line);
  margin: 42px 0 46px;
  padding-top: 38px;
}

.about-photo-story-header {
  margin-bottom: 28px;
  max-width: 700px;
}

.about-photo-story-header > span {
  color: var(--teal);
  display: block;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.about-photo-story-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

.about-copy .about-photo-story-header p {
  color: var(--ink-mid);
  font-size: .95rem;
  font-weight: 450;
  line-height: 1.68;
  margin: 0;
}

.about-photo-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.about-photo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(31, 45, 48, .08);
  overflow: hidden;
}

.about-photo-feature {
  grid-column: 1 / -1;
}

.about-photo-card img {
  display: block;
  height: auto;
  width: 100%;
}

.about-photo-personal img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-photo-teaching {
  align-self: start;
  margin-top: 62px;
}

.about-photo-card figcaption {
  color: var(--ink-mid);
  font-size: .86rem;
  line-height: 1.62;
  padding: 18px 20px 21px;
}

.about-photo-card figcaption strong {
  color: var(--ink);
  display: block;
  font-size: .93rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.about-photo-card figcaption a {
  color: var(--teal);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .about-photo-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-feature {
    grid-column: auto;
  }

  .about-photo-teaching {
    margin-top: 0;
  }
}
