/* ============================================================
   OUR MISSION IN ACTION — outreach video gallery
   Homepage, directly beneath the Hunger Can't Wait tracker.
   Palette matches hunger-campaign.css: white, orange, navy, light blue.
============================================================ */
.mia {
  --mia-orange:      #f07c1e;
  --mia-orange-dark: #d96712;
  --mia-navy:        #0d2a4e;
  --mia-navy-deep:   #081d38;
  --mia-blue:        #1a6fd1;
  --mia-blue-pale:   #e8f2fd;
  --mia-text:        #334155;
  --mia-muted:       #64748b;

  background: #ffffff;
  padding: 64px 0 72px;
  font-family: 'Inter', sans-serif;
  color: var(--mia-text);
}
.mia *,
.mia *::before,
.mia *::after { box-sizing: border-box; }

.mia-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Heading ────────────────────────────────────────── */
.mia-head {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.mia-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mia-blue-pale);
  color: var(--mia-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mia-title {
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--mia-navy);
}
.mia-lede {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
}

/* ── Video player: 3:4 to fit Johnny's posters (TikTok's player fills any shape) ── */
.mia-player {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mia-navy-deep);
  box-shadow: 0 12px 32px rgba(13,42,78,.16);
}
.mia-player iframe,
.mia-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mia-player video {
  object-fit: contain;
  background: #000;
}

/* Thumbnail + play button shown until the visitor presses play */
.mia-facade {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--mia-navy-deep);
  cursor: pointer;
  transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.mia-facade[hidden] { display: none; }
.mia-facade.is-revealed { opacity: 0; pointer-events: none; }
.mia-facade:focus-visible { outline: 3px solid var(--mia-orange); outline-offset: -3px; }

/* Poster shown whole; a blurred copy of it fills any leftover space */
.mia-facade--poster { overflow: hidden; }
.mia-facade--poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mia-thumb) center / cover no-repeat;
  filter: blur(18px) brightness(.85);
  transform: scale(1.2);
}
.mia-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.mia-facade:hover .mia-thumb { transform: scale(1.03); }

/* No thumbnail yet: branded card with the video title */
.mia-facade--branded {
  background:
    radial-gradient(circle at 30% 20%, rgba(240,124,30,.35) 0%, rgba(240,124,30,0) 55%),
    linear-gradient(160deg, var(--mia-navy) 0%, var(--mia-navy-deep) 100%);
}
.mia-facade-brand {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 20px;
  text-align: left;
}
.mia-facade-num {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffb36b;
}
.mia-facade-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.mia-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mia-orange);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.22);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease;
}
.mia-play svg { margin-left: 3px; }
.mia-facade:hover .mia-play { background: var(--mia-orange-dark); transform: translate(-50%, -50%) scale(1.08); }
.mia-player--featured .mia-play { width: 80px; height: 80px; }
.mia-facade--poster .mia-play {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  transform: none;
}
.mia-facade--poster:hover .mia-play { transform: scale(1.08); }
.mia-player--featured .mia-facade--poster .mia-play { width: 60px; height: 60px; right: 16px; bottom: 16px; }

/* A frame grab (not a designed poster) fills the card; with the title over it, the play button stays centred */
.mia-facade--frame .mia-thumb { object-fit: cover; }
.mia-facade--titled .mia-play {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
}
.mia-facade--titled:hover .mia-play { transform: translate(-50%, -50%) scale(1.08); }

/* Photo with the video title over a navy fade */
.mia-facade--titled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,29,56,0) 28%, rgba(8,29,56,.9) 52%, var(--mia-navy-deep) 68%);
  pointer-events: none;
}
.mia-facade--titled .mia-thumb { object-position: top; }
.mia-facade--titled .mia-facade-brand { z-index: 2; padding: 22px 22px 24px; }
.mia-facade--titled .mia-facade-title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }

.mia-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 4px solid rgba(255,255,255,.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: mia-spin .8s linear infinite;
}
.mia-facade.is-loading .mia-play { opacity: 0; }
.mia-facade.is-loading .mia-spinner { opacity: 1; }
@keyframes mia-spin { to { transform: rotate(360deg); } }

.mia-num {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mia-orange-dark);
}

/* ── Videos 1–6: the large spot, one video at a time ── */
.mia-stage { scroll-margin-top: 96px; }
.mia-featured[hidden] { display: none; }
.mia-featured.is-entering { animation: mia-enter .4s ease; }
.mia-featured-title:focus { outline: none; }
@keyframes mia-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.mia-featured {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mia-navy) 0%, var(--mia-navy-deep) 100%);
  box-shadow: 0 20px 50px rgba(13,42,78,.22);
}
.mia-player--featured {
  aspect-ratio: 1 / 1;
  border: 3px solid var(--mia-orange);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.mia-featured .mia-num { color: #ffb36b; }
.mia-featured-title {
  margin: 10px 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
}
.mia-featured-lead {
  margin: 0 0 12px;
  max-width: 520px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.45;
  color: #ffb36b;
}
.mia-featured-tagline {
  margin: -4px 0 14px;
  max-width: 520px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.45;
  color: #ffffff;
}
.mia-featured-text {
  margin: 0 0 12px;
  max-width: 520px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
}

/* "Read the full story" — native <details>, so it works without JavaScript */
.mia-more { margin: 0 0 24px; max-width: 520px; }
.mia-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  list-style: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  color: #ffb36b;
}
.mia-more-toggle::-webkit-details-marker { display: none; }
.mia-more-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
}
.mia-more[open] .mia-more-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
.mia-more-toggle:hover .mia-more-label-open,
.mia-more-toggle:hover .mia-more-label-close { text-decoration: underline; }
.mia-more-toggle:focus-visible { outline: 2px solid #ffb36b; outline-offset: 4px; border-radius: 4px; }
.mia-more-label-close,
.mia-more[open] .mia-more-label-open { display: none; }
.mia-more[open] .mia-more-label-close { display: inline; }
.mia-more-body {
  margin-top: 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.mia-more-body > p:first-child { margin-top: 14px; }
.mia-more-heading {
  margin: 16px 0 6px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #ffffff;
}
.mia-more-text {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
}
.mia-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: mia-step;
}
.mia-steps li {
  counter-increment: mia-step;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .9rem;
  font-weight: 600;
  color: #ffffff;
}
.mia-steps li::before {
  content: counter(mia-step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mia-orange);
  font-size: .78rem;
  font-weight: 800;
}

/* ── Row of videos to swap into the large spot ──────── */
.mia-picks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 40px 0 16px;
}
.mia-picks-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--mia-navy);
}
.mia-picks-hint {
  margin: 0;
  font-size: .9rem;
  color: var(--mia-muted);
}
.mia-picks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.mia-pick { min-width: 0; }
.mia-pick[hidden] { display: none; }
.mia-pick-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mia-pick-btn:focus-visible { outline: 3px solid var(--mia-orange); outline-offset: 4px; border-radius: 16px; }
.mia-pick-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(240,124,30,.35) 0%, rgba(240,124,30,0) 55%),
    linear-gradient(160deg, var(--mia-navy) 0%, var(--mia-navy-deep) 100%);
  box-shadow: 0 12px 32px rgba(13,42,78,.16);
}
.mia-pick-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.mia-pick-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border-radius: 50%;
  background: var(--mia-orange);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  transition: transform .2s ease, background .2s ease;
}
.mia-pick-btn:hover .mia-pick-thumb img { transform: scale(1.05); }
.mia-pick-btn:hover .mia-pick-play { background: var(--mia-orange-dark); transform: scale(1.08); }
.mia-pick-title {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mia-navy);
  transition: color .2s ease;
}
.mia-pick-btn:hover .mia-pick-title { color: var(--mia-orange-dark); }

/* ── Video 7 + team poster ──────────────────────────── */
.mia-team {
  margin-top: 48px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff7ef 0%, #ffffff 100%);
  border: 1px solid rgba(240,124,30,.22);
}
.mia-team-copy {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}
.mia-team-title {
  margin: 8px 0 10px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--mia-navy);
}
.mia-team-text { margin: 0; font-size: 1rem; line-height: 1.6; }

/* Columns sized so the 3:4 video and the 1199×1312 poster end up the same height */
.mia-team-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.219fr);
  gap: 20px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.mia-poster {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13,42,78,.16);
}
.mia-poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1199 / 1312;
}

/* ── Call to action ─────────────────────────────────── */
.mia-cta {
  margin-top: 44px;
  text-align: center;
}
.mia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 18px 40px;
  border-radius: 999px;
  background: var(--mia-orange);
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(240,124,30,.4);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mia-btn:hover { background: var(--mia-orange-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(240,124,30,.48); }
.mia-btn:focus-visible { outline: 3px solid var(--mia-navy); outline-offset: 3px; }
.mia-btn svg { flex-shrink: 0; }
.mia-cta-note {
  margin: 12px 0 0;
  font-size: .9rem;
  color: var(--mia-text);
}
.mia-cta-note strong { color: var(--mia-navy); }

/* ── Tablet: the video row becomes swipeable ────────── */
@media (max-width: 1024px) {
  .mia-featured { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; padding: 28px; }

  .mia-picks {
    display: flex;
    gap: 16px;
    margin: 0 -24px;
    padding: 0 24px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .mia-pick {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
}

/* ── Mobile: everything stacked ─────────────────────── */
@media (max-width: 768px) {
  .mia { padding: 44px 0 52px; }
  .mia-inner { padding: 0 16px; }
  .mia-head { margin-bottom: 28px; }

  .mia-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px 16px 24px;
    border-radius: 20px;
    text-align: center;
  }
  .mia-player--featured { width: 100%; max-width: 340px; margin: 0 auto; }
  .mia-featured-lead,
  .mia-featured-tagline,
  .mia-featured-text,
  .mia-more { margin-left: auto; margin-right: auto; }
  .mia-steps { justify-content: center; }

  .mia-picks-head { flex-direction: column; align-items: center; margin-top: 32px; text-align: center; }
  .mia-picks { margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; }
  .mia-pick { flex-basis: 44%; max-width: 180px; }

  .mia-team { margin-top: 36px; padding: 22px 16px; border-radius: 20px; }
  .mia-team-media { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mia-team-media .mia-player { width: 100%; max-width: 340px; margin: 0 auto; }

  .mia-cta { margin-top: 36px; }
  .mia-btn { display: flex; width: 100%; padding: 16px 20px; font-size: 1rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  .mia-btn, .mia-facade, .mia-thumb, .mia-play, .mia-more-toggle::after,
  .mia-pick-thumb img, .mia-pick-play, .mia-pick-title { transition: none; }
  .mia-featured.is-entering { animation: none; }
  .mia-facade:hover .mia-thumb,
  .mia-pick-btn:hover .mia-pick-thumb img { transform: none; }
  .mia-pick-btn:hover .mia-pick-play { transform: none; }
  .mia-btn:hover { transform: none; }
}
