:root {
  --paper: #ffffff;
  --paper-soft: #f6f6f6;
  --charcoal: #000000;
  --charcoal-soft: #141414;
  --brand-yellow: #f5b400;
  --brand-yellow-strong: #de9f00;
  --brand-yellow-dark: #9a6b00;
  --muted-ink: #666666;
  --line: #e8e8e8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.09);
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--charcoal);
  background: var(--paper);
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--brand-yellow-dark);
}

.eyebrow-light {
  color: #ffffff;
}

.title-xl,
.title-lg,
.title-md,
.nav-brand,
.stat-value,
.card-title {
  font-family: "League Spartan", sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.title-xl {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
}

.title-lg {
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  font-weight: 800;
}

.title-md {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.copy,
.copy-sm {
  color: var(--muted-ink);
  line-height: 1.75;
}

.copy {
  font-size: 16px;
}

.copy-sm {
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  color: #ffffff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--brand-yellow);
  color: #000000;
  font-size: 20px;
  font-weight: 800;
}

.mobile-panel {
  display: none;
  padding-bottom: 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  padding: 15px 24px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-yellow);
  color: #000000;
}

.btn-primary:hover {
  background: var(--brand-yellow-strong);
}

.btn-secondary {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}

.btn-secondary-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-home {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #000000;
}

.hero-home img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.hero-overlay,
.image-overlay,
.gallery-hero-overlay,
.gallery-home-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.74) 38%, rgba(0,0,0,0.35) 100%);
}

.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  padding: 110px 0 132px;
}

.hero-copy .title-xl,
.hero-copy .copy {
  color: #ffffff;
}

.action-strip {
  margin-top: -46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--brand-yellow);
  border: 1px solid var(--brand-yellow);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.action-card {
  padding: 30px;
  background: var(--brand-yellow);
  display: grid;
  gap: 16px;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #000000;
  color: var(--brand-yellow);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 900;
}

.stat-grid,
.card-grid-3,
.card-grid-2,
.contact-card-grid,
.donate-grid,
.about-grid,
.gallery-main-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.stat-grid,
.card-grid-3,
.contact-card-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2,
.donate-grid,
.about-grid,
.gallery-main-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.card,
.info-box,
.timeline-box,
.tag-box,
.panel,
.gallery-float-card,
.gallery-mosaic-card,
.footer-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat-card,
.card,
.panel,
.footer-card {
  padding: 28px;
}

.stat-value {
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 800;
}

.video-shell {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000000;
}

.video-shell iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.gallery-home {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

.gallery-home-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 36%, rgba(0,0,0,0.48) 100%);
}

.gallery-home-inner,
.gallery-hero-content {
  position: relative;
  z-index: 2;
  padding: 36px;
}

.help-link {
  display: block;
  margin-top: 10px;
}

.gallery-home-grid,
.mini-grid,
.two-up,
.pill-grid,
.occasion-grid,
.gallery-highlights,
.gallery-mosaic,
.footer-links {
  display: grid;
  gap: 18px;
}

.gallery-home-grid,
.about-grid,
.gallery-main-grid,
.contact-layout {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: start;
}

.gallery-image-grid,
.mini-grid,
.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-image-grid img,
.image-card,
.founder-card img,
.map-preview img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.page-hero {
  padding-top: 30px;
}

.gallery-page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

.gallery-hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.74) 40%, rgba(0,0,0,0.58) 100%);
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: end;
}

.gallery-float-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: 18px;
}

.gallery-float-card h3,
.gallery-float-card p,
.gallery-page-hero .title-lg,
.gallery-page-hero .copy,
.gallery-page-hero .eyebrow-light {
  color: #ffffff;
}

.gallery-mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-mosaic-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
}

.gallery-mosaic-card:nth-child(1) { grid-column: span 7; }
.gallery-mosaic-card:nth-child(2) { grid-column: span 5; }
.gallery-mosaic-card:nth-child(3) { grid-column: span 4; }
.gallery-mosaic-card:nth-child(4) { grid-column: span 4; }
.gallery-mosaic-card:nth-child(5) { grid-column: span 4; }
.gallery-mosaic-card:nth-child(6) { grid-column: span 6; }
.gallery-mosaic-card:nth-child(7) { grid-column: span 3; }
.gallery-mosaic-card:nth-child(8) { grid-column: span 3; }

.gallery-mosaic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.78) 100%);
}

.image-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}

.support-list,
.occasion-list,
.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-box,
.info-box,
.tag-box {
  padding: 24px;
}

.footer {
  background: #000000;
  color: #ffffff;
  padding: 70px 0;
}

.footer-grid {
  grid-template-columns: 1.15fr 0.75fr 0.9fr;
}

.footer-links {
  grid-template-columns: 1fr;
}

.footer-note,
.footer a {
  color: rgba(255,255,255,0.72);
}

.floating-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-full { width: 100%; }
.text-white { color: #ffffff; }
.text-center { text-align: center; }

.card-grid-2 > .btn,
.card-grid-3 > .btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-actions .hide-mobile {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .stat-grid,
  .contact-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3,
  .card-grid-2,
  .about-grid,
  .donate-grid,
  .gallery-main-grid,
  .gallery-home-grid,
  .gallery-hero-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-mosaic-card {
    grid-column: span 1 !important;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-home {
    min-height: 62vh;
  }

  .hero-copy {
    padding: 78px 0 102px;
  }

  .brand-group {
    min-width: 0;
    max-width: calc(100% - 62px);
  }

  .nav-brand {
    font-size: 15px;
    line-height: 1.1;
  }

  .action-strip,
  .stat-grid,
  .card-grid-3,
  .contact-card-grid,
  .gallery-image-grid,
  .two-up,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .gallery-home-inner,
  .gallery-hero-content,
  .panel,
  .card,
  .stat-card,
  .footer-card {
    padding: 20px;
  }

  .header-inner {
    min-height: 74px;
  }

  .action-strip {
    margin-top: -30px;
  }

  .gallery-home {
    min-height: auto;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

  .footer-grid {
    gap: 18px;
  }

  .floating-stack {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    bottom: 16px;
    width: calc(100% - 32px);
    justify-content: center;
  }

  .floating-stack .btn {
    flex: 1 1 0;
    padding: 14px 18px;
    font-size: 12px;
  }
}