/* =========================================================
   The Unity Network — Design System
   Brand: black / charcoal / signal red / white
   Type: Space Grotesk (display) + Inter (body)
   ========================================================= */

:root{
  --black:#0a0a0a;
  --charcoal:#151515;
  --charcoal-2:#1f1f1f;
  --red:#e7222c;
  --red-dark:#b81823;
  --red-light:#ffe7e8;
  --white:#ffffff;
  --offwhite:#faf9f8;
  --gray-100:#f2f1f0;
  --gray-200:#e7e5e3;
  --gray-300:#d8d5d2;
  --gray-500:#8a8785;
  --gray-700:#4a4846;
  --ink:#161412;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-full:999px;

  --shadow-sm:0 1px 2px rgba(10,10,10,.06), 0 1px 1px rgba(10,10,10,.04);
  --shadow-md:0 12px 28px -12px rgba(10,10,10,.18);
  --shadow-lg:0 24px 48px -16px rgba(10,10,10,.28);

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;

  --container:1180px;
  --font-display:'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:'Inter', 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
input,textarea,select{ font-family:inherit; font-size:16px; }

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

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}
@media (max-width:640px){ .container{ padding-inline:18px; } }

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.chip:focus-visible{
  outline:2.5px solid var(--red);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute;
  left:16px; top:-60px;
  background:var(--black); color:var(--white);
  padding:12px 20px; border-radius:var(--radius-sm);
  font-weight:600; z-index:1000;
  transition:top .2s ease;
}
.skip-link:focus{ top:16px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--gray-200);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  min-height:76px;
  gap:var(--space-4);
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display);
  font-weight:700; font-size:1.15rem;
  color:var(--ink);
  min-height:44px; white-space:nowrap;
}
.brand img{ height:36px; width:auto; }

.nav-links{
  display:flex; align-items:center; gap:2px;
  background:var(--gray-100);
  padding:6px; border-radius:var(--radius-full);
}
.nav-links a{
  display:inline-flex; align-items:center;
  padding:10px 14px;
  border-radius:var(--radius-full);
  font-size:.92rem; font-weight:600;
  color:var(--gray-700);
  white-space:nowrap;
  transition:background .18s ease, color .18s ease;
}
.nav-links a:hover{ color:var(--ink); background:var(--gray-200); }
.nav-links a.active{ background:var(--red); color:var(--white); }

.nav-cta{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--black); color:var(--white);
  padding:12px 22px; border-radius:var(--radius-full);
  font-weight:600; font-size:.92rem;
  white-space:nowrap;
  transition:background .18s ease, transform .18s ease;
}
.nav-cta:hover{ background:var(--red); transform:translateY(-1px); }

.nav-toggle{
  display:none;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  background:var(--gray-100); border:none; border-radius:var(--radius-sm);
  cursor:pointer;
}
.nav-toggle svg{ width:22px; height:22px; }

@media (max-width:1260px){
  .nav-links{
    position:fixed; inset:76px 16px auto 16px;
    flex-direction:column; align-items:stretch;
    background:var(--white);
    border:1px solid var(--gray-200);
    border-radius:var(--radius-lg);
    padding:10px;
    box-shadow:var(--shadow-lg);
    display:none;
    max-height:calc(100vh - 100px);
    overflow-y:auto;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:14px 16px; border-radius:var(--radius-sm); min-height:44px; }
  .nav-toggle{ display:inline-flex; }
  .nav-cta{ padding:10px 16px; font-size:.85rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  background:var(--black);
  color:var(--white);
  overflow:hidden;
  padding-block:var(--space-9) var(--space-8);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(760px 520px at 78% 18%, rgba(231,34,44,.55), transparent 60%),
    radial-gradient(600px 400px at 15% 90%, rgba(231,34,44,.22), transparent 65%);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; max-width:760px; }
.hero.hero-narrow .hero-inner{ max-width:760px; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);
  color:var(--white);
  padding:8px 16px; border-radius:var(--radius-full);
  font-size:.78rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:var(--space-5);
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--red); flex:none; }

.hero h1{
  font-size:clamp(2.2rem, 5.2vw, 3.75rem);
  color:var(--white);
  margin-bottom:var(--space-5);
}
.hero h1 .accent{ color:var(--red); }
.hero p.lead{
  font-size:clamp(1rem, 1.6vw, 1.2rem);
  color:rgba(255,255,255,.78);
  max-width:56ch;
  margin-bottom:var(--space-6);
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }

.stat-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
}
.stat-card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-lg);
  padding:26px 24px;
  box-shadow:var(--shadow-md);
}
.stat-card .stat-label{
  font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--red); margin-bottom:8px;
}
.stat-card .stat-num{
  font-family:var(--font-display); font-size:2.1rem; font-weight:700; color:var(--ink);
  margin-bottom:6px;
}
.stat-card .stat-desc{ color:var(--gray-700); font-size:.9rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px;
  border-radius:var(--radius-full);
  font-weight:600; font-size:.95rem;
  border:2px solid transparent;
  cursor:pointer;
  min-height:44px;
  transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg{ width:18px; height:18px; flex:none; }
.btn-primary{ background:var(--red); color:var(--white); }
.btn-primary:hover{ background:var(--red-dark); transform:translateY(-1px); }
.btn-dark{ background:var(--black); color:var(--white); }
.btn-dark:hover{ background:var(--charcoal-2); transform:translateY(-1px); }
.btn-outline{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.5); }
.btn-outline:hover{ border-color:var(--white); background:rgba(255,255,255,.08); }
.btn-outline-dark{ background:transparent; color:var(--ink); border-color:var(--gray-300); }
.btn-outline-dark:hover{ border-color:var(--ink); background:var(--gray-100); }
.btn-block{ width:100%; }

/* =========================================================
   Sections
   ========================================================= */
section{ padding-block:var(--space-8); }
.section-alt{ background:var(--offwhite); }
.section-head{ max-width:680px; margin-bottom:var(--space-7); }
.section-head.center{ margin-inline:auto; text-align:center; }
.kicker{
  display:inline-block;
  color:var(--red); font-weight:700; font-size:.78rem;
  letter-spacing:.08em; text-transform:uppercase;
  margin-bottom:var(--space-3);
}
.section-head h2{ font-size:clamp(1.6rem,3.4vw,2.4rem); margin-bottom:var(--space-3); }
.section-head p{ color:var(--gray-700); font-size:1.05rem; }

/* =========================================================
   Cards / Grids
   ========================================================= */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:960px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-lg);
  padding:var(--space-6);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  height:100%;
}
.card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:var(--gray-300); }
.card .icon-tile{
  width:52px; height:52px; border-radius:14px;
  background:var(--red-light); color:var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:var(--space-4);
  flex:none;
}
.card .icon-tile svg{ width:26px; height:26px; }
.card h3{ font-size:1.15rem; margin-bottom:10px; }
.card p{ color:var(--gray-700); font-size:.95rem; }
.card .card-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:var(--space-4); font-weight:700; font-size:.88rem; color:var(--ink);
}
.card .card-link svg{ width:15px; height:15px; transition:transform .18s ease; }
.card:hover .card-link svg{ transform:translateX(3px); }

/* Media card (poster / blog / interview) */
.media-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-sm); height:100%;
  display:flex; flex-direction:column;
  transition:box-shadow .2s ease, transform .2s ease;
}
.media-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.media-card .media-thumb{
  aspect-ratio:16/10; width:100%; overflow:hidden; background:var(--gray-100); position:relative;
}
.media-card .media-thumb img{ width:100%; height:100%; object-fit:cover; }
.media-card .media-body{ padding:22px 22px 24px; flex:1; display:flex; flex-direction:column; }
.media-card .tag{
  display:inline-block; align-self:flex-start;
  background:var(--red-light); color:var(--red-dark);
  font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:5px 12px; border-radius:var(--radius-full); margin-bottom:12px;
}
.media-card h3{ font-size:1.08rem; margin-bottom:8px; }
.media-card .meta{ color:var(--gray-500); font-size:.82rem; margin-top:auto; padding-top:14px; }
.media-card p.excerpt{ color:var(--gray-700); font-size:.92rem; }

/* Video placeholder thumb */
.video-thumb{
  position:relative; height:100%; width:100%;
  background:linear-gradient(160deg,var(--black),#2a1012 70%);
  display:flex; align-items:center; justify-content:center;
}
.video-thumb::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(320px 220px at 70% 20%, rgba(231,34,44,.45), transparent 70%);
}
.play-btn{
  position:relative; z-index:1;
  width:58px; height:58px; border-radius:50%;
  background:var(--white); color:var(--red);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}
.play-btn svg{ width:22px; height:22px; margin-left:3px; }

/* =========================================================
   Team cards
   ========================================================= */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:1024px){ .team-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .team-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .team-grid{ grid-template-columns:1fr; } }

.team-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease;
  display:flex; flex-direction:column;
}
.team-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.team-card .photo{
  aspect-ratio:1/1; width:100%; background:var(--gray-100); overflow:hidden;
}
.team-card .photo img{ width:100%; height:100%; object-fit:cover; }
.team-card .initials{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:2.4rem; color:var(--white);
  background:linear-gradient(150deg,var(--black),var(--red-dark));
}
.team-card .info{ padding:16px 16px 20px; flex:1; }
.team-card .name{ font-family:var(--font-display); font-weight:700; font-size:1rem; margin-bottom:2px; }
.team-card .role{ color:var(--red); font-weight:600; font-size:.82rem; margin-bottom:10px; }
.team-card .bio{ color:var(--gray-700); font-size:.85rem; line-height:1.6; }

.section-divider{
  display:flex; align-items:center; gap:16px; margin-bottom:var(--space-6);
}
.section-divider .num{
  font-family:var(--font-display); font-weight:700; color:var(--red);
  font-size:.85rem; letter-spacing:.06em;
}
.section-divider hr{ flex:1; border:none; border-top:1px solid var(--gray-200); }

/* =========================================================
   Program review cards
   ========================================================= */
.filter-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:var(--space-6); }
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 18px; border-radius:var(--radius-full);
  background:var(--gray-100); border:1px solid var(--gray-200);
  font-size:.85rem; font-weight:600; color:var(--gray-700);
  cursor:pointer; min-height:40px;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.chip[aria-pressed="true"]{ background:var(--ink); color:var(--white); border-color:var(--ink); }
.chip:hover{ border-color:var(--gray-500); }

.review-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  padding:26px; box-shadow:var(--shadow-sm);
}
.review-card h3{ font-size:1.1rem; margin-bottom:10px; }
.review-meta{ display:flex; flex-wrap:wrap; gap:8px 16px; margin-bottom:14px; }
.review-meta span{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.82rem; color:var(--gray-700); font-weight:600;
}
.review-meta svg{ width:15px; height:15px; color:var(--red); flex:none; }
.review-card p.excerpt{ color:var(--gray-700); font-size:.92rem; margin-bottom:14px; }
.review-card .byline{ font-size:.8rem; color:var(--gray-500); font-weight:600; }
.badge-aid{
  display:inline-block; padding:3px 10px; border-radius:var(--radius-full);
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
}
.badge-aid.yes{ background:#e7f7ec; color:#137a3f; }
.badge-aid.no{ background:var(--gray-100); color:var(--gray-700); }

/* =========================================================
   Community / logo strip
   ========================================================= */
.gallery-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
@media (max-width:760px){ .gallery-strip{ grid-template-columns:repeat(2,1fr); } }
.gallery-strip .g-item{ border-radius:var(--radius-md); overflow:hidden; aspect-ratio:4/3; background:var(--gray-100); }
.gallery-strip .g-item img{ width:100%; height:100%; object-fit:cover; }

.logo-strip{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:clamp(24px,6vw,64px);
}
.logo-strip img{ height:40px; width:auto; object-fit:contain; filter:grayscale(1); opacity:.75; }

/* =========================================================
   Quote / testimonial
   ========================================================= */
.quote-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  padding:var(--space-6); box-shadow:var(--shadow-sm); height:100%;
}
.quote-card svg.quote-mark{ width:28px; height:28px; color:var(--red); margin-bottom:14px; }
.quote-card p{ font-size:1rem; color:var(--ink); margin-bottom:18px; }
.quote-card .who{ font-weight:700; font-size:.88rem; }
.quote-card .who span{ display:block; color:var(--gray-500); font-weight:500; font-size:.8rem; margin-top:2px; }

/* =========================================================
   Forms
   ========================================================= */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1/-1; }
.field label{ font-weight:700; font-size:.85rem; }
.field .req{ color:var(--red); }
.field input, .field textarea{
  border:1.5px solid var(--gray-300); border-radius:var(--radius-sm);
  padding:13px 16px; background:var(--white); color:var(--ink);
  min-height:48px;
}
.field textarea{ min-height:140px; resize:vertical; }
.field input:focus, .field textarea:focus{ border-color:var(--red); }
.field .hint{ font-size:.78rem; color:var(--gray-500); }

.newsletter-box{
  background:var(--black); color:var(--white);
  border-radius:var(--radius-lg); padding:var(--space-7);
  display:flex; flex-wrap:wrap; gap:var(--space-6); align-items:center; justify-content:space-between;
  position:relative; overflow:hidden;
}
.newsletter-box::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(420px 260px at 90% 0%, rgba(231,34,44,.5), transparent 65%);
}
.newsletter-box > *{ position:relative; z-index:1; }
.newsletter-copy h2{ color:var(--white); font-size:1.6rem; margin-bottom:8px; }
.newsletter-copy p{ color:rgba(255,255,255,.75); max-width:44ch; }
.newsletter-form{ display:flex; gap:10px; flex-wrap:wrap; }
.newsletter-form input{
  border:1.5px solid rgba(255,255,255,.25); background:rgba(255,255,255,.06); color:var(--white);
  border-radius:var(--radius-full); padding:13px 20px; min-width:240px; min-height:48px;
}
.newsletter-form input::placeholder{ color:rgba(255,255,255,.55); }
.newsletter-form input:focus{ border-color:var(--red); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--black); color:rgba(255,255,255,.75); padding-block:var(--space-8) var(--space-6); }
.footer-top{
  display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:var(--space-6);
  padding-bottom:var(--space-7); border-bottom:1px solid rgba(255,255,255,.12);
}
@media (max-width:860px){ .footer-top{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .footer-top{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:34px; width:auto; filter:invert(1) brightness(2); }
.footer-brand span{ font-family:var(--font-display); font-weight:700; color:var(--white); font-size:1.05rem; }
.footer-col h4{ color:var(--white); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:16px; padding-top:var(--space-5);
}
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition:background .18s ease;
}
.social-row a:hover{ background:var(--red); }
.social-row svg{ width:18px; height:18px; }

/* =========================================================
   Utilities
   ========================================================= */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.two-col{ display:grid; grid-template-columns:1.1fr .9fr; gap:var(--space-7); align-items:center; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; } }
.rounded-photo{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.rounded-photo img{ width:100%; height:100%; object-fit:cover; }

.breadcrumb-note{
  color:rgba(255,255,255,.6); font-size:.85rem;
}

/* =========================================================
   Home page — hero with white logo mark
   ========================================================= */
.hero-home{
  display:flex; align-items:center;
  min-height:min(88vh, 780px);
  padding-block:clamp(72px,9vw,120px);
}
.hero-home::before{
  background:
    radial-gradient(62% 95% at 90% 45%, rgba(190,18,26,.9), transparent 72%),
    linear-gradient(100deg, #000 0%, #070203 38%, #240608 68%, #4a0a0e 100%);
}
.hero-home .hero-inner{
  max-width:none; width:100%; margin:0;
  padding-inline:clamp(24px,6vw,110px);
}
.hero-home .hero-inner > *{ max-width:620px; }
.hero-home h1{ font-size:clamp(2.4rem,5.6vw,4.4rem); }
.hero-home p.lead{ margin-bottom:16px; }
.hero-home p.lead:last-of-type{ margin-bottom:32px; }
.hero-mark{
  position:absolute; z-index:0; pointer-events:none;
  right:-3vw; top:50%; transform:translateY(-50%);
  width:min(48vw,680px); height:auto; opacity:.96;
}
@media (max-width:1024px){ .hero-mark{ opacity:.35; } }
@media (max-width:700px){ .hero-mark{ width:92vw; right:-34vw; opacity:.14; } }

/* =========================================================
   Dark / grey sections
   ========================================================= */
.section-dark{ background:var(--black); color:var(--white); }
.section-dark .kicker{ color:#ff5a62; }
.section-charcoal{ background:var(--charcoal); color:var(--white); }
.section-charcoal .kicker{ color:#ff5a62; }
.section-grey{ background:#ebe9e7; }

.mission{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(32px,6vw,80px); align-items:start; }
@media (max-width:860px){ .mission{ grid-template-columns:1fr; } }
.mission h2{ font-size:clamp(1.9rem,3.8vw,3rem); line-height:1.08; }
.mission-copy p{ color:rgba(255,255,255,.78); font-size:1.05rem; margin-bottom:1.25em; max-width:62ch; }
.mission-copy p:first-child{ color:var(--white); font-size:1.3rem; line-height:1.5; font-weight:500; }
.mission-copy p:last-child{ margin-bottom:0; }

.impact-grid .stat-card{ box-shadow:var(--shadow-sm); }
.impact-grid .stat-num{ font-size:2.7rem; line-height:1; margin-bottom:4px; }
.stat-unit{ font-family:var(--font-display); font-weight:700; font-size:1.1rem; color:var(--ink); margin-bottom:10px; }

/* =========================================================
   Poster tiles + lightbox
   ========================================================= */
.poster-btn{
  display:block; width:100%; padding:0; border:0; margin:0;
  background:var(--gray-100); cursor:zoom-in; position:relative;
}
.media-card .media-thumb.poster{ aspect-ratio:4/3; }
.media-card .media-thumb.poster img{ object-fit:contain; }
.zoom-hint{
  position:absolute; right:10px; bottom:10px; width:36px; height:36px; border-radius:50%;
  background:rgba(10,10,10,.8); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  transition:background .18s ease, transform .18s ease;
}
.zoom-hint svg{ width:18px; height:18px; }
.poster-btn:hover .zoom-hint{ background:var(--red); transform:scale(1.08); }

dialog.lightbox{
  border:0; padding:0; background:transparent; color:var(--white);
  max-width:min(96vw,1500px); max-height:96vh; overflow:visible; margin:auto;
}
dialog.lightbox::backdrop{ background:rgba(8,8,8,.88); }
.lightbox-inner{ position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; }
.lightbox img{
  max-width:min(96vw,1500px); max-height:82vh; width:auto; height:auto;
  border-radius:12px; background:var(--white); box-shadow:var(--shadow-lg);
}
.lightbox figcaption{ font-size:.95rem; text-align:center; color:rgba(255,255,255,.88); padding-inline:12px; }
.lightbox-close{
  position:absolute; top:-18px; right:-6px; z-index:2;
  width:44px; height:44px; border-radius:50%; border:0; cursor:pointer;
  background:var(--white); color:var(--ink);
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-md);
}
.lightbox-close:hover{ background:var(--red); color:var(--white); }
.lightbox-close svg{ width:20px; height:20px; }

/* =========================================================
   Recent news carousel
   ========================================================= */
.news-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:var(--space-6); }
.news-head h2{ font-size:clamp(1.7rem,3.4vw,2.5rem); color:var(--white); }
.news-head h2::after{ content:""; display:block; width:96px; height:3px; background:var(--red); margin-top:14px; border-radius:2px; }
.carousel-controls{ display:flex; gap:10px; }
.carousel-btn{
  width:44px; height:44px; border-radius:50%; cursor:pointer;
  border:1.5px solid rgba(255,255,255,.4); background:transparent; color:var(--white);
  display:flex; align-items:center; justify-content:center;
  transition:background .18s ease, border-color .18s ease;
}
.carousel-btn:hover{ background:var(--red); border-color:var(--red); }
.carousel-btn svg{ width:20px; height:20px; }
.news-track{
  display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:14px; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.3) transparent;
}
.news-slide{ flex:0 0 min(80%,380px); scroll-snap-align:start; margin:0; }
.news-slide img{ width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--radius-md); background:var(--charcoal-2); }
.news-slide figcaption{ margin-top:12px; font-weight:600; font-size:.98rem; color:rgba(255,255,255,.9); }
.news-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:var(--space-6); }
.news-list li{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius-full); padding:9px 18px; font-size:.92rem; color:rgba(255,255,255,.9);
}

/* =========================================================
   Mentors / competition logos
   ========================================================= */
.logo-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:900px){ .logo-cards{ grid-template-columns:repeat(2,1fr); } }
.logo-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  aspect-ratio:4/3; padding:22px; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-sm);
}
.logo-card img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }

/* =========================================================
   Delegate map
   ========================================================= */
.map-head h2{ color:var(--white); }
.map-head p{ color:rgba(255,255,255,.75); }
.map-wrap{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid rgba(255,255,255,.18); background:#cfe3f3; }
#delegate-map{ height:min(72vh,640px); min-height:440px; width:100%; }
.delegate-pin{ background:none; border:0; }
.delegate-pin svg{ width:34px; height:44px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.leaflet-popup-content-wrapper{ border-radius:14px; }
.leaflet-popup-content{ font-family:var(--font-body); font-size:.9rem; line-height:1.5; margin:16px 18px; color:var(--ink); }
.leaflet-popup-content h3{ font-size:1.05rem; margin-bottom:6px; }
.leaflet-popup-content .pop-creds{ font-weight:600; margin-bottom:6px; }
.leaflet-popup-content .pop-line{ margin-bottom:6px; color:var(--gray-700); }
.leaflet-popup-content .pop-line strong{ color:var(--ink); }
.leaflet-popup-content a{ color:var(--red-dark); font-weight:600; text-decoration:underline; }
.delegate-list-link{ display:inline-flex; align-items:center; gap:8px; margin-top:var(--space-5); min-height:44px; font-weight:700; color:var(--white); text-decoration:underline; text-underline-offset:4px; }
.delegate-list-link svg{ width:16px; height:16px; transition:transform .18s ease; }
.delegate-list-link:hover svg{ transform:translateX(3px); }

/* =========================================================
   Final CTA: newsletter + Discord
   ========================================================= */
.cta-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:24px; }
@media (max-width:860px){ .cta-grid{ grid-template-columns:1fr; } }
.cta-grid .newsletter-box{ flex-direction:column; align-items:flex-start; justify-content:center; }
.cta-grid .newsletter-form{ width:100%; }
.cta-grid .newsletter-form input{ flex:1; min-width:200px; }
.newsletter-box .form-note{ width:100%; font-size:.85rem; color:rgba(255,255,255,.85); margin-top:4px; }
.discord-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  padding:var(--space-7); display:flex; flex-direction:column; justify-content:center; gap:14px;
  box-shadow:var(--shadow-sm);
}
.discord-card h2{ font-size:1.6rem; }
.discord-card p{ color:var(--gray-700); }
.discord-card .btn{ align-self:flex-start; }

@media (max-width:480px){
  .brand{ font-size:.92rem; gap:8px; }
  .nav-cta{ padding:10px 14px; }
}

.section-head.wide{ max-width:none; }

@media (max-width:380px){
  .brand{ font-size:.82rem; gap:6px; }
  .brand img{ height:30px; }
  .nav-cta{ padding:9px 12px; font-size:.8rem; }
}

/* ---------- Resources dropdown in the primary nav ---------- */
.nav-item{ position:relative; display:flex; align-items:center; border-radius:var(--radius-full); transition:background .18s ease; }
.nav-item:hover{ background:var(--gray-200); }
.nav-item > a{ padding:10px 2px 10px 14px; }
.nav-item > a:hover{ background:none; }
.sub-toggle{
  background:none; border:0; color:var(--gray-700); cursor:pointer;
  padding:10px 10px 10px 4px; min-height:40px; display:flex; align-items:center; border-radius:var(--radius-full);
}
.sub-toggle svg{ width:14px; height:14px; transition:transform .18s ease; }
.nav-item:hover .sub-toggle svg, .nav-item.open .sub-toggle svg{ transform:rotate(180deg); }
.nav-item.active{ background:var(--red); }
.nav-item.active > a, .nav-item.active > a:hover, .nav-item.active .sub-toggle{ color:var(--white); }
.sub-menu{
  position:absolute; top:calc(100% + 10px); left:0; min-width:270px; padding:8px;
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg); display:none; z-index:120;
}
.sub-menu::before{ content:""; position:absolute; left:0; right:0; top:-12px; height:12px; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu, .nav-item.open .sub-menu{ display:block; }
.sub-menu a{ display:block; padding:12px 14px; border-radius:10px; white-space:normal; }
.sub-menu a:hover{ background:var(--gray-100); }

@media (max-width:1260px){
  .nav-item{ display:block; background:none !important; border-radius:0; }
  .nav-item > a{ display:flex; padding:14px 16px; border-radius:var(--radius-sm); min-height:44px; }
  .nav-item.active > a, .nav-item.active > a:hover{ background:var(--red); color:var(--white); }
  .sub-toggle{ display:none; }
  .sub-menu{ position:static; display:block; min-width:0; padding:0 0 6px 14px; background:none; border:0; box-shadow:none; }
  .sub-menu::before{ display:none; }
  .sub-menu a{ padding:12px 16px; font-size:.9rem; color:var(--gray-700); }
}

.site-header .container{ max-width:1240px; }

/* Centered inner-page heroes */
.hero-narrow p.lead{ margin-inline:auto; }
.hero-narrow .hero-actions{ justify-content:center; }
.hero-narrow .crumbs, .hero-narrow .post-meta{ justify-content:center; }

/* Nudge the logo left on wide screens */
@media (min-width:1261px){
  .brand{ margin-left:clamp(-44px, calc((100vw - 1264px) * -0.5), 0px); }
}
