/* Hallmark · shape: Full-bleed stage, holding page · genre: atmospheric · theme: Midnight (deal 3/3, seed portal-constru-para-meo-5781·80790d1b·2026-11-16·r0) · job: visit · draw: manual
 * hero: Full-bleed, the point cloud is the page, text settled bottom-left · nav: edge-aligned wordmark + language toggle · footer: one line · imagery: the product's own material, a generated point cloud (no client data) · signature: the FPSO drawn in points across the whole screen, a scan plane sweeping the hull
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V4 · weakest: E (one screen, nothing to do yet), answered by one way back to the portal and the three materials the viewer will show */
/* waive: 26b — no control on these pages can be disabled (two links, one language toggle)
 * waive: theme motion "nothing loops" — the user asked for motion; the point cloud turns slowly, stops off-screen and under reduced motion */
@import url("./tokens.css");
@import url("./base.css");

h1 { font-weight: var(--display-weight); font-stretch: var(--display-stretch); line-height: 1.04; }

html:not([data-lang="en"]) [lang="en"] { display: none; }
html[data-lang="en"] [lang="pt"] { display: none; }

body { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.fundo { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.fundo.pronta { opacity: 1; }
.nav, main, .rodape { position: relative; z-index: var(--z-raised); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 88px; }
.marca { font-weight: 500; font-stretch: var(--display-stretch); font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; }
.marca span { color: var(--color-muted); font-weight: 300; }
.idioma { display: inline-flex; border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); }
.idioma button { min-height: 40px; min-width: 48px; padding: 0 var(--space-sm); border: 0; background: none; color: var(--color-muted); font-weight: 500; font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.idioma button:hover { color: var(--color-ink); background: var(--color-paper-2); }
.idioma button[aria-pressed="true"] { background: var(--color-paper-3); color: var(--color-ink); }
.idioma button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

main { display: grid; align-content: end; padding-bottom: var(--space-3xl); }
.texto { display: grid; gap: var(--space-lg); max-width: 40rem; }
.estado { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.meter { width: 72px; height: 2px; background: var(--color-rule-2); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 38%; background: var(--color-accent); transform-origin: left; animation: medir 2.8s var(--ease-in-out) infinite alternate; }
@keyframes medir { from { transform: scaleX(0.35); } to { transform: scaleX(1.6); } }
.lead { color: var(--color-ink-2); }
.materiais { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.materiais li { padding-bottom: var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule); }

.btn { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-weight: 500; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.rodape { display: flex; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); background: var(--color-paper); }

.settle { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) { .meter > span { animation: none; } .fundo { transition: none; } }

/* véu à esquerda: a nuvem passa por trás do texto sem disputar a leitura */
main::before { content: ""; position: fixed; inset: 0 auto 0 0; width: min(62rem, 100%); z-index: -1; background: linear-gradient(90deg, var(--color-paper) 30%, color-mix(in oklab, var(--color-paper) 70%, transparent) 60%, transparent); pointer-events: none; }
