/* css/style.css */
:root {
  /* Brand Colors */
  --bg-dark: #111111;
  --bg-dark-alt: #2a2a2a;
  --bg-light: #f5f3f0;
  --accent-gold: #cba153;
  --accent-green: #0f4c3a;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  
  --text-on-light: #111111;
  --text-on-dark: #f5f3f0;
  --text-muted: #888888;
  
  --spacing: 5vw;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 1. Loader */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
}
.loader-brand {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: var(--accent-gold);
}
#loader-bar {
  width: 200px;
  height: 2px;
  background: var(--bg-dark-alt);
  position: relative;
  overflow: hidden;
}
.bar-inner {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0%;
  background: var(--accent-gold);
  transition: width 0.2s ease-out;
}
#loader-percent {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* 2. Fixed Header */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 2rem var(--spacing);
  z-index: 100;
  mix-blend-mode: difference;
  pointer-events: none; /* so canvas can be clicked if needed */
}
.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

/* 3. Hero Standalone */
.hero-standalone {
  position: relative;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-standalone .section-label {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 14rem);
  line-height: 0.85;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-tagline {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  font-weight: 300;
}
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.arrow {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* 4. Canvas Wrap */
.canvas-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 10;
  /* Clip Path starts from 0 effectively hidden by hero, but JS handles it */
  clip-path: circle(0% at 50% 50%);
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 5. Dark Overlay */
#dark-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

/* 6. Marquee */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100vw;
  transform: translateY(-50%);
  z-index: 12;
  pointer-events: none;
  white-space: nowrap;
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 20vw;
  line-height: 1;
  color: var(--bg-light);
  text-transform: uppercase;
  will-change: transform;
}

/* 7. Scroll Container */
#scroll-container {
  position: relative;
  height: 800vh; /* 8 screens of scroll */
  z-index: 20;
  pointer-events: none; /* Let canvas capture pointers if needed, re-enable in sections */
}

/* Sections */
.scroll-section {
  position: absolute;
  top: 0; /* JS will position this based on enter/leave */
  left: 0;
  width: 100%;
  pointer-events: auto;
  transform: translateY(-50%);
}
.section-inner {
  padding: 0 var(--spacing);
}

/* Layout Utilities (Side aligned zones) */
.align-left {
  padding-left: var(--spacing);
  padding-right: 55vw;
}
.align-right {
  padding-left: 55vw;
  padding-right: var(--spacing);
}
.align-center {
  padding: 0 20vw;
  text-align: center;
}
.align-left .section-inner,
.align-right .section-inner {
  max-width: 40vw;
  padding: 0;
}

/* Typography inside sections */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.95;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text-on-dark);
}
.section-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 2.5rem;
}

/* Stats Section */
.section-stats {
  padding: 0 var(--spacing);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 12rem);
  line-height: 1;
  color: var(--accent-gold);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-gold);
  vertical-align: top;
}
.stat-label {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
}
.cta-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}
.cta-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}
.cta-solid {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
}
.cta-solid:hover {
  background: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .align-left, .align-right {
    padding-left: var(--spacing);
    padding-right: var(--spacing);
  }
  .align-left .section-inner, .align-right .section-inner {
    max-width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  #scroll-container {
    height: 600vh;
  }
  .hero-heading {
    font-size: 4rem;
  }
}
