/* PPEBBL.com — Aurora HUD styles */
/* Design compliance tokens: IntersectionObserver` `threshold: 0.2` Space | Void Indigo | `#0d0b1e` | Primary background */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --void-indigo: #0d0b1e;
    --boreal-mint: #39e5a0;
    --nebula-mauve: #9b59d6;
    --crystal-teal: #56d4e8;
    --frost-glass: #e8f0f8;
    --pebble-amber: #f4c77d;
    --obsidian-teal: #0a2a2a;
    --deep-violet: #1a0533;
    --hud-border: rgba(57, 229, 160, 0.25);
    --hud-border-bright: rgba(57, 229, 160, 0.55);
    --hud-bg: rgba(13, 11, 30, 0.55);
    --hud-bg-deep: rgba(13, 11, 30, 0.72);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --hud-cyan-line: rgba(130, 220, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--frost-glass);
    background: var(--void-indigo);
    overflow-x: hidden;
    cursor: default;
}

h1, h2, h3, h4 {
    font-family: "Jost", "Futura", "Space Grotesk", sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--frost-glass);
}

p {
    margin: 0;
}

a {
    color: var(--crystal-teal);
    text-decoration: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--boreal-mint), var(--crystal-teal), var(--nebula-mauve));
    z-index: 200;
    box-shadow: 0 0 12px rgba(57, 229, 160, 0.6);
    transition: width 80ms linear;
}

/* ---------- Aurora background ---------- */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(170deg, var(--deep-violet) 0%, #0d2847 35%, #0a3d2e 70%, var(--void-indigo) 100%);
    overflow: hidden;
}

#auroraCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: 0.75;
}

.aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: aurora-drift 36s ease-in-out infinite alternate;
    will-change: transform;
}

.aurora-layer-1 {
    width: 70vw;
    height: 70vh;
    top: -20%;
    left: -15%;
    background: radial-gradient(ellipse, rgba(57, 229, 160, 0.28), transparent 70%);
    animation-duration: 42s;
}

.aurora-layer-2 {
    width: 60vw;
    height: 60vh;
    bottom: -18%;
    right: -15%;
    background: radial-gradient(ellipse, rgba(155, 89, 214, 0.22), transparent 70%);
    animation-delay: -18s;
    animation-duration: 38s;
}

.aurora-layer-3 {
    width: 50vw;
    height: 50vh;
    top: 40%;
    left: 35%;
    background: radial-gradient(ellipse, rgba(86, 212, 232, 0.18), transparent 70%);
    animation-delay: -8s;
    animation-duration: 46s;
}

@keyframes aurora-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(6vw, -4vh, 0) scale(1.08);
    }
    100% {
        transform: translate3d(-4vw, 6vh, 0) scale(0.95);
    }
}

/* ---------- Sparkle layer ---------- */
.sparkle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 150;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
    box-shadow: 0 0 10px currentColor;
}

.sparkle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    border-radius: 1px;
}

/* ---------- Top nav ---------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(13, 11, 30, 0.55), rgba(13, 11, 30, 0));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 300ms ease, border-color 300ms ease;
    border-bottom: 1px solid transparent;
}

.top-nav.scrolled {
    background: rgba(13, 11, 30, 0.75);
    border-bottom-color: var(--hud-cyan-line);
}

.nav-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--frost-glass);
    font-family: "Jost", sans-serif;
    font-weight: 500;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
}

.nav-mark svg {
    filter: drop-shadow(0 0 6px rgba(86, 212, 232, 0.5));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 240, 248, 0.65);
    border-radius: 10px;
    position: relative;
    transition: color 300ms ease, background 300ms ease;
}

.nav-dot {
    width: 6px;
    height: 6px;
    transform: rotate(45deg) translateX(-10px);
    background: var(--boreal-mint);
    opacity: 0;
    transition: transform 200ms var(--spring), opacity 200ms ease;
    box-shadow: 0 0 8px var(--boreal-mint);
}

.nav-link:hover {
    color: var(--frost-glass);
    background: rgba(57, 229, 160, 0.06);
}

.nav-link:hover .nav-dot {
    opacity: 1;
    transform: rotate(45deg) translateX(0);
}

.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(232, 240, 248, 0.7);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--boreal-mint);
    box-shadow: 0 0 8px var(--boreal-mint), 0 0 18px rgba(57, 229, 160, 0.6);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.8); }
}

/* ---------- General section ---------- */
main {
    display: block;
}

section {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.section-header {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-index {
    display: inline-block;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--crystal-teal);
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(86, 212, 232, 0.4);
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(86, 212, 232, 0.06);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.03em;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--frost-glass), var(--crystal-teal) 60%, var(--nebula-mauve));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(232, 240, 248, 0.72);
}

/* ---------- HUD panel base ---------- */
.hud-panel {
    background: var(--hud-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hud-border);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 600ms var(--spring), transform 600ms var(--spring), border-color 400ms ease;
}

.hud-panel.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hud-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(86, 212, 232, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hud-panel::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 229, 160, 0.7), transparent);
    transition: left 500ms ease, right 500ms ease, opacity 400ms ease;
}

.hud-panel:hover {
    border-color: var(--hud-border-bright);
}

.hud-panel:hover::after {
    left: 8%;
    right: 8%;
    opacity: 1;
}

.panel-corner-ornaments span {
    position: absolute;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: transparent;
    border: 1px solid rgba(86, 212, 232, 0.5);
    animation: ornament-pulse 3.4s ease-in-out infinite;
}

.panel-corner-ornaments span:nth-child(1) { top: 10px; left: 10px; animation-delay: 0s; }
.panel-corner-ornaments span:nth-child(2) { top: 10px; right: 10px; animation-delay: 0.6s; }
.panel-corner-ornaments span:nth-child(3) { bottom: 10px; left: 10px; animation-delay: 1.2s; }
.panel-corner-ornaments span:nth-child(4) { bottom: 10px; right: 10px; animation-delay: 1.8s; }

@keyframes ornament-pulse {
    0%, 100% { opacity: 0.25; box-shadow: 0 0 0 rgba(86, 212, 232, 0); }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(86, 212, 232, 0.6); }
}

/* ---------- Command Deck / Hero ---------- */
.deck {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 7rem clamp(1.25rem, 5vw, 4rem) 4rem;
    position: relative;
}

.deck-hud-corner {
    position: absolute;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--hud-cyan-line);
    border-radius: 10px;
    background: rgba(13, 11, 30, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 120px;
    opacity: 0;
    animation: fade-up 1.2s ease 1.6s forwards;
}

.deck-hud-tl { top: 6rem; left: clamp(1rem, 4vw, 3rem); }
.deck-hud-tr { top: 6rem; right: clamp(1rem, 4vw, 3rem); align-items: flex-end; }
.deck-hud-bl { bottom: 2rem; left: clamp(1rem, 4vw, 3rem); }
.deck-hud-br { bottom: 2rem; right: clamp(1rem, 4vw, 3rem); align-items: flex-end; }

.corner-label {
    color: rgba(86, 212, 232, 0.8);
    font-weight: 700;
    font-size: 0.62rem;
}

.corner-value {
    color: var(--frost-glass);
    font-family: "Jost", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.bar-chain {
    display: inline-flex;
    gap: 3px;
    align-items: flex-end;
}

.bar-chain i {
    display: block;
    width: 4px;
    background: var(--boreal-mint);
    border-radius: 1px;
    box-shadow: 0 0 6px var(--boreal-mint);
}

.bar-chain i:nth-child(1) { height: 5px; }
.bar-chain i:nth-child(2) { height: 8px; }
.bar-chain i:nth-child(3) { height: 12px; opacity: 0.9; }
.bar-chain i:nth-child(4) { height: 16px; opacity: 0.7; }
.bar-chain i:nth-child(5) { height: 20px; opacity: 0.5; }

.deck-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    z-index: 2;
}

.logo-wrap {
    width: 100%;
    max-width: 780px;
    filter: drop-shadow(0 0 24px rgba(57, 229, 160, 0.35)) drop-shadow(0 0 60px rgba(86, 212, 232, 0.2));
}

.logotype {
    width: 100%;
    height: auto;
    display: block;
}

.logotype .letter {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: letter-assemble 1.4s var(--spring) forwards;
}

.logotype .letter-1 { animation-delay: 0.1s; }
.logotype .letter-2 { animation-delay: 0.25s; }
.logotype .letter-3 { animation-delay: 0.4s; }
.logotype .letter-4 { animation-delay: 0.55s; }
.logotype .letter-5 { animation-delay: 0.7s; }
.logotype .letter-6 { animation-delay: 0.85s; }

@keyframes letter-assemble {
    0% {
        opacity: 0;
        transform: translate(0, -40px) rotate(-20deg) scale(0.6);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
    }
}

.logotype .spark {
    animation: spark-twinkle 3s ease-in-out infinite;
}

.logotype .letter-2 .spark { animation-delay: 0.5s; }
.logotype .letter-3 .spark { animation-delay: 1s; }
.logotype .letter-4 .spark { animation-delay: 1.5s; }
.logotype .letter-5 .spark { animation-delay: 2s; }
.logotype .letter-6 .spark { animation-delay: 2.5s; }

@keyframes spark-twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

.tagline {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(232, 240, 248, 0.7);
    opacity: 0;
    animation: fade-up 1s ease 2s forwards;
    max-width: 620px;
}

.type-text {
    display: inline-block;
    position: relative;
}

.type-text.typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--boreal-mint);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: caret 0.8s steps(1) infinite;
}

@keyframes caret {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.deck-subline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--hud-cyan-line);
    border-radius: 999px;
    background: rgba(13, 11, 30, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    animation: fade-up 1s ease 2.4s forwards;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.meta-label {
    color: rgba(86, 212, 232, 0.85);
}

.meta-value {
    color: var(--frost-glass);
    font-weight: 400;
}

.divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pebble-amber);
    box-shadow: 0 0 6px var(--pebble-amber);
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.chevron-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: chevron-pulse 2.2s ease-in-out infinite;
    opacity: 0.85;
}

.chevron-down svg {
    filter: drop-shadow(0 0 8px rgba(57, 229, 160, 0.5));
}

@keyframes chevron-pulse {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Crystal stratum divider ---------- */
.crystal-stratum {
    width: 100%;
    height: 40px;
    overflow: hidden;
    opacity: 0.85;
}

.crystal-stratum svg {
    display: block;
    width: 100%;
}

.crystal-stratum-footer {
    margin-top: 2rem;
}

/* ---------- Sensor Array ---------- */
.sensor-orbit {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    min-height: 420px;
}

.sensor-panel {
    grid-column: span 4;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.panel-a { grid-column: 1 / span 5; margin-top: 0; }
.panel-b { grid-column: 8 / span 5; margin-top: 3.5rem; }
.panel-c { grid-column: 4 / span 6; margin-top: 1rem; }

@media (max-width: 900px) {
    .sensor-orbit { display: flex; flex-direction: column; gap: 1.5rem; }
    .panel-a, .panel-b, .panel-c { grid-column: auto; margin-top: 0; }
}

.panel-readout {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(232, 240, 248, 0.72);
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--hud-cyan-line);
    border-radius: 999px;
    align-self: flex-start;
    background: rgba(13, 11, 30, 0.35);
}

.readout-k { color: rgba(86, 212, 232, 0.85); }
.readout-v { color: var(--frost-glass); }

.pebble-icon {
    margin: 0.5rem 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 300ms var(--spring);
}

.pebble-icon svg {
    filter: drop-shadow(0 0 10px rgba(57, 229, 160, 0.3));
    transition: filter 300ms ease;
}

.sensor-panel:hover .pebble-icon {
    transform: scale(1.08);
}

.sensor-panel:hover .pebble-icon svg {
    filter: drop-shadow(0 0 18px rgba(57, 229, 160, 0.55));
}

.icon-spark {
    animation: spark-twinkle 3s ease-in-out infinite;
}

.icon-spark-2 {
    animation-delay: 1.2s;
}

.sensor-panel:hover .icon-spark {
    opacity: 1;
}

.sensor-panel h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    letter-spacing: 0.02em;
    color: var(--frost-glass);
    margin-top: 0.25rem;
}

.sensor-panel p {
    color: rgba(232, 240, 248, 0.76);
    line-height: 1.65;
    font-size: 0.96rem;
}

.panel-foot {
    margin-top: auto;
    padding-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(86, 212, 232, 0.85);
    border-top: 1px dashed rgba(86, 212, 232, 0.25);
}

.foot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pebble-amber);
    box-shadow: 0 0 6px var(--pebble-amber);
}

/* ---------- Star Map (horizontal scroll) ---------- */
.starmap {
    background: linear-gradient(180deg, transparent, rgba(57, 229, 160, 0.04), transparent);
    padding-left: 0;
    padding-right: 0;
}

.starmap .section-header {
    padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.starmap-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem clamp(1.25rem, 5vw, 4rem) 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 229, 160, 0.4) transparent;
}

.starmap-scroll::-webkit-scrollbar {
    height: 6px;
}

.starmap-scroll::-webkit-scrollbar-track {
    background: rgba(13, 11, 30, 0.3);
}

.starmap-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--boreal-mint), var(--crystal-teal));
    border-radius: 3px;
}

.star-slide {
    flex: 0 0 min(86vw, 540px);
    min-height: 360px;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background: rgba(13, 11, 30, 0.6);
    border: 1px solid var(--hud-border);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.star-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(155, 89, 214, 0.12), transparent 60%);
    pointer-events: none;
}

.slide-index {
    font-family: "Jost", sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    color: rgba(155, 89, 214, 0.9);
    line-height: 1;
}

.slide-icon svg {
    filter: drop-shadow(0 0 10px rgba(86, 212, 232, 0.4));
}

.slide-quote {
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    color: var(--frost-glass);
    letter-spacing: 0.01em;
}

.slide-body {
    color: rgba(232, 240, 248, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
}

.starmap-progress {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    margin-top: 0.5rem;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(86, 212, 232, 0.8);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sp-track {
    flex: 1;
    height: 2px;
    background: rgba(86, 212, 232, 0.12);
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.sp-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--boreal-mint), var(--crystal-teal), var(--nebula-mauve));
    box-shadow: 0 0 8px var(--boreal-mint);
    transition: width 150ms ease;
}

/* ---------- Crystal Core ---------- */
.core {
    padding-top: clamp(5rem, 9vw, 8rem);
}

.core-panel {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.core-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(86, 212, 232, 0.18);
    margin-bottom: 2rem;
}

.core-tab {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: rgba(232, 240, 248, 0.6);
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: color 300ms ease;
}

.tab-facet {
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(86, 212, 232, 0.4), rgba(155, 89, 214, 0.4));
    border: 1px solid rgba(86, 212, 232, 0.5);
    transition: background 300ms ease, box-shadow 300ms ease;
}

.core-tab:hover {
    color: var(--frost-glass);
}

.core-tab.active {
    color: var(--frost-glass);
}

.core-tab.active .tab-facet {
    background: linear-gradient(135deg, var(--boreal-mint), var(--crystal-teal));
    box-shadow: 0 0 10px var(--boreal-mint);
}

.tab-underline {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--boreal-mint), var(--crystal-teal), var(--nebula-mauve));
    box-shadow: 0 0 10px rgba(57, 229, 160, 0.6);
    transition: left 400ms var(--spring), width 400ms var(--spring);
    border-radius: 1px;
    left: 0;
    width: 0;
}

.core-pane {
    display: none;
    animation: pane-in 500ms var(--spring);
}

.core-pane.active {
    display: block;
}

@keyframes pane-in {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pane-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 800px) {
    .pane-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pane-eyebrow {
    display: inline-block;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--crystal-teal);
    margin-bottom: 0.7rem;
}

.pane-lead h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    line-height: 1.25;
    margin-bottom: 0.7rem;
    color: var(--frost-glass);
}

.pane-lead p {
    color: rgba(232, 240, 248, 0.76);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.pane-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.pane-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(232, 240, 248, 0.82);
    font-size: 0.95rem;
}

.bullet-diamond {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--boreal-mint);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(57, 229, 160, 0.6);
}

.pane-readouts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.readout-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.3rem 0.8rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--hud-cyan-line);
    border-radius: 12px;
    background: rgba(13, 11, 30, 0.45);
    transition: border-color 300ms ease, transform 300ms var(--spring);
}

.readout-card:hover {
    border-color: var(--hud-border-bright);
    transform: translateX(3px);
}

.rc-k {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(86, 212, 232, 0.85);
}

.rc-v {
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--frost-glass);
    text-align: right;
    font-weight: 500;
}

.rc-bar {
    grid-column: 1 / -1;
    height: 3px;
    background: rgba(86, 212, 232, 0.14);
    border-radius: 1.5px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.rc-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--boreal-mint), var(--crystal-teal));
    box-shadow: 0 0 6px rgba(57, 229, 160, 0.4);
    border-radius: 1.5px;
    transition: width 500ms ease;
}

/* ---------- Beacon / Footer ---------- */
.beacon {
    padding: 3rem clamp(1.25rem, 5vw, 4rem) 4rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 42, 42, 0.85) 40%, var(--obsidian-teal) 100%);
    border-top: 1px solid var(--hud-cyan-line);
    position: relative;
}

.beacon-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 800px) {
    .beacon-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.beacon-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    letter-spacing: 0.2em;
    font-size: 1.05rem;
    color: var(--frost-glass);
}

.beacon-mark svg {
    filter: drop-shadow(0 0 8px rgba(86, 212, 232, 0.5));
}

.beacon-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
}

.beacon-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--crystal-teal);
    margin-right: 0.6rem;
}

.beacon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(232, 240, 248, 0.75);
    padding: 0.3rem 0;
    transition: color 300ms ease;
}

.beacon-diamond {
    width: 6px;
    height: 6px;
    transform: rotate(45deg) translateX(-8px);
    background: var(--boreal-mint);
    opacity: 0;
    transition: transform 220ms var(--spring), opacity 220ms ease;
    box-shadow: 0 0 6px var(--boreal-mint);
}

.beacon-link:hover {
    color: var(--frost-glass);
}

.beacon-link:hover .beacon-diamond {
    opacity: 1;
    transform: rotate(45deg) translateX(0);
}

.beacon-signal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
}

@media (max-width: 800px) {
    .beacon-signal { align-items: flex-start; text-align: left; }
}

.signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pebble-amber);
    box-shadow: 0 0 10px var(--pebble-amber), 0 0 22px rgba(244, 199, 125, 0.5);
    animation: pulse-dot 2.2s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 0.2rem;
}

.signal-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--frost-glass);
}

.signal-meta {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(232, 240, 248, 0.55);
}

.beacon-fine {
    max-width: 1200px;
    margin: 2.2rem auto 0;
    font-family: "Jost", sans-serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(232, 240, 248, 0.55);
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Utility: reveal for panels ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 600ms var(--spring), transform 600ms var(--spring);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 700px) {
    .deck-hud-corner { display: none; }
    .nav-links { display: none; }
    .top-nav { padding: 0.75rem 1rem; }
    .section-header { margin-bottom: 2rem; }
}
