/* ============================================
   ABOUT-HERO.CSS — Ooi Solutions
   HORIZON-style cinematic hero for About page
   Matches .ah-* class names used in about.html
   Inter Tight font family, proper sizing
   ============================================ */

/* ── HERO WRAPPER ── */
.about-hero {
  position: relative;
  width: 100%;
  background: #0D1F1C;
  overflow: hidden;
}

/* Top scroll progress line */
.about-hero__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;
}

/* Star field background */
.about-hero__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
              radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.4) 0%, transparent 100%),
              radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
              radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
              radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
              radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
              radial-gradient(1.5px 1.5px at 20% 45%, rgba(232,200,122,0.6) 0%, transparent 100%),
              radial-gradient(1.5px 1.5px at 75% 50%, rgba(29,124,110,0.5) 0%, transparent 100%),
              radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
              radial-gradient(1px 1px at 5% 75%, rgba(255,255,255,0.3) 0%, transparent 100%);
  transition: opacity 0.6s ease;
}

/* Nebula glow */
.about-hero__nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(29,124,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(232,200,122,0.06) 0%, transparent 50%);
  transition: opacity 0.6s ease;
}

/* ── CONTENT SECTIONS ── */
.ah-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 80px 20px;
  opacity: 0;
}

/* First section is visible immediately (animated in by JS) */
#ah-section-0 {
  opacity: 1;
}

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

/* ── HERO TITLE ── */
.ah-title {
  font-family: var(--font-primary) !important;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--fg);
  text-align: center;
  margin-bottom: 0;
  overflow: hidden;
  text-transform: uppercase;
}

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

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

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

.ah-subtitle__line {
  font-family: var(--font-primary) !important;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

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

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

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

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

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

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

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

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

/* ── VIGNETTE OVERLAY ── */
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .ah-scroll-progress {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .ah-brand-mark {
    bottom: 1.5rem;
    left: 1.2rem;
  }
  .ah-section__label {
    top: 1.5rem;
    right: 1.5rem;
  }
  .ah-title {
    font-size: clamp(2.2rem, 9vw, 4rem);
    letter-spacing: -0.02em;
  }
  .ah-subtitle {
    padding: 0 1.5rem;
  }
  .ah-progress-track {
    height: 40px;
  }
  .ah-section {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .ah-brand-mark {
    display: none;
  }
  .ah-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }
  .ah-section {
    padding: 48px 12px;
  }
}

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