:root {
  --ink: #11151c;
  --ink-soft: #303844;
  --muted: #66707b;
  --line: #e7e6e3;
  --warm: #fbfaf8;
  --soft: #f5f5f3;
  --white: #ffffff;
  --navy: #091722;
  --navy-2: #102635;
  --cardinal: #8c1515;
  --cardinal-bright: #b1040e;
  --teal: #4a8fa0;
  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow-soft: 0 22px 70px rgba(16, 24, 32, 0.08);
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 42px);
  --section: clamp(88px, 10vw, 142px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.section { padding-block: var(--section); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(17, 21, 28, .06);
  background: rgba(251, 250, 248, .88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-name { font-size: 24px; letter-spacing: .22em; font-weight: 500; }
.brand-subtitle { padding-left: 2px; color: var(--muted); font-size: 9px; line-height: 1.2; letter-spacing: .01em; }
.nav-links { justify-self: center; display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 560; }
.nav-links a { color: #313944; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--cardinal); }
.stanford-wordmark { display: grid; line-height: .86; text-align: left; color: var(--cardinal); }
.stanford-wordmark strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.stanford-wordmark span { color: #2f3033; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.menu-toggle span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); transition: .25s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

/* Shared type */
.eyebrow {
  margin-bottom: 18px;
  color: var(--cardinal);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-light { color: #8bb7c2; }
.section-intro {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 72px;
}
.section-intro h2,
.mission h2,
.impact h2,
.scholarship h2,
.contact h2 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: .99;
  letter-spacing: -.05em;
  font-weight: 560;
}
.section-intro h2 span { color: #7a8088; font-weight: 430; }
.section-intro > p,
.mission-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.section-intro-compact { margin-bottom: 46px; }

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--cardinal-bright); box-shadow: 0 10px 24px rgba(177, 4, 14, .16); }
.button-outline { border: 1px solid rgba(140, 21, 21, .35); color: var(--cardinal); background: transparent; }
.button-light { background: var(--white); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(3px); }

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfbf9 0%, #f5f5f3 100%);
}
.hero-track { position: relative; min-height: 720px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .75s var(--ease), transform .75s var(--ease), visibility .75s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-grid {
  height: 720px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(540px, 1.1fr);
  gap: 54px;
  align-items: center;
  padding-block: 46px 72px;
}
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.hero h1, .hero h2 {
  margin-bottom: 26px;
  font-size: clamp(54px, 5.8vw, 86px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 560;
}
.hero h1 span, .hero h2 span { color: #727983; font-weight: 410; }
.hero-lede { max-width: 620px; margin-bottom: 32px; color: #505963; font-size: 20px; line-height: 1.5; letter-spacing: -.012em; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-media {
  height: 570px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.hero-media > img { width: 100%; height: 100%; }
.hero-media-photo > img { object-fit: cover; object-position: 66% center; }
.hero-media-device { display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 50% 48%, #fff 0%, #f7f5f2 62%, #efebe6 100%); }
.hero-media-device > img { object-fit: contain; }
.hero-media-data { display: grid; place-items: center; padding: 28px; background: linear-gradient(180deg, #f4f4f2 0%, #ececea 100%); }
.hero-media-data > img { object-fit: contain; }
.hero-media-dark { background: radial-gradient(circle at 50% 35%, #163245 0%, var(--navy) 78%); }
.hero-media-dark img { object-fit: contain; border-radius: 16px; }

.hero-media figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(15px);
  color: var(--ink);
}
.hero-media figcaption span { color: #8a8f95; font-size: 11px; }
.hero-media figcaption strong { font-size: 13px; }
.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}
.hero-progress, .hero-pause { pointer-events: auto; }
.hero-progress {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(17, 21, 28, .06);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(15px);
}
.hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #b6b7b9; cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dot.is-active { width: 28px; background: var(--ink); }
.hero-pause { width: 38px; height: 38px; border: 1px solid rgba(17, 21, 28, .08); border-radius: 50%; background: rgba(255, 255, 255, .85); cursor: pointer; }
.play-icon { display: none; }
.hero-pause.is-paused .pause-icon { display: none; }
.hero-pause.is-paused .play-icon { display: inline; }

/* Mission */
.mission { background: var(--warm); }
.mission-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 90px; align-items: center; }
.mission h2 { max-width: 780px; }
.mission-copy { max-width: 520px; }

/* Research */
.research { background: var(--white); border-top: 1px solid var(--line); }
.platform-list { display: grid; gap: clamp(78px, 9vw, 128px); }
.platform { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(46px, 7vw, 96px); align-items: center; }
.platform-reverse .platform-media { order: 2; }
.platform-media {
  min-height: 410px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.platform-media img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }
.platform-media-device { display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 50% 48%, #fff 0%, #f7f5f2 66%, #efebe6 100%); }
.platform-media-device img { object-fit: contain; max-height: 470px; }
.platform-media-data { display: grid; place-items: center; padding: 34px; background: linear-gradient(180deg, #f4f4f2 0%, #ececea 100%); }
.platform-media-data img { object-fit: contain; }
.platform-media-dark { background: radial-gradient(circle at 50% 35%, #163245 0%, var(--navy) 78%); }
.platform-media-dark img { object-fit: contain; border-radius: 18px; }
.platform-index { display: block; margin-bottom: 13px; color: #8a9096; font-size: 12px; }
.platform-copy h3 { margin-bottom: 30px; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 560; }
.platform-details { display: grid; gap: 22px; }
.platform-details div { padding-top: 16px; border-top: 1px solid var(--line); }
.platform-details dt { margin-bottom: 7px; font-size: 11px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.platform-details dd { color: var(--muted); font-size: 16px; line-height: 1.48; }

/* Approach */
.approach { position: relative; overflow: hidden; padding-block: clamp(100px, 11vw, 150px); color: var(--white); background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.signal-field { position: absolute; inset: auto 0 0; width: 100%; height: 45%; opacity: .45; }
.signal-field path { fill: none; stroke-width: 1.4; }
.signal-field path:nth-child(1) { stroke: #4fc5df; }
.signal-field path:nth-child(2) { stroke: #69a6bb; }
.signal-field path:nth-child(3) { stroke: #d7a74c; }
.approach-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.35fr; gap: 100px; }
.approach-title h2 { font-size: clamp(56px, 6vw, 86px); line-height: .92; letter-spacing: -.06em; font-weight: 520; }
.approach-steps { border-top: 1px solid rgba(255,255,255,.2); }
.approach-steps article { display: grid; grid-template-columns: 52px 145px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.approach-steps article > span { color: #82909a; font-size: 12px; }
.approach-steps h3 { font-size: 26px; font-weight: 560; letter-spacing: -.03em; }
.approach-steps p { color: #c2c8cd; line-height: 1.55; }

/* Impact */
.impact { background: var(--soft); }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(54px, 8vw, 100px); align-items: center; }
.impact-media { height: 520px; overflow: hidden; border-radius: var(--radius-lg); }
.impact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.22); }
.impact-copy h2 { margin-bottom: 28px; }
.impact-copy > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.65; }

/* People */
.people { background: var(--warm); }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { min-width: 0; display: block; }
.person > img, .avatar { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 17px; border-radius: 50%; object-fit: cover; background: #edf0f1; box-shadow: 0 10px 30px rgba(16,24,32,.08); }
.avatar { display: grid; place-items: center; color: #536774; font-size: 28px; font-weight: 500; }
.person h3 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.02em; }
.person p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.person span { display: inline-block; margin-top: 10px; color: var(--cardinal); font-size: 12px; font-weight: 650; }
.alumni { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.alumni-toggle { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 650; cursor: pointer; }
.alumni-toggle span { margin-left: 7px; font-size: 20px; }
.alumni-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; padding-top: 18px; }
.alumni-panel div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.alumni-panel span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

/* Scholarship / support */
.scholarship { background: var(--white); border-top: 1px solid var(--line); }
.scholarship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.scholarship-block { min-height: 470px; padding: 54px; background: var(--white); }
.scholarship-block h2 { margin-bottom: 24px; font-size: clamp(38px, 4.2vw, 60px); }
.scholarship-block > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.58; }
.link-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.funder-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.funder-row span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #58616a; font-size: 12px; font-weight: 760; letter-spacing: .04em; }
.support-block .button { margin-top: 4px; }

/* Join */
.join { padding-block: 80px; color: var(--white); background: var(--navy); }
.join-grid { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 48px; align-items: center; }
.join h2 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1; letter-spacing: -.045em; font-weight: 540; }
.join-grid > p { max-width: 570px; color: #c3cbd0; line-height: 1.58; }

/* Contact/footer */
.contact { background: var(--warm); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 86px; }
.contact-copy { padding-top: 22px; border-top: 1px solid var(--line); }
.contact-copy strong { font-size: 20px; }
.contact-copy p { margin: 14px 0 22px; color: var(--muted); line-height: 1.55; }
.contact-copy a { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 650; }
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); background: #f2f2f0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: center; color: #737980; font-size: 12px; }
.footer-grid > div { display: grid; gap: 2px; }
.footer-grid strong { color: var(--ink); }
.footer-grid a { color: var(--ink); font-weight: 650; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav-shell { grid-template-columns: auto 1fr; }
  .stanford-wordmark { display: none; }
  .nav-links { justify-self: end; gap: 20px; }
  .hero, .hero-track { min-height: 880px; }
  .hero-grid { height: 880px; grid-template-columns: 1fr; align-content: start; gap: 34px; padding-top: 64px; }
  .hero-copy { max-width: 760px; }
  .hero h1, .hero h2 { font-size: 64px; }
  .hero-media { height: 420px; }
  .mission-grid, .section-intro, .approach-grid, .impact-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .platform { gap: 48px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .join-grid { grid-template-columns: 1fr 1fr; }
  .join-grid .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --section: 82px; }
  .nav-shell { min-height: 66px; grid-template-columns: 1fr auto; }
  .brand-subtitle { display: none; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 32px; height: 32px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: grid;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(251, 250, 248, .98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .25s ease;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-toggle.is-open span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-toggle.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

  .hero, .hero-track { min-height: 800px; }
  .hero-grid { height: 800px; padding-top: 48px; padding-bottom: 72px; gap: 26px; }
  .hero h1, .hero h2 { font-size: 49px; }
  .hero-lede { font-size: 17px; }
  .hero-media { height: 320px; border-radius: 22px; }
  .hero-media-device, .hero-media-data { padding: 20px; }
  .hero-media figcaption { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .hero-controls { bottom: 12px; }

  .section-intro { margin-bottom: 46px; }
  .section-intro h2, .mission h2, .impact h2, .scholarship h2, .contact h2 { font-size: 43px; }
  .section-intro > p, .mission-copy { font-size: 16px; }

  .platform, .platform-reverse { grid-template-columns: 1fr; gap: 28px; }
  .platform-reverse .platform-media { order: initial; }
  .platform-media, .platform-media img { min-height: 270px; }
  .platform-media-device, .platform-media-data { padding: 22px; }
  .platform-copy h3 { font-size: 36px; margin-bottom: 24px; }

  .approach { padding-block: 86px; }
  .approach-title h2 { font-size: 56px; }
  .approach-steps article { grid-template-columns: 44px 1fr; gap: 10px 14px; }
  .approach-steps h3 { font-size: 23px; }
  .approach-steps p { grid-column: 2; }

  .impact-media { height: 330px; }
  .people-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .person h3 { font-size: 16px; }
  .avatar { font-size: 23px; }
  .alumni-panel { grid-template-columns: 1fr; }

  .scholarship-grid { grid-template-columns: 1fr; }
  .scholarship-block { min-height: auto; padding: 42px 0; }
  .scholarship-grid { background: transparent; }
  .scholarship-block + .scholarship-block { border-top: 1px solid var(--line); }

  .join-grid { grid-template-columns: 1fr; gap: 26px; }
  .join-grid .button { grid-column: auto; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 420px) {
  .people-grid { grid-template-columns: 1fr; }
  .person > img, .avatar { max-width: 220px; }
}

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