/* =============================================================
   HERO.CSS — Home hero with WebGL backdrop + kinetic type
   ============================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  overflow: clip;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
#hero-canvas.is-ready { opacity: 1; }

.hero-canvas-fallback {
  position: absolute;
  inset: -10% ;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--accent-violet) 30%, transparent), transparent 55%),
    radial-gradient(circle at 15% 75%, color-mix(in srgb, var(--accent-cyan) 26%, transparent), transparent 55%);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-intro-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.hero-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* Portrait mark — same glass/floating language as the credential
   chips, just inline in the text flow so it always shows (the chip
   field itself is desktop-only). */
.hero-portrait {
  --size: clamp(56px, 4vw + 40px, 84px);
  position: relative;
  display: block;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradient-shift 9s ease infinite, chip-float 7s ease-in-out infinite;
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent-violet) 45%, transparent);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait { animation: none; }
}

.hero-name {
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}
.hero-name span { display: block; }
.hero-name .hero-name__accent {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 9s ease infinite;
}

.hero-role-cycle {
  font-size: var(--fs-md);
  height: 1.7em;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.hero-role-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s var(--ease-in-out);
}
.hero-role-track span {
  height: 1.7em;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--accent-cyan);
  letter-spacing: 0.01em;
}

.hero-bio {
  max-width: 42rem;
  font-size: var(--fs-md);
  color: var(--text-dim);
  line-height: var(--lh-relaxed);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
}
.hero-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat__label {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-scroll-cue__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--text-faint), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--accent-cyan), transparent);
  animation: scroll-cue 2.2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name .hero-name__accent { animation: none; }
  .hero-scroll-cue__line::after { animation: none; display: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 8rem; }
  .hero-scroll-cue { display: none; }
}

/* ─── Floating credential chips over the canvas (desktop) ── */
.hero-chip-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}
@media (min-width: 1080px) {
  .hero-chip-field { display: block; }
}
.hero-chip {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-elevated) 68%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-elevated);
  animation: chip-float 7s ease-in-out infinite;
}
.hero-chip svg { color: var(--accent-cyan); flex-shrink: 0; }
.hero-chip--1 { top: 12%; right: 6%; animation-delay: 0s; }
.hero-chip--2 { top: 42%; right: 2%; animation-delay: 1.4s; }
.hero-chip--3 { top: 68%; right: 12%; animation-delay: 2.8s; }
.hero-chip--4 { top: 26%; right: 24%; animation-delay: 4.2s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip { animation: none; }
}
