/* Home: full-screen video hero, then mostly light bands with a few dark ones for emphasis. */

/* Bands, pills, reveal and the before/after and video styling are shared: see components.css. */

/* Mission: the logo builds itself (below), then the text and numbers fade in. */
.reveal-on .intro__inner[data-reveal] { opacity: 1; transform: none; }
.reveal-on .intro__inner > :not(.intro__logo) { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-on .intro__text { transform: translateY(24px); transition-delay: .5s; }
.reveal-on .intro__impact { transform: translateY(24px); transition-delay: .9s; }
.reveal-on .intro__inner.is-in > * { opacity: 1; transform: none; }

/* ---- Video hero ---- */
.vhero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  background: var(--ink) url('../../assets/img/hero-volunteers-poster.webp') center / cover no-repeat;
  color: #fff;
}
.vhero__media { position: absolute; inset: 0; }
.vhero__video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vhero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 72%, transparent) 42%, color-mix(in srgb, var(--ink) 20%, transparent) 100%),
    linear-gradient(to top, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 0%, transparent) 50%);
}
.vhero__content { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: calc(var(--header-h) + 56px) 32px clamp(88px, 16vh, 170px); }
.vhero__title { max-width: 14em; margin: 0 0 20px; font-family: var(--font-slab); font-size: clamp(36px, 4.6vw, 66px); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-transform: none; text-wrap: balance; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.vhero__lede { max-width: 32em; margin: 0 0 34px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.5; text-wrap: pretty; color: rgba(255, 255, 255, .88); }
.vhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.vhero__link { font-size: 16px; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .2s; margin-left: 10px; }
.vhero__link:hover { color: var(--cyan); }
.video-toggle {
  position: absolute; z-index: 2; right: 28px; bottom: 28px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: color-mix(in srgb, var(--navy-deep) 45%, transparent); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color .2s;
}
.video-toggle:hover { background: color-mix(in srgb, var(--navy-deep) 80%, transparent); }
.video-toggle .icon-play, .video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }

/* ---- Mission ---- */
.intro { padding: clamp(64px, 9vw, 120px) 0; background: var(--ink); color: var(--light); }
.intro__inner { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1100px; }
.intro__logo { width: 100%; }
.intro__text { margin: 0; font-family: var(--font-slab); font-size: clamp(21px, 2.3vw, 30px); line-height: 1.5; color: #fff; }
.intro__label { display: block; margin-bottom: 12px; font-family: var(--font-body); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.intro__impact { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(255, 255, 255, .15); }
.intro__eyebrow { margin: 0 0 20px; font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.intro__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.intro__num { display: block; font-family: var(--font-slab); font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1; color: #fff; }
.intro__stat-label { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* ---- Animated round logo ----
   Without JS or with reduced motion it is simply the finished logo. home.js adds .is-armed (every part hidden)
   and then .is-playing once the whole logo is on screen (and again every 30 s); each animation starts from its own first frame. Brand colours stay fixed under all themes. */
.logo-anim { --lw: #fff; --lc: #00aed0; overflow: visible; }
.logo-anim .la-white, .logo-anim .la-head--white, .logo-anim .la-top { fill: var(--lw); stroke: var(--lw); }
.logo-anim .la-arcs, .logo-anim .la-heart, .logo-anim .la-body, .logo-anim .la-head--cyan, .logo-anim .la-bottom { fill: var(--lc); stroke: var(--lc); }
.logo-anim path { stroke-width: 0; stroke-linecap: round; stroke-linejoin: round; }
.logo-anim .la-heart, .logo-anim .la-head, .logo-anim .la-letter { transform-box: fill-box; transform-origin: center; }
.logo-anim.is-armed:not(.is-playing) path { opacity: 0; }
/* The two figures and the arcs draw their outlines, then fill in. */
.logo-anim.is-playing .la-draw { stroke-dasharray: 1; animation: la-draw var(--t, 1.05s) var(--ease) var(--d, 0s) both; }
.la-white path:nth-child(2) { --d: .18s; }
.la-arcs path { --t: .77s; --d: .35s; }
.la-arcs path:nth-child(2), .la-arcs path:nth-child(3) { --d: .46s; }
.la-body { --t: .91s; --d: .63s; }
/* The heart springs open, each head drops in and bounces, the letters pop in one at a time, then the heart beats. */
.logo-anim.is-playing .la-heart { animation: la-pop .56s cubic-bezier(.34, 1.56, .64, 1) .91s both, la-beat .7s ease-in-out 2.52s; }
.logo-anim.is-playing .la-head { animation: la-drop .7s linear var(--d, .98s) both; }
.la-head--cyan { --d: 1.23s; }
.logo-anim.is-playing .la-top .la-letter { animation: la-spin .42s cubic-bezier(.34, 1.56, .64, 1) calc(.7s + var(--i) * 49ms) both; }
.logo-anim.is-playing .la-bottom .la-letter { animation: la-rise .39s cubic-bezier(.34, 1.56, .64, 1) calc(1.54s + var(--i) * 35ms) both; }
@keyframes la-draw {
  0% { stroke-dashoffset: 1; stroke-width: 2.5; fill-opacity: 0; }
  65% { stroke-dashoffset: 0; stroke-width: 2.5; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; stroke-width: 0; fill-opacity: 1; }
}
@keyframes la-pop { from { opacity: 0; transform: scale(0) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes la-beat { 0%, 40%, 100% { transform: none; } 20%, 60% { transform: scale(1.15); } }
@keyframes la-drop {
  0% { opacity: 0; transform: translateY(-420%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  10% { opacity: 1; }
  45% { transform: translateY(0) scale(1.15, .8); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  65% { transform: translateY(-60%) scale(.95, 1.05); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  82% { transform: translateY(0) scale(1.06, .94); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  92% { transform: translateY(-14%); }
  100% { opacity: 1; transform: none; }
}
@keyframes la-spin { from { opacity: 0; transform: scale(0) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes la-rise { from { opacity: 0; transform: translateY(80%) scale(.3); } to { opacity: 1; transform: none; } }

/* ---- How to get care ---- */
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; counter-reset: none; }
.steps__item { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px -24px color-mix(in srgb, var(--navy-deep) 45%, transparent); color: var(--navy); }
.steps__num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-slab); font-size: 22px; font-weight: 700; }
.steps__title { margin: 0 0 10px; font-size: 22px; line-height: 1.25; color: var(--navy); text-transform: none; }
.steps__item p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.steps__link { margin-top: auto; font-weight: 700; color: var(--cyan-dark); }
.steps__link::after { content: " →"; }
.steps__link:hover { color: var(--navy); }

/* ---- How our volunteers change lives ---- */
.page-home .ba-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
.lives__video { max-width: 960px; margin: clamp(48px, 7vw, 80px) auto 0; }

/* ---- Featured news ---- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); border-radius: 20px; background: #fff; box-shadow: 0 14px 34px -24px color-mix(in srgb, var(--navy-deep) 45%, transparent); color: var(--navy); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.news-card__source { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-dark); }
.news-card__title { margin: 0 0 12px; font-size: 20px; line-height: 1.3; color: var(--navy); text-transform: none; }
.news-card__summary { display: -webkit-box; margin: 0 0 18px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; line-height: 1.6; }
.news-card__more { margin-top: auto; font-weight: 700; color: var(--cyan-dark); }

/* ---- CDCP ---- */
.cdcp__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cdcp__title { margin-bottom: 28px; }
.cdcp__list { display: grid; gap: 22px; margin: 0 0 32px; list-style: none; }
.cdcp__list li { display: flex; align-items: flex-start; gap: 18px; font-size: 17px; line-height: 1.6; color: var(--navy); }
.cdcp__list p { margin: 0; }
.cdcp__icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--cyan-dark) 10%, transparent); color: var(--cyan-dark); }
.cdcp__icon svg { width: 20px; height: 20px; }
.cdcp__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.cdcp__more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid color-mix(in srgb, var(--navy) 15%, transparent); font-size: 17px; line-height: 1.7; color: var(--navy); }
.cdcp__more p { margin: 0; }
.cdcp__note { margin: 28px 0 0; padding-left: 16px; border-left: 3px solid var(--cyan); font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---- Parallax video banner ---- */
.pbanner { position: relative; display: flex; align-items: center; overflow: hidden; height: 34vh; min-height: 240px; max-height: 380px; background: var(--ink) url('../../assets/img/banner-redtrain-poster.webp') center / cover no-repeat; }
.pbanner__media { position: absolute; left: 0; right: 0; top: -25%; height: 150%; will-change: transform; }
.pbanner__video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 85%, transparent), color-mix(in srgb, var(--ink) 55%, transparent)); }
.pbanner__inner { position: relative; z-index: 1; }
.pbanner__title { max-width: 18em; margin: 0 auto; font-size: clamp(28px, 4vw, 52px); font-weight: 400; line-height: 1.15; text-align: center; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.pbanner__toggle { right: 20px; bottom: 20px; width: 38px; height: 38px; }

/* ---- Instagram ---- */
.insta__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.insta__who { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--navy); }
.insta__who:hover { color: var(--cyan-dark); }
.insta__who img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--navy) 12%, transparent); }
.insta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.insta__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.insta__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 65%, transparent), color-mix(in srgb, var(--ink) 0%, transparent) 60%); opacity: 0; transition: opacity .3s; }
.insta__item:hover img { transform: scale(1.06); }
.insta__item:hover::after { opacity: 1; }
.insta__badge { position: absolute; z-index: 1; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }

/* ---- Annual report ---- */
.promo-band { padding: 0 0 clamp(64px, 9vw, 120px); background: var(--surface-tint); }
.promo { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(260px, 32vw, 420px); padding: clamp(28px, 5vw, 64px); overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 55%, color-mix(in srgb, var(--ink) 15%, transparent) 100%); }
.promo__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.promo:hover .promo__bg { transform: scale(1.04); }
.promo__title { margin: 0; font-size: clamp(44px, 7vw, 96px); font-weight: 700; line-height: 1; color: #fff; }
.promo__go { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--cyan); color: var(--ink); transition: transform .3s var(--ease); }
.promo:hover .promo__go { transform: translateX(6px); }

@media (max-width: 1024px) {
  .page-home .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .cdcp__grid { grid-template-columns: 1fr; }
  .steps__list, .news__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cdcp__img { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .vhero__content { padding: calc(var(--header-h) + 28px) 20px 80px; }
  .vhero__title { font-size: clamp(32px, 9vw, 40px); }
  .vhero__lede { font-size: 17px; }
  .vhero__lede { margin-bottom: 26px; }
  .vhero__actions .pill { padding: 14px 26px; }
  .vhero__link { flex-basis: 100%; margin: 6px 0 0; }
  .intro__stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .intro__stats li:last-child { grid-column: 1 / -1; }
  .intro__num { font-size: 34px; }
  .intro__stat-label { font-size: 12px; }
  .intro__impact { text-align: center; }
  .vhero__toggle { right: 16px; bottom: 20px; }
  .pbanner__toggle { right: 12px; bottom: 12px; }
  .intro__inner { grid-template-columns: 1fr; text-align: center; }
  .intro__logo { max-width: 180px; margin: 0 auto; }
  .page-home .ba-grid { grid-template-columns: 1fr; }
  .cdcp__list li, .cdcp__more { font-size: 16px; }
  .cdcp__more { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promo__go { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo__bg, .insta__item img, .news-card__link { transition: none; }
}
