:root {
  --blue: #222d40;
  --slate: #59798e;
  --slate-dark: #4f6c7f;
  --ink: #16202c;
  --text: #3f4a55;
  --muted: #6b7280;
  --light: #f4f7f9;
  --white: #ffffff;
  --gold: #e3b448;
  --shadow: 0 12px 28px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .13);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Gudea", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: "Barlow", Arial, sans-serif; color: var(--ink); line-height: 1.08; }
p { margin-top: 0; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
section { padding: 52px 0; scroll-margin-top: 112px; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(89,121,142,.18);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 118px; max-height: 58px; object-fit: contain; }
.site-header nav { margin-left: auto; }
.nav-links {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 4px; list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 7px 10px; border-radius: 999px;
  color: var(--ink); font-family: "Barlow", Arial, sans-serif;
  font-weight: 700; font-size: .82rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--light); color: var(--slate-dark); }
.nav-links a:hover { transform: translateY(-1px); }
.nav-links .nav-donate { background: var(--slate); color: #fff; padding-inline: 14px; }
.nav-links .nav-donate:hover { background: var(--slate-dark); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 999px; position: relative; margin: auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 17px; border-radius: 999px; border: 0;
  font-family: "Barlow", Arial, sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34,45,64,.18); }
.btn-primary { background: var(--slate); color: #fff; }
.btn-dark { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }

.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, rgba(34,45,64,.94), rgba(34,45,64,.80), rgba(34,45,64,.35)),
    url("../img/beatsnotbullets.jpg") center/cover no-repeat;
}
.hero .container { min-height: 410px; display: grid; align-items: center; padding: 48px 0; }
.page-hero .container { min-height: 300px; display: grid; align-items: center; padding: 46px 0; }
.hero-card { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; margin-bottom: 10px;
  color: rgba(255,255,255,.88); font-family: "Barlow", Arial, sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
}
.hero h1, .page-hero h1 { color: #fff; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.hero p, .page-hero p { max-width: 720px; color: rgba(255,255,255,.88); font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin: 15px 0 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section-nav { padding: 0; position: sticky; top: 74px; z-index: 70; background: #fff; border-bottom: 1px solid rgba(89,121,142,.15); }
.section-nav-inner { min-height: 44px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
.section-nav a { color: var(--slate-dark); font-family: "Barlow", sans-serif; font-weight: 700; font-size: .9rem; padding: 9px 2px; }
.section-nav a:hover { color: var(--blue); }

.section-heading { max-width: 780px; margin-bottom: 24px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-kicker { display: inline-block; margin-bottom: 8px; color: var(--slate); font-family: "Barlow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.55rem); letter-spacing: -.025em; }
.section-heading p { margin: 10px 0 0; color: var(--muted); font-size: 1.04rem; }
.light-band { background: var(--light); }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; align-items: stretch; }
.image-card { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--light); min-height: 280px; }
.image-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.content-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(89,121,142,.16); }
.content-card p { margin: 10px 0 0; }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(89,121,142,.14); box-shadow: var(--shadow); }
.mission-card p { margin: 12px 0 0; color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }
.value-card { padding: 18px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(89,121,142,.14); }
.value-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.value-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.service-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(89,121,142,.16); box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); margin-bottom: 12px; }
.service-link { color: var(--slate-dark); font-family: "Barlow", sans-serif; font-weight: 800; }
.service-link:hover { color: var(--blue); }
.services-panel { margin-top: 16px; padding: 22px; border-radius: var(--radius); background: var(--light); border: 1px solid rgba(89,121,142,.14); }
.services-panel h3 { margin-bottom: 12px; }
.services-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px 22px; margin: 0; padding-left: 20px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery-item { display: block; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid rgba(89,121,142,.14); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .28s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-collapsed .gallery-item:nth-child(n+9) { display: none; }
.gallery-actions { display: flex; justify-content: center; margin-top: 18px; }
.gallery-note { margin: 12px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }

.contributors-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.contributors-list a { display: flex; align-items: center; min-height: 52px; padding: 12px 13px; border-radius: 13px; background: var(--light); border: 1px solid rgba(89,121,142,.14); color: var(--ink); font-family: "Barlow", sans-serif; font-weight: 700; font-size: .9rem; transition: transform .2s ease, box-shadow .2s ease; }
.contributors-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.support { background: linear-gradient(135deg, var(--blue), #314158); color: #fff; }
.support h2, .support h3 { color: #fff; }
.support .section-kicker, .support p { color: rgba(255,255,255,.84); }
.support-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 16px; }
.support-panel { padding: clamp(22px,3vw,32px); border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.support-panel p { margin: 10px 0 0; }
.donate-box { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid rgba(89,121,142,.16); box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.contact-card p { margin: 5px 0; }

.staff-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.staff-card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(89,121,142,.14); box-shadow: var(--shadow); }
.staff-photo { width: 150px; height: 180px; border-radius: 13px; overflow: hidden; background: #e8edf0; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-copy h2 { font-size: 1.45rem; margin-bottom: 3px; }
.staff-role { color: var(--slate-dark); font-family: "Barlow", sans-serif; font-weight: 800; margin-bottom: 8px; }
.staff-copy p { margin: 0; color: var(--muted); font-size: .94rem; }

.callout { padding: clamp(24px,4vw,38px); border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), #314158); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.callout h2 { color: #fff; }
.callout p { margin: 10px 0 0; color: rgba(255,255,255,.82); max-width: 760px; }
.callout .section-kicker { color: rgba(255,255,255,.78); }

.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(10,16,24,.92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px,92vw); max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; right: 20px; top: 14px; border: 0; background: transparent; color: #fff; font-size: 2.2rem; cursor: pointer; }

.site-footer { padding: 24px 0; background: #111827; color: rgba(255,255,255,.74); font-size: .88rem; }
.site-footer a { color: #fff; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 28px; align-items: start; }
.footer-brand { color: #fff; font-family: "Barlow", sans-serif; font-weight: 800; margin-bottom: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
.footer-meta { grid-column: 1/-1; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }

.not-found { min-height: 62vh; display: grid; align-items: center; text-align: center; }
.not-found .container { max-width: 720px; }
.not-found h1 { font-size: clamp(4rem,12vw,8rem); color: var(--slate); }
.not-found h2 { margin-bottom: 12px; }
.not-found p { color: var(--muted); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-header nav { position: fixed; left: 0; right: 0; top: 74px; background: #fff; border-bottom: 1px solid rgba(89,121,142,.18); box-shadow: var(--shadow); transform: translateY(-125%); opacity: 0; pointer-events: none; transition: .22s ease; }
  .site-header.nav-open nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { padding: 14px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-links a { width: 100%; background: var(--light); min-height: 44px; }
  .section-nav { top: 74px; }
  .contributors-list { grid-template-columns: repeat(3,1fr); }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .staff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .split, .mission-grid, .support-grid, .contact-grid, .callout { grid-template-columns: 1fr; }
  .service-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .services-list { grid-template-columns: 1fr 1fr; }
  .contributors-list { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .footer-meta { grid-column: auto; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  section { padding: 42px 0; }
  .brand img { width: 104px; }
  .nav-links { grid-template-columns: 1fr; }
  .section-nav-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .section-nav a { white-space: nowrap; }
  .hero .container { min-height: 360px; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .service-grid, .values-grid, .services-list, .contributors-list, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-collapsed .gallery-item:nth-child(n+7) { display: none; }
  .staff-card { grid-template-columns: 1fr; }
  .staff-photo { width: 100%; height: auto; aspect-ratio: 4/3; }
  .footer-meta { flex-direction: column; }
}
