/* ==========================================================================
   Rosa dos Rios — folha de estilo
   Regional + tech: meandros de rio e trilhas de circuito, papel quente, Lora + Poppins.
   Mobile-first. Sem estilos inline (CSP estrita): tudo vive aqui.
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* paleta */
  --papel: #F7F1EA;
  --papel-2: #EFE7DB;      /* faixas e seções tingidas */
  --cartao: #FFFCF7;       /* superfícies elevadas */
  --tinta: #1A1A17;
  --grafite: #5E584F;
  --linha: #D9D1C4;
  --linha-forte: #B9AF9F;  /* bordas de campos (≥3:1) */
  --ipe: #B8336A;
  --ipe-forte: #9C2757;    /* hover do botão primário */
  --rio: #2F5E73;
  --barro: #8A4F24;
  --mata: #1E4D3B;
  --acai: #4B2C5E;
  --sobre-ipe: #FFFCF7;
  --campo: #FFFDF9;
  --erro: #A3242E;
  --ok: #1E4D3B;
  --sombra: 0 1px 2px rgb(26 26 23 / .05), 0 8px 24px -12px rgb(26 26 23 / .18);
  --sombra-alta: 0 2px 4px rgb(26 26 23 / .06), 0 24px 48px -20px rgb(26 26 23 / .28);

  /* tipografia */
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --texto: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;

  /* medidas */
  --max: 1180px;
  --calha: clamp(16px, 4.5vw, 40px);
  --lado: max(var(--calha), calc((100% - var(--max)) / 2));
  --topo-h: 64px;
  --raio: 18px;
  --raio-p: 10px;
  --secao: clamp(56px, 8vw, 112px);

  /* grafismos (máscaras SVG em data URI; a cor vem de background-color) */
  --meandro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M-4 52c52 0 44 52 96 52s44 52 96 52 44 52 60 52'/%3E%3Cpath d='M-4 72c52 0 44 52 96 52s44 52 96 52 44 52 60 52' opacity='.55'/%3E%3Cpath d='M-4 92c52 0 44 52 96 52s44 52 96 52 44 52 60 52' opacity='.3'/%3E%3Ccircle cx='92' cy='104' r='4' fill='%23000' stroke='none'/%3E%3Ccircle cx='188' cy='156' r='4' fill='none'/%3E%3C/svg%3E");
  --correnteza: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 240' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 60h120l40 40h120c40 0 40 60 80 60h280'/%3E%3Cpath d='M0 84h108l40 40h132c52 0 52 60 104 60h256' opacity='.6'/%3E%3Cpath d='M0 108h96l40 40h144c64 0 64 60 128 60h232' opacity='.35'/%3E%3Ccircle cx='160' cy='100' r='4' fill='%23000'/%3E%3Ccircle cx='360' cy='160' r='4'/%3E%3Ccircle cx='560' cy='60' r='3' fill='%23000'/%3E%3Cpath d='M480 20v40h80' opacity='.5'/%3E%3C/svg%3E");
  --onda: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M1 4c4.5-4 9.5-4 14 0s9.5 4 14 0 7-3 10-1'/%3E%3C/svg%3E");
  --rosa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Ccircle cx='24' cy='24' r='20.5' stroke-width='1.5'/%3E%3Cpath d='M24 1.5v6M24 40.5v6M1.5 24h6M40.5 24h6' stroke-width='1.5'/%3E%3Cpath d='M15.5 32.5c4.5 0 2.5-6.5 7-7.5s5 4 8 1.5-2.5-7.5 1.5-10.5' stroke-width='3'/%3E%3C/svg%3E");

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papel: #141B17; --papel-2: #1A231E; --cartao: #1B241F;
    --tinta: #F1EAE0; --grafite: #A39B8F; --linha: #3A433D; --linha-forte: #5D675F;
    --ipe: #E8709E; --ipe-forte: #F08DB3; --rio: #7FB3CC; --barro: #D9965F; --mata: #7FB89A; --acai: #C4A2DC;
    --sobre-ipe: #141B17; --campo: #18201C; --erro: #F08A8A; --ok: #7FB89A;
    --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --sombra-alta: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papel: #141B17; --papel-2: #1A231E; --cartao: #1B241F;
  --tinta: #F1EAE0; --grafite: #A39B8F; --linha: #3A433D; --linha-forte: #5D675F;
  --ipe: #E8709E; --ipe-forte: #F08DB3; --rio: #7FB3CC; --barro: #D9965F; --mata: #7FB89A; --acai: #C4A2DC;
  --sobre-ipe: #141B17; --campo: #18201C; --erro: #F08A8A; --ok: #7FB89A;
  --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  --sombra-alta: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* cor de destaque por frente (padrão: rio; :where não pesa na especificidade) */
:where(.frente, .projeto, .pagina-cabeca) { --cor: var(--rio) }
:where(.status) { --st: var(--grafite) }
.cor-rio   { --cor: var(--rio) }
.cor-ipe   { --cor: var(--ipe) }
.cor-barro { --cor: var(--barro) }
.cor-mata  { --cor: var(--mata) }
.cor-acai  { --cor: var(--acai) }

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px) }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--papel); color: var(--tinta);
  font-family: var(--texto); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { flex: 1 0 auto; display: block }
main:focus { outline: none }
img, svg { max-width: 100%; height: auto }
img { display: block }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance }
p { margin: 0; text-wrap: pretty }
ul, ol { margin: 0; padding: 0 }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em }
a:hover { color: var(--ipe) }
strong { font-weight: 600 }
::selection { background: color-mix(in srgb, var(--ipe) 28%, transparent) }
:focus-visible { outline: 2.5px solid var(--ipe); outline-offset: 3px; border-radius: 6px }
[hidden] { display: none !important }
table { border-collapse: collapse }

.icone { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.2em; display: inline-block }

/* utilitários de acessibilidade */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 }
.pular {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: var(--papel);
  font-weight: 500; text-decoration: none; transform: translateY(-160%); transition: transform .2s;
}
.pular:focus, .pular:focus-visible { transform: none; color: var(--papel) }

/* largura do conteúdo: blocos do <main> ocupam a tela toda, com conteúdo limitado a --max */
main > section, main > article, .topo-in, .rodape-in, .rodape-base { padding-inline: var(--lado) }
main > article > section, main > article > header { padding-inline: 0 }

/* ── 3. Botões ─────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--texto); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.botao .icone { transition: transform .25s }
.botao:hover .icone { transform: translateX(3px) }
.botao:active { transform: translateY(1px) }
.botao:focus-visible { outline-offset: 3px; border-radius: 999px }
.botao-p { background: var(--ipe); color: var(--sobre-ipe); box-shadow: 0 6px 18px -10px var(--ipe) }
.botao-p:hover { background: var(--ipe-forte); color: var(--sobre-ipe) }
.botao-s { background: transparent; color: var(--tinta); border-color: color-mix(in srgb, var(--tinta) 55%, transparent) }
.botao-s:hover { border-color: var(--tinta); background: var(--tinta); color: var(--papel) }
.botao[disabled] { opacity: .6; cursor: progress }

/* ── 4. Cabeçalho ──────────────────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--papel) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--linha) 75%, transparent);
}
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: var(--topo-h) }
.marca {
  display: inline-flex; align-items: center; gap: .55em; flex: none;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em;
  color: var(--tinta); text-decoration: none; line-height: 1;
}
.marca:hover { color: var(--tinta) }
.logo-marca { width: 36px; height: 36px; color: var(--tinta); flex: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1) }
.marca:hover .logo-marca { transform: rotate(-20deg) }
.logo-rio { stroke: var(--ipe) }
.logo-foz { fill: var(--ipe) }

.menu-botao {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--linha); border-radius: 12px; background: var(--cartao); color: var(--tinta); cursor: pointer;
}
.menu-botao .icone { width: 22px; height: 22px }
.menu-botao[aria-expanded="true"] { background: var(--tinta); color: var(--papel); border-color: var(--tinta) }

.menu { display: flex; align-items: center; gap: 8px 4px }
.menu ul { list-style: none; display: flex; gap: 2px }
.menu ul a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; color: var(--grafite); text-decoration: none;
}
.menu ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 5px;
  background: var(--ipe); -webkit-mask: var(--onda) repeat-x left center / 20px 5px; mask: var(--onda) repeat-x left center / 20px 5px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.menu ul a:hover { color: var(--tinta) }
.menu ul a:hover::after, .menu ul a:focus-visible::after { transform: scaleX(1) }
.menu > .botao { min-height: 44px; padding-block: .55em; margin-left: 8px; font-size: .9375rem }

/* seletor de idioma */
.idiomas { position: relative }
.idiomas summary {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 12px; border-radius: 999px;
  list-style: none; cursor: pointer; color: var(--grafite);
  font: 500 .8125rem/1 var(--mono); letter-spacing: .08em;
}
.idiomas summary::-webkit-details-marker { display: none }
.idiomas summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.idiomas[open] summary::after { transform: translateY(1px) rotate(-135deg) }
.idiomas summary:hover { color: var(--tinta); background: var(--papel-2) }
.idiomas ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 176px;
  display: grid; gap: 0; padding: 6px; list-style: none;
  background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; box-shadow: var(--sombra-alta);
}
.idiomas ul a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px;
  font-size: .9375rem; color: var(--tinta); text-decoration: none;
}
.idiomas ul a::after { display: none }
.idiomas ul a:hover { background: var(--papel-2); color: var(--tinta) }
.idiomas ul a[aria-current="true"] { color: var(--ipe); font-weight: 600 }
.idiomas ul a[aria-current="true"]::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: currentColor }

/* menu no celular: painel que abre sob o cabeçalho (só com JS; sem JS o menu fica sempre visível) */
@media (max-width: 919.98px) {
  html.js .menu { display: none }
  html.js body.menu-aberto { overflow: hidden }
  /* backdrop-filter criaria um bloco de contenção para o painel fixo: desliga enquanto o menu está aberto */
  html.js body.menu-aberto .topo { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--papel) }
  html.js body.menu-aberto .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    position: fixed; inset: var(--topo-h) 0 0 0; z-index: 49; overflow-y: auto;
    padding: 20px var(--calha) 32px; background: var(--papel);
    border-top: 1px solid var(--linha);
    animation: desce .25s ease-out;
  }
  html.js body.menu-aberto .menu ul { flex-direction: column }
  html.js body.menu-aberto .menu > ul > li { border-bottom: 1px solid var(--linha) }
  html.js body.menu-aberto .menu > ul a {
    width: 100%; min-height: 60px; padding: 0 4px;
    font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--tinta);
  }
  html.js body.menu-aberto .menu > ul a::after { left: 4px; right: auto; width: 60px; bottom: 10px }
  html.js body.menu-aberto .idiomas summary { padding-left: 4px }
  html.js body.menu-aberto .idiomas ul { position: static; box-shadow: none; margin-top: 4px }
  html.js body.menu-aberto .menu > .botao { margin: 8px 0 0; min-height: 52px; font-size: 1rem }

  /* sem JS: marca em cima, menu em linha logo abaixo */
  html:not(.js) .topo { position: static }
  html:not(.js) .topo-in { flex-wrap: wrap; padding-block: 10px }
  html:not(.js) .menu { flex-wrap: wrap; width: 100%; justify-content: space-between }
  html:not(.js) .menu ul { flex-wrap: wrap }
  html:not(.js) .menu ul a { padding: 0 8px }
  html:not(.js) .menu > .botao { margin-left: 0 }
}
@media (min-width: 920px) {
  :root { --topo-h: 76px }
  .menu-botao { display: none }
}
@keyframes desce { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }

/* ── 5. Seções e títulos ───────────────────────────────────────────────── */
.secao { padding-block: var(--secao) }
.secao:not(.faixa, .origem) + .secao:not(.faixa, .origem) { padding-top: 0 }
.secao-cabeca { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px) }
.sobretitulo, .selo, .post-data, .projeto-meta, .migalha, .coord, .rodape h2 {
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.sobretitulo { display: flex; align-items: center; gap: 10px; color: var(--ipe) }
.sobretitulo::before {
  content: ""; flex: none; width: 28px; height: 8px;
  background: radial-gradient(circle at 4px 50%, currentColor 3px, transparent 3.5px), linear-gradient(currentColor, currentColor) 6px 50% / 22px 1.5px no-repeat;
}
.secao-cabeca h2 { margin-top: 14px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem) }
.secao-texto { margin-top: 16px; max-width: 60ch; color: var(--grafite); font-size: 1.0625rem }
.h2-simples { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 28px; display: flex; align-items: center; gap: 16px }
.h2-simples::after { content: ""; flex: 1; height: 1px; background: var(--linha) }
.vazio { padding: 24px; border: 1.5px dashed var(--linha); border-radius: var(--raio); color: var(--grafite); text-align: center }
.ver-todos { margin-top: 32px }
.ver-todos a {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-weight: 500; color: var(--ipe); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--ipe) 35%, transparent);
}
.ver-todos a:hover { border-color: var(--ipe) }
.ver-todos a:hover .icone { transform: translateX(3px) }
.ver-todos .icone { transition: transform .25s }

/* ── 6. Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; display: grid; gap: 24px; align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(32px, 6vw, 80px);
}
.hero::before { /* brilho suave atrás da arte */
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto auto; width: min(70vw, 820px); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rio) 12%, transparent), transparent);
  pointer-events: none;
}
.selo-hero {
  display: inline-flex; align-items: center; gap: .6em; padding: 7px 14px 7px 10px;
  border: 1px solid var(--linha); border-radius: 999px; background: color-mix(in srgb, var(--cartao) 70%, transparent);
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grafite);
}
.selo-hero .icone { color: var(--rio); width: 1.4em; height: 1.4em }
.hero h1 {
  margin-top: 24px; font-size: clamp(2.9rem, 1.4rem + 6.4vw, 5.6rem); font-weight: 500; line-height: 1;
  letter-spacing: -.025em;
}
.hero h1 em {
  position: relative; display: inline-block; font-style: italic; color: var(--ipe); padding-right: .04em;
}
.hero h1 em::after { /* meandro sublinhando "afluente" */
  content: ""; position: absolute; left: .04em; right: .08em; bottom: -.04em; height: .12em; opacity: .55;
  background: var(--ipe); -webkit-mask: var(--onda) repeat-x left center / .9em .18em; mask: var(--onda) repeat-x left center / .9em .18em;
}
.hero-sub { margin-top: 24px; max-width: 36rem; color: var(--grafite); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6 }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.hero-arte { width: 100%; max-width: 440px; justify-self: center; overflow: visible }
@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; min-height: min(78vh, 720px) }
  .hero-arte { max-width: 540px; justify-self: end }
}

/* desenho do hero */
.hero-arte .malha circle, .rios-arte .malha circle { fill: var(--linha) }
.hero-arte .rosa-aro { fill: none; stroke: var(--linha); stroke-width: 1 }
.hero-arte .rosa-aro-in { stroke-dasharray: 2 7; opacity: .9 }
.hero-arte .rosa-tracos { fill: none; stroke: var(--linha-forte); stroke-width: 1.2; stroke-linecap: round; opacity: .8 }
.hero-arte .rosa-norte { fill: var(--ipe) }
.hero-arte .afl { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round }
.hero-arte .afl-1 { stroke: var(--ipe) }
.hero-arte .afl-2 { stroke: var(--barro) }
.hero-arte .afl-5 { stroke: var(--rio) }
.hero-arte .afl-4 { stroke: var(--mata) }
.hero-arte .afl-3 { stroke: var(--acai) }
.hero-arte .pulso { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 1; opacity: 0 }
.hero-arte .rio-leito { fill: none; stroke: var(--rio); stroke-width: 30; stroke-linecap: round; opacity: .1 }
.hero-arte .rio-principal { fill: none; stroke-width: 10; stroke-linecap: round }
.hero-arte .g-rio-a { stop-color: var(--rio); stop-opacity: .55 }
.hero-arte .g-rio-b { stop-color: var(--rio) }
.hero-arte .vias circle { fill: var(--papel); stroke: var(--grafite); stroke-width: 1.5 }
.hero-arte .no { stroke: var(--papel); stroke-width: 3 }
.hero-arte .no-ipe { fill: var(--ipe) }
.hero-arte .no-barro { fill: var(--barro) }
.hero-arte .no-rio { fill: var(--rio) }
.hero-arte .no-mata { fill: var(--mata) }
.hero-arte .no-acai { fill: var(--acai) }
.hero-arte .no-foz { fill: var(--papel); stroke: var(--rio); stroke-width: 4 }
.hero-arte .foz-halo { fill: color-mix(in srgb, var(--rio) 12%, transparent); stroke: var(--rio); stroke-width: 1; stroke-dasharray: 3 4; transform-box: fill-box; transform-origin: center }
.hero-arte .coord { fill: var(--grafite); font-size: 13px; letter-spacing: .14em }

@media (prefers-reduced-motion: no-preference) {
  .hero-arte .afl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenha 1.5s cubic-bezier(.45, .05, .25, 1) forwards }
  .hero-arte .afl-1 { animation-delay: .1s }
  .hero-arte .afl-2 { animation-delay: .25s }
  .hero-arte .afl-5 { animation-delay: .4s }
  .hero-arte .afl-4 { animation-delay: .3s }
  .hero-arte .afl-3 { animation-delay: .15s }
  .hero-arte .rio-principal, .hero-arte .rio-leito { stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenha 1.6s 1.35s cubic-bezier(.3, .1, .2, 1) forwards }
  .hero-arte .no { transform-box: fill-box; transform-origin: center; animation: surge .5s cubic-bezier(.3, 1.5, .5, 1) backwards }
  .hero-arte .no-foz { animation-delay: 1.4s }
  .hero-arte .foz-halo { animation: gira 40s linear infinite }
  .hero-arte .pulso { animation: pulso 4.8s linear 3s infinite }
  .hero-arte .pulso.afl-1 { stroke: var(--ipe); animation-delay: 3s }
  .hero-arte .pulso.afl-2 { stroke: var(--barro); animation-delay: 4.4s }
  .hero-arte .pulso.afl-5 { stroke: var(--rio); animation-delay: 3.6s }
  .hero-arte .pulso.afl-4 { stroke: var(--mata); animation-delay: 5.2s }
  .hero-arte .pulso.afl-3 { stroke: var(--acai); animation-delay: 6s }
  .hero-texto > * { animation: sobe .7s cubic-bezier(.2, .7, .2, 1) backwards }
  .hero-texto > :nth-child(2) { animation-delay: .08s }
  .hero-texto > :nth-child(3) { animation-delay: .16s }
  .hero-texto > :nth-child(4) { animation-delay: .24s }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .hero-arte .pulso { display: none }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important }
}
@keyframes desenha { to { stroke-dashoffset: 0 } }
@keyframes surge { from { transform: scale(0) } }
@keyframes gira { to { transform: rotate(360deg) } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px) } }
@keyframes pulso {
  0% { stroke-dashoffset: 0; opacity: 0 }
  6% { opacity: .9 }
  30% { opacity: .9 }
  36%, 100% { stroke-dashoffset: -1; opacity: 0 }
}

/* ── 7. Frentes ────────────────────────────────────────────────────────── */
.frentes { list-style: none; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) }
.frente { min-width: 0 }
.frente > a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%;
  padding: 24px; border: 1px solid var(--linha); border-radius: var(--raio);
  background: var(--cartao); color: var(--tinta); text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.frente > a::before { /* trilho de cor no topo */
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--cor);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.frente > a:hover, .frente > a:focus-visible {
  color: var(--tinta); border-color: color-mix(in srgb, var(--cor) 55%, var(--linha));
  transform: translateY(-3px); box-shadow: var(--sombra-alta);
}
.frente > a:hover::before, .frente > a:focus-visible::before { transform: scaleX(1) }
.frente > a:focus-visible { outline-offset: 4px; border-radius: var(--raio) }
.frente-icone {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--cor) 13%, transparent); color: var(--cor);
  border: 1px solid color-mix(in srgb, var(--cor) 22%, transparent);
}
.frente-icone .icone { width: 24px; height: 24px }
.frente h3 { margin-top: 8px; font-size: 1.375rem }
.frente p { color: var(--grafite); font-size: .9375rem; line-height: 1.6 }
.frente .mais {
  margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: .45em;
  font-size: .875rem; font-weight: 500; color: var(--cor);
}
.frente .mais .icone { transition: transform .25s }
.frente > a:hover .mais .icone { transform: translateX(4px) }
.selo {
  position: absolute; top: 24px; right: 24px;
  padding: 5px 10px; border-radius: 999px; font-size: .6875rem; letter-spacing: .12em;
  color: var(--cor); background: color-mix(in srgb, var(--cor) 10%, var(--cartao)); border: 1px solid color-mix(in srgb, var(--cor) 35%, transparent);
}

/* frentes principais: maiores, com o meandro desenhado no canto */
.frente-principal > a { padding: clamp(24px, 3vw, 36px); gap: 12px; min-height: 300px }
.frente-principal > a::before { transform: scaleX(1); height: 4px }
.frente-principal > a::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 260px; height: 260px;
  background: var(--cor); opacity: .2; -webkit-mask: var(--meandro) no-repeat center / contain; mask: var(--meandro) no-repeat center / contain;
  transition: opacity .3s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.frente-principal > a:hover::after { opacity: .34; transform: translate(-8px, -8px) }
.frente-principal .frente-icone { width: 60px; height: 60px; border-radius: 16px }
.frente-principal .frente-icone .icone { width: 30px; height: 30px }
.frente-principal h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem) }
.frente-principal p { font-size: 1rem; max-width: 34ch }
.frente-principal .mais { font-size: .9375rem }

@media (min-width: 640px) {
  .frentes { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .frentes:not(.frentes-compactas) .frente-secundaria:last-child:nth-child(odd) { grid-column: 1 / -1 }
}
@media (min-width: 980px) {
  .frentes:not(.frentes-compactas) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px }
  .frentes:not(.frentes-compactas) .frente-principal { grid-column: span 3 }
  .frentes:not(.frentes-compactas) .frente-secundaria,
  .frentes:not(.frentes-compactas) .frente-secundaria:last-child:nth-child(odd) { grid-column: span 2 }
}
/* versão compacta (páginas das frentes) */
.frentes-compactas { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)) }
@media (min-width: 640px) { .frentes-compactas { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) } }
.frentes-compactas .frente > a { padding: 20px; gap: 8px }
.frentes-compactas .frente-icone { width: 40px; height: 40px; border-radius: 12px }
.frentes-compactas .frente-icone .icone { width: 20px; height: 20px }
.frentes-compactas h3 { font-size: 1.1875rem; margin-top: 4px }
.frentes-compactas p { font-size: .875rem }

/* ── 8. Projetos ───────────────────────────────────────────────────────── */
.projetos { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) }
.projeto { min-width: 0 }
.projeto > article {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  transition: box-shadow .25s, border-color .25s;
}
.projeto > article:hover { box-shadow: var(--sombra-alta); border-color: color-mix(in srgb, var(--cor) 40%, var(--linha)) }
.projeto-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--papel-2) }
.projeto-img-vazia {
  position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden;
  color: var(--cor);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--cor) 30%, transparent) 1.1px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(135deg, color-mix(in srgb, var(--cor) 16%, var(--cartao)), color-mix(in srgb, var(--cor) 6%, var(--cartao)));
  border-bottom: 1px solid color-mix(in srgb, var(--cor) 20%, var(--linha));
}
.projeto-img-vazia::before { /* meandro atravessando a área */
  content: ""; position: absolute; z-index: -1; inset: -10% -5%;
  background: var(--cor); opacity: .32; -webkit-mask: var(--correnteza) no-repeat center / cover; mask: var(--correnteza) no-repeat center / cover;
}
.projeto-img-vazia::after { /* o "nó" onde o ícone pousa */
  content: ""; position: absolute; z-index: -1; width: 112px; height: 112px; border-radius: 50%;
  background: var(--cartao); border: 1.5px solid color-mix(in srgb, var(--cor) 45%, transparent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--cor) 9%, transparent);
}
.projeto-img-vazia .icone { width: 52px; height: 52px; stroke-width: 1.4 }
.projeto-corpo { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 2.5vw, 28px) }
.projeto-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--cor); font-size: .6875rem }
.projeto h3 { font-size: 1.625rem }
.projeto-corpo > p:not(.projeto-meta) { color: var(--tinta); font-size: 1rem }
.projeto-desc { color: var(--grafite); font-size: .9375rem }
.projeto-desc p + p { margin-top: .6em }
.projeto-desc a { color: var(--ipe) }
.projeto-corpo > .botao { margin-top: auto }
.projeto-corpo > .projeto-desc + .botao, .projeto-corpo > p + .botao { margin-top: 8px }

/* pílula de status */
.status[class*="status-"] {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px;
  color: var(--st); background: color-mix(in srgb, var(--st) 11%, transparent); border: 1px solid color-mix(in srgb, var(--st) 30%, transparent);
  font-size: .6875rem; letter-spacing: .1em;
}
.status[class*="status-"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.status-no-ar { --st: var(--mata) }
.status-no-ar::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mata) 22%, transparent) }
.status-beta { --st: var(--rio) }
.status-em-desenvolvimento { --st: var(--barro) }
.status-em-breve { --st: var(--acai) }
.status-em-breve::before { background: transparent; border: 1.5px solid currentColor }
@media (prefers-reduced-motion: no-preference) {
  .status-no-ar::before { animation: respira 2.4s ease-in-out infinite }
}
@keyframes respira { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mata) 8%, transparent) } }

/* um único projeto ganha cartão horizontal */
@media (min-width: 760px) {
  .projetos:has(> .projeto:only-child) { grid-template-columns: minmax(0, 1fr) }
  .projetos > .projeto:only-child > article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) }
  .projetos > .projeto:only-child .projeto-img { height: 100%; min-height: 320px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--cor) 20%, var(--linha)) }
  .projetos > .projeto:only-child .projeto-corpo { padding: clamp(28px, 4vw, 48px); justify-content: center }
  .projetos > .projeto:only-child h3 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.6rem) }
  .projetos > .projeto:only-child .projeto-img-vazia::after { width: 150px; height: 150px }
  .projetos > .projeto:only-child .projeto-img-vazia .icone { width: 68px; height: 68px }
}

/* ── 9. Origem (rios e nomes) ──────────────────────────────────────────── */
.origem { position: relative; background: var(--papel-2); border-block: 1px solid var(--linha) }
.origem-grade { display: grid; gap: 32px; align-items: center }
.origem .secao-cabeca { margin-bottom: 24px }
.rios-lista { list-style: none; display: flex; flex-wrap: wrap; gap: 8px }
.rios-lista li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--linha); border-radius: 999px; background: var(--cartao);
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grafite);
}
.rios-lista li::before { content: ""; width: 14px; height: 4px; background: var(--rio); -webkit-mask: var(--onda) repeat-x left center / 14px 4px; mask: var(--onda) repeat-x left center / 14px 4px }
.rios-lista li:first-child { color: var(--rio); border-color: color-mix(in srgb, var(--rio) 45%, var(--linha)) }
.rios-arte { width: 100%; max-width: 560px; justify-self: center; overflow: visible }
.rios-arte .r { fill: none; stroke: var(--rio); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8 }
.rios-arte .r-madeira { stroke-width: 8; opacity: 1 }
.rios-arte .r-mamore { stroke-width: 4 }
.rios-arte .r-guapore { stroke-width: 3.2 }
.rios-arte .r-beni { stroke-width: 3; stroke-dasharray: 1 6; opacity: .7 }
.rios-arte .confluencias circle { fill: var(--papel-2); stroke: var(--rio); stroke-width: 2 }
.rios-arte .norte path { stroke: var(--grafite); stroke-width: 1.5; fill: var(--grafite) }
.rios-arte .norte text { fill: var(--grafite); font: 600 12px var(--mono); text-anchor: middle }
.rios-arte .rotulo { fill: var(--grafite); font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase }
.rios-arte .rotulo-fim { text-anchor: end }
.rios-arte .rotulo-madeira { fill: var(--rio); font: italic 600 26px var(--display); letter-spacing: 0; text-transform: none }

.nome {
  display: grid; gap: 16px 64px; margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--linha);
}
.nome h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem) }
.nome > p:not(.lema) { color: var(--grafite); max-width: 44ch }
.nomes { width: 100%; font-size: .9375rem }
.nomes tr { border-bottom: 1px dashed var(--linha) }
.nomes tr:first-child { border-top: 1px dashed var(--linha) }
.nomes th, .nomes td { padding: 14px 8px 14px 0; text-align: left; vertical-align: baseline }
.nomes th { width: 3.5em; font: 500 .75rem/1 var(--mono); letter-spacing: .14em; color: var(--ipe) }
.nomes td strong { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.25rem }
.nomes td:last-child { color: var(--grafite); font-size: .875rem; text-align: right; padding-right: 0 }
.lema {
  font-family: var(--display); font-style: italic; font-weight: 500; line-height: 1.15;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); color: var(--tinta);
}
.nome .lema { margin-top: 8px }
.nome .lema::before { content: ""; display: block; width: 56px; height: 8px; margin-bottom: 18px; background: var(--ipe); -webkit-mask: var(--onda) repeat-x left center / 28px 8px; mask: var(--onda) repeat-x left center / 28px 8px }
@media (min-width: 880px) {
  .origem-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px }
  .nome { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "t tab" "p tab" "l tab"; align-content: start }
  .nome h3 { grid-area: t }
  .nome > p:not(.lema) { grid-area: p }
  .nome .lema { grid-area: l; align-self: end }
  .nomes { grid-area: tab; align-self: start }
}
@media (max-width: 479.98px) {
  .nomes td:last-child { display: none }
}

/* ── 10. Novidades ─────────────────────────────────────────────────────── */
.posts { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) }
.post > article {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--cartao);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.post > article:hover { border-color: color-mix(in srgb, var(--ipe) 40%, var(--linha)); box-shadow: var(--sombra-alta); transform: translateY(-2px) }
.post h3 { font-size: 1.375rem }
.post h3 a { text-decoration: none }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--raio) }
.post h3 a:focus-visible { outline: none }
.post h3 a:focus-visible::after { outline: 2.5px solid var(--ipe); outline-offset: 3px }
.post > article > p:last-child { color: var(--grafite); font-size: .9375rem }
.post-data { color: var(--grafite); display: flex; align-items: center; gap: 8px }
.post .post-data::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ipe) }

/* lista completa: linhas com a data na margem */
.posts-lista { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--linha) }
.posts-lista .post > article { border: 0; border-bottom: 1px solid var(--linha); border-radius: 0; background: none; padding: 28px 0 }
.posts-lista .post > article:hover { box-shadow: none; transform: none }
.posts-lista .post > article:hover h3 a { color: var(--ipe) }
@media (min-width: 760px) {
  .posts-lista .post > article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 32px; padding: 36px 0 }
  .posts-lista .post-data { grid-row: span 2; padding-top: .55em }
  .posts-lista .post h3 { font-size: 1.75rem }
}

/* ── 11. Páginas internas ──────────────────────────────────────────────── */
.pagina-cabeca {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--linha);
}
.pagina-cabeca::after { /* meandro decorativo à direita */
  content: ""; position: absolute; z-index: -1; top: 50%; right: max(-120px, calc(var(--lado) - 140px)); width: clamp(260px, 38vw, 480px); aspect-ratio: 1;
  transform: translateY(-50%); background: var(--cor); opacity: .16;
  -webkit-mask: var(--meandro) no-repeat center / contain; mask: var(--meandro) no-repeat center / contain;
}
.pagina-cabeca h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); letter-spacing: -.02em; max-width: 18ch; line-height: 1.05 }
.pagina-cabeca .sobretitulo { margin-bottom: 16px }
.pagina-cabeca .hero-sub { margin-top: 20px; max-width: 40rem }
.pagina-cabeca .post-data { margin-top: 20px }
.frente-cabeca { background: linear-gradient(180deg, color-mix(in srgb, var(--cor) 7%, transparent), transparent 85%) }
.frente-cabeca .frente-icone.grande { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 24px }
.frente-cabeca .frente-icone.grande .icone { width: 36px; height: 36px }
.frente-cabeca::after { opacity: .26 }
.migalha { margin-bottom: 28px }
.migalha a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--grafite); text-decoration: none }
.migalha a::before { content: "←"; content: "←" / ""; font-family: var(--texto); font-size: 1rem; letter-spacing: 0; transition: transform .25s }
.migalha a:hover { color: var(--ipe) }
.migalha a:hover::before { transform: translateX(-3px) }

/* serviços de uma frente */
.servicos { list-style: none; counter-reset: servico; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) }
.servicos li {
  counter-increment: servico; position: relative; padding: 22px 22px 22px 24px;
  border: 1px solid var(--linha); border-radius: var(--raio); background: var(--cartao);
  font-weight: 500; font-size: 1.0625rem; line-height: 1.4;
}
.servicos li::before {
  content: counter(servico, decimal-leading-zero); display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .14em; color: var(--cor);
}
.servicos li::after { content: ""; position: absolute; left: 52px; right: 22px; top: 28px; height: 1.5px; background: linear-gradient(90deg, color-mix(in srgb, var(--cor) 45%, transparent), transparent) }

/* artigos e textos longos */
.artigo { padding-bottom: var(--secao) }
.artigo > .aviso { margin-top: 32px; max-width: 68ch }
.prosa { max-width: 68ch; padding-top: clamp(32px, 5vw, 56px); font-size: 1.0625rem; line-height: 1.75 }
.prosa > * + * { margin-top: 1.1em }
.prosa h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem) }
.prosa h3 { margin-top: 1.7em; font-size: 1.35rem }
.prosa h2 + *, .prosa h3 + * { margin-top: .6em }
.prosa a { color: var(--ipe); text-decoration-thickness: 1.5px }
.prosa a:hover { text-decoration-thickness: 2.5px }
.prosa ul, .prosa ol { padding-left: 1.4em }
.prosa ul { list-style: none; padding-left: 1.6em }
.prosa ul li { position: relative }
.prosa ul li::before { content: ""; position: absolute; left: -1.25em; top: .72em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ipe) }
.prosa li + li { margin-top: .5em }
.prosa ol li::marker { font-family: var(--mono); color: var(--ipe); font-size: .875em }
.prosa blockquote {
  margin-inline: 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--ipe);
  font-family: var(--display); font-style: italic; font-size: 1.25em; line-height: 1.5; color: var(--tinta);
}
.prosa code { font-family: var(--mono); font-size: .875em; padding: .15em .4em; border-radius: 6px; background: var(--papel-2); border: 1px solid var(--linha) }
.prosa pre { overflow-x: auto; padding: 18px 20px; border-radius: 12px; background: var(--papel-2); border: 1px solid var(--linha) }
.prosa pre code { padding: 0; border: 0; background: none }
.prosa img { border-radius: 12px; height: auto }
.prosa hr { border: 0; height: 8px; margin-block: 2.5em; background: var(--linha); -webkit-mask: var(--onda) repeat-x center / 28px 8px; mask: var(--onda) repeat-x center / 28px 8px; width: 112px }
.prosa table { width: 100%; font-size: .9375rem }
.prosa th, .prosa td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linha); text-align: left }

.aviso {
  padding: 14px 18px 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--barro) 35%, var(--linha));
  border-left: 4px solid var(--barro); background: color-mix(in srgb, var(--barro) 8%, var(--papel));
  color: var(--tinta); font-size: .9375rem;
}
.aviso a { color: var(--ipe) }

/* página de aviso / 404 */
.aviso-pagina { text-align: center; display: flex; flex-direction: column; align-items: center; padding-block: clamp(72px, 12vw, 152px); border-bottom: 0 }
.aviso-pagina::before {
  content: ""; width: 84px; height: 84px; margin-bottom: 32px; background: var(--ipe);
  -webkit-mask: var(--rosa) no-repeat center / contain; mask: var(--rosa) no-repeat center / contain;
}
.aviso-pagina::after { display: none }
.aviso-pagina h1 { max-width: 20ch }
.aviso-pagina .hero-sub { margin-inline: auto }
.aviso-pagina p:last-child { margin-top: 32px }
@media (prefers-reduced-motion: no-preference) { .aviso-pagina::before { animation: oscila 6s ease-in-out infinite } }
@keyframes oscila { 0%, 100% { transform: rotate(-12deg) } 50% { transform: rotate(12deg) } }

/* ── 12. Faixa da newsletter ───────────────────────────────────────────── */
.faixa {
  position: relative; isolation: isolate; overflow: hidden;
  background: color-mix(in srgb, var(--rio) 11%, var(--papel));
  border-block: 1px solid color-mix(in srgb, var(--rio) 22%, var(--linha));
}
.faixa::before {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -30px; width: min(900px, 110%); height: 340px;
  background: var(--rio); opacity: .2; -webkit-mask: var(--correnteza) no-repeat right bottom / contain; mask: var(--correnteza) no-repeat right bottom / contain;
}
.faixa-grade { display: grid; gap: 40px }
.faixa h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem) }
.faixa-grade > div > p { margin-top: 12px; color: var(--grafite); max-width: 48ch }
.faixa .form-news { margin-top: 28px }
.faixa-redes { align-self: center }
.faixa-redes h3 { font-size: 1.5rem }
.faixa-redes > .botao { margin-top: 20px }
@media (min-width: 880px) {
  .faixa-grade { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 72px }
  .faixa-redes { padding-left: 48px; border-left: 1px solid color-mix(in srgb, var(--rio) 25%, var(--linha)) }
}
.news-linha { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px }
.news-linha input { flex: 1 1 240px; min-width: 0; border-radius: 999px; padding-inline: 20px; background: var(--cartao) }
.news-linha .botao { flex: 0 0 auto }
.form-news .campo-check { margin-top: 16px; max-width: 560px }

/* redes sociais */
.redes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px }
.rede {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--linha); color: var(--tinta); background: var(--cartao); transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.rede:hover { background: var(--tinta); color: var(--papel); border-color: var(--tinta); transform: translateY(-2px) }
.rede .icone { width: 20px; height: 20px }
.redes-grandes .rede { width: 56px; height: 56px }
.redes-grandes .rede .icone { width: 24px; height: 24px }

/* ── 13. Contato e formulários ─────────────────────────────────────────── */
.contato-grade { display: grid; gap: 40px }
.contato-info dl { margin: 8px 0 0; display: grid; gap: 6px }
.contato-info dt { margin-top: 18px; font: 500 .75rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grafite) }
.contato-info dd { margin: 0 }
.contato-info dd > a {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px; overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 500; color: var(--tinta); text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ipe) 40%, transparent);
}
.contato-info dd > a:hover { color: var(--ipe); border-color: var(--ipe) }
.contato-info dd > a .icone { color: var(--ipe) }
.contato-info .redes { margin-top: 4px }
.contato .form {
  padding: clamp(20px, 3.5vw, 40px); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 4px);
  background: var(--cartao); box-shadow: var(--sombra);
}
@media (min-width: 900px) {
  .contato-grade { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start }
  .contato-info { position: sticky; top: calc(var(--topo-h) + 32px) }
}

.form { display: grid; gap: 18px }
.campos-2 { display: grid; gap: 18px }
@media (min-width: 560px) { .campos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.campo { display: grid; gap: 6px; min-width: 0 }
.campo > label { font-size: .875rem; font-weight: 500; color: var(--tinta) }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; margin: 0;
  font: 400 1rem/1.4 var(--texto); color: var(--tinta);
  background: var(--campo); border: 1.5px solid var(--linha-forte); border-radius: var(--raio-p);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 148px; resize: vertical }
select {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--grafite) 50%), linear-gradient(135deg, var(--grafite) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
::placeholder { color: var(--grafite); opacity: .85 }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: var(--grafite) }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ipe); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ipe) 22%, transparent);
}
[aria-invalid="true"]:not([type="checkbox"]) { border-color: var(--erro) !important; background-color: color-mix(in srgb, var(--erro) 6%, var(--campo)) }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--erro) 22%, transparent) !important }
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid var(--erro); outline-offset: 2px }
.campo-erro { color: var(--erro); font-size: .8125rem; font-weight: 500; line-height: 1.4 }
.campo-erro:empty { display: none }
.campo-erro:not(:empty)::before { content: "! "; content: "! " / ""; font-family: var(--mono); font-weight: 700 }

.campo-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start }
.campo-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ipe); cursor: pointer }
.campo-check label { font-size: .875rem; color: var(--grafite); line-height: 1.5; cursor: pointer }
.campo-check label a { color: var(--ipe) }
.campo-check .campo-erro { grid-column: 2 }

.armadilha { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden }
.cf-turnstile { min-height: 65px; margin-block: 4px }
.form-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px }
.form .status:not([class*="status-"]) { font-size: .9375rem; font-weight: 500; color: var(--grafite) }
.form .status:empty { display: none }
.form .status.ok, .form .status.erro {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px;
}
.form .status.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent) }
.form .status.erro { color: var(--erro); background: color-mix(in srgb, var(--erro) 8%, transparent); border: 1px solid color-mix(in srgb, var(--erro) 30%, transparent) }
.form .status.ok::before, .form .status.erro::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: currentColor }
.form-acoes .status { flex: 1 1 220px }
.form-news .status { margin-top: 14px; max-width: 560px }
.form .aviso { margin: 0 }

/* ── 14. Rodapé ────────────────────────────────────────────────────────── */
.rodape {
  /* rodapé sempre escuro: reaproveita os tokens do modo escuro */
  --papel: #111814; --papel-2: #18211C; --cartao: #18211C;
  --tinta: #F1EAE0; --grafite: #A9A195; --linha: #2E3832; --ipe: #E8709E; --rio: #7FB3CC;
  position: relative; margin-top: auto; padding-top: clamp(56px, 8vw, 96px);
  background: var(--papel); color: var(--tinta); color-scheme: dark;
}
.rodape::before { /* um rio corre pela borda de cima */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; opacity: .55;
  background: linear-gradient(90deg, var(--ipe), #D9965F 25%, var(--rio) 50%, #7FB89A 75%, #C4A2DC);
  -webkit-mask: var(--onda) repeat-x left center / 40px 10px; mask: var(--onda) repeat-x left center / 40px 10px;
}
.rodape-in { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: clamp(40px, 6vw, 72px) }
.rodape-marca { grid-column: 1 / -1 }
.rodape .marca { color: var(--tinta); font-size: 1.375rem }
.rodape .logo-marca { color: var(--tinta); width: 40px; height: 40px }
.rodape-marca > p { margin-top: 16px; max-width: 34ch; color: var(--grafite); font-size: .9375rem }
.rodape .rede { background: transparent }
.rodape h2 { color: var(--grafite); font-size: .6875rem; margin-bottom: 12px }
.rodape nav ul { list-style: none; display: grid; gap: 0 }
.rodape nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--tinta); text-decoration: none; font-size: .9375rem }
.rodape nav a:hover { color: var(--ipe) }
.rodape-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linha);
  color: var(--grafite); font-size: .8125rem;
}
.rodape-base .lema { font-size: 1.125rem; color: var(--tinta) }
@media (min-width: 760px) {
  .rodape-in { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) }
  .rodape-marca { grid-column: auto }
}
@media (max-width: 479.98px) {
  .rodape nav[aria-label] + nav + nav { grid-column: 1 / -1 }
}

/* ── 15. Banner de cookies ─────────────────────────────────────────────── */
.cookies {
  position: fixed; z-index: 80; left: var(--calha); right: var(--calha); bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 560px; margin-inline: auto; display: grid; gap: 14px;
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--linha);
  background: var(--cartao); box-shadow: var(--sombra-alta); font-size: .9375rem;
}
.cookies a { color: var(--ipe) }
.cookies-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end }
.cookies-acoes .botao { min-height: 44px; padding-block: .5em; flex: 1 1 auto }
@media (min-width: 560px) { .cookies-acoes .botao { flex: 0 0 auto } }
@media (prefers-reduced-motion: no-preference) { .cookies:not([hidden]) { animation: sobe .4s ease-out } }

/* ── 16. Impressão ─────────────────────────────────────────────────────── */
@media print {
  .topo, .faixa, .cookies, .menu-botao, .hero-arte, .rodape::before, .form, .pular { display: none !important }
  body { background: #fff; color: #000 }
  .rodape { --papel: #fff; --tinta: #000; --grafite: #444; background: #fff }
}
