/* ============================================
   ABOUT HERO — Ooi Solutions (v13)
   Font families & sizes matching the theme
   Uses var(--font-primary) = Inter Tight
   Uses theme heading/body size variables
   ============================================ */

/* ── HERO WRAPPER ── */
.hero-container {
  position: relative;
  width: 100%;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* Vignette overlay for depth */
.hero-container::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* ── CONTENT SECTIONS ── */
.content-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Section label (top right) */
.section-label {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  font-family: var(--font-primary);
  font-size: var(--heading-label);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 10;
  opacity: 0;
  will-change: transform, opacity;
}

/* ── HERO TITLE ── */
.hero-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: var(--heading-section);
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--fg);
  text-align: center;
  margin-bottom: 0;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-title .title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
}

/* Accent divider below title */
.title-divider {
  width: 30px;
  height: 1px;
  background: var(--accent-gold, #E8C87A);
  margin: 0.8rem auto 0;
  opacity: 0;
  transform: scaleX(0);
  will-change: transform, opacity;
}

/* ── HERO SUBTITLE ── */
.hero-subtitle {
  text-align: center;
  max-width: 440px;
  padding: 0 2rem;
  margin-top: 0.8rem;
}

.hero-subtitle .subtitle-line {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--body-sm);
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

/* ── SCROLL PROGRESS (bottom right) ── */
.scroll-progress {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.scroll-text {
  font-family: var(--font-primary);
  font-size: var(--heading-label);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.progress-track {
  width: 1.5px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-gold, #E8C87A);
  border-radius: 1px;
  will-change: height;
}

.section-counter {
  font-family: var(--font-primary);
  font-size: var(--heading-label);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ── BRAND MARK (bottom left) ── */
.brand-mark {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 10;
  opacity: 0;
  will-change: opacity;
}

.brand-mark span {
  font-family: var(--font-primary);
  font-size: var(--heading-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--fg);
  opacity: 0.4;
}

.brand-mark .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent-gold, #E8C87A);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── TOP SCROLL LINE ── */
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent, #1D7C6E), var(--accent-gold, #E8C87A));
  z-index: 100;
  width: 0%;
  will-change: width;
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .scroll-progress {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .brand-mark {
    bottom: 1.5rem;
    left: 1.2rem;
  }
  .section-label {
    top: 1.5rem;
    right: 1.5rem;
  }
  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .hero-subtitle {
    padding: 0 1.2rem;
    margin-top: 0.6rem;
  }
  .hero-subtitle .subtitle-line {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  }
  .progress-track {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    display: none;
  }
  .hero-title {
    font-size: clamp(1.2rem, 6vw, 2rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .title-char,
  .hero-subtitle .subtitle-line,
  .title-divider,
  .scroll-progress,
  .section-label,
  .brand-mark {
    opacity: 1 !important;
    transform: none !important;
  }
}
