/* Hero name — split personality.
   BEATS: solid amber, mask wipe reveal.
   LIVE: outlined, floats free — tin-can physics driven by showcase.js. */

.hero-name {
  position: relative;
}

.hn-line {
  display: block;
}

/* BEATS — masked wipe */
.hn-line-1 {
  overflow: hidden;
  transform: translateY(0.5em);
  clip-path: inset(0 0 100% 0);
  animation: hn-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* LIVE — rise + fade (no clip: it needs to float outside the box) */
.hn-line-2 {
  animation: hn-float-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}

.hn-word {
  display: inline-block;
  padding-right: 0.06em;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hn-solid {
  color: #E8A020;
}

.hn-outline {
  position: relative;
  color: transparent;
  -webkit-text-stroke: 2px var(--off-white);
  will-change: transform;
  transition: -webkit-text-stroke-color 0.45s ease, text-shadow 0.45s ease;
}

@keyframes hn-in {
  0%   { transform: translateY(0.5em); clip-path: inset(0 0 100% 0); }
  55%  { clip-path: inset(0 0 0% 0); }
  100% { transform: translateY(0); clip-path: inset(0 0 0% 0); }
}

@keyframes hn-float-in {
  from { opacity: 0; transform: translateY(0.45em); }
  to   { opacity: 1; transform: none; }
}

.hero-name:hover .hn-word {
  transform: translateY(-0.06em);
}

.hero-name:hover .hn-outline {
  -webkit-text-stroke-color: #E8A020;
  text-shadow: 0 0 30px rgba(232, 160, 32, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hn-line-1 {
    transform: none;
    clip-path: inset(0 0 0% 0);
    animation: none;
  }
  .hn-line-2 {
    animation: none;
  }
  .hero-name:hover .hn-word {
    transform: none;
  }
}

/* ---- Electrified BEATS — randomised lightning (v3) ----
   No infinite loop. showcase.js schedules each zap at a random interval
   and picks a random variant: single burst | double burst | slow fizzle.
   Each variant is a one-shot CSS animation via .zap-once / -double / -slow. */

.hn-solid {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 14px rgba(232, 160, 32, 0.5), 0 0 42px rgba(232, 160, 32, 0.22);
}

.zap-ch {
  display: inline-block;
}

.zap-band {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  padding-right: 0.06em;
  pointer-events: none;
  opacity: 0;
}

/* ---- shared burst keyframes (used by single + double) ---- */
@keyframes zapburst {
  0%, 25% { transform: none; }
  35% { transform: skewX(-4deg) scaleY(1.04); }
  50% { transform: skewX(3deg) scaleY(0.96) scaleX(1.02); }
  65% { transform: skewX(-2deg) scaleY(1.02); }
  100% { transform: none; }
}
@keyframes zapburst-ch {
  0%, 25% { opacity: 1; }
  35%, 50%, 65% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes zapburst-top {
  0%, 25%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  35% {
    opacity: 1; clip-path: inset(0 0 58% 0);
    transform: translate(-0.07em, -0.02em);
    color: #FFF7ED;
    text-shadow: 0 0 10px #fff, 0 0 28px #fff, 0 0 56px rgba(232, 160, 32, 0.9);
  }
  50% {
    opacity: 1; clip-path: inset(0 0 60% 0);
    transform: translate(0.06em, 0.02em);
    color: #FFD166;
    text-shadow: 0 0 12px #FFE9A8, 0 0 30px rgba(255, 255, 255, 0.75);
  }
  65% {
    opacity: 1; clip-path: inset(0 0 55% 0);
    transform: translate(-0.09em, -0.01em);
    color: #FFF7ED;
    text-shadow: 0 0 10px #fff, 0 0 28px #fff, 0 0 56px rgba(232, 160, 32, 0.9);
  }
}
@keyframes zapburst-bot {
  0%, 25%, 100% { opacity: 0; transform: none; clip-path: inset(100% 0 0 0); }
  35% {
    opacity: 1; clip-path: inset(41% 0 0 0);
    transform: translate(0.06em, 0.02em);
    color: #FFF7ED;
    text-shadow: 0 0 10px #fff, 0 0 28px #fff, 0 0 56px rgba(232, 160, 32, 0.9);
  }
  50% {
    opacity: 1; clip-path: inset(59% 0 0 0);
    transform: translate(-0.07em, -0.02em);
    color: #FFD166;
    text-shadow: 0 0 12px #FFE9A8, 0 0 30px rgba(255, 255, 255, 0.75);
  }
  65% {
    opacity: 1; clip-path: inset(44% 0 0 0);
    transform: translate(0.09em, 0.01em);
    color: #FFF7ED;
    text-shadow: 0 0 10px #fff, 0 0 28px #fff, 0 0 56px rgba(232, 160, 32, 0.9);
  }
}
@keyframes zapburst-sparks {
  0%, 25%, 100% { opacity: 0; }
  35%, 50%, 65% { opacity: 1; }
}

/* ---- slow fizzle keyframes: engages slowly, never reaches peak ---- */
@keyframes zapslow {
  0% { transform: none; }
  45% { transform: skewX(-2deg) scaleY(1.02); }
  80% { transform: skewX(-2deg) scaleY(1.02); }
  100% { transform: none; }
}
@keyframes zapslow-ch {
  0% { opacity: 1; }
  35% { opacity: 0.45; }
  75% { opacity: 0.5; }
  100% { opacity: 1; }
}
@keyframes zapslow-top {
  0%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  45% {
    opacity: 0.6; clip-path: inset(0 0 58% 0);
    transform: translate(-0.03em, 0);
    color: #FFE9A8;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  }
  80% {
    opacity: 0.5; clip-path: inset(0 0 55% 0);
    transform: translate(-0.02em, 0);
    color: #FFF7ED;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
  }
}
@keyframes zapslow-bot {
  0%, 100% { opacity: 0; transform: none; clip-path: inset(100% 0 0 0); }
  45% {
    opacity: 0.6; clip-path: inset(41% 0 0 0);
    transform: translate(0.03em, 0);
    color: #FFE9A8;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  }
  80% {
    opacity: 0.5; clip-path: inset(44% 0 0 0);
    transform: translate(0.02em, 0);
    color: #FFF7ED;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
  }
}
@keyframes zapslow-sparks {
  0%, 100% { opacity: 0; }
  45% { opacity: 0.45; }
  80% { opacity: 0.3; }
}

/* ---- variant wiring ---- */
.zap-once .hn-solid { animation: zapburst 0.55s steps(1, end) both; }
.zap-once .zap-ch { animation: zapburst-ch 0.55s steps(1, end) both; }
.zap-once .zap-band-top { animation: zapburst-top 0.55s steps(1, end) both; }
.zap-once .zap-band-bot { animation: zapburst-bot 0.55s steps(1, end) both; }
.zap-once .hn-solid::before,
.zap-once .hn-solid::after { animation: zapburst-sparks 0.55s steps(1, end) both; }

.zap-double .hn-solid {
  animation: zapburst 0.5s steps(1, end) both, zapburst 0.5s steps(1, end) 0.65s both;
}
.zap-double .zap-ch {
  animation: zapburst-ch 0.5s steps(1, end) both, zapburst-ch 0.5s steps(1, end) 0.65s both;
}
.zap-double .zap-band-top {
  animation: zapburst-top 0.5s steps(1, end) both, zapburst-top 0.5s steps(1, end) 0.65s both;
}
.zap-double .zap-band-bot {
  animation: zapburst-bot 0.5s steps(1, end) both, zapburst-bot 0.5s steps(1, end) 0.65s both;
}
.zap-double .hn-solid::before,
.zap-double .hn-solid::after {
  animation: zapburst-sparks 0.5s steps(1, end) both, zapburst-sparks 0.5s steps(1, end) 0.65s both;
}

.zap-slow .hn-solid { animation: zapslow 1.3s ease both; }
.zap-slow .zap-ch { animation: zapslow-ch 1.3s ease both; }
.zap-slow .zap-band-top { animation: zapslow-top 1.3s ease both; }
.zap-slow .zap-band-bot { animation: zapslow-bot 1.3s ease both; }
.zap-slow .hn-solid::before,
.zap-slow .hn-solid::after { animation: zapslow-sparks 1.3s ease both; }

/* ---- spark slivers (rest) ---- */
.hn-solid::before,
.hn-solid::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: #fff;
  border-radius: 2px;
  opacity: 0;
  filter: blur(0.4px);
  box-shadow: 0 0 10px #fff;
}
.hn-solid::before { width: 3px; height: 16px; top: 0; left: 24%; transform: rotate(16deg); }
.hn-solid::after  { width: 2px; height: 11px; bottom: 0; right: 20%; transform: rotate(-22deg); }

@media (prefers-reduced-motion: reduce) {
  .zap-band,
  .hn-solid::before,
  .hn-solid::after {
    display: none;
  }
}
