/*
 * hero.css
 * ─────────────────────────────────────────────────────────────
 * Full-viewport hero section.
 *
 * Layout: two-column grid
 *   Left  (.hero-left)  — name, tagline, badges, CTA buttons
 *   Right (.hero-right) — dark panel with canvas particles
 *                         and "Impact at a Glance" stats
 *
 * Canvas particles are driven by hero.js.
 * ─────────────────────────────────────────────────────────────
 */

/* ── Layout ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  overflow: hidden;
}

/* ── Left panel ── */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 4rem;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.2s both;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  animation: fadeUp 0.7s 0.45s both;
}
.hero-name em { font-style: italic; color: var(--blue); }

.hero-title {
  font-size: 0.95rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  margin-top: 1rem;
  animation: fadeUp 0.7s 0.65s both;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 480px;
  margin-top: 1.75rem;
  font-weight: 300;
  animation: fadeUp 0.7s 0.85s both;
}

/* Skill badges */
.hero-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  animation: fadeUp 0.7s 1.05s both;
}

.badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--silver-dark);
  color: var(--slate);
  background: var(--white);
  border-radius: 3px;
  transition: all 0.2s;
  cursor: default;
}
.badge:hover { border-color: var(--blue); color: var(--blue); }
.badge.filled { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* CTA buttons row */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeUp 0.7s 1.25s both;
}

/* ── Right panel ── */
.hero-right {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient overlay behind particles */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A2260, #151B54, #0E1240);
}

/* Canvas sits behind stats */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Stats wrapper sits above canvas */
.hero-stats-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 3rem;
}

.hero-stats-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 1s both;
}
.hero-stats-title em { font-style: italic; color: var(--blue-light); }

/* Individual stat items */
.hero-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.h-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 3rem;
  animation: fadeUp 0.6s both;
  opacity: 0;
}
.h-stat:nth-child(1) { animation-delay: 1.1s; }
.h-stat:nth-child(3) { animation-delay: 1.3s; }
.h-stat:nth-child(5) { animation-delay: 1.5s; }

.h-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.h-stat-num span { color: var(--blue-light); }
.h-stat-num-sm { font-size: 2.2rem !important; }

.h-stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
  font-weight: 500;
}

.h-stat-context {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.3rem;
}

/* Thin animated divider between stat blocks */
.h-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: visible;
}
.h-divider::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 1px; width: 0;
  background: var(--blue-light);
  animation: lineGrow 0.8s 1.6s both;
}

/* External case study link */
.h-stat-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #93C5FD;
  text-decoration: none;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(147, 197, 253, 0.3);
  padding-bottom: 0.1rem;
  width: fit-content;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.h-stat-link:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* Paired stat layout (e.g. −25% + +23%) */
.h-stat-paired {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}
.h-stat-pair-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h-stat-pair-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.15rem;
  font-weight: 500;
}
.h-stat-pair-sep {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

/* Hidden legacy element */
.hero-bg-num { display: none; }
