/* ============================================================
   Split Sets Foundation — splitsets.org
   Colors and type sampled from the Figma design file.
   Brand webfonts (licensed, self-hosted):
     Sackers Gothic Light · Apple Garamond Light · Scto Grotesk A
   Google-font fallbacks load only if a webfont file fails.
   ============================================================ */

@font-face {
  font-family: "Sackers Gothic";
  src: url("../assets/fonts/SackersGothic-Light.woff2") format("woff2"),
       url("../assets/fonts/SackersGothic-Light.woff") format("woff");
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Apple Garamond";
  src: url("../assets/fonts/AppleGaramond-Light.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apple Garamond";
  src: url("../assets/fonts/AppleGaramond-LightItalic.woff") format("woff");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Scto Grotesk A";
  src: url("../assets/fonts/SctoGroteskA-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream:   #EFEDEA;   /* main background */
  --cream-2: #F6F5F3;   /* home page background */
  --forest:  #0F4538;   /* deep green panels */
  --ink:     #1A2317;   /* forrest green text / dark banner */
  --blue:    #1F425E;   /* vintage court blue (footer) */
  --yellow:  #F4E287;   /* accent yellow */
  --white:   #FFFFFF;

  --gothic:  "Sackers Gothic", "Julius Sans One", "Copperplate", sans-serif;
  --serif:   "Apple Garamond", "EB Garamond", Garamond, Georgia, serif;
  --sans:    "Scto Grotesk A", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* overscroll colors: cream above the page, footer blue below it
     (kills the white bar under the footer on iOS) */
  background: linear-gradient(var(--cream) 50%, var(--blue) 50%);
}

/* home has no footer — keep its overscroll cream on both ends */
html:has(body.home) { background: var(--cream-2); }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* guard: nothing may widen the page past the viewport */
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- type helpers ---------- */

.gothic {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* everything set in the gothic face is uppercase, like Sackers Gothic */
.panel h2, .who h2, .eco-intro h1, .team-wrap h1, .member h3,
.donate-banner h1, .coming-soon h1, .btn-yellow, .menu-overlay a,
.footer-col h4, .home-hero h1, .home-nav, .quote blockquote,
.panel .plus-list { text-transform: uppercase; }

.serif { font-family: var(--serif); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background: var(--cream);
  height: 173px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 40px 0 49px;
  position: relative;
}

.site-header .logo img { width: 101px; height: auto; }

.burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  margin-top: 15px;
  display: block;
}

.burger span {
  display: block;
  width: 39px;
  height: 1.5px;
  background: var(--ink);
  margin-bottom: 6px;
}
.burger span:last-child { margin-bottom: 0; }

/* ---------- overlay menu ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

.menu-overlay a {
  font-family: var(--gothic);
  letter-spacing: 0.18em;
  font-size: 28px;
  color: var(--cream);
  transition: color .2s;
}
.menu-overlay a:hover { color: var(--yellow); }

.menu-close {
  position: absolute;
  top: 34px;
  right: 44px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
}

/* Desktop only: menu slides in from the right as a panel instead of covering the whole page */
@media (min-width: 821px) {
  .menu-overlay {
    inset: 0 0 0 auto;
    left: auto;
    width: 420px;
    max-width: 85vw;
    align-items: flex-start;
    padding: 0 70px;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.25);
    opacity: 1;
    visibility: visible;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .menu-overlay.open {
    transform: translateX(0);
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 33px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 7.5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .footer-logo img { width: 168px; height: auto; }

.footer-cols { display: flex; gap: 90px; }

.footer-col h4 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin-bottom: 22px;
  color: var(--white);
}

.footer-col p, .footer-col a { font-size: 16px; line-height: 30px; display: block; }
.footer-col a.u { text-decoration: underline; text-underline-offset: 3px; }
.footer-col a:hover { color: var(--yellow); }

/* ============================================================
   Shared sections
   ============================================================ */

/* 50/50 split: photo + green panel */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split > * { min-height: 100%; }

.split .photo { position: relative; overflow: hidden; }
.split .photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* section heights taken from the Figma frames (desktop) */
.about-hero { min-height: 700px; }
.statusquo  { min-height: 968px; }
.eco-1 { min-height: 1021px; }
.eco-2 { min-height: 967px; }
.eco-3 { min-height: 802px; }
.eco-4 { min-height: 947px; }

.panel {
  background: var(--forest);
  color: var(--cream);
  padding: 96px 13% 72px;
  display: flex;
  flex-direction: column;
}

.panel .eyebrow {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
  color: var(--white);
}

.panel h2 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: 0.16em;
  margin-bottom: 42px;
  color: var(--white);
}

.panel p { margin-bottom: 26px; font-size: 16px; line-height: 1.62; }

.panel .plus-list {
  font-family: var(--gothic);
  font-size: 18px;
  letter-spacing: 0.16em;
  line-height: 1.9;
  text-align: center;
  margin: 44px auto 0;
  max-width: 570px;
  color: var(--white);
}

/* full-width video still (play button baked into image) */
.video-band { display: block; }
.video-band img { width: 100%; }
.video-band .mobile { display: none; }

/* ============================================================
   Home
   ============================================================ */

body.home { background: var(--cream-2); }

.home-hero {
  display: grid;
  grid-template-columns: 719fr 721fr;
  min-height: 888px;
  position: relative;
}

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

.home-hero .intro {
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 53px 30px 0;
}

.home-hero .home-burger { position: absolute; top: 53px; right: 41px; margin: 0; z-index: 10; }

.home-hero .serif-line {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-top: 48px;
}

.home-hero h1 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.18em;
  margin-top: 6px;
  white-space: nowrap;
}

.home-hero .lede {
  max-width: 502px;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-top: 292px;
}

.home-nav {
  display: flex;
  gap: 42px;
  margin-top: 96px;
  font-family: var(--gothic);
  font-size: 18px;
  letter-spacing: 0.16em;
}
.home-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-hero .mini-logo { width: 73px; margin: 40px auto 47px; }

/* ============================================================
   About
   ============================================================ */

.about-hero .panel { padding-top: 112px; }
.about-hero .panel .eyebrow { margin-bottom: 8px; }
.about-hero .panel p { max-width: 390px; }

.who {
  text-align: center;
  padding: 92px 24px 100px;
}

.who h2 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.18em;
  margin-bottom: 40px;
}

.who .statement {
  font-family: var(--serif);
  font-size: 35px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 740px;
  margin: 0 auto 64px;
}

.who .statement u { text-underline-offset: 6px; text-decoration-thickness: 1px; }

.who .defs {
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
}

.who .defs p { margin-bottom: 40px; font-size: 16px; line-height: 1.55; }
.who .defs p:last-child { margin-bottom: 0; }

.who .defs .term {
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.statusquo .panel { justify-content: center; }
.statusquo .panel p { max-width: 528px; }

/* ============================================================
   Ecosystem
   ============================================================ */

.eco-intro { padding: 61px 82px 90px; }

.eco-intro .eyebrow {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.03em;
}

.eco-intro h1 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.18em;
  margin: 4px 0 26px;
}

.eco-intro p { font-size: 18px; max-width: 1253px; margin-bottom: 14px; }

.quote { text-align: center; padding: 120px 24px 130px; }

.quote blockquote {
  font-family: var(--gothic);
  font-size: 30px;
  line-height: 1.55;
  letter-spacing: 0.14em;
  max-width: 880px;
  margin: 0 auto 34px;
}

.quote cite {
  font-family: var(--serif);
  font-style: normal;
  font-size: 32px;
}

/* ============================================================
   Team
   ============================================================ */

.team-wrap { padding: 21px 117px 140px; }

.team-wrap h1 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.18em;
}

.team-wrap .sub { font-size: 18px; margin: 6px 0 66px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: space-between;
  row-gap: 157px;
}

.member img { width: 300px; height: 400px; object-fit: cover; }

.member h3 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.16em;
  margin-top: 13px;
}

.member p { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin-top: 2px; }

/* ============================================================
   Donate
   ============================================================ */

.donate-banner {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 133px 24px 113px;
}

.donate-banner h1 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.18em;
  margin-bottom: 30px;
}

.donate-banner p { font-size: 18px; line-height: 1.45; }

.btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 22px;
  letter-spacing: 0.18em;
  padding: 15px 51px;
  border-radius: 3px;
  margin-top: 44px;
  transition: filter .2s;
}
.btn-yellow:hover { filter: brightness(0.95); }

/* ============================================================
   Project (coming soon)
   ============================================================ */

.coming-soon {
  background: var(--yellow);
  min-height: 746px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon h1 {
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 60px;
  letter-spacing: 0.18em;
  text-transform: none;
}

/* ============================================================
   Mobile  (Figma mobile frames are 393px wide; breakpoint 820px)
   ============================================================ */

@media (max-width: 820px) {

  .site-header {
    height: 80px;
    padding: 14px 24px 0 20px;
    align-items: center;
  }
  .site-header .logo img { width: 52px; }
  .burger { margin-top: 0; }
  .burger span { width: 39px; }

  /* footer */
  .footer-inner {
    flex-direction: column;
    padding: 14px 32px 0;
  }
  .footer-cols { width: 100%; justify-content: space-between; gap: 24px; order: 1; }
  .footer-col h4 { font-size: 22px; }
  .footer-col p, .footer-col a { font-size: 17px; line-height: 34px; }
  .site-footer .footer-logo {
    order: 2;
    align-self: center;
    margin-top: 42px;
  }
  .site-footer .footer-logo img { width: 118px; }

  /* splits stack: photo first, then panel */
  .split { grid-template-columns: 1fr; min-height: 0 !important; }
  .split .photo > img { position: static; height: auto; }   /* plain photos only — never slideshow slides */
  .split .photo { order: 0; }
  .split .panel { order: 1; }
  .split.panel-first .panel { order: 1; }   /* photo always first on mobile */

  .panel { padding: 62px 37px 56px; }
  .panel .eyebrow { font-size: 21px; }
  .panel h2 { font-size: 19px; margin-bottom: 30px; }
  .panel .plus-list { font-size: 15px; }

  .video-band .desktop { display: none; }
  .video-band .mobile { display: block; }

  /* home — image first, then intro text (per mobile design) */
  .home-hero { grid-template-columns: 1fr; min-height: 0; position: relative; }
  .home-hero .photo { order: 0; padding: 104px 77px 0; background: var(--cream); }
  .home-hero .photo > img, .home-hero .photo picture img { height: auto; }
  .home-hero .intro { order: 1; padding: 0 24px; }
  .home-hero .home-burger { position: absolute; top: 22px; right: 24px; margin: 0; }
  .home-hero .serif-line { font-size: 20px; margin-top: 22px; }
  .home-hero h1 { font-size: 16.5px; white-space: nowrap; }
  .home-hero .lede { font-size: 13px; max-width: 320px; margin-top: 27px; }
  .home-nav { display: none; }
  .home-hero .mini-logo { margin: 34px auto 66px; }
  body.home .site-footer { display: none; }

  /* ecosystem photos float on cream between green blocks (per mobile design) */
  .split.eco .photo { background: var(--cream); padding: 45px 45px 55px; }
  .split.eco .photo > img { height: auto; }

  /* status quo has no photo on mobile */
  .statusquo .photo { display: none; }

  /* about */
  .about-hero .panel { padding: 62px 47px 74px; }
  .who { padding: 74px 28px 90px; }
  .who h2 { font-size: 24px; margin-bottom: 28px; }
  .who .statement { font-size: 27px; max-width: 340px; margin-bottom: 44px; }
  .who .defs { max-width: 340px; }
  .who .defs .term { font-size: 19px; }

  /* ecosystem */
  .eco-intro { padding: 23px 18px 0; }
  .eco-intro .eyebrow { font-size: 20px; }
  .eco-intro h1 { font-size: 21px; margin: 2px 0 18px; }
  .eco-intro p { font-size: 16px; }
  .eco-photo-float { padding: 0 58px 50px; background: var(--cream); }
  .quote { padding: 74px 40px 60px; }
  .quote blockquote { font-size: 20px; }
  .quote cite { font-size: 24px; }

  /* team */
  .team-wrap { padding: 13px 30px 110px; }
  .team-wrap h1 { font-size: 22px; }
  .team-wrap .sub { font-size: 15px; margin: 4px 0 32px; }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 43px;
    row-gap: 56px;
  }
  .member img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .member h3 { font-size: 14px; margin-top: 7px; }
  .member p { font-size: 13px; }

  /* donate */
  .donate-banner { padding: 51px 30px 60px; }
  .donate-banner h1 { font-size: 19px; margin-bottom: 18px; }
  .donate-banner p { font-size: 15px; }
  .btn-yellow { font-size: 13px; padding: 8px 27px; margin-top: 26px; }

  /* project */
  .coming-soon { min-height: 499px; }
  .coming-soon h1 { font-size: 22px; }
}

/* ============================================================
   Real-brand-font retuning
   Sackers Gothic has wide built-in letterspacing, so sizes go
   back to the Figma values and tracking goes slightly negative
   (Figma used -3%). These override the fallback-font tuning.
   ============================================================ */

.gothic, .menu-overlay a, .panel h2, .home-hero h1, .home-nav,
.footer-col h4, .who h2, .eco-intro h1, .quote blockquote,
.team-wrap h1, .member h3, .donate-banner h1, .coming-soon h1,
.btn-yellow, .panel .plus-list { letter-spacing: -0.03em; }

.panel h2       { font-size: 36px; }
.who h2         { font-size: 40px; }
.eco-intro h1   { font-size: 40px; }
.home-hero h1   { font-size: 36px; }
.team-wrap h1   { font-size: 36px; }
.donate-banner h1 { font-size: 40px; }
.coming-soon h1 { font-size: 64px; }
.who .statement { font-size: 38px; }

@media (max-width: 820px) {
  .panel h2       { font-size: 24px; }
  .who h2         { font-size: 24px; }
  .eco-intro h1   { font-size: 22px; }
  .home-hero h1   { font-size: 18px; }
  .team-wrap h1   { font-size: 22px; }
  .donate-banner h1 { font-size: 24px; }
  .coming-soon h1 { font-size: 26px; }
  .who .statement { font-size: 27px; }
}

/* ============================================================
   Slideshows (auto-advance, no user controls)
   ============================================================ */

.slideshow {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s ease;
}

/* outgoing slide stays fully visible beneath the incoming one,
   so the crossfade never exposes the page background */
.slideshow img.prev   { opacity: 1; z-index: 1; }
.slideshow img.active { opacity: 1; z-index: 2; }

@media (max-width: 820px) {
  /* in stacked mobile flow the slideshow needs its own height */
  .home-hero .photo .slideshow { aspect-ratio: 1498 / 1850; height: auto; }
  .split .photo .slideshow     { aspect-ratio: 1503 / 1974; height: auto; }
  .slideshow img { position: absolute; height: 100%; } /* keep covering inside the box */
}

/* ============================================================
   Video lightbox (Vimeo embed)
   ============================================================ */

.video-band { cursor: pointer; }

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 14, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.video-modal.open { opacity: 1; visibility: visible; }

.video-modal .frame {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-modal .video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
