/* ═══════════════════════════════════════════════════════════════
   TSSG Public V2 — Ground-up redesign
   Bricolage Grotesque (700/800) display · Plus Jakarta Sans (400/500/600) body
   Dark-first · Yellow accent #F5C518 · Warm cream #F5F2EC content
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #07090E;
  color: #ECE8E1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Dark backgrounds */
  --dark:     #07090E;
  --dark-1:   #0F1520;
  --dark-2:   #182035;

  /* Light backgrounds */
  --cream:      #F5F2EC;
  --cream-mid:  #EDE9E1;

  /* Text on dark */
  --ink-d:    #ECE8E1;
  --ink-d-2:  #8A9AB5;
  --ink-d-3:  #4D5E78;

  /* Text on light */
  --ink-l:    #0D0D0D;
  --ink-l-2:  #374151;
  --ink-l-3:  #6B7280;

  /* Accent */
  --yellow:        #F5C518;
  --yellow-hover:  #D4A707;
  --yellow-dim:    rgba(245,197,24,0.13);
  --yellow-border: rgba(245,197,24,0.28);

  /* Structure */
  --border-d:  rgba(255,255,255,0.08);
  --border-l:  rgba(0,0,0,0.10);
  --radius:    14px;
  --radius-sm: 8px;

  /* Layout */
  --max-w:     1200px;
  --pad:       28px;
  --section-v: 96px;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { font-size: 1rem; line-height: 1.75; }

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Labels / Eyebrows ───────────────────────────────────────── */
.label {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.label-dark {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
}
.label-light {
  background: rgba(245,197,24,0.10);
  border: 1px solid rgba(245,197,24,0.20);
  color: #78350f;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease,
              transform 0.15s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn-primary {
  background: var(--yellow);
  color: var(--ink-l);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,197,24,0.35);
}
.btn-primary:active { transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink-d);
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--ink-l);
  border-color: rgba(0,0,0,0.18);
}
.btn-outline:hover {
  border-color: var(--ink-l);
  background: rgba(0,0,0,0.04);
}

.btn-lg { padding: 17px 38px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(7,9,14,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border-d);
  box-shadow: 0 1px 28px rgba(0,0,0,0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-d);
  display: block;
  line-height: 1.25;
}
.nav-logo-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.02em;
  display: block;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-link.active {
  color: white;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--yellow);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.nav-login {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  transition: color 0.15s;
}
.nav-login:hover { color: var(--ink-d); }
.nav-cta {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink-l);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, transform 0.15s;
}
.nav-cta:hover { background: var(--yellow-hover); transform: translateY(-1px); }

/* ── Sections dropdown ────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-dropdown-chevron { transition: transform 0.2s ease; flex-shrink: 0; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(15,21,32,0.98);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 950;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron,
.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-dropdown-item:hover, .nav-dropdown-item:focus-visible {
  background: rgba(255,255,255,0.06);
}
.nav-dropdown-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-d);
}
.nav-dropdown-desc {
  font-size: 0.75rem;
  color: var(--ink-d-3);
}
.nav-dropdown-item.active .nav-dropdown-name { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu, .nav-dropdown-chevron { transition: none; }
}

/* ── Hamburger ────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.07); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-d);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(7,9,14,0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-d);
  padding: 16px 0 24px;
  z-index: 899;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block;
  padding: 12px var(--pad);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-d-2);
  transition: color 0.15s;
}
.nav-drawer a:hover { color: var(--ink-d); }
.nav-drawer-label {
  display: block;
  padding: 14px var(--pad) 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-d-3);
}
.mob-cta {
  display: block;
  margin: 14px var(--pad) 6px !important;
  padding: 14px !important;
  background: var(--yellow);
  color: var(--ink-l) !important;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem !important;
  transition: background 0.18s;
}
.mob-cta:hover { background: var(--yellow-hover) !important; }
.mob-login {
  text-align: center !important;
  font-size: 0.875rem !important;
  color: var(--ink-d-3) !important;
  padding: 8px var(--pad) !important;
}

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

/* ═══════════════════════════════════════════════════════════════
   HERO — full-viewport, bottom-anchored text
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  animation: hero-settle 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-settle {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}

/* Two-layer overlay: top dark for nav, bottom dark for text */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,9,14,0.60)  0%,
    rgba(7,9,14,0.08)  28%,
    rgba(7,9,14,0.05)  50%,
    rgba(7,9,14,0.70)  78%,
    rgba(7,9,14,0.97)  100%
  );
}
/* Edge vignette */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(7,9,14,0.22) 100%);
}

/* Hero text, bottom-left */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--max-w) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
}

.hero-geo {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
  animation: fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

.hero-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(4.25rem, 11vw, 10rem);
  line-height: 0.91;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
}
.hero-line         { display: block; color: var(--ink-d); }
.hero-line.accent  { color: var(--yellow); }
.hero-line:nth-child(1) { animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.30s both; }
.hero-line:nth-child(2) { animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.42s both; }
.hero-line:nth-child(3) { animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.54s both; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.66s both;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  flex: 1;
  min-width: 240px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Right-edge scroll cue */
.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.28);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
  animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 1.0s both;
}
.hero-scroll.hidden { opacity: 0; pointer-events: none; }
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.28), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-line { animation: scroll-pulse 2s ease-in-out infinite; }
  @keyframes scroll-pulse {
    0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50%  { opacity: 0.4; transform: scaleY(0.45); transform-origin: bottom; }
    100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero login link ─────────────────────────────────────────── */
.hero-member-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.30);
  transition: color 0.15s;
  margin-top: 24px;
  display: inline-block;
  animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.75s both;
}
.hero-member-link:hover { color: rgba(255,255,255,0.60); }

@media (max-width: 640px) {
  .hero-headline { font-size: clamp(3.75rem, 16vw, 5.5rem); }
  .hero-content  { padding-bottom: 60px; }
  .hero-bottom   { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-scroll   { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   TICKER STRIP — yellow background, scrolling stats
   ═══════════════════════════════════════════════════════════════ */
.ticker {
  background: var(--yellow);
  overflow: hidden;
  user-select: none;
  cursor: default;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 15px 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker-run 38s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes ticker-run {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
}
.ticker-item {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.75);
  padding: 0 32px;
}
.ticker-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: rgba(0,0,0,0.30);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PULL-QUOTE — warm cream, large text
   ═══════════════════════════════════════════════════════════════ */
.pullquote {
  background: var(--cream);
  padding: 88px 0 80px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pullquote .label { margin-bottom: 28px; }
.pullquote-text {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-l-2);
  max-width: 760px;
  margin: 0 auto;
}
.pullquote-text strong {
  color: var(--ink-l);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PILLARS — editorial typographic three-column
   ═══════════════════════════════════════════════════════════════ */
.pillars {
  background: var(--cream);
  padding: var(--section-v) 0;
}
.pillars-head {
  margin-bottom: 56px;
}
.pillars-head .label { margin-bottom: 18px; }
.pillars-head h2 {
  color: var(--ink-l);
  max-width: 560px;
}
.pillars-head p {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--ink-l-3);
  max-width: 420px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-l);
}
.pillar {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--border-l);
}
.pillar:last-child  { border-right: none; }
.pillar + .pillar   { padding-left: 36px; }

.pillar-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78350f;
  margin-bottom: 22px;
}
/* Yellow dash before the number */
.pillar-num::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.pillar h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: var(--ink-l);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.pillar p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-l-3);
}

@media (max-width: 760px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar {
    border-right: none;
    border-top: 1px solid var(--border-l);
    padding: 32px 0;
  }
  .pillar + .pillar { padding-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SCOUT DIVIDER — cream-to-dark transition
   ═══════════════════════════════════════════════════════════════ */
.scout-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--cream);
  padding: 0 0 20px;
}
.scout-divider::before, .scout-divider::after {
  content: '';
  flex: 1;
  max-width: 140px;
  height: 1px;
}
.scout-divider::before { background: linear-gradient(to right, transparent, rgba(0,0,0,0.12)); }
.scout-divider::after  { background: linear-gradient(to left,  transparent, rgba(0,0,0,0.12)); }
.scout-icon {
  color: var(--yellow);
  opacity: 0.65;
  flex-shrink: 0;
  display: flex;
  filter: drop-shadow(0 0 4px rgba(245,197,24,0.25));
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS — tall portrait cards, 4-col
   ═══════════════════════════════════════════════════════════════ */
.sections {
  background: var(--dark);
  padding: var(--section-v) 0;
}
.sections-head { margin-bottom: 48px; }
.sections-head .label { margin-bottom: 18px; }
.sections-head h2 { color: var(--ink-d); }
.sections-head p {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--ink-d-2);
  max-width: 480px;
}

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

.sec-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  /* Keyboard focus */
  outline-offset: 3px;
}
.sec-card:focus-visible { outline: 3px solid var(--yellow); }

.sec-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sec-card:hover .sec-card-photo,
.sec-card:focus-visible .sec-card-photo { transform: scale(1.07); }

/* Bottom-heavy gradient overlay */
.sec-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,9,14,0.96)  0%,
    rgba(7,9,14,0.50)  42%,
    rgba(7,9,14,0.08)  72%,
    transparent         100%
  );
  transition: background 0.45s ease;
}
.sec-card:hover .sec-card-overlay {
  background: linear-gradient(
    to top,
    rgba(7,9,14,0.98)  0%,
    rgba(7,9,14,0.78)  52%,
    rgba(7,9,14,0.28)  82%,
    rgba(7,9,14,0.05)  100%
  );
}

/* Content: always visible at bottom, rises on hover */
.sec-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px 26px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sec-card:hover .sec-card-body,
.sec-card:focus-visible .sec-card-body { transform: translateY(-10px); }

.sec-card-age {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 7px;
}
.sec-card-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

/* Description — hidden by default, revealed on hover */
.sec-card-desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.45s ease,
    opacity    0.35s ease 0.04s,
    transform  0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sec-card:hover .sec-card-desc,
.sec-card:focus-visible .sec-card-desc {
  max-height: 130px;
  opacity: 1;
  transform: translateY(0);
}

.sec-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yellow);
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.08s, transform 0.4s cubic-bezier(0.16,1,0.3,1) 0.08s;
}
.sec-card:hover .sec-card-cta,
.sec-card:focus-visible .sec-card-cta { opacity: 1; transform: translateY(0); }

/* ── Section grid responsive ────────────────────────────────── */
@media (max-width: 920px) {
  .sections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .sec-card { aspect-ratio: 4/5; }
}
@media (max-width: 540px) {
  .sections-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 16px;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
    scrollbar-width: none;
  }
  .sections-grid::-webkit-scrollbar { display: none; }
  .sec-card {
    min-width: 76vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    aspect-ratio: 3/4;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CTA BAND — asymmetric, heading left / button right
   ═══════════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--dark-1);
  border-top: 1px solid var(--border-d);
  padding: var(--section-v) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 50%,
    rgba(245,197,24,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--ink-d);
  line-height: 1.02;
  max-width: 560px;
}
.cta-band h2 em {
  font-style: normal;
  color: var(--yellow);
}
.cta-band p {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--ink-d-2);
  max-width: 460px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .cta-band-inner { flex-direction: column; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border-d);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-d);
  margin-bottom: 28px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand-logo img { width: 30px; height: 30px; object-fit: contain; }
.footer-brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e5e7eb;
  display: block;
  line-height: 1.25;
}
.footer-brand-sub {
  font-size: 0.6875rem;
  color: var(--ink-d-3);
  display: block;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-d-3);
  margin-bottom: 12px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-d);
  color: var(--ink-d-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer-social-link:hover {
  background: var(--yellow-dim);
  border-color: var(--yellow-border);
  color: var(--yellow);
}
.footer-social-link svg { width: 17px; height: 17px; }
.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-d-2);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--ink-d-3);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink-d); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { font-size: 0.8125rem; color: var(--ink-d-3); }
.footer-sam {
  font-size: 0.8125rem;
  color: var(--ink-d-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity   0.5s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-reveal].in-view   { opacity: 1; transform: none; }
  [data-reveal="fade"]    { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INNER PAGE HERO (about / join / rovers stubs)
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 140px 0 80px;
  background: var(--dark-1);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 600px at 0% 50%,
    rgba(245,197,24,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero.has-photo {
  background-size: cover;
  background-position: center;
}
.page-hero.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,9,14,0.72) 0%,
    rgba(7,9,14,0.55) 50%,
    rgba(7,9,14,0.90) 100%
  );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-border);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 18px;
  max-width: 700px;
}
.page-hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
}

/* ── Placeholder stub section ─────────────────────────────────── */
.stub-section {
  background: var(--cream);
  padding: var(--section-v) 0;
}
.stub-block {
  background: white;
  border: 2px dashed rgba(245,197,24,0.40);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.stub-block .stub-icon { margin: 0 auto 20px; opacity: 0.35; }
.stub-block h3 {
  font-size: 1.125rem;
  color: var(--ink-l);
  margin-bottom: 10px;
}
.stub-block p { font-size: 0.9375rem; color: var(--ink-l-3); }

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION — disable all animations
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg    { animation: none; transform: none; }
  .hero-geo,
  .hero-line,
  .hero-bottom,
  .hero-scroll,
  .hero-member-link { animation: none !important; opacity: 1 !important; transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION PAGES — Cubs · Scouts · Rovers · Leaders
   ═══════════════════════════════════════════════════════════════ */

/* ── Section intro (cream) ───────────────────────────────────── */
.sec-intro {
  background: var(--cream);
  padding: var(--section-v) 0;
  border-bottom: 1px solid var(--border-l);
}
.sec-intro .label { display: block; margin-bottom: 18px; }
.sec-intro h2 { color: var(--ink-l); margin-bottom: 20px; }
.sec-intro p  { color: var(--ink-l-2); margin-bottom: 14px; }
.sec-intro p:last-of-type { margin-bottom: 0; }

.sec-facts {
  display: flex;
  background: white;
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.sec-fact {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border-l);
}
.sec-fact:last-child { border-right: none; }
.sec-fact-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ink-l);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.sec-fact-label { font-size: 0.8125rem; color: var(--ink-l-3); line-height: 1.4; }

@media (max-width: 540px) {
  .sec-facts { flex-wrap: wrap; }
  .sec-fact { min-width: 50%; }
  .sec-fact:nth-child(even) { border-right: none; }
  .sec-fact:nth-child(n+3) { border-top: 1px solid var(--border-l); }
}

/* ── Advancement ladder ──────────────────────────────────────── */
.ladder-section {
  background: var(--dark-1);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border-d);
  border-bottom: 1px solid var(--border-d);
}
.ladder-section .label { display: block; margin-bottom: 18px; }
.ladder-section > .container > h2 { color: var(--ink-d); margin-bottom: 12px; }
.ladder-section > .container > p  { color: var(--ink-d-2); margin-bottom: 48px; max-width: 600px; }

.ladder {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  gap: 0;
}
.ladder::-webkit-scrollbar { display: none; }

.ladder-step {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 6px;
}

/* Connector — from center of this step to center of next */
.ladder-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;       /* vertically centred with 40px node */
  left: 50%;
  right: -50%;
  height: 2px;
  background: linear-gradient(to right,
    rgba(245,197,24,0.40), rgba(255,255,255,0.08));
  z-index: 0;
}

.ladder-node {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 2px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--ink-d-3);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
/* Entry step */
.ladder-step:first-child .ladder-node {
  border-color: var(--yellow);
  background: rgba(245,197,24,0.12);
  color: var(--yellow);
}
/* Final award */
.ladder-step:last-child .ladder-node {
  border-color: rgba(245,197,24,0.55);
  background: rgba(245,197,24,0.07);
  color: rgba(245,197,24,0.75);
}

.ladder-label {
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-d-3);
  line-height: 1.4;
  max-width: 96px;
  word-break: break-word;
}
.ladder-step:first-child .ladder-label { color: var(--ink-d); }
.ladder-step:last-child  .ladder-label { color: var(--ink-d-2); }

/* ── Advancement badge ladder (Cubs / Scouts — light variant) ─── */
.adv-ladder-section {
  background: var(--cream-mid);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}
.adv-ladder-section .label { display: block; margin-bottom: 18px; }
.adv-ladder-section > .container > h2 { color: var(--ink-l); margin-bottom: 12px; }
.adv-ladder-section > .container > p  { color: var(--ink-l-2); margin-bottom: 48px; max-width: 600px; }

.adv-ladder-section .ladder-step { min-width: 124px; padding: 0 8px; }

.adv-ladder-section .ladder-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;       /* vertically centred with 80px badge */
  left: 50%;
  right: -50%;
  height: 2px;
  background: linear-gradient(to right, var(--yellow-border), var(--border-l));
  z-index: 0;
}

/* Badge slot — same placeholder pattern as .unit-flag */
.adv-badge {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--yellow-border);
  background: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
}
.adv-badge-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.adv-badge-ph svg { color: var(--yellow-hover); opacity: 0.5; }
.adv-badge-fname {
  font-size: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-l-3);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}
.adv-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  z-index: 1;
}

/* Entry step + final award accents */
.ladder-step:first-child .adv-badge,
.ladder-step:last-child  .adv-badge {
  border: 2px solid var(--yellow);
  background: var(--yellow-dim);
}
.ladder-step:first-child .adv-badge-ph svg,
.ladder-step:last-child  .adv-badge-ph svg { color: var(--yellow-hover); opacity: 0.85; }

.adv-ladder-label {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-l-3);
  line-height: 1.4;
  max-width: 112px;
  word-break: break-word;
}
.ladder-step:first-child .adv-ladder-label,
.ladder-step:last-child  .adv-ladder-label { color: var(--ink-l); font-weight: 700; }

@media (max-width: 480px) {
  .adv-badge { width: 64px; height: 64px; }
  .adv-badge-ph svg { width: 22px; height: 22px; }
  .adv-ladder-section .ladder-step:not(:last-child)::after { top: 32px; }
  .adv-ladder-section .ladder-step { min-width: 96px; }
}

/* ── Units section (Packs / Troops) — light, family clusters ─── */
.units-section {
  background: var(--cream);
  padding: var(--section-v) 0;
}
.units-section .label { display: block; margin-bottom: 18px; }
.units-section > .container > h2 { color: var(--ink-l); margin-bottom: 12px; }
.units-intro { color: var(--ink-l-2); margin-bottom: 48px; max-width: 640px; }

/* Pack/Troop family cluster card */
.pack-block {
  background: white;
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.pack-block:last-child { margin-bottom: 0; }

.pack-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-l);
}
.pack-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-l);
  letter-spacing: -0.02em;
}
.pack-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78350f;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-border);
  padding: 3px 12px;
  border-radius: 999px;
}
.pack-flag-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-l);
}

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

/* Unit tile: flag-left, name/roles stacked on the right */
.unit-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 6px;
  background: var(--cream-mid);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.unit-card:hover {
  border-color: var(--yellow-border);
  transform: translateY(-2px);
}

/* Flag slot: shows placeholder SVG, real image overlays it */
.unit-flag {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--yellow-border);
  background: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.unit-flag-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
}
.unit-flag-ph svg { opacity: 0.5; color: var(--yellow-hover); width: 16px; height: 16px; }
.unit-flag-fname {
  font-size: 0.3125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-l-3);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}
.unit-flag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  z-index: 1;
}

.unit-card > div:not(.unit-flag):not(.unit-roles) {
  grid-column: 2;
  grid-row: 1;
}

.unit-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-l);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.unit-sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-l-3);
  margin-top: 2px;
}

.unit-roles {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.unit-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.unit-role-lbl {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-l-3);
  flex-shrink: 0;
  white-space: nowrap;
}
.unit-role-val {
  font-size: 0.8125rem;
  color: var(--ink-l-2);
  text-align: right;
  font-style: italic;
}

@media (max-width: 900px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pack-block { padding: 16px; }
  .units-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .unit-card  { grid-template-columns: 44px 1fr; padding: 10px; }
  .unit-flag  { width: 44px; height: 44px; }
}

/* ── EXCO grid (Rovers crew) ─────────────────────────────────── */
.exco-section {
  background: var(--dark);
  padding: var(--section-v) 0;
}
.exco-section .label { display: block; margin-bottom: 18px; }
.exco-section > .container > h2 { color: var(--ink-d); margin-bottom: 12px; }
.exco-intro { color: var(--ink-d-2); margin-bottom: 48px; max-width: 620px; }

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

.exco-card {
  background: var(--dark-1);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.exco-card:hover {
  border-color: rgba(245,197,24,0.25);
  transform: translateY(-2px);
}

/* Chairperson: same tile, slightly larger */
.exco-card.primary {
  border-color: rgba(245,197,24,0.32);
  background: rgba(245,197,24,0.05);
  padding: 32px 18px;
}

.exco-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 2px solid var(--border-d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-d-3);
  flex-shrink: 0;
}
.exco-card.primary .exco-avatar {
  width: 120px; height: 120px;
  border-color: rgba(245,197,24,0.35);
}
.exco-card-body { width: 100%; }
.exco-post {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 5px;
}
.exco-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-d-3);
  letter-spacing: -0.01em;
  font-style: italic;
}
.exco-card.primary .exco-name { font-size: 1.25rem; }

@media (max-width: 760px) {
  .exco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .exco-grid { grid-template-columns: 1fr; }
}

/* ── Org chart (Leaders page) ────────────────────────────────── */
.org-section {
  background: var(--dark-1);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border-d);
}
.org-section .label { display: block; margin-bottom: 18px; }
.org-section > .container > h2 { color: var(--ink-d); margin-bottom: 12px; }
.org-section > .container > .org-desc { color: var(--ink-d-2); margin-bottom: 56px; max-width: 600px; }

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

/* Shared vertical connector line */
.org-v { width: 2px; height: 44px; background: rgba(245,197,24,0.38); flex-shrink: 0; }
.org-v-faint { width: 2px; height: 32px; background: rgba(245,197,24,0.22); flex-shrink: 0; }

/* Org card */
.org-card {
  background: var(--dark-2);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.org-card:hover { border-color: rgba(245,197,24,0.22); }
.org-card.root {
  border-color: rgba(245,197,24,0.38);
  background: rgba(245,197,24,0.06);
  min-width: 240px;
  padding: 22px 28px;
}
.org-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark-1);
  border: 2px solid var(--border-d);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-d-3);
}
.org-card.root .org-avatar {
  width: 52px; height: 52px;
  border-color: rgba(245,197,24,0.35);
}
.org-role {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.org-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink-d-3);
  letter-spacing: -0.01em;
  font-style: italic;
  line-height: 1.3;
}
.org-card.root .org-name { font-size: 1.0625rem; color: var(--ink-d-2); }

/* Branch: horizontal bar + children columns */
.org-branch {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 2px solid rgba(245,197,24,0.38);
}
.org-col {
  flex: 1;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sub-level (assistant leaders) */
.org-sub-branch {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 2px solid rgba(245,197,24,0.18);
}
.org-sub-col {
  flex: 1;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-card.sub {
  background: var(--dark-1);
  padding: 14px 12px 16px;
}
.org-card.sub .org-avatar { width: 36px; height: 36px; }
.org-card.sub .org-name { font-size: 0.8125rem; }

/* Responsive org chart */
@media (max-width: 720px) {
  .org-col  { max-width: 160px; }
  .org-card { padding: 14px 10px; }
  .org-card.root { min-width: 200px; padding: 18px 20px; }
  .org-sub-col { max-width: 130px; }
}
@media (max-width: 500px) {
  /* Stack vertically */
  .org-branch, .org-sub-branch {
    flex-direction: column;
    align-items: center;
    border-top: none;
    width: auto;
  }
  .org-col, .org-sub-col { max-width: 280px; width: 100%; }
  .org-v, .org-v-faint { display: block; }
}

/* ── Org grid (wide leader rows) ──────────────────────────────── */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px;
  width: 100%;
}
.org-grid-card {
  background: var(--dark-2);
  border: 1px solid var(--border-d);
  border-radius: var(--radius-sm);
  padding: 16px 10px 18px;
  text-align: center;
  transition: border-color 0.2s;
}
.org-grid-card:hover { border-color: rgba(245,197,24,0.22); }
.org-grid-card .org-avatar { width: 36px; height: 36px; margin: 0 auto 10px; }
.org-grid-card .org-role { font-size: 0.5rem; }
.org-grid-card .org-name { font-size: 0.8125rem; }
.org-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 9px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,197,24,0.10);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 999px;
}

/* ── Notable Projects (Rovers page) ──────────────────────────── */
.projects-section {
  background: var(--dark-1);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border-d);
}
.projects-section .label { display: block; margin-bottom: 18px; }
.projects-section > .container > h2 { color: var(--ink-d); margin-bottom: 12px; }
.projects-intro { color: var(--ink-d-2); margin-bottom: 48px; max-width: 620px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--dark);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: rgba(245,197,24,0.25); }

.project-media {
  position: relative;
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 30%, rgba(245,197,24,0.16), transparent 60%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-d);
}
.project-media svg { color: var(--yellow); opacity: 0.85; }

.project-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.project-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,197,24,0.10);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 999px;
}
.project-body h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--ink-d);
  margin-bottom: 12px;
}
.project-body p {
  color: var(--ink-d-2);
  margin-bottom: 12px;
}
.project-body p:last-of-type { margin-bottom: 20px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--yellow);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.project-link:hover {
  color: var(--yellow-hover);
  border-color: currentColor;
}

@media (max-width: 700px) {
  .project-card { grid-template-columns: 1fr; }
  .project-media {
    min-height: 160px;
    border-right: none;
    border-bottom: 1px solid var(--border-d);
  }
  .project-body { padding: 24px; }
}

/* ── Rovers dark-variant overrides ───────────────────────────── */
body.rovers-dark { background: #03040A; }
body.rovers-dark .cta-band           { background: #090b12; }
body.rovers-dark .site-footer        { background: #03040A; }
body.rovers-dark .ladder-section     { background: #0c0f18; }
body.rovers-dark .exco-section       { background: #03040A; }
body.rovers-dark .unit-card,
body.rovers-dark .exco-card          { background: #0c0f18; }
body.rovers-dark .exco-card.primary  { background: rgba(245,197,24,0.05); }
body.rovers-dark .projects-section   { background: #090b12; }
body.rovers-dark .project-card       { background: #0c0f18; }
body.rovers-dark .project-media      { background:
    radial-gradient(circle at 30% 30%, rgba(245,197,24,0.16), transparent 60%),
    linear-gradient(160deg, #11151f, #0c0f18); }

/* Dark intro (Rovers — no cream break) */
.dark-intro {
  background: var(--dark-1);
  padding: var(--section-v) 0;
  border-bottom: 1px solid var(--border-d);
}
.dark-intro .label { display: block; margin-bottom: 18px; }
.dark-intro h2 { color: var(--ink-d); margin-bottom: 20px; }
.dark-intro p  { color: var(--ink-d-2); margin-bottom: 14px; }
.dark-intro p:last-of-type { margin-bottom: 0; }

.dark-facts {
  display: flex;
  background: var(--dark-2);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.dark-fact {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border-d);
}
.dark-fact:last-child { border-right: none; }
.dark-fact-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ink-d);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.dark-fact-label { font-size: 0.8125rem; color: var(--ink-d-3); }

@media (max-width: 540px) {
  .dark-facts { flex-wrap: wrap; }
  .dark-fact  { min-width: 50%; }
  .dark-fact:nth-child(even) { border-right: none; }
  .dark-fact:nth-child(n+3) { border-top: 1px solid var(--border-d); }
}

/* ═══════════════════════════════════════════════════════════════
   JOIN PAGE — four differentiated join paths
   Cubs / Scouts = informational (light, calm)
   Rovers        = the one real CTA (dark, yellow, prominent)
   Leaders       = expression of interest (quiet band)
   ═══════════════════════════════════════════════════════════════ */

/* ── Path index strip ────────────────────────────────────────── */
.join-paths {
  background: var(--dark-1);
  border-bottom: 1px solid var(--border-d);
  padding: 36px 0;
}
.join-path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.join-path-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 88px;
  padding: 18px 20px;
  background: var(--dark-2);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.join-path-tile:hover {
  border-color: rgba(245,197,24,0.28);
  background: #1c2540;
  transform: translateY(-2px);
}
.join-path-tile:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.join-path-tile.is-action {
  background: rgba(245,197,24,0.07);
  border-color: rgba(245,197,24,0.34);
}
.join-path-tile.is-action:hover { background: rgba(245,197,24,0.11); }

.join-path-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-d);
}
.join-path-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-d-2);
}
.join-path-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.join-path-tile.is-action .join-path-status { color: var(--yellow); }
.join-path-tile.is-action .join-path-status::before { opacity: 1; }

/* ── Informational paths (Cubs + Scouts) ─────────────────────── */
.join-info {
  background: var(--cream);
  padding: var(--section-v) 0;
}
.join-info .label { display: block; margin-bottom: 18px; }
.join-info > .container > h2 { color: var(--ink-l); margin-bottom: 12px; }
.join-info-lead {
  color: var(--ink-l-2);
  max-width: 640px;
  margin-bottom: 48px;
}

.join-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.join-info-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.join-info-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.join-info-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream-mid);
  border: 1px solid var(--border-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  flex-shrink: 0;
}
.join-info-kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78350f;
  margin-bottom: 4px;
}
.join-info-card h3 { color: var(--ink-l); line-height: 1.15; }
.join-info-card > p {
  font-size: 0.9375rem;
  color: var(--ink-l-2);
  margin-bottom: 20px;
}

/* Eligibility / intake facts */
.join-meta {
  border-top: 1px solid var(--border-l);
  margin-bottom: 20px;
}
.join-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-l);
}
.join-meta-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-l-2);
  flex-shrink: 0;
}
.join-meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-l);
  text-align: right;
}

/* Soft callout inside an info card */
.join-note {
  display: flex;
  gap: 11px;
  background: var(--cream-mid);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-l-2);
  margin-bottom: 22px;
}
.join-note svg { color: #78350f; flex-shrink: 0; margin-top: 2px; }

.join-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: auto;
  padding-top: 4px;
}
.join-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #78350f;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.join-info-link:hover { color: var(--ink-l); border-color: currentColor; }
.join-info-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ── Rover application — the one real CTA ────────────────────── */
.join-apply {
  background: var(--dark);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border-d);
  position: relative;
  overflow: hidden;
}
.join-apply::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 560px at 15% 40%,
    rgba(245,197,24,0.07) 0%, transparent 68%);
  pointer-events: none;
}
.join-apply .container { position: relative; z-index: 1; }
.join-apply .label { display: block; margin-bottom: 18px; }
.join-apply > .container > h2 { color: var(--ink-d); margin-bottom: 12px; }
.join-apply-lead { color: var(--ink-d-2); max-width: 620px; }

.join-apply-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--dark-1);
  border: 1px solid rgba(245,197,24,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 44px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.join-apply-main { padding: 40px; }
.join-apply-side {
  padding: 40px;
  background: var(--dark-2);
  border-left: 1px solid var(--border-d);
}

.join-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.join-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow);
}
.join-apply-main h3 {
  color: var(--ink-d);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  margin-bottom: 14px;
}
.join-apply-main p {
  color: var(--ink-d-2);
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.join-apply-cta { margin-top: 26px; }
.join-apply-cta .btn svg { flex-shrink: 0; }

/* "What happens next" note */
.join-next {
  display: flex;
  gap: 11px;
  margin-top: 24px;
  padding: 15px 17px;
  background: rgba(255,255,255,0.035);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-d-2);
}
.join-next svg { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }

.join-apply-main p.join-privacy {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-d);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-d-2);
}
.join-privacy svg { color: var(--ink-d-2); flex-shrink: 0; margin-top: 1px; }

/* Checklist — "what you'll need ready" */
.join-side-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.join-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.join-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-d);
}
.join-check:last-child { border-bottom: none; padding-bottom: 0; }
.join-check svg { color: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.join-check-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-d);
  line-height: 1.4;
}
.join-check-hint {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  color: var(--ink-d-2);
  line-height: 1.55;
}

/* ── Leaders — expression of interest ────────────────────────── */
.join-eoi {
  background: var(--cream-mid);
  padding: 64px 0;
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}
.join-eoi-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.join-eoi-copy { display: flex; align-items: flex-start; gap: 20px; max-width: 680px; }
.join-eoi-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  flex-shrink: 0;
}
.join-eoi-kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78350f;
  margin-bottom: 6px;
}
.join-eoi h3 { color: var(--ink-l); margin-bottom: 10px; }
.join-eoi p { font-size: 0.9375rem; color: var(--ink-l-2); }

/* ── Contact — shared closing section ────────────────────────── */
.join-contact {
  background: var(--dark-1);
  padding: var(--section-v) 0;
  position: relative;
  overflow: hidden;
}
.join-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 40%,
    rgba(245,197,24,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.join-contact .container { position: relative; z-index: 1; }
.join-contact .label { display: block; margin-bottom: 18px; }
.join-contact > .container > h2 { color: var(--ink-d); margin-bottom: 12px; }
.join-contact-lead { color: var(--ink-d-2); max-width: 600px; }

.join-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.join-contact-card {
  display: flex;
  gap: 16px;
  background: var(--dark-2);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease;
}
.join-contact-card:hover { border-color: rgba(245,197,24,0.22); }
.join-contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
}
.join-contact-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 7px;
}
.join-contact-value {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-d);
  line-height: 1.55;
  word-break: break-word;
}
a.join-contact-value {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
a.join-contact-value:hover { color: var(--yellow); border-color: currentColor; }
a.join-contact-value:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.join-contact-note {
  font-size: 0.8125rem;
  color: var(--ink-d-2);
  margin-top: 8px;
  line-height: 1.6;
}

/* ── Join page responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .join-path-grid  { grid-template-columns: repeat(2, 1fr); }
  .join-info-grid  { grid-template-columns: 1fr; }
  .join-apply-panel { grid-template-columns: 1fr; }
  .join-apply-side {
    border-left: none;
    border-top: 1px solid var(--border-d);
  }
}
@media (max-width: 560px) {
  .join-path-grid   { grid-template-columns: 1fr; }
  .join-path-tile   { min-height: 0; padding: 16px 18px; }
  .join-info-card   { padding: 24px 20px; }
  .join-apply-main,
  .join-apply-side  { padding: 28px 22px; }
  .join-apply-cta .btn { width: 100%; justify-content: center; }
  .join-contact-card { padding: 22px 20px; flex-direction: column; gap: 14px; }
  .join-eoi-copy    { flex-direction: column; gap: 16px; }
  .join-eoi-inner .btn { width: 100%; justify-content: center; }
}

/* ── Utilities ───────────────────────────────────────────────── */
/* Screen-reader-only text (e.g. "opens in a new tab" on external links) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* In-page anchor targets must clear the fixed 72px nav */
[id="cubs-scouts"],
[id="rovers-apply"],
[id="leaders-eoi"],
[id="contact"] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
