/* Landing page: split hero + course demo animation */

.hero-split,
.course-demo {
  /* 6 steps: last check ~6s; congrats 62%–92% = ~3s hold, fade 92%–96%, clear by 10s reset */
  --hero-demo-cycle: 10s;
  --hero-demo-stagger: 0.8s;
}

/* Pill nav hovers over hero, not above a blank strip */
body.landing-page,
body:has(.hero-split),
body:has(.page-hero) {
  padding-top: 0;
  min-height: 100vh;
}

body.landing-page.home-page {
  background: #fff;
}

.hero-split {
  /* Circular-ish bottom arc: span ≈ width²/(8×depth); tuned between flat 9999px and pinched 50% */
  --hero-curve-depth: clamp(3.5rem, 6.5vw, 5.5rem);
  --hero-curve-span: max(52rem, calc(50vw + 28rem));
  --hero-viewport-peek: clamp(2.75rem, 5.5vh, 4.25rem);
  color: var(--f3-white);
  min-height: calc(100vh - var(--hero-viewport-peek));
  min-height: calc(100svh - var(--hero-viewport-peek));
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: max(calc(var(--f3-nav-offset) + 1.25rem), 5.5rem) 1.25rem clamp(2rem, 4vh, 3.25rem);
  margin: 0 0 calc(var(--hero-curve-depth) * -0.55);
  overflow: hidden;
  width: 100%;
  max-width: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
  background: transparent;
  isolation: isolate;
}

.hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 88% 12%, rgba(26, 188, 156, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 75% 55% at 8% 92%, rgba(46, 134, 193, 0.28) 0%, transparent 52%),
    linear-gradient(
      165deg,
      rgba(26, 82, 118, 0.88) 0%,
      rgba(21, 67, 96, 0.72) 36%,
      rgba(30, 107, 138, 0.62) 62%,
      rgba(26, 188, 156, 0.55) 100%
    );
  border-radius: 0 0 var(--hero-curve-span) var(--hero-curve-span) / 0 0 var(--hero-curve-depth) var(--hero-curve-depth);
}

.hero-split::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(245, 250, 253, 0.12) 0%, transparent 72%);
  border-radius: 0 0 var(--hero-curve-span) var(--hero-curve-span) / 0 0 var(--hero-curve-depth) var(--hero-curve-depth);
}

.hero-split-inner {
  width: 100%;
  max-width: var(--f3-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-split {
    --hero-viewport-peek: clamp(2rem, 4vh, 3rem);
    align-items: flex-start;
    padding-top: max(calc(var(--f3-nav-offset) + 0.75rem), 5rem);
  }
  .hero-split-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-copy .hero-actions {
    justify-content: flex-start;
  }
  .home-page .hero-media {
    margin-inline: auto;
    width: min(100%, 560px);
    justify-self: center;
  }
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy .hero-sub {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  opacity: 0.95;
}

.gradient-text {
  background: linear-gradient(90deg, #5dffe8, var(--f3-teal), #7bed9f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy .tagline {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero-copy .tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}

.hero-flow {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 1rem;
}

.hero-flow span {
  opacity: 0.6;
  margin: 0 0.35rem;
}

/* Course progress demo card */
.course-demo {
  background: var(--f3-white);
  border-radius: 32px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  color: var(--f3-text);
  min-height: 380px;
  position: relative;
  z-index: 2;
}

.course-demo-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--f3-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--f3-light);
  opacity: 0.45;
  transform: translateX(0);
}

.demo-step:last-of-type {
  border-bottom: none;
}

.demo-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #c5d9e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  background: var(--f3-pale);
}

.demo-step-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--f3-navy);
}

.demo-step-bar {
  height: 4px;
  background: var(--f3-light);
  border-radius: 2px;
  width: 48px;
  overflow: hidden;
}

.demo-step-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--f3-teal);
  border-radius: 2px;
}

.course-demo > .demo-step:nth-child(2) { animation: stepActivate var(--hero-demo-cycle) ease-in-out infinite; }
.course-demo > .demo-step:nth-child(3) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 1) infinite; }
.course-demo > .demo-step:nth-child(4) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 2) infinite; }
.course-demo > .demo-step:nth-child(5) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 3) infinite; }
.course-demo > .demo-step:nth-child(6) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 4) infinite; }
.course-demo > .demo-step:nth-child(7) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 5) infinite; }

.course-demo > .demo-step:nth-child(2) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out infinite; }
.course-demo > .demo-step:nth-child(3) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 1) infinite; }
.course-demo > .demo-step:nth-child(4) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 2) infinite; }
.course-demo > .demo-step:nth-child(5) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 3) infinite; }
.course-demo > .demo-step:nth-child(6) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 4) infinite; }
.course-demo > .demo-step:nth-child(7) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 5) infinite; }

.course-demo > .demo-step:nth-child(2) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out infinite; }
.course-demo > .demo-step:nth-child(3) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 1) infinite; }
.course-demo > .demo-step:nth-child(4) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 2) infinite; }
.course-demo > .demo-step:nth-child(5) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 3) infinite; }
.course-demo > .demo-step:nth-child(6) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 4) infinite; }
.course-demo > .demo-step:nth-child(7) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 5) infinite; }

@keyframes stepActivate {
  0%, 12% { opacity: 0.45; }
  16%, 28% { opacity: 1; transform: translateX(4px); }
  32%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes barFill {
  0%, 14% { width: 0%; }
  20%, 100% { width: 100%; }
}

@keyframes iconCheck {
  0%, 16% {
    border-color: #c5d9e8;
    background: var(--f3-pale);
    color: transparent;
  }
  20%, 100% {
    border-color: var(--f3-teal);
    background: #d4f5ef;
    color: var(--f3-navy);
  }
}

.demo-step .demo-step-icon::after { content: "\2713"; }

.demo-congrats {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.5rem 1.5rem 58px;
  opacity: 0;
  pointer-events: none;
  animation: congratsShow var(--hero-demo-cycle) ease-in-out infinite;
}

.demo-congrats-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--f3-teal), #16a085);
  color: white;
  font-size: 2.25rem;
  line-height: 72px;
  margin-bottom: 1rem;
  transform: scale(0);
  animation: checkPop var(--hero-demo-cycle) ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(26, 188, 156, 0.45);
}

.demo-congrats h3 {
  margin: 0 0 0.35rem;
  color: var(--f3-navy);
  font-size: 1.1rem;
}

.demo-congrats p {
  margin: 0;
  color: var(--f3-muted);
  font-size: 0.9rem;
}

@keyframes congratsShow {
  0%, 58% { opacity: 0; }
  62%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes checkPop {
  0%, 59% { transform: scale(0); }
  63% { transform: scale(1.15); }
  68%, 92% { transform: scale(1); }
  96%, 100% { transform: scale(0); }
}

/* Hero results walkthrough (landing page) */
.hero-results-demo {
  --hero-results-cycle: 24s;
  background: var(--f3-white);
  border-radius: var(--f3-radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--f3-text);
  min-height: 380px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  position: relative;
}

.hero-results-demo__stage {
  position: relative;
  height: 100%;
  min-height: 380px;
}

.hero-results-demo__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 1.15rem 1.15rem 1.1rem;
  opacity: 0;
  visibility: hidden;
  animation-duration: var(--hero-results-cycle);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-results-demo__slide:nth-child(1) { animation-name: heroResultSlide1; }
.hero-results-demo__slide:nth-child(2) { animation-name: heroResultSlide2; }
.hero-results-demo__slide:nth-child(3) { animation-name: heroResultSlide3; }
.hero-results-demo__slide:nth-child(4) { animation-name: heroResultSlide4; }
.hero-results-demo__slide:nth-child(5) { animation-name: heroResultSlide5; }
.hero-results-demo__slide:nth-child(6) { animation-name: heroResultSlide6; }

/* 6 result slides (~13% each) then finale overlay takes the last ~14% */
@keyframes heroResultSlide1 {
  0%, 1% { opacity: 0; visibility: hidden; transform: translateX(20px); }
  2.5%, 11.5% { opacity: 1; visibility: visible; transform: translateX(0); }
  13%, 14% { opacity: 0; visibility: hidden; transform: translateX(-16px); }
  14.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes heroResultSlide2 {
  0%, 14% { opacity: 0; visibility: hidden; transform: translateX(20px); }
  15.5%, 24.5% { opacity: 1; visibility: visible; transform: translateX(0); }
  26%, 27% { opacity: 0; visibility: hidden; transform: translateX(-16px); }
  27.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes heroResultSlide3 {
  0%, 27% { opacity: 0; visibility: hidden; transform: translateX(20px); }
  28.5%, 37.5% { opacity: 1; visibility: visible; transform: translateX(0); }
  39%, 40% { opacity: 0; visibility: hidden; transform: translateX(-16px); }
  40.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes heroResultSlide4 {
  0%, 40% { opacity: 0; visibility: hidden; transform: translateX(20px); }
  41.5%, 50.5% { opacity: 1; visibility: visible; transform: translateX(0); }
  52%, 53% { opacity: 0; visibility: hidden; transform: translateX(-16px); }
  53.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes heroResultSlide5 {
  0%, 53% { opacity: 0; visibility: hidden; transform: translateX(20px); }
  54.5%, 63.5% { opacity: 1; visibility: visible; transform: translateX(0); }
  65%, 66% { opacity: 0; visibility: hidden; transform: translateX(-16px); }
  66.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes heroResultSlide6 {
  0%, 66% { opacity: 0; visibility: hidden; transform: translateX(20px); }
  67.5%, 76.5% { opacity: 1; visibility: visible; transform: translateX(0); }
  78%, 79% { opacity: 0; visibility: hidden; transform: translateX(-16px); }
  79.1%, 100% { opacity: 0; visibility: hidden; }
}

.hero-results-demo__visual {
  position: relative;
  margin: 0;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--f3-pale);
  border: 1px solid rgba(26, 82, 118, 0.08);
}

.hero-results-demo__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-results-demo__visual--research {
  background: #ffffff;
}

.hero-results-demo__visual--ews {
  background: #f5fafd;
}

.hero-results-demo__visual--isa {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
}

.hero-results-demo__visual--isa img {
  object-fit: contain;
  object-position: center;
}

.hero-results-demo__visual--iconcard,
.hero-results-demo__visual--course {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem;
}

.hero-results-demo__iconcard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--f3-teal), #16a085);
  color: white;
}

.hero-results-demo__iconcard-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-results-demo__iconcard-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 14rem;
}

.hero-results-demo__iconcard-list li {
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  background: var(--f3-white);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--f3-navy);
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.06);
}

.hero-results-demo__modules {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 15rem;
}

.hero-results-demo__modules li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--f3-navy);
  border-bottom: 1px solid rgba(26, 82, 118, 0.08);
}

.hero-results-demo__modules li:last-child {
  border-bottom: none;
}

.hero-results-demo__modules li span {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background: var(--f3-teal);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.65rem;
  text-align: center;
}

.hero-results-demo__caption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  row-gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 0 0;
  text-align: left;
}

.hero-results-demo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: rgba(26, 188, 156, 0.12);
  color: var(--f3-teal);
  margin: 0;
  grid-column: 1;
  grid-row: 1;
}

.hero-results-demo__badge .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-results-demo__caption h3 {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--f3-navy);
}

.hero-results-demo__caption p {
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--f3-muted);
}

.hero-results-demo__finale {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(232, 248, 245, 0.98) 100%);
  animation: heroResultsFinale var(--hero-results-cycle) ease-in-out infinite;
}

@keyframes heroResultsFinale {
  0%, 78% { opacity: 0; visibility: hidden; }
  80%, 97% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.hero-results-demo__finale-burst {
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 2px solid rgba(26, 188, 156, 0.35);
  animation: heroFinaleBurst var(--hero-results-cycle) ease-out infinite;
}

.hero-results-demo__finale-burst::before,
.hero-results-demo__finale-burst::after {
  content: "";
  position: absolute;
  inset: -0.65rem;
  border-radius: 50%;
  border: 2px solid rgba(26, 188, 156, 0.2);
  animation: heroFinaleBurst var(--hero-results-cycle) ease-out infinite;
}

.hero-results-demo__finale-burst::after {
  inset: -1.35rem;
  border-color: rgba(26, 188, 156, 0.1);
  animation-delay: 0.12s;
}

@keyframes heroFinaleBurst {
  0%, 79% { transform: scale(0.4); opacity: 0; }
  82% { transform: scale(0.85); opacity: 1; }
  86%, 94% { transform: scale(1.35); opacity: 0.6; }
  98%, 100% { transform: scale(1.6); opacity: 0; }
}

.hero-results-demo__finale-icon {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.hero-results-demo__finale-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1abc9c, #16a085);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 10px 28px rgba(26, 188, 156, 0.45),
    0 0 0 6px rgba(26, 188, 156, 0.12);
  animation: heroFinaleCheckPop var(--hero-results-cycle) cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes heroFinaleCheckPop {
  0%, 79% { transform: scale(0) rotate(-20deg); opacity: 0; }
  81% { transform: scale(1.18) rotate(4deg); opacity: 1; }
  84%, 94% { transform: scale(1) rotate(0deg); opacity: 1; }
  98%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0; }
}

.hero-results-demo__finale-headline {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  max-width: 16rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--f3-navy);
  animation: heroFinaleTextIn var(--hero-results-cycle) ease-out infinite;
}

.hero-results-demo__finale-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--f3-teal);
  animation: heroFinaleSubIn var(--hero-results-cycle) ease-out infinite;
}

@keyframes heroFinaleTextIn {
  0%, 82% { opacity: 0; transform: translateY(8px); }
  85%, 94% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes heroFinaleSubIn {
  0%, 84% { opacity: 0; transform: translateY(6px); }
  87%, 94% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(-4px); }
}

@media (max-width: 900px) {
  .hero-results-demo,
  .hero-results-demo__stage {
    min-height: 380px;
  }
}

/* --- Mobile / tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .hero-split {
    --hero-viewport-peek: clamp(1.25rem, 3vh, 2.25rem);
    min-height: calc(100svh - var(--hero-viewport-peek));
    min-height: calc(100vh - var(--hero-viewport-peek));
    padding-top: max(calc(var(--f3-nav-offset) + 1.25rem), 5rem);
    padding-bottom: clamp(2.75rem, 5.5vh, 4rem);
  }

  .hero-split-inner {
    gap: clamp(2rem, 4.5vh, 3.25rem);
    justify-items: center;
  }

  .home-page .hero-media {
    max-height: 400px;
    margin-inline: auto;
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .hero-split {
    padding-top: max(calc(var(--f3-nav-offset) + 0.75rem), 4.5rem);
    padding-bottom: clamp(3rem, 7vh, 4.25rem);
  }

  .home-page .hero-media {
    max-height: 380px;
  }

  .hero-results-demo,
  .hero-results-demo__stage {
    min-height: 320px;
  }
}

@media (max-width: 1024px) {
  .partners-carousel--bleed {
    overflow-x: clip;
    max-width: 100%;
  }

  .partners-carousel__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
  }

  .partners-carousel__viewport {
    overflow-x: clip;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .partners-carousel__viewport::before,
  .partners-carousel__viewport::after {
    display: none;
  }

  .partner-card--dup {
    display: none;
  }
}

/* Context images */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.split-media > .card-stack,
.split-media > .img-card,
.split-media > .split-media__copy,
.split-media > .split-media__media {
  min-width: 0;
}

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

.context-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: var(--f3-radius);
  box-shadow: var(--f3-shadow);
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--f3-radius-lg);
  border: 1px solid rgba(26, 82, 118, 0.08);
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--f3-light);
  align-self: center;
  margin: 0;
}

.img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(26, 82, 118, 0.85));
  color: white;
  font-size: 0.85rem;
}

.get-started-strip {
  position: relative;
  z-index: 0;
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--f3-max);
  border-bottom: 1px solid rgba(26, 82, 118, 0.08);
}

.steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 4rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.step-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--f3-teal);
  color: white;
  font-weight: 700;
  line-height: 36px;
  margin: 0 auto 0.5rem;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--f3-navy);
  font-weight: 600;
}

.step-item .muted {
  font-size: 0.8rem;
  font-weight: 400;
}

/* Partners rolling carousel (matches EWS consortium list) */
.partners-band.section-alt,
#partners.section-alt {
  margin: 0;
  max-width: none;
  border-radius: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

#partners .landing-section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.partners-carousel--bleed {
  width: 100%;
  margin: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.partners-carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
}

.partners-carousel__viewport::before,
.partners-carousel__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3rem, 10vw, 8rem);
  z-index: 2;
  pointer-events: none;
}

.partners-carousel__viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--f3-pale) 0%, rgba(245, 250, 253, 0.85) 40%, transparent 100%);
}

.partners-carousel__viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--f3-pale) 0%, rgba(245, 250, 253, 0.85) 40%, transparent 100%);
}

.partners-carousel__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding-top: 30px;
  padding-bottom: 30px;
  animation: partners-scroll 40s linear infinite;
}

.partners-carousel:hover .partners-carousel__track {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 14rem;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  color: var(--f3-navy);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  opacity: 0.88;
  color: var(--f3-teal);
}

.partner-card__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  box-shadow: 0 2px 12px rgba(26, 82, 118, 0.08);
}

.partner-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.15rem;
}

.partner-card__org {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.partner-card__country {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--f3-muted);
}

@media (prefers-reduced-motion: reduce) {
  .demo-step,
  .demo-step-bar span,
  .demo-step-icon,
  .demo-congrats,
  .demo-congrats-check,
  .hero-results-demo__slide,
  .hero-results-demo__finale,
  .hero-results-demo__finale-burst,
  .hero-results-demo__finale-check,
  .hero-results-demo__finale-headline,
  .hero-results-demo__finale-sub {
    animation: none !important;
  }
  .demo-step { opacity: 1; }
  .demo-step-bar span { width: 100%; }
  .demo-congrats { display: none; }

  .hero-results-demo__slide {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .hero-results-demo__slide:not(:first-child) { display: none; }
  .hero-results-demo__finale { display: none; }

  .partners-carousel__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
  }

  .partners-carousel__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }

  .partners-carousel__viewport::before,
  .partners-carousel__viewport::after {
    display: none;
  }

  .partner-card--dup {
    display: none;
  }
}

/* Landing page rhythm, section headers, module grid */
.landing-page .section {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.landing-page .section-alt {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.landing-section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

.landing-section-head--wide {
  max-width: 44rem;
}

.landing-section-head--compact {
  margin-bottom: 2rem;
}

.landing-section-head--compact .section-kicker {
  margin-bottom: 0;
  line-height: 1;
}

.landing-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--f3-navy);
}

.landing-section-head .section-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--f3-teal);
  margin-bottom: 0.75rem;
}

.landing-section-head .section-lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--f3-muted);
}

.landing-page .card-stack {
  gap: 1.25rem;
}

.landing-page .card-stack .card {
  padding: 1.5rem 1.6rem;
}

.landing-page .stand-for {
  max-width: 32rem;
}

.landing-page .stand-for li {
  padding: 0.85rem 0 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.landing-course-actions {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.landing-schools {
  max-width: 36rem;
}

.landing-page #partners.section-alt {
  padding-top: clamp(3.25rem, 6vw, 5rem);
  padding-bottom: 0;
}

.landing-schools-actions {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Home — latest news (below Results) */
.home-page .home-latest-news {
  background: #fff;
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-latest-news__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: clamp(11rem, 34vw, 21rem);
  z-index: 0;
  pointer-events: none;
}

.home-latest-news__line svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-latest-news__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.home-latest-news__intro {
  min-width: 0;
}

.landing-section-head--left {
  text-align: left;
  margin: 0;
  max-width: none;
}

.home-latest-news__cta {
  margin: 1.75rem 0 0;
}

.home-latest-news__cards {
  grid-column: span 2;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.home-latest-news__cards .news-card {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}

.home-latest-news__cards .news-card__preview {
  width: 100%;
  min-width: 0;
}

.home-latest-news__cards .news-card__media {
  width: 100%;
  overflow: hidden;
}

.home-latest-news__cards .news-card__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.home-latest-news__cards .news-card__body {
  padding: 0.85rem 1rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.home-latest-news__cards .news-card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-latest-news__cards .news-card__hint {
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .home-latest-news__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-latest-news__cards {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-latest-news__cards .news-card__body {
    padding: 0.65rem 0.75rem 0.8rem;
  }
}

@media (max-width: 640px) {
  .home-latest-news__cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .landing-section-head--left {
    text-align: center;
  }

  .home-latest-news__cta {
    display: flex;
    justify-content: center;
  }
}
