/* ============================================================
   hero.css — the charge-meter hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--pad) 4rem;
}

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* --- Instrument readout --- */
.readout {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.readout__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout__figure {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  line-height: 1;
}
.readout__value {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
}
.readout__unit {
  font-size: clamp(0.9rem, 0.8rem + 0.6vw, 1.2rem);
  color: var(--muted);
}
.readout__value.is-peak {
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px color-mix(in srgb, var(--accent-2) 70%, transparent);
}
.readout__bar {
  position: relative;
  width: min(260px, 60vw);
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.readout__fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent);
  transform-origin: left;
}

/* --- Wordmark --- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 12.5vw, 11rem);
  text-transform: uppercase;
}
/* Keep each word on a single line — never break "JOULES". */
.wordmark__line { display: block; white-space: nowrap; }
.wordmark__line--accent {
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.35vw, 3px) var(--accent);
  text-stroke: clamp(1px, 0.35vw, 3px) var(--accent);
}

/* Letters animate in from the intro timeline */
.char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__tagline {
  max-width: 46ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.4rem);
  color: var(--text);
}
.hero__tagline strong {
  color: var(--accent);
  font-weight: 700;
}

.hero__hint {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.hero__hint-key {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15em 0.5em;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}

/* --- Scroll cue --- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
