/* =============================================================
   BIOMIC PROGRAM 2026 — Stylesheet
   Clean, hand-written CSS. No framework. No build step.
   Organized by section, top-to-bottom matching the page.
   ============================================================= */


/* =============================================================
   1. DESIGN TOKENS
   ============================================================= */
:root {
  /* Brand palette */
  --navy: #10406D;
  --navy-deep: #083F88;
  --red: #E22026;
  --blue-pale: #DCF4FF;
  --white: #FFFFFF;
  --black: #000000;
  --grey-placeholder: #D9D9D9;
  --divider: rgba(255, 255, 255, 0.2);

  /* Gradient stripe between top bar & hero */
  --gradient-stripe: linear-gradient(90deg, #2EB0E6 0%, #28537A 56%, #E22026 100%);

  /* Type */
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 60px);
  --section-pad-y: clamp(56px, 8vw, 120px);

  /* Header height (utility-bar 18px*2 + ~72px logo + 5px stripe). Used by hero. */
  --header-h: 113px;

  /* Radius */
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 24px;

  /* Shadow */
  --shadow-card: 0 4px 16px rgba(16, 64, 109, 0.08);
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }


/* =============================================================
   3. UTILITIES & SHARED COMPONENTS
   ============================================================= */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Button — primary (navy), used throughout for APPLY NOW */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--on-red  { background: var(--navy); color: var(--white); }


/* =============================================================
   4. UTILITY BAR (top header)
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.utility-bar {
  background: var(--white);
  padding: 18px var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.utility-bar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.utility-bar__brand-mark {
  width: auto;
  height: 72px;
  flex-shrink: 0;
}
.utility-bar__brand-divider {
  width: 2px;
  height: 48px;
  background: var(--black);
  flex-shrink: 0;
}
.utility-bar__brand-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.3px;
  color: var(--black);
  text-transform: uppercase;
}
.utility-bar__partners {
  display: flex;
  align-items: center;
  gap: 24px;
}
.utility-bar__partners img { height: 72px; width: auto; }
.utility-bar__partners .divider {
  width: 1px;
  height: 50px;
  background: #CDCDCD;
}


/* =============================================================
   5. GRADIENT STRIPE
   ============================================================= */
.gradient-stripe {
  height: 5px;
  width: 100%;
  background: var(--gradient-stripe);
}


/* =============================================================
   6. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 65px);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero__slide.is-active { opacity: 1; }
/* Dark gradient overlay — left half darker so left-aligned text reads */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(16, 64, 109, 0.54) 10%, rgba(226, 32, 38, 0.34) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--container-pad);
}
.hero__inner { max-width: 780px; }
.hero__title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 4px 4px rgba(0,0,0,0.25);
}
.hero__lead {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 540px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  font-weight: 400;
}


/* =============================================================
   7. ABOUT + PILLARS
   ============================================================= */
.about {
  background: var(--blue-pale);
  padding: var(--section-pad-y) 0;
}
.about__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 45px;
  align-items: center;
}
.about__photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center right;
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #10406D 10%, var(--red) 100%);
  opacity: 0.45;
  pointer-events: none;
}
.about__copy { color: var(--navy); }
.about__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}
/* Only the highlighted phrase is red */
.about__lead .accent { color: var(--red); }
.about__copy p.about__lead {
  font-weight: 600;
  line-height: 1.5;
  font-size: 1.38rem;
}
.about__copy p {
  font-size: 1.14rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: rgb(2, 2, 2);
}

/* Pillars row — first pillar fixed 180px, rest auto so labels size to content */
.pillars {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 180px auto auto auto;
  gap: 24px;
  justify-content: center;
  align-items: start;
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.pillar:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 45px;
  transform: translateY(-50%);
  height: 85px;
  width: 2px;
  background: #CDCDCD;
}
.pillar__icon {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--white);
}
.pillar__icon svg { width: 34px; height: 34px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillars > .pillar > .pillar__label {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #11416E;
  font-weight: 600;
}


/* =============================================================
   8. FUNDING (logo + statement)
   ============================================================= */
.funding {
  position: relative;
  padding: var(--section-pad-y) 0;
  overflow: hidden;
  padding-top: 110px;
}
.funding::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/decorative/hexagon-pattern.png') center/cover no-repeat;
  opacity: 0.65;
  z-index: 0;
}
.funding::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--blue-pale), transparent 60%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
.funding__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.funding__gear {
  width: 36px;
  height: 36px;
  margin: 0 auto 24px;
  color: var(--navy);
  opacity: 0.7;
}
.funding__gear svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; }
.funding__logo {
  max-width: 380px;
  width: 100%;
  margin: 0 auto 36px;
}
.funding__statement {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--red);
  line-height: 1.35;
  margin-bottom: 32px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.funding__detail {
  font-size: clamp(15px, 1.2vw, 17px);
  color: #0D0D0D;
  line-height: 2;
  font-weight: 500;
}


/* =============================================================
   9. THEMES GRID
   ============================================================= */
.themes {
  background: var(--white);
  padding: var(--section-pad-y) 0;
}
.themes__heading {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--red);
  text-align: center;
  margin-bottom: 24px;
}
.themes__intro {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  color: #252525;
  max-width: 960px;
  margin: 0 auto 56px;
  line-height: 1.5;
}
.themes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.theme-tile {
  aspect-ratio: 1 / 1;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  text-align: center;
  transition: transform 200ms ease, background-color 200ms ease;
}
.theme-tile:hover { transform: scale(1.02); background: var(--navy-deep); }
.theme-tile__icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.theme-tile__label {
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}


/* =============================================================
   10. KEY TAKEAWAYS
   ============================================================= */
.takeaways {
  position: relative;
  padding: var(--section-pad-y) 0;
  overflow: hidden;
  color: var(--white);
}
.takeaways::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/photos/key-takeaways-bg.png') center/cover no-repeat;
  z-index: 0;
}
.takeaways::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 64, 109, 0.95) 10%, rgba(226, 32, 38, 0.45) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.takeaways__inner { position: relative; z-index: 2; }

.takeaways__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.takeaways__heading {
  font-size: clamp(32px, 4vw, 46px);
  margin: 0;
}

/* Carousel arrow controls */
.takeaways__nav {
  display: inline-flex;
  gap: 12px;
}
.takeaways__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, border-color 150ms ease;
}
.takeaways__nav-btn:hover {
  background: var(--white);
  color: var(--navy);
}
.takeaways__nav-btn:active { transform: scale(0.94); }
.takeaways__nav-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.takeaways__nav-btn svg { width: 18px; height: 18px; }

/* Horizontal auto-scrolling carousel (JS-driven via requestAnimationFrame).
   The .takeaways__track gets its transform set by script.js. */
.takeaways__carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}
.takeaways__carousel.is-dragging { cursor: grabbing; }
.takeaways__carousel.is-dragging .takeaway { pointer-events: none; }
.takeaways__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.takeaway {
  position: relative;
  flex: 0 0 425px;
  width: 425px;
  padding: 0 24px;
  margin-right: 32px;
  box-sizing: border-box;
}
.takeaway:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--divider);
}
.takeaway__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--white);
}
.takeaway__icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; fill: none; }
.takeaway__icon img,
.takeaway__icon-img { width: 100%; height: 100%; object-fit: contain; }
.takeaway__title {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 12px;
}
.takeaway__copy {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}


/* =============================================================
   11. WHO MUST APPLY (red card)
   ============================================================= */
.apply-card-wrap {
  padding: 0 var(--container-pad);
  margin-top: -60px; /* lifts card to overlap takeaways photo bottom */
  position: relative;
  z-index: 5;
}
.apply-card {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--red);
  border-radius: var(--r-lg);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(226, 32, 38, 0.25);
}
.apply-card__copy {
  padding: 64px 72px;
  position: relative;
  z-index: 2;
}
.apply-card__eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.92;
}
.apply-card__title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.apply-card__detail {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 480px;
}
.apply-card__photo {
  width: 500px;
  min-height: 485px;
  object-fit: cover;
  object-position: left center;
  align-self: end;
  margin-top: 60px;
  margin-bottom: -50px;
}
/* Decorative molecule outline in top-right corner */
.apply-card__molecule {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 160px;
  height: 160px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}
.apply-card__molecule img { width: 100%; height: 100%; object-fit: contain; }


/* =============================================================
   12. SELECTION CRITERIA (bar chart)
   ============================================================= */
.criteria {
  position: relative;
  padding: 95px 0 80px;
  overflow: hidden;
}
.criteria::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(16,64,109,0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
  z-index: 0;
}
.criteria__inner { position: relative; z-index: 1; }
.criteria__head {
  text-align: center;
  margin-bottom: 64px;
}
.criteria__icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  color: var(--navy);
}
.criteria__icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; fill: none; }
.criteria__title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--black);
}
.criteria__chart {
  max-width: 1000px;
  margin: 0 auto;
}
.criteria__bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: end;
  border-bottom: 2px solid var(--navy);
}
.criteria__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.criteria__bar-pct {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1;
}
.criteria__bar-fill {
  width: 100%;
  max-width: 120px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
}
/* Heights — linear, tallest = 30% → 180px */
.criteria__bar[data-pct="10"] .criteria__bar-fill { height: 60px; }
.criteria__bar[data-pct="25"] .criteria__bar-fill { height: 150px; }
.criteria__bar[data-pct="20"] .criteria__bar-fill { height: 120px; }
.criteria__bar[data-pct="30"] .criteria__bar-fill { height: 180px; }
.criteria__bar[data-pct="15"] .criteria__bar-fill { height: 90px; }
.criteria__labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.criteria__bar-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
  padding: 0 4px;
}

/* Mobile-only legend — hidden by default, replaces the chart on small screens */
.criteria__legend { display: none; }
.criteria__legend-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 64, 109, 0.15);
}
.criteria__legend-item:last-child { border-bottom: 0; }
.criteria__legend-pct {
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  min-width: 56px;
  text-align: center;
  letter-spacing: 0.5px;
}
.criteria__legend-text {
  color: var(--navy);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  padding-top: 5px;
}


/* =============================================================
   14. TIMELINE + CTA
   ============================================================= */
.timeline-wrap {
  background-image:
    radial-gradient(circle, rgba(16,64,109,0.12) 1px, transparent 1px),
    linear-gradient(180deg, var(--white) 0%, var(--blue-pale) 100%);
  background-size: 14px 14px, 100% 100%;
  background-repeat: repeat, no-repeat;
  padding-bottom: var(--section-pad-y);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.timeline {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 64, 109, 0.12);
}
.timeline__head {
  background: var(--red);
  color: var(--white);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.timeline__head-icon { width: 44px; height: 44px; color: var(--white); flex-shrink: 0; }
.timeline__head-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; fill: none; }
.timeline__head-icon img { width: 100%; height: 100%; object-fit: contain; }
.timeline__head h2 { font-size: clamp(24px, 2.4vw, 32px); }

.timeline__body {
  background: var(--navy);
  color: var(--white);
}
.timeline__row {
  display: grid;
  grid-template-columns: 80px 160px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 30px 32px;
  border-bottom: 1px solid var(--divider);
}
.timeline__row:last-child { border-bottom: none; }
.timeline__icon { width: 48px; height: 48px; color: var(--white); }
.timeline__icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.4; fill: none; }
.timeline__date {
  text-align: center;
  border-right: 1px solid var(--divider);
  padding-right: 16px;
}
.timeline__date .day {
  display: block;
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1;
}
.timeline__date .month {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.4px;
}
.timeline__event {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
}

.timeline__cta {
  background: var(--red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 32px;
  color: var(--white);
}
.timeline__cta-text {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
}


/* =============================================================
   16. FAQ
   ============================================================= */
.faq {
  background: var(--navy);
  padding: var(--section-pad-y) 0;
  color: var(--white);
}
.faq__inner {
  max-width: 1050px;
  margin: 0 auto;
}
.faq__head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.faq__title {
  font-size: clamp(28px, 3.2vw, 44px);
}
.faq__icon {
  width: 96px; height: 96px;
  flex-shrink: 0;
}
.faq__icon img { width: 100%; height: 100%; object-fit: contain; }

.faq-list { border-top: 1px solid var(--divider); }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8px;
  text-align: left;
  color: var(--white);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  gap: 24px;
  transition: opacity 150ms ease;
}
.faq-item__btn:hover { opacity: 0.85; }
.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transition: transform 250ms ease;
}
.faq-item__icon svg { width: 100%; height: 100%; stroke: var(--white); stroke-width: 2.4; fill: none; }
.faq-item[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }

/* Grid-rows trick: animates between 0fr and 1fr for a true smooth height
   reveal that matches actual content height (no max-height guesswork). */
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[aria-expanded="true"] .faq-item__panel {
  grid-template-rows: 1fr;
}
.faq-item__panel-inner {
  overflow: hidden;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms ease, transform 380ms cubic-bezier(0.4, 0, 0.2, 1), padding 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[aria-expanded="true"] .faq-item__panel-inner {
  padding: 0 8px 24px;
  opacity: 1;
  transform: translateY(0);
}


/* =============================================================
   17. CONTACT (footer CTA)
   ============================================================= */
.contact {
  background: var(--red);
  color: var(--white);
  padding: var(--section-pad-y) 0;
  text-align: center;
}
.contact__title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}
.contact__email {
  display: block;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--white);
}
.contact__email:hover { text-decoration: underline; }


/* =============================================================
   18. RESPONSIVE
   Tablet ≤1023px / large-phone ≤767px / small-phone ≤479px
   ============================================================= */

/* ---------- TABLET (≤1023px) ---------- */
@media (max-width: 1023px) {
  /* Header: keep on one line if it fits, partners shrink */
  .utility-bar { justify-content: center; padding: 14px var(--container-pad); gap: 18px; }
  .utility-bar__brand-mark { height: 60px; }
  .utility-bar__brand-divider { height: 40px; }
  .utility-bar__brand-text { font-size: 15px; }
  .utility-bar__partners { gap: 16px; }
  .utility-bar__partners img { height: 56px; }
  .utility-bar__partners .divider { height: 40px; }

  /* About: stack image over copy */
  .about__row { grid-template-columns: 1fr; gap: 32px; }
  .about__photo img { height: clamp(280px, 48vw, 460px); }

  /* Pillars: 2 columns; hide vertical dividers when wrapping */
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .pillar::before { display: none; }

  /* Themes: 2-col grid */
  .themes__grid { grid-template-columns: repeat(2, 1fr); }

  /* Takeaways: smaller tile width */
  .takeaway { flex-basis: 360px; width: 360px; }

  /* Apply card: stacks; clear desktop's negative margins */
  .apply-card { grid-template-columns: 1fr; }
  .apply-card__copy { padding: 40px 32px; }
  .apply-card__photo {
    width: 100%;
    height: 320px;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    align-self: stretch;
    object-position: center;
  }
  .apply-card__molecule { right: 20px; top: 20px; width: 110px; height: 110px; }

  /* Criteria: tighter chart gaps */
  .criteria__bars,
  .criteria__labels { gap: 12px; }
  .criteria__bar-label { font-size: 12px; }

  /* Timeline: narrower icon/date columns */
  .timeline__row { grid-template-columns: 56px 100px minmax(0, 1fr); padding: 18px 20px; gap: 12px; }
  .timeline__date { padding-right: 8px; }
}

/* ---------- LARGE PHONE / SMALL TABLET (≤767px) ---------- */
@media (max-width: 767px) {
  /* Header wraps: re-estimate height for the hero calc floor */
  :root { --header-h: 170px; }

  /* Unstick header on phones — sticky takes too much vertical real estate when wrapped */
  .site-header { position: static; top: auto; }

  .utility-bar { padding: 12px var(--container-pad); gap: 14px; }
  .utility-bar__brand { gap: 10px; }
  .utility-bar__brand-mark { height: 58px; }
  .utility-bar__brand-divider { height: 34px; }
  .utility-bar__brand-text { font-size: 15px; letter-spacing: 0.2px; }
  .utility-bar__partners { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .utility-bar__partners img { height: 46px; }
  .utility-bar__partners .divider { height: 30px; }

  /* Hero: drop the calc, use a viewport-based floor */
  .hero { min-height: 75vh; }
  .hero__title { margin-bottom: 18px; }
  .hero__lead { font-size: 1.05rem; margin-bottom: 24px; }

  /* About */
  .about__photo img { height: clamp(220px, 60vw, 340px); }
  .about__copy p.about__lead { font-size: 1.18rem; }
  .about__copy p { font-size: 1.02rem; }
  .pillars > .pillar > .pillar__label { font-size: 1.05rem; }

  /* Themes */
  .theme-tile__icon { width: 72px; height: 72px; }
  .theme-tile__label { font-size: 16px; }
  .theme-tile { gap: 12px; padding: 14px; }

  /* Takeaways */
  .takeaway { flex-basis: 300px; width: 300px; padding: 0 18px; }
  .takeaway:not(:first-child)::before { display: none; }
  .takeaway__title { font-size: 22px; }
  .takeaway__copy { font-size: 16px; }
  .takeaways__head { gap: 12px; }
  .takeaways__nav-btn { width: 38px; height: 38px; }
  .takeaways__nav-btn svg { width: 14px; height: 14px; }
  .takeaways__carousel {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  }

  /* Apply card */
  .apply-card-wrap { margin-top: -32px; }
  .apply-card { border-radius: 18px; }
  .apply-card__copy { padding: 32px 22px; }
  .apply-card__title { font-size: 25px; margin-top: 25px; }
  .apply-card__detail { font-size: 15px; margin-bottom: 24px; }
  .apply-card__photo { height: 260px; }
  .apply-card__molecule { width: 90px; height: 90px; right: 14px; top: 14px; opacity: 0.5; }

  /* Funding — tighten the big top padding */
  .funding { padding-top: 64px; }
  .funding__gear { width: 40px; height: 40px; }
  .funding__logo { max-width: 280px; margin-bottom: 24px; }
  .funding__statement { line-height: 1.3; margin-bottom: 22px; }

  /* Criteria — swap vertical chart for stacked legend on phones */
  .criteria { padding: 64px 0 56px; }
  .criteria__chart { display: none; }
  .criteria__legend {
    display: block;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
  }

  /* Timeline */
  .timeline__head { padding: 16px 20px; gap: 12px; }
  .timeline__head-icon { width: 36px; height: 36px; }
  .timeline__row { grid-template-columns: 44px 84px minmax(0, 1fr); padding: 14px 16px; gap: 10px; }
  .timeline__icon { width: 32px; height: 32px; }
  .timeline__date .day { font-size: 22px; }
  .timeline__date .month { font-size: 11px; }
  .timeline__event { font-size: 16px; }
  .timeline__cta { flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 12px; }
  .timeline__cta-text { font-size: 18px; }

  /* FAQ */
  .faq__head { gap: 12px; margin-bottom: 24px; }
  .faq__icon { width: 64px; height: 64px; }
  .faq-item__btn { font-size: 16px; padding: 22px 4px; gap: 16px; }
  .faq-item__icon { width: 24px; height: 24px; }
  .faq-item__panel-inner { padding: 0 4px; }
  .faq-item[aria-expanded="true"] .faq-item__panel-inner { padding: 0 4px 20px; }

  /* Contact */
  .contact__email { word-break: break-word; }
}

/* ---------- SMALL PHONE (≤479px) ---------- */
@media (max-width: 479px) {
  :root { --header-h: 200px; }

  /* Header — even tighter */
  .utility-bar__brand-mark { height: 55px; }
  .utility-bar__brand-divider { height: 30px; }
  .utility-bar__brand-text { font-size: 15px; }
  .utility-bar__partners img { height: 45px; }
  .utility-bar__partners .divider { height: 26px; }

  /* Hero */
  .hero__lead { font-size: 0.98rem; max-width: 100%; }

  /* Pillars: single column on tiny screens */
  .pillars { grid-template-columns: 1fr; gap: 22px; }

  /* Themes — 2-col still, smaller icons */
  .theme-tile__icon { width: 100px; height: 100px; }
  .theme-tile__label { font-size: 16px; }

  /* Takeaways tile fits the screen with minimal mask */
  .takeaway { flex-basis: 280px; width: 280px; padding: 0 14px; margin-right: 25px;}
  .takeaway__title { font-size: 22px; }

  /* Apply card */
  .apply-card-wrap { margin-top: -24px; padding: 0 14px; }
  .apply-card__copy { padding: 28px 20px 15px; }
  .apply-card__photo { height: 260px; object-position: top center; }
  .apply-card__molecule { width: 70px; height: 70px; opacity: 0.65; }
  .apply-card__eyebrow { font-size: 14px; }

  /* Funding */
  .funding { padding-top: 48px; }
  .funding__logo { max-width: 250px; }

  /* Criteria legend slightly more compact at smallest phone width */
  .criteria__legend-pct { min-width: 50px; padding: 5px 10px; font-size: 14px; }
  .criteria__legend-text { font-size: 16px; line-height: 1.25; }

  /* Timeline */
  .timeline__row { grid-template-columns: 36px 70px minmax(0, 1fr); padding: 12px 14px; gap: 8px; }
  .timeline__icon { width: 28px; height: 28px; }
  .timeline__date .day { font-size: 20px; }
  .timeline__event { font-size: 17px; line-height: 1.25; }
  .timeline__heading { font-size: 22px; }

  /* FAQ */
  .faq__icon { width: 52px; height: 52px; }
  .faq-item__btn { font-size: 16px; padding: 18px 2px; gap: 12px; }

  /* Contact */
  .contact__title,
  .contact__email { font-size: 20px; }
}


/* =============================================================
   19. ACCESSIBILITY — reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* JS animation already paused by script.js; allow user scroll */
  .takeaways__carousel { overflow-x: auto; }
}
