/* ==========================================================================
   PLATES TO PURPOSE — STYLESHEET
   --------------------------------------------------------------------------
   HOW THIS FILE IS ORGANIZED
   1. Design tokens (brand colors, fonts, spacing) — edit these to re-theme
   2. Base styles (reset, typography)
   3. Layout helpers (containers, sections, grids)
   4. Header & footer
   5. Reusable components (buttons, cards, eyebrows, stats)
   6. Page-specific sections (hero, route, team, press, steps, etc.)
   7. Scroll-animation states
   8. Responsive breakpoints are placed next to the rules they modify
   ========================================================================== */


/* 1. DESIGN TOKENS ------------------------------------------------------- */
/*    Colors are sampled from the PTP logo: apple green + sky blue.         */

:root {
  /* Brand colors — single-color scheme built on PTP green, with warm
     neutrals. NOTE: the --blue variables are kept only so older class
     names keep working; they now hold green/warm values. */
  --green:       #58B32C;   /* primary — logo green */
  --green-deep:  #3F8C1E;   /* hover / emphasis */
  --green-soft:  #79B84E;   /* lighter companion green */
  --green-tint:  #F3F6EC;   /* soft warm-green section background */
  --blue:        #79B84E;   /* (compat) = green-soft */
  --blue-deep:   #3F8C1E;   /* (compat) = green-deep */
  --blue-tint:   #F8F6EF;   /* (compat) = warm sand section background */

  /* Neutrals — warmed up */
  --ink:         #27301E;   /* headings + body text (green-tinted charcoal) */
  --muted:       #6B7059;   /* secondary text (warm) */
  --paper:       #FDFCF8;   /* page background (warm cream) */
  --white:       #FFFFFF;
  --line:        #E8E6DA;   /* warm borders and dividers */

  /* Typography */
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body:    "Figtree", "Segoe UI", sans-serif;

  /* Layout */
  --container:   1120px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 10px 30px rgba(34, 48, 30, 0.08);
  --shadow-soft: 0 4px 14px rgba(34, 48, 30, 0.06);
}


/* 2. BASE ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;             /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-deep); }

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


/* 3. LAYOUT HELPERS ------------------------------------------------------ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section       { padding: 84px 0; }
.section--tint { background: var(--green-tint); }
.section--blue { background: var(--blue-tint); }

.section-intro {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}


/* 4. HEADER & FOOTER ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
/* .is-scrolled is added by js/scroll.js once the page scrolls */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 44px; height: auto; }
/* On the dark footer, the logo sits on a small white chip so its
   white fork-and-swoosh details stay visible. */
.site-footer .brand img {
  background: var(--white);
  border-radius: 10px;
  padding: 4px 6px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-name span { color: var(--green-deep); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { background: var(--green-tint); color: var(--green-deep); }
.main-nav a.is-active { color: var(--green-deep); font-weight: 700; }

/* Dropdown menus (About, Chapters) */
.nav-item { position: relative; }

.nav-item > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-item > button:hover { background: var(--green-tint); color: var(--green-deep); }
.nav-item > button.is-active { color: var(--green-deep); font-weight: 700; }
.nav-item > button::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.nav-item.is-open .dropdown,
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }

.dropdown a { padding: 9px 12px; }

.nav-cta {
  margin-left: 8px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: flex; }

  .nav-item > button { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: none;
  }
  .nav-cta { margin: 10px 0 0; }
}

.site-footer {
  background: var(--ink);
  color: #E7EEE3;
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #C9E4B8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-tagline { color: #A9BCA2; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #A9BCA2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}


/* 5. REUSABLE COMPONENTS ------------------------------------------------- */

/* Small colored label above a heading */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.eyebrow--blue { color: var(--blue-deep); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); }

.btn--outline { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn--outline:hover { background: var(--green-tint); }

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-deep);
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.card-icon--blue { background: var(--blue-tint); color: var(--blue-deep); }

/* Big statistic blocks */
.stat-card {
  text-align: center;
  padding: 34px 24px;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card--blue .stat-number { color: var(--blue-deep); }
.stat-label { color: var(--muted); font-weight: 500; }

/* Photo frame used across pages */
.photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }


/* 6. PAGE SECTIONS ------------------------------------------------------- */

/* --- Home hero --- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

.hero-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 18px;
}

.hero h1 span { color: var(--green-deep); }

.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 520px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-photo { aspect-ratio: 4 / 3; }

/* Decorative swoosh behind the hero, echoing the logo orbit */
.hero-swoosh {
  position: absolute;
  top: -60px;
  right: -140px;
  width: 560px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* --- Rescue route (signature scroll element, home page) --- */
.route-section { position: relative; }
.route-track   { position: relative; }

.route-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 120px;
  pointer-events: none;
}
/* The route is two stacked paths:
   - .route-guide: a faint dashed line, always visible (the "map route")
   - .route-path:  a solid green line that draws over it as you scroll   */
.route-guide {
  stroke: var(--line);
  stroke-width: 3;
  stroke-dasharray: 10 12;
  fill: none;
}
.route-path {
  stroke: var(--green);
  stroke-width: 3.5;
  fill: none;
  opacity: 0.85;
}

.route-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 46px 0;
}
.route-step:nth-of-type(even) .route-text  { order: 2; }
.route-step:nth-of-type(even) .route-photo { order: 1; }
@media (max-width: 820px) {
  .route-svg { display: none; }
  .route-step { grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
  .route-step:nth-of-type(even) .route-text  { order: 1; }
  .route-step:nth-of-type(even) .route-photo { order: 2; }
}

.route-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.route-photo { aspect-ratio: 3 / 2; }

/* --- Mission page: side-by-side stats visual --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 720px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  color: var(--white);
}
.problem-card--waste  { background: linear-gradient(150deg, var(--green-soft) 0%, var(--green) 100%); }
.problem-card--hunger { background: linear-gradient(150deg, var(--green-deep) 0%, #2F6B15 100%); }

.problem-card .stat-number { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.4rem); }
.problem-card .problem-label {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 6px 0 10px;
}
.problem-card p { color: rgba(255, 255, 255, 0.92); font-size: 0.98rem; }

/* --- Team page --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
}
.team-name { font-size: 1.2rem; margin-bottom: 2px; }
.team-role { color: var(--green-deep); font-weight: 600; font-size: 0.95rem; }

/* --- Press page --- */
.press-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
@media (max-width: 680px) { .press-card { grid-template-columns: 1fr; } }

.press-thumb { min-height: 200px; }
.press-thumb img { width: 100%; height: 100%; object-fit: cover; }
.press-body { padding: 28px; }
.press-source {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.press-excerpt { color: var(--muted); font-size: 0.98rem; }
.press-link { font-weight: 700; text-decoration: none; }

/* --- Chapters / steps --- */
.step-list { counter-reset: step; display: grid; gap: 22px; max-width: 780px; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.step-num {
  counter-increment: step;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}
.step-num::before { content: counter(step); }

/* --- Partners page --- */
.partner-group { margin-bottom: 44px; }
.partner-group:last-child { margin-bottom: 0; }
.partner-group h3 {
  color: var(--green-deep);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.partner-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Small colored dot before each partner name.
   Replace with <img> logos when you collect them. */
.partner-list li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.sponsor-card { text-align: center; }
.sponsor-logo {
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.sponsor-logo img { max-height: 90px; width: auto; margin: 0 auto; }
.sponsor-amount {
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* --- Impact page --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }
.gallery .photo { aspect-ratio: 4 / 3; }

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 18px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.form-note { font-size: 0.9rem; color: var(--muted); }

.contact-info-card { display: grid; gap: 16px; }
.contact-line { display: flex; gap: 12px; align-items: baseline; }
.contact-line strong { min-width: 90px; }

/* --- Page hero (interior pages) --- */
.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(1100px 420px at 85% -80px, var(--blue-tint) 0%, transparent 60%),
    radial-gradient(900px 420px at 5% -60px, var(--green-tint) 0%, transparent 55%);
}
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.1rem; }

/* --- Call-to-action band --- */
.cta-band {
  background: linear-gradient(130deg, var(--green-deep) 0%, var(--green) 60%, var(--green-soft) 130%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn--green { background: var(--white); color: var(--green-deep); }
.cta-band .btn--green:hover { background: var(--green-tint); }
@media (max-width: 620px) { .cta-band { padding: 40px 24px; } }


/* 7. SCROLL-ANIMATION STATES --------------------------------------------- */
/* js/scroll.js adds the "js" class to <html> when it runs, then adds
   .is-visible to each .reveal element as it scrolls into view.
   Scoping to html.js means content is NEVER hidden if JavaScript is off.   */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger children slightly for grids */
html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Users who prefer reduced motion get everything instantly, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .route-path { stroke-dashoffset: 0 !important; }
}


/* ==========================================================================
   ADDITIONS — second revision
   ========================================================================== */

/* --- Home hero photo banner (professional photo + tagline quote) --- */
.hero-banner {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-banner img.hero-banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dark green wash so the quote stays readable over the photo */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 16, 0.45) 0%, rgba(20, 32, 16, 0.62) 100%);
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
  max-width: 880px;
}
.hero-banner-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
.hero-banner-attrib {
  margin-top: 16px;
  color: #CFE8BC;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* --- Team flip cards (photo flips to a short bio on hover/tap/focus) --- */
.flip {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  perspective: 1100px;
  cursor: pointer;
}
.flip-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.flip:hover .flip-inner,
.flip:focus-visible .flip-inner,
.flip.is-flipped .flip-inner {          /* .is-flipped = tapped on touch */
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  padding: 26px;
  text-align: left;
}
.flip-back p { color: rgba(255,255,255,0.95); font-size: 0.95rem; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* --- Press: video card + reserved slot --- */
.press-thumb--video { position: relative; }
.press-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.press-play span {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.press-play span::after {
  content: "";
  margin-left: 5px;
  border-left: 20px solid var(--green-deep);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.press-reserved {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  padding: 40px 28px;
  text-align: center;
  color: var(--muted);
}
.press-reserved h3 { color: var(--muted); }

/* --- Start a Chapter: animated timeline --- */
.timeline {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}
/* Center spine */
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--line);
  border-radius: 2px;
}
.tl-step {
  position: relative;
  width: calc(50% - 44px);
  padding: 26px 28px;
  margin-bottom: 34px;
}
.tl-step:nth-of-type(odd)  { left: 0; }
.tl-step:nth-of-type(even) { left: calc(50% + 44px); }

/* Numbered node on the spine */
.tl-num {
  position: absolute;
  top: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  border: 4px solid var(--paper);
  z-index: 1;
}
.tl-step:nth-of-type(odd)  .tl-num { right: -70px; }
.tl-step:nth-of-type(even) .tl-num { left: -70px; }

@media (max-width: 760px) {
  .timeline::before { left: 25px; }
  .tl-step,
  .tl-step:nth-of-type(even) { width: auto; left: 0; margin-left: 64px; }
  .tl-step:nth-of-type(odd) .tl-num,
  .tl-step:nth-of-type(even) .tl-num { left: -64px; right: auto; }
}

/* Slide-in reveals (used by the timeline; js/scroll.js adds .is-visible) */
html.js .reveal-left  { opacity: 0; transform: translateX(-44px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal-right { opacity: 0; transform: translateX(44px);  transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal-left.is-visible,
html.js .reveal-right.is-visible { opacity: 1; transform: none; }
@media (max-width: 760px) {
  /* On mobile all steps sit on one side, so slide up instead */
  html.js .reveal-left, html.js .reveal-right { transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal-left, html.js .reveal-right { opacity: 1; transform: none; transition: none; }
}

/* --- Partners: green section + scrolling marquee --- */
.section--green {
  background: linear-gradient(150deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--white);
}
.section--green h2, .section--green h3 { color: var(--white); }
.section--green .card h3 { color: var(--ink); }   /* titles inside white cards stay dark */
.section--green .eyebrow { color: #DFF3CE; }
.section--green .section-intro p { color: rgba(255,255,255,0.92); }
.section--green p { color: rgba(255,255,255,0.92); }
.section--green .card p { color: var(--muted); }   /* cards stay white inside */
.section--green .btn--green { background: var(--white); color: var(--green-deep); }
.section--green .btn--green:hover { background: var(--green-tint); }

.marquee-group { margin-bottom: 34px; }
.marquee-group:last-child { margin-bottom: 0; }
.marquee-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
  text-align: center;
}

.marquee {
  overflow: hidden;
  /* Fade the edges so chips glide in and out smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-chip {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.marquee-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* track holds two copies of the list */
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}


/* ==========================================================================
   ADDITIONS — third revision
   ========================================================================== */

/* --- Green hero banner (photo swapped out until the new group photo) --- */
.hero-banner--green {
  background: linear-gradient(140deg, var(--green-deep) 0%, var(--green) 60%, #7BC94F 100%);
  min-height: 380px;
}
.hero-banner--green::after { display: none; }   /* no dark wash needed on green */

/* Slow-drifting swoosh accents inside the banner */
.banner-swoosh {
  position: absolute;
  width: 620px;
  pointer-events: none;
}
.banner-swoosh--1 { left: -80px;  bottom: -40px; animation: swoosh-drift 11s ease-in-out infinite; }
.banner-swoosh--2 { right: -100px; top: -50px;   animation: swoosh-drift 14s ease-in-out infinite reverse; }

@keyframes swoosh-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(14px, -10px) rotate(1.2deg); }
}

/* --- Scroll progress bar (site-wide) ---
   A thin green line under the header that fills as you read — a small nod
   to the "follow the food" route. Created by js/scroll.js. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green-deep) 0%, var(--green) 100%);
  z-index: 60;
  pointer-events: none;
}

/* --- Gentle hover lift on cards and photos (subtle, site-wide) --- */
.card, .photo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover  { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo:hover { transform: translateY(-4px); }

/* Photos also zoom very slightly inside their frame */
.photo img { transition: transform 0.5s ease; }
.photo:hover img { transform: scale(1.03); }

/* Sponsor logos start muted and warm up on hover */
.sponsor-logo img { filter: grayscale(45%); opacity: 0.9; transition: filter 0.3s ease, opacity 0.3s ease; }
.sponsor-card:hover .sponsor-logo img { filter: none; opacity: 1; }

/* Center the text inside marquee chips (name above the sub-label) */
.marquee-chip { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .banner-swoosh--1, .banner-swoosh--2 { animation: none; }
  .card, .photo, .photo img, .sponsor-logo img { transition: none; }
  .card:hover, .photo:hover { transform: none; }
  .photo:hover img { transform: none; }
}


/* --- Chapter map (chapters.html) --- */
.map-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.us-map { width: 100%; height: auto; display: block; }

.map-nation {
  fill: var(--blue-tint);              /* warm sand landmass */
  stroke: var(--green-deep);
  stroke-width: 1.2;
}
.map-states {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.8;
}

.map-dot {
  cursor: pointer;
  transition: r 0.2s ease;
  outline: none;
}
.map-dot--active {
  fill: var(--green);
  stroke: var(--white);
  stroke-width: 2.5;
}
.map-dot--launching {
  fill: var(--paper);
  stroke: var(--green);
  stroke-width: 3;
}
.map-dot:hover, .map-dot:focus-visible, circle.map-dot.is-hot { r: 13; }
.map-dot:focus-visible { stroke: var(--green-deep); }

/* Gentle pulse on the founding-chapter area is intentionally omitted —
   dots stay still, only growing on hover, to keep the map calm. */

.map-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: var(--shadow);
}
.map-tooltip.is-visible { opacity: 1; }
/* Small arrow under the tooltip */
.map-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: -2px;
}
.legend-dot--active    { background: var(--green); }
.legend-dot--launching { background: var(--paper); border: 3px solid var(--green); }

.map-intl {
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
}


/* Southlake chapter members (chapters.html) — label + name chips */
.chapter-team {
  margin-top: 22px;
}
.chapter-team-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.chapter-team-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chapter-team-names span {
  background: var(--green-tint);
  border: 1.5px solid var(--green);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
}


/* Business partner monogram badges inside marquee chips.
   Swap for real logos via <img class="chip-logo-img"> (see partners.html). */
.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chip-logo {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.chip-logo--deep { background: var(--green-deep); }
.chip-logo--mid  { background: var(--green); }
.chip-logo--soft { background: var(--green-soft); }
.chip-logo-img {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
}


/* --- Chapter leadership cards (map hover + international) --- */
.map-tooltip { text-align: left; padding: 12px 14px; }
.tt-chapter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #CFE8BC;
}
.ldr { display: flex; align-items: center; gap: 10px; }
.ldr + .ldr { margin-top: 8px; }
.ldr-avatar {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
}
.ldr-photo {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.ldr-name { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.ldr-role { font-size: 0.8rem; opacity: 0.85; }

.intl-cards {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.intl-card { padding: 20px 24px; min-width: 260px; }
.intl-card .ldr-meta .ldr-role { color: var(--muted); opacity: 1; }
.intl-city {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}
.intl-city em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}


/* Larger leader photos in the international cards */
.ldr-photo--lg { width: 56px; height: 56px; }
.intl-card .ldr + .ldr { margin-top: 12px; }


/* Founding-chapter star on the map */
.map-dot--founding {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}
.map-dot--founding:hover,
.map-dot--founding:focus-visible,
.map-dot--founding.is-hot { transform: scale(1.25); }

.legend-star {
  width: 18px; height: 18px;
  fill: var(--green);
  stroke: var(--white);
  stroke-width: 1.5;
  vertical-align: -3px;
  margin-right: 6px;
}
