/* ==========================================================================
   GSA — Section compositions (homepage + inner pages)
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-hero);
  color: var(--ink-body);
  padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(3.5rem, 2rem + 5vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(46% 60% at 76% 44%, rgba(140, 236, 243, 0.42), transparent 66%),
    radial-gradient(50% 62% at 2% 92%, rgba(131, 214, 153, 0.34), transparent 64%),
    radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-body);
  margin-bottom: var(--space-md);
}

.hero__eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea-500);
  animation: beacon 2.4s var(--ease) infinite;
}

@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 3px rgba(60, 191, 168, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(60, 191, 168, 0.05); }
}

.hero h1 {
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.hero h1 .accent-line { color: var(--sea-700); display: block; }

.hero__lead { max-width: 56ch; font-size: var(--fs-lead); color: var(--ink-body); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--divider);
}

.hero__meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--sea-700);
}

.hero__meta div span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__visual { position: relative; display: grid; place-items: center; }

.hero__globe {
  width: min(100%, 620px);
  border-radius: 50%;
  animation: float-slow 9s ease-in-out infinite;
  box-shadow: 0 40px 80px -40px rgba(24, 59, 51, 0.45);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(10px); }
}

.hero__ring {
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  border: 1px dashed var(--sea-300);
  animation: spin-slow 46s linear infinite;
  pointer-events: none;
}

.hero__ring::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sea-500);
  box-shadow: 0 0 16px 4px rgba(60, 191, 168, 0.45);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--sea-500); flex: none; }
.hero__badge--a { top: 8%; left: -2%; animation: float-slow 7s ease-in-out infinite; }
.hero__badge--b { bottom: 12%; right: -1%; animation: float-slow 8.5s ease-in-out infinite reverse; }
.hero__badge--b i { background: var(--green-500); }

/* Ticker strip under hero --------------------------------------------------- */
.ticker {
  background: var(--soft-mint);
  border-block: 1px solid var(--border);
  padding-block: 0.9rem;
  color: var(--ink-body);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sea-700);
}

.ticker__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex: none;
}

/* About (split with image + read-more) --------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
  align-items: stretch;
}

/* The copy column is taller than a single photograph, so the media column is a
   stack: primary frame + stat plate + a secondary frame that flexes to absorb
   whatever height is left. Both columns then finish level. */
.about-media {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-media__frame {
  position: relative;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-media__frame { display: flex; }
.about-media__frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; display: block; }

/* No secondary frame in this section: the primary photo absorbs the slack. */
.about-media:not(:has(.about-media__extra)) .about-media__frame { flex: 1 1 auto; }
.about-media:not(:has(.about-media__extra)) .about-media__frame img { height: 100%; }

/* Stat plate: flush with the frame, so both edges align and nothing overlaps
   the photograph. */
.about-media__badge {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: clamp(1rem, 0.85rem + 0.5vw, 1.35rem) clamp(1.15rem, 1rem + 0.6vw, 1.6rem);
  background-image: linear-gradient(var(--pure-white), var(--pure-white)), var(--rule);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.about-media__badge strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.3rem + 0.9vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  color: var(--sea-700);
  flex: none;
}

.about-media__badge span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Secondary frame: grows into the leftover column height. */
.about-media__extra {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(150px, 13vw, 250px);
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.about-media__extra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}

.about-media__extra:hover img { transform: scale(1.04); }

.about-media__extra figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(0.9rem, 0.7rem + 0.5vw, 1.25rem);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pure-white);
  background: linear-gradient(180deg, rgba(24, 59, 51, 0) 0%, rgba(24, 59, 51, 0.86) 70%);
}

.principles { display: grid; gap: 0.85rem; margin-block: var(--space-md) var(--space-lg); }

.principles li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.band-dark .principles li,
.band-deep .principles li { color: var(--on-deep); }

.principles li svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--green-600); }
.band-dark .principles li svg,
.band-deep .principles li svg { color: var(--sea-400); }
.principles li em { font-style: normal; color: var(--ink-muted); font-weight: 400; }
.band-dark .principles li em,
.band-deep .principles li em { color: var(--on-deep-muted); }

.readmore__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease);
}

.readmore__more > div { overflow: hidden; }
.readmore.is-open .readmore__more { grid-template-rows: 1fr; }

/* Enables (bento) ----------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
}

.bento > * { grid-column: span 2; }
.bento > .bento--wide { grid-column: span 3; }
.bento > .bento--full { grid-column: span 6; }

.bento--feature {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--sea-200) 0%, var(--green-100) 100%);
  border: 1px solid var(--sea-300);
  color: var(--ink-body);
}

.bento--feature h3 { color: var(--ink); }
.bento--feature .card__icon { background: rgba(255, 255, 255, 0.85); color: var(--sea-700); }
.bento--feature .pull-quote { color: var(--ink); border-left-color: var(--green-500); }

/* Stats band ---------------------------------------------------------------- */
.stats-band { position: relative; overflow: hidden; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--deep-line);
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stats-grid .stat { background: var(--deep); padding-block: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }

/* Five columns need a tighter numeral than the standalone stat block. */
.stats-grid .stat__value { font-size: clamp(1.75rem, 1.1rem + 1.7vw, 2.9rem); white-space: nowrap; }
.stats-grid .stat__label { font-size: 0.78rem; }

/* Light variant of the stats band */
.band-mint .stats-grid,
.band-aqua .stats-grid,
.band-light .stats-grid,
.band-paper .stats-grid { background: var(--divider); border-color: var(--divider); }

.band-mint .stats-grid .stat,
.band-aqua .stats-grid .stat,
.band-light .stats-grid .stat,
.band-paper .stats-grid .stat { background: var(--pure-white); }

/* Pillars ------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }

/* Engagement model ---------------------------------------------------------- */
.engagement {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  align-items: start;
}

.engagement__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }

/* Differentiators ----------------------------------------------------------- */
.diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }

.diff {
  display: flex;
  gap: var(--space-md);
  padding: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--radius-sm);
  background: var(--pure-white);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.diff:hover { border-color: var(--sea-300); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.diff__num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-ink);
  flex: none;
}

.diff p { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.5; }

.band-dark .diff,
.band-deep .diff { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.band-dark .diff p,
.band-deep .diff p { color: var(--on-deep); }
.band-dark .diff__num,
.band-deep .diff__num { color: var(--sea-400); }

/* Leaders / people grids ---------------------------------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.people-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Initiatives --------------------------------------------------------------- */
.initiatives { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.initiatives .tile--span2 { grid-column: span 2; }

/* Members marquee band ------------------------------------------------------ */
.members__head { text-align: center; margin-bottom: var(--space-lg); }

/* PlanetBuddy --------------------------------------------------------------- */
.planet {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-md);
  padding: clamp(2rem, 1.4rem + 3vw, 4rem);
  background: var(--deep);
  color: var(--on-deep-body);
}

.planet__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.planet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(24, 59, 51, 0.96) 34%, rgba(26, 112, 98, 0.72) 100%);
}

.planet__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-xl); align-items: center; }
.planet h2 { color: var(--on-deep); }
.planet .eyebrow { color: var(--sea-400); }
.planet .lead { color: var(--on-deep-body); }

.planet__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }

.planet__stat {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.planet__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  color: var(--on-deep);
  line-height: 1.1;
}

.planet__stat > span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-deep-muted); }

/* CTA ----------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: center;
}

.cta-band h2 { margin-bottom: 0.5rem; }

/* Events -------------------------------------------------------------------- */
.event-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: center;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--pure-white);
  transition: all var(--dur) var(--ease);
}

.event-card:hover { border-color: var(--sea-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.event-card__date {
  display: grid;
  place-items: center;
  align-content: center;
  padding: var(--space-sm);
  border-radius: var(--radius-xs);
  background: var(--deep);
  color: var(--pure-white);
  text-align: center;
  min-height: 100px;
}

.event-card__date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--pure-white);
  line-height: 1.1;
}

.event-card__date span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sea-400); }
.event-card__body h3 { margin-bottom: 0.35rem; font-size: var(--fs-h4); }
.event-card__body p { margin: 0; font-size: 0.95rem; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 0.75rem; }

.archive-year {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--divider);
}

.archive-year__label {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sea-500);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}

.archive-list { display: grid; gap: var(--space-sm); }

.archive-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--pure-white);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  transition: all var(--dur) var(--ease);
}

.archive-list a:hover { border-color: var(--sea-500); transform: translateX(5px); color: var(--brand-ink); }
.archive-list svg { width: 16px; height: 16px; flex: none; }

/* Resources ----------------------------------------------------------------- */
.resource {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--pure-white);
  height: 100%;
  transition: all var(--dur) var(--ease);
}

.resource:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--sea-300); }
.resource__type { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); font-weight: 700; }
.resource h3 { font-size: var(--fs-h5); margin-bottom: 0; }
.resource p { font-size: 0.95rem; }
.resource .link-arrow { margin-top: auto; }

/* Contact ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  align-items: start;
}

.contact-list { display: grid; gap: var(--space-md); }

.contact-list li {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--pure-white);
}

.band-dark .contact-list li,
.band-deep .contact-list li { border-color: var(--deep-line); background: rgba(255, 255, 255, 0.06); }

.contact-list__icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--sea-100);
  color: var(--sea-700);
}

.band-dark .contact-list__icon,
.band-deep .contact-list__icon { background: rgba(122, 223, 208, 0.18); color: var(--sea-300); }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-family: var(--font-display); margin-bottom: 0.2rem; color: var(--ink); }
.band-dark .contact-list strong,
.band-deep .contact-list strong { color: var(--on-deep); }
.contact-list a:hover { color: var(--brand-ink); }
.band-dark .contact-list a:hover,
.band-deep .contact-list a:hover { color: var(--sea-400); }

.form-card {
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--pure-white);
  box-shadow: var(--shadow-sm);
}

.band-dark .form-card,
.band-deep .form-card { border-color: var(--deep-line); background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.form-grid .field--full { grid-column: 1 / -1; }

.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 320px;
  background: var(--surface-1);
}

.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
