/* Fill the first screen beneath the unchanged fixed navigation. */
.home-screen {
  height: calc(100vh - var(--site-nav-height, 100px));
  height: calc(100svh - var(--site-nav-height, 100px));
  min-height: 480px;
  margin-top: var(--site-nav-height, 100px);
  display:flex;
  flex-direction:column;
}
.home-screen > .gallery-main { flex:1; min-height:140px; margin-top:0; }
.home-screen > .mission-panels { flex:0 0 auto; }
.home-screen .gallery-frame { height:100%; }
.home-screen .grid-container#club-gallery { min-height:0; height:100%; }
/* Two equal rows follow the remaining gallery height without a fixed viewport percentage. */
.home-screen #club-gallery .gallery-row { height:50%; flex:0 0 50%; }
.home-screen #club-gallery .gallery-track,
.home-screen #club-gallery .gallery-card { height:100%; }

/* Introduction keeps its natural height above the three full-screen panels. */
.mission-panels {
  --panel-ink: var(--home-black, #111211);
  --panel-paper: var(--green);
  color: var(--panel-paper);
  /* Plain dark background behind the introduction and its buttons. */
  background: var(--home-black, #111211);
  font-family: Arial, Helvetica, sans-serif;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* The introduction shares the section background rather than painting a separate image. */
/* Keep half as much blank space above the heading as the button area below it. */
.mission-panels__intro {
  flex: 0 0 auto;
  display:grid;
  grid-template-rows:.5fr auto 1fr;
}
.mission-panels__intro::before { content:''; grid-row:1; }
.mission-panels__intro > .mission-panels__heading { grid-row:2; }
.mission-panels__intro > .home-quick-actions { grid-row:3; align-self:start; }

.mission-panels__heading {
  padding: 8px clamp(22px, 6vw, 92px) 16px;
  --panel-paper: var(--white);
}

.mission-panels__eyebrow,
.mission-panel__number {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mission-panels__eyebrow { color: #dfff3a; }

.mission-panels__heading h1 {
  max-width: 850px;
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(40px, calc(4.5vw + 10px), 70px);
  line-height: .92;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.mission-panels__period { color: #ff3030; }

/* Each static, full-width panel occupies one viewport height. */
.mission-panels__stack {
  display: grid;
  grid-template-rows: repeat(3, auto);
  width: 100%;
}

.mission-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  background: #30342a;
}

.mission-panel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 12, 8, .08) 25%, rgba(9, 12, 8, .52) 100%);
}

.mission-panel > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.mission-panel__copy {
  position: absolute;
  right: clamp(22px, 8vw, 120px);
  bottom: clamp(26px, 8vh, 90px);
  width: min(560px, 48vw);
  box-sizing: border-box;
  padding: clamp(25px, 4vw, 56px);
  color: var(--panel-ink);
  background: var(--panel-paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.mission-panel__number { color: #687220; }

.mission-panel__copy h3 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: .98;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.mission-panels__intro .home-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 650px;
  margin-inline: auto;
  padding-block: 10px;
}
.mission-panels__intro .home-quick-actions__link { min-width: 0; }

/* Third-panel headline: hold each phrase on its own line while the center word flips. */
.mission-panel__stacked-heading > span { display:block; }
.mission-panel__word-window {
  width:8ch;
  height:.98em;
  overflow:hidden;
  line-height:.98;
}
.mission-panel__word { display:inline-block; color:var(--panel-ink); }
.mission-panel__word.is-final { color:#fff; }
.mission-panel__word.is-flicking { animation: mission-word-flick .48s cubic-bezier(.22, 1, .36, 1); }
@keyframes mission-word-flick {
  from { opacity:0; transform:translateY(105%); }
  to { opacity:1; transform:translateY(0); }
}


@media (max-width: 640px) {
  .mission-panel__copy {
    right:18px;
    top:25vh;
    bottom:auto;
    left:18px;
    width:auto;
    padding:24px;
  }
  .mission-panel__copy h3 { font-size:clamp(30px, 10vw, 46px); }
  .mission-panels__intro .home-quick-actions { gap: 6px; }
  .mission-panels__intro .home-quick-actions__link { min-height: 44px; gap: 8px; padding: 4px 10px 4px 4px; font-size: 11px; }
  .mission-panels__intro .home-quick-actions__icon { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .mission-panel__word.is-flicking { animation:none; }
}
