/* hero.css */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

/* Radial ambient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 20%; left: -10%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

/* ── Left side ── */
.hero-left { max-width: 640px; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease) 0.1s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.hero-first {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--text-1);
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease) 0.2s forwards;
}
.hero-last {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-shadow: 0 0 40px rgba(0,245,255,0.35);
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease) 0.3s forwards;
}

.hero-bio {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 540px;
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease) 0.4s forwards;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease) 0.5s forwards;
}
.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-2);
  background: rgba(0,245,255,0.04);
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease) 0.6s forwards;
}

/* ── Right side — avatar ── */
.hero-right {
  opacity: 0;
  animation: fadeIn 0.9s var(--ease) 0.5s forwards;
}

.avatar-wrap {
  position: relative;
  width: clamp(160px, 18vw, 240px);
  height: clamp(160px, 18vw, 240px);
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-hi);
  box-shadow: 0 0 40px rgba(0,245,255,0.18);
  position: relative; z-index: 2;
  background: var(--bg-card2);
}
.avatar-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0,245,255,0.2);
  animation: spinRing 8s linear infinite;
  z-index: 1;
}
.avatar-ring.r2 {
  inset: -16px;
  border-color: rgba(57,255,20,0.12);
  animation-duration: 14s;
  animation-direction: reverse;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.3em;
  color: var(--text-3);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Animations ── */
@keyframes slideInLeft {
  from { opacity:0; transform: translateX(-28px); }
  to   { opacity:1; transform: none; }
}
@keyframes fadeIn {
  from { opacity:0; transform: scale(0.92); }
  to   { opacity:1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-right { order: -1; margin: 0 auto; }
  .hero-meta { justify-content: center; }
  .hero-cta  { justify-content: center; }
  .hero-bio  { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .avatar-wrap { width: 130px; height: 130px; }
}

/* ═══════════════════════════════════════════
   SCROLL-SHRINK: hero fades + scales as user
   scrolls down, using CSS custom property
   --scroll-prog set by JS (0 → 1)
═══════════════════════════════════════════ */
.hero-inner {
  /* GPU-composited — no layout reflow */
  will-change: transform, opacity;
}

/* The hero inner shrinks and fades based on scroll */
.hero.scrolled-out .hero-inner {
  pointer-events: none;
}

/* ════════════════════════════════════════════
   STICKY PROFILE CHIP (injected into navbar)
════════════════════════════════════════════ */
.sticky-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
  transition:
    opacity   0.3s var(--ease),
    transform 0.3s var(--ease);
  /* sits between logo and nav-links in the navbar */
  flex-shrink: 0;
}
.sticky-profile.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* Mini avatar */
.sticky-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-hi);
  box-shadow: 0 0 10px rgba(0,245,255,0.25);
  flex-shrink: 0;
  background: var(--bg-card2);
  transition: box-shadow 0.2s;
}
.sticky-profile:hover .sticky-avatar {
  box-shadow: 0 0 18px rgba(0,245,255,0.45);
}

/* Name + handle */
.sticky-info {
  display: flex; flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.sticky-name {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,245,255,0.4);
  white-space: nowrap;
}
.sticky-handle {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--text-3);
  white-space: nowrap;
}

/* Thin neon divider between chip and rest of nav */
.sticky-divider {
  width: 1px; height: 20px;
  background: var(--border-hi);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  flex-shrink: 0;
}
.sticky-profile.visible + .sticky-divider {
  opacity: 1;
}

/* On mobile: hide the text, keep just the avatar */
@media (max-width: 520px) {
  .sticky-info   { display: none; }
  .sticky-avatar { width: 28px; height: 28px; }
}

