/* ============================================================
   AlienDesk — Missão Controle
   Landing 3D scroll-storytelling
   ============================================================ */

:root {
    --bg: #040816;
    --bg-2: #091426;
    --turquesa: #00FFD1;
    --azul: #4A8DFF;
    --roxo: #7C3AED;
    --branco: #F8FAFC;
    --texto: rgba(226, 236, 248, 0.92);
    --muted: rgba(163, 181, 207, 0.72);
    --muted-2: rgba(148, 163, 184, 0.5);
    --linha: rgba(248, 250, 252, 0.08);
    --font-body: "Space Grotesk", "Segoe UI", sans-serif;
    --font-mono: "Space Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-padding-top: 90px;
    width: 100%;
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--texto);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    width: 100%;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Fallback: estrelas em CSS por trás do canvas (aparecem se o WebGL não subir) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 22px 44px, rgba(248,250,252,.85) 50%, transparent 51%),
        radial-gradient(1px 1px at 180px 120px, rgba(159,180,255,.7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 300px 260px, rgba(248,250,252,.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 420px 80px, rgba(127,245,227,.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 90px 320px, rgba(248,250,252,.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 520px 200px, rgba(196,181,253,.45) 50%, transparent 51%);
    background-size: 560px 380px;
}

::selection { background: rgba(0, 255, 209, 0.28); color: var(--branco); }

a { color: inherit; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--turquesa);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   Camadas fixas
   ------------------------------------------------------------ */
#space {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(2, 4, 12, 0.55) 100%);
}

#flash {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(210, 255, 246, 0.95) 0%, rgba(0, 255, 209, 0.5) 40%, rgba(4, 8, 22, 0) 78%);
}

#dawn {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(ellipse 90% 65% at 50% 100%, rgba(74, 141, 255, 0.22) 0%, transparent 65%),
        linear-gradient(180deg, transparent 30%, rgba(9, 20, 38, 0.55) 100%);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-head {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: none;
    pointer-events: none;
}

.site-head > * { pointer-events: auto; }

/* Desktop: filhos do __mobile participam do grid do header */
.site-head__mobile { display: contents; }

.brand { justify-self: start; }
.site-nav { justify-self: center; }
.site-head > .btn { justify-self: end; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--turquesa), var(--azul));
    color: #04101F;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: -0.02em;
}

.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

.site-nav { display: flex; gap: 1.8rem; }

.site-nav a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .25s ease;
}

.site-nav a:hover { color: var(--branco); }

/* Menu leque (mobile FAB) — oculto no desktop */
.nav-fan-wrap { display: none; }

/* ------------------------------------------------------------
   Botões
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95em 2em;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.btn--solid {
    background: var(--turquesa);
    color: #04101F;
    box-shadow: 0 0 42px rgba(0, 255, 209, 0.22);
}

.btn--solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 60px rgba(0, 255, 209, 0.38);
}

.btn--ghost {
    background: rgba(9, 20, 38, 0.45);
    border-color: rgba(248, 250, 252, 0.16);
    color: var(--branco);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 209, 0.45);
}

.btn--sm { padding: .55em 1.4em; font-size: .88rem; }

.btn--mega {
    background: var(--turquesa);
    color: #04101F;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    padding: 1.05em 2.8em;
    box-shadow: 0 10px 90px rgba(0, 255, 209, 0.35);
}

.btn--mega:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 120px rgba(0, 255, 209, 0.5);
}

/* ------------------------------------------------------------
   HUD de missão
   ------------------------------------------------------------ */
.hud { pointer-events: none; }

.hud-corner {
    position: fixed;
    width: 22px;
    height: 22px;
    z-index: 35;
    border: 0 solid rgba(0, 255, 209, 0.3);
}

.hud-corner--tl { top: 76px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.hud-corner--tr { top: 76px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.hud-corner--bl { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner--br { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }

.hud-rail {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud-rail ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: right;
}

.hud-rail li {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .26em;
    color: var(--muted-2);
    transition: color .4s ease, text-shadow .4s ease;
    white-space: nowrap;
}

.hud-rail li.done { color: rgba(0, 255, 209, 0.4); }

.hud-rail li.active {
    color: var(--turquesa);
    text-shadow: 0 0 14px rgba(0, 255, 209, 0.55);
}

.hud-track {
    width: 1px;
    height: 218px;
    background: rgba(248, 250, 252, 0.12);
    position: relative;
}

#hudFill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--turquesa), var(--azul));
    box-shadow: 0 0 10px rgba(0, 255, 209, 0.6);
}

.mission-bottom-bar {
    position: fixed;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 35;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1.2rem;
    pointer-events: none;
}

.mission-readout {
    justify-self: start;
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .3em;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mission-readout span { color: rgba(0, 255, 209, 0.8); }

.mission-copyright {
    justify-self: center;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    color: var(--muted-2);
    text-align: center;
    white-space: nowrap;
}

.mission-foot-link {
    justify-self: end;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    pointer-events: auto;
    white-space: nowrap;
}

.mission-foot-link a { color: var(--muted-2); transition: color .25s ease; }
.mission-foot-link a:hover { color: var(--turquesa); }

/* ------------------------------------------------------------
   Cenas
   ------------------------------------------------------------ */
#story { position: relative; z-index: 3; }

.scene { min-height: 180vh; }

.scene--hero { min-height: 100svh; }
.scene--orbit { min-height: 260vh; }
.scene--final { min-height: 200vh; }

.scene-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6vw;
}

.scene-copy {
    max-width: 48rem;
    text-align: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .66rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--turquesa);
    margin-bottom: 1.4rem;
}

.scene-copy h2, .hero-inner h1 {
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--branco);
    text-wrap: balance;
}

.scene-copy h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); }

.support {
    margin-top: 1.4rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

/* HERO ------------------------------------------------------- */
.scene--hero .scene-pin { position: relative; flex-direction: column; }

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 56rem;
}

/* brilho azul/turquesa atrás do conteúdo */
.hero-inner::before {
    content: "";
    position: absolute;
    inset: -18% -22%;
    z-index: -1;
    background: radial-gradient(ellipse 60% 55% at 50% 45%,
        rgba(0, 255, 209, 0.13) 0%,
        rgba(74, 141, 255, 0.1) 42%,
        transparent 72%);
    filter: blur(6px);
}

.hero-inner h1 { font-size: clamp(2.7rem, 7.2vw, 5.8rem); }

.hero-inner .grad {
    background: linear-gradient(92deg, var(--turquesa) 10%, var(--azul) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 1.6rem auto 0;
    max-width: 32rem;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: var(--muted);
    text-wrap: balance;
}

.cta-row {
    margin-top: 2.6rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-cue {
    position: absolute;
    bottom: 4.5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    transition: opacity .6s ease;
}

body.flying .scroll-cue { opacity: 0; }

.scroll-cue span {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .42em;
    color: var(--muted-2);
    white-space: nowrap;
}

.scroll-cue i {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--turquesa), transparent);
    animation: cueDrop 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cueDrop {
    0% { transform: scaleY(0); opacity: 0; }
    35% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* CENA 2 — chips de módulos ---------------------------------- */
.scene--orbit .scene-pin {
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
}

.modules { list-style: none; }

.module-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1.15rem;
    border: 1px solid rgba(0, 255, 209, 0.16);
    border-radius: 14px;
    background: rgba(9, 20, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 40px rgba(2, 4, 12, 0.5);
    opacity: 0;
    transform: translateY(26px) scale(.96);
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}

.module-chip.on { opacity: 1; transform: translateY(0) scale(1); }

.module-chip svg { width: 24px; height: 24px; color: var(--turquesa); flex-shrink: 0; }

.module-chip strong { display: block; font-size: .95rem; font-weight: 600; color: var(--branco); line-height: 1.25; }
.module-chip small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; }

.modules .module-chip:nth-child(1) { left: 9%;  top: 30%; }
.modules .module-chip:nth-child(2) { right: 9%; top: 37%; }
.modules .module-chip:nth-child(3) { left: 12%; top: 49%; }
.modules .module-chip:nth-child(4) { right: 11%; top: 57%; }
.modules .module-chip:nth-child(5) { left: 14%; top: 68%; }
.modules .module-chip:nth-child(6) { right: 13%; top: 75%; }

/* Modo 3D: os balões saem do fluxo e passam a seguir os satélites.
   Quando o satélite sai do campo de visão, o balão "atraca" e
   empilha no canto esquerdo (classe .docked). */
#modulesTrack {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    transition: opacity .5s ease;
}

#modulesTrack.gone { opacity: 0; }

#modulesTrack .module-chip {
    position: absolute;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    margin: 0;
    max-width: min(340px, 62vw);
    transform: translate(-320px, -320px);
    transition: opacity .45s ease;
    will-change: transform, opacity;
}

#modulesTrack .module-chip.on { opacity: 1; }

#modulesTrack .module-chip.docked {
    transition: opacity .45s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
    border-color: rgba(0, 255, 209, 0.45);
    box-shadow: 0 8px 40px rgba(0, 255, 209, 0.14);
}

/* CENA 4 — mapa/holograma ------------------------------------ */
.map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    width: min(68rem, 100%);
}

.scene-copy--left { text-align: left; max-width: 34rem; }
.scene-copy--left .support { margin-left: 0; }

.holo-chain {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-self: center;
}

.holo-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 0 .55rem 6px;
    font-weight: 600;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    letter-spacing: -0.01em;
    color: var(--branco);
    opacity: 0;
    transform: translateX(28px);
    transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
}

.holo-item.on { opacity: 1; transform: translateX(0); }

.holo-node {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--turquesa);
    background: rgba(0, 255, 209, 0.22);
    box-shadow: 0 0 12px rgba(0, 255, 209, 0.65);
    flex-shrink: 0;
}

.holo-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 11px;
    top: calc(50% + 10px);
    width: 1px;
    height: calc(100% - 8px);
    background: linear-gradient(180deg, rgba(0, 255, 209, 0.55), rgba(124, 58, 237, 0.35));
}

/* CENA FINAL -------------------------------------------------- */
.scene--final .scene-pin {
    flex-direction: column;
    justify-content: center;
}

.final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    text-align: center;
}

.logo-big {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--azul), var(--roxo));
    color: var(--branco);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    box-shadow: 0 18px 90px rgba(74, 141, 255, 0.4);
}

.final-inner h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--branco);
    text-wrap: balance;
}

.final-links {
    display: flex;
    gap: .9rem;
    align-items: center;
    font-size: .95rem;
    color: var(--muted);
}

.final-links a { color: var(--muted); transition: color .25s ease; }
.final-links a:hover { color: var(--turquesa); }

.final-foot {
    position: absolute;
    bottom: 2rem;
    left: 6vw;
    right: 6vw;
    display: none;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    color: var(--muted-2);
}

.final-foot a { color: var(--muted-2); }
.final-foot a:hover { color: var(--turquesa); }

/* ------------------------------------------------------------
   Estados de animação (só quando o 3D está ativo)
   ------------------------------------------------------------ */
body.fx .copy-anim,
body.fx .final-inner { opacity: 0; }

/* ------------------------------------------------------------
   Modo estático (sem WebGL / prefers-reduced-motion / sem JS extra)
   ------------------------------------------------------------ */
body.static-mode #space,
body.static-mode #flash,
body.static-mode #dawn,
body.static-mode .hud { display: none; }

body.static-mode .final-foot {
    display: flex;
}

body.static-mode .scene { min-height: auto; padding: 16vh 0; }
body.static-mode .scene--hero { min-height: 100svh; padding: 0; }

body.static-mode .scene-pin {
    position: static;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

body.static-mode .scene--hero .scene-pin { height: 100svh; }

body.static-mode .module-chip,
body.static-mode .holo-item {
    position: static;
    opacity: 1;
    transform: none;
}

body.static-mode .modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    width: min(64rem, 100%);
}

body.static-mode .scene--orbit .scene-pin {
    flex-direction: column;
    align-items: center;
}

/* ------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .hud-rail, .hud-track, .hud-corner { display: none; }
    .site-nav,
    .site-head__login { display: none !important; }

    .site-head {
        display: block;
        width: 100%;
        padding: .75rem 1rem;
        box-sizing: border-box;
        overflow: visible;
    }

    /* Barra mobile: logo | botão — largura total da viewport */
    .site-head__mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .65rem;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .site-head__mobile .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-head__mobile .nav-fan-wrap {
        flex: 0 0 44px;
        display: block;
        position: relative;
        width: 44px;
        height: 44px;
        margin: 0;
        overflow: visible;
        z-index: 5;
    }

    .nav-fan-wrap.is-open {
        overflow: visible;
        z-index: 60;
    }

    .site-head:has(.nav-fan-wrap.is-open) {
        z-index: 60;
    }

    .site-head:has(.nav-fan-wrap.is-open) .site-head__mobile {
        overflow: visible;
    }

    .nav-fan[hidden] { display: none !important; }

    .nav-fan-backdrop {
        position: fixed;
        inset: 0;
        z-index: -1;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(4, 8, 22, 0.42);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        cursor: default;
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s ease;
    }

    .nav-fan-backdrop[hidden] { display: none !important; }

    .nav-fan-wrap.is-open .nav-fan-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-fan-toggle {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 2px solid rgba(4, 16, 31, 0.28);
        border-radius: 50%;
        background: var(--turquesa);
        color: #04101F;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
        transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, background .25s ease;
    }

    .nav-fan-toggle:hover {
        background: #33ffe0;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
    }

    .nav-fan-wrap.is-open .nav-fan-toggle {
        transform: rotate(45deg);
        background: #04101F;
        color: var(--turquesa);
        border-color: rgba(0, 255, 209, 0.45);
    }

    .nav-fan-toggle__icon {
        position: relative;
        display: block;
        width: 18px;
        height: 18px;
    }

    .nav-fan-toggle__icon::before,
    .nav-fan-toggle__icon::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        background: currentColor;
        border-radius: 2px;
        transform: translate(-50%, -50%);
    }

    .nav-fan-toggle__icon::before {
        width: 18px;
        height: 2.5px;
    }

    .nav-fan-toggle__icon::after {
        width: 2.5px;
        height: 18px;
    }

    .nav-fan {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: visible;
    }

    /* Leque 3º quadrante (180°→270°): espelho do IlhaConnect (2º quadrante 90°→180°)
       Fórmula: tx = R·cos(θ), ty = −R·sin(θ) — raio 85px, 4 itens a cada 30° */
    .nav-fan-item {
        position: absolute;
        right: 5px;
        top: 5px;
        z-index: 1;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 8px;
        width: auto;
        height: auto;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        color: var(--branco);
        text-decoration: none;
        transform-origin: right center;
        opacity: 0;
        transform: translate(0, 0) scale(.3);
        pointer-events: none;
        transition:
            transform .32s cubic-bezier(.34, 1.56, .64, 1),
            opacity .22s ease;
        transition-delay: var(--atraso-fecha, 0s);
    }

    .nav-fan-wrap.is-open .nav-fan-item {
        opacity: 1;
        pointer-events: auto;
        transform: translate(var(--tx), var(--ty)) scale(1);
        transition-delay: var(--atraso, 0s);
    }

    .nav-fan-item:nth-of-type(1) {
        --tx: -85px;
        --ty: 0;
        --atraso: .00s;
        --atraso-fecha: .12s;
        --rotulo-r: 56px;
        width: 40px;
        height: 40px;
        gap: 0;
    }
    .nav-fan-item:nth-of-type(2) {
        --tx: -74px;
        --ty: 43px;
        --atraso: .04s;
        --atraso-fecha: .08s;
        --rotulo-r: 56px;
        width: 40px;
        height: 40px;
        gap: 0;
    }
    .nav-fan-item:nth-of-type(3) {
        --tx: -43px;
        --ty: 74px;
        --atraso: .08s;
        --atraso-fecha: .04s;
        --rotulo-r: 56px;
        width: 40px;
        height: 40px;
        gap: 0;
    }
    .nav-fan-item:nth-of-type(4) {
        --tx: 12px;
        --ty: 85px;
        --atraso: .12s;
        --atraso-fecha: .00s;
        --rotulo-r: 50px;
        width: 40px;
        height: 40px;
        gap: 0;
    }

    /* Missão: rótulo a ~185° do centro do ícone */
    .nav-fan-item:nth-of-type(1) .nav-fan-item__label {
        position: absolute;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(
            calc(-50% + cos(185deg) * var(--rotulo-r)),
            calc(-50% + -1 * sin(185deg) * var(--rotulo-r))
        );
    }

    /* Início: rótulo a ~195° do centro do ícone */
    .nav-fan-item:nth-of-type(2) .nav-fan-item__label {
        position: absolute;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(
            calc(-50% + cos(195deg) * var(--rotulo-r)),
            calc(-50% + -1 * sin(195deg) * var(--rotulo-r))
        );
    }

    /* Contato: rótulo a ~210° do centro do ícone */
    .nav-fan-item:nth-of-type(3) .nav-fan-item__label {
        position: absolute;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(
            calc(-50% + cos(210deg) * var(--rotulo-r)),
            calc(-50% + -1 * sin(210deg) * var(--rotulo-r))
        );
    }

    /* Entrar: rótulo a ~240° do centro do ícone */
    .nav-fan-item:nth-of-type(4) .nav-fan-item__label {
        position: absolute;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(
            calc(-50% + cos(240deg) * var(--rotulo-r)),
            calc(-50% + -1 * sin(240deg) * var(--rotulo-r))
        );
    }

    .nav-fan-item__icon {
        flex-shrink: 0;
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(9, 20, 38, 0.92);
        border: 1px solid rgba(248, 250, 252, 0.14);
        color: var(--branco);
        box-shadow: 0 6px 18px rgba(2, 6, 18, 0.45);
        line-height: 0;
    }

    .nav-fan-item__label {
        flex-shrink: 0;
        padding: .35em .85em;
        border-radius: 999px;
        background: rgba(9, 20, 38, 0.92);
        border: 1px solid rgba(248, 250, 252, 0.14);
        color: var(--branco);
        font-size: .78rem;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 6px 18px rgba(2, 6, 18, 0.4);
    }

    .nav-fan-item:hover .nav-fan-item__icon {
        border-color: rgba(0, 255, 209, 0.45);
        box-shadow: 0 8px 22px rgba(0, 255, 209, 0.14);
    }

    .nav-fan-item--login .nav-fan-item__icon {
        background: rgba(0, 255, 209, 0.14);
        border-color: rgba(0, 255, 209, 0.35);
        color: var(--turquesa);
    }

    .nav-fan-item--login .nav-fan-item__label {
        background: rgba(0, 255, 209, 0.14);
        border-color: rgba(0, 255, 209, 0.35);
        color: var(--turquesa);
    }

    .map-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .scene-copy--left { text-align: center; margin: 0 auto; }
    .scene-copy--left .support { margin-left: auto; margin-right: auto; }
    .holo-chain { justify-self: center; }

    .modules {
        position: absolute;
        inset: auto 5vw 8vh 5vw;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .7rem;
    }

    .module-chip { position: static; padding: .7rem .85rem; }
    .module-chip small { display: none; }

    .scene--orbit .scene-pin { padding-top: 12vh; }

    .mission-bottom-bar {
        left: 1.2rem;
        right: 1.2rem;
        bottom: 1rem;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        row-gap: .5rem;
        column-gap: .6rem;
    }

    .mission-copyright {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .mission-readout {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .mission-foot-link {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .mission-readout { font-size: .52rem; letter-spacing: .22em; }
    .mission-copyright,
    .mission-foot-link { font-size: .52rem; letter-spacing: .12em; }
}

@media (max-width: 560px) {
    .modules { grid-template-columns: 1fr; inset: auto 6vw 6vh 6vw; }
    .cta-row .btn { width: 100%; }
}

/* Acessibilidade: sem parallax para quem pediu menos movimento
   (o JS também ativa o modo estático nesse caso) */
@media (prefers-reduced-motion: reduce) {
    .scroll-cue i { animation: none; }
    .nav-fan-item { transition-delay: 0s !important; }
    * { transition-duration: .01ms !important; }
}
