/* Homepage — editorial hero hook + sections */

.site-home { overflow-x: hidden; }
.site-home main { display: block; }

/* ── Hero: asymmetric overlap, single protagonist ── */
.home-hero {
  padding: 0 max(0px, calc((100vw - var(--max)) / 2 - 1rem));
  background: var(--paper);
}

.home-hero__stage {
  position: relative;
  display: grid;
  min-height: clamp(520px, 88svh, 760px);
  grid-template-columns: 1fr;
  align-items: end;
}

.home-hero__picture {
  position: absolute;
  z-index: 0;
  inset: 0 0 28%;
  overflow: hidden;
}

.home-hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 22%;
}

.home-hero__frame {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: 6%;
  width: 3px;
  height: 42%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}

.home-hero__panel {
  position: relative;
  z-index: 2;
  width: min(94%, 22rem);
  margin: 0 0 1.25rem 1rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--paper);
  box-shadow:
    0 28px 60px rgba(var(--shadow-tint), .18),
    0 0 0 1px rgba(var(--shadow-tint), .06);
}

.home-hero__panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green) 0%, var(--accent) 100%);
  content: "";
}

.home-hero .kicker {
  margin-bottom: .65rem;
  padding-left: .7rem;
  font-size: .68rem;
}

.home-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 9.5vw, 2.85rem);
  font-weight: var(--weight-display);
  letter-spacing: -.045em;
  line-height: 1.06;
}

.home-hero .lead {
  max-width: 24ch;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: var(--weight-medium);
  line-height: 1.6;
}

.home-hero__locations {
  margin: .75rem 0 0;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: var(--weight-heavy);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
}

.button-row--hero .button--primary {
  min-height: 48px;
  min-width: 7.5rem;
  font-size: .95rem;
}

/* ── Marquee ── */
.site-marquee {
  overflow: hidden;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  white-space: nowrap;
}

.site-marquee__track {
  display: inline-flex;
  animation: gnacf-marquee 40s linear infinite;
}

.site-marquee span {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
  color: var(--ink);
  font-size: .92rem;
  font-weight: var(--weight-heavy);
  letter-spacing: .04em;
}

.site-marquee span::after {
  margin-left: 2.5rem;
  color: var(--green);
  content: "/";
  font-weight: var(--weight-body);
}

@keyframes gnacf-marquee {
  to { transform: translateX(-50%); }
}

/* ── Sections ── */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) max(1.25rem, 4vw, 2.5rem);
}

.section--tint {
  width: 100%;
  padding-right: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  background: var(--canvas);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-heading h2,
.support-banner h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.section-heading--split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.text-link {
  color: var(--green-dark);
  font-weight: var(--weight-heavy);
  text-decoration: none;
  white-space: nowrap;
}

.text-link span {
  margin-left: .25rem;
  transition: transform .2s ease;
}

.text-link:hover span {
  display: inline-block;
  transform: translateX(3px);
}

/* ── Action cards ── */
.action-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .85rem;
}

.action-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.action-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--green);
  content: "";
  opacity: .35;
  transition: opacity .35s var(--ease), width .35s var(--ease);
}

.action-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(var(--shadow-tint), .1);
}

.action-card:hover::before {
  width: 4px;
  opacity: 1;
}

.action-card--featured {
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}

.action-card--featured::before {
  background: var(--accent);
  opacity: 1;
}

.action-card--featured:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.action-card__index {
  display: block;
  margin-bottom: auto;
  color: var(--green);
  font-size: .75rem;
  font-weight: var(--weight-heavy);
  letter-spacing: .1em;
}

.action-card--featured .action-card__index { color: #9fc7b8; }

.action-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--weight-display);
  line-height: 1.25;
}

.action-card p {
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

.action-card--featured p { color: #d5e4dc; }

/* ── Intro ── */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.home-intro__copy p:not(.kicker) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.home-intro figure { margin: 0; }

.home-intro img {
  width: 100%;
  aspect-ratio: 11 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(var(--shadow-tint), .12);
}

.home-intro figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .85rem;
}

/* ── Mission grid ── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}

.mission-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: end;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.mission-card:nth-child(even) { margin-top: 1.25rem; }

.mission-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.mission-card span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-display);
}

.mission-card p {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}

/* ── Collage ── */
.home-collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: .85rem;
}

.home-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.home-collage figure:first-child { grid-row: span 2; }

.home-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-collage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.75rem .85rem .65rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(12, 35, 34, .82));
  font-size: .8rem;
  font-weight: var(--weight-bold);
}

/* ── Support banner ── */
.support-banner {
  display: flex;
  width: min(100%, var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(1.5rem, 4vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3.5rem) max(1.25rem, 4vw, 2.5rem);
  border-left: 4px solid var(--green);
  background: var(--sand);
}

.support-banner > div:last-child {
  min-width: 220px;
  text-align: left;
}

.support-banner p:last-child {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .82rem;
}

/* ── Motion ── */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s var(--ease) var(--reveal-delay, 0ms),
    transform .7s var(--ease) var(--reveal-delay, 0ms);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-marquee__track { animation: none; }
  .has-motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .home-hero__stage {
    grid-template-columns: minmax(340px, 42%) 1fr;
    align-items: center;
    min-height: clamp(560px, 78vh, 720px);
  }

  .home-hero__picture {
    inset: 0 0 0 34%;
    border-radius: 0;
  }

  .home-hero__picture img {
    object-position: 50% 18%;
  }

  .home-hero__frame {
    top: 18%;
    right: auto;
    left: 33%;
    width: 4px;
    height: 52%;
  }

  .home-hero__panel {
    width: auto;
    max-width: 26rem;
    margin: 0 0 0 clamp(1.5rem, 4vw, 3rem);
    padding: 2rem 2rem 2.1rem 1.75rem;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
  }

  .home-intro,
  .support-banner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .action-card--featured { grid-column: 1 / -1; }
  .home-collage { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
}

@media (max-width: 767px) {
  .action-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .action-card { min-height: 170px; }
  .mission-card { min-height: 160px; }
  .mission-card:nth-child(even) { margin-top: 0; }

  .section-heading--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .home-collage figure:first-child { grid-row: auto; }
}

/* ── Large desktop ── */
@media (min-width: 1440px) {
  .home-hero__stage {
    min-height: clamp(620px, 82vh, 800px);
  }

  .home-hero__picture {
    inset: 0 0 0 38%;
  }

  .home-hero__panel {
    max-width: 30rem;
    padding: 2.5rem 2.5rem 2.6rem 2rem;
  }

  .home-hero h1 {
    font-size: clamp(3.2rem, 4vw, 4.75rem);
  }
}
