:root {
  --jordan-black: #0a0a0a;
  --jordan-white: #f5f5f0;
  --columbia-blue: #6cb4e4;
  --patent-black: #050505;
  --accent-red: #cc2200;
  --gold: #c8a951;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  background: #000;
  color: var(--jordan-white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── BACKGROUND IMAGE (fixed, top-right, original size) ── */
#bg-image {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 721px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
}
@media (max-width: 768px) {
  #bg-image {
    z-index: 0;
    width: 90vw;
    height: auto;
    top: 10vh;
    right: 0;
    left: 0;
    margin: 0 auto;
    opacity: 0.5;
  }
  #canvas-container {
    z-index: 10 !important;
  }
}

/* ── CANVAS ── */
#canvas-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
canvas { display: block; }

/* ── BOOT SEQUENCE ── */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
#loader-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 0.18em;
  color: var(--jordan-white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin-bottom: 6px;
}
#loader-sub {
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.28em;
  color: var(--columbia-blue);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  margin-bottom: 52px;
}
#loader-track {
  width: min(280px, 60vw);
  height: 1px;
  background: rgba(108,180,228,0.15);
  position: relative;
  overflow: hidden;
}
#loader-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--columbia-blue);
  transition: width 0.25s ease-out;
  box-shadow: 0 0 8px rgba(108,180,228,0.6);
}
#loader-pct {
  margin-top: 16px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(108,180,228,0.5);
}
#loader-status {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(108,180,228,0.35);
  white-space: nowrap;
}

/* ── TYPEWRITER OVERLAY (post-loader) ── */
#typewriter-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 150;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10vw;
  pointer-events: none;
}
.tw-line {
  font-family: 'Courier New', monospace;
  font-size: clamp(11px, 1.4vw, 15px);
  color: var(--columbia-blue);
  letter-spacing: 0.14em;
  margin: 7px 0;
  opacity: 0;
  white-space: nowrap;
}
#scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* ── LENS FLARE ── */
#flare {
  position: fixed;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,180,228,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  right: 0; top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, rgba(245,245,240,0.6), var(--columbia-blue));
  z-index: 50;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(245,245,240,0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, border-color .25s, background .2s;
  mix-blend-mode: difference;
}
#cursor.expanded {
  width: 44px; height: 44px;
  border-color: var(--columbia-blue);
  background: rgba(108,180,228,0.08);
}

/* ── SECTIONS ── */
.section {
  position: relative;
  height: 100vh;
  z-index: 5;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.section-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--columbia-blue);
  margin-bottom: 18px;
  opacity: 0;
}
h1.kinetic {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--jordan-white);
}
h2.kinetic {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 7.5vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--jordan-white);
}
.kletter { display: inline-block; will-change: transform, opacity; }
.blue-text { color: var(--columbia-blue); }
.gold-text { color: var(--gold); }

.body-text {
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.75;
  color: rgba(245,245,240,0.65);
  max-width: 460px;
  margin-top: 24px;
  opacity: 0;
}
.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  opacity: 0;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  color: var(--columbia-blue);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.4);
  margin-top: 5px;
  display: block;
}

/* ── YEAR MARKERS ── */
.year-markers {
  position: absolute;
  right: 8vw; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
}
.year-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(108,180,228,0.45);
}
.year-line { width: 36px; height: 1px; background: rgba(108,180,228,0.25); }

/* ── GIANT MASKED TEXT (s7) ── */
.giant-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(88px, 16vw, 210px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--jordan-white);
  clip-path: inset(0 100% 0 0);
}

/* ── JORDAN NUMBER (s8 bg) ── */
.jordan-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(180px, 28vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(108,180,228,0.14);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* ── CTA BUTTON ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.22em;
  color: var(--jordan-black);
  background: var(--columbia-blue);
  border: none;
  padding: 18px 52px;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  opacity: 0;
  transition: transform 0.2s;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--jordan-white);
  transition: left 0.38s cubic-bezier(0.77,0,0.175,1);
  z-index: 0;
}
.cta-btn span { position: relative; z-index: 1; }
.cta-btn:hover::before { left: 0; }
.cta-btn:hover { transform: scale(1.03); }

/* ── SECTION-SPECIFIC TWEAKS ── */
#section-1 .section-content { justify-content: flex-end; padding-bottom: 10vh; }
#section-4 .section-content { align-items: flex-end; }
#section-5 .section-content { align-items: center; text-align: center; }
#section-8 .section-content { align-items: center; text-align: center; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  h1.kinetic { font-size: clamp(56px, 16vw, 90px); }
  h2.kinetic { font-size: clamp(36px, 11vw, 64px); }
  .stat-row { gap: 24px; }
  .giant-text { font-size: clamp(64px, 16vw, 100px); }
  .body-text { font-size: 13px; }
}