/* ==========================================
   LANDING — the one-screen Avalon hero.
   ========================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;            /* avoids the mobile address-bar jump */
    display: grid;
    place-items: center;
    isolation: isolate;
    background: var(--bg);
}

#constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.hero .vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(120% 95% at 50% 42%, transparent 46%, rgba(var(--bg-rgb), 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 24px;
    max-width: 820px;
}

.mark {
    width: clamp(74px, 13vh, 104px);
    height: auto;
    color: var(--accent);
    filter: drop-shadow(0 0 18px rgba(var(--node-rgb), 0.18));
}

.wordmark {
    margin: 0;
    line-height: 1;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.16em;
    padding-left: 0.16em;           /* balances the trailing tracking so it stays centered */
    font-size: clamp(2.1rem, 8vw, 3.6rem);
}

.tagline {
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    letter-spacing: 0.03em;
    max-width: 48ch;
}

/* ---- entrance (replaces the old fake "% connecting" loader) ----
   Content is visible at rest; .intro is added by app.js after load as a
   one-time reveal. Nothing is gated on it, so the page is complete without JS. */
.hero-content > * { opacity: 1; }
.hero.intro .mark     { animation: markIn 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero.intro .wordmark { animation: riseIn 0.8s cubic-bezier(.2,.7,.2,1) 0.16s both; }
.hero.intro .tagline  { animation: riseIn 0.8s cubic-bezier(.2,.7,.2,1) 0.32s both; }
.hero.intro .btn      { animation: riseIn 0.8s cubic-bezier(.2,.7,.2,1) 0.48s both; }

@keyframes markIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .wordmark { letter-spacing: 0.1em; padding-left: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
    .hero.intro .mark,
    .hero.intro .wordmark,
    .hero.intro .tagline,
    .hero.intro .btn { animation: none; }
    .btn { transition: none; }
}
