/*
 * Styles Phase 0 centered hero with typewriter headline, rotating subtitle, and avatar.
 * Owns Phase 0 hero layout and visibility transitions; does not animate studio rooms.
 */
.hero-layer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 24vh;
  padding-inline: 20px;
  text-align: center;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s ease;
}

.hero-layer.is-hidden {
  opacity: 0;
  transform: translateY(-28px);
  pointer-events: none;
}

.hero-layer:not(.is-hidden) .hero-interactive {
  pointer-events: auto;
}

.hero-portrait-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.hero-layer.is-hidden .hero-portrait-wrap {
  transform: translate(-36vw, -120px) scale(0.2);
  opacity: 0;
}

.hero-portrait {
  width: 168px;
  height: 168px;
  border-radius: 34px;
  object-fit: cover;
  border: 3.5px solid #FFFFFF;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18), 0 0 0 2px rgba(17, 24, 39, 0.14);
}

.hero-handle-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  min-height: 1.12em;
  margin-bottom: 12px;
}

.hero-cursor {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: -0.08em;
  animation: blink-cursor 0.9s steps(2, start) infinite;
}

@keyframes blink-cursor {
  to { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-rotating-word {
  color: var(--ink);
  font-weight: 700;
  display: inline-block;
  min-height: 1.35em;
}

.hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-cta-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.16s ease, background 0.16s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}

.hero-cta-btn--accent {
  background: var(--accent);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-cta-btn--accent:hover {
  background: var(--accent-hover);
}
