/* SIRE — Student institute portal (white site-wide) */
:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #000000;
  --text-secondary: #1a1a1a;
  --muted: #4a4a4a;
  --navy: #000000;
  --navy-mid: #1a1a1a;
  --red: #e31e24;
  --red-dark: #c4191f;
  --red-soft: #fde8e9;
  --gold: #c9a227;
  --gold-light: #f5ecd4;
  --teal: #e31e24;
  --teal-soft: #fde8e9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, 0.05);
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 35, 64, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--red);
}

/* Stanford-inspired institutional redesign */
.topbar {
  background: #8c1515;
  border-bottom: 0;
  color: #fff;
}

.topbar-inner {
  min-height: 42px;
  padding: 0;
}

.topbar-brand {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
}

.topbar-brand:hover,
.topbar-right a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar-right {
  color: #fff;
}

.topbar-right span,
.topbar-right a {
  color: #fff;
  font-size: 0.82rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 58px;
}

.brand-logo {
  height: 34px;
  max-width: 225px;
}

.nav {
  gap: 0;
}

.nav a {
  border-radius: 0;
  color: #111;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 1.05rem 0.72rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: transparent;
  color: #8c1515;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.header-search {
  color: #111;
  font-size: 0.9rem;
  font-weight: 800;
}

.stanford-home .site-header {
  position: sticky;
}

.stanford-home .btn-primary,
.big-red-link {
  background: #8c1515;
  color: #fff;
  box-shadow: none;
}

.stanford-home .btn-primary:hover,
.big-red-link:hover {
  background: #651010;
  color: #fff;
}

.stanford-hero {
  position: relative;
  min-height: calc(100svh - 100px);
  overflow: hidden;
  background: #111;
  display: grid;
  align-items: end;
}

.hero-video,
.hero-video video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  background: #111;
}

.hero-video video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  opacity: 0.58;
  transform: scale(1.18);
  pointer-events: none;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.12), transparent 35%);
  z-index: 1;
}

.stanford-wordmark {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 18vw, 13rem);
  font-weight: 800;
  line-height: 0.82;
  text-align: center;
  text-shadow: 0 7px 30px rgba(0, 0, 0, 0.55);
  padding-bottom: 5rem;
}

.explore-strip {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  background: #8c1515;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  padding: 0.9rem 1rem;
  text-align: center;
}

.explore-strip:hover {
  background: #651010;
  color: #fff;
}

.narrow {
  max-width: 980px;
}

.mission-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}

.mission-section h1,
.stanford-section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}

.mission-section p {
  color: #171717;
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  margin: 1.35rem auto 2rem;
  max-width: 880px;
}

.big-red-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.stanford-section-head {
  margin: 0 auto 2.2rem;
  text-align: center;
}

.stanford-section-head p {
  color: #333;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  margin: 0.8rem auto 0;
  max-width: 760px;
}

.news-section,
.research-section,
.events-preview {
  background: #f4f4f4;
  border-block: 1px solid #ddd;
}

.stanford-news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.6rem;
}

.stanford-news-grid article {
  background: #fff;
  border-top: 5px solid #8c1515;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
}

.stanford-news-grid article:not(.feature-card) {
  padding: 0 1rem 1.15rem;
}

.stanford-news-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card {
  grid-row: span 2;
}

.feature-card .meta,
.feature-card h3 {
  padding-inline: 1.15rem;
}

.stanford-news-grid .meta,
.event-row .meta {
  color: #8c1515;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 1rem 0 0.35rem;
  text-transform: uppercase;
}

.stanford-news-grid h3,
.three-column h3,
.event-row h3,
.admission-copy h3 {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.center-action {
  margin: 2.25rem 0 0;
  text-align: center;
}

.academics-section,
.campus-life-section,
.admission-section {
  background: #fff;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.three-column article {
  min-width: 0;
}

.three-column p,
.admission-copy p {
  color: #333;
  margin: 0 0 0.85rem;
}

.three-column a,
.school-list a {
  color: #8c1515;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.school-list {
  border-top: 1px solid #d8d8d8;
  margin-top: 2.7rem;
  padding-top: 2rem;
  text-align: center;
}

.school-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: 0;
}

.school-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: center;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.profile-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 0;
  background: #2f2424;
  color: #fff;
}

.profile-band img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.profile-quote {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.profile-quote p {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.18;
  margin: 0 0 1.35rem;
}

.profile-quote h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}

.profile-quote span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.2rem;
}

.profile-quote a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.impact-stats {
  border-block: 1px solid #cfcfcf;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.impact-stats div {
  padding: 1.5rem 1rem;
  text-align: center;
}

.impact-stats strong {
  display: block;
  color: #8c1515;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1;
}

.impact-stats span {
  color: #111;
  display: block;
  font-weight: 800;
  margin-top: 0.45rem;
}

.image-columns img {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 100%;
}

.event-row {
  display: grid;
  gap: 1rem;
}

.event-row article {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 90px 1fr;
  padding: 1.15rem;
}

.event-row time {
  border: 1px solid #bbb;
  color: #8c1515;
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  min-height: 82px;
  place-items: center;
}

.event-row time span {
  background: #8c1515;
  color: #fff;
  display: block;
  font-family: var(--font);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.admission-copy {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
  .stanford-news-grid,
  .three-column,
  .profile-band,
  .admission-copy {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-row: auto;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .topbar-right span,
  .header-search,
  .header-cta .btn-ghost {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .stanford-hero {
    min-height: 72svh;
  }

  .hero-video video {
    transform: scale(1.65);
  }

  .stanford-wordmark {
    padding-bottom: 4.5rem;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .event-row article {
    grid-template-columns: 72px 1fr;
  }
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Top utility bar —— */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-badge {
  background: var(--gold-light);
  color: #7c5e10;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-right a {
  color: var(--muted);
  font-weight: 600;
}

.topbar-right a:hover {
  color: var(--navy);
}

/* —— Main header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 36px;
    max-width: 200px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-subtle);
  color: var(--navy);
}

.nav a[aria-current="page"] {
  background: var(--red);
  color: var(--white);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 1024px) {
  .header-cta .btn-ghost {
    display: none;
  }
}

.site-header .wrap.header-inner,
.site-header .header-inner {
  position: relative;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 0.65rem 0;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: block;
    order: 3;
    margin-left: auto;
  }

  .header-cta {
    order: 2;
  }

  .brand {
    order: 1;
    flex: 1;
    min-width: 0;
  }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
  }

  .topbar-inner {
    font-size: 0.72rem;
  }

  .topbar-left span:not(.topbar-badge) {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(227, 30, 36, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.btn-gold {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-gold:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

/* —— Hero (home & key pages) —— */
.hero {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(55%, 640px);
  height: 100%;
  background:
    linear-gradient(105deg, transparent 40%, rgba(201, 162, 39, 0.06) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 28px,
      rgba(12, 35, 64, 0.03) 28px,
      rgba(12, 35, 64, 0.03) 29px
    );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.15rem;
  color: var(--text);
  max-width: 14ch;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 0 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, var(--navy) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
}

.hero-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.stat {
  text-align: center;
  padding: 1.1rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.trust-strip span {
  color: var(--text);
  font-weight: 700;
}

/* —— Hero image carousel —— */
.hero-below {
  padding-bottom: 2rem;
}

.hero-below .trust-strip {
  margin-top: 0;
  justify-content: center;
  text-align: center;
}

.hero-carousel-wrap {
  margin-top: 1.25rem;
}

.hero-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0f0f0;
  aspect-ratio: 21 / 9;
  max-height: 420px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .hero-carousel {
    aspect-ratio: 16 / 10;
    max-height: 280px;
  }
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--red);
  color: #fff;
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.carousel-dots {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--red);
  width: 22px;
  border-radius: 4px;
}

.hero-quick-section {
  padding: 1.75rem 0 0;
  background: var(--white);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 2rem;
  }

  .hero::before {
    width: 100%;
    opacity: 0.5;
  }

  .hero h1 {
    max-width: none;
  }
}

/* —— Page header (inner pages) —— */
.page-title {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.page-title .breadcrumb {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-title .breadcrumb a {
  color: var(--teal);
}

.page-title h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.65rem;
}

.page-title p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 58ch;
  font-size: 1.05rem;
}

.page-title-bar {
  height: 4px;
  width: 64px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* —— Sections —— */
section {
  padding: 3.5rem 0;
  background: var(--white);
}

section.alt {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.98rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.section-head-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  white-space: nowrap;
}

.section-head-link:hover {
  color: var(--teal);
}

/* —— Cards —— */
.grid {
  display: grid;
  gap: 1.35rem;
}

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

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

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.card .meta {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.course-card {
  position: relative;
  overflow: hidden;
  padding-top: 1.75rem;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #000000);
}

.course-card h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
}

.course-card .course-code {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid rgba(13, 110, 110, 0.15);
}

/* —— Program highlights —— */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.highlight {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}

.highlight strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.35;
}

/* —— CTA band (still white) —— */
.cta-band {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 0;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 42ch;
  color: var(--muted);
}

.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Quick links row —— */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quick-link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.quick-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.quick-link strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.quick-link span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}

/* —— Articles —— */
.article-group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  font-weight: 800;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.article-group:first-child h3 {
  margin-top: 0;
}

.article-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.article-item:last-child {
  border-bottom: 0;
}

.article-item time {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.article-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: var(--navy);
}

/* —— Forms —— */
.form-panel {
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.phone-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

/* —— Prose —— */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--display);
  color: var(--navy);
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.prose h3 {
  color: var(--navy);
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

/* —— Footer: WHITE —— */
.site-footer {
  margin-top: 0;
  padding: 3.5rem 0 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  line-height: 1.65;
  max-width: 32ch;
}

.footer-brand .brand {
  margin-bottom: 0.25rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* —— Utilities —— */
.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.outcomes {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.outcomes li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.outcomes li:last-child {
  border-bottom: 0;
}

.outcomes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.legal-page pre.legal {
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Founder cards */
.founder-grid .card {
  text-align: center;
}

.founder-grid .card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.media-band {
  background: #fff;
  padding: 1.5rem 0 0;
}

.media-band + section {
  padding-top: 2.5rem;
}

.media-band img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1rem;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

/* Final institutional header overrides */
.topbar {
  background: #8c1515;
  border-bottom: 0;
  color: #fff;
}

.topbar-inner {
  min-height: 42px;
  padding: 0;
}

.topbar-left {
  display: none;
}

.topbar-brand {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
}

.topbar-brand:hover,
.topbar-right a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar-right,
.topbar-right a,
.topbar-right span {
  color: #fff;
}

.topbar-right span {
  font-weight: 600;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

.header-inner {
  min-height: 58px;
}

.brand-logo {
  height: 34px;
  max-width: 225px;
}

.nav {
  gap: 0;
}

.nav a {
  border-radius: 0;
  color: #111;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 1.05rem 0.72rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: transparent;
  color: #8c1515;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.header-search {
  color: #111;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    background: #fff;
  }
}

@media (max-width: 700px) {
  .topbar-right span,
  .header-search,
  .header-cta .btn-ghost {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Final Stanford-style homepage polish */
.stanford-home {
  --stanford-red: #8c1515;
  --stanford-dark: #2e1f1f;
  --stanford-soft: #f4f4f4;
}

.stanford-home section {
  padding: clamp(3.75rem, 7vw, 6.5rem) 0;
}

.stanford-home .site-header {
  position: sticky;
  top: 0;
}

.stanford-home .topbar {
  background: var(--stanford-red);
  border: 0;
  color: #fff;
}

.stanford-home .topbar-inner {
  min-height: 42px;
  padding: 0;
}

.stanford-home .topbar-brand {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.stanford-home .site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

.stanford-home .header-inner {
  min-height: 58px;
}

.stanford-home .brand-logo {
  height: 34px;
  max-width: 225px;
}

.stanford-home .nav a {
  border-radius: 0;
  color: #111;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 1.05rem 0.72rem;
}

.stanford-home .nav a:hover,
.stanford-home .nav a[aria-current="page"] {
  background: transparent;
  color: var(--stanford-red);
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.stanford-hero {
  position: relative;
  min-height: calc(100svh - 100px);
  overflow: hidden;
  background: #111;
  display: grid;
  align-items: end;
  padding: 0;
}

.hero-video,
.hero-video video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  background: #111;
}

.hero-video video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  opacity: 0.62;
  pointer-events: none;
  transform: scale(1.18);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.64)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.stanford-wordmark {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 18vw, 13.5rem);
  font-weight: 800;
  line-height: 0.82;
  padding-bottom: 5rem;
  text-align: center;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.58);
}

.explore-strip {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  background: var(--stanford-red);
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  padding: 0.9rem 1rem;
  text-align: center;
}

.explore-strip:hover,
.big-red-link:hover,
.stanford-home .btn-primary:hover {
  background: #651010;
  color: #fff;
}

.narrow {
  max-width: 980px;
}

.mission-section {
  text-align: center;
}

.mission-section h1,
.stanford-section-head h2 {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}

.mission-section p {
  color: #171717;
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  margin: 1.35rem auto 2rem;
  max-width: 900px;
}

.big-red-link,
.stanford-home .btn-primary {
  background: var(--stanford-red);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.stanford-section-head {
  margin: 0 auto 2.2rem;
  text-align: center;
}

.stanford-section-head p {
  color: #333;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  margin: 0.8rem auto 0;
  max-width: 780px;
}

.news-section,
.research-section,
.events-preview {
  background: var(--stanford-soft);
  border-block: 1px solid #ddd;
}

.stanford-news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.6rem;
}

.stanford-news-grid article {
  background: #fff;
  border-top: 5px solid var(--stanford-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  min-width: 0;
}

.stanford-news-grid article:not(.feature-card) {
  padding: 0 1rem 1.15rem;
}

.stanford-news-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card {
  grid-row: span 2;
}

.feature-card .meta,
.feature-card h3 {
  padding-inline: 1.15rem;
}

.stanford-news-grid .meta,
.event-row .meta {
  color: var(--stanford-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 1rem 0 0.35rem;
  text-transform: uppercase;
}

.stanford-news-grid h3,
.three-column h3,
.event-row h3,
.admission-copy h3 {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.center-action {
  margin: 2.25rem 0 0;
  text-align: center;
}

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

.three-column article {
  min-width: 0;
}

.three-column p,
.admission-copy p {
  color: #333;
  margin: 0 0 0.85rem;
}

.three-column a,
.school-list a {
  color: var(--stanford-red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.school-list {
  border-top: 1px solid #d8d8d8;
  margin-top: 2.7rem;
  padding-top: 2rem;
  text-align: center;
}

.school-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: 0;
}

.school-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: center;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.profile-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 0;
  background: var(--stanford-dark);
  color: #fff;
}

.profile-band-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.profile-band img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.profile-quote {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.profile-quote p {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.18;
  margin: 0 0 1.35rem;
}

.profile-quote h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}

.profile-quote span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.2rem;
}

.profile-quote a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.impact-stats {
  border-block: 1px solid #cfcfcf;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.impact-stats div {
  padding: 1.5rem 1rem;
  text-align: center;
}

.impact-stats strong {
  display: block;
  color: var(--stanford-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1;
}

.impact-stats span {
  color: #111;
  display: block;
  font-weight: 800;
  margin-top: 0.45rem;
}

.image-columns img {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 100%;
}

.standard-section {
  background: #fff;
}

.event-row {
  display: grid;
  gap: 1rem;
}

.event-row article {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 90px 1fr;
  padding: 1.15rem;
}

.event-row time {
  border: 1px solid #bbb;
  color: var(--stanford-red);
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  min-height: 82px;
  place-items: center;
}

.event-row time span {
  background: var(--stanford-red);
  color: #fff;
  display: block;
  font-family: var(--font);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.admission-copy {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
  .stanford-news-grid,
  .three-column,
  .profile-band,
  .profile-band-reverse,
  .admission-copy {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-row: auto;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .stanford-hero {
    min-height: 72svh;
  }

  .hero-video video {
    transform: scale(1.65);
  }

  .stanford-wordmark {
    padding-bottom: 4.5rem;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .event-row article {
    grid-template-columns: 72px 1fr;
  }
}

/* Client polish: no top-title, smaller hero mark, and no video controls overlay */
.stanford-home .topbar-inner {
  justify-content: flex-end;
}

.hero-video video::-webkit-media-controls,
.hero-video video::-webkit-media-controls-panel,
.hero-video video::-webkit-media-controls-start-playback-button,
.hero-video video::-webkit-media-controls-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.stanford-wordmark {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  padding-bottom: 4.15rem;
}

@media (max-width: 700px) {
  .stanford-home .topbar-inner {
    justify-content: center;
  }

  .stanford-wordmark {
    font-size: clamp(2.35rem, 16vw, 4.4rem);
    padding-bottom: 4rem;
  }
}

/* Premium inner-page revamp */
body:not(.stanford-home) {
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 520px, #f7f7f5 520px, #ffffff 100%);
  color: #151515;
}

body:not(.stanford-home) .topbar {
  background: #8c1515;
  border: 0;
}

body:not(.stanford-home) .topbar-inner {
  justify-content: flex-end;
  min-height: 38px;
  padding: 0;
}

body:not(.stanford-home) .site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body:not(.stanford-home) .nav a {
  border-radius: 0;
  color: #151515;
  font-weight: 800;
}

body:not(.stanford-home) .nav a:hover,
body:not(.stanford-home) .nav a[aria-current="page"] {
  background: transparent;
  color: #8c1515;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

body:not(.stanford-home) .btn-primary {
  background: #8c1515;
  border-radius: 0;
  box-shadow: none;
}

body:not(.stanford-home) .btn-primary:hover {
  background: #651010;
}

body:not(.stanford-home) .btn-ghost {
  border-radius: 0;
  border-color: #b8b8b8;
}

body:not(.stanford-home) .page-title {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, #151515 0%, #302525 52%, #8c1515 100%);
  border: 0;
  color: #fff;
  padding: clamp(3.25rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

body:not(.stanford-home) .page-title::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: #8c1515;
}

body:not(.stanford-home) .page-title .wrap {
  position: relative;
  z-index: 1;
}

body:not(.stanford-home) .page-title .breadcrumb,
body:not(.stanford-home) .page-title .breadcrumb a {
  color: rgba(255, 255, 255, 0.74);
}

body:not(.stanford-home) .page-title-bar {
  background: #fff;
  border-radius: 0;
  opacity: 0.9;
}

body:not(.stanford-home) .page-title h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 860px;
}

body:not(.stanford-home) .page-title p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  max-width: 760px;
}

body:not(.stanford-home) .page-title .course-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #8c1515;
  font-weight: 900;
  min-height: 38px;
  padding: 0.25rem 0.8rem;
  margin: 0 0 1rem;
}

body:not(.stanford-home) section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

body:not(.stanford-home) .media-band {
  background: #f7f7f5;
  padding: 0;
}

body:not(.stanford-home) .media-band .wrap {
  width: min(100% - 2rem, 1280px);
}

body:not(.stanford-home) .media-band img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(-2.5rem);
}

body:not(.stanford-home) .media-band + section {
  padding-top: 1rem;
}

body:not(.stanford-home) .card,
body:not(.stanford-home) .contact-info-card,
body:not(.stanford-home) .form-panel,
body:not(.stanford-home) .cta-band {
  border: 1px solid #deded8;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

body:not(.stanford-home) .card {
  background: #fff;
}

body:not(.stanford-home) .grid .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body:not(.stanford-home) .grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}

body:not(.stanford-home) .card h3,
body:not(.stanford-home) .article-group h3,
body:not(.stanford-home) .section-head h2,
body:not(.stanford-home) .prose h2,
body:not(.stanford-home) .cta-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

body:not(.stanford-home) .prose {
  max-width: 1040px;
}

body:not(.stanford-home) .prose h2 {
  border-top: 1px solid #d9d9d4;
  color: #111;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  margin-top: 2.6rem;
  padding-top: 2rem;
}

body:not(.stanford-home) .prose h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

body:not(.stanford-home) .prose p,
body:not(.stanford-home) .prose li,
body:not(.stanford-home) .card p {
  color: #333;
}

body:not(.stanford-home) .highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body:not(.stanford-home) .highlight {
  background: #fff;
  border: 1px solid #deded8;
  border-left: 5px solid #8c1515;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

body:not(.stanford-home) .course-card {
  position: relative;
  overflow: hidden;
  padding-top: 1.75rem;
}

body:not(.stanford-home) .course-card::before {
  content: "";
  display: block;
  height: 7px;
  background: #8c1515;
  position: absolute;
  inset: 0 0 auto;
}

.course-card-img {
  width: calc(100% + 3rem);
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -1.75rem -1.5rem 1.25rem;
}

.course-data {
  border-top: 1px solid #e3dfdc;
  display: grid;
  gap: 0.75rem 1.25rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
}

.course-data h4 {
  color: #8c1515;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.course-data ul {
  margin: 0;
  padding-left: 1.05rem;
}

.course-data li {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.28rem 0;
}

.program-detail {
  background: #fff;
}

.program-detail .detail-block {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.program-detail .detail-block + .detail-block {
  border-top: 1px solid #e6e0dc;
}

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

.slot-card,
.module-card {
  background: #fff;
  border: 1px solid #deded8;
  box-shadow: 0 16px 34px rgba(24, 20, 18, 0.06);
}

.slot-card {
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.slot-card dl {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.slot-card div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.slot-card dt {
  color: #727682;
  font-size: 1rem;
}

.slot-card dd {
  color: #252a35;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.slot-card dd.accent {
  color: #d7332c;
  font-weight: 700;
}

.slot-note {
  color: #727682;
  font-size: 0.92rem;
  margin: 1rem 0 0;
}

.module-list {
  display: grid;
  gap: 1rem;
}

.module-card {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.module-kicker {
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
}

.module-card h3 {
  color: #686868;
  font-family: inherit;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.module-card p {
  margin: 0;
}

.detail-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.detail-list li {
  align-items: start;
  color: #666;
  display: grid;
  font-size: 1.08rem;
  gap: 0.75rem;
  grid-template-columns: auto 1fr;
  line-height: 1.6;
  list-style: none;
}

.detail-list li::before {
  background: #d7332c;
  border-radius: 999px;
  content: "";
  height: 0.45rem;
  margin-top: 0.62rem;
  width: 0.45rem;
}

body:not(.stanford-home) .pill {
  background: #f3f0ee;
  border: 1px solid #ded8d3;
  border-radius: 0;
  color: #2d2422;
}

body:not(.stanford-home) .article-group {
  margin-bottom: 2.4rem;
}

body:not(.stanford-home) .article-group h3 {
  color: #111;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin-bottom: 1rem;
}

body:not(.stanford-home) .article-item {
  border-bottom: 1px solid #e2e2dc;
  padding: 1.4rem;
}

body:not(.stanford-home) .article-item:last-child {
  border-bottom: 0;
}

body:not(.stanford-home) .article-item time,
body:not(.stanford-home) .meta,
body:not(.stanford-home) .section-label,
body:not(.stanford-home) .course-code {
  color: #8c1515;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body:not(.stanford-home) .form-panel {
  background: #fff;
  padding: clamp(1.4rem, 3vw, 2rem);
}

body:not(.stanford-home) input,
body:not(.stanford-home) textarea,
body:not(.stanford-home) select {
  border-radius: 0;
  border-color: #cbc8c3;
}

body:not(.stanford-home) input:focus,
body:not(.stanford-home) textarea:focus,
body:not(.stanford-home) select:focus {
  border-color: #8c1515;
  box-shadow: 0 0 0 3px rgba(140, 21, 21, 0.12);
  outline: none;
}

body:not(.stanford-home) .gallery-grid {
  gap: 1rem;
}

body:not(.stanford-home) .gallery-grid img,
body:not(.stanford-home) .founder-photo {
  border: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

body:not(.stanford-home) .site-footer {
  margin-top: 0;
}

.page-cta {
  background: #171313;
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.page-cta-inner {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
}

.page-cta h2 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.page-cta p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
  max-width: 680px;
}

.page-cta .section-label {
  color: #efb4b4;
  margin-bottom: 0.5rem;
}

.page-cta .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
}

@media (max-width: 900px) {
  body:not(.stanford-home) .media-band img {
    transform: none;
  }

  body:not(.stanford-home) .media-band + section {
    padding-top: 3rem;
  }

  body:not(.stanford-home) .highlights {
    grid-template-columns: 1fr;
  }

  .page-cta-inner {
    grid-template-columns: 1fr;
  }

  .course-data {
    grid-template-columns: 1fr;
  }

  .slot-grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }
}
