/* Only identity, native widget integration and explicit preview states differ. */
.hero-graphic--stamp {
  width: min(440px, 72%);
  max-width: 440px;
  height: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}
.hero-date { margin: 1.4rem 0 clamp(4rem, 8vw, 7rem); font-size: clamp(1.25rem, 2.7vw, 1.9rem); }
.meter-donors-layout { align-items: start; }
/* The skyline occupies the widgets' existing space, with no layout jump. */
.vancouver-skyline { display: none; pointer-events: none; }
.vancouver-skyline-intro .meter-donors-layout > .reveal {
  opacity: 1; transform: none; visibility: visible;
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .vancouver-skyline {
    display: block; position: absolute; z-index: 2; top: 64px;
    left: 50%; width: min(1600px, 96%);
    transform: translateX(-50%); opacity: 0; visibility: hidden;
    transition: opacity .65s ease, visibility 0s .65s;
  }
  .vancouver-skyline img {
    display: block; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 67%, transparent 84%);
    mask-image: linear-gradient(to bottom, #000 67%, transparent 84%);
  }
  .is-skyline-waiting .vancouver-skyline { opacity: .16; visibility: visible; transition: none; }
  .vancouver-skyline-intro .meter-donors-layout > .reveal {
    transition: opacity .75s ease .14s, transform .85s cubic-bezier(.22,1,.36,1) .14s, visibility 0s;
  }
  .vancouver-skyline-intro.is-skyline-waiting .meter-donors-layout > .reveal {
    opacity: 0; visibility: hidden; transition: none;
  }
  .vancouver-skyline-intro.is-skyline-waiting .meter-col { transform: translateY(24px) scale(.96); }
  .vancouver-skyline-intro.is-skyline-waiting .donors-col { transform: translateX(40px); }
}
.meter-col { min-width: 0; }
.meter-col .widget-panel { max-width: 640px; margin-inline: auto; container-type: inline-size; background: transparent; }
/* Reserve the full square ring plus its internal padding before resize messages arrive. */
.meter-col iframe { height: calc(100cqw + 64px); min-height: calc(100cqw + 64px); }
.widget-panel { background: #fff; border-radius: 12px; overflow: hidden; width: 100%; }
.widget-panel iframe { display: block; width: 100%; border: 0; }
.school-card__meter-pct { color: #665c63; }
.school-preview-dialog {
  max-width: 460px;
  width: calc(100% - 40px);
  margin: auto;
  padding: 32px;
  border: 1px solid #eadfe4;
  border-radius: 16px;
  font: inherit;
  color: #202024;
  box-shadow: 0 30px 90px #0003;
}
.school-preview-dialog::backdrop { background: #20171caa; }
.school-preview-dialog h2 { margin-bottom: 14px; line-height: 1.2; }
.school-preview-dialog p { margin-bottom: 24px; }
:focus-visible { outline: 3px solid #d71958; outline-offset: 5px; }
.hero .hero-graphic--stamp {
  /* Preserve the supplied alpha silhouette. Keep knockout active during pointer tilt. */
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px #25091659) !important;
}
@media (max-width: 600px) {
  .hero-graphic--stamp { width: min(365px, 75%); padding: 0; }
  .hero-date { font-size: 1.2rem; }
}

.about-eyebrow { display: inline-flex; margin-top: 0; gap: 0.6rem; padding-right: 1.3rem; border-right: 1px solid #ffffff40; animation: none; transform: none; }
.about-eyebrow .eyebrow-label { margin: 0; font-size: 0.8rem; letter-spacing: 0.14em; }
.about-eyebrow .eyebrow-num { font-size: clamp(3.6rem, 5.6vw, 5.2rem); line-height: 0.82; }
.about-eyebrow .eyebrow-ord { font-size: clamp(1.25rem, 2.1vw, 1.7rem); }
.about-heading-text { transform: none; }
@media (max-width: 600px) {
  .about-heading-row { flex-wrap: wrap; gap: 1.4rem; }
  .about-eyebrow { padding-right: 0; border-right: 0; margin-top: 0; }
  .about-heading-text { flex-basis: 100%; }
}

.match-multiplier:hover { opacity: 1; filter: brightness(1.06); }
.school-card[data-school="tamim"] .school-card__logo { width: 100%; height: 104px; max-width: 100%; max-height: 104px; object-fit: cover; }

/* Vancouver school photos: vertical carousel with a clear foreground plane. */
@media (min-width: 769px) {
  .about-layout { grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); gap: 3rem; }
}
.about-text-col, .about-image-col { min-width: 0; }
.school-carousel { width: 100%; max-width: 420px; position: relative; }
.school-carousel__scene {
  position: relative; width: 100%; height: 460px;
  perspective: 1100px; perspective-origin: 50% 50%;
  overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
}
.school-carousel__slide {
  position: absolute; left: 3%; top: 50%; width: 94%;
  padding: 0; background: transparent; border: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 45px -16px #20000d80;
  backface-visibility: hidden; transform-origin: center;
  transition: transform 1000ms cubic-bezier(.22,.68,.18,1), opacity 850ms ease;
}
.school-carousel__slide img { width: 100%; height: auto; display: block; }
.school-carousel__slide img.school-carousel__portrait { width: auto; max-width: 100%; max-height: 360px; margin: 0 auto; border-radius: 12px; }
.school-carousel__slide[data-position="current"] { transform: translateY(-50%) translateZ(30px); opacity: 1; z-index: 3; }
.school-carousel__slide[data-position="previous"] { transform: translateY(calc(-50% - 150px)) translateZ(-100px) rotateX(26deg) scale(.84); opacity: .42; z-index: 1; }
.school-carousel__slide[data-position="next"] { transform: translateY(calc(-50% + 150px)) translateZ(-100px) rotateX(-26deg) scale(.84); opacity: .42; z-index: 1; }
.school-carousel__slide[data-position="hidden"] { transform: translateY(calc(-50% + 240px)) translateZ(-220px) rotateX(-48deg) scale(.72); opacity: 0; z-index: 0; }
.school-carousel__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 768px) {
  .school-carousel { max-width: 420px; }
  .school-carousel__scene { height: clamp(350px, 110vw, 470px); }
  .school-carousel__slide img.school-carousel__portrait { max-height: calc(clamp(350px, 110vw, 470px) - 90px); }
  .school-carousel__slide[data-position="previous"] { transform: translateY(calc(-50% - 125px)) translateZ(-100px) rotateX(26deg) scale(.84); }
  .school-carousel__slide[data-position="next"] { transform: translateY(calc(-50% + 125px)) translateZ(-100px) rotateX(-26deg) scale(.84); }
}
@media (prefers-reduced-motion: reduce) {
  .school-carousel__slide { transition: none; }
}

/* More breathing room around the school selector. */
.section--schools { padding-top: 6.5rem; padding-bottom: 6.5rem; }

/* Campaign statement and official participating-school identities over the video. */
.hero-content { max-width: 1000px; }
.hero .hero-tagline .hero-statement {
  display: block; max-width: 900px; margin: 0 auto;
  font-family: var(--font-headline); font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 700; line-height: 1.65; color: #fff; letter-spacing: 0;
  text-shadow: none;
}
.hero-statement > span {
  background: #d71958; border-radius: .35em; padding: .16em .45em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-schools {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center; gap: clamp(1.5rem, 3.5vw, 3rem);
  width: 100%; max-width: 960px; margin: 0 auto 2rem; padding: 0;
}
.hero-schools li { min-width: 0; }
.hero-schools img {
  display: block; width: 90%; height: 72px; margin-inline: auto; object-fit: contain;
  filter: brightness(0) invert(1);
}
@media (max-width: 600px) {
  .hero-schools { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; gap: 1.4rem 2rem; margin-top: 0; margin-bottom: 1.5rem; }
  .hero-schools img { height: 58px; }
  .hero .hero-tagline .hero-statement { margin-top: 0; line-height: 1.7; }
}

/* One coordinated entrance: campaign identity, date, schools, message, action. */
.hero.will-animate .hero-date,
.hero.will-animate .hero-schools li { opacity: 0; }
@keyframes vancouverDateIn {
  0% { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(5px); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.01); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes vancouverSchoolIn {
  from { opacity: 0; transform: translateY(22px) scale(.92); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero.is-ready .hero-date { animation: vancouverDateIn .8s cubic-bezier(.22,1,.36,1) 1.1s both; }
.hero.is-ready .hero-schools li { animation: vancouverSchoolIn .75s cubic-bezier(.22,1,.36,1) both; }
.hero.is-ready .hero-schools li:nth-child(1) { animation-delay: 1.55s; }
.hero.is-ready .hero-schools li:nth-child(2) { animation-delay: 1.67s; }
.hero.is-ready .hero-schools li:nth-child(3) { animation-delay: 1.79s; }
.hero.is-ready .hero-schools li:nth-child(4) { animation-delay: 1.91s; }
@keyframes vancouverStatementIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero.is-ready .hero-tagline__sub { animation: vancouverStatementIn .85s cubic-bezier(.19,1,.22,1) 2.2s both; }
.hero.is-ready .hero-cta { animation: heroPillIn .7s cubic-bezier(.2,.8,.2,1) 2.65s both, ctaPulse 2.2s ease-out 4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero.will-animate .hero-date,
  .hero.will-animate .hero-schools li,
  .hero.will-animate .hero-tagline__sub,
  .hero.will-animate .hero-cta {
    animation: none !important; opacity: 1; transform: none; filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.will-animate .hero-graphic--stamp { animation: none !important; opacity: 1; transform: none; }
  .hero.is-ready .hero-video-wrap::after { animation: none !important; opacity: 0; }
}
