/* ============================================================
   hero.css — Hero Section
   Depends on: tokens.css, base.css
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px var(--s4) var(--s8);
}

/* ── Ambient orbs ────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}
.orb-1 {
  width: min(640px, 90vw);
  height: min(640px, 90vw);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 35%, transparent),
    transparent 70%
  );
  top: -20%;
  left: -10%;
  animation: orb-float-a 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent-2) 22%, transparent),
    transparent 70%
  );
  bottom: -10%;
  right: -8%;
  animation: orb-float-b 22s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 18%, transparent),
    transparent 65%
  );
  top: 35%;
  left: 52%;
  animation: orb-float-a 14s ease-in-out 4s infinite alternate;
}
@keyframes orb-float-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, -20px) scale(1.08);
  }
}
@keyframes orb-float-b {
  from {
    transform: translate(0, 0) scale(1.06);
  }
  to {
    transform: translate(-25px, 18px) scale(0.96);
  }
}

/* ── Background wordmark ─────────────────────────────────── */
.hero-bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 12%, transparent);
  right: -2%;
  bottom: 2%;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  animation: bg-word-in 1.4s var(--ease-expo) 0.2s both;
}
@keyframes bg-word-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Hero content ────────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s5);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-expo) 0.3s both;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: var(--s5);
  overflow: hidden;
}
.line-wrap {
  display: block;
  overflow: hidden;
}
.line {
  display: block;
  animation: line-in 0.9s var(--ease-expo) both;
}
.line-wrap:nth-child(1) .line {
  animation-delay: 0.45s;
}
.line-wrap:nth-child(2) .line {
  animation-delay: 0.6s;
}
@keyframes line-in {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

.accent-word {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-expo) 0.8s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
  opacity: 0;
  animation: fade-up 0.7s var(--ease-expo) 1s both;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s7);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-expo) 1.1s both;
}
.role-ticker {
  position: relative;
  height: 1.3em;
  overflow: hidden;
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  min-width: 9ch;
}
.role-ticker span {
  display: block;
  position: absolute;
  width: 100%;
  animation: ticker-anim 8s ease infinite;
  white-space: nowrap;
}
.role-ticker span:nth-child(1) {
  animation-delay: 0s;
}
.role-ticker span:nth-child(2) {
  animation-delay: 2s;
}
.role-ticker span:nth-child(3) {
  animation-delay: 4s;
}
.role-ticker span:nth-child(4) {
  animation-delay: 6s;
}
@keyframes ticker-anim {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  8% {
    transform: translateY(0);
    opacity: 1;
  }
  22% {
    transform: translateY(0);
    opacity: 1;
  }
  30% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* ── Scroll hint ─────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-expo) 1.6s both;
}
.scroll-line {
  width: 1.5px;
  height: 48px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.scroll-thumb {
  width: 100%;
  height: 14px;
  background: var(--accent);
  border-radius: var(--r-full);
  animation: scroll-bob 1.8s ease-in-out infinite;
}
@keyframes scroll-bob {
  0% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(52px);
  }
}
