/* ═══════════════════════════════════════════════════════════════
   UNKNOWN SIGNAL — GALAXY THEME (cyan primary)
   ═══════════════════════════════════════════════════════════════ */

body.area51-v2 {
    --black: #04040f;
    --deep: #080818;
    --panel: #080818;
    --panel2: #0c0c22;
    --green: #22ff88;
    --blue: #00e5ff;
    --cyan: #00e5ff;
    --cyan-dim: #00e5ff44;
    --cyan-glow: #00e5ff22;
    --teal: #2ee8a0;
    --amber: #d4622a;
    --amber-dim: #d4622a55;
    --amber-glow: #d4622a18;
    --violet: #7c3aff;
    --violet-dim: #7c3aff55;
    --violet-glow: #7c3aff22;
    --purple: #7c3aff;
    --purple-glow: #7c3aff44;
    --red-alert: #ff3366;
    --gold: #ffc853;
    --text: #dce8f0;
    --text-dim: #7a8fa0;
    --border: #2a3a48;
    --border-glow: #00e5ff33;
    --bone: #e2d4a8;
    --terra: #3d2810;
    --a51-radar: #00e5ff;
    --a51-restricted: #ff3366;
    --a51-hud: rgba(0, 229, 255, 0.12);
    --font-display: 'Orbitron', monospace;
    --nav-h: 72px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-glitch: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Atmospheric layers ── */
.a51-atmo {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

body.area51-v2 .a51-atmo-vignette {
    background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 0%, rgba(4, 4, 15, 0.18) 65%, rgba(2, 2, 8, 0.38) 100%);
}

body.area51-v2 .a51-atmo-grid {
    display: none;
}

.a51-atmo-scan {
    display: none;
}

.a51-atmo-noise {
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: none;
    transform: none;
    inset: 0;
}

#a51RadarCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    display: none;
}

body.area51-v2.a51-radar-active #a51RadarCanvas {
    display: block;
    opacity: 0.22;
}

body.area51-v2::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.area51-v2 {
    background: var(--black);
}

body.area51-v2::after {
    opacity: 0;
}

/* Force-remove legacy scroll hint if cached HTML still contains it */
body.area51-v2 .a51-scroll-hint,
body.area51-v2 .a51-scroll-hint-text,
body.area51-v2 .a51-scroll-hint-line {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.a51-atmo-scan {
    display: none;
}

.a51-atmo-noise {
    opacity: 0.015;
    animation: none !important;
    transform: none !important;
}

/* ── Page transitions ── */
body.area51-v2 .page {
    padding-top: var(--nav-h);
    animation: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: none;
}

body.area51-v2 .page.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

body.area51-v2.page-transitioning .page,
body.area51-v2.page-transitioning .page.active,
body.area51-v2.page-transitioning .page.page-exiting,
body.area51-v2.page-transitioning .page.page-entering {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
}

body.area51-v2.page-transitioning .page.page-transition-pending {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.area51-v2:not(.page-transitioning) .page.active {
    display: block;
}

body.area51-v2.page-transitioning #starfield,
body.area51-v2.page-transitioning .a51-atmo,
body.area51-v2.page-transitioning #a51RadarCanvas,
body.area51-v2.page-transitioning .site-nav,
body.area51-v2.page-transitioning footer,
body.area51-v2.page-transitioning .home-signal-boot-overlay,
body.area51-v2.page-transitioning .hud-corner {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.area51-v2.page-transitioning {
    overflow: hidden;
    background: #04040f !important;
}

body.area51-v2 .page.page-exiting {
    animation: a51-page-out 0.28s var(--ease-out-expo) forwards;
}

body.area51-v2 .page.page-entering {
    animation: a51-page-in 0.55s var(--ease-out-expo) forwards;
}

@keyframes a51-page-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.985);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes a51-page-out {
    from {
        opacity: 1;
        transform: none;
        filter: none;
    }
    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.99);
        filter: blur(4px);
    }
}

@keyframes a51-grid-drift {
    to { background-position: 48px 48px; }
}

@keyframes a51-noise {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, -1%); }
}

@keyframes a51-radar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes a51-pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes a51-stamp-flicker {
    0%, 92%, 100% { opacity: 1; }
    93% { opacity: 0.3; }
    95% { opacity: 1; }
    97% { opacity: 0.5; }
}

@keyframes a51-reveal-up {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: none; }
}

@keyframes a51-bracket-draw {
    from { clip-path: inset(50% 50% 50% 50%); opacity: 0; }
    to { clip-path: inset(0); opacity: 1; }
}

@keyframes a51-status-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--cyan); }
    50% { opacity: 0.4; box-shadow: 0 0 4px var(--cyan); }
}

/* Scroll reveal */
body.area51-v2 .a51-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

body.area51-v2 .a51-reveal.a51-visible {
    opacity: 1;
    transform: none;
}

body.area51-v2 .a51-reveal[data-delay="1"] { transition-delay: 0.1s; }
body.area51-v2 .a51-reveal[data-delay="2"] { transition-delay: 0.2s; }
body.area51-v2 .a51-reveal[data-delay="3"] { transition-delay: 0.3s; }
body.area51-v2 .a51-reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ── Navigation ── */
body.area51-v2 nav.site-nav {
    --nav-h: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    height: var(--nav-h);
    gap: 16px 20px;
    padding: 0 clamp(16px, 3vw, 48px);
    background: linear-gradient(180deg, rgba(8, 8, 24, 0.97) 0%, rgba(4, 4, 15, 0.92) 100%);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 1px 0 rgba(0, 229, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    overflow-x: clip;
    overflow-y: visible;
}

body.area51-v2 nav.site-nav:has(.nav-logo-interactive.nav-logo-shattered),
body.area51-v2 nav.site-nav:has(.nav-logo-interactive.nav-logo-assembling),
body.area51-v2 nav.site-nav:has(.nav-logo-interactive.logo-shard-hover-active) {
    overflow: visible;
}

body.area51-v2 .nav-logo:has(.nav-logo-interactive.nav-logo-shattered),
body.area51-v2 .nav-logo:has(.nav-logo-interactive.nav-logo-assembling),
body.area51-v2 .nav-logo:has(.nav-logo-interactive.logo-shard-hover-active) {
    overflow: visible;
    z-index: 10001;
    position: relative;
}

body.area51-v2 .nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 0;
    min-height: 44px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-dim);
    flex-shrink: 0;
    overflow: visible;
}

body.area51-v2 .intercept-signal-logo,
body.area51-v2 .home-boot-logo,
body.area51-v2 .mob-menu-logo-mark {
    filter: none !important;
    animation: none !important;
}

body.area51-v2 .nav-logo-mark-wrap,
body.area51-v2 .a51-logo-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: var(--a51-logo-size, 52px);
    height: var(--a51-logo-size, 52px);
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
}

body.area51-v2 .nav-logo-mark-wrap::before,
body.area51-v2 .a51-logo-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.48) 0%, rgba(0, 229, 255, 0.16) 42%, rgba(0, 229, 255, 0.05) 68%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: dl-nav-logo-glow 2s ease-in-out infinite;
}

body.area51-v2 .nav-logo-interactive .nav-logo-energy-ring {
    box-shadow:
        inset 0 0 12px rgba(0, 229, 255, 0.12),
        0 0 10px rgba(0, 229, 255, 0.18);
    animation: nav-logo-ring-idle 9s linear infinite, dl-nav-logo-glow 2.4s ease-in-out infinite;
}

body.area51-v2 .nav-logo-mark-wrap .nav-logo-mark,
body.area51-v2 .a51-logo-wrap > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.55)) drop-shadow(0 0 14px rgba(0, 229, 255, 0.35));
    animation: a51-nav-logo-mark-pulse 2.4s ease-in-out infinite;
    background: transparent;
    border: none;
    transform: scale(1.14);
    transform-origin: center center;
}

@keyframes a51-nav-logo-mark-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px #00e5ff) drop-shadow(0 0 12px rgba(0, 229, 255, 0.42));
        transform: scale(1.14);
    }
    50% {
        filter: drop-shadow(0 0 12px #00e5ff) drop-shadow(0 0 26px rgba(0, 229, 255, 0.78));
        transform: scale(1.18);
    }
}

body.area51-v2 .nav-logo-interactive.logo-shards-ready .nav-logo-mark,
body.area51-v2 .nav-logo-interactive.nav-logo-shattered .nav-logo-mark,
body.area51-v2 .nav-logo-interactive.nav-logo-assembling .nav-logo-mark {
    animation: none !important;
    filter: none !important;
}

body.area51-v2 .nav-logo-interactive.nav-logo-shattered,
body.area51-v2 .nav-logo-interactive.nav-logo-assembling,
body.area51-v2 .nav-logo-interactive.logo-shard-hover-active {
    overflow: visible;
    z-index: 10001;
    position: relative;
}

body.area51-v2 .nav-logo-mark-wrap::after,
body.area51-v2 .a51-logo-wrap::after {
    display: none;
}

@keyframes a51-logo-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px #00e5ff) drop-shadow(0 0 12px rgba(0, 229, 255, 0.45));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 10px #00e5ff) drop-shadow(0 0 22px rgba(0, 229, 255, 0.75));
        transform: scale(1.05);
    }
}

body.area51-v2 .nav-logo-mark-wrap.boot-access-flash .nav-logo-mark,
body.area51-v2 .a51-logo-wrap.boot-access-flash > img {
    animation: a51-nav-logo-access 2s var(--ease-out-expo) forwards !important;
}

@keyframes a51-nav-logo-access {
    0% { transform: scale(1.14); }
    35% { transform: scale(1.28); filter: drop-shadow(0 0 14px #00e5ff) drop-shadow(0 0 28px rgba(0, 229, 255, 0.85)); }
    100% { transform: scale(1.14); }
}

body.area51-v2 .nav-logo-mark-wrap.mob-menu-logo-shell .nav-logo-mark,
body.area51-v2 .mob-menu-logo-mark {
    position: static;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

body.area51-v2 .nav-logo-text {
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-dim);
}

body.area51-v2 .nav-logo span {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.4em;
    display: block;
    margin-top: 2px;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.32), 0 0 24px rgba(0, 229, 255, 0.14);
}

body.area51-v2 .nav-links {
    display: flex;
    flex: unset;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.area51-v2 .nav-links li a {
    display: block;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
    color: var(--text);
    padding: 8px 14px;
    min-height: 0;
    line-height: 1.3;
    border: none !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.25s, text-shadow 0.25s;
}

body.area51-v2 .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

body.area51-v2 .nav-links li a:hover,
body.area51-v2 .nav-links li a.active {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

body.area51-v2 .nav-links li a.active::after,
body.area51-v2 .nav-links li a:hover::after {
    width: calc(100% - 8px);
    left: 4px;
}

body.area51-v2 .nav-status {
    flex-shrink: 0;
    align-items: flex-end;
}

body.area51-v2 .a51-nav-clearance-inline {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--a51-restricted);
    border: 1px solid rgba(255, 45, 45, 0.45);
    background: rgba(255, 45, 45, 0.08);
    padding: 2px 6px;
    line-height: 1.2;
    flex-shrink: 0;
}

body.area51-v2 .a51-nav-clearance {
    display: none;
}

body.area51-v2 .nav-updated {
    color: var(--text-dim);
    font-size: 8px;
    letter-spacing: 0.14em;
}

body.area51-v2 .status-dot {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: a51-status-blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

body.area51-v2 #navRelayStatusLabel {
    color: var(--cyan) !important;
    font-size: 9px !important;
    letter-spacing: 0.16em !important;
    white-space: nowrap;
}

body.area51-v2 .hamburger {
    flex-shrink: 0;
    grid-column: 4;
    border-color: rgba(0, 229, 255, 0.35);
}

body.area51-v2 .hamburger span {
    background: var(--cyan) !important;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.45) !important;
}

body.area51-v2 .hamburger:hover {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25) !important;
}

body.area51-v2 nav.site-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.45;
    animation: a51-nav-scan 4s ease-in-out infinite;
    pointer-events: none;
}

body.area51-v2 .hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ── Hero ── */
body.area51-v2 .a51-hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px var(--site-gutter) 88px;
    position: relative;
    overflow: hidden;
}

body.area51-v2 .a51-hero-core {
    position: relative;
    width: min(100%, 900px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.area51-v2 .a51-hero-radar {
    position: absolute;
    width: clamp(300px, 86vmin, 880px);
    height: clamp(300px, 86vmin, 880px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.12);
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

body.area51-v2 .a51-hero-radar::before {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.08);
}

body.area51-v2 .a51-hero-radar::after {
    content: '';
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 229, 255, 0.06);
}

body.area51-v2 .a51-radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 229, 255, 0.15) 28deg, transparent 56deg);
    animation: none;
    transform-origin: 50% 50%;
    will-change: transform;
}

body.area51-v2.a51-radar-active .a51-radar-glyph {
    opacity: calc(0.35 + 0.65 * var(--a51-radar-trace, 0));
}

body.area51-v2 .a51-radar-glyph {
    --a51-radar-trace: 0;
    display: inline-block;
    color: inherit;
    text-shadow:
        0 0 calc(1px + 16px * var(--a51-radar-trace)) rgba(0, 229, 255, calc(0.06 + 0.72 * var(--a51-radar-trace)));
}

body.area51-v2 .hero-title .a51-radar-glyph {
    background: linear-gradient(135deg, #fff 0%, var(--cyan) 40%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 calc(2px + 18px * var(--a51-radar-trace)) rgba(0, 229, 255, calc(0.1 + 0.65 * var(--a51-radar-trace))));
}

body.area51-v2 .a51-clearance-stamp .a51-radar-glyph {
    text-shadow:
        0 0 calc(1px + 14px * var(--a51-radar-trace)) rgba(255, 45, 45, calc(0.08 + 0.62 * var(--a51-radar-trace)));
}

body.area51-v2 .a51-hero-brackets {
    position: absolute;
    inset: 8% 5%;
    border: 1px solid rgba(0, 229, 255, 0.1);
    pointer-events: none;
    animation: a51-bracket-draw 1.2s var(--ease-out-expo) 0.3s both;
    z-index: 3;
}

body.area51-v2 .a51-hero-brackets::before,
body.area51-v2 .a51-hero-brackets::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--cyan);
    border-style: solid;
}

body.area51-v2 .a51-hero-brackets::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

body.area51-v2 .a51-hero-brackets::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

body.area51-v2 .a51-clearance-stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--a51-restricted);
    border: 2px solid var(--a51-restricted);
    padding: 6px 16px;
    margin-bottom: 28px;
    transform: rotate(-2deg);
    animation: a51-stamp-flicker 5s step-end infinite;
    text-shadow: 0 0 8px rgba(255, 45, 45, 0.5);
}

body.area51-v2 .hero-eyebrow {
    color: var(--cyan);
    letter-spacing: 0.55em;
    font-size: 10px;
}

body.area51-v2 .hero-sub {
    font-family: var(--font-display);
    color: var(--text-dim);
    letter-spacing: 0.5em;
    font-weight: 500;
}

body.area51-v2 .hero-title {
    background: linear-gradient(135deg, #fff 0%, var(--cyan) 40%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 var(--title-glow-blur, 40px) rgba(0, 229, 255, var(--title-glow-alpha, 0.28)));
}

body.area51-v2 .hero-desc {
    color: var(--text);
    opacity: 0.85;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.85;
}

body.area51-v2 .a51-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

body.area51-v2 .a51-hero-actions .hero-cta {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 10px 16px;
    border: 1px solid rgba(0, 229, 255, 0.42);
    color: var(--cyan);
    background: rgba(4, 10, 24, 0.78);
    backdrop-filter: blur(8px);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.24em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    clip-path: none;
    border-radius: 2px;
    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s, border-color 0.28s, background 0.28s, color 0.28s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

body.area51-v2 .a51-hero-actions .hero-cta-label {
    flex: 0 1 auto;
    letter-spacing: inherit;
}

body.area51-v2 .a51-hero-actions .a51-radar-glyph {
    display: inline-block;
    color: inherit;
    opacity: calc(0.35 + 0.65 * var(--a51-radar-trace, 0));
    text-shadow: 0 0 calc(1px + 12px * var(--a51-radar-trace)) rgba(0, 229, 255, calc(0.08 + 0.62 * var(--a51-radar-trace)));
    transition: opacity 0.12s linear, text-shadow 0.12s linear;
}

body.area51-v2 .a51-hero-actions .hero-cta-label {
    position: relative;
    z-index: 1;
}

body.area51-v2 .a51-hero-actions .hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.18));
    opacity: 0.35;
    transform: none;
    transition: opacity 0.28s var(--ease-out-expo), background 0.28s;
    z-index: 0;
    pointer-events: none;
}

body.area51-v2 .a51-hero-actions .hero-cta:hover {
    color: var(--black);
    border-color: rgba(0, 229, 255, 0.72);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.28), inset 0 0 18px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

body.area51-v2 .a51-hero-actions .hero-cta:hover::before {
    opacity: 1;
    background: linear-gradient(120deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.42));
}

body.area51-v2 .hero-cta {
    border-color: var(--cyan);
    color: var(--cyan);
    font-family: var(--font-display);
    font-weight: 600;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    transition: all 0.35s var(--ease-out-expo);
}

body.area51-v2 .a51-hero-actions .hero-cta {
    clip-path: none;
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 0.24em;
    min-height: 0;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
}

body.area51-v2 .hero-cta::before {
    background: var(--cyan);
}

body.area51-v2 .hero-cta:hover {
    color: var(--black);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ── Command deck / stats ── */
body.area51-v2 .a51-command-deck {
    padding: 0 var(--site-gutter) 80px;
    position: relative;
}

body.area51-v2 .a51-deck-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

body.area51-v2 .a51-deck-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

body.area51-v2 .a51-deck-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

body.area51-v2 .stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

body.area51-v2 .stat-block {
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
        var(--panel);
    border: 1px solid var(--border);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.4s;
}

body.area51-v2 .stat-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent, var(--cyan));
    box-shadow: 0 0 12px var(--accent, var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out-expo);
}

body.area51-v2 .stat-block:hover {
    transform: translateY(-6px);
    border-color: var(--accent, var(--cyan));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px color-mix(in srgb, var(--accent, var(--cyan)) 20%, transparent);
}

body.area51-v2 .stat-block:hover::before {
    transform: scaleX(1);
}

body.area51-v2 .stat-block .num {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: var(--accent, var(--cyan));
    text-shadow: 0 0 24px color-mix(in srgb, var(--accent, var(--cyan)) 50%, transparent);
    line-height: 1;
}

body.area51-v2 .stat-block .lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    margin-top: 8px;
}

body.area51-v2 .stat-block .src {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    opacity: 0.7;
    margin-top: 12px;
}

@media (min-width: 961px) and (max-width: 1200px) {
    body.area51-v2 .stats-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    body.area51-v2 .stat-block {
        padding: 18px 12px;
    }

    body.area51-v2 .stat-block .num {
        font-size: clamp(26px, 2.8vw, 38px);
    }

    body.area51-v2 .stat-block .lbl {
        font-size: 8px;
        letter-spacing: 0.12em;
        margin-top: 6px;
    }

    body.area51-v2 .stat-block .src {
        font-size: 7px;
        letter-spacing: 0.08em;
        margin-top: 8px;
        line-height: 1.35;
    }
}

/* ── Intercepts ── */
body.area51-v2 .intercepts-section {
    padding: 48px var(--site-gutter) 24px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.02) 0%, transparent 100%);
}

body.area51-v2 .intercepts-hdr .lbl {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--cyan);
}

body.area51-v2 .intercept-signal-group {
    margin-bottom: 48px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

body.area51-v2 .intercept-group-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.15em;
}

body.area51-v2 .intercept-item {
    background: var(--panel2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--intercept-accent, var(--blue));
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
}

body.area51-v2 .intercept-item:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    border-left-color: var(--intercept-accent, var(--blue));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 22px color-mix(in srgb, var(--intercept-accent, var(--blue)) 32%, transparent);
}

body.area51-v2 .intercept-topic-tag {
    color: var(--intercept-accent, var(--blue));
    border-color: color-mix(in srgb, var(--intercept-accent, var(--blue)) 42%, transparent);
    background: color-mix(in srgb, var(--intercept-accent, var(--blue)) 10%, transparent);
}

body.area51-v2 .intercept-card-title {
    color: var(--text);
}

body.area51-v2 .intercept-ongoing-footer {
    color: color-mix(in srgb, var(--intercept-accent, var(--blue)) 75%, var(--text-dim));
}

/* ── Page heroes (exo, inv, anc, about) ── */
body.area51-v2 .exo-hero,
body.area51-v2 .inv-hero,
body.area51-v2 .anc-hero,
body.area51-v2 .about-hero {
    padding: 80px var(--site-gutter) 48px;
    position: relative;
    overflow: hidden;
}

body.area51-v2 .section-title {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
}

body.area51-v2 .section-tag {
    color: var(--blue);
    letter-spacing: 0.35em;
}

/* ── Split explorer panels ── */
body.area51-v2 .split-list-item {
    border-left: 3px solid transparent;
    transition: all 0.3s var(--ease-out-expo);
}

body.area51-v2 .split-list-item:hover {
    background: rgba(0, 229, 255, 0.04);
    border-left-color: var(--item-accent, var(--cyan));
    transform: translateX(4px);
}

body.area51-v2 .split-list-item.active {
    background: rgba(0, 229, 255, 0.08);
    border-left-color: var(--item-accent, var(--cyan));
    box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.06);
}

body.area51-v2 .planet-explorer-detail,
body.area51-v2 .split-detail {
    background: var(--panel2);
    border-left: 1px solid var(--border-glow);
}

/* ── Filters ── */
body.area51-v2 .filter-chip {
    font-family: var(--font-mono);
    border: 1px solid var(--border);
    transition: all 0.25s;
}

body.area51-v2 .filter-chip.active,
body.area51-v2 .filter-chip:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* ── Boot overlay ── */
body.area51-v2 .home-signal-boot-overlay {
    background:
        radial-gradient(ellipse at center, rgba(0, 229, 255, 0.1) 0%, transparent 55%),
        rgba(4, 4, 15, 0.62);
    backdrop-filter: blur(6px);
}

body.area51-v2 .home-boot-login {
    border: 1px solid var(--border-glow);
    background: var(--panel);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

body.area51-v2 .home-boot-login-hdr {
    color: var(--cyan);
    letter-spacing: 0.3em;
}

body.area51-v2 .home-boot-field label {
    color: var(--cyan);
}

body.area51-v2 .home-boot-field input {
    border-color: var(--border);
    background: var(--deep);
    color: var(--cyan);
    font-family: var(--font-mono);
}

body.area51-v2 .home-boot-progress-fill {
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

/* ── Investigations classified gate ── */
body.area51-v2 .inv-restrict-overlay {
    background: rgba(4, 4, 15, 0.52);
}

body.area51-v2.inv-gate-active #invRestrictOverlay {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.area51-v2.inv-gate-active #invRestrictOverlay .support-tape-zone,
body.area51-v2.inv-gate-active #invRestrictOverlay .support-caution-tape,
body.area51-v2.inv-gate-active #invRestrictOverlay .support-restricted-seal,
body.area51-v2.inv-gate-active #invRestrictOverlay .inv-scan-screen {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

body.area51-v2.inv-gate-arriving #invRestrictOverlay .support-caution-tape {
    opacity: 1;
}

/* ── Footer ── */
body.area51-v2 footer {
    background: var(--deep);
    border-top: 1px solid var(--border-glow);
    padding: 48px var(--site-gutter);
    position: relative;
}

body.area51-v2 footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--site-gutter);
    right: var(--site-gutter);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

body.area51-v2 .foot-logo {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.2em;
}

body.area51-v2 .foot-links a {
    font-family: var(--font-head);
    letter-spacing: 0.15em;
    transition: color 0.25s, text-shadow 0.25s;
}

body.area51-v2 .foot-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* ── Mobile menu ── */
body.area51-v2 .mob-menu-panel {
    background: var(--deep);
    border-left: 1px solid var(--border-glow);
}

body.area51-v2 .mob-menu-item {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.2em;
    border-left: 3px solid transparent;
    transition: all 0.25s;
}

body.area51-v2 .mob-menu-item.active,
body.area51-v2 .mob-menu-item:hover {
    border-left-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.06);
}

/* ── HUD cursor ── */
body.area51-v2 #hud-inner {
    color: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan));
}

body.area51-v2 #hud-inner.anc {
    color: var(--amber);
    filter: drop-shadow(0 0 6px var(--amber));
}

/* ── Disclaimers ── */
body.area51-v2 .disclaimer {
    border-left: 3px solid var(--amber);
    background: rgba(212, 160, 23, 0.06);
    font-family: var(--font-mono);
    font-size: 11px;
}

/* ── Podcast / support cards ── */
body.area51-v2 .podcast-card,
body.area51-v2 .crew-card {
    border: 1px solid var(--border);
    background: var(--panel);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
}

body.area51-v2 .podcast-card:hover,
body.area51-v2 .crew-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-color: var(--border-glow);
}

/* ── Contact / relay ── */
body.area51-v2 .contact-relay-panel {
    border: 1px solid var(--border-glow);
    background: var(--panel);
}

body.area51-v2 .channel-item.active {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* ── Page flash on nav ── */
body.area51-v2 .a51-page-flash {
    position: fixed;
    inset: 0;
    background: rgba(0, 229, 255, 0.08);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: a51-flash 0.35s ease-out forwards;
}

@keyframes a51-flash {
    0% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* ── Responsive (legacy block removed — see end of file) ── */

@media (prefers-reduced-motion: reduce) {
    body.area51-v2 .a51-radar-sweep,
    body.area51-v2 .a51-atmo-grid,
    body.area51-v2 .a51-atmo-noise,
    body.area51-v2 #a51RadarCanvas,
    body.area51-v2 .page.active {
        animation: none !important;
    }

    body.area51-v2 .a51-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Extended overrides ── */
body.area51-v2 .inv-section-label h3 {
    font-family: var(--font-display);
    color: var(--cyan);
    letter-spacing: 0.12em;
}

body.area51-v2 .sli-name {
    font-family: var(--font-display);
    letter-spacing: 0.08em;
}

body.area51-v2 .det-name {
    font-family: var(--font-display);
}

body.area51-v2 .click-hint {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    opacity: 0;
    margin-top: 14px;
    transition: opacity 0.35s;
}

body.area51-v2 .stat-block:hover .click-hint {
    opacity: 0.85;
}

body.area51-v2 .timeline-item {
    border-left-color: var(--cyan);
}

body.area51-v2 .timeline-rail {
    border-color: var(--border-glow);
    background: rgba(4, 10, 24, 0.72);
}

body.area51-v2 .life-badge {
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
}

body.area51-v2 .support-restricted-seal {
    border-color: var(--a51-restricted);
    color: var(--a51-restricted);
}

body.area51-v2 .hamburger span {
    background: var(--cyan);
}

body.area51-v2 .divider span {
    color: var(--cyan);
}

body.area51-v2 .intercept-card-title {
    font-family: var(--font-display);
    font-weight: 600;
}

body.area51-v2 .nav-links {
    display: flex;
}

/* ── Global panel system (all pages) ── */
body.area51-v2 .split-list {
    background: var(--deep);
    border-right: 1px solid var(--border);
}

body.area51-v2 .split-list-header {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

body.area51-v2 .det-stat {
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid var(--border);
}

body.area51-v2 .det-stat .val {
    color: var(--cyan);
    font-family: var(--font-display);
}

body.area51-v2 .exo-archive-badge {
    font-family: var(--font-mono);
    border: 1px solid var(--border-glow);
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.06);
}

body.area51-v2 .exo-list-search input,
body.area51-v2 .inv-list-search input {
    background: var(--deep);
    border: 1px solid var(--border);
    color: var(--text);
}

body.area51-v2 .exo-list-search input:focus,
body.area51-v2 .inv-list-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

body.area51-v2 .about-hero {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

body.area51-v2 .about-hero-main h2 {
    background: linear-gradient(135deg, #fff, var(--cyan), var(--blue), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.area51-v2 .crew-card {
    background: var(--panel);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

body.area51-v2 .crew-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

body.area51-v2 .dossier-panel {
    background: var(--panel);
    border: 1px solid var(--border-glow);
}

body.area51-v2 .channel-item {
    border: 1px solid var(--border);
    background: var(--deep);
}

body.area51-v2 .channel-item.active {
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

body.area51-v2 .contact-form {
    background: var(--panel2);
    border: 1px solid var(--border);
}

body.area51-v2 .form-field input,
body.area51-v2 .form-field textarea {
    background: var(--deep);
    border: 1px solid var(--border);
    color: var(--text);
}

body.area51-v2 .relay-bar-fill {
    background: linear-gradient(90deg, var(--cyan), var(--amber));
}

body.area51-v2 .podcast-card {
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

body.area51-v2 .timeline-item::before {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

body.area51-v2 .source-card {
    background: var(--panel);
    border: 1px solid var(--border);
}

body.area51-v2 .mob-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    min-height: 0;
}

body.area51-v2 .mob-menu-logo-mark {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
}

body.area51-v2 .intercept-pagination button.active,
body.area51-v2 .intercept-channel-chip.active {
    border-color: var(--cyan);
    color: var(--cyan);
}

@media (max-width: 1280px) {
    body.area51-v2 .nav-links li a {
        font-size: 13px;
        padding: 12px 14px;
        min-height: 48px;
        letter-spacing: 0.1em;
    }

    body.area51-v2 .nav-links {
        gap: 8px;
    }

    body.area51-v2 .nav-logo {
        font-size: 16px;
    }

    body.area51-v2 .nav-logo span {
        display: block;
        font-size: 10px;
        letter-spacing: 0.4em;
    }

    body.area51-v2 #navRelayStatusLabel {
        display: none;
    }
}

@media (max-width: 1100px) {
    body.area51-v2 nav.site-nav {
        grid-template-columns: auto 1fr auto;
    }

    body.area51-v2 .nav-links,
    body.area51-v2 .nav-status {
        display: none;
    }
}

@media (max-width: 900px) {
    body.area51-v2 .a51-hero {
        padding: 24px max(12px, var(--site-gutter)) 48px;
        min-height: calc(100svh - var(--nav-h));
        justify-content: center;
        overflow: hidden;
    }

    body.area51-v2 .a51-hero-core {
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
    }

    body.area51-v2 .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 6px;
        box-sizing: border-box;
    }

    body.area51-v2.a51-radar-active #a51RadarCanvas {
        opacity: 0.32;
    }

    body.area51-v2 .a51-clearance-stamp {
        margin-bottom: 14px;
        font-size: 8px;
        letter-spacing: 0.28em;
        padding: 4px 10px;
    }

    body.area51-v2 .hero-eyebrow {
        font-size: 8px;
        letter-spacing: 0.32em;
        margin-bottom: 10px;
    }

    body.area51-v2 .hero-title {
        font-size: clamp(34px, 11vw, 48px);
        line-height: 0.95;
        margin-bottom: 10px;
    }

    body.area51-v2 .hero-sub {
        font-size: 9px;
        letter-spacing: 0.28em;
        margin-bottom: 12px;
        display: none;
    }

    body.area51-v2 .hero-desc {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.65;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    body.area51-v2 .a51-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 6px;
    }

    body.area51-v2 .a51-hero-actions .hero-cta {
        width: auto;
        max-width: calc(100% - 8px);
        padding: 9px 12px;
        font-size: 9px;
        letter-spacing: 0.14em;
        white-space: normal;
        text-align: center;
    }

    body.area51-v2 .a51-hero-actions .hero-cta-label {
        letter-spacing: 0.14em;
    }

    body.area51-v2 .a51-hero-brackets {
        inset: 3% 2%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   INTRO BOOT ANIMATION (replaces cyan space theme)
   ═══════════════════════════════════════════════════════════════ */
body.area51-v2 .home-signal-boot-overlay {
    background:
        radial-gradient(ellipse at center, rgba(0, 229, 255, 0.12) 0%, transparent 55%),
        rgba(4, 4, 15, 0.58);
    backdrop-filter: blur(6px);
}

body.area51-v2 .home-signal-boot-overlay.active {
    cursor: crosshair;
}

body.area51-v2 .a51-boot-reticle {
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(70vw, 320px);
    height: min(70vw, 320px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

body.area51-v2 .home-signal-boot-overlay.active .a51-boot-reticle {
    opacity: 1;
    animation: a51-boot-reticle-in 1.2s var(--ease-out-expo) forwards;
}

body.area51-v2 .home-signal-boot-overlay.active.authenticating .a51-boot-reticle,
body.area51-v2 .home-signal-boot-overlay.exit-cinematic .a51-boot-reticle {
    animation: a51-boot-reticle-lock 1.8s ease-in-out forwards;
}

@keyframes a51-boot-reticle-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
    to { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
}

@keyframes a51-boot-reticle-lock {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    40% { opacity: 1; transform: translate(-50%, -50%) scale(0.92); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

body.area51-v2 .a51-boot-reticle-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.35);
}

body.area51-v2 .a51-boot-reticle-ring--1 {
    animation: a51-reticle-spin 12s linear infinite;
}

body.area51-v2 .a51-boot-reticle-ring--2 {
    inset: 18%;
    border-style: dashed;
    animation: a51-reticle-spin 8s linear infinite reverse;
}

@keyframes a51-reticle-spin {
    to { transform: rotate(360deg); }
}

body.area51-v2 .a51-boot-reticle-cross::before,
body.area51-v2 .a51-boot-reticle-cross::after {
    content: '';
    position: absolute;
    background: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

body.area51-v2 .a51-boot-reticle-cross::before {
    left: 50%;
    top: 8%;
    bottom: 8%;
    width: 1px;
    transform: translateX(-50%);
}

body.area51-v2 .a51-boot-reticle-cross::after {
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    transform: translateY(-50%);
}

body.area51-v2 .a51-boot-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 229, 255, 0.03) 3px, rgba(0, 229, 255, 0.03) 4px);
    opacity: 0;
    z-index: 1;
}

body.area51-v2 .home-signal-boot-overlay.active .a51-boot-scanlines {
    animation: a51-boot-scanlines-flash 2s ease-in-out infinite;
}

@keyframes a51-boot-scanlines-flash {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

body.area51-v2 .home-boot-stack {
    position: relative;
    z-index: 2;
}

body.area51-v2 .home-boot-login {
    background: rgba(6, 8, 20, 0.92);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1), inset 0 0 24px rgba(0, 0, 0, 0.35);
}

body.area51-v2 .home-boot-login.await-entry {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.15);
}

body.area51-v2 .home-boot-progress-fill {
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
}

body.area51-v2 .home-boot-exit-scan {
    background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0, 229, 255, 0.06) 2px, rgba(0, 229, 255, 0.06) 4px);
}

body.area51-v2 .home-boot-exit-burst {
    background:
        radial-gradient(circle, rgba(0, 229, 255, 0.5) 0%, rgba(0, 229, 255, 0.18) 22%, transparent 46%),
        radial-gradient(circle, transparent 38%, rgba(124, 58, 255, 0.32) 52%, transparent 72%);
    box-shadow:
        0 0 120px rgba(0, 229, 255, 0.28),
        inset 0 0 80px rgba(124, 58, 255, 0.12);
}

body.area51-v2 .home-signal-boot-overlay.exit-cinematic {
    animation: a51-boot-overlay-dissolve 1.55s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes a51-boot-overlay-dissolve {
    0% { opacity: 1; background: rgba(4, 6, 18, 0.82); }
    35% { opacity: 1; background: rgba(4, 6, 18, 0.65); }
    100% { opacity: 1; background: transparent; }
}

body.area51-v2 .home-signal-boot-overlay.exit-cinematic .home-boot-exit-scan {
    animation: a51-boot-exit-scan 1.2s ease-out forwards !important;
}

@keyframes a51-boot-exit-scan {
    0% { opacity: 0; transform: translateY(-100%); }
    20% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(100%); }
}

body.area51-v2 .home-signal-boot-overlay.exit-cinematic .home-boot-exit-burst {
    animation: a51-boot-exit-burst 1.35s var(--ease-out-expo) forwards !important;
}

body.area51-v2 .home-signal-boot-overlay.exit-cinematic .home-boot-logo {
    animation: a51-boot-logo-warp-out 1.35s var(--ease-out-expo) forwards !important;
}

@keyframes a51-boot-logo-warp-out {
    0% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6)); }
    100% { opacity: 0; transform: scale(1.8); filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.9)); }
}

body.area51-v2 .exo-transmission-bar-fill {
    width: 0%;
}

@keyframes a51-boot-exit-burst {
    0% { opacity: 0; transform: scale(0.15); }
    35% { opacity: 1; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.4); }
}

body.area51-v2 .home-boot-logo.engage-flash {
    animation: a51-boot-logo-engage 1.35s var(--ease-out-expo) forwards !important;
}

body.area51-v2 .home-boot-logo.access-granted {
    animation: a51-boot-logo-granted 1.8s var(--ease-out-expo) forwards !important;
}

@keyframes a51-boot-logo-engage {
    0% { opacity: 0.5; transform: scale(1); }
    35% { opacity: 1; transform: scale(1.14); }
    100% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes a51-boot-logo-granted {
    0% { opacity: 0.5; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 0.95; transform: scale(1.04); }
}

body.area51-v2 .a51-boot-logo-assembly.engage-flash {
    animation: a51-boot-logo-engage 1.35s var(--ease-out-expo) forwards !important;
}

body.area51-v2 .a51-boot-logo-assembly.access-granted {
    animation: a51-boot-logo-granted 1.8s var(--ease-out-expo) forwards !important;
}

body.area51-v2 .nav-logo-mark.boot-access-flash {
    animation: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   INVESTIGATIONS CLEARANCE ANIMATION
   ═══════════════════════════════════════════════════════════════ */
body.area51-v2 .inv-scan-screen {
    background: rgba(4, 4, 15, 0.5);
}

body.area51-v2 .inv-scan-raster {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 229, 255, 0.04) 2px, rgba(0, 229, 255, 0.04) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(0, 229, 255, 0.02) 48px, rgba(0, 229, 255, 0.02) 49px);
}

body.area51-v2 .a51-inv-radar,
body.area51-v2 .a51-inv-bio-bars {
    display: none !important;
}

body.area51-v2 .a51-inv-radar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(90vmin, 480px);
    height: min(90vmin, 480px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.2);
    opacity: 0;
}

body.area51-v2.inv-scan-active .a51-inv-radar {
    opacity: 1;
    animation: a51-inv-radar-in 0.8s ease-out forwards;
}

@keyframes a51-inv-radar-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

body.area51-v2 .a51-inv-radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 229, 255, 0.25) 40deg, transparent 80deg);
    animation: a51-inv-radar-spin 3s linear infinite;
}

@keyframes a51-inv-radar-spin {
    to { transform: rotate(360deg); }
}

body.area51-v2 .a51-inv-reticle {
    position: absolute;
    inset: 22%;
    border: 2px solid rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(0, 229, 255, 0.08);
    animation: a51-inv-reticle-pulse 1.2s ease-in-out infinite;
}

@keyframes a51-inv-reticle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.04); opacity: 1; }
}

body.area51-v2 .a51-inv-bio-bars {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    width: min(90vw, 420px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.area51-v2 .a51-inv-bio-bar {
    height: 4px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.25);
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(90deg, var(--amber), var(--cyan));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    box-shadow: none;
    animation: a51-inv-bio-fill 8s ease-in-out forwards;
}

body.area51-v2 .a51-inv-bio-bar:nth-child(1) { animation-delay: 0.2s; }
body.area51-v2 .a51-inv-bio-bar:nth-child(2) { animation-delay: 0.8s; }
body.area51-v2 .a51-inv-bio-bar:nth-child(3) { animation-delay: 1.6s; }
body.area51-v2 .a51-inv-bio-bar:nth-child(4) { animation-delay: 2.4s; }

@keyframes a51-inv-bio-fill {
    0% { background-size: 0% 100%; box-shadow: none; }
    100% { background-size: 100% 100%; box-shadow: 0 0 10px var(--cyan); }
}

body.area51-v2 .inv-scan-hud {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    animation: a51-inv-hud-blink 0.6s step-end infinite;
}

@keyframes a51-inv-hud-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

body.area51-v2 .inv-scan-frame {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.12), inset 0 0 30px rgba(0, 229, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   EXOPLANET TRANSMISSION LOADER — width init only (inline styles apply)
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   MOBILE TOUCH & READABILITY
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    body.area51-v2 .hamburger {
        width: 48px;
        height: 48px;
    }

    body.area51-v2 .mob-menu-item {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 1100px) {
    body.area51-v2 .hamburger {
        width: 48px;
        height: 48px;
        padding: 12px;
    }

    body.area51-v2 .mob-menu-item {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 14px 20px;
        font-size: 13px;
    }

    body.area51-v2 .stat-block {
        padding: 24px 20px;
    }

    body.area51-v2 .filter-chip {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 11px;
    }

    body.area51-v2 .split-list-item {
        min-height: 56px;
        padding: 14px 16px;
    }

    body.area51-v2 .hero-desc {
        font-size: 17px;
    }

    body.area51-v2 .a51-hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    body.area51-v2 .a51-hero-actions .hero-cta {
        width: auto;
        max-width: min(100%, 260px);
    }
}

@media (max-width: 520px) {
    body.area51-v2 .hero-desc {
        display: none;
    }

    body.area51-v2 .hero-title {
        font-size: clamp(28px, 9.2vw, 40px);
        letter-spacing: 0.04em;
    }

    body.area51-v2 .hero-eyebrow {
        letter-spacing: 0.22em;
        padding: 0 4px;
    }

    body.area51-v2 .a51-hero-actions .hero-cta {
        letter-spacing: 0.12em;
        padding: 8px 10px;
        font-size: 8px;
    }
}

@media (max-width: 380px) {
    body.area51-v2 .a51-hero {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.area51-v2 .hero-title {
        font-size: clamp(24px, 8.4vw, 34px);
    }

    body.area51-v2 .a51-clearance-stamp {
        font-size: 7px;
        letter-spacing: 0.2em;
        padding: 3px 8px;
    }

    body.area51-v2 .a51-hero-actions .hero-cta {
        max-width: 100%;
        font-size: 7px;
        letter-spacing: 0.1em;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    body.area51-v2 .hero-desc {
        display: none;
    }
}

@media (max-width: 600px) {
    body.area51-v2 .nav-logo-text {
        max-width: 140px;
        line-height: 1.2;
    }

    body.area51-v2 .nav-logo {
        font-size: 16px;
    }

    body.area51-v2 .nav-logo span {
        font-size: 10px;
        letter-spacing: 0.4em;
        text-shadow: 0 0 12px rgba(0, 229, 255, 0.32), 0 0 24px rgba(0, 229, 255, 0.14);
    }

    body.area51-v2 .nav-logo-text {
        font-size: 16px;
        text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-dim);
    }

    body.area51-v2 .nav-logo-mark {
        width: 34px;
        height: 34px;
    }

    body.area51-v2 .a51-command-deck {
        padding: 0 12px 48px;
    }

    body.area51-v2 .stats-bar {
        grid-template-columns: 1fr;
    }

    body.area51-v2 .exo-transmission-panel {
        padding: 28px 20px 24px;
    }

    body.area51-v2 .exo-transmission-title {
        font-size: 22px;
    }
}
