/* site.css — cinematic 3D-scroll shell. Aligned with Filum Visual Identity (CALIBRACAO_PJ). */

/* @font-face — Audiowide (OFL 1.1, Astigmatic), arquivo local + OFL.txt em
   assets/fontes/audiowide/. Troca o --font-brand herdado da Filum (Skranji)
   pela face aprovada por Jean para @ojeansaraiva em 06/09/2026 (DC131 §3.3 /
   checkpoint de tipografia). Padrao de carregamento seguido: local @font-face
   com arquivo vendorizado, igual ao build de referencia output/filum/site.css
   (nao ha link Google Fonts nem @font-face para --font-sans/--font-mono neste
   arquivo — ver nota de entrega do arquiteto). */
@font-face {
  font-family: "Audiowide";
  src: url("assets/fontes/audiowide/Audiowide-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* @font-face — Space Grotesk e JetBrains Mono, OFL 1.1, arquivos vendorizados
   copiados de output/filum/assets/fontes/ (mesma origem, mesma licenca ja
   conferida pela DE36). Fecha a lacuna que o build anterior deixou: sem isto
   --font-sans e --font-mono caiam no fallback do sistema em qualquer maquina
   sem essas fontes instaladas — declarado pelo arquiteto, corrigido agora. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fontes/space-grotesk/SpaceGrotesk[wght].ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fontes/jetbrains-mono/JetBrainsMono[wght].ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0F05;
  --accent: #DBBA2E;
  --teal: #1A4B47;
  --floresta: #2C3F12;
  --text: #F1E9DE;
  --muted: rgba(241, 233, 222, 0.70);
  --hairline: rgba(219, 186, 46, 0.20);
  --font-brand: "Audiowide", sans-serif;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-serif: "Fraunces", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* fixed WebGL / canvas backdrop — effectively pinned so text scrolls over it */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  display: block; z-index: 0;
}
/* film grain + vignette for cinematic depth */
.grain, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.vignette { box-shadow: inset 0 0 340px 60px rgba(0,0,0,0.85); }
.grain {
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* content sits above the canvas */
main { position: relative; z-index: 2; }
.chapter {
  min-height: 100vh; display: flex; align-items: center;
  padding: 12vh 8vw; position: relative;
}
.chapter[data-align="center"] { justify-content: center; text-align: center; }
.chapter[data-align="right"] { justify-content: flex-end; text-align: right; }
.chapter-inner {
  max-width: 760px; will-change: transform, opacity;
  padding: 34px 40px;
  background: linear-gradient(165deg, rgba(10,13,5,.62), rgba(10,13,5,.38));
  border: 1px solid var(--hairline);
  box-shadow: 0 28px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
@supports not (backdrop-filter: blur(1px)) {
  .chapter-inner { background: rgba(10,13,5,.78); } /* fallback sem blur: mais opaco */
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; font-weight: 600;
}
.chapter h1 {
  font-family: var(--font-brand); font-weight: 400; line-height: 1.22;
  font-size: clamp(36px, 6.2vw, 92px); letter-spacing: -0.01em; word-spacing: 0.05em; color: var(--text);
}
.chapter h2 {
  font-family: var(--font-brand); font-weight: 400; line-height: 1.26;
  font-size: clamp(26px, 4vw, 56px); letter-spacing: -0.01em; word-spacing: 0.05em; margin-bottom: 12px; color: var(--text);
}
.chapter p.lead { margin-top: 24px; font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); max-width: 48ch; line-height: 1.6; }
.hero-sub { margin-top: 30px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); opacity: 0.9; }

/* spec strip */
.specs { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 40px; }
.spec { border-top: 1px solid var(--hairline); padding-top: 12px; min-width: 120px; }
.spec .k { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.spec .v { font-family: var(--font-serif); font-size: 30px; margin-top: 6px; }

/* CTA */
.cta { text-align: center; }
/* .cta .btn override — o padrao do motor e outline (texto/borda na cor de
   destaque), pensado para sentar sobre fundo escuro. NESTE brief a secao cta
   tem fog dourado (as "duas margens iluminadas" da travessia, DE41) — outline
   dourado sobre fundo dourado e texto invisivel, achado renderizando, nao no
   CSS. Preenchido garante contraste com qualquer fog por tras. */
.cta .btn {
  display: inline-block; margin-top: 30px; padding: 16px 40px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--bg); text-decoration: none;
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 13px; font-weight: 700;
  transition: filter 0.3s;
}
.cta .btn:hover { filter: brightness(1.12); }

/* fixed HUD (depth / speed / floor counter) */
.hud {
  position: fixed; top: 0; right: 0; height: 100vh; width: 92px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; pointer-events: none;
}
.hud .rail { position: relative; width: 2px; height: 42vh; background: var(--hairline); overflow: hidden; }
.hud .rail #hud-bar { position: absolute; inset: 0; transform-origin: top; background: var(--accent); transform: scaleY(0); }
.hud .label { writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.hud #hud-value { writing-mode: vertical-rl; font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }

/* top brand bar + scroll cue */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between;
  padding: 26px 34px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  mix-blend-mode: difference;
}
.topbar span:first-child { font-family: var(--font-brand); letter-spacing: 0.05em; }
.topbar-cta {
  color: var(--accent); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: opacity .2s ease;
}
.topbar-cta:hover { opacity: .7; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; }
.brandmark-glyph {
  width: 22px; height: 22px; fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(219,186,46,.35));
}
.scrollcue {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); opacity: 0.5; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

/* menu / secondary content */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.menu-cols .row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.menu-cols h3 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; margin-bottom: 12px; color: var(--accent); }

@media (max-width: 720px) {
  .chapter { padding: 12vh 7vw; }
  .menu-cols { grid-template-columns: 1fr; gap: 30px; }
  .specs { gap: 24px; }
  .hud { width: 60px; }
}

/* loading veil until the engine reports ready */
#veil { position: fixed; inset: 0; z-index: 9; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity 0.8s; }
#veil.gone { opacity: 0; pointer-events: none; }
/* era var(--serif) — variavel nunca definida neste arquivo (o certo seria
   --font-serif); o nome da marca na tela de carregamento caia no herdado
   font-sans e nunca mostrava a face de display. Corrigido para --font-brand,
   igual ao papel que a wordmark cumpre no build de referencia output/filum/site.css. */
#veil .mark { font-family: var(--font-brand); font-size: 40px; letter-spacing: 0.1em; }
#veil .bar { position: absolute; bottom: 20%; width: 160px; height: 1px; background: var(--hairline); overflow: hidden; }
#veil .bar i { position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }

/* CTA flutuante -- pedido de Jean: um convite visivel em qualquer ponto do
   scroll, nao so na secao final. Some quando a secao cta real ja esta na
   tela, para nao duplicar o mesmo convite lado a lado. */
.floating-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; text-decoration: none;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; box-shadow: 0 12px 34px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, filter .2s ease;
  pointer-events: none;
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta:hover { filter: brightness(1.12); }
.floating-cta .price { opacity: .78; font-weight: 500; }
@media (max-width: 620px) {
  .floating-cta { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 11px; }
}

/* assinatura real da marca, na secao "quem" -- em vez do h2 generico,
   a marca de verdade (logotipo/LOGOTIPO Jean Saraiva-20.svg, branco,
   transparente). Jean sentiu falta do logo real; aqui e onde ele mais
   faz sentido, porque a secao e sobre ele. */
.signature { max-width: 320px; width: 60%; height: auto; margin-bottom: 12px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); }
