:root {
  --bg-light: #ece5dc;
  --bg-dark: #0f0f10;
  --text-on-light: #171717;
  --text-on-dark: #f2ece4;
  --text-muted: rgba(242, 236, 228, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d7b87a;
  --accent-2: #f0d6a0;
  --font-display: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg-dark);
}

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

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

.container {
  width: min(100% - 2.5rem, 1380px);
  margin: 0 auto;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: #090909;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand,
#loader-percent {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loader-brand {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.loader-track {
  width: min(72vw, 360px);
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

#loader-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding-top: 1rem;
  transition: opacity 0.3s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo,
.site-nav__links a {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
}

.site-nav__links {
  display: flex;
  gap: 1.5rem;
}

.hero-standalone {
  position: relative;
  z-index: 15;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(215, 184, 122, 0.22), transparent 26%),
    linear-gradient(145deg, #0a0a0b 0%, #121214 60%, #171719 100%);
}

.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
}

.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
}

.align-left .section-inner,
.align-right .section-inner,
.hero-copy {
  max-width: 40vw;
}

.hero-copy {
  position: relative;
  z-index: 16;
  max-width: 56vw;
  padding-top: 4.5rem;
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-heading,
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero-heading {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(3rem, 5.8vw, 6.8rem);
  line-height: 0.9;
}

.hero-heading span {
  display: inline-block;
  margin-right: 0.12em;
}

.hero-tagline,
.section-body {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.hero-tagline {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy .section-label {
  display: block;
  text-align: center;
}

.scroll-indicator {
  position: absolute;
  z-index: 16;
  left: 5vw;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  position: relative;
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 1px;
  height: 12px;
  background: currentColor;
  transform: translateX(-50%);
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.canvas-wrap,
#dark-overlay,
.marquee-wrap {
  position: fixed;
  inset: 0;
}

.canvas-wrap {
  z-index: 5;
  background: #0f0f10;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#dark-overlay {
  z-index: 9;
  pointer-events: none;
  background: rgba(8, 8, 8, 0.9);
  opacity: 0;
}

.marquee-wrap {
  z-index: 12;
  pointer-events: none;
  display: flex;
  align-items: center;
  opacity: 0;
}

.marquee-wrap--top {
  align-items: flex-start;
  padding-top: 12vh;
}

.marquee-wrap--bottom {
  align-items: flex-end;
  padding-bottom: 12vh;
}

.marquee-text {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.08);
}

#scroll-container {
  position: relative;
  height: 860vh;
  z-index: 20;
}

.scroll-section {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.scroll-section.is-visible,
.scroll-section.is-persisted {
  opacity: 1;
  pointer-events: auto;
}

.section-content .section-inner {
  padding: 2rem 0;
}

.section-heading {
  font-size: clamp(2.6rem, 4vw, 5rem);
}

.section-stats {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-grid {
  width: min(100% - 3rem, 1180px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number,
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
}

.stat-suffix {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.section-cta .section-inner {
  padding-bottom: 10vh;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #101010;
  font-weight: 700;
}

.cta-button--secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line);
}

.closing-hero {
  position: relative;
  z-index: 18;
  margin-top: -24vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 34vh 0 8rem;
  background:
    radial-gradient(circle at 78% 24%, rgba(215, 184, 122, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(15, 15, 16, 0) 0%, rgba(15, 15, 16, 0.86) 12%, #0f0f10 32%),
    #0f0f10;
}

.closing-hero__inner {
  max-width: 860px;
}

.closing-hero__title {
  margin: 0;
  font-family: var(--font-display);
  max-width: 10ch;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.closing-hero__body {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.closing-hero__button {
  margin-top: 2.25rem;
}

@media (max-width: 767px) {
  .site-nav__links {
    display: none;
  }

  .hero-standalone {
    padding: 0 0 4rem;
  }

  .align-left,
  .align-right {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .align-left .section-inner,
  .align-right .section-inner,
  .hero-copy {
    max-width: 100%;
  }

  .hero-copy {
    padding-top: 5rem;
    text-align: center;
  }

  .hero-heading {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .section-heading {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
  }

  #scroll-container {
    height: 560vh;
  }

  .scroll-section {
    padding: 0 0 1rem;
  }

  .section-content .section-inner,
  .section-cta .section-inner {
    padding: 1.25rem;
    background: rgba(10, 10, 10, 0.56);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 0 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .stat {
    padding: 1.4rem 1rem;
  }

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

  .cta-actions {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }

  .closing-hero {
    margin-top: -14vh;
    min-height: auto;
    padding: 22vh 0 4rem;
  }

  .closing-hero__title {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }
}
