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

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #777777;
  --grey-dim: #333333;
  --accent: #4FC3F7;
  --accent-glow: rgba(79, 195, 247, 0.25);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ─── LOADER ─────────────────────────────────────────────────────────────────── */

#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--white);
}

.loader-track {
  width: 180px;
  height: 1px;
  background: var(--grey-dim);
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.12s linear;
  box-shadow: 0 0 8px var(--accent);
}

#loader-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.12em;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem 3.5rem;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(79, 195, 247, 0.3);
  padding: 0.5rem 1.2rem;
  transition: background 0.25s, color 0.25s;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */

.hero-standalone {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 6vw;
  background: transparent;
  z-index: 20;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14vw, 15rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

.hero-heading .word {
  display: block;
}

.hero-heading .glow {
  color: var(--accent);
  text-shadow:
    0 0 40px rgba(79, 195, 247, 0.5),
    0 0 100px rgba(79, 195, 247, 0.2);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  font-weight: 300;
  color: var(--grey);
  letter-spacing: 0.06em;
}

.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-cue-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, transparent, var(--grey-dim));
  animation: cueDown 2.2s ease-in-out infinite;
}

.scroll-cue-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--grey-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes cueDown {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* ─── CANVAS ─────────────────────────────────────────────────────────────────── */

.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

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

/* ─── DARK OVERLAY ───────────────────────────────────────────────────────────── */

#dark-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* ─── MARQUEE ────────────────────────────────────────────────────────────────── */

.marquee-wrap {
  position: fixed;
  bottom: 5vh;
  left: 0;
  right: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 800;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  letter-spacing: 0.02em;
  line-height: 1;
  will-change: transform;
  display: block;
}

/* ─── SCROLL CONTAINER ───────────────────────────────────────────────────────── */

#scroll-container {
  position: relative;
  height: 900vh;
}

/* ─── SCROLL SECTIONS ────────────────────────────────────────────────────────── */

.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  padding: 0 5vw;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 10;
}

.scroll-section.is-visible {
  pointer-events: auto;
}

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

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

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 38vw;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--grey);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--white);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 300;
  color: #999999;
  line-height: 1.75;
  max-width: 34ch;
}

/* ─── STATS ──────────────────────────────────────────────────────────────────── */

.section-stats {
  justify-content: center;
  padding-left: 8vw;
  padding-right: 8vw;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 860px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--grey);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── CTA ────────────────────────────────────────────────────────────────────── */

.cta-heading {
  font-size: clamp(3.2rem, 5.5vw, 6.5rem) !important;
}

.cta-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  align-self: flex-start;
}

.cta-button:hover {
  background: var(--white);
  box-shadow: 0 0 50px var(--accent-glow);
  color: var(--black);
}

/* ─── MOBILE ─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .site-header { padding: 1.25rem 1.5rem; }

  .nav-links li:not(:last-child) { display: none; }

  .align-left,
  .align-right {
    padding: 0 6vw;
  }

  .section-inner {
    max-width: 100%;
    background: rgba(0,0,0,0.75);
    padding: 2rem;
    backdrop-filter: blur(8px);
  }

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

  #scroll-container {
    height: 580vh;
  }

  .hero-heading {
    font-size: clamp(4rem, 20vw, 8rem);
  }

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