/* ============================================================
   RUNNING WITH STU — Home Page Styles
   ============================================================ */

/* ---- HERO VIDEO ---- */
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pull the frame up so the runners' feet/ground line
     sits just above the text at the bottom of the hero */
  object-position: center 72%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

/* ---- HERO BOTTOM FADE ---- */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 55%, #000 100%);
  z-index: 2;
  pointer-events: none;
}

/* ---- HERO ---- */
.hero-standalone {
  position: relative;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 8vh;
  overflow: hidden;
  z-index: 10;
}
.hero-inner { position: relative; z-index: 3; }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 16rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 1.2rem 0 1.8rem;
}
.hero-heading .word { display: inline-block; will-change: transform; }
.hero-heading .word.accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 80px var(--accent-glow);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.hero-cta { font-size: 0.9rem; }

.scroll-indicator {
  position: absolute;
  z-index: 3;
  bottom: 3rem;
  right: 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-arrow {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: arrowPulse 2.2s infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.4); }
}

/* ---- CANVAS WRAP ---- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  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: 6;
  background: rgba(0,0,0,0.92);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ---- MARQUEES ---- */
.marquee-wrap {
  position: fixed;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}
#marquee-1 { bottom: 5vh; left: 0; right: 0; }
#marquee-2 { bottom: 19vh; left: 0; right: 0; }
.marquee-text {
  font-family: var(--font-display);
  font-size: 13vw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: rgba(255,69,0,0.05);
  will-change: transform;
}
.marquee-right .marquee-text {
  font-size: 7vw;
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.14em;
}

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

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

.align-left  { padding: 0 55vw 0 5vw; }
.align-right { padding: 0 5vw 0 55vw; }
.section-inner { max-width: 38vw; min-width: 280px; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.8rem;
}
.section-body {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(240,237,232,0.5);
  font-weight: 300;
  max-width: 26rem;
}
.section-note {
  display: block;
  margin-top: 1.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

/* ---- STATS ---- */
.section-stats {
  justify-content: center;
  padding: 0 5vw;
}
.stats-grid {
  display: flex;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: flex-end;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-row { display: flex; align-items: baseline; gap: 0.2em; line-height: 1; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 11rem);
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 5rem);
  color: var(--accent);
  font-weight: 400;
}
.stat-label {
  margin-top: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.3);
  font-weight: 400;
}

/* ---- CTA SECTION ---- */
.section-cta {
  align-items: center;
  justify-content: flex-end;
  padding: 0 5vw 0 55vw;
}
.cta-heading {
  font-size: clamp(4rem, 7vw, 9rem);
  line-height: 0.88;
}
.cta-button { pointer-events: auto; }
.cta-button {
  display: inline-block;
  margin-top: 2.8rem;
  padding: 1.1rem 3rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.cta-button:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 40px var(--accent-glow);
}

/* ---- POST-SCROLL ---- */
#post-scroll {
  position: relative;
  z-index: 10;
  background: #000;
}

.intro-section {
  padding: 10rem 5vw;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
}
.intro-lead {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}
.intro-body {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(240,237,232,0.5);
  max-width: 38rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.home-gallery-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 320px;
  gap: 2px;
}
.home-gallery-item {
  overflow: hidden;
  background: #111;
}
.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.home-gallery-item:hover img { transform: scale(1.05); }

.instagram-section {
  padding: 8rem 5vw;
}
.insta-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 3rem;
}
.instagram-placeholder {
  border: 1px solid var(--border);
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
}
.insta-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  transition: gap 0.2s;
}
.insta-link:hover { gap: 1.8rem; }
.insta-arrow { font-size: 1.5rem; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  #hero-video { object-position: center 60%; }
  .hero-heading { font-size: clamp(4.5rem, 20vw, 8rem); }
  #scroll-container { height: 600vh; }
  .align-left, .align-right { padding: 6rem 1.5rem; justify-content: center; }
  .section-inner { max-width: 100%; }
  .section-cta { padding: 6rem 1.5rem; justify-content: center; }
  .stats-grid { flex-direction: column; gap: 2.5rem; align-items: flex-start; }
  .marquee-text { font-size: 20vw; }
  .intro-section { padding: 6rem 1.5rem; }
  .instagram-section { padding: 5rem 1.5rem; }
  .instagram-placeholder { padding: 2rem; }
  .home-gallery-strip { grid-template-columns: repeat(3, 1fr); height: 260px; }
}
