:root {
  --gold: #D4A840;
  --gold-light: #E8C060;
  --gold-pale: rgba(212,168,64,0.12);
  --forest: #111E2E;
  --forest-mid: #1C3F62;
  --earth: #172438;
  --cream: #F4F7FF;
  --cream-dark: #E6ECF8;
  --text: #0B1424;
  --text-muted: #4A5E7A;
  --terracotta: #C4532A;
  --terracotta-light: #E8825A;
  --terracotta-pale: rgba(196,83,42,0.08);
  --saffron: #D97B1A;
  --saffron-light: #F5A840;
  --saffron-pale: rgba(217,123,26,0.08);
  --sage: #5A8070;
  --sage-light: #7AA890;
  --sage-pale: rgba(90,128,112,0.08);
  --burgundy: #7A2535;
  --burgundy-light: #B05060;
  --burgundy-pale: rgba(122,37,53,0.07);
  --warm-cream: #F7F0E6;
  --warm-cream-dark: #EDE2CC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--forest);
  color: white;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}
h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* grain is kept as a class for compatibility but has no visible effect */
.grain { position: relative; }
.grain > * { position: relative; z-index: 2; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--forest); }
::-webkit-scrollbar-thumb { background: rgba(240,192,48,0.4); border-radius: 2px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* NAV — transparent → solid on scroll */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(240,192,48,0.08);
  transition: background 0.35s ease, border-color 0.35s ease;
}
nav.scrolled {
  background: rgba(17,30,46,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(240,192,48,0.18);
}

/* BUTTONS */
.btn-primary {
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.btn-primary:hover {
  background: #B08820;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180,140,40,0.45);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: transform 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-ghost-white {
  color: white;
  border: 2px solid rgba(255,255,255,0.45);
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: transform 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}
.btn-ghost-white:active { transform: translateY(0); }

.btn-outline-gold {
  border: 1px solid rgba(240,192,48,0.45);
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: transform 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-outline-gold:hover {
  background: rgba(240,192,48,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes barFill {
  from { width: 0%; }
  to   { width: 19.87%; }
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up { animation: fadeUp 0.72s cubic-bezier(0.16,1,0.3,1) both; }
.anim-scale   { animation: scaleIn 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.5s; }
.d5 { animation-delay: 0.62s; }
.bar-fill { animation: barFill 2s cubic-bezier(0.16,1,0.3,1) 0.9s both; }

.tab-panel { animation: tabFadeIn 0.38s cubic-bezier(0.16,1,0.3,1) both; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }

/* TAB BUTTONS — dark theme */
.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.75);
  background: none; border: none; cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: rgba(255,255,255,0.95); }
.tab-btn.active { color: white; font-weight: 600; border-bottom-color: var(--gold); }

/* LABEL / OVERLINE */
.label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}

/* CHAPTER LAYOUT */
.chapter {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.chapter-label {
  position: sticky; top: 80px; align-self: start;
  padding: 88px 40px 88px 72px;
}

.chapter-num {
  font-size: 3.5rem; font-weight: 800;
  color: var(--gold); line-height: 0.9;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.chapter-title {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.chapter-body {
  padding: 88px 72px 88px 56px;
  border-left: 1px solid rgba(255,255,255,0.06);
}

/* PULL QUOTE */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 0 16px 20px;
  font-size: 1.05rem; line-height: 1.7;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin: 28px 0;
}

/* STAT GRID */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  margin: 40px 0;
}

.stat-cell {
  background: var(--forest);
  padding: 28px 24px;
}

.stat-num {
  font-size: 2rem; font-weight: 800;
  color: var(--gold); line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* MARQUEE STRIP */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-strip {
  overflow: hidden;
  padding: 18px 0;
  background: var(--forest);
  border-top: 1px solid rgba(212,168,64,0.1);
  border-bottom: 1px solid rgba(212,168,64,0.1);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,168,64,0.55);
  padding: 0 28px;
}
.marquee-dot {
  font-size: 0.4rem !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  color: rgba(212,168,64,0.3) !important;
  align-self: center;
}

/* PHOTO GRID TILES */
.photo-tile { cursor: default; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(212,168,64,0.08) 0%, transparent 60%);
  transition: opacity 0.4s ease;
}
.photo-tile:hover .photo-tile-overlay { opacity: 0; }

/* FULL-BLEED IMAGE BREAK */
.img-break {
  height: 56vh;
  position: relative; overflow: hidden;
}
.img-break img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.img-break::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,30,46,0.75) 0%, rgba(17,30,46,0.15) 55%, transparent 100%);
  pointer-events: none;
}

/* GOLD CTA BAND */
.cta-band {
  background: var(--gold);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 0.94rem;
  color: rgba(17,30,46,0.7);
  line-height: 1.75;
  max-width: 440px;
}

/* IMAGE WRAP */
.img-wrap { position: relative; overflow: hidden; }
.img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,22,48,0.6) 0%, rgba(9,22,48,0.08) 55%, transparent 100%);
  pointer-events: none;
}
.team-hover .img-wrap::after { display: none; }

/* GOLD RULE */
.gold-rule { width: 56px; height: 4px; background: var(--gold); margin-bottom: 16px; }

/* DIVIDER */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 1.5rem 0;
}

/* DARK CARD */
.dark-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dark-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(240,192,48,0.28);
}

/* CARD HOVER */
.card-hover {
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s cubic-bezier(0.16,1,0.3,1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4) !important;
}

/* ROW HOVER */
.row-hover { transition: background 0.15s ease; }
.row-hover:hover { background: rgba(255,255,255,0.025); }

/* STEP NUM */
.step-num {
  width: 48px; height: 48px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 3px 3px 0 rgba(200,146,26,0.3);
  flex-shrink: 0;
}

/* FUND LIST */
.fund-list {
  border: 1px solid rgba(240,192,48,0.18);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  margin-top: 44px;
}
.fund-list-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,192,48,0.6);
  margin-bottom: 6px;
}
.fund-item { display: flex; align-items: flex-start; gap: 16px; }
.fund-dot {
  width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0; margin-top: 6px;
}
.fund-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* TEAM HOVER */
.team-hover { transition: transform 0.25s ease; }
.team-hover:hover { transform: translateY(-4px); }

/* STEP CARDS */
.step-card { transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.3s ease; }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 24px 72px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,64,0.18) !important; }

/* AUDIO */
#audio-ring { display: none; }

/* SPLIT DARK */
.split-dark { background: var(--forest); }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 88px 72px;
  overflow: hidden;
  background: var(--forest);
}
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: white;
  margin-bottom: 28px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero > p, .hero-content > p {
  font-size: 1.08rem;
  color: white;
  line-height: 1.82;
  font-weight: 400;
  max-width: 460px;
  margin-bottom: 44px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* EYEBROW */
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.eyebrow-line { width: 36px; height: 2px; background: var(--gold); opacity: 0.75; }
.eyebrow span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,192,48,0.85);
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 44px; right: 72px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-hint-line { width: 36px; height: 1px; background: rgba(255,255,255,0.25); }

/* CHAPTER TAG */
.chapter-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
.chapter-tag::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* IMAGE BREAK OVERLAY + CAPTION */
.img-break-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,18,40,0.72) 0%, rgba(7,18,40,0.08) 55%, rgba(7,18,40,0.45) 100%),
    linear-gradient(to top, rgba(7,18,40,0.5) 0%, transparent 50%);
}
.img-break-caption {
  position: absolute;
  bottom: 44px; left: 72px;
  z-index: 2;
  max-width: 340px;
}
.img-break-caption .loc {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 10px;
}
.img-break-caption .caption-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
}

/* PROGRESS BAR */
.progress-bar-track {
  width: 100%;
  max-width: 280px;
  height: 5px;
  background: rgba(11,29,58,0.14);
  margin: 18px 0 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 19.87%;
  background: var(--forest);
}
.progress-label { font-size: 0.78rem; color: rgba(11,29,58,0.5); }

/* DARK BUTTON */
.btn-dark {
  background: var(--forest);
  color: white;
  padding: 15px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 24px;
  transition: opacity 0.18s ease;
  white-space: nowrap;
}
.btn-dark:hover { opacity: 0.85; }
