/* Design tokens and global reset */
:root {
  --navy: #001432;
  --blue: #0067c9;
  --sky: #d9efff;
  --orange: #f27620;
  --white: #ffffff;
  --ink: #071629;
  --muted: #5c6878;
  --line: rgba(255, 255, 255, 0.24);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f9fc;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Custom cursor used on desktop pointer devices only */
.custom-cursor-ring,
.custom-cursor-dot {
  display: none;
}

@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor select {
    cursor: none;
  }

  .custom-cursor-ring,
  .custom-cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    display: block;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 180ms ease;
    will-change: transform;
  }

  .custom-cursor-ring {
    width: 52px;
    height: 52px;
    border: 0.5px solid var(--orange);
    border-radius: 50%;
  }

  .custom-cursor-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
  }

  body.has-custom-cursor .custom-cursor-ring,
  body.has-custom-cursor .custom-cursor-dot {
    opacity: 1;
  }
}

/* Fixed header navigation */
.site-header {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 10px 30px;
  color: var(--white);
  background: rgba(0, 20, 50, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 20, 50, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

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

.nav-links a,
.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.76);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition:
    background 360ms ease,
    border-color 360ms ease,
    color 420ms ease,
    filter 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.nav-involved span,
.nav-involved::after,
.nav-apply span,
.nav-apply::after {
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-involved span,
.nav-apply span {
  display: block;
}

.nav-involved::after,
.nav-apply::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateY(120%);
}

.nav-involved:hover span,
.nav-involved:focus-visible span,
.nav-apply:hover span,
.nav-apply:focus-visible span {
  transform: translateY(-160%);
}

.nav-involved:hover::after,
.nav-involved:focus-visible::after,
.nav-apply:hover::after,
.nav-apply:focus-visible::after {
  transform: translateY(0);
}

.nav-apply {
  overflow: hidden;
  color: #f2f2f2;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  animation: navApplyPulse 5s ease-out infinite;
}

.nav-apply::after {
  color: var(--white);
}

.nav-apply:hover,
.nav-apply:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

/* Full-screen cohort update */
.countdown-section {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px clamp(22px, 7vw, 110px) 72px;
  color: var(--white);
  background: #031130;
}

.countdown-content {
  width: min(1280px, 100%);
  position: relative;
  z-index: 2;
  display: grid;
  gap: 54px;
}

.countdown-ripples {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.countdown-logos {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.countdown-drifting-logo {
  position: absolute;
  left: var(--logo-x);
  top: var(--logo-y);
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  opacity: 0;
  filter: grayscale(1) brightness(1.8);
  transform: translate(-50%, -50%) rotate(var(--logo-rotation));
  animation: countdownLogoDrift var(--logo-duration) linear forwards;
}

.countdown-ripple {
  position: absolute;
  width: var(--ripple-size);
  height: var(--ripple-size);
  border: 1px solid rgba(217, 239, 255, 0.24);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: countdownRipple var(--ripple-duration) ease-out forwards;
}

.countdown-ripple.is-orange {
  border-color: rgba(242, 118, 32, 0.26);
}

.countdown-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.countdown-heading p {
  margin: 0;
  color: var(--sky);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-announcement {
  width: min(1000px, 100%);
  display: grid;
  justify-items: center;
  gap: 24px;
  margin: 0 auto;
  text-align: center;
}

.decision-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.decision-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(242, 118, 32, 0.7);
}

.decision-announcement h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.decision-announcement > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

@keyframes countdownRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  18% {
    opacity: 0.46;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes countdownLogoDrift {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--logo-rotation));
  }

  14%,
  84% {
    opacity: 0.045;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--logo-dx)), calc(-50% + var(--logo-dy)))
      rotate(calc(var(--logo-rotation) + var(--logo-turn)));
  }
}

/* Hero carousel */
.hero-carousel {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.slide,
.slide img,
.hero-overlay,
.pointer-light {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 7s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 20, 50, 0.92) 0%, rgba(0, 20, 50, 0.58) 44%, rgba(0, 20, 50, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 20, 50, 0.78) 0%, rgba(0, 20, 50, 0.08) 44%, rgba(0, 20, 50, 0.48) 100%);
}

.pointer-light {
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 62%) var(--y, 42%), rgba(242, 118, 32, 0.26), transparent 26rem);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(760px, calc(100% - 44px));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 150px;
  margin-left: clamp(22px, 7vw, 110px);
  color: var(--white);
}

.application-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-status span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242, 118, 32, 0.2);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3rem, 5.25vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  transition:
    background 360ms ease,
    border-color 360ms ease,
    color 420ms ease,
    filter 180ms ease;
}

.primary-action {
  background: var(--orange);
  color: var(--navy);
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ff8a36;
  color: var(--navy);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.primary-action:active,
.secondary-action:active,
.nav-cta:active {
  filter: brightness(0.95);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--white);
}

.slide-story {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: 124px;
  z-index: 6;
  width: min(360px, calc(100% - 44px));
  padding: 20px;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 20, 50, 0.5);
  backdrop-filter: blur(18px);
}

.story-kicker {
  margin: 0 0 10px;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 800;
}

.slide-story h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
}

.slide-story p:last-child {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.carousel-controls {
  position: absolute;
  left: clamp(22px, 7vw, 110px);
  right: clamp(22px, 4vw, 64px);
  bottom: 38px;
  z-index: 7;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.icon-button span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--orange);
}

.progress-fill.is-running {
  animation: fillProgress 6500ms linear forwards;
}

.slide-tabs {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  top: 106px;
  z-index: 7;
  display: flex;
  gap: 8px;
}

.slide-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 20, 50, 0.34);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.slide-tabs button.is-active {
  color: var(--navy);
  border-color: var(--orange);
  background: var(--orange);
}

/* Shared page section spacing and headings */
.approach-section,
.program-section,
.sponsors-section,
.apply-section,
.support-section,
.impact-section {
  padding: clamp(70px, 9vw, 120px) clamp(22px, 6vw, 96px);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.impact-intro h2,
.program-copy h2,
.support-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.impact-section {
  color: var(--navy);
  background: #f7fbff;
}

.impact-intro h2 {
  color: var(--navy);
  font-size: clamp(2.4rem, 6.5vw, 7.5rem);
}

/* Impact metrics and animated horizontal bar */
.metric-board {
  margin-top: clamp(38px, 7vw, 86px);
}

.metric-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d8e2ed;
}

.metric-score {
  min-height: 190px;
  padding: 28px 22px 34px;
  border-right: 1px solid #d8e2ed;
}

.metric-score:last-of-type {
  border-right: 0;
}

.metric-score span {
  display: block;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.2vw, 7rem);
  line-height: 0.9;
  font-weight: 950;
}

.metric-score p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 850;
}

.metric-axis,
.metric-track {
  grid-column: 1 / -1;
}

.metric-axis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d8e2ed;
}

.metric-axis div {
  min-height: 82px;
  padding: 16px 18px;
  border-right: 1px dashed #d8e2ed;
}

.metric-axis div:last-child {
  border-right: 0;
}

.metric-axis span,
.metric-axis strong {
  display: block;
}

.metric-axis span {
  color: var(--muted);
}

.metric-axis strong {
  margin-top: 6px;
  color: var(--navy);
}

.metric-track {
  height: 68px;
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e2ed;
  background: var(--white);
}

.metric-track span,
.metric-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}

.metric-track span {
  left: 0;
  width: var(--fill, 0%);
  transform: scaleX(0);
  transform-origin: left;
  background: transparent;
  transition: transform 3900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-track i {
  left: var(--start);
  width: var(--width);
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(242, 118, 32, 0.16);
  transition: transform 3300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-track i:nth-of-type(odd) {
  background: rgba(242, 118, 32, 0.22);
}

.metric-track i:nth-of-type(2) {
  transition-delay: 80ms;
}

.metric-track i:nth-of-type(3) {
  transition-delay: 150ms;
}

.metric-track i:nth-of-type(4) {
  transition-delay: 220ms;
}

.impact-section.is-visible .metric-track span,
.impact-section.is-visible .metric-track i {
  transform: scaleX(1);
}

/* PEAR approach cards with subtle background image */
.approach-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
}

.approach-section::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(760px, 62%);
  background:
    linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0.2) 100%),
    url("static/images/IMG_0803.webp") center / cover;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 34%, black 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 34%, black 100%);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.approach-section .section-heading,
.approach-grid {
  position: relative;
  z-index: 1;
}

.approach-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
}

.approach-grid span {
  color: var(--orange);
  font-weight: 900;
}

.approach-grid h3 {
  margin: 54px 0 14px;
  color: var(--navy);
  font-size: 1.45rem;
}

.approach-grid p,
.program-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

/* Program overview split layout */
.program-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--navy);
}

.program-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-copy h2,
.program-copy p {
  color: var(--white);
}

.program-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.program-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.program-list span {
  padding: 14px 16px;
  color: var(--white);
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 8px 8px 0;
  font-weight: 800;
}

/* Sponsor logo strip */
.sponsors-section {
  display: grid;
  gap: clamp(18px, 4vw, 34px);
  padding-top: clamp(46px, 6vw, 78px);
  padding-bottom: clamp(46px, 6vw, 78px);
  background: #f7fbff;
}

.sponsors-section .section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1px;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  overflow: hidden;
  background: #dce8f5;
}

.logo-strip img {
  width: 100%;
  height: clamp(170px, 20vw, 250px);
  padding: clamp(28px, 5vw, 58px);
  object-fit: contain;
  background: var(--white);
}

/* Centered external application call-to-action */
.apply-section {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 48vw, 560px);
  text-align: center;
  background: var(--navy);
}

.apply-copy {
  max-width: 760px;
}

.apply-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.apply-update {
  max-width: 600px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.apply-copy .primary-action {
  margin-top: 30px;
  background:
    linear-gradient(var(--navy), var(--navy)) left / 0% 100% no-repeat,
    var(--orange);
  transition:
    background-size 620ms cubic-bezier(0.16, 1, 0.3, 1),
    color 420ms ease,
    filter 180ms ease;
}

.apply-copy .primary-action:hover,
.apply-copy .primary-action:focus-visible {
  background-size: 100% 100%;
  color: var(--orange);
}

/* Sponsor/student/mentor support paths */
.support-section {
  display: grid;
  gap: 26px;
  background: var(--white);
}

.support-section h2 {
  font-size: clamp(2.2rem, 4vw, 4.6rem);
}

.support-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d5e2f0;
  border-bottom: 1px solid #d5e2f0;
}

.support-lane {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--navy);
  border-right: 1px solid #d5e2f0;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.support-lane:last-child {
  border-right: 0;
}

.support-lane:hover,
.support-lane:focus-visible {
  background: #f7fbff;
  transform: translateY(-4px);
}

.support-lane span {
  color: var(--orange);
  font-weight: 900;
}

.support-lane h3 {
  margin: clamp(70px, 9vw, 130px) 0 14px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1;
}

.support-lane p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.support-lane strong {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 7px;
  color: var(--navy);
  font-size: 0.92rem;
}

.support-lane strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--orange);
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.support-lane strong span {
  color: var(--orange);
  transition: transform 420ms ease;
}

.support-lane:hover strong::after,
.support-lane:focus-visible strong::after {
  transform: scaleX(1);
}

.support-lane:hover strong span,
.support-lane:focus-visible strong span {
  transform: translateX(5px);
}

/* Standalone interest form pages */
.form-page {
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(0, 20, 50, 0.94), rgba(0, 20, 50, 0.78)),
    url("static/images/IMG_0809.webp") center / cover fixed;
}

.sponsor-form-page {
  background:
    linear-gradient(120deg, rgba(0, 20, 50, 0.94), rgba(0, 20, 50, 0.74)),
    url("static/images/IMG_0992.webp") center / cover fixed;
}

.student-form-page {
  background:
    linear-gradient(120deg, rgba(0, 20, 50, 0.94), rgba(0, 20, 50, 0.72)),
    url("static/images/IMG_0731.webp") center / cover fixed;
}

.mentor-form-page {
  background:
    linear-gradient(120deg, rgba(0, 20, 50, 0.94), rgba(0, 20, 50, 0.72)),
    url("static/images/IMG_0769.webp") center / cover fixed;
}

.form-header {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 0;
}

.back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--orange);
  font-weight: 850;
}

.form-shell {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0 80px;
}

.form-intro {
  position: sticky;
  top: 28px;
}

.form-intro h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.94;
}

.form-intro p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.interest-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px rgba(0, 20, 50, 0.28);
  backdrop-filter: blur(18px);
}

.interest-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 850;
}

.interest-form input,
.interest-form select,
.interest-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #c8d8e8;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.interest-form textarea {
  resize: vertical;
}

.interest-form input:focus,
.interest-form select:focus,
.interest-form textarea:focus {
  outline: 3px solid rgba(242, 118, 32, 0.28);
  border-color: var(--orange);
}

.full-field,
.interest-form button,
.form-status {
  grid-column: 1 / -1;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  line-height: 1.45;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.interest-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.interest-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status.is-error {
  color: #a43a14;
  font-weight: 800;
}

.form-status.is-success {
  color: #006b4f;
  font-weight: 800;
}

/* Footer and animated pear stage */
.site-footer {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(22px, 6vw, 96px);
  position: relative;
  overflow: visible;
  color: var(--white);
  background: #071629;
}

.site-footer span {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  font-weight: 900;
}

.site-footer p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.footer-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.footer-copy a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 750;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: var(--orange);
}

.footer-pear-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: -90px;
  height: 92px;
  overflow: visible;
  z-index: 2;
  pointer-events: auto;
}

.rolling-pear {
  --pear-x: -90px;
  --pear-y: 0px;
  --pear-rotate: 0deg;
  width: 62px;
  height: 62px;
  position: absolute;
  left: 0;
  top: 28px;
  transform: translate3d(var(--pear-x), var(--pear-y), 0) rotate(var(--pear-rotate));
  transform-origin: 50% 62%;
  pointer-events: auto;
  cursor: none;
  font-size: 54px;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.26));
  will-change: transform;
}

/* Mobile-only application prompt shown after the hero leaves the viewport */
.mobile-application-bar {
  display: none;
}

@keyframes fillProgress {
  to {
    transform: scaleX(1);
  }
}

@keyframes navApplyPulse {
  0%,
  72%,
  100% {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 0 rgba(255, 31, 31, 0);
  }

  80% {
    border-color: rgba(255, 31, 31, 1);
    box-shadow: 0 0 0 5px rgba(255, 31, 31, 0.22), 0 0 18px rgba(255, 31, 31, 0.34);
  }

  90% {
    border-color: rgba(255, 31, 31, 0.42);
    box-shadow: 0 0 0 10px rgba(255, 31, 31, 0);
  }
}

/* Tablet layout adjustments */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    width: min(680px, calc(100% - 44px));
    padding-top: 118px;
    padding-bottom: 230px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 9vw, 5rem);
  }

  .hero-copy {
    max-width: 620px;
    font-size: clamp(0.98rem, 2.5vw, 1.16rem);
  }

  .slide-story {
    display: none;
  }

  .slide-tabs {
    left: 22px;
    right: 22px;
    top: auto;
    bottom: 104px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .impact-section,
  .approach-grid,
  .program-section,
  .sponsors-section,
  .support-section,
  .support-lanes,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .impact-intro {
    position: static;
  }

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

  .metric-score:nth-of-type(2) {
    border-right: 0;
  }

  .metric-score:nth-of-type(n + 3) {
    border-top: 1px solid #d8e2ed;
  }

  .logo-strip {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }
}

/* Short desktop windows need a more compact carousel so controls do not overlap text. */
@media (min-width: 901px) and (max-height: 760px) {
  .hero-content {
    width: min(680px, calc(100% - 44px));
    padding-top: 112px;
    padding-bottom: 120px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 4.6vw, 4.7rem);
  }

  .hero-copy {
    max-width: 560px;
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .slide-story {
    display: none;
  }

  .slide-tabs {
    top: auto;
    bottom: 98px;
  }

  .carousel-controls {
    bottom: 26px;
  }
}

/* Phone layout adjustments */
@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    inset: 10px 10px auto;
  }

  .nav-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .brand span {
    display: none;
  }

  .nav-involved {
    display: none;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 100px;
  }

  .hero-content h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .hero-actions {
    gap: 8px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .slide-story {
    display: none;
  }

  .slide-tabs {
    bottom: 92px;
    overflow: hidden;
  }

  .slide-tabs button {
    flex: 1;
    padding: 0 6px;
    font-size: 0.72rem;
  }

  .carousel-controls {
    left: 16px;
    right: 16px;
    bottom: 24px;
  }

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

  .support-lanes {
    border-bottom: 0;
  }

  .support-lane {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #d5e2f0;
  }

  .support-lane h3 {
    margin-top: 56px;
  }

  .form-header {
    align-items: stretch;
    flex-direction: column;
  }

  .back-link {
    justify-content: center;
  }

  .form-intro h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  .interest-form {
    grid-template-columns: 1fr;
  }

  .countdown-section {
    min-height: 100svh;
    padding: 106px 16px 54px;
  }

  .countdown-content {
    gap: 38px;
  }

  .decision-announcement {
    gap: 20px;
  }

  .decision-announcement h1 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
  }

  .decision-announcement > p {
    max-width: 34rem;
    font-size: 0.96rem;
  }

  .mobile-application-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 14px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 20, 50, 0.96);
    box-shadow: 0 16px 44px rgba(0, 20, 50, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 20px));
    transition:
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-application-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-application-bar > span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-application-bar strong,
  .mobile-application-bar small {
    line-height: 1.1;
  }

  .mobile-application-bar small {
    color: rgba(255, 255, 255, 0.7);
  }

  .mobile-application-bar a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 14px;
    color: var(--navy);
    border-radius: 6px;
    background: var(--orange);
    font-size: 0.86rem;
    font-weight: 900;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
