/* ============================================
   ENVISION FUNDRAISING INC. — SHARED STYLESHEET
   ============================================ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Colours */
  --navy:       #0B1F3A;
  --charcoal:   #1C1C2E;
  --off-white:  #F5F0EB;
  --gold:       #D4A84B;
  --gold-hover: #E0BC6A;
  --white:      #FFFFFF;
  --grey-text:  #A0A0B0;
  --dark-card:  #141426;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--off-white);
  background: linear-gradient(
    to bottom,
    var(--charcoal) 0%,
    #181830 15%,
    #14142a 30%,
    #111125 50%,
    #0e0e20 70%,
    #0a0a1a 85%,
    #080815 100%
  );
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* ---------- TRAVELING GOLD GLOW ---------- */
/* Stationary gold glow behind "How Can We Help You?" heading */
.paths-glow {
  position: relative;
}
.paths-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 250px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 50% 45% at 50% 50%,
    rgba(212, 168, 75, 0.17) 0%,
    rgba(212, 168, 75, 0.07) 40%,
    rgba(212, 168, 75, 0.02) 65%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child items */
.reveal-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(9) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(10) { transition-delay: 1.0s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(11) { transition-delay: 1.1s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(12) { transition-delay: 1.2s; opacity: 1; transform: translateY(0); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  padding: 14px 0 42px;
  /* background set dynamically by JS on all pages */
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 0 32px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

body.dropdown-open .nav-links {
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
}

body.dropdown-open .menu-toggle {
  position: fixed;
  right: 24px;
  top: 18px;
}

/* When nav-links are visible (desktop), they handle the right-push — toggle just follows */
@media (min-width: 769px) {
  .nav-links ~ .menu-toggle {
    margin-left: 0;
  }
}

/* Logo placeholder */
.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 45px;
  width: auto;
  display: block;
  filter: invert(1);
}

/* Nav links */
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--off-white);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity var(--transition), color var(--transition), letter-spacing 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--white);
  letter-spacing: 2.5px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA button in nav */
.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border-radius: 6px;
  opacity: 1 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-2px);
}

/* Menu toggle button (hamburger icon — always visible) */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: color var(--transition);
  position: relative;
  margin-left: auto;
}

.menu-toggle:hover {
  color: var(--gold);
}

.menu-toggle svg {
  pointer-events: none;
}

/* Dropdown panel */
.dropdown-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background:
    linear-gradient(160deg, rgba(24, 28, 55, 0.96) 0%, rgba(14, 18, 38, 0.97) 35%, rgba(10, 20, 35, 0.98) 65%, rgba(6, 8, 20, 0.99) 100%);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 998;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -6px 0 50px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.dropdown-panel.open {
  transform: translateX(0);
}

.dropdown-panel-inner {
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px;
  gap: 6px;
}

.dropdown-panel-inner > a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition), padding-left var(--transition);
}

.dropdown-panel-inner > a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.dropdown-panel-inner .nav-cta {
  margin-top: 16px;
  text-align: center;
  border-bottom: none;
  font-size: 0.95rem !important;
  padding: 14px 24px !important;
}

/* Social icons inside dropdown */
.dropdown-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

/* Logo inside dropdown */
.dropdown-logo {
  position: absolute;
  bottom: 28px;
  right: 32px;
  opacity: 0.25;
  pointer-events: none;
}

.dropdown-logo img {
  height: 32px;
  width: auto;
  filter: invert(1);
}

/* Divider for mobile dropdown */
.dropdown-divider {
  height: 1px;
  background: rgba(212, 168, 75, 0.2);
  margin: 8px 0;
}

/* Audience links in dropdown — always visible now */
.dropdown-audience-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-audience-links a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--off-white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition), padding-left var(--transition);
}

.dropdown-audience-links a:hover {
  color: var(--gold);
  padding-left: 8px;
}

/* Dropdown overlay to close panel on click outside */
.dropdown-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 997;
}

.dropdown-overlay.open {
  display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height — accounts for mobile address bar */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 70px 20px 0;
  position: relative;
  overflow: hidden;
  /* Textured charcoal background with vignette */
  background:
    /* Vignette — darkened edges */
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.55) 100%),
    /* Subtle gold glow in upper center */
    radial-gradient(ellipse at 50% 30%, rgba(212, 168, 75, 0.04) 0%, transparent 60%),
    /* Faint crosshatch texture */
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.007) 3px, rgba(255,255,255,0.007) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.005) 3px, rgba(255,255,255,0.005) 4px),
    /* Base colour */
    var(--charcoal);
}

/* ---- HERO INTRO SEQUENCE ---- */
/* Timeline (6s): envision appears (clipped) → "Inspire Change." reveals → shimmer → drift to watermark */

/* Logo wrapper — centered, clips the image to reveal in stages */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  /* Polygon clip: full height on left (brackets), clips bottom-right (hides "Inspire Change.") */
  clip-path: polygon(0 0, 100% 0, 100% 78%, 60% 78%, 60% 100%, 0 100%);
  animation: logo-intro 6s ease forwards;
}

.hero-logo img {
  width: clamp(340px, 55vw, 650px);
  height: auto;
  display: block;
  filter: invert(1);
  mix-blend-mode: screen;
}

/* "Inspire Change." boost — separate element outside .hero-logo so parent opacity doesn't cap it.
   Position is set by JS (copied from hero-logo computed state) for exact alignment on all devices. */
.inspire-boost {
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  /* Clip to only "Inspire Change." area — bottom-right of logo */
  clip-path: polygon(58% 78%, 100% 78%, 100% 100%, 58% 100%);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.inspire-boost.visible {
  opacity: 0.30;
}

.inspire-boost img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Shimmer — sweeps across after tagline reveals */
.hero-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 20%,
    rgba(212,168,75,0.35) 38%,
    rgba(255,255,255,0.75) 46%,
    rgba(212,168,75,0.95) 50%,
    rgba(255,255,255,0.75) 54%,
    rgba(212,168,75,0.35) 62%,
    rgba(255,255,255,0) 80%,
    rgba(255,255,255,0) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0;
  animation: logo-shimmer 1.75s ease-in-out 1.63s 1 forwards;
}

@keyframes logo-intro {
  /* Fade in centered — "[e]nvision" + brackets visible, "Inspire Change." hidden via polygon */
  0%   { top: 50%; opacity: 0;    transform: translate(-50%, -50%) scale(0.7); clip-path: polygon(0 0, 100% 0, 100% 78%, 60% 78%, 60% 100%, 0 100%); }
  15%  { top: 50%; opacity: 1;    transform: translate(-50%, -50%) scale(1);   clip-path: polygon(0 0, 100% 0, 100% 78%, 60% 78%, 60% 100%, 0 100%); }
  /* Hold, then reveal "Inspire Change." tagline */
  22%  { top: 50%; opacity: 1;    transform: translate(-50%, -50%) scale(1);   clip-path: polygon(0 0, 100% 0, 100% 78%, 60% 78%, 60% 100%, 0 100%); }
  30%  { top: 50%; opacity: 1;    transform: translate(-50%, -50%) scale(1);   clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 100%, 0 100%); }
  /* Hold for shimmer */
  56%  { top: 50%; opacity: 1;    transform: translate(-50%, -50%) scale(1);   clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 100%, 0 100%); }
  /* Drift down and fade to watermark */
  71%  { top: calc(100% - 65px); opacity: 0.06; transform: translate(-50%, -100%) scale(1); clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 100%, 0 100%); }
  100% { top: calc(100% - 65px); opacity: 0.06; transform: translate(-50%, -100%) scale(1); clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 100%, 0 100%); }
}

@keyframes logo-shimmer {
  0%   { left: -80%; opacity: 1; }
  100% { left: 180%; opacity: 1; }
}

/* Hero text intro — grows in gently, staggered (delayed for new longer logo sequence) */
.hero-intro-text {
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  animation: hero-text-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 4.0s;
}

.hero-intro-delay-1 {
  animation-delay: 4.3s;
}

.hero-intro-delay-2 {
  animation-delay: 4.6s;
}

@keyframes hero-text-in {
  0%   { opacity: 0;   transform: scale(0.88) translateY(16px); }
  60%  { opacity: 1;   transform: scale(1) translateY(0);       }
  100% { opacity: 1;   transform: scale(1) translateY(0);       }
}

/* Hero content — centered in the flex column */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Hero ticker — gold bar at the bottom of the hero viewport */
.hero-ticker {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--gold) 70%, #b8903e 100%);
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(212, 168, 75, 0.25), 0 2px 8px rgba(212, 168, 75, 0.15);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--grey-text);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 75, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 2px solid rgba(245, 240, 235, 0.25);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   CITY TICKER
   ============================================ */
.ticker-section {
  background: var(--gold);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

/* Ticker also used inside .hero-ticker — same track/item styles apply */

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ticker-year {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

/* Founding office (Ottawa) — inverted navy pill on the gold ticker */
.ticker-item--highlight {
  color: var(--gold);
  background: var(--navy);
  border-radius: 100px;
  padding: 4px 16px;
  margin: 0 12px;
}

.ticker-item--highlight .ticker-year {
  opacity: 0.8;
}

/* ---------- Founding Office badge + missing-photo fallback (location cards) ---------- */
.founding-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 5px 11px;
  border-radius: 100px;
  box-shadow: 0 0 16px rgba(212, 168, 75, 0.35);
}

.location-card--founding,
.join-city-card--founding {
  border-color: rgba(212, 168, 75, 0.45);
  box-shadow: 0 0 24px rgba(212, 168, 75, 0.12);
}

.no-photo > img {
  display: none;
}

.location-card.no-photo,
.join-city-card.no-photo,
.join-sidebar-card.no-photo,
.page-hero-city-bg.no-photo {
  background:
    radial-gradient(circle at 75% 20%, rgba(212, 168, 75, 0.2) 0%, transparent 55%),
    linear-gradient(135deg, #1a2a4a 0%, var(--dark-card) 100%);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   CURVED SECTION DIVIDERS
   ============================================ */
.section-curve {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
  z-index: 1;
}

.section-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================
   IMPACT STATS
   ============================================ */
.stats-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(212,168,75,0.04) 0%, transparent 50%);
  padding: var(--section-pad);
  position: relative;
}

/* Gold glow bleed from ticker above — full-width curved fade */
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(212,168,75,0.16) 0%, rgba(212,168,75,0.07) 35%, transparent 65%);
  pointer-events: none;
}

.stats-section > .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  border-color: rgba(212, 168, 75, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--grey-text);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ============================================
   LOCATIONS NEAR YOU
   ============================================ */
.locations-section {
  padding: var(--section-pad);
  background: transparent;
  position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 1.05rem;
  color: #5A5A6E;
  max-width: 550px;
  margin: 0 auto;
}

/* Dark section heading variant */
.section-heading--light h2 {
  color: var(--off-white);
}

.section-heading--light p {
  color: var(--grey-text);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Grid view (above the mobile carousel): 8 columns, cards span 2, so a partial last row can be centered */
@media (min-width: 769px) {
  .locations-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .locations-grid > .location-card {
    grid-column: span 2;
  }
  .locations-grid > .location-card:nth-child(4n+1):nth-last-child(1) { grid-column: 4 / span 2; }
  .locations-grid > .location-card:nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; }
  .locations-grid > .location-card:nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; }
}

a.location-card {
  text-decoration: none;
  color: inherit;
}

.location-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--dark-card) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  border-color: rgba(212,168,75,0.2);
}

/* When card has a real photo — name overlays bottom with gradient scrim */
.location-card:has(img) {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}

.location-card:has(img)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 45%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

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

.location-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* ============================================
   HOW IT WORKS / ABOUT
   ============================================ */
.about-section {
  background: var(--navy);
  padding: var(--section-pad);
}

.about-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.about-intro p {
  font-size: 1.1rem;
  color: var(--grey-text);
  line-height: 1.8;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(212, 168, 75, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.7;
}

/* About CTA */
.about-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   PARTNER / CONTENT PAGE LAYOUT
   ============================================ */
.content-page {
  background: var(--charcoal);
  padding: var(--section-pad);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.content-main h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.content-main h2 .highlight {
  color: var(--gold);
}

.content-main .lead {
  font-size: 1.15rem;
  color: var(--off-white);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 24px;
}

.content-main p {
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-main .content-cta {
  margin-top: 32px;
}

/* Sidebar */
.content-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.sidebar-card p:last-child {
  margin-bottom: 0;
}

.sidebar-card .script-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 6px;
}

.sidebar-card blockquote {
  font-size: 0.9rem;
  color: var(--off-white);
  line-height: 1.7;
  font-style: italic;
  padding-left: 14px;
  border-left: 2px solid rgba(212, 168, 75, 0.3);
  margin-bottom: 16px;
}

.sidebar-card blockquote:last-child {
  margin-bottom: 0;
}

/* Feature checklist for partner page */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-list li {
  font-size: 1rem;
  color: var(--off-white);
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* ============================================
   SUB-PAGE HERO
   ============================================ */
.page-hero {
  background:
    /* Top vignette — darkens area below nav for separation */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.08) 30%, transparent 60%),
    var(--navy);
  padding: 130px 0 50px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--grey-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Hero Mixed-Weight Treatment ---------- */
/* Lighter base weight with bold gold highlight — editorial feel */
.page-hero h1.hero-mixed,
h2.hero-mixed,
h3.hero-mixed {
  font-weight: 400;
  letter-spacing: 0.5px;
}
.hero-mixed .highlight {
  font-weight: 800;
  color: var(--gold);
}

/* Subtle radial gold glow behind hero heading */
.page-hero:has(.hero-mixed) {
  position: relative;
  padding: 110px 0 44px;
}
.page-hero:has(.hero-mixed)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(212, 168, 75, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero:has(.hero-mixed) .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   VALUES SECTION (About page)
   ============================================ */
.values-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.values-section h2 {
  color: var(--charcoal);
}

.values-section > .container > .section-heading p {
  color: #666;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.value-item {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition);
}

.value-item:hover {
  transform: translateY(-4px);
}

.value-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
  background: var(--charcoal);
  padding: var(--section-pad);
}

/* Featured founders — side-by-side photo + bio */
.team-featured {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.team-featured-card {
  display: flex;
  gap: 36px;
  align-items: center;
  background: var(--dark-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition);
}

.team-featured-card:hover {
  transform: translateY(-4px);
}

.team-featured-card:nth-child(even) {
  flex-direction: row-reverse;
}

.team-featured-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
}

/* Per-photo framing: set --photo-pos / --photo-zoom / --photo-origin inline on the img to center a face */
.team-featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, 50% 50%);
  transform: scale(var(--photo-zoom, 1));
  transform-origin: var(--photo-origin, 50% 50%);
}

.team-featured-info {
  flex: 1;
}

.team-featured-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.team-featured-role {
  display: block;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.team-featured-info p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-featured-quote {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  font-style: italic;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

/* Supporting team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  transition: transform var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: #2A2A40;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--grey-text);
  font-weight: 500;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--navy);
  padding: var(--section-pad);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.6;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--off-white);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 168, 75, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--grey-text);
}

/* ============================================
   AUDIENCE PATH CARDS
   ============================================ */
.paths-section {
  background:
    /* Subtle gold glow behind heading */
    radial-gradient(ellipse at 50% 30%, rgba(212,168,75,0.015) 0%, transparent 55%);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 2px solid var(--gold);
  border-radius: 14px;
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 75, 0.2);
  border-top-color: var(--gold);
}

.path-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 14px;
}

.path-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.path-card p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
}

.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 24px;
  transition: gap var(--transition), color var(--transition);
}

.path-card:hover .path-cta {
  gap: 12px;
  color: var(--gold-hover);
}

.path-arrow {
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.path-card:hover .path-arrow {
  transform: translateX(3px);
}

/* ============================================
   SUB-PAGE LIGHT THEME
   Content sections on sub-pages use off-white backgrounds
   for better readability. Nav, footer, page-hero, and
   paths-section remain dark for brand consistency.
   ============================================ */

/* --- About Page — Body-level gradient (matches team/partner) --- */
body.about-page {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.007) 3px, rgba(255, 255, 255, 0.007) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.005) 3px, rgba(255, 255, 255, 0.005) 4px),
    linear-gradient(to bottom, #0B1F3A 0%, #0F1C35 15%, #0D1930 30%, #0B1628 50%, #0a1424 70%, #091320 85%, #081220 100%);
}

/* Wrapper — overlays span all about content seamlessly */
.about-content-wrapper {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.15) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(212, 168, 75, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(30, 80, 120, 0.06) 0%, transparent 45%);
  position: relative;
}

/* No hero-blend veil needed: the about hero sits inside .about-content-wrapper, so overlays span it seamlessly */

body.about-page .page-hero {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.08) 30%, transparent 60%);
}

body.about-page .about-section {
  background: transparent;
}

body.about-page .about-section .section-heading h2 {
  color: var(--white);
}

body.about-page .about-intro {
  color: var(--off-white);
}

body.about-page .about-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.about-page .about-card:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

body.about-page .about-card h3 {
  color: var(--white);
}

body.about-page .about-card p {
  color: var(--grey-text);
}

body.about-page .values-section {
  background: transparent;
}

body.about-page .values-section h2 {
  color: var(--white);
}

body.about-page .values-section > .container > .section-heading p {
  color: var(--grey-text);
}

body.about-page .value-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.about-page .value-item h3 {
  color: var(--white);
}

body.about-page .value-item p {
  color: var(--grey-text);
}

body.about-page .testimonials-section {
  background: transparent;
}

body.about-page .paths-section {
  background: transparent;
}

/* --- About page (redesign): story hero, values list, three-up CTA --- */
.about-hero-logo {
  display: block;
  height: 84px;
  width: auto;
  margin: 0 auto 26px;
  filter: invert(1);
}

@media (max-width: 768px) {
  .about-hero-logo {
    height: 60px;
    margin-bottom: 20px;
  }
}

.page-hero.about-hero p {
  max-width: 720px;
  color: var(--off-white);
  opacity: 0.85;
}

.page-hero.about-hero p strong {
  color: var(--white);
  font-weight: 700;
}

.about-values {
  position: relative;
  z-index: 2; /* sit above the wrapper's navy hero-blend veil */
  padding: 70px 0 30px;
  background: transparent;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  max-width: 1050px;
  margin: 0 auto;
  align-items: start;
}

.about-values-intro {
  position: sticky;
  top: 120px;
}

.about-values-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-values-intro p {
  font-size: 1.02rem;
  color: var(--grey-text);
  line-height: 1.7;
}

.about-value {
  position: relative;
  padding: 26px 0 26px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-value:first-child {
  padding-top: 0;
}

.about-value:last-child {
  border-bottom: none;
}

.about-value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 32px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 168, 75, 0.4);
}

.about-value:first-child::before {
  top: 6px;
}

.about-value h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 8px;
}

.about-value p {
  font-size: 0.97rem;
  color: var(--grey-text);
  line-height: 1.7;
}

.team-cta-row.team-cta-row--three {
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1100px;
}

@media (max-width: 1024px) {
  .team-cta-row.team-cta-row--three {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-values-intro {
    position: static;
    text-align: center;
  }
  .team-cta-row.team-cta-row--three {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .team-cta-row.team-cta-row--three .team-cta-block:nth-child(n) {
    order: 0;
  }
}

/* --- Team Page — Body-level gradient (no section seams) --- */
body.team-page {
  background:
    /* Crosshatch texture */
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.007) 3px, rgba(255, 255, 255, 0.007) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.005) 3px, rgba(255, 255, 255, 0.005) 4px),
    /* Full-page gradient — navy through deep dark */
    linear-gradient(to bottom, #0B1F3A 0%, #0F1C35 15%, #0D1930 30%, #0B1628 50%, #0a1424 70%, #091320 85%, #081220 100%);
}

/* --- Wrapper spans both team + paths — overlays cover both seamlessly --- */
.team-paths-wrapper {
  background:
    /* Soft vignette */
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.15) 100%),
    /* Subtle warm gold glow */
    radial-gradient(ellipse at 50% 25%, rgba(212, 168, 75, 0.04) 0%, transparent 55%),
    /* Teal/blue glow lower half */
    radial-gradient(ellipse at 50% 75%, rgba(30, 80, 120, 0.08) 0%, transparent 45%);
  position: relative;
}

/* Seamless hero blend — navy fades into wrapper top */
.team-paths-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--navy) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Both sections transparent — body gradient + wrapper overlays show through */
.team-section {
  background: transparent;
  position: relative;
  padding-top: 50px;
}

.team-section > .container {
  position: relative;
  z-index: 1;
}

.team-section + .paths-section {
  background: transparent;
}

/* --- Team Page CTA — editorial two-column layout --- */
.team-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 900px;
  margin: 0 auto;
}

.team-cta-block {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 36px 0;
  border-top: 2px solid rgba(212, 168, 75, 0.3);
  position: relative;
  transition: border-color 0.4s ease;
}

.team-cta-block::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s ease;
}

.team-cta-block:hover::before {
  width: 100%;
}

.team-cta-block:hover {
  border-color: transparent;
}

.team-cta-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}

.team-cta-block h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.team-cta-block:hover h3 {
  color: var(--gold);
}

.team-cta-block p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0;
}

.team-cta-arrow {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-cta-block:hover .team-cta-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Cards — dark translucent with glow */
.team-featured-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid rgba(212, 168, 75, 0.3);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(212, 168, 75, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.team-featured-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(212, 168, 75, 0.06);
  border-color: rgba(212, 168, 75, 0.15);
  border-top-color: rgba(212, 168, 75, 0.45);
}

/* Photo circle — gold glow ring */
.team-featured-photo {
  box-shadow:
    0 0 0 4px rgba(212, 168, 75, 0.1),
    0 0 25px rgba(212, 168, 75, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Text — light on dark */
.team-featured-info h3 {
  color: var(--white);
}

.team-featured-info p {
  color: var(--grey-text);
}

.team-featured-quote {
  color: var(--off-white);
  padding: 12px 16px;
  background: linear-gradient(to right, rgba(212, 168, 75, 0.08) 0%, transparent 60%);
  border-radius: 0 8px 8px 0;
}

.team-featured-role {
  color: var(--gold);
}

/* --- About Section (about.html) --- */
.about-section {
  background: var(--off-white);
}

.about-section .section-heading h2 {
  color: var(--charcoal);
}

.about-section .section-heading p {
  color: #666;
}

.about-intro {
  color: #555;
}

.about-card {
  background: var(--white);
  border-color: rgba(0, 0, 0, 0.06);
}

.about-card:hover {
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
  color: var(--charcoal);
}

.about-card p {
  color: #555;
}

/* --- Partner Page — Dark theme (matches team page) --- */
body.partner-page {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.007) 3px, rgba(255, 255, 255, 0.007) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.005) 3px, rgba(255, 255, 255, 0.005) 4px),
    linear-gradient(to bottom, #0B1F3A 0%, #0F1C35 15%, #0D1930 30%, #0B1628 50%, #0a1424 70%, #091320 85%, #081220 100%);
}

/* Wrapper — overlays span all partner content seamlessly */
.partner-content-wrapper {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.15) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(212, 168, 75, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(30, 80, 120, 0.06) 0%, transparent 45%);
  position: relative;
}

/* Seamless hero blend */
.partner-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--navy) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* --- Partner Details Grid: Text + Features --- */
.partner-details {
  background: transparent;
  padding: 70px 0 50px;
  position: relative;
  z-index: 1;
}

.partner-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left text column */
.partner-text-col h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.partner-text-col .lead {
  font-size: 1.15rem;
  color: var(--off-white);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 24px;
}

.partner-text-col p {
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Inline pull-quote */
.partner-pullquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  padding: 28px 0 28px 28px;
  margin: 32px 0;
  border-left: 3px solid var(--gold);
  position: relative;
}

.partner-pullquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(to right, rgba(212, 168, 75, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.partner-cta {
  margin-top: 32px;
}

/* Features panel — subtle card */
.partner-features-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid rgba(212, 168, 75, 0.3);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.12);
}

.partner-features-panel h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}

.partner-features-panel .feature-list {
  margin: 0;
}

.partner-features-panel .feature-list li {
  color: var(--off-white);
  border-bottom-color: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

/* ---------- Partner Spotlight (Director opportunity ad) ---------- */
.partner-spotlight {
  padding: 40px 0 20px;
  background: transparent;
}

.partner-spotlight-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 48px 40px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.partner-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(212, 168, 75, 0.7) 20%, rgba(212, 168, 75, 0.7) 80%, transparent 100%);
}

.partner-spotlight-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.partner-spotlight-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.partner-spotlight-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 100px;
  background: rgba(212, 168, 75, 0.06);
}

.partner-spotlight-pay {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 75, 0.25);
}

.partner-spotlight-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.partner-spotlight-lead {
  font-size: 1.05rem;
  color: var(--off-white);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 24px;
}

.partner-spotlight-requirements {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: grid;
  gap: 10px;
}

.partner-spotlight-requirements li {
  position: relative;
  padding-left: 26px;
  color: var(--grey-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.partner-spotlight-requirements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}

.partner-spotlight-cities {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.partner-spotlight-city {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 168, 75, 0.25);
  border-radius: 10px;
  background: rgba(212, 168, 75, 0.05);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.partner-spotlight-city strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.partner-spotlight-city span {
  font-size: 0.82rem;
  color: var(--grey-text);
}

.partner-spotlight-city:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 75, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .partner-spotlight-cities {
    grid-template-columns: 1fr;
  }
}

.partner-spotlight-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partner-spotlight-meta {
  font-size: 0.85rem;
  color: var(--grey-text);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .partner-spotlight-card {
    padding: 32px 24px 28px;
    border-radius: 12px;
  }
  .partner-spotlight-cta {
    gap: 12px;
  }
  .partner-spotlight-meta {
    width: 100%;
    text-align: left;
  }
}

/* ============================================
   LAUNCH YOUR CAMPAIGN (charities.html)
   ============================================ */
.charity-hero-cta {
  margin-top: 28px;
}

.charity-steps {
  padding: 60px 0 20px;
  background: transparent;
}

.charity-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.charity-step {
  position: relative;
  padding: 32px 28px 30px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: transform var(--transition), border-color var(--transition);
}

.charity-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  width: 40px;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.charity-step:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 75, 0.2);
}

.charity-step:hover::before {
  width: calc(100% - 56px);
}

.charity-step-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 18px;
}

.charity-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 10px;
}

.charity-step p {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.65;
}

.charity-stats {
  padding: 50px 0 20px;
  background: transparent;
}

.charity-stats .stats-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.charity-final {
  padding: 50px 0 30px;
  background: transparent;
}

.charity-final-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.charity-final-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(212, 168, 75, 0.7) 20%, rgba(212, 168, 75, 0.7) 80%, transparent 100%);
}

.charity-final-card::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(212, 168, 75, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.charity-final-card h2 {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.charity-final-card p {
  position: relative;
  font-size: 1.05rem;
  color: var(--grey-text);
  margin-bottom: 28px;
}

.charity-final-card .btn {
  position: relative;
}

@media (max-width: 768px) {
  .charity-steps-grid,
  .charity-stats .stats-grid {
    grid-template-columns: 1fr;
  }
  .charity-final-card {
    padding: 40px 24px;
  }
}

/* Partner paths section — transparent bg */
.partner-content-wrapper .paths-section {
  background: transparent;
  padding-top: 40px;
}

/* ============================================
   UNDER CONSTRUCTION
   ============================================ */
.construction-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 140px 0 80px;
  position: relative;
}

.construction-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
}

.construction-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
}

.construction-label::before,
.construction-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: rgba(212, 168, 75, 0.3);
}

.construction-label::before {
  right: calc(100% + 14px);
}

.construction-label::after {
  left: calc(100% + 14px);
}

.construction-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.construction-tagline {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 40px;
}

.construction-tagline em {
  color: var(--gold);
  font-style: italic;
}

.construction-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: transparent;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 168, 75, 0.15);
  transition: color var(--transition), transform var(--transition), border-color var(--transition);
  transform-origin: left center;
}

.footer-col a:last-child {
  margin-bottom: 0;
}

.footer-col a:hover {
  color: var(--gold);
  border-bottom-color: rgba(212, 168, 75, 0.45);
  transform: scale(1.16);
}

/* Pages column — links in centered rows with gold dot separators */
.footer-pages {
  text-align: center;
}

.footer-pages .footer-pages-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.footer-pages .footer-pages-row a {
  display: inline-block;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transform-origin: center;
  white-space: nowrap;
}

.footer-pages .footer-pages-row a:hover {
  border-bottom-color: rgba(212, 168, 75, 0.45);
  transform: scale(1.08);
}

.footer-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-pages .footer-pages-row {
    gap: 8px 10px;
  }
  .footer-pages .footer-pages-row a {
    font-size: 0.85rem;
  }
}

.footer-contact a,
.footer-contact a:hover {
  transform: none;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--grey-text);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--grey-text);
  opacity: 0.7;
}

/* ============================================
   APPLY / CONTACT PAGE
   ============================================ */

.apply-content-wrapper {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.15) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(212, 168, 75, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(30, 80, 120, 0.06) 0%, transparent 45%);
  position: relative;
}

.apply-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #0B1F3A, transparent);
  pointer-events: none;
  z-index: 1;
}

.apply-section {
  position: relative;
  z-index: 2;
  padding: 32px 0 40px;
}

/* Compact hero for apply page */
body.apply-page .page-hero {
  padding: 90px 0 24px;
}

.apply-form-card {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px 48px 40px;
}

.apply-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.apply-required-note {
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-bottom: 36px;
  opacity: 0.7;
}

.required-star {
  color: var(--gold);
  font-weight: 600;
}

/* --- Form Layout --- */

.form-row {
  margin-bottom: 24px;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* --- Inputs & Select --- */

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
}

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: var(--grey-text);
  opacity: 0.5;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.apply-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A0A0B0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.apply-form select option {
  background: var(--charcoal);
  color: var(--white);
}

.apply-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Select Circles --- */

.select-circles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.select-circles--inline {
  flex-direction: row;
  gap: 32px;
}

.form-group .select-circle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.select-circle-label:hover {
  color: var(--white);
}

.select-circle-label input[type="radio"] {
  display: none;
}

.select-circle {
  display: block;
  width: 22px;
  min-height: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.select-circle-label input[type="radio"]:checked + .select-circle {
  border-color: var(--gold);
}

.select-circle-label input[type="radio"]:checked + .select-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- File Upload --- */

.file-upload-area {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--gold);
  background: rgba(212, 168, 75, 0.04);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  color: var(--grey-text);
}

.file-upload-content svg {
  opacity: 0.5;
}

.file-upload-text {
  font-size: 0.95rem;
  color: var(--off-white);
}

.file-upload-hint {
  font-size: 0.78rem;
  opacity: 0.5;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--off-white);
}

.file-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}

.file-item-remove {
  background: none;
  border: none;
  color: var(--grey-text);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.file-item-remove:hover {
  color: #e74c3c;
}

/* --- Submit --- */

.form-submit-row {
  margin-top: 32px;
  margin-bottom: 0;
}

.btn-submit {
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* --- Validation --- */

.apply-form .form-group.error input,
.apply-form .form-group.error select,
.apply-form .form-group.error textarea {
  border-color: #e74c3c;
}

.form-error-msg {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 4px;
}

/* --- Success State --- */

.apply-success {
  text-align: center;
  padding: 60px 20px;
}

.apply-success h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.apply-success p {
  color: var(--grey-text);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* --- Apply Page Responsive --- */

@media (max-width: 768px) {
  .apply-form-card {
    padding: 32px 24px 28px;
  }

  .form-row--half {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .apply-intro {
    font-size: 0.95rem;
  }

  .radio-group {
    gap: 20px;
  }

  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .apply-form-card {
    padding: 24px 18px 22px;
    border-radius: 12px;
  }

  .apply-section {
    padding: 40px 0 24px;
  }
}

/* ============================================
   JOIN PAGE — CITY EXPLORER
   ============================================ */

body.join-page {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.007) 3px, rgba(255, 255, 255, 0.007) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.005) 3px, rgba(255, 255, 255, 0.005) 4px),
    linear-gradient(to bottom, #0B1F3A 0%, #0A1A30 5%, #091628 15%, #081322 28%, #071120 42%, #060f1c 60%, #050d18 80%, #040b14 100%);
  min-height: 100vh;
}

.join-content-wrapper {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.15) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(212, 168, 75, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(30, 80, 120, 0.06) 0%, transparent 45%);
  position: relative;
}

.join-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--navy) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* --- City Selection Grid --- */

.join-explorer {
  padding: 40px 0 40px;
  position: relative;
  z-index: 3;
}

.join-page .paths-section {
  padding: 70px 0 80px;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Desktop: 8-column grid with cards spanning 2, so a partial last row can be centered */
@media (min-width: 1025px) {
  .join-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .join-grid > .join-city-card {
    grid-column: span 2;
  }
  /* Last row with 1, 2 or 3 cards — shift the first one so the row sits centered */
  .join-grid > .join-city-card:nth-child(4n+1):nth-last-child(1) { grid-column: 4 / span 2; }
  .join-grid > .join-city-card:nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; }
  .join-grid > .join-city-card:nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; }
}

.join-grid.leaving {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  pointer-events: none;
}

.join-city-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.join-city-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.join-city-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.join-city-card:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 168, 75, 0.3);
}

.join-city-card:hover img {
  transform: scale(1.06);
}

.join-city-info {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.join-city-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.join-city-meta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Detail View --- */

.join-detail-view {
  display: none;
  padding: 36px 0 32px;
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
}

.join-detail-view.active {
  display: block;
}

.join-detail-view.entering {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.join-detail-layout {
  display: grid;
  grid-template-columns: 242px 1fr;
  gap: 32px;
  align-items: start;
}

/* --- Sidebar --- */

.join-sidebar {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 8px;
}

.join-sidebar::-webkit-scrollbar {
  display: none;
}

.join-sidebar-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.join-sidebar-card.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, border-color 0.3s ease;
}

.join-sidebar-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

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

.join-sidebar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.join-sidebar-card .join-sidebar-name {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.3px;
}

/* --- Detail Main Panel --- */

.join-detail-main {
  min-width: 0;
  margin-top: -8px;
}

.join-detail-main.swapping-out {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.join-detail-main.swapping-in {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Text box swap animation (only text box changes between cities) */
.join-team-info.swapping-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.join-team-info.swapping-in {
  animation: team-info-fade-in 0.4s ease-out;
}

@keyframes team-info-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page hero — city active state */
.join-page .page-hero {
  position: relative;
  overflow: hidden;
  transition: padding 0.5s ease;
  padding: 110px 0 32px;
}

.join-page .page-hero.city-active {
  padding: 120px 0 48px;
}

.join-page .page-hero h1 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--off-white);
}

.join-page .page-hero-city h1 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.3px;
  color: var(--off-white);
}

/* Landing photo strip */
.join-landing-photos {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  justify-content: center;
}

.join-landing-photos img {
  width: calc(24% - 2px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.join-landing-photos img:hover {
  opacity: 1;
  transform: scale(1.03);
}

.page-hero.city-active .join-landing-photos {
  display: none;
}

.page-hero-city-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page-hero-city-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: join-ken-burns 8s ease-out forwards;
}

@keyframes join-ken-burns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.page-hero-city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(11, 31, 58, 0.6) 40%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

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

.page-hero-city {
  display: none;
  text-align: left;
}

.page-hero-city-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 10px;
}

/* When city is active */
.page-hero.city-active {
  padding: 130px 0 60px;
}

.page-hero.city-active .page-hero-city-bg {
  opacity: 1;
}

/* Boost nav contrast over city hero photo */
body.join-city-active .site-nav .nav-links a {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
}

body.join-city-active .site-nav .nav-logo img {
  filter: invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.8));
}

body.join-city-active .site-nav .menu-toggle {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.8));
}

.page-hero.city-active .page-hero-default {
  display: none;
}

.page-hero.city-active .page-hero-city {
  display: block;
}

.page-hero.city-active h1 {
  text-align: left;
  margin-bottom: 0;
}

/* Sidebar column with label */
.join-sidebar-col {
  position: sticky;
  top: 80px;
}

.join-sidebar-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-text);
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.join-sidebar-label .highlight {
  color: var(--gold);
}

/* Team photo collage */
.join-team-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
  margin-top: 18px;
}

.join-collage-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.join-collage-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.join-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%; /* favour the top so portrait shots keep heads in frame */
  display: block;
  transition: transform 0.5s ease, opacity 0.45s ease;
}

.join-collage-item:hover img {
  transform: scale(1.05);
}

/* Zoomed-out photos (photoFocus { fit: true }): whole photo over a soft blurred copy of itself */
.join-collage-item.is-fit::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: var(--fit-bg) center / cover no-repeat;
  filter: blur(18px) brightness(0.55);
  z-index: 0;
  transition: opacity 0.45s ease;
}

.join-collage-item.is-fit img {
  position: relative;
  z-index: 1;
}

/* Collage swap: photo and its blurred backdrop fade out and back in together (one transition, no competing animation) */
.join-collage-item.swapping img,
.join-collage-item.swapping::before {
  opacity: 0;
}

/* Team description */
.join-team-info {
  margin-top: 0;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.join-team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px;
}

.join-team-info p {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.6;
  margin: 0 0 10px;
}

.join-team-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.join-team-stat {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.join-team-stat span {
  color: var(--off-white);
  font-weight: 400;
}

/* CTA buttons */
.join-detail-cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.join-back-btn {
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
}

/* ---------- City Spotlight (e.g. Vancouver Directorship ad) ---------- */
.join-city-spotlight {
  display: none;
  margin: 20px 0 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.join-city-spotlight.active {
  display: block;
}

.join-city-spotlight.active .join-city-spotlight-inner {
  opacity: 1;
}

/* Trigger fade-in on activation */
.join-city-spotlight.active {
  opacity: 1;
  transform: translateY(0);
}

.join-city-spotlight-inner {
  position: relative;
  padding: 36px 40px 32px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.join-city-spotlight-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(212, 168, 75, 0.7) 20%, rgba(212, 168, 75, 0.7) 80%, transparent 100%);
}

.join-city-spotlight-inner::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.join-city-spotlight-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.join-city-spotlight-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 100px;
  background: rgba(212, 168, 75, 0.06);
}

.join-city-spotlight-pay {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 75, 0.25);
}

.join-city-spotlight h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.join-city-spotlight-lead {
  font-size: 1rem;
  color: var(--off-white);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 640px;
}

.join-city-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.join-city-spotlight-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.join-city-spotlight-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.join-city-spotlight-col li {
  position: relative;
  padding-left: 22px;
  color: var(--grey-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.join-city-spotlight-col li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}

.join-city-spotlight-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.join-city-spotlight-meta {
  font-size: 0.82rem;
  color: var(--grey-text);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .join-city-spotlight {
    margin-top: 28px;
  }
  .join-city-spotlight-inner {
    padding: 28px 22px 26px;
  }
  .join-city-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .join-city-spotlight-cta {
    gap: 12px;
  }
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-columns > :last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .paths-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .team-cta-row {
    gap: 36px;
  }

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

  /* Join page — tablet */
  .join-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-detail-layout {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .join-detail-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .join-sidebar-col {
    position: static;
  }

  .join-sidebar-label {
    display: none;
  }

  .join-sidebar {
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    padding: 0 0 16px;
    gap: 10px;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  .join-sidebar-card {
    flex-shrink: 0;
    width: 160px;
    aspect-ratio: 16 / 10;
  }

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

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 70px 0;
  }

  .site-nav.scrolled {
    padding: 10px 0 32px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-links {
    display: none;
  }


  .dropdown-panel {
    width: 100%;
  }

  /* Hero — fill viewport so ticker sits at bottom */
  .hero {
    height: 100vh;
    height: 100dvh;
    padding: 60px 20px 0;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 12px;
  }

  .hero p {
    margin-bottom: 20px;
    font-size: 0.95rem;
  }

  .hero-content {
    justify-content: center;
    padding-bottom: 60px;
  }

  /* Pin ticker to bottom of hero on mobile */
  .hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 24px;
  }

  /* Override reveal-children so duplicated carousel items are visible */
  .locations-grid.reveal-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Location carousel — mobile 3D horizontal swipe */
  .locations-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    padding: 20px 100px;
    perspective: 800px;
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,0.4) 12%,
      rgba(0,0,0,1) 30%,
      rgba(0,0,0,1) 70%,
      rgba(0,0,0,0.4) 88%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,0.4) 12%,
      rgba(0,0,0,1) 30%,
      rgba(0,0,0,1) 70%,
      rgba(0,0,0,0.4) 88%,
      transparent 100%
    );
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .locations-grid::-webkit-scrollbar {
    display: none;
  }

  .locations-grid .location-card {
    flex-shrink: 0;
    margin: 0 8px;
    width: 180px;
    height: 130px;
    aspect-ratio: auto;
    border-radius: 12px;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: none !important;
  }

  /* Disable hover on mobile — JS handles transforms */
  .locations-grid .location-card:hover {
    transform: unset !important;
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.06) !important;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* About */
  .about-columns {
    grid-template-columns: 1fr;
  }

  .about-columns > :last-child {
    max-width: none;
  }

  /* Partner / Content page */
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .sidebar-card {
    margin-bottom: 0;
  }

  /* Partner page — mobile layout */
  .partner-details {
    padding: 70px 0 60px;
  }
  .partner-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .partner-pullquote {
    font-size: 1.2rem;
  }
  .partner-content-wrapper::before {
    height: 140px;
  }

  /* Team — refined light theme mobile */
  .team-section::before {
    height: 140px;
  }
  .team-featured-card {
    padding: 24px;
    gap: 24px;
  }
  .team-featured-photo {
    width: 160px;
    height: 160px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Paths */
  .paths-grid {
    grid-template-columns: 1fr;
  }

  .team-cta-row {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 500px;
  }

  .team-cta-row .team-cta-block:first-child {
    order: 2;
  }

  .team-cta-row .team-cta-block:last-child {
    order: 1;
  }

  .team-cta-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-col a {
    display: block;
    margin-bottom: 12px;
  }

  .footer-col h4 {
    margin-bottom: 16px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Join page — mobile */
  .join-page .page-hero {
    padding: 90px 0 24px;
  }

  .join-landing-photos {
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .join-landing-photos img {
    width: calc(33% - 4px);
    height: 90px;
    border-radius: 8px;
  }

  .join-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .join-city-card {
    aspect-ratio: 4 / 3;
  }

  .join-city-name {
    font-size: 1rem;
  }

  .join-city-meta {
    font-size: 0.65rem;
  }

  .join-city-info {
    padding: 14px;
  }

  .join-sidebar-card {
    width: 130px;
    flex-shrink: 0;
  }

  .join-sidebar {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .page-hero.city-active {
    padding: 100px 0 40px;
  }

  .join-team-collage {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    grid-auto-rows: auto;
  }

  .join-collage-item {
    aspect-ratio: 4 / 3;
  }

  .join-team-info {
    padding: 20px;
  }

  .join-team-info h3 {
    font-size: 1.2rem;
  }

  .join-detail-cta {
    flex-direction: column;
  }

  .join-detail-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Prevent horizontal overflow */
  .join-page .join-content-wrapper {
    overflow-x: hidden;
  }

  .join-detail-main {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .team-featured-card,
  .team-featured-card:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .team-featured-photo {
    width: 150px;
    height: 150px;
  }
  .team-section::before {
    height: 100px;
  }
  .team-featured-quote {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--gold);
    padding-top: 12px;
    background: linear-gradient(to bottom, rgba(212, 168, 75, 0.08) 0%, transparent 70%);
    border-radius: 0;
  }
}
