/* ============================================
   BBA REDESIGN — Editorial v1 + 3D Hero
   Design System
   ============================================ */

:root {
  /* Color tokens */
  --ink: #0B1220;
  --ink-2: #1A2236;
  --ink-3: #2C3552;
  --paper: #F7F4EE;
  --paper-2: #EFEBE2;
  --mist: #E8E5DE;
  --line: rgba(11, 18, 32, 0.12);
  --line-strong: rgba(11, 18, 32, 0.24);
  --muted: rgba(11, 18, 32, 0.62);
  --muted-2: rgba(11, 18, 32, 0.48);
  --brick: #B23A2C;
  --brick-dark: #8B2A1F;
  --signal: #00C896;
  --signal-glow: rgba(0, 200, 150, 0.18);
  --gold: #C9A961;

  /* Type scale */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Spacing rhythm */
  --gutter: clamp(1.25rem, 3vw, 2.25rem);
  --section: clamp(4rem, 9vw, 8rem);
  --maxw: 1280px;

  /* Radii & motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.4s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ============================================
   DEMO RIBBON
   ============================================ */
.demo-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem var(--gutter);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  font-family: var(--mono);
}
.demo-ribbon .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 200, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0); }
}
.demo-ribbon a { color: var(--signal); text-decoration: underline; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 32px;
  z-index: 50;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--signal-glow) 70%);
  opacity: 0.7;
}
.brand-mark span { position: relative; z-index: 1; }
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brick);
  transition: width var(--t);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--t), background var(--t);
}
.nav-cta:hover {
  background: var(--brick);
  transform: translateY(-1px);
}
.nav-cta svg { transition: transform var(--t); }
.nav-cta:hover svg { transform: translateX(3px); }
.nav-toggle { display: none; }

/* ============================================
   GLOBAL LAYOUT
   ============================================ */
main { padding-top: 32px; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
section { padding-block: var(--section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--brick);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.15rem; line-height: 1.3; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brick);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ============================================
   HERO — 3D animated background
   ============================================ */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 var(--section);
  overflow: hidden;
  background: linear-gradient(180deg, #0A1020 0%, #0B1220 100%);
  color: var(--paper);
  margin: 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, transparent 20%, rgba(11, 18, 32, 0.85) 70%),
    linear-gradient(180deg, transparent 60%, rgba(11, 18, 32, 0.95) 100%);
  pointer-events: none;
}
.hero > .container { z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 { color: var(--paper); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--signal); }
.hero .lead { color: rgba(247, 244, 238, 0.78); }
.hero .eyebrow { color: rgba(247, 244, 238, 0.55); }
.hero .eyebrow::before { background: var(--signal); }

.hero-copy h1 .accent {
  position: relative;
  display: inline-block;
}
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.05em;
  width: 100%; height: 0.18em;
  background: var(--signal);
  opacity: 0.45;
  z-index: -1;
}
.hero-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(247, 244, 238, 0.08);
  border: 1px solid rgba(247, 244, 238, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(8px);
}
.chip.signal {
  background: rgba(0, 200, 150, 0.15);
  border-color: rgba(0, 200, 150, 0.4);
  color: var(--signal);
}
.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--t);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 200, 150, 0.55);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(247, 244, 238, 0.3);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--brick); transform: translateY(-1px); }
.btn svg { transition: transform var(--t); }
.btn:hover svg { transform: translateX(4px); }

/* Hero stats inline */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
}
.hero-stats .stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stats .stat-num .plus { color: var(--signal); font-style: italic; font-size: 0.7em; }
.hero-stats .stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247, 244, 238, 0.55);
  margin-top: 0.5rem;
}

/* Hero visual card (floats over 3D background) */
.hero-card-feature {
  background: rgba(247, 244, 238, 0.06);
  border: 1px solid rgba(247, 244, 238, 0.16);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero-card-feature .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
  margin-bottom: 0.5rem;
}
.hero-card-feature h3 {
  color: var(--paper);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.hero-card-feature p {
  color: rgba(247, 244, 238, 0.65);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.hero-card-feature .meta {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 244, 238, 0.12);
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.55);
}
.hero-card-feature .meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Marquee tape */
.tape {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.tape-track {
  display: inline-flex;
  gap: 3rem;
  animation: tape 40s linear infinite;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tape-track span { display: inline-flex; align-items: center; gap: 0.75rem; }
.tape-track span::before {
  content: "◆";
  color: var(--signal);
  font-size: 0.6rem;
}
@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   EDITORIAL IMAGES
   ============================================ */
.editorial-image {
  width: 100%;
  margin: var(--section) 0;
}
.editorial-image-frame {
  margin: 0 var(--gutter);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.editorial-image-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.editorial-image-frame.tall img { aspect-ratio: 4 / 3; }
.editorial-image-frame.panorama img { aspect-ratio: 21 / 9; }
.editorial-image-caption {
  max-width: var(--maxw);
  margin: 1.1rem auto 0;
  padding: 0 calc(var(--gutter) + 0.5rem);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.editorial-image-caption .credit { color: var(--muted-2); }

/* Paired image + quote */
.editorial-pair {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.editorial-pair.reverse { grid-template-columns: 1fr 1.1fr; }
.editorial-pair.reverse .editorial-pair-image { order: 2; }
.editorial-pair-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
}
.editorial-pair-image img { width: 100%; height: 100%; object-fit: cover; }
.editorial-pair-text .quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.editorial-pair-text .quote em { color: var(--brick); font-style: italic; font-weight: 300; }
.editorial-pair-text .attribution {
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.editorial-pair-text .attribution::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--brick);
}
@media (max-width: 860px) {
  .editorial-pair, .editorial-pair.reverse { grid-template-columns: 1fr; }
  .editorial-pair.reverse .editorial-pair-image { order: 0; }
}

/* ============================================
   MISSION TRIO — 3-photo row
   ============================================ */
.mission-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.mission-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--t);
}
.mission-photo:hover { transform: translateY(-4px); }
.mission-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .mission-trio { grid-template-columns: 1fr; }
}

/* ============================================
   BANNER HERO — wide community image + centered overlay
   ============================================ */
.banner-hero {
  position: relative;
  margin: var(--section) var(--gutter);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  align-items: center;
}
.banner-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.25) 0%, rgba(11,18,32,0.8) 100%);
  z-index: 1;
}
.banner-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}
.banner-hero .eyebrow {
  color: var(--signal);
  justify-content: center;
}
.banner-hero .eyebrow::before { background: var(--signal); }
.banner-hero h2 {
  color: var(--paper);
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.25rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.banner-hero h2 em { color: var(--signal); }
.banner-hero p {
  color: rgba(247, 244, 238, 0.85);
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}
.banner-hero .btn-row {
  justify-content: center;
  margin-top: 0;
}

/* ============================================
   SCROLL-LINKED 3D SECTION
   Globe of network nodes that parallaxes on scroll
   ============================================ */
.scroll-3d {
  position: relative;
  background: linear-gradient(180deg, #0A1020 0%, #060A14 50%, #0A1020 100%);
  color: var(--paper);
  overflow: hidden;
  min-height: 90vh;
  padding: clamp(5rem, 12vw, 9rem) 0;
  margin: var(--section) var(--gutter);
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
}
.scroll-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.scroll-3d-bg canvas { display: block; width: 100% !important; height: 100% !important; }
.scroll-3d-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 16, 32, 0.5) 60%, rgba(10, 16, 32, 0.95) 100%);
}
.scroll-3d-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 var(--gutter);
}
.scroll-3d-content .eyebrow {
  color: var(--signal);
  margin-bottom: 1.5rem;
}
.scroll-3d-content .eyebrow::before { background: var(--signal); }
.scroll-3d-content h2 {
  color: var(--paper);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.scroll-3d-content h2 em { color: var(--signal); }
.scroll-3d-content p { color: rgba(247, 244, 238, 0.7); }

@media (prefers-reduced-motion: reduce) {
  .scroll-3d-bg { display: none; }
}
@media (max-width: 720px) {
  .scroll-3d { min-height: 70vh; margin: var(--section) var(--gutter); }
}

/* ============================================
   MISSION / TEXT FEATURE
   ============================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.feature-text p { color: var(--ink-2); font-size: 1.1rem; line-height: 1.7; }
.feature-text p + p { margin-top: 1.25rem; }
.feature-text strong { color: var(--brick); font-weight: 600; }

/* ============================================
   PARTNERS / LOGOS
   ============================================ */
.partners {
  text-align: center;
}
.partners h2 { margin-bottom: 0.75rem; }
.partners-sub { color: var(--muted); margin-bottom: 3rem; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.logo-cell {
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--paper-2);
  transition: all var(--t);
}
.logo-cell:hover {
  background: var(--paper);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.logo-cell img {
  max-height: 38px;
  width: auto;
  filter: grayscale(1) brightness(0.5);
  opacity: 0.8;
  transition: filter var(--t), opacity var(--t);
}
.logo-cell:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 36ch; }
.section-head .btn { flex-shrink: 0; }

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(11, 18, 32, 0.25);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
  transition: background var(--t);
}
.card:hover .card-icon { background: var(--brick); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.card-link:hover { color: var(--brick); border-color: var(--brick); }

/* ============================================
   EVENT CARDS
   ============================================ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  transition: all var(--t);
  align-items: start;
}
.event-card:hover {
  background: var(--paper-2);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.event-date {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  min-width: 84px;
}
.event-date .month {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--signal);
}
.event-date .day {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-top: 0.25rem;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.event-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.event-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.event-location {
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.event-link {
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.event-link:hover { color: var(--brick); }

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-2);
}
.tag-brick { background: rgba(178, 58, 44, 0.1); color: var(--brick); }
.tag-signal { background: rgba(0, 200, 150, 0.12); color: #08735A; }
.tag-ink { background: var(--ink); color: var(--paper); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  width: fit-content;
}
.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--t);
}
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
}
.filter-btn:not(.active):hover { color: var(--ink); }

/* ============================================
   NEWSLETTER / CTA
   ============================================ */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(178, 58, 44, 0.25), transparent 40%),
    radial-gradient(circle at 100% 0%, var(--signal-glow), transparent 50%);
  pointer-events: none;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: var(--paper); margin-bottom: 1rem; }
.newsletter p { color: rgba(247, 244, 238, 0.78); margin-bottom: 0; }
.newsletter-form {
  display: flex;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem;
  align-items: center;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 1.25rem;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.newsletter-form button {
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--t);
}
.newsletter-form button:hover { background: var(--brick); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 7vw, 6rem) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
}
.footer-brand h3 {
  color: var(--paper);
  font-size: 1.85rem;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.footer-brand p { color: rgba(247, 244, 238, 0.6); max-width: 32ch; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  color: rgba(247, 244, 238, 0.78);
  font-size: 0.92rem;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.5);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.social { display: flex; gap: 0.75rem; }
.social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(247, 244, 238, 0.18);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  transition: all var(--t);
}
.social a:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }

/* ============================================
   PAGE HEROES (inner pages — also get 3D)
   ============================================ */
.page-hero {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0A1020 0%, #0B1220 100%);
  color: var(--paper);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.page-hero h1 { margin-bottom: 1.5rem; max-width: 16ch; color: var(--paper); }
.page-hero h1 em { color: var(--signal); }
.page-hero .lead { max-width: 60ch; color: rgba(247, 244, 238, 0.78); }
.page-hero .eyebrow { color: rgba(247, 244, 238, 0.55); }
.page-hero .eyebrow::before { background: var(--signal); }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, transparent 25%, rgba(11, 18, 32, 0.85) 75%),
    linear-gradient(180deg, transparent 50%, rgba(11, 18, 32, 0.95) 100%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.crumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(247, 244, 238, 0.55);
  margin-bottom: 2rem;
}
.crumbs a:hover { color: var(--signal); }
.crumbs span { margin: 0 0.5rem; color: rgba(247, 244, 238, 0.25); }

/* ============================================
   ABOUT — Team grid
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.team-card {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--t);
  border: 1px solid var(--line);
}
.team-card:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}
.team-card:hover h4, .team-card:hover .team-role, .team-card:hover p { color: var(--paper); }
.team-card:hover .team-role { color: var(--signal); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--t);
  position: relative;
}
.team-card:hover .team-avatar { background: var(--brick); }
.team-card h4 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.team-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brick);
  margin-bottom: 0.75rem;
  transition: color var(--t);
}
.team-card p { font-size: 0.88rem; line-height: 1.55; color: var(--muted); }

/* Pillar grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.pillar {
  background: var(--paper-2);
  border-left: 2px solid var(--brick);
  padding: 1.5rem 1.25rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: all var(--t);
}
.pillar:hover { background: var(--ink); color: var(--paper); border-color: var(--signal); }
.pillar:hover h4, .pillar:hover p { color: var(--paper); }
.pillar-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--brick);
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--t);
}
.pillar:hover .pillar-num { color: var(--signal); }
.pillar h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.85rem; line-height: 1.55; color: var(--muted); transition: color var(--t); }

/* ============================================
   RESOURCES — Feature card
   ============================================ */
.feature-resource {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  min-height: 480px;
  margin-bottom: 4rem;
}
.feature-resource-visual {
  position: relative;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  display: grid;
  place-items: center;
  padding: 3rem;
  overflow: hidden;
}
.feature-resource-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, var(--signal-glow), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(178, 58, 44, 0.3), transparent 50%);
}
.feature-resource-visual svg { position: relative; z-index: 1; max-width: 80%; }
.feature-resource-content {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-resource-content .eyebrow::before { background: var(--signal); }
.feature-resource-content .eyebrow { color: rgba(247, 244, 238, 0.7); }
.feature-resource-content h3 { color: var(--paper); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }
.feature-resource-content p { color: rgba(247, 244, 238, 0.78); margin-bottom: 2rem; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
  position: relative;
}
.resource-card::before {
  content: "";
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.resource-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(11, 18, 32, 0.2);
}
.resource-card:hover::before { transform: scaleX(1); }
.resource-card .tag { align-self: flex-start; margin-bottom: 1.5rem; }
.resource-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.resource-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.resource-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.download-link {
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.download-link:hover { color: var(--brick); }

/* ============================================
   ARCHIVE LIST
   ============================================ */
.archive-list { list-style: none; }
.archive-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding-left var(--t);
}
.archive-row:hover { padding-left: 1rem; }
.archive-row:hover .archive-title { color: var(--brick); }
.archive-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.archive-title { font-family: var(--serif); font-size: 1.2rem; transition: color var(--t); }
.archive-meta { font-size: 0.85rem; color: var(--muted); }
.archive-link {
  font-size: 0.82rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.archive-link:hover { color: var(--brick); }

/* ============================================
   HELPERS
   ============================================ */
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 4rem; }

.reveal { animation: revealIn 0.6s var(--ease); }
@keyframes revealIn {
  from { transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .hero-bg, .page-hero .hero-bg { display: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .card-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 2rem; }
  .feature-resource { grid-template-columns: 1fr; }
  .feature-resource-visual { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
  .card-grid, .resource-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-head { flex-direction: column; align-items: start; }
  .demo-ribbon { font-size: 0.65rem; }
  .demo-ribbon .desktop-only { display: none; }
}
