/* ═══════════════════════════════════════════════════════════════════
   PÁGINA INICIAL — "a decolagem"

   Sempre noturna: carrega o tema Aço no modo escuro (data-theme="dark" no
   <html>) e usa só os tokens --hq-*; os poucos tokens próprios (--lp-*)
   derivam deles, então trocar o arquivo de tema repinta a página inteira.

   Regras da casa:
   - o texto nunca começa escondido; só a decoração é animada;
   - animação contínua só com transform e opacity, em camadas pequenas;
   - tudo que gira para fora da tela, com a aba oculta ou pelo botão.
   ═══════════════════════════════════════════════════════════════════ */

/* Reserva com a largura da Barlow Condensed: o título não salta na troca */
@font-face {
    font-family: 'Barlow Condensed Fallback';
    src: local('Arial Narrow'), local('Arial');
    size-adjust: 78%;
    ascent-override: 128%;
    descent-override: 26%;
    line-gap-override: 0%;
}

:root {
    --font-heading: 'Barlow Condensed', 'Barlow Condensed Fallback', system-ui, sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --lp-amber: var(--hq-warn);
    --lp-sky: color-mix(in oklab, var(--hq-bg) 80%, var(--hq-type-hangar));
    --lp-line: rgb(var(--s500) / 0.2);
    --lp-line-strong: rgb(var(--s500) / 0.42);
    --lp-copy: rgb(var(--s700));
    --lp-blade: rgb(var(--s800));
    --lp-header-h: 3.75rem;
    --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--lp-header-h) + 1rem);
    scroll-padding-bottom: 5rem;
}

body {
    margin: 0;
    min-height: 100svh;
    overflow-x: clip;
    background:
        radial-gradient(110% 60% at 85% -5%, color-mix(in oklab, var(--hq-type-hangar) 20%, transparent), transparent 62%),
        linear-gradient(180deg, var(--lp-sky) 0, var(--hq-bg) 44rem),
        var(--hq-bg);
    background-repeat: no-repeat;
    color: var(--hq-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    accent-color: var(--lp-amber);
}

/* Grade de HUD: estática, atrás de tudo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--lp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
    background-size: 5rem 5rem;
    opacity: 0.32;
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0, transparent 85%);
}

::selection { background: var(--lp-amber); color: var(--hq-bg); }

a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--lp-amber); outline-offset: 3px; border-radius: 0.25rem; }

.lp-defs { position: absolute; }
.sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

.lp-skiplink {
    position: fixed; left: 0.75rem; top: 0.5rem; z-index: 70;
    padding: 0.625rem 1rem; border-radius: 0.5rem;
    background: var(--lp-amber); color: var(--hq-bg); font-weight: 600; text-decoration: none;
    transform: translateY(-200%);
}
.lp-skiplink:focus { transform: none; }

/* ─── Botões ─────────────────────────────────────────────────────── */

.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 2.75rem; padding: 0.5rem 1.125rem;
    border: 1px solid transparent; border-radius: 0.5rem;
    font: 600 0.9375rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lp-btn:active { transform: scale(0.98); }
.lp-btn-primary { background: var(--lp-amber); color: var(--hq-bg); }
.lp-btn-primary:hover { background: var(--hq-warn-strong); }
.lp-btn-ghost { border-color: var(--lp-line-strong); background: rgb(var(--s100) / 0.7); color: var(--hq-text); }
.lp-btn-ghost:hover { border-color: var(--hq-text-muted); background: rgb(var(--s200)); }
.lp-btn-lg { min-height: 3.25rem; padding: 0.75rem 1.5rem; font-size: 1rem; }
.i-stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ─── Cabeçalho fixo ─────────────────────────────────────────────── */

.lp-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--hq-bg);
    border-bottom: 1px solid var(--hq-border);
}
.lp-header-in {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    width: min(100% - 2rem, 76rem); height: var(--lp-header-h); margin-inline: auto;
}
.lp-brand { display: inline-flex; align-items: center; gap: 0.625rem; min-width: 2.75rem; min-height: 2.75rem; text-decoration: none; }
.lp-brand-mark {
    display: grid; place-items: center; flex: none;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--hq-text);
}
.lp-brand-name {
    display: none;
    font: 700 1.375rem/1 var(--font-heading); letter-spacing: 0.03em; text-transform: uppercase;
}
.lp-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.lp-motion {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.625rem;
    border: 1px solid var(--lp-line-strong); border-radius: 0.5rem;
    background: none; color: var(--hq-text); font: 500 0.875rem/1 var(--font-body); cursor: pointer;
}
.lp-motion[hidden] { display: none; }
.lp-motion:hover { background: rgb(var(--s200)); }
.lp-motion svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-motion .i-play { display: none; fill: currentColor; stroke: none; }
.lp-motion[aria-pressed="true"] .i-play { display: block; }
.lp-motion[aria-pressed="true"] .i-pause { display: none; }
.lp-motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Progresso de leitura (celular e tablet): a linha cresce, o helicóptero vai junto */
.lp-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; --p: 0; }
html:not(.js) .lp-progress { display: none; }
.lp-progress-line {
    position: absolute; inset: 0; background: var(--lp-amber);
    transform: scaleX(var(--p)); transform-origin: left;
}
.lp-progress-heli {
    position: absolute; left: 0; top: -12px;
    transform: translateX(calc(var(--p) * (100vw - 26px)));
}
.t-disc { fill: rgb(var(--s800) / 0.16); stroke: rgb(var(--s800) / 0.4); stroke-width: 0.75; }
.t-body { fill: var(--hq-text); stroke: var(--hq-text); }
.t-blade { stroke: var(--lp-amber); }

/* Progresso de leitura (desktop): rota lateral, só quando a animação está ativa */
.lp-rail {
    display: none;
    position: fixed; z-index: 5; pointer-events: none;
    top: calc(var(--lp-header-h) + 1.5rem); bottom: 1.5rem;
    right: max(0.5rem, calc((100vw - 76rem) / 2 - 4.25rem));
    width: 3.75rem;
}
.lp-rail svg { width: 100%; height: 100%; overflow: visible; }
.rail-path { fill: none; stroke: var(--lp-line-strong); stroke-width: 1.25; stroke-dasharray: 3 7; }
.rail-ticks path { fill: var(--hq-bg); stroke: var(--lp-line-strong); stroke-width: 1; }

@media (min-width: 480px) {
    .lp-brand-name { display: block; }
}
@media (min-width: 1024px) {
    .lp-motion-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .lp-motion { padding: 0 0.875rem; }
}
@media (min-width: 1280px) and (min-height: 600px) {
    html.motion-rail .lp-rail { display: block; }
    html.motion-rail .lp-progress { display: none; }
}

/* ─── 1. Abertura: portas do hangar ──────────────────────────────── */

.doors {
    position: fixed; inset: var(--lp-header-h) 0 0 0; z-index: 40;
    overflow: hidden; pointer-events: none;
}
html.no-intro .doors { display: none; }
.door {
    position: absolute; top: 0; bottom: 0; width: 50.5%;
    background:
        linear-gradient(180deg, rgb(var(--s50) / 0.55), transparent 30%, rgb(var(--s50) / 0.5)),
        repeating-linear-gradient(90deg, rgb(var(--s200)) 0 2.5rem, rgb(var(--s300)) 2.5rem calc(2.5rem + 2px), rgb(var(--s100)) calc(2.5rem + 2px) 2.875rem);
}
.door::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.125rem;
    background: repeating-linear-gradient(135deg, var(--lp-amber) 0 0.875rem, var(--hq-bg) 0.875rem 1.75rem);
}
/* Em repouso as portas ficam abertas: sem animação, nada cobre a página */
.door-l { left: 0; border-right: 2px solid var(--lp-amber); transform: translateX(-101%); animation: door-l 1.3s cubic-bezier(0.7, 0, 0.2, 1) 0.1s both; }
.door-r { right: 0; border-left: 2px solid var(--lp-amber); transform: translateX(101%); animation: door-r 1.3s cubic-bezier(0.7, 0, 0.2, 1) 0.1s both; }
@keyframes door-l { from { transform: translateX(-7%); } to { transform: translateX(-101%); } }
@keyframes door-r { from { transform: translateX(7%); } to { transform: translateX(101%); } }

.lp-skip-intro {
    position: fixed; left: 50%; bottom: 1.75rem; z-index: 45;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px -10px rgb(var(--hq-shadow-rgb) / 0.8);
}

/* ─── 1. Decolagem (hero) ────────────────────────────────────────── */

.hero {
    position: relative;
    display: grid; align-items: center;
    min-height: 100svh;
    padding: calc(var(--lp-header-h) + clamp(1.75rem, 6vw, 4rem)) 0 clamp(2rem, 6vw, 4rem);
    overflow: clip;
}
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }

h1 {
    margin: 0;
    font: 700 clamp(4.25rem, 19vw, 7.5rem)/0.84 var(--font-heading);
    letter-spacing: -0.005em; text-transform: uppercase;
}
h1 span { display: block; }

.hero-kind { margin: 1.125rem 0 0; font-size: 1.125rem; font-weight: 600; color: var(--lp-amber); }
.hero-lead { margin: 0.75rem 0 0; max-width: 34rem; font-size: 1.125rem; color: var(--lp-copy); text-wrap: pretty; }
.hero-place {
    display: inline-flex; align-items: center; gap: 0.625rem;
    margin: 1.5rem 0 0;
    font: 500 0.875rem/1.3 var(--font-mono); color: var(--hq-text);
}
.beacon { position: relative; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lp-amber); }
.beacon::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--lp-amber);
    animation: beacon 2.4s ease-out infinite;
}
@keyframes beacon { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }

.hero-cta { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }

/* Cena: céu, radar, helicóptero e bola */
.scene { position: relative; width: 100%; max-width: 36rem; margin-inline: auto; aspect-ratio: 10 / 8.5; }

.scene-hud {
    position: absolute; inset: 0;
    --c: var(--lp-line-strong);
    background:
        linear-gradient(var(--c), var(--c)) 0 0 / 1.25rem 1px no-repeat,
        linear-gradient(var(--c), var(--c)) 0 0 / 1px 1.25rem no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 0 / 1.25rem 1px no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 0 / 1px 1.25rem no-repeat,
        linear-gradient(var(--c), var(--c)) 0 100% / 1.25rem 1px no-repeat,
        linear-gradient(var(--c), var(--c)) 0 100% / 1px 1.25rem no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 100% / 1.25rem 1px no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 100% / 1px 1.25rem no-repeat;
}
/* Linha do horizonte com marcações */
.scene-hud::after {
    content: ""; position: absolute; left: 4%; right: 4%; top: 64%; height: 0.5rem;
    background:
        linear-gradient(var(--lp-line-strong), var(--lp-line-strong)) 0 0 / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, var(--lp-line-strong) 0 1px, transparent 1px 1.5rem);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* Radar: os anéis repetem o desenho do logo */
.radar {
    position: absolute; right: 3%; top: 3%; width: 44%; aspect-ratio: 1;
    border: 1px solid var(--lp-line); border-radius: 50%; overflow: hidden;
    background:
        radial-gradient(circle closest-side, transparent calc(34% - 1px), var(--lp-line) 34%, transparent calc(34% + 1px)),
        radial-gradient(circle closest-side, transparent calc(67% - 1px), var(--lp-line) 67%, transparent calc(67% + 1px));
}
.radar-sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 290deg, color-mix(in srgb, var(--lp-amber) 30%, transparent) 360deg);
    animation: spin 7s linear infinite;
}

.clouds { position: absolute; inset: 0; }
.cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--s500) / 0.17), transparent); animation: drift 22s ease-in-out infinite alternate; }
.c1 { left: -12%; top: 6%; width: 72%; height: 24%; }
.c2 { left: 48%; top: 30%; width: 58%; height: 20%; animation-duration: 30s; animation-direction: alternate-reverse; }
.c3 { left: -26%; top: 50%; width: 84%; height: 28%; background: radial-gradient(closest-side, rgb(var(--s600) / 0.13), transparent); animation-duration: 17s; }
.c4 { left: 54%; top: 70%; width: 62%; height: 22%; background: radial-gradient(closest-side, rgb(var(--s600) / 0.11), transparent); animation-duration: 25s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-7%); } to { transform: translateX(7%); } }

.motes { display: none; }

.heli-lift { position: absolute; z-index: 2; left: 7%; right: 7%; top: 21%; }
.heli-float { animation: hover 5.6s ease-in-out infinite; }
@keyframes hover {
    0%, 100% { transform: translateY(0) rotate(-0.6deg); }
    50% { transform: translateY(-3.5%) rotate(0.9deg); }
}

.heli { position: relative; aspect-ratio: 520 / 220; --disc: 1; --blade: 0.4; }
/* Abertura: o rotor do hero parte parado, sem o disco de desfoque */
html.intro .hero .heli { --disc: 0; --blade: 1; }
.heli-body { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Farol de pouso: um facho suave do nariz até a bola */
.heli-beam {
    position: absolute; left: -3%; top: 62%; width: 26%; height: 135%;
    background: linear-gradient(180deg, rgb(var(--s900) / 0.2), rgb(var(--s900) / 0.04) 62%, transparent 92%);
    -webkit-clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
            clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
}

.st-body-hi { stop-color: var(--hq-primary-strong); }
.st-body-lo { stop-color: rgb(var(--s500)); }
.st-glass-hi { stop-color: color-mix(in oklab, var(--hq-type-hangar) 50%, var(--hq-bg)); }
.st-glass-lo { stop-color: var(--hq-bg); }
.h-skid { stroke: rgb(var(--s400)); }
.h-fin { fill: rgb(var(--s600)); }
.h-stab { fill: rgb(var(--s700)); }
.h-cowl, .h-mast, .h-hub { fill: rgb(var(--s400)); }
.h-glint { fill: rgb(var(--s900) / 0.42); }
.h-stripe { stroke: var(--lp-amber); }
.h-lamp { fill: rgb(var(--s300)); }

/* Rotor principal visto de lado: as pás varrem, o disco translúcido faz o borrão */
.rotor { position: absolute; left: 38.46%; top: 18.2%; width: 88.46%; aspect-ratio: 460 / 14; transform: translate(-50%, -50%); }
.rotor-blades {
    position: absolute; inset: 0; width: 100%; height: 100%;
    fill: var(--lp-blade); opacity: var(--blade);
    animation: sweep 0.36s ease-in-out infinite;
    transition: opacity 0.5s ease;
}
@keyframes sweep { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.rotor-disc {
    position: absolute; left: 0; right: 0; top: 50%; height: 360%;
    transform: translateY(-50%); border-radius: 50%;
    background: radial-gradient(ellipse closest-side, transparent 18%, rgb(var(--s800) / 0.16) 70%, rgb(var(--s800) / 0.34) 95%, transparent 100%);
    opacity: var(--disc); transition: opacity 0.5s ease;
}

.tailrotor { position: absolute; left: 95%; top: 41.8%; width: 11.5%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.tailrotor-blades { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--lp-blade); opacity: var(--blade); animation: spin 0.28s linear infinite; transition: opacity 0.5s ease; }
.tailrotor-disc { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle closest-side, transparent 30%, rgb(var(--s800) / 0.26) 92%, transparent 100%); opacity: var(--disc); transition: opacity 0.5s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Luzes de navegação: camadas próprias, só opacidade */
.nav { position: absolute; width: 1.7%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.nav-beacon { left: 45.4%; top: 74.1%; background: var(--hq-danger); box-shadow: 0 0 0.75rem 0.2rem color-mix(in srgb, var(--hq-danger) 65%, transparent); animation: nav-beacon 1.8s linear infinite; }
.nav-strobe { left: 95%; top: 27.3%; width: 1.3%; background: rgb(var(--s900)); box-shadow: 0 0 0.75rem 0.25rem rgb(var(--s900) / 0.7); animation: nav-strobe 2.6s linear infinite; }
.nav-pos { left: 85%; top: 50.4%; width: 1.1%; background: var(--hq-clear); box-shadow: 0 0 0.5rem 0.1rem color-mix(in srgb, var(--hq-clear) 60%, transparent); }
@keyframes nav-beacon { 0%, 46% { opacity: 0.12; } 50%, 62% { opacity: 1; } 66%, 100% { opacity: 0.12; } }
@keyframes nav-strobe { 0%, 80% { opacity: 0; } 82%, 85% { opacity: 1; } 87%, 90% { opacity: 0; } 92%, 95% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* Bola de pouso e o vento do rotor */
.pad { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 3%; }
.pad-shadow { fill: rgb(var(--hq-shadow-rgb) / 0.5); }
.pad svg { width: 100%; height: auto; overflow: visible; }
.pad-ring { fill: rgb(var(--s100) / 0.6); stroke: var(--lp-line-strong); stroke-width: 1.5; }
.pad-ring-in { fill: none; stroke: var(--lp-amber); stroke-dasharray: 6 8; opacity: 0.75; }
.pad-h { fill: none; stroke: var(--hq-text); stroke-width: 7; stroke-linecap: round; opacity: 0.85; }
.pad-lights circle { fill: var(--lp-amber); opacity: 0.4; }

.wash { position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 4 / 1; transform: translate(-50%, -50%); }
.wash i { position: absolute; inset: 0; border: 1px solid rgb(var(--s700) / 0.55); border-radius: 50%; opacity: 0; animation: wash 2.7s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.wash i:nth-child(2) { animation-delay: 0.9s; }
.wash i:nth-child(3) { display: none; animation-delay: 1.8s; }
@keyframes wash { from { transform: scale(0.45); opacity: 0.6; } to { transform: scale(1.75); opacity: 0; } }

@media (min-width: 480px) {
    .hero-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; }
    .scene { max-width: none; aspect-ratio: 1 / 0.92; }
    .wash i:nth-child(3) { display: block; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .motes { display: block; position: absolute; inset: 0; }
    .motes i { position: absolute; bottom: 12%; width: 3px; height: 3px; border-radius: 50%; background: rgb(var(--s700) / 0.7); opacity: 0; animation: mote 9s linear infinite; }
    .motes i:nth-child(1) { left: 18%; }
    .motes i:nth-child(2) { left: 34%; animation-delay: 1.6s; animation-duration: 11s; }
    .motes i:nth-child(3) { left: 52%; animation-delay: 3.1s; }
    .motes i:nth-child(4) { left: 66%; animation-delay: 4.7s; animation-duration: 12s; }
    .motes i:nth-child(5) { left: 79%; animation-delay: 6.2s; }
    .motes i:nth-child(6) { left: 44%; animation-delay: 7.4s; animation-duration: 10s; }
}
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.7; } 100% { transform: translate(2.5rem, -16rem); opacity: 0; } }

/* ─── Seções ─────────────────────────────────────────────────────── */

.sec { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }
.sec:focus { outline: none; }

.sec-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem;
    padding-top: 1.25rem; margin-bottom: 1.25rem;
    border-top: 1px solid var(--lp-line-strong);
}
h2 {
    margin: 0;
    font: 600 clamp(2.5rem, 7vw, 3.75rem)/1 var(--font-heading);
    letter-spacing: -0.005em; text-wrap: balance;
}
h3 { margin: 0; font: 600 1.625rem/1.1 var(--font-heading); }

.sec-tag { margin: 0; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hq-text-muted); }
.sec-lead { margin: 0; max-width: 38rem; font-size: 1.125rem; color: var(--lp-copy); text-wrap: pretty; }

/* ─── 2. Instrumentos ────────────────────────────────────────────── */

.gauges {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.625rem, 3vw, 2.5rem);
    margin: 2.75rem 0 0; padding: clamp(1.25rem, 4vw, 2.75rem) clamp(0.75rem, 3vw, 2.5rem);
    border: 1px solid var(--hq-border); border-radius: 1rem; background: var(--hq-surface);
}
.gauge { display: flex; flex-direction: column-reverse; align-items: center; gap: 0.875rem; }
.gauge dt { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hq-text-muted); }
.dial { position: relative; display: grid; place-items: center; width: 100%; max-width: 14rem; aspect-ratio: 1; margin: 0; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-rim { fill: var(--hq-bg); stroke: var(--lp-line-strong); stroke-width: 1; }
.dial-ticks { fill: none; stroke: var(--lp-line-strong); stroke-width: 5; stroke-dasharray: 0.12 0.88; }
.dial-val { position: relative; font: 500 clamp(1.75rem, 8vw, 3rem)/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dial-val-sm { font-size: clamp(0.9375rem, 4.4vw, 1.625rem); letter-spacing: -0.03em; }

/* Bolas: três bolas de pouso em miniatura, que acendem uma a uma */
.dial-pads circle { fill: var(--lp-amber); stroke: var(--lp-amber); stroke-width: 1.5; transition: fill 0.35s ease, stroke 0.35s ease; }
.dial-pads path { fill: none; stroke: var(--hq-bg); stroke-width: 1.7; stroke-linecap: round; transition: stroke 0.35s ease; }
.gauges.is-armed .gauge:not(.is-on) .dial-pads circle { fill: transparent; stroke: var(--lp-line-strong); }
.gauges.is-armed .gauge:not(.is-on) .dial-pads path { stroke: var(--lp-line-strong); }
.dial-pads g:nth-child(2) circle, .dial-pads g:nth-child(2) path { transition-delay: 0.22s; }
.dial-pads g:nth-child(3) circle, .dial-pads g:nth-child(3) path { transition-delay: 0.44s; }

/* Janela: arco das 06h às 23h num mostrador de 24 horas */
.dial-arc { fill: none; stroke: var(--lp-amber); stroke-width: 5; stroke-dasharray: 17 24; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--lp-ease); }
.gauges.is-armed .gauge:not(.is-on) .dial-arc { stroke-dashoffset: 17; }

/* Horários: 34 marcações acesas */
.dial-fill { fill: none; stroke: var(--lp-amber); stroke-width: 5; stroke-dasharray: 0.14 0.86; }
[data-gauge="horarios"] .dial-ticks { stroke-dasharray: 0.14 0.86; }

/* ─── 3. Plano de voo ────────────────────────────────────────────── */

.route { position: relative; margin-top: 2.75rem; }
.route-spine {
    position: absolute; left: 0.6875rem; top: 0.875rem; bottom: 0.5rem; width: 2px;
    background: repeating-linear-gradient(180deg, var(--lp-line-strong) 0 6px, transparent 6px 13px);
}
.route-spine i { position: absolute; inset: 0; background: var(--lp-amber); transform-origin: top; }

.route-list { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.wpt { position: relative; padding-left: 3rem; }
.wpt p { margin: 0; max-width: 32rem; color: var(--lp-copy); }
.wpt h3 { margin: 0 0 0.5rem; }
.wpt .wpt-code { margin: 0 0 0.375rem; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; color: var(--hq-text-muted); }

.wpt-node { position: absolute; left: 0; top: 0.125rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; }
.wpt-node::before {
    content: ""; width: 0.75rem; height: 0.75rem; transform: rotate(45deg);
    border: 2px solid var(--lp-amber); background: var(--lp-amber);
    box-shadow: 0 0 0 0.3125rem color-mix(in srgb, var(--lp-amber) 16%, transparent);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.route.is-armed .wpt:not(.is-reached) .wpt-node::before { background: var(--hq-bg); box-shadow: none; }

@media (min-width: 900px) {
    .route-spine { left: 50%; margin-left: -1px; }
    .route-list { grid-template-columns: 1fr 1fr; column-gap: 7rem; row-gap: 1rem; }
    .wpt { padding: 0 0 1.5rem; }
    .wpt:nth-child(even) { margin-top: 6.5rem; }
    .wpt-node { left: auto; right: -4.25rem; }
    .wpt:nth-child(even) .wpt-node { left: -4.25rem; right: auto; }
    /* trecho que liga o waypoint à rota */
    .wpt::after {
        content: ""; position: absolute; top: 0.8125rem; right: -2.75rem; width: 2.25rem; height: 1px;
        background: var(--lp-line-strong);
    }
    .wpt:nth-child(even)::after { left: -2.75rem; right: auto; }
}

/* ─── 4. Painel de serviços ──────────────────────────────────────── */

.panel {
    display: grid; gap: 1px;
    margin: 2.75rem 0 0; padding: 0; list-style: none; overflow: hidden;
    border: 1px solid var(--hq-border); border-radius: 1rem; background: var(--hq-border);
}
.svc { position: relative; padding: 1.75rem 1.5rem 2rem; background: var(--hq-surface); }
.svc h3 { margin: 1.25rem 0 0.625rem; }
.svc p { margin: 0; color: var(--lp-copy); }
.svc .svc-contact { margin-top: 1.125rem; padding-top: 1rem; border-top: 1px dashed var(--hq-border); }
.svc-contact a { display: flex; align-items: center; min-height: 2.75rem; color: var(--lp-amber); font-weight: 600; text-underline-offset: 0.2em; overflow-wrap: anywhere; }

.lamp {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: var(--hq-clear);
    transition: background-color 0.3s ease;
}
[data-seq].is-armed > :not(.is-on) .lamp { background: rgb(var(--s300)); }

.svc-icon { position: relative; display: block; width: 4rem; height: 4rem; }
.svc-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc-rotor { stroke: var(--lp-amber); stroke-width: 2.5; }
.svc-glyph { stroke: var(--hq-text); stroke-width: 1.75; }
/* No hover (e no foco do link interno) o anel gira como um rotor e assenta */
.svc:hover .svc-rotor, .svc:focus-within .svc-rotor { animation: svc-spin 1.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes svc-spin { from { transform: rotate(0); } to { transform: rotate(720deg); } }

@media (min-width: 900px) {
    .panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ─── 5. Checklist de pré-voo ────────────────────────────────────── */

.check-grid, .place-grid { display: grid; gap: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--lp-line-strong); }
.check-intro .sec-tag, .place-copy .sec-tag { margin: 0.75rem 0 1.25rem; }

.checklist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--hq-border); border-radius: 1rem; background: var(--hq-surface); }
.checklist li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.875rem; align-items: start; padding: 1.0625rem 1.25rem; border-top: 1px solid var(--hq-border); }
.checklist li:first-child { border-top: 0; }
.chk {
    display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: 0.0625rem;
    border: 1.5px solid var(--hq-clear); border-radius: 0.375rem;
    background: color-mix(in srgb, var(--hq-clear) 16%, transparent);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.chk svg { width: 1rem; height: 1rem; fill: none; stroke: var(--hq-clear); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.3s ease, transform 0.3s var(--lp-ease); }
[data-seq].is-armed > :not(.is-on) .chk { border-color: var(--lp-line-strong); background: none; }
[data-seq].is-armed > :not(.is-on) .chk svg { opacity: 0; transform: scale(0.5); }
.chk-num { padding-top: 0.1875rem; font: 500 0.8125rem/1.4 var(--font-mono); color: var(--hq-text-muted); }
.chk-text { font-weight: 500; }

@media (min-width: 900px) {
    .check-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
    .check-intro { position: sticky; top: calc(var(--lp-header-h) + 2rem); }
}

/* ─── 6. Aproximação ─────────────────────────────────────────────── */

.place-label { margin: 0 0 0.375rem; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hq-text-muted); }
.place-address { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--hq-border); }
address { font-style: normal; font-weight: 500; }
.place-links { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }

.place-map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--hq-border); border-radius: 1rem; background: var(--hq-surface); }
.place-map iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
    /* o mapa é externo e claro: escurecido para não estourar na página noturna */
    filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.95);
}

@media (min-width: 900px) {
    .place-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; align-items: center; }
}

/* ─── 7. Pouso ───────────────────────────────────────────────────── */

.land-grid { display: grid; justify-items: center; gap: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--lp-line-strong); text-align: center; }
.land-scene { position: relative; width: min(100%, 34rem); aspect-ratio: 5 / 4; }
.radar-land { left: 50%; right: auto; top: 6%; width: 70%; transform: translateX(-50%); }
/* em repouso o helicóptero está pousado, com os esquis no centro da bola */
.heli-descent { position: absolute; z-index: 2; left: 10%; right: 10%; bottom: 13.3%; }
.land-scene .pad { bottom: 4%; }
.land-scene .heli { --disc: 0; --blade: 1; }
.land-scene .rotor-blades { animation-duration: 1.6s; }
.land-scene .tailrotor-blades { animation-duration: 1.2s; }
.pad-lit .pad-lights circle { animation: padlight 2s linear infinite; }
.pad-lit .pad-lights circle:nth-child(2n) { animation-delay: 1s; }
@keyframes padlight { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.land-copy { display: grid; justify-items: center; gap: 1rem; }
.land-copy h2 { max-width: 18ch; }
.land-copy .lp-btn { margin-top: 0.75rem; min-width: min(100%, 16rem); }

@media (min-width: 900px) {
    .land-grid { grid-template-columns: 6fr 5fr; gap: 3rem; align-items: center; justify-items: stretch; text-align: left; }
    .land-scene { width: 100%; }
    .land-copy { justify-items: start; }
}

/* ─── Rodapé e barra do celular ──────────────────────────────────── */

.lp-footer { padding: 2rem 0 6.5rem; border-top: 1px solid var(--hq-border); font-size: 0.9375rem; color: var(--hq-text-muted); }
.lp-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.lp-footer p { margin: 0; }
.lp-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: 0.2em; }
.lp-footer-brand { display: inline-flex; align-items: center; gap: 0.625rem; font: 700 1.125rem/1 var(--font-heading); letter-spacing: 0.03em; text-transform: uppercase; color: var(--hq-text); }
.lp-footer-brand .lp-brand-mark { width: 2.25rem; height: 2.25rem; }

.lp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
    background: var(--hq-bg); border-top: 1px solid var(--hq-border);
    transform: translateY(100%); visibility: hidden;
    transition: transform 0.3s var(--lp-ease), visibility 0s 0.3s;
}
.lp-bar.is-visible { transform: none; visibility: visible; transition: transform 0.3s var(--lp-ease), visibility 0s; }
.lp-bar .lp-btn { width: 100%; min-height: 3rem; }

@media (min-width: 768px) {
    .lp-bar { display: none; }
    .lp-footer { padding-bottom: 2rem; }
}

/* ─── Pausas: fora da tela, aba oculta, botão do visitante ───────── */

[data-loop].is-off *, [data-loop].is-off *::after,
html.tab-hidden *, html.tab-hidden *::after,
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

/* ─── Movimento reduzido: versão estática, completa ──────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .doors, .lp-skip-intro { display: none !important; }
    .heli { --disc: 0.55; --blade: 0.9; }
    .beacon::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
    html:not(.smooth-scroll) { scroll-behavior: smooth; }
}
