/* Pele ember das páginas de projeto em /alt/ — mesmos tokens da home alternativa (_src/i18n/home-alt.template.html).
   Dither só na atmosfera (canvas procedural); foto que prova alguma coisa entra sem filtro. */
:root {
  --night: #0d0906;
  --night-2: #17100b;
  --ember: #c23a00;
  --ember-deep: #8f2600;
  --flame: #f26a1b;
  --gold: #f2b544;
  --ink: #f4ebe0;
  --ink-rgb: 244, 235, 224;
  --ink-60: rgba(var(--ink-rgb), .62);
  --ink-20: rgba(var(--ink-rgb), .16);
  --shade: 13, 9, 6;
  --stage-top: #b83600;
  --stage-bottom: #8f2600;
  --stage-fade: #a32d00;
  --frame: rgba(242, 106, 27, .45);
  --btn: #2a1d14;
  --btn-hover: #3a281b;
  --art-bg: rgba(40, 10, 0, .35);
  --atmo: 60 12 0, 170 46 0, 242 106 27, 242 181 68, 246 236 222; /* paleta do dither, do escuro ao claro */
  --display: "Antonio", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 72px);
}
/* Mesma estrutura nas três páginas, cor pelo assunto: Pantera em ocre,
   ForeFire em vegetação com a frente de fogo laranja, agentes em aço frio. */
html[data-skin="forefire"] {
  --night: #070b08;
  --night-2: #0e1610;
  --ember: #2f6b34;
  --ember-deep: #1a4220;
  --gold: #c8dc7a;
  --ink: #edf0e4;
  --ink-rgb: 237, 240, 228;
  --shade: 7, 11, 8;
  --stage-top: #2a5e2e;
  --stage-bottom: #163a1b;
  --stage-fade: #1f4a23;
  --frame: rgba(120, 170, 90, .45);
  --btn: #15241a;
  --btn-hover: #203424;
  --art-bg: rgba(8, 30, 12, .35);
  --atmo: 8 26 12, 30 78 36, 84 136 64, 242 106 27, 246 220 160;
}
html[data-skin="agents"] {
  --night: #07090c;
  --night-2: #0e131a;
  --ember: #3a4e63;
  --ember-deep: #253446;
  --flame: #8fb2d6;
  --gold: #d3e1ee;
  --ink: #eef1f4;
  --ink-rgb: 238, 241, 244;
  --shade: 7, 9, 12;
  --stage-top: #3d5268;
  --stage-bottom: #24334a;
  --stage-fade: #2e4057;
  --frame: rgba(143, 178, 214, .4);
  --btn: #161d27;
  --btn-hover: #222c3a;
  --art-bg: rgba(10, 18, 30, .35);
  --atmo: 12 18 26, 40 58 80, 92 124 158, 158 188 218, 238 242 247;
}
/* Pantera em ocre (amarelo siena): hero, números e provas no bloco colorido, como nas outras páginas */
html[data-skin="pantera"] {
  --night: #0e0b06;
  --night-2: #181208;
  --flame: #e3a83c;
  --gold: #f4d58a;
  --shade: 14, 11, 6;
  --stage-top: #a8700e;
  --stage-bottom: #33180a;
  --stage-fade: #a8700e;
  --frame: rgba(227, 168, 60, .45);
  --btn: #2a2010;
  --btn-hover: #3a2c16;
  --art-bg: rgba(40, 26, 0, .35);
  --atmo: 40 26 4, 120 80 10, 196 140 40, 236 196 110, 246 236 214;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night); color: var(--ink); font-family: var(--body);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  border: 1px solid var(--frame);
}
a { color: inherit; }
::selection { background: var(--flame); color: var(--night); }
.label { font-stretch: 125%; font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 200; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
@view-transition { navigation: auto; }
::view-transition-group(pantera-art), ::view-transition-group(agents-art), ::view-transition-group(forefire-art) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
:lang(pt) .display { line-height: 1; }
.mono { font-family: var(--mono); }

/* nav */
nav.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 28px var(--gutter) 0; }
nav.top .side { display: flex; gap: clamp(16px, 5vw, 90px); }
nav.top .side.right { justify-content: flex-end; }
nav.top a { text-decoration: none; opacity: .85; }
nav.top a:hover { opacity: 1; color: var(--gold); }
nav.top .social { display: flex; align-items: center; gap: 14px; }
nav.top .social svg { width: 15px; height: 15px; display: block; }
.sigil { width: 34px; height: 34px; border: 1px solid var(--ink-60); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; }

/* hero: atmosfera dither procedural */
.stage { margin: clamp(10px, 1.4vw, 20px) var(--gutter) 0; background: linear-gradient(180deg, var(--stage-top) 0%, var(--stage-bottom) 100%); position: relative; overflow: hidden; }
/* Pantera: o corpo sai do ocre claro da base do hero e desce em degradê até a ferrugem escura */
html[data-skin="pantera"] .stage:not(.end) { background: linear-gradient(180deg, var(--stage-top) 0, var(--stage-top) min(78vh, 780px), #6e3f12 55%, var(--stage-bottom) 100%); }
.hero { position: relative; min-height: min(78vh, 780px); display: flex; flex-direction: column; overflow: hidden; }
canvas.atmo { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 46% at 50% 54%, rgba(var(--shade), .55), rgba(var(--shade), 0) 100%),
    linear-gradient(180deg, rgba(var(--shade), .5) 0%, rgba(var(--shade), 0) 24%, rgba(var(--shade), 0) 72%, var(--stage-fade) 100%);
}
.hero > :not(canvas) { position: relative; z-index: 2; }
/* agentes: o fluxo fica fora de foco e apagado, como fundo; o título é o que se lê */
canvas.atmo[data-kind="flow"] { filter: blur(1.5px); opacity: .8; }
/* ForeFire: a fumaça tem brasa de verdade na base; o fade pro verde da página começa mais tarde pra não apagá-la */
html[data-skin="forefire"] .hero::after {
  background:
    radial-gradient(ellipse 60% 46% at 50% 54%, rgba(var(--shade), .55), rgba(var(--shade), 0) 100%),
    linear-gradient(180deg, rgba(var(--shade), .5) 0%, rgba(var(--shade), 0) 24%, rgba(var(--shade), 0) 86%, var(--stage-fade) 100%);
}
.hero .inner { margin: auto 0; text-align: center; padding: 48px var(--gutter) 88px; text-shadow: 0 1px 18px rgba(var(--shade), .7); }
.hero .label { margin-bottom: 22px; }
.hero h1 { font-size: clamp(76px, 17vw, 280px); }
.hero .facts { margin-top: 26px; font-family: var(--mono); font-size: clamp(14px, 1.5vw, 19px); letter-spacing: .06em; text-transform: uppercase; color: rgba(var(--ink-rgb), .85); }
.hero .lede { max-width: 680px; margin: 30px auto 0; font-family: var(--display); font-weight: 300; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.14; }
.btns { display: flex; justify-content: center; gap: 4px; margin-top: 30px; flex-wrap: wrap; }
.btn { font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 9px 12px; background: var(--btn); transition: background .15s; }
.btn:hover { background: var(--btn-hover); }
.btn.primary { background: var(--flame); color: var(--night); }
.btn.primary:hover { background: var(--gold); }

.gauges { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px var(--gutter) 0; border-top: 1px solid rgba(var(--ink-rgb), .3); }
.gauge { padding: 22px 18px 0 0; }
.gauge + .gauge { padding-left: 18px; border-left: 1px solid rgba(var(--ink-rgb), .3); }
.gauge .n { font-family: var(--display); font-weight: 200; font-size: clamp(64px, 9vw, 136px); line-height: .9; }
.gauge .n small { font-size: .4em; font-weight: 300; }
.gauge p { font-size: 12.5px; margin-top: 10px; max-width: 280px; }

/* linhas de prova: foto/vídeo real ao lado do texto */
.rows { padding: 88px 0 40px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 0 0 0 var(--gutter); margin-bottom: 80px; }
.row.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 0 var(--gutter) 0 0; }
.row.flip .copy { order: 2; }
.row:last-child { margin-bottom: 0; }
.row .label { margin-bottom: 14px; }
.row h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.6vw, 50px); line-height: .98; margin-bottom: 16px; text-transform: uppercase; }
.row p { font-size: 13.5px; max-width: 400px; }
.row p + p { margin-top: 10px; }
.row .facts { margin-top: 18px; border-top: 1px solid rgba(var(--ink-rgb), .3); max-width: 400px; }
.row .facts li { list-style: none; padding: 10px 0; border-bottom: 1px solid rgba(var(--ink-rgb), .3); font-size: 13px; display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.row .facts li b { font-family: var(--mono); font-size: 11.5px; color: var(--ink); padding-top: 1px; }

/* foto como atmosfera: dither no canvas, sem afirmar nada */
.art { position: relative; background: var(--art-bg); border-top: 1px solid rgba(var(--ink-rgb), .14); border-bottom: 1px solid rgba(var(--ink-rgb), .14); aspect-ratio: 16 / 9; overflow: hidden; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }

/* moldura de evidência: a imagem fica crua, sem filtro */
.proof { margin: 0; background: var(--night); border: 1px solid rgba(var(--ink-rgb), .22); }
.proof .head, .proof .foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-60); }
.proof .head { border-bottom: 1px solid var(--ink-20); }
.proof .head b { color: var(--gold); font-weight: 600; }
.proof .foot { border-top: 1px solid var(--ink-20); }
.proof .view { position: relative; line-height: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.proof .view img, .proof .view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof .view.map { aspect-ratio: 4 / 3; }
.box {
  position: absolute; border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(var(--shade), .45);
  opacity: 0; transform: scale(1.1); transition: opacity .5s ease .6s, transform .9s cubic-bezier(.16, 1, .3, 1) .6s;
}
.proof.in .box { opacity: 1; transform: none; }
.box i { position: absolute; width: 11px; height: 11px; border: 1.5px solid var(--gold); }
.box .tl { top: -1.5px; left: -1.5px; border-right: 0; border-bottom: 0; }
.box .tr { top: -1.5px; right: -1.5px; border-left: 0; border-bottom: 0; }
.box .bl { bottom: -1.5px; left: -1.5px; border-right: 0; border-top: 0; }
.box .br { bottom: -1.5px; right: -1.5px; border-left: 0; border-top: 0; }
.box .tag {
  position: absolute; top: -1px; left: -1px; transform: translateY(-100%);
  background: var(--gold); color: var(--night); font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 3px 7px; white-space: nowrap; line-height: 1.3; text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* seções noturnas */
section.night { padding: 120px var(--gutter) 30px; }
.center { text-align: center; }
.glyph { font-family: var(--mono); color: var(--flame); font-size: 13px; letter-spacing: .3em; margin-bottom: 22px; }
section.night h2 { font-size: clamp(52px, 10vw, 170px); }
.night .lead { max-width: 720px; margin: 34px auto 0; font-size: 15px; }
.night .lead b { color: var(--gold); font-weight: 600; }
.log { max-width: 1180px; margin: 50px auto 0; border-top: 1px solid var(--ink-20); }
.log li { list-style: none; display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--ink-20); }
.log .k { font-family: var(--mono); font-size: 11px; color: var(--flame); text-transform: uppercase; letter-spacing: .06em; }
.log p { font-size: 14px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.chip { font-family: var(--mono); font-size: 11px; padding: 5px 9px; border: 1px solid var(--ink-20); color: var(--ink-60); }

footer { margin-top: 130px; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--flame); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
footer .display { font-size: clamp(40px, 7vw, 96px); }
footer > div { flex: 1 1 360px; } /* rótulo longo (agentes) quebra dentro do bloco em vez de empurrar a nav pra baixo */
footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.row.reveal { opacity: 1; } /* foto de prova nunca aparece tingida pelo fundo durante o fade */

@media (max-width: 820px) {
  nav.top { grid-template-columns: 1fr auto 1fr; }
  nav.top .side { gap: 16px; }
  .gauges { grid-template-columns: 1fr; }
  .gauge + .gauge { padding-left: 0; border-left: 0; border-top: 1px solid rgba(var(--ink-rgb), .3); margin-top: 22px; }
  .row, .row.flip { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .row.flip .copy { order: 0; }
  .proof .head span:last-child { display: none; }
  .proof .foot { flex-direction: column; gap: 2px; }
  .log li { grid-template-columns: 1fr; gap: 6px; }
  .hero { min-height: 74svh; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .box { opacity: 1; transform: none; transition: none; }
}

/* moldura que mantém a proporção da própria captura, sem corte */
.proof .view.native { aspect-ratio: auto; }
.proof .view.native img { height: auto; }

/* foto de campo: crua, tamanho médio, sem a moldura de saída do sistema */
.field { margin: 0; justify-self: center; width: min(100%, 440px); }
.field img { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; object-position: 50% 100%; display: block; border: 1px solid rgba(var(--ink-rgb), .22); }
.field figcaption { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-60); }

/* bloco colorido só no hero: provas e números ficam no fundo noturno, com gutter dos dois lados */
main > .rows .row, main > .rows .row.flip { padding: 0 var(--gutter); }

/* fecho em brasa: o contato, igual ao das outras seções, sobre o mesmo fundo colorido do hero */
.stage.end { margin-top: 120px; }
.stage.end::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(var(--shade), .55), rgba(var(--shade), 0) 100%);
}
.stage.end > section { position: relative; z-index: 2; padding: 110px var(--gutter) 100px; text-shadow: 0 1px 18px rgba(var(--shade), .7); }

/* atalho discreto para versao standard */
.egg { font-family: var(--mono); text-decoration: none; color: inherit; opacity: .35; margin-left: 6px; font-size: 13px; vertical-align: middle; transition: opacity .2s, color .2s; }
.egg:hover, .egg:focus-visible { opacity: 1; color: var(--gold); }
