:root {
  --bg: #EDE8D9;
  --bg-alt: #E2DCC9;
  --card: #F5F1E6;
  --ink: #232E27;
  --ink-soft: #5C6459;
  --accent: #A38C5E;
  --accent-deep: #7C6B45;
  --line: rgba(35,46,39,0.14);
  --reel-ambient: #1E2620;
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent); }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--reel-ambient); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.02em; }
#loader-bar { width: min(60vw, 260px); height: 2px; background: rgba(237,232,217,0.2); }
#loader-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width .2s ease; }
#loader-percent { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-soft); }

/* ---------- fixed header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(35,46,39,0.88); backdrop-filter: blur(6px);
  color: var(--bg);
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
}
.logo { font-family: var(--font-display); font-size: 1.15rem; display: flex; flex-direction: column; line-height: 1.2; }
.logo small { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(237,232,217,0.65); font-weight: 500; }
.nav-cta {
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(237,232,217,0.4); padding: 0.6rem 1.1rem; border-radius: 999px;
  transition: background .2s ease, border-color .2s ease;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero-standalone {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 12vw, 9rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vw, 5rem);
  background: var(--bg);
}
.hero-standalone .section-label {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  font-weight: 600; display: block; margin-bottom: 1.3rem;
}
.hero-heading {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1.02;
  max-width: 16ch;
}
.hero-heading span { display: inline-block; }
.hero-heading .accent-word { color: var(--accent); font-style: italic; }
.hero-tagline {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  max-width: 34ch;
  font-size: 1.05rem; color: var(--ink-soft); line-height: 1.6;
}
.scroll-indicator {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.chevron { width: 34px; height: 1px; background: var(--ink-soft); }

/* ---------- reel (sticky canvas scrub) ---------- */
.reel-block { position: relative; height: 450vh; background: var(--reel-ambient); }
.canvas-wrap {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
}
#canvas { display: block; max-width: 100%; max-height: 100%; }

.route-rail {
  position: absolute; right: clamp(1rem, 4vw, 3rem); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.7rem; z-index: 5;
}
.route-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(237,232,217,0.3); transition: background .3s ease, transform .3s ease; }
.route-dot.active { background: var(--accent); transform: scale(1.4); }

/* ---------- content sections ---------- */
main { background: var(--bg); }
.scroll-section { padding: clamp(4.5rem, 11vw, 8rem) clamp(1.5rem, 6vw, 5rem); }
.align-left { text-align: left; }
.section-inner { max-width: 46ch; }
.section-content .section-label,
.section-cta .section-label {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  font-weight: 600; display: block; margin-bottom: 1.1rem;
}
.section-content .section-heading { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem) 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-text {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(2.6rem, 9vw, 6rem); color: var(--ink);
  opacity: 0.9;
}

/* ---------- stats (dark band, centered exception) ---------- */
.section-stats { background: var(--ink); color: var(--bg); text-align: center; }
.stats-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(3rem, 8vw, 7rem);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1; }
.stat-suffix { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--accent); margin-top: -0.6rem; }
.stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(237,232,217,0.65); }

/* ---------- final CTA ---------- */
.section-cta { min-height: 80vh; min-height: 80dvh; display: flex; flex-direction: column; justify-content: center; }
.section-cta .section-heading { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.section-cta .section-body { margin-top: 1.4rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.cta-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- footer ---------- */
footer {
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------- persistent CTA pill ---------- */
.float-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40; display: flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: var(--bg);
  padding: 0.85rem 1.4rem; border-radius: 999px;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .25s ease, background .25s ease, opacity .3s ease;
  opacity: 0; pointer-events: none;
}
.float-cta.show { opacity: 1; pointer-events: auto; }
.float-cta:hover { transform: translateY(-3px); background: var(--accent); }
.float-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(163,140,94,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(163,140,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(163,140,94,0); }
}

/* ---------- reveal system (JS-driven entrances) ---------- */
.scroll-section[data-animation] .section-inner,
.scroll-section[data-animation] .stats-grid { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .float-cta .dot { animation: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
  .reel-block { height: 380vh; }
  .route-rail { right: 0.8rem; }
  .stats-grid { gap: 2.5rem; }
  .site-header nav { padding: 0.85rem 1.2rem; }
}
