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

:root {
  --or:   #EF9F27;
  --or-d: #BA7517;
  --or-dd:#633806;
  --or-l: #FAEEDA;
  --dark: #2C2C2A;
  --dark2:#1E1E1C;
  --text: #F0EDE8;
  --muted:rgba(240,237,232,0.55);
  --font-display: 'Fraunces', serif;
  --font-body:    'Outfit', sans-serif;
}

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--dark2);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

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

/* ─── LOADER ────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-brand {
  font-family: var(--font-body);
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.loader-brand span { color: var(--or); }

.loader-bar-wrap {
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
#loader-bar {
  height: 100%; width: 0%;
  background: var(--or);
  transition: width 0.1s linear;
}
#loader-percent {
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted); letter-spacing: 1px;
}

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 64px;
  display: flex; align-items: center;
  background: rgba(30,30,28,0.0);
  border-bottom: 1px solid rgba(255,255,255,0.0);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.site-header.scrolled {
  background: rgba(30,30,28,0.94);
  border-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}

nav {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.4px; color: #fff;
}
.nav-logo span { color: var(--or); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--or) !important;
  color: var(--dark2) !important;
  padding: 9px 20px; border-radius: 7px;
  font-weight: 700; font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--or-d) !important; transform: translateY(-1px); }

/* ─── HERO STANDALONE ───────────────────────────────────────── */
.hero-standalone {
  position: relative; z-index: 2;
  height: 100vh; min-height: 600px;
  background: var(--dark2);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  overflow: hidden;
}

/* Orb décoratif */
.hero-standalone::before {
  content: '';
  position: absolute; top: -10%; right: -5%;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,159,39,0.09), transparent 65%);
  pointer-events: none;
}
.hero-standalone::after {
  content: '';
  position: absolute; bottom: -15%; left: -5%;
  width: 35vw; height: 35vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,159,39,0.05), transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-label {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--or);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 12rem);
  line-height: 1.0;
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
}
.hero-heading .word {
  display: inline-block;
  margin-right: 0.2em;
  opacity: 0;
  transform: translateY(40px);
}
.hero-heading .word.accent { color: var(--or); font-style: italic; }

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.0s forwards;
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 8vw;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px; text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.4s forwards;
}
.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Animate hero words staggered */
.hero-heading .word:nth-child(1) { animation: wordIn 0.7s ease 0.5s forwards; }
.hero-heading .word:nth-child(2) { animation: wordIn 0.7s ease 0.65s forwards; }
.hero-heading .word:nth-child(3) { animation: wordIn 0.7s ease 0.8s forwards; }
.hero-heading .word:nth-child(4) { animation: wordIn 0.7s ease 0.95s forwards; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── CANVAS ────────────────────────────────────────────────── */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 0;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
canvas#canvas {
  display: block; width: 100%; height: 100%;
}

/* ─── DARK OVERLAY ──────────────────────────────────────────── */
#dark-overlay {
  position: fixed; inset: 0; z-index: 3;
  background: var(--dark2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.05s linear;
}

/* ─── MARQUEE ───────────────────────────────────────────────── */
.marquee-wrap {
  position: fixed; z-index: 4;
  left: 0; right: 0;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  white-space: nowrap;
}
#marquee-1 { top: 50%; transform: translateY(-50%); }
#marquee-2 { bottom: 12%; }

.marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12vw; font-weight: 300;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.02em;
  will-change: transform;
}
.marquee-dark .marquee-text {
  color: rgba(239,159,39,0.12);
}

/* ─── SCROLL CONTAINER ──────────────────────────────────────── */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 5;
}

/* ─── SCROLL SECTIONS ───────────────────────────────────────── */
.scroll-section {
  position: absolute;
  left: 0; right: 0;
  display: flex; align-items: center;
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.scroll-section.visible { pointer-events: auto; }

/* Side alignment */
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw; }
.align-left  .section-inner,
.align-right .section-inner { max-width: 42vw; }

.section-label {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--or);
  margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 600; line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.section-body {
  font-size: 1rem; line-height: 1.8;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 380px;
}
.section-link {
  display: inline-block;
  color: var(--or); font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px solid rgba(239,159,39,0.4);
  padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.section-link:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* Steps mini */
.steps-mini {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.step-mini {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--muted);
}
.step-mini span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(239,159,39,0.15);
  border: 1px solid rgba(239,159,39,0.3);
  color: var(--or); font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── STATS SECTION ─────────────────────────────────────────── */
.section-stats {
  justify-content: center; align-items: center;
  padding: 0 8vw;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px; width: 100%; max-width: 1000px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 600; line-height: 1;
  color: var(--or);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300; color: var(--or);
  opacity: 0.7;
  margin-left: 4px;
  position: relative; top: -0.5em;
  display: inline-block;
}
.stat-label {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-top: 8px;
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.section-cta {
  justify-content: center; align-items: center;
  padding: 0 8vw; text-align: center;
}
.cta-inner { max-width: 700px; }

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 600; line-height: 1.05;
  color: #fff; margin-bottom: 24px;
}
.cta-heading em { color: var(--or); font-style: italic; }

.cta-sub {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.8; margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  background: var(--or); color: var(--dark2);
  padding: 18px 40px; border-radius: 10px;
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.2px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 40px rgba(239,159,39,0.35);
}
.cta-button:hover {
  background: #fff; color: var(--dark2);
  transform: translateY(-3px);
  box-shadow: 0 16px 60px rgba(239,159,39,0.4);
}

.cta-reassurance {
  margin-top: 20px;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .nav-links { display: none; }

  .hero-standalone { padding: 0 6vw; }
  .hero-heading { font-size: clamp(2.8rem, 13vw, 6rem); }

  #scroll-container { height: 600vh; }

  .align-left, .align-right {
    padding: 0 6vw; justify-content: center;
  }
  .align-left .section-inner,
  .align-right .section-inner { max-width: 100%; }

  .section-heading { font-size: clamp(2rem, 8vw, 3rem); }

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

  .section-content { background: rgba(28,28,26,0.88); }

  .cta-heading { font-size: clamp(2.4rem, 9vw, 4rem); }
  .cta-button { padding: 16px 28px; font-size: 0.95rem; }

  .marquee-text { font-size: 18vw; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-number { font-size: 3rem; }
}
