/* Hero: the logo intro, the sound gate and the hold hint. */

.hero {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sfx-space-8);
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--sfx-space-24) var(--sfx-space-6);
  text-align: center;
}

.hero__logo { margin: 0; line-height: 0; }

.logo {
  display: block;
  width: min(82vw, 960px);
  transform-origin: 50% 50%;
  will-change: transform;
}
.logo svg,
.logo img { display: block; width: 100%; height: auto; overflow: visible; }

/* The logo file blinks through components.css; here the page decides when. */
.logo .sfx-cursor { animation: none; }
.logo.is-blinking .sfx-cursor { animation: sfx-blink var(--sfx-blink) steps(1, end) infinite; }

.hero__tagline {
  font: 500 clamp(0.875rem, 1.5vw, 1.25rem) / 1.4 var(--sfx-font-mono);
  color: var(--sfx-grey-400);
  letter-spacing: 0.02em;
  min-height: 1.4em;
}
.hero__tagline-end { color: var(--sfx-red); }
.hero__tagline .ch { opacity: 0; }
.hero__tagline .ch.is-on { opacity: 1; }

/* Shared fade for the hero's helper bits. */
.gate,
.hint,
.skip {
  opacity: 0;
  transition: opacity var(--sfx-slow) var(--sfx-ease), transform var(--sfx-slow) var(--sfx-ease);
}
.gate.is-shown,
.hint.is-shown,
.skip.is-shown { opacity: 1; }

.gate {
  display: grid;
  justify-items: center;
  gap: var(--sfx-space-4);
}
.gate__title {
  font-family: var(--sfx-font-display);
  font-weight: var(--sfx-display-weight);
  font-stretch: var(--sfx-display-stretch);
  font-style: italic;
  font-size: var(--sfx-text-xl);
  line-height: 1;
}
.gate__actions { display: flex; gap: var(--sfx-space-3); }
.gate__hint {
  font: 400 var(--sfx-text-xs) / 1.4 var(--sfx-font-mono);
  color: var(--sfx-grey-400);
}
.gate__hint::before { content: "_"; color: var(--sfx-red); }

.hint {
  position: absolute;
  left: 50%;
  bottom: var(--sfx-space-12);
  display: grid;
  justify-items: center;
  gap: var(--sfx-space-3);
  translate: -50% 0;
}
.hint__text {
  font: 500 var(--sfx-text-sm) / 1.4 var(--sfx-font-mono);
  color: var(--sfx-grey-300);
}
.hint__text::before { content: "_"; color: var(--sfx-red); }
.hint__alt { color: var(--sfx-grey-400); }

/* Divider shape from the guide: 48 x 4, slanted 10 degrees. Fills while holding. */
.hint__bar {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--sfx-surface-3);
  transform: skewX(-10deg);
  overflow: hidden;
}
.hint__fill {
  display: block;
  height: 100%;
  background: var(--sfx-red);
  transform: scaleX(0);
  transform-origin: left;
}

.skip {
  position: absolute;
  right: var(--sfx-space-6);
  bottom: var(--sfx-space-6);
  padding: var(--sfx-space-2);
  border: 0;
  background: none;
  font: 500 var(--sfx-text-xs) / 1 var(--sfx-font-mono);
  color: var(--sfx-grey-400);
  cursor: pointer;
  transition: color var(--sfx-fast) var(--sfx-ease), opacity var(--sfx-slow) var(--sfx-ease);
}
.skip::before { content: "_"; color: var(--sfx-red); }
.skip:hover { color: var(--sfx-red-hot); }

/* No JS: the full static logo and the page open as normal. */
.no-js .hero__tagline .ch { opacity: 1; }
