/* =============================================
   Our Block Matters Foundation — Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Oswald:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

/* Design Tokens */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-muted: #9ca3af;
  --text-warm: #f0ece4;
  --red: #b91c1c;
  --red-hover: #dc2626;
  --amber: #d97706;
  --amber-bright: #f59e0b;
  --radius: 8px;
  --transition: 0.25s ease;
  --max-width: 1200px;
  --section-pad-y: 5rem;
  --section-pad-x: 1.5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { font-family: 'Oswald', sans-serif; line-height: 1.15; }
.font-bangers { font-family: 'Bangers', cursive; letter-spacing: 0.05em; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-donate {
  background: var(--red);
  color: var(--text);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-links .nav-donate:hover { background: var(--red-hover); color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.99);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color var(--transition);
  display: block;
  width: 100%;
  text-align: center;
}
.nav-mobile a:hover { color: var(--amber); }
.nav-mobile .nav-donate { color: var(--red); }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--red);
  color: var(--text);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover { background: rgba(245,245,245,0.08); }

.btn-outline-white {
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: 2px solid #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: rgba(0,0,0,0.5); }

.btn-amber {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}
.btn-amber:hover { background: var(--amber-bright); border-color: var(--amber-bright); }

/* =============================================
   HERO — emblem fills full bleed
   ============================================= */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
}

.hero-emblem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-actions {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

/* =============================================
   PHILOSOPHY SECTION
   ============================================= */

.philosophy {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Grain texture overlay */
.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* Painted bottom edge into next section */
.philosophy::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  background: var(--surface);
  clip-path: polygon(0 100%, 3% 40%, 8% 80%, 14% 20%, 20% 65%, 26% 15%, 32% 55%, 38% 5%, 44% 50%, 50% 0, 56% 45%, 62% 10%, 68% 60%, 74% 20%, 80% 70%, 86% 25%, 92% 75%, 97% 35%, 100% 55%, 100% 100%);
  z-index: 1;
}

.philosophy-inner {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: center;
}

.philosophy-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-emblem img {
  width: 100%;
  max-width: 300px;
  opacity: 0.7;
  filter: drop-shadow(0 0 50px rgba(185,28,28,0.4)) drop-shadow(0 0 20px rgba(217,119,6,0.2));
}

.philosophy-heading {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.philosophy-lead {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text-warm);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.philosophy-lead em {
  font-style: italic;
  color: var(--amber);
}

.philosophy-body {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.9;
  color: var(--text-warm);
  opacity: 0.85;
}

/* =============================================
   CONNECTION MODEL
   ============================================= */

.connection {
  background: var(--surface);
  position: relative;
}

/* Painted bottom edge back to bg */
.connection::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: var(--bg);
  clip-path: polygon(0 100%, 4% 50%, 9% 90%, 15% 30%, 21% 70%, 28% 10%, 34% 60%, 40% 20%, 46% 65%, 52% 5%, 58% 50%, 64% 15%, 70% 55%, 76% 0, 82% 45%, 88% 85%, 94% 30%, 100% 70%, 100% 100%);
  z-index: 1;
}

.connection-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--amber);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}

.story-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
}

.story-card--flip .story-photo { order: 2; }
.story-card--flip .story-copy  { order: 1; }

.story-photo {
  background: #1c1008;
  border: 2px solid rgba(217,119,6,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-photo-label {
  font-family: 'Bangers', cursive;
  font-size: 5rem;
  letter-spacing: 0.05em;
  color: rgba(217,119,6,0.3);
  user-select: none;
  line-height: 1;
}

.story-copy {
  background: var(--card);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  border-left: 3px solid rgba(217,119,6,0.25);
}

.story-need {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  color: var(--text-warm);
  line-height: 1.3;
}

.story-give {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: var(--amber);
  line-height: 1.3;
}

/* =============================================
   BLOCK QUOTE — Vex on what a strong block feels like
   ============================================= */

.block-quote-section {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 5.5rem;
}

/* Grain texture */
.block-quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

/* Rough painted top edge bleeding in from connection section */
.block-quote-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: var(--surface);
  clip-path: polygon(0 0, 4% 70%, 9% 20%, 15% 80%, 21% 30%, 28% 85%, 34% 25%, 41% 75%, 47% 15%, 53% 60%, 59% 10%, 65% 65%, 71% 20%, 77% 70%, 83% 15%, 89% 65%, 95% 25%, 100% 55%, 100% 0);
  z-index: 1;
}

.block-quote-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.block-quote-lead {
  font-family: 'Bangers', cursive;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.18em;
  color: var(--amber);
  opacity: 0.75;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.block-quote {
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
}

.block-quote-mark {
  display: block;
  font-family: 'Georgia', serif;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.7;
  color: var(--red);
  margin-bottom: 1rem;
  opacity: 0.85;
  user-select: none;
}

.block-quote p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--text-warm);
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.01em;
}

.block-quote-attr {
  display: block;
  margin-top: 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-style: normal;
  text-transform: uppercase;
}

/* =============================================
   PILLARS — community outcomes
   ============================================= */

.pillars {
  background: var(--bg);
}

.pillars-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
}

.pillars-sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  /* Force GPU compositing so overflow:hidden clips correctly on mobile */
  transform: translateZ(0);
  isolation: isolate;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.pillar-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0a0a0a;
}

.pillar-img--stronger {
  aspect-ratio: 1;
  flex-shrink: 0;
}

.pillar-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.pillar-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Stronger Together — full width, distinct */
.pillar-stronger {
  background: #0f0f0f;
  border-color: #333;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  justify-content: flex-end;
}

.pillar-stronger-bg {
  position: absolute;
  inset: 0;
}

.pillar-stronger-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pillar-stronger-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.25) 100%);
}

.pillar-stronger-text {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.pillar-stronger-title {
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.pillar-stronger-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-warm);
  margin-bottom: 0.25rem;
}

.pillar-stronger-note {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
}

/* =============================================
   PHOTO PLACEHOLDERS
   ============================================= */

.photos {
  background: var(--surface);
}

.photos-inner {
  text-align: center;
}

.photos-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.photos-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.photo-placeholder {
  aspect-ratio: 1;
  background: #1c1008;
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slot-label {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  color: rgba(217,119,6,0.3);
  letter-spacing: 0.05em;
  user-select: none;
  line-height: 1;
}

.photos-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* =============================================
   NARRATIVE ARC
   ============================================= */

.narrative {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Grain texture */
.narrative::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* Painted top edge from previous section */
.narrative::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: var(--surface);
  clip-path: polygon(0 0, 5% 60%, 10% 10%, 16% 70%, 22% 20%, 28% 80%, 34% 30%, 40% 90%, 46% 40%, 52% 95%, 58% 45%, 64% 5%, 70% 55%, 76% 15%, 82% 65%, 88% 25%, 93% 75%, 97% 35%, 100% 60%, 100% 0);
  z-index: 1;
}

/* Full-bleed scene image background */
.narrative-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.narrative-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.narrative-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.88) 45%,
    rgba(0,0,0,0.55) 100%
  );
}

.narrative-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 760px;
}

.narrative-line {
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.narrative-line--1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--text);
}
.narrative-line--2 {
  font-size: clamp(3rem, 8.5vw, 7rem);
  color: var(--text);
}
.narrative-line--3 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  color: var(--text);
}

.narrative-red {
  color: var(--red);
}

.narrative-body {
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.narrative-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: #000;
  padding: 4rem var(--section-pad-x) 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 2rem;
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-contact a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--amber); }

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0.6;
}

/* =============================================
   STUB PAGE STYLES
   ============================================= */

.stub-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Inner page hero banner — Vex scene image, full bleed */
.page-hero-banner {
  width: 100%;
  margin-top: 64px;
  overflow: hidden;
}
.page-hero-banner img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (min-width: 1440px) {
  .page-hero-banner img {
    height: min(32vw, 800px);
  }
}

.stub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--section-pad-x) 4rem;
}

/* When a hero banner precedes stub-main, top padding is no longer for nav clearance */
.page-hero-banner + .stub-main {
  padding-top: 3rem;
}

.stub-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.stub-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.stub-message {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Zelle card — for donate stub */
/* Zeffy donation embed */
.zeffy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.zeffy-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.zeffy-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
}
.zeffy-embed-wrap {
  border-radius: 8px;
  overflow: hidden;
}
.zeffy-fallback {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}
.zeffy-fallback a { color: var(--amber-bright); }

.zelle-card {
  background: var(--text);
  color: #0a0a0a;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  text-align: left;
}
.zelle-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}
.zelle-row { margin-bottom: 1rem; }
.zelle-row .label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.2rem;
  font-family: 'Oswald', sans-serif;
}
.zelle-row .value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}
.zelle-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 1.25rem;
  line-height: 1.5;
}
.zelle-note a { color: var(--red); }

.badge-501c3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

.donate-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 768px) {
  :root {
    --section-pad-y: 8rem;
    --section-pad-x: 2rem;
  }

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

  /* Stronger Together — full width, image band */
  .pillar-stronger {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    min-height: 440px;
    justify-content: flex-end;
  }
  .pillar-stronger-text {
    flex: none;
    padding: 2.5rem 3rem;
    text-align: left;
    max-width: 720px;
  }

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

  .narrative-line--1 { margin-bottom: 0.5rem; }
  .narrative-line--2 { margin-bottom: 0.5rem; }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-hamburger { display: none; }
  .nav-links { display: flex; }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1.5rem;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .story-card {
    grid-template-columns: 1fr;
  }
  .story-card--flip .story-photo { order: 0; }
  .story-card--flip .story-copy  { order: 1; }
  .story-copy {
    border-left: none;
    border-top: 3px solid rgba(217,119,6,0.25);
  }
  .story-photo {
    min-height: 140px;
  }
}

/* Mobile: collapse philosophy to single column, hide emblem */
@media (max-width: 767px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .philosophy-emblem {
    display: none;
  }
}

/* =============================================
   BLOCK PARTY STATEMENT
   ============================================= */
.blockparty-statement {
  position: relative;
  height: 75vh;
  min-height: 450px;
  overflow: hidden;
}
.blockparty-img-wrap {
  position: absolute;
  inset: 0;
}
.blockparty-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38);
}
.blockparty-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--section-pad-x);
}
.blockparty-line-1,
.blockparty-line-2 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  color: var(--text);
  line-height: 1.05;
  text-shadow: 0 3px 30px rgba(0,0,0,0.9);
}
.blockparty-red { color: var(--red); }

/* =============================================
   YOUTH EMPOWERMENT SEQUENCE
   ============================================= */
.youth-seq { background: var(--surface); }
.youth-seq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.youth-seq-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--red);
}
.youth-seq-sub {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}
.youth-seq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.youth-seq-frame { margin: 0; }
.youth-seq-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
}
.youth-seq-frame figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 600px) {
  .youth-seq-grid { grid-template-columns: 1fr; }
}

/* =============================================
   MOVIE NIGHT
   ============================================= */
.movie-night { background: var(--bg); }
.program-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.program-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--red);
}
.program-sub {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}
.movie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.movie-lead img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 0;
}
.movie-clips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.movie-clips video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
@media (max-width: 700px) {
  .movie-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SUPPLIES SECTION
   ============================================= */
.supplies-section { background: var(--surface); }
.supplies-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.supplies-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}
.supplies-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
}
.supplies-media video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.supplies-label {
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.supplies-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 1.25rem;
}
.supplies-body {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.05rem;
}
@media (max-width: 700px) {
  .supplies-inner { grid-template-columns: 1fr; }
  .supplies-media { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   MASONRY GALLERY
   ============================================= */
.gallery {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 var(--section-pad-x);
}
.gallery-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
}
.gallery-red { color: var(--red); }
.masonry-grid {
  columns: 3;
  column-gap: 2.5rem;
  padding: 0 1.5rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 2.5rem;
  display: block;
}
.masonry-item:nth-child(6n+1) { transform: rotate(-1.2deg); }
.masonry-item:nth-child(6n+2) { transform: rotate(0.9deg); }
.masonry-item:nth-child(6n+3) { transform: rotate(-0.5deg); }
.masonry-item:nth-child(6n+4) { transform: rotate(1.3deg); }
.masonry-item:nth-child(6n+5) { transform: rotate(-1.0deg); }
.masonry-item:nth-child(6n)   { transform: rotate(0.6deg); }
.masonry-item figcaption {
  padding: 0.55rem 0.25rem 0;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.gallery-more {
  text-align: center;
  margin-top: 3.5rem;
  padding: 0 var(--section-pad-x);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.gallery-more a {
  color: var(--amber-bright);
  text-decoration: underline;
}
@media (max-width: 700px) {
  .masonry-grid { columns: 2; column-gap: 2rem; }
}
@media (max-width: 400px) {
  .masonry-grid { columns: 1; }
}

/* =============================================
   OBM PHOTO FRAME SYSTEM
   Street/poster aesthetic — never rounded
   ============================================= */
.framed-photo {
  position: relative;
  display: block;
  border: 2px solid rgba(238, 232, 214, 0.78);
  box-shadow:
    0 0 0 9px #0c0c0c,
    5px 9px 22px rgba(0, 0, 0, 0.82);
}
.framed-photo img,
.framed-photo video {
  display: block;
  width: 100%;
  border-radius: 0;
}

/* Corner accent strip — one edge, one color per category */
.framed-photo::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 4px;
  border-radius: 1px;
  pointer-events: none;
}
/* Red = community/action */
.accent-red::after   { background: var(--red);             top: -7px;    left: 10px;  }
/* Gold = youth/hope */
.accent-gold::after  { background: var(--amber-bright);    bottom: -7px; right: 10px; }
/* White = people/story */
.accent-white::after { background: rgba(238,232,214,0.85); top: -7px;    right: 10px; }

/* Tape strip — applied selectively, not on every photo */
.tape::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 14px;
  background: rgba(255, 248, 195, 0.46);
  border: 1px solid rgba(210, 200, 140, 0.28);
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  z-index: 3;
  pointer-events: none;
}
