/* 1. Hero: the dark city, hexagons at three depths, then the dive into the first LIT and the
   title card. hero.js sets --hx / --hy (where the first LIT sits on the stage) and --s (map scale). */
.s-hero .stage { background: var(--navy); color: #fff; }
.hero-cam { position: absolute; inset: 0; transform-origin: var(--hx) var(--hy); will-change: transform; }
/* Everything in the world is placed in map pixels relative to the first LIT. */
.hero-world { position: absolute; left: var(--hx); top: var(--hy); width: 0; height: 0; transform: scale(var(--s)); }
.hero-world .pl { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.hero-world svg.map { position: absolute; }
/* The city grows out of the first hexagon: a navy cover with a hole that widens. */
.hero-veil { position: absolute; inset: 0; background: radial-gradient(circle at var(--hx) var(--hy), rgba(11, 37, 69, 0) calc(var(--r, 0px) - 160px), var(--navy) var(--r, 0px)); pointer-events: none; }
.opin { position: absolute; width: 0; height: 0; }
.opin svg { position: absolute; }
.opin b { position: absolute; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--navy); }

.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 37, 69, 0.95) 0%, rgba(11, 37, 69, 0.82) 30%, rgba(11, 37, 69, 0) 62%); pointer-events: none; }

.hero-pin { position: absolute; left: var(--hx); top: var(--hy); width: 0; height: 0; transform: scale(var(--ps)); pointer-events: none; }
.hero-pin > * { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; }
.hero-pin.diving .ring { display: none; }
.hero-pin .ring { animation: hero-ring 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; opacity: 0; }
.hero-pin .ring:nth-child(2) { animation-delay: 0.8s; }
.hero-pin .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes hero-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.6); opacity: 0; } }
.hero-pin b { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 46px; color: var(--navy); }

.hero-copy { position: absolute; left: var(--gut); top: 50%; transform: translateY(-46%); max-width: 56vw; }
.hero-copy .hl { font-size: clamp(44px, 6.3vw, 124px); width: max-content; }
.hero-copy .sub { margin-top: clamp(18px, 2.6vw, 38px); font-size: clamp(17px, 1.9vw, 30px); max-width: 21em; color: rgba(255, 255, 255, 0.84); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 44px); }

.hero-hint { position: absolute; left: var(--gut); bottom: clamp(20px, 4.5vh, 44px); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.hero-hint i { position: relative; width: 22px; height: 34px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, 0.45); }
.hero-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: hero-hint 1.8s var(--swift) infinite; }
@keyframes hero-hint { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(11px); opacity: 0; } }

/* The title card: the first hexagon's yellow has become the whole frame. */
.title-card { position: absolute; inset: 0; background: var(--sun); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; visibility: hidden; padding: 0 20px; }
html:not(.js) .title-card { position: static; visibility: visible; padding: 60px 20px; margin-top: 40px; }
.lockup { display: flex; align-items: center; gap: 0.23em; font-size: clamp(50px, 10.2vw, 190px); }
.lockup .mk svg { height: 1.2em; width: auto; }
.lockup .name { font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.title-card .tag { margin-top: 0.5em; font-weight: 600; font-size: clamp(20px, 2.5vw, 44px); letter-spacing: -0.01em; }

@media (max-width: 899px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(11, 37, 69, 0.96) 0%, rgba(11, 37, 69, 0.86) 40%, rgba(11, 37, 69, 0) 64%); }
  .hero-copy { top: calc(var(--nav-h) + clamp(24px, 6vh, 56px)); transform: none; max-width: none; right: var(--gut); }
  .hero-copy .hl { font-size: clamp(32px, 9.7vw, 72px); }
  .hero-copy .sub { font-size: clamp(16px, 4.4vw, 22px); max-width: 19em; }
  .hero-cta .btn { height: 50px; padding: 0 22px; font-size: 16px; }
  .hero-hint { left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .hero-copy .sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin .ring, .hero-hint i::after { animation: none; }
}
