/* HYPER RED — intro ident
   A ~2s brand moment on load, built from the same two-panel / vertical
   line concept as the source mark. Never a gate: pointer-events stay off
   throughout, so nothing beneath it is ever blocked, and it detaches
   itself from the DOM once done (see js/intro.js). Every timing below is
   a hard-coded ms value, but reduced motion still fully applies to it —
   base.css's `* { animation-duration: 0.001ms !important }` overrides
   apply globally, not just to var()-based durations. */

.hr-intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  overflow: hidden;
  background: var(--bg-0);
  pointer-events: none;
  animation: hrIntroFadeOut 480ms var(--ease-cinematic) 1620ms both;
}

.hr-intro.is-done {
  opacity: 0;
  transition: opacity 220ms var(--ease-cinematic);
}

@keyframes hrIntroFadeOut {
  to { opacity: 0; visibility: hidden; }
}

.hr-intro-panel {
  position: absolute;
  inset: 0;
  width: 50%;
}

.hr-intro-panel-left {
  left: 0;
  background: var(--bg-0);
  animation: hrIntroPanelLeftOut 540ms var(--ease-cinematic) 1520ms both;
}

.hr-intro-panel-right {
  right: 0;
  left: auto;
  background: radial-gradient(130% 150% at 100% 45%, var(--hr-red-bright) 0%, var(--hr-red) 45%, var(--bg-0) 88%);
  opacity: 0;
  animation:
    hrIntroPanelRightIn 680ms var(--ease-cinematic) 140ms both,
    hrIntroPanelRightOut 540ms var(--ease-cinematic) 1520ms both;
}

@keyframes hrIntroPanelRightIn { to { opacity: 1; } }
@keyframes hrIntroPanelLeftOut { to { transform: translateX(-100%); } }
@keyframes hrIntroPanelRightOut { to { transform: translateX(100%); } }

/* Central vertical line — grows from the middle outward, then becomes
   the seed of the app's own grid rhythm as the whole overlay lifts. */
.hr-intro-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, transparent, var(--text-primary) 15%, var(--text-primary) 85%, transparent);
  transform: translate(-50%, -50%);
  animation: hrIntroLineGrow 560ms var(--ease-cinematic) both;
}

@keyframes hrIntroLineGrow {
  from { height: 0; opacity: 0.5; }
  to { height: min(52vh, 420px); opacity: 1; }
}

.hr-intro-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(24px, 6vw, 96px);
}

.hr-intro-wordmark {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 8vw, 88px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.95;
  color: var(--text-primary);
}

.hr-intro-mask {
  display: inline-block;
  overflow: hidden;
}

.hr-intro-word {
  display: inline-block;
  transform: translateX(-102%);
  animation: hrIntroWordIn 620ms var(--ease-cinematic) 640ms both;
}

.hr-intro-mask:nth-of-type(2) .hr-intro-word {
  animation-delay: 790ms;
}

.hr-intro-word-red { color: var(--hr-red-bright); }

@keyframes hrIntroWordIn { to { transform: translateX(0); } }

.hr-intro-sub {
  margin-top: clamp(8px, 1.6vw, 16px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: hrIntroSubIn 560ms var(--ease-cinematic) 1080ms both;
}

@keyframes hrIntroSubIn {
  from { opacity: 0; letter-spacing: 0.62em; }
  to { opacity: 1; letter-spacing: 0.32em; }
}

.hr-intro-mark-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hr-intro-mark {
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  opacity: 0;
  transform: scale(0.94);
  animation: hrIntroMarkIn 620ms var(--ease-cinematic) 820ms both;
}

@keyframes hrIntroMarkIn {
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .hr-intro-mark-wrap { display: none; }
  .hr-intro-content { padding-left: var(--sp-5); }
}
