/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0: #0a0a08;
  --bg-1: #111110;
  --bg-2: #1a1a18;
  --bg-3: #242420;
  --bg-card: #161614;
  --gold: #C9A84C;
  --gold-light: #e8c87a;
  --gold-dim: rgba(201, 168, 76, 0.12);
  --gold-border: rgba(201, 168, 76, 0.25);
  --text-primary: #f0ece4;
  --text-secondary: #9a9588;
  --text-muted: #5c5950;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(201, 168, 76, 0.2);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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


body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}
.responsive {
  width: 100%;
  height: auto;
}
::selection {
  background: var(--gold);
  color: var(--bg-0);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

/* ─── Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.out {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.loader-bar {
  width: 180px;
  height: 1px;
  background: var(--bg-3);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: loadFill 1.2s var(--ease) forwards 0.3s;
}
@keyframes loadFill {
  to { width: 100%; }
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav-brand-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-border);
  padding: 10px 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-0);
}

/* ─── Burger ─── */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-0);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 48px 32px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold); }
.mobile-link-cta {
  color: var(--gold);
  border-color: var(--gold-border);
  margin-top: 16px;
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg-0);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 15px 32px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}
.btn-arrow {
  transition: transform 0.2s var(--ease);
}
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }
.btn-full { width: 100%; justify-content: center; }

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ─── Section base ─── */
.section {
  padding: 120px 0;
}
.section-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.section-headline em {
  font-style: italic;
  color: var(--gold);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 32px;
  max-width: 800px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stat-bar {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 80px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.stat-item {
  flex: 1;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── About ─── */
.about {
  background: var(--bg-1);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about-left p {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pillar-card {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.pillar-card:first-child {
  padding-top: 0;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  min-width: 32px;
  margin-top: 2px;
}
.pillar-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.pillar-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── Quote Break ─── */
.quote-break {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  position: relative;
}
.quote-mark {
  color: var(--gold);
  font-size: 1.2em;
  vertical-align: -0.1em;
  margin: 0 4px;
}

/* ─── Programs ─── */
.programs {
  background: var(--bg-0);
}
.programs-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}
.programs-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  align-self: end;
  padding-bottom: 4px;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.program-card {
  background: var(--bg-0);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.program-card:hover {
  background: var(--bg-card);
}
.program-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.program-card:hover::after { width: 100%; }
.program-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.program-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: color 0.3s;
}
.program-card:hover .program-icon {
  color: var(--gold);
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.program-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Impact ─── */
.impact {
  background: var(--bg-1);
}
.impact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
}
.impact-body {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
.impact-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 20px;
}
.impact-step {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.impact-step:last-child { border-bottom: none; }
.impact-step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  min-width: 32px;
  margin-top: 4px;
}
.impact-step-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.impact-step-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── Wellness ─── */
.wellness {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.wellness-inner {
  max-width: 760px;
}
.wellness-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wellness-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.wellness-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.wellness-headline em {
  font-style: italic;
  color: var(--gold);
}
.wellness-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}
.wellness-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-bottom: 48px;
}
.wellness-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.feat-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Contact ─── */
.contact {
  background: var(--bg-0);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
}
.contact-body {
  margin-top: 24px;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--gold-light); }

/* ─── Form ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 40px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 14px 16px;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.select-wrap select:focus {
  border-color: var(--gold-border);
}
.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.045em;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-credit:hover,
.footer-credit:focus-visible {
  color: var(--gold);
  transform: translateY(-1px);
}
.footer-credit:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}



/* ─── Board Members ─── */
.board {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(201,168,76,.09), transparent 30%),
    linear-gradient(180deg, rgba(85,107,47,.055), transparent 35%),
    var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.board::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201,168,76,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(201,168,76,.025), 0 0 0 140px rgba(201,168,76,.018);
  pointer-events: none;
}

.board-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.board-intro {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.9;
  padding-bottom: 10px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  position: relative;
  z-index: 1;
}

.board-card {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  min-width: 0;
}

.board-photo-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,76,.16);
  box-shadow: 0 24px 54px rgba(0,0,0,.28);
}

.board-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(8,10,6,.72) 100%);
  pointer-events: none;
}

.board-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.88) contrast(1.04);
  transform: scale(1.001);
  transition: transform .7s var(--ease), filter .45s ease;
}

.board-photo-01 { object-position: 50% 34%; }
.board-photo-02 { object-position: 50% 24%; }
.board-photo-03 { object-position: 50% 28%; }
.board-photo-04 { object-position: 50% 20%; }
.board-photo-05 { object-position: 50% 20%; }

.board-card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
  background: linear-gradient(90deg, rgba(8,10,6,.94), rgba(20,24,13,.88));
  border-top: 1px solid rgba(201,168,76,.2);
}

.board-card-copy {
  display: block;
  padding: 20px 2px 0;
}

.board-card-copy strong,
.board-card-copy > span {
  display: block;
}

.board-card-copy strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  transition: color .25s ease;
}

.board-card-copy > span {
  margin-top: 7px;
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.board-card:hover .board-photo,
.board-card:focus-visible .board-photo {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.06);
}

.board-card:hover .board-card-overlay,
.board-card:focus-visible .board-card-overlay {
  transform: translateY(0);
}

.board-card:hover .board-card-copy strong,
.board-card:focus-visible .board-card-copy strong {
  color: var(--gold-light);
}

.board-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 7px;
}

/* Board profile modal */
body.modal-open {
  overflow: hidden;
}

.board-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.board-modal[hidden] {
  display: none;
}

.board-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,5,3,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s ease;
}

.board-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(85,107,47,.08), transparent 45%),
    #11130e;
  border: 1px solid rgba(201,168,76,.25);
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
  opacity: 0;
  transform: translateY(24px) scale(.975);
  transition: opacity .38s ease, transform .45s var(--ease);
}

.board-modal.open .board-modal-backdrop {
  opacity: 1;
}

.board-modal.open .board-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.board-modal-media {
  min-height: 560px;
  background: #080a06;
  overflow: hidden;
}

.board-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.board-modal-content {
  position: relative;
  overflow-y: auto;
  padding: 76px 68px 56px;
}

.board-modal-content::after {
  content: '';
  position: absolute;
  right: 34px;
  bottom: 32px;
  width: 72px;
  height: 72px;
  border-right: 1px solid rgba(201,168,76,.22);
  border-bottom: 1px solid rgba(201,168,76,.22);
  pointer-events: none;
}

.board-modal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: .98;
  color: var(--text-primary);
}

.board-modal-role {
  margin-top: 15px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.board-modal-rule {
  width: 72px;
  height: 1px;
  margin: 30px 0;
  background: var(--gold);
}

.board-modal-profile {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
}

.board-modal-note {
  margin-top: 42px;
  color: var(--text-muted);
  font-size: .68rem;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.board-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(8,10,6,.84);
  color: var(--text-primary);
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.board-modal-close:hover,
.board-modal-close:focus-visible {
  background: var(--gold);
  color: var(--bg-0);
  transform: rotate(4deg);
  outline: none;
}

@media (max-width: 1100px) {
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .board-header { grid-template-columns: 1fr; gap: 24px; }
  .board-modal-panel { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
  .board-modal-content { padding: 70px 38px 46px; }
}

@media (max-width: 700px) {
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .board-card-copy strong { font-size: 1.25rem; }
  .board-modal { padding: 14px; align-items: end; }
  .board-modal-panel {
    width: 100%;
    max-height: calc(100vh - 28px);
    display: block;
    overflow-y: auto;
  }
  .board-modal-media { min-height: 0; height: min(48vh, 430px); }
  .board-modal-media img { min-height: 0; height: 100%; }
  .board-modal-content { overflow: visible; padding: 42px 26px 42px; }
}

@media (max-width: 440px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-photo-wrap { aspect-ratio: 5 / 6; }
}


/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .container { padding: 0 32px; }
  .hero { padding: calc(var(--nav-h) + 60px) 32px 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-header { grid-template-columns: 1fr; gap: 24px; }
  .impact-inner { grid-template-columns: 1fr; gap: 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-inner { flex-direction: column; gap: 40px; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-nav { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .container { padding: 0 24px; }
  .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; }
  .section { padding: 80px 0; }
  .hero-stat-bar { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; }
  .programs-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .hero-scroll-cue { display: none; }
  .about-grid { gap: 48px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}


/* ─── Military / Parallax Upgrade ─── */
:root {
  --olive: #556b2f;
  --olive-dark: #283618;
  --olive-deep: #151a0f;
  --sand: #c2a878;
  --danger: #8f2f24;
  --signal: #9faa69;
  --camo-1: rgba(85, 107, 47, 0.18);
  --camo-2: rgba(194, 168, 120, 0.10);
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(85,107,47,0.12), transparent 30%),
    linear-gradient(180deg, #080a06 0%, var(--bg-0) 45%, #090b07 100%);
}

.tactical-noise,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
}

.tactical-noise {
  opacity: 0.055;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(201,168,76,.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

.scanline {
  opacity: 0.12;
  background: linear-gradient(to bottom, transparent, rgba(159,170,105,.12), transparent);
  height: 180px;
  animation: scanSweep 7s linear infinite;
}

@keyframes scanSweep {
  from { transform: translateY(-220px); }
  to { transform: translateY(calc(100vh + 220px)); }
}

.nav-brand-mark,
.footer-mark {
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(85,107,47,.22), rgba(201,168,76,.08)),
    var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 28px rgba(85,107,47,.16);
}

.nav.scrolled {
  background: rgba(8, 10, 6, 0.94);
}

.hero::before,
.hero::after,
.section::before,
.parallax-band::before {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 24px;
  border: 1px solid rgba(201,168,76,.16);
  clip-path: polygon(0 0, 110px 0, 110px 1px, 1px 1px, 1px 110px, 0 110px, 0 0, 100% 0, 100% 110px, calc(100% - 1px) 110px, calc(100% - 1px) 1px, calc(100% - 110px) 1px, calc(100% - 110px) 0, 100% 0, 100% 100%, calc(100% - 110px) 100%, calc(100% - 110px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 110px), 100% calc(100% - 110px), 100% 100%, 0 100%, 0 calc(100% - 110px), 1px calc(100% - 110px), 1px calc(100% - 1px), 110px calc(100% - 1px), 110px 100%, 0 100%);
  z-index: 2;
}

.hero::after {
  right: 48px;
  top: 116px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(159,170,105,.2);
  border-radius: 50%;
  background:
    linear-gradient(rgba(159,170,105,.14), rgba(159,170,105,.14)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(159,170,105,.14), rgba(159,170,105,.14)) 0 50% / 100% 1px no-repeat;
  opacity: .7;
  animation: radarPulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes radarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159,170,105,.08); }
  50% { box-shadow: 0 0 0 18px rgba(159,170,105,0); }
}

.hero-bg { will-change: transform; }
.parallax-layer { will-change: transform; }
.hero-photo {
  position: absolute;
  inset: -12% -8% -16%;
  background-image:
    linear-gradient(90deg, rgba(8,10,6,.88) 0%, rgba(8,10,6,.68) 34%, rgba(8,10,6,.28) 58%, rgba(8,10,6,.55) 100%),
    linear-gradient(180deg, rgba(8,10,6,.32), rgba(8,10,6,.78)),
    url('assets/fallen-heroes-parallax.png');
  background-size: cover;
  background-position: center center;
  opacity: .78;
  filter: saturate(.92) contrast(1.08) brightness(.82);
  transform: translateY(0);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 50%, rgba(201,168,76,.16), transparent 26%),
    radial-gradient(circle at 18% 22%, rgba(159,170,105,.10), transparent 30%);
  mix-blend-mode: screen;
  opacity: .72;
}


.hero-camo {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse at 18% 35%, var(--camo-1) 0 9%, transparent 10%),
    radial-gradient(ellipse at 62% 22%, rgba(40,54,24,.24) 0 12%, transparent 13%),
    radial-gradient(ellipse at 74% 72%, var(--camo-2) 0 11%, transparent 12%),
    radial-gradient(ellipse at 35% 86%, rgba(14,18,9,.48) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(85,107,47,.08), transparent 42%, rgba(201,168,76,.04));
  filter: blur(.2px);
  opacity: .9;
}

.hero-radar {
  position: absolute;
  top: 14%;
  right: 8%;
  width: min(34vw, 380px);
  aspect-ratio: 1;
  border: 1px solid rgba(159,170,105,.15);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 38px, rgba(159,170,105,.09) 39px 40px),
    conic-gradient(from 215deg, rgba(159,170,105,.22), transparent 16%, transparent 100%);
  mask-image: radial-gradient(circle, black 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 45%, transparent 70%);
  opacity: .62;
  animation: radarRotate 18s linear infinite;
}

@keyframes radarRotate { to { rotate: 360deg; } }

.hero-silhouette {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: min(56vw, 700px);
  height: 70%;
  opacity: .13;
  background:
    linear-gradient(135deg, transparent 0 32%, rgba(159,170,105,.55) 33% 38%, transparent 39%),
    linear-gradient(25deg, transparent 0 44%, rgba(194,168,120,.45) 45% 50%, transparent 51%),
    radial-gradient(ellipse at 62% 66%, rgba(159,170,105,.72) 0 10%, transparent 11%),
    linear-gradient(to top, rgba(159,170,105,.75), transparent 72%);
  clip-path: polygon(28% 100%, 36% 62%, 42% 52%, 49% 58%, 56% 38%, 64% 35%, 70% 58%, 82% 100%);
}

.mission-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 28px;
}

.mission-strip span,
.ops-chips span {
  color: var(--signal);
  border: 1px solid rgba(159,170,105,.22);
  background: rgba(85,107,47,.08);
  padding: 8px 12px;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-headline {
  text-shadow: 0 12px 50px rgba(0,0,0,.45);
}

.hero-stat-bar,
.contact-form,
.programs-grid,
.pillar-card,
.impact-step {
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
}

.program-card {
  background:
    linear-gradient(145deg, rgba(85,107,47,.045), transparent 50%),
    var(--bg-0);
}

.program-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(159,170,105,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}

.program-icon::first-letter { transform: rotate(-45deg); }

.parallax-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #080a06;
}

.parallax-band-bg {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(8,10,6,.78), rgba(8,10,6,.78)),
    repeating-linear-gradient(135deg, rgba(85,107,47,.22) 0 18px, rgba(194,168,120,.08) 18px 36px, rgba(12,15,8,.5) 36px 54px),
    radial-gradient(circle at 70% 30%, rgba(201,168,76,.22), transparent 34%);
  transform: translateY(0);
}

.memorial-band-bg {
  background-image:
    linear-gradient(90deg, rgba(8,10,6,.92) 0%, rgba(8,10,6,.78) 38%, rgba(8,10,6,.45) 68%, rgba(8,10,6,.70) 100%),
    linear-gradient(180deg, rgba(8,10,6,.28), rgba(8,10,6,.82)),
    url('assets/fallen-heroes-parallax.png');
  background-size: cover;
  background-position: center center;
  filter: saturate(.9) contrast(1.12) brightness(.76);
}

.memorial-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(85,107,47,.12) 0 18px, transparent 18px 36px),
    radial-gradient(circle at 76% 48%, rgba(201,168,76,.13), transparent 24%);
}

.parallax-band::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
  z-index: 1;
}

.parallax-band-content {
  position: relative;
  z-index: 2;
}

.band-kicker {
  display: inline-block;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 18px;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.parallax-band h2 {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
}

.band-sub {
  max-width: 620px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.ops-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn-primary,
.nav-cta {
  box-shadow: 0 0 0 0 rgba(201,168,76,.28);
}

.btn-primary:hover,
.nav-cta:hover {
  box-shadow: 0 0 0 5px rgba(201,168,76,.12);
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer,
  .scanline,
  .hero-radar,
  .hero::after {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .hero-photo {
    inset: -8% -38% -10% -18%;
    background-position: 58% center;
    opacity: .58;
  }
  .memorial-band-bg { background-position: 60% center; }

  .hero::before { inset: 14px; }
  .hero::after { display: none; }
  .hero-radar { width: 78vw; right: -28%; top: 18%; opacity: .32; }
  .hero-silhouette { width: 100vw; opacity: .08; }
  .mission-strip span,
  .ops-chips span { font-size: .62rem; }
  .parallax-band { min-height: 320px; }
}


/* ─── Board profile modal: full biography display fix ─── */
.board-modal {
  overflow: hidden;
  padding: clamp(12px, 3vw, 36px);
}

.board-modal-panel {
  width: min(1180px, 100%);
  height: min(820px, calc(100dvh - clamp(24px, 6vw, 72px)));
  max-height: none;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
}

.board-modal-media {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.board-modal-media img {
  min-height: 0;
  height: 100%;
}

.board-modal-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 68px 62px 58px;
}

.board-modal-content::-webkit-scrollbar {
  width: 10px;
}

.board-modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
}

.board-modal-content::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,.42);
  border: 3px solid #11130e;
  border-radius: 999px;
}

.board-modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,.5) rgba(255,255,255,.035);
}

.board-modal-scroll-hint {
  position: sticky;
  top: -1px;
  z-index: 2;
  width: fit-content;
  margin: -4px 0 22px;
  padding: 8px 11px;
  color: var(--signal);
  background: rgba(17,19,14,.94);
  border: 1px solid rgba(159,170,105,.23);
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.board-modal-scroll-hint[hidden] {
  display: none;
}

.board-modal-profile {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  outline: none;
}

.board-modal-profile p {
  margin: 0 0 1.35em;
}

.board-modal-profile p:last-child {
  margin-bottom: 0;
}

.board-modal-profile:focus-visible {
  outline: 1px solid rgba(201,168,76,.55);
  outline-offset: 8px;
}

@media (max-width: 860px) {
  .board-modal-panel {
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  }

  .board-modal-content {
    padding: 62px 34px 46px;
  }
}

@media (max-width: 700px) {
  .board-modal {
    align-items: center;
    padding: 10px;
  }

  .board-modal-panel {
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 34vh) minmax(0, 1fr);
    overflow: hidden;
  }

  .board-modal-media {
    height: auto;
    min-height: 0;
  }

  .board-modal-media img {
    height: 100%;
    min-height: 0;
    object-position: center 18%;
  }

  .board-modal-content {
    min-height: 0;
    height: auto;
    overflow-y: auto;
    padding: 38px 24px 42px;
  }

  .board-modal-content h2 {
    padding-right: 34px;
    font-size: clamp(2.2rem, 11vw, 3.35rem);
  }

  .board-modal-profile {
    font-size: .96rem;
    line-height: 1.78;
  }

  .board-modal-note {
    margin-top: 34px;
  }
}

@media (max-width: 430px), (max-height: 650px) and (max-width: 700px) {
  .board-modal-panel {
    grid-template-rows: minmax(140px, 29vh) minmax(0, 1fr);
  }
}
