/* ===================================================================
   ORIGINS — Osteopathic Research Initiative for Growth and
   INnovation in Surgery
   Shared stylesheet. All design tokens defined as custom properties.
   Typography: Playfair Display (headings/wordmark) + Source Serif 4
   (body). No sans-serif anywhere — generic `serif` fallback only.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&display=swap');

/* ------------------------------------------------------------------ */
/* Design tokens                                                      */
/* ------------------------------------------------------------------ */
:root {
  /* Palette */
  --blue-primary: #3B6EA5;
  --blue-deep:    #1A2F4A;
  --blue-light:   #EAF0F8;
  --bg-white:     #FFFFFF;
  --bg-offwhite:  #F7F5F1;
  --text-dark:    #1A2F4A;
  --text-body:    #2C3E50;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Layout */
  --nav-height: 62px;
  --maxw: 1180px;
  --maxw-narrow: 880px;

  /* Effects */
  --shadow-card: 0 4px 18px rgba(26, 47, 74, 0.08);
  --shadow-card-hover: 0 14px 38px rgba(26, 47, 74, 0.18);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; font-size: 17.5px; }

body {
  margin: 0;
  padding-top: 0;
  font-family: var(--font-body);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.68;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }

a { color: var(--blue-primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-deep); }

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

ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.55em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--white    { background: var(--bg-white); }
.section--offwhite { background: var(--bg-offwhite); }
.section--deep     { background: var(--blue-deep); color: #fff; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 1rem;
}
.section--deep .eyebrow { color: #9DBBDC; }

.lead { font-size: 1.18rem; }
.center { text-align: center; }
.measure { max-width: 720px; margin-inline: auto; }

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  background: var(--bg-white);
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(26, 47, 74, 0.05);
}
.site-nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 8px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 22px;
  min-height: 58px;
}
.site-nav__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-nav__logo { height: 44px; width: auto; }
.site-nav__wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  line-height: 1;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(11px, 1.2vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav__links a:hover { color: var(--blue-primary); }
.site-nav__links a[aria-current="page"] {
  color: var(--blue-primary);
  border-bottom-color: var(--blue-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* Hero + seal watermark                                               */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.8vw, 52px) 0;
  text-align: center;
}
.hero .eyebrow { font-size: 0.84rem; margin-bottom: 0.85rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; margin-bottom: 0; }
.hero h1 + .lead, .hero .eyebrow + h1 { margin-top: 0; }
.hero .lead { font-size: clamp(1.18rem, 1.9vw, 1.45rem); margin-top: 1.1rem; }
.hero::before {        /* faint seal watermark, 8% opacity */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 120%);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background-image: url('assets/Transparent_logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero--deep::before { background-image: url('assets/White_logo-transparent_background.png'); }
.hero > .container, .hero__inner { position: relative; z-index: 1; }

.hero--offwhite { background: var(--bg-offwhite); }
.hero--white    { background: var(--bg-white); }
.hero--deep     { background: var(--blue-deep); color: #fff; }
.hero--deep h1  { color: #fff; }

.hero__corner-logo {     /* small white logo top-left on dark heroes */
  position: absolute;
  top: 22px;
  left: 28px;
  height: 80px;
  width: auto;
  z-index: 2;
  opacity: 0.92;
}

/* Home hero specifics */
.home-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(32px, 5vw, 64px); }
.home-hero__logo { width: 240px; max-width: 70%; margin: 0 auto 1.6rem; }
.home-hero h1 {
  color: #fff;
  max-width: 20ch;
  margin-inline: auto;
  font-weight: 700;
}
.home-hero__mission {
  font-style: italic;
  color: #E6EEF8;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  max-width: 30ch;
  margin: 0.9rem auto 1.6rem;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
}
.btn--outline-white {
  color: #fff;
  border-color: rgba(255,255,255,0.85);
  background: transparent;
}
.btn--outline-white:hover {
  background: #fff;
  color: var(--blue-deep);
}
.btn--solid-white {
  background: #fff;
  color: var(--blue-primary);
  border-color: #fff;
}
.btn--solid-white:hover {
  background: var(--blue-light);
  color: var(--blue-deep);
  border-color: var(--blue-light);
}
.btn--primary {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
}
.btn--primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}
.btn--outline-blue {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
  background: transparent;
}
.btn--outline-blue:hover {
  background: var(--blue-primary);
  color: #fff;
}
.btn-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Statistics (home)                                                   */
/* ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-primary);
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 22ch;
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Card grid (home preview)                                            */
/* ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pcard {
  background: var(--bg-white);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pcard:hover {
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--blue-deep);
  transform: translateY(-4px);
}
.pcard h3 { margin-bottom: 0.4rem; }
.pcard p { font-size: 0.98rem; color: var(--text-body); flex: 1; }
.pcard__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.pcard__link::after { content: " \2192"; }

/* ------------------------------------------------------------------ */
/* The Problem page                                                    */
/* ------------------------------------------------------------------ */
.pullquote {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  color: var(--blue-primary);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto;
}
.pullquote--wide { max-width: 24ch; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
}
.two-col h3 { color: var(--blue-deep); }
.two-col .col-rule {
  width: 54px; height: 3px; background: var(--blue-primary);
  margin-bottom: 1.1rem; border: 0;
}
.source-note { font-size: 0.86rem; color: #6b7c90; font-style: italic; }

/* ------------------------------------------------------------------ */
/* How It Works — steps + scalpel divider + timeline                  */
/* ------------------------------------------------------------------ */
.step {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0;
}
.step--offwhite { background: var(--bg-offwhite); }
.step--white { background: var(--bg-white); }
.step__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.step__numeral {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: 0.8;
  color: var(--blue-light);
  user-select: none;
  z-index: 0;
}
.step__body { position: relative; z-index: 1; max-width: 60ch; }
.step__body h3 { color: var(--blue-deep); margin-bottom: 0.5rem; }
.step__eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-primary);
}

.scalpel-divider {
  display: block;
  width: min(620px, 86%);
  margin: 0 auto;
  color: var(--blue-primary);
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 2.5rem;
  padding: 0 6px;
}
.timeline__track {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), #7AA0C8);
  border-radius: 4px;
  margin: 70px 0 90px;
}
.timeline__months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  position: absolute;
  inset: 0;
}
.timeline__month {
  position: relative;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--blue-deep);
}
.timeline__month::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 10px; height: 10px;
  transform: translateX(-50%);
  background: #fff;
  border: 3px solid var(--blue-primary);
  border-radius: 50%;
}
.timeline__month span { position: absolute; left: 50%; transform: translateX(-50%); top: 14px; }
.timeline__milestones { display: grid; gap: 14px; margin-top: 1rem; }
.timeline__milestone {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26,47,74,0.1);
}
.timeline__milestone b { font-family: var(--font-head); color: var(--blue-primary); }
.timeline__when { font-family: var(--font-head); font-weight: 600; color: var(--blue-deep); }

/* ------------------------------------------------------------------ */
/* Research areas cards                                                 */
/* ------------------------------------------------------------------ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.area-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 32px 30px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.area-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.area-card__badge {
  position: absolute;
  top: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(59,110,165,0.35);
}
.area-card h3 { color: var(--blue-deep); max-width: 78%; margin-bottom: 0.5rem; }
.area-card p { font-size: 1rem; margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Leadership profiles                                                 */
/* ------------------------------------------------------------------ */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.profile {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 28px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.profile:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.profile__photo {
  position: relative;
  overflow: hidden;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(26,47,74,0.12);
}
.profile__img {           /* real headshot, layered over the initials fallback */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.profile__photo--join { font-size: 2.6rem; line-height: 1; }
.profile h3 { font-size: 1.28rem; margin-bottom: 0.25rem; color: var(--blue-deep); }
.profile__title { font-style: italic; font-size: 0.98rem; margin: 0 0 0.2rem; }
.profile__affil { font-size: 0.86rem; color: #6b7c90; margin: 0 0 0.6rem; }
.profile__role { color: var(--blue-primary); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.7rem; }
.profile__link { font-size: 0.85rem; margin-top: auto; }

/* ------------------------------------------------------------------ */
/* Publications & outcomes                                             */
/* ------------------------------------------------------------------ */
.pub-subhead { color: var(--blue-deep); margin-top: 0; }
.citation {
  border-left: 4px solid var(--blue-primary);
  padding: 6px 0 6px 22px;
  margin-bottom: 22px;
  font-size: 0.98rem;
}
.citation .meta { display: block; font-size: 0.85rem; color: #6b7c90; margin-top: 2px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 1rem;
}
.metric {
  background: var(--bg-white);
  border-top: 4px solid var(--blue-primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  text-align: center;
}
.metric__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--blue-primary);
  line-height: 1;
}
.metric__label { font-size: 0.92rem; margin-top: 0.4rem; color: var(--text-body); }

.cohort-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
  margin-bottom: 24px;
  border-left: 4px solid var(--blue-primary);
}
.cohort-card h3 { color: var(--blue-deep); margin-bottom: 0.4rem; }
.cohort-card ul { margin-bottom: 0; }
.pi-block { margin-bottom: 1rem; }
.pi-block b { font-family: var(--font-head); color: var(--blue-deep); }
.data-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(26,47,74,0.12);
  font-size: 0.96rem;
}
.data-table th { font-family: var(--font-head); color: var(--blue-deep); }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------------ */
/* For PIs — value props + FAQ accordion                              */
/* ------------------------------------------------------------------ */
.value-col h3 { color: var(--blue-deep); }
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.value-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--blue-primary);
}

.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--bg-white);
  border: 1px solid rgba(26,47,74,0.1);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--blue-deep);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--blue-primary);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--blue-primary); }
.faq__answer { padding: 0 26px 22px; font-size: 1rem; }

/* ------------------------------------------------------------------ */
/* Apply — eligibility & outcome cards                                */
/* ------------------------------------------------------------------ */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.icon-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 30px;
  text-align: center;
}
.icon-card__badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 8px 20px rgba(59,110,165,0.32);
}
.icon-card__badge svg { width: 30px; height: 30px; }
.icon-card h3 { font-size: 1.22rem; color: var(--blue-deep); }
.icon-card p { font-size: 0.97rem; margin-bottom: 0; }

.outcome-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.outcome b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.outcome p { font-size: 0.98rem; margin: 0; }

/* ------------------------------------------------------------------ */
/* Contact form                                                        */
/* ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-info h2 { color: var(--blue-deep); }
.contact-info dl { margin: 1.4rem 0 0; }
.contact-info dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}
.contact-info dd { margin: 0 0 1.1rem; font-size: 1.02rem; }

.form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 44px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue-deep);
  margin-bottom: 7px;
}
.field label .req { color: #b3471f; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  padding: 12px 14px;
  border: 1.5px solid rgba(26,47,74,0.22);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(59,110,165,0.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #c8643f; }
.field__error {
  display: none;
  color: #b3471f;
  font-size: 0.84rem;
  margin-top: 5px;
}
.field.is-error .field__error { display: block; }
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: #c8643f; }

.form-error {
  display: none;
  color: #b3471f;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #fbeae3;
  border-left: 4px solid #c8643f;
  border-radius: 6px;
}
.form-error.is-visible { display: block; }

.form-confirm {
  display: none;
  background: var(--blue-light);
  border-left: 4px solid var(--blue-primary);
  border-radius: 8px;
  padding: 22px 24px;
  color: var(--blue-deep);
  font-size: 1.05rem;
}
.form-confirm.is-visible { display: block; animation: fadeUp 0.5s var(--ease) both; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--blue-deep);
  color: #cdd9e8;
  text-align: center;
  padding: 56px 0 0;
}
.site-footer__logo { height: 80px; width: auto; margin: 0 auto 1.1rem; }
.site-footer__name {
  font-family: var(--font-head);
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  max-width: 24ch;
  margin: 0 auto 0.9rem;
  line-height: 1.25;
}
.site-footer__founder {
  font-size: 0.95rem;
  color: #aebfd4;
  max-width: 60ch;
  margin: 0 auto 1.4rem;
}
.site-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  padding: 0;
  margin: 0 auto 2rem;
}
.site-footer__links a { color: #cdd9e8; font-family: var(--font-head); font-size: 0.95rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 28px;
  font-size: 0.84rem;
  color: #8ea3bf;
}

/* ------------------------------------------------------------------ */
/* Page-load fade-in (staggered)                                       */
/* ------------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-seq > * {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
}
.fade-seq > *:nth-child(1) { animation-delay: 0.05s; }
.fade-seq > *:nth-child(2) { animation-delay: 0.18s; }
.fade-seq > *:nth-child(3) { animation-delay: 0.31s; }
.fade-seq > *:nth-child(4) { animation-delay: 0.44s; }
.fade-seq > *:nth-child(5) { animation-delay: 0.57s; }
.fade-seq > *:nth-child(6) { animation-delay: 0.70s; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-height: 60px; }
  .site-nav__logo { height: 42px; }
  .site-nav__wordmark { font-size: 1.1rem; }
  .site-nav__inner { flex-wrap: nowrap; }

  .nav-toggle { display: flex; }
  .site-nav__links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(26,47,74,0.1);
    box-shadow: 0 14px 30px rgba(26,47,74,0.12);
    padding: 8px 28px 18px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .site-nav__links.is-open { transform: translateY(0); }
  .site-nav__links li { width: 100%; }
  .site-nav__links a {
    display: block;
    width: 100%;
    padding: 13px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(26,47,74,0.06);
  }
  .site-nav__links a[aria-current="page"] { border-bottom-color: var(--blue-primary); }

  .stats { grid-template-columns: 1fr; gap: 44px; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .step__inner { grid-template-columns: 1fr; gap: 8px; }
  .step__numeral { font-size: clamp(4.5rem, 22vw, 7rem); }
  .timeline__milestone { grid-template-columns: 1fr; gap: 2px; }
  .timeline__when { font-size: 0.95rem; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .card-grid,
  .area-grid,
  .profile-grid,
  .icon-cards,
  .outcome-row,
  .metric-grid { grid-template-columns: 1fr; }
  .hero__corner-logo { height: 56px; top: 14px; left: 18px; }
  .btn { width: 100%; max-width: 320px; }
  .btn-row { flex-direction: column; align-items: center; }
  .timeline__months { display: none; }
}

/* Hide the desktop month markers gracefully on small screens already handled above */

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-seq > * { opacity: 1; animation: none; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------ */
/* Summer Program cards                                                */
/* ------------------------------------------------------------------ */
.summer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.summer-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.summer-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.summer-card__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  background: #fff;
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
  padding: 26px;
}
.summer-card__img { max-height: 116px; width: auto; }
.summer-card__logotext {
  display: none;            /* shown only if the logo image fails to load */
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--blue-primary);
  text-align: center;
}
.summer-card__body { padding: 26px 30px 30px; }
.summer-card__loc {
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.summer-card h3 { color: var(--blue-deep); margin: 0 0 0.6rem; }
.summer-card p { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Team Members: responsive embeds + meeting cards                     */
/* ------------------------------------------------------------------ */
.embed-frame {
  position: relative;
  width: 100%;
  background: var(--blue-light);
  overflow: hidden;
}
.embed-frame--video { aspect-ratio: 16 / 9; }
.embed-frame--form {
  aspect-ratio: 3 / 4;
  max-width: 740px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.meeting-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.meeting-card__body { padding: 18px 22px 22px; }
.meeting-card h3 { color: var(--blue-deep); font-size: 1.2rem; margin: 0 0 0.2rem; }
.meeting-card__date { color: #6b7c90; font-size: 0.9rem; margin: 0; }

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