/* ══════════════════════════════════════════════════════════════
   HERO ALT — "The Root That Rewires"
   Loaded after styles.css. Everything namespaced ha-.
   ══════════════════════════════════════════════════════════════ */

.ha-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(110% 75% at 50% 115%, rgba(30, 69, 53, 0.28) 0%, transparent 55%),
    radial-gradient(90% 60% at 50% -12%, rgba(17, 24, 39, 0.9) 0%, transparent 70%),
    var(--bg);
}

/* ── Backdrop layers ─────────────────────────────────────────── */

.ha-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ha-aurora {
  position: absolute;
  z-index: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 146, 62, 0.09) 0%, rgba(200, 146, 62, 0.04) 40%, transparent 68%);
  pointer-events: none;
  will-change: transform;
  left: 0;
  top: 0;
  transform: translate(50vw, 40vh);
}

.ha-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(58% 46% at 50% 44%, rgba(7, 9, 15, 0.62) 0%, rgba(7, 9, 15, 0.28) 55%, transparent 78%);
}

/* ── The eclipse ring ────────────────────────────────────────── */

.ha-halo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(780px, 94vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.ha-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 176, 106, 0.13);
  box-shadow:
    0 0 90px rgba(200, 146, 62, 0.07) inset,
    0 0 70px rgba(200, 146, 62, 0.05);
}

/* orbiting comet of light, masked to a hairline ring */
.ha-halo::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 288deg,
    rgba(232, 176, 106, 0.85) 340deg,
    rgba(255, 235, 200, 1) 353deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  animation: haOrbit 22s linear infinite;
  opacity: 0.9;
}

.ha-halo-inner {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed rgba(232, 176, 106, 0.07);
  animation: haOrbitReverse 140s linear infinite;
}

@keyframes haOrbit { to { transform: rotate(360deg); } }
@keyframes haOrbitReverse { to { transform: rotate(-360deg); } }

/* ── Content column ──────────────────────────────────────────── */

.ha-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: auto;
  padding: 124px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform;
}

/* shared entrance */
.ha-reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  animation: haReveal 1.1s cubic-bezier(0.19, 0.66, 0.22, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes haReveal {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* visually hidden, read by screen readers */
.ha-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* eyebrow */
.ha-eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.ha-eyebrow-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 176, 106, 0.55));
}
.ha-eyebrow-rule:last-child {
  background: linear-gradient(90deg, rgba(232, 176, 106, 0.55), transparent);
}

/* headline */
.ha-title {
  margin: 26px 0 0;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ha-title-line {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.3;
}

.ha-title-line em {
  font-style: italic;
  color: var(--gold-light);
}

/* the monument */
.ha-word {
  display: flex;
  justify-content: center;
  gap: 0.12em;
  margin-top: 10px;
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(2.7rem, 9.6vw, 6.9rem);
  line-height: 1.05;
  position: relative;
}

.ha-word::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 150%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200, 146, 62, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.ha-word span {
  display: block;
  background: linear-gradient(180deg, #f6d9a6 0%, #e8b06a 38%, #c8923e 68%, #8a5f22 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.35em) scale(1.1);
  filter: blur(14px);
  animation: haLetter 1s cubic-bezier(0.19, 0.66, 0.22, 1) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.07s);
}

@keyframes haLetter {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* subtitle */
.ha-sub {
  margin-top: 24px;
  max-width: 640px;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-2);
}

/* actions */
.ha-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ha-note {
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* ── The two paths (the reborn "I am…" cards) ────────────────── */

.ha-paths {
  margin-top: 38px;
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ha-path {
  position: relative;
  display: block;
  padding: 20px 52px 20px 24px;
  text-align: left;
  border: 1px solid rgba(232, 176, 106, 0.22);
  border-radius: 14px;
  background: rgba(12, 17, 27, 0.92);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

/* cursor spotlight */
.ha-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 146, 62, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* gold hairline along the top edge */
.ha-path::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 176, 106, 0.5), transparent);
  opacity: 0.45;
  transition: var(--transition);
}

.ha-path:hover {
  border-color: rgba(232, 176, 106, 0.55);
  background: rgba(22, 30, 45, 0.96);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}
.ha-path:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
.ha-path:hover::before { opacity: 1; }
.ha-path:hover::after { opacity: 1; left: 4%; right: 4%; }

.ha-path-kicker {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 176, 106, 0.8);
  transition: var(--transition);
}
.ha-path:hover .ha-path-kicker { color: var(--gold-light); }

.ha-path-title {
  display: block;
  margin-top: 7px;
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--text);
  opacity: 0.9;
}

.ha-path-sub {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-2);
}

.ha-path-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--gold-light);
  opacity: 0.7;
  transition: var(--transition);
}
.ha-path:hover .ha-path-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* ── Footer strip ────────────────────────────────────────────── */

.ha-foot {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 5vw, 56px) 20px;
}

.ha-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(232, 176, 106, 0.25) 50%, rgba(255, 255, 255, 0.08) 80%, transparent);
}

.ha-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ha-stat-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.ha-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* scroll thread */
.ha-scroll {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  opacity: 0.85;
  transition: var(--transition);
}
.ha-scroll:hover { opacity: 1; }

.ha-scroll-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ha-scroll-line {
  position: relative;
  width: 1px;
  height: 34px;
  background: rgba(232, 176, 106, 0.18);
  overflow: hidden;
}

.ha-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--gold-light));
  animation: haThread 2.6s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}

@keyframes haThread {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .ha-inner { padding-top: 120px; }
  .ha-eyebrow { font-size: 0.58rem; letter-spacing: 0.24em; gap: 12px; }
  .ha-eyebrow-rule { width: 30px; }
  .ha-word { gap: 0.12em; }
  .ha-paths { grid-template-columns: 1fr; margin-top: 40px; }
  .ha-path { padding: 16px 48px 16px 20px; }
  .ha-scroll { display: none; }
  .ha-foot { justify-content: space-between; padding-top: 14px; padding-bottom: 16px; }
  .ha-stat { flex-direction: column; gap: 2px; align-items: flex-start; }
  .ha-stat:last-child { align-items: flex-end; text-align: right; }
  .ha-halo { top: 38%; width: min(460px, 118vw); }
}

@media (max-width: 480px) {
  .ha-eyebrow { white-space: normal; }
  .ha-eyebrow-rule { display: none; }
  .ha-sub { font-size: 0.94rem; }
  .ha-actions .btn-lg { padding: 14px 24px; font-size: 0.92rem; }
}

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ha-reveal,
  .ha-word span {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .ha-halo::after,
  .ha-halo-inner,
  .ha-scroll-line::after {
    animation: none;
  }
  .ha-aurora { display: none; }
}
