/* ═══════════════════════════════════════════════════════════════
   VOYAGER 01 · voyage-a.css
   Sector 0 ORIGIN (hero) and sector 1 SIGNAL (role).
   Everything is scoped under .panel-hero / .panel-role.
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────── sector 0 · hero ───────────────────────── */
.panel-hero {
  padding-top: calc(var(--header-h) + clamp(1rem, 3vh, 2.5rem));
  padding-bottom: clamp(4.5rem, 11vh, 6.5rem);
}
.panel-hero .hero {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(0.9rem, 2.4vh, 1.6rem);
  text-align: center;
}

/* status chip */
.panel-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1rem 0.6rem 0.85rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink); letter-spacing: 0.14em; line-height: 1.4; text-align: left;
}
.panel-hero .hero-eyebrow .dot { flex: none; }

/* the name: two rows, one family — light first name, heavy surname */
.panel-hero .hero-name {
  margin-block: 0.06em 0.04em;
  font-size: calc(clamp(3.6rem, min(13.5vw, 22vh), 12.5rem) * var(--va-fit, 1));
  font-weight: 300; line-height: 0.86; letter-spacing: 0;
  white-space: nowrap; color: var(--ink);
  text-shadow: 0 0 40px rgba(5, 6, 10, 0.9);
  transform-origin: 50% 52%;
  cursor: pointer;
}
.panel-hero .hero-name.is-falling { will-change: transform, opacity; }
.panel-hero .hero-row { display: block; }
.panel-hero .hero-row-1 { font-weight: 300; letter-spacing: -0.03em; --va-track: -0.03em; }
.panel-hero .hero-row-2 { font-weight: 700; letter-spacing: -0.045em; --va-track: -0.014em; }
.panel-hero .hero-name.is-split .hero-row { letter-spacing: 0; }
.panel-hero .hero-ch {
  display: inline-block;
  margin-inline: var(--va-track, 0em);
  letter-spacing: 0; text-align: center;
  translate: calc(var(--off, 0) * var(--spread, 0em)) 0;
}
.panel-hero .hero-name.is-split:not(.is-live) .hero-ch { opacity: 0; }
.panel-hero .hero-name.is-live .hero-ch {
  animation: va-letter 1200ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes va-letter {
  from { opacity: 0; filter: blur(12px); translate: calc(var(--off, 0) * var(--spread, 0em)) 0.16em; }
}
/* lite devices: same rise, without a per-letter blur filter */
html.is-lite .panel-hero .hero-name.is-live .hero-ch { animation-name: va-letter-lite; }
@keyframes va-letter-lite {
  from { opacity: 0; translate: calc(var(--off, 0) * var(--spread, 0em)) 0.16em; }
}

.panel-hero .hero-sub { max-width: 44ch; color: var(--ink-2); }

.panel-hero .hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem;
  margin-top: 0.3rem;
}
.panel-hero .hero-ctas .btn:not(.btn-primary) { background-color: var(--surface); }

/* real coordinates */
.panel-hero .hero-coords {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.45rem 0.9rem;
  color: var(--ink-2); letter-spacing: 0.14em;
}
.panel-hero .hero-coords i { flex: none; width: 28px; height: 1px; background: var(--line-2); }

/* keyboard shortcuts */
.panel-hero .hero-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.5rem; }
.panel-hero .hero-key {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 32px; padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: inherit; text-transform: inherit; color: var(--ink-2);
  transition: color var(--t-2), background-color var(--t-2);
}
.panel-hero .hero-key kbd { transition: color var(--t-2), border-color var(--t-2); }
.panel-hero .hero-key:hover, .panel-hero .hero-key:focus-visible { color: var(--ink); background-color: rgba(255, 255, 255, 0.05); }
.panel-hero .hero-key:hover kbd, .panel-hero .hero-key:focus-visible kbd { color: var(--ink); border-color: var(--accent); }
html.is-coarse .panel-hero .hero-shortcuts { display: flex; gap: 0.45rem; }
html.is-coarse .panel-hero .hero-key { border: 1px solid var(--line-2); background: var(--surface); padding: 0.45rem 0.75rem; }
html.is-coarse .panel-hero .hero-key kbd { display: none; }

/* scroll hint */
.panel-hero .scroll-hint {
  position: absolute; left: 0; right: 0; bottom: clamp(0.8rem, 2.4vh, 1.5rem);
  width: max-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--ink-2); pointer-events: none;
  transition: opacity var(--t-3) var(--ease-out), visibility 0s linear var(--t-3);
}
html.js .panel-hero:not(.is-hinting) .scroll-hint { opacity: 0; }
.panel-hero.is-scrolled .scroll-hint { opacity: 0; visibility: hidden; }
.panel-hero .scroll-hint i { position: relative; display: block; width: 1px; height: 30px; overflow: hidden; background: var(--line-2); }
.panel-hero .scroll-hint i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 12px;
  background: var(--ink);
  animation: va-drip 2.2s var(--ease-in-out) infinite;
}
.panel-hero.is-scrolled .scroll-hint i::after { animation: none; }
@keyframes va-drip { from { translate: 0 -14px; } to { translate: 0 32px; } }

@media (max-width: 640px) {
  .panel-hero .hero-name { font-size: calc(clamp(3.4rem, 18.5vw, 6rem) * var(--va-fit, 1)); }
  .panel-hero .hero-coords i { display: none; }
}
@media (max-width: 440px) {
  .panel-hero .hero-ctas { flex-direction: column; align-items: stretch; width: min(100%, 20rem); }
  .panel-hero .hero-eyebrow { letter-spacing: 0.1em; }
}

/* ───────────────────────── sector 1 · role ───────────────────────── */
@media (min-width: 881px) {
  .panel-role .role { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.panel-role .role-head { margin-bottom: clamp(1.25rem, 3.2vh, 2rem); }
.panel-role .role-kicker-plain { color: var(--ink-2); }
.panel-role .role-h {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  font-size: clamp(1.7rem, 3.3vw, 2.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
}

/* incoming-signal readout */
.panel-role .role-signal {
  position: relative; overflow: hidden;
  display: grid; gap: 0.6rem;
  width: min(100%, 30rem);
  margin-bottom: clamp(1.1rem, 2.8vh, 1.6rem);
  padding: 0.95rem 1.1rem 1.05rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.panel-role .role-signal::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--sector-a); }
.panel-role .role-signal-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-role .role-signal-tag { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--sector-ink); }
.panel-role .role-signal-tag svg { flex: none; width: 8px; height: 9px; fill: currentColor; animation: va-beat 1.3s var(--ease-in-out) infinite alternate; }
@keyframes va-beat { from { opacity: 0.35; } to { opacity: 1; } }
.panel-role .role-signal-now {
  min-height: 1.2em; overflow: hidden;
  font: 600 clamp(1rem, 1.55vw, 1.3rem) / 1.2 var(--font-mono); letter-spacing: 0.01em;
  white-space: nowrap; color: var(--ink);
}
.panel-role .role-signal-bar { display: block; height: 1px; background: var(--line); }
.panel-role .role-signal-bar b { display: block; height: 100%; background: var(--sector-a); transform: scaleX(0); transform-origin: left center; }
html.is-reduced .panel-role .role-signal-bar { display: none; }

.panel-role .role-desc { max-width: 52ch; }

/* holo-planet (fixed duplicate CSS bug where inset:0 conflicted with top:calc(100% + 2.1rem)) */
.panel-role .role-holo {
  --brk-inset: 0px; --brk-len: 14px;
  position: relative;
  width: min(100%, 440px); aspect-ratio: 1;
  margin: 0 auto 5.2rem;
  background: radial-gradient(closest-side, rgba(var(--sector-a-rgb), 0.1), rgba(var(--sector-a-rgb), 0.03) 55%, transparent 72%);
  -webkit-user-select: none; user-select: none;
}
.panel-role .role-holo:focus-within { --brk-color: var(--focus); }
.panel-role .role-holo canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y; cursor: grab;
}
.panel-role .role-holo.is-over canvas { cursor: pointer; }
.panel-role .role-holo.is-grabbing canvas { cursor: grabbing; }
.panel-role .role-holo-cap {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 0.75rem;
  text-align: center; color: var(--ink-2); pointer-events: none;
}
.panel-role .role-picks {
  position: absolute; left: -10%; right: -10%; top: calc(100% + 2.1rem); bottom: auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.38rem;
  pointer-events: auto; z-index: 3;
}
.panel-role .role-pick {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.34rem 0.66rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--surface);
  font: 500 var(--fs-micro) / 1.1 var(--font-mono); letter-spacing: 0.06em;
  color: var(--ink-2); transition: color var(--t-2), border-color var(--t-2), background-color var(--t-2);
}
.panel-role .role-pick span { color: var(--sector-ink); font-size: 0.62rem; }
.panel-role .role-pick:hover, .panel-role .role-pick[aria-pressed='true'] {
  color: var(--ink); border-color: var(--sector-a); background: rgba(var(--sector-a-rgb), 0.16);
}

@media (max-width: 880px) {
  .panel-role .role-holo { width: min(100%, 280px); margin-bottom: 6.2rem; }
  .panel-role .role-picks { left: -16%; right: -16%; }
}
