/* Zavra · sistema visual único (direção Horizonte)
   A marca é sóbria: tinta, papel e Instrument Sans. A cor vem dos campos fotográficos desfocados (céu, brasa, mar, mata,
   aurora, horizonte), que aparecem como fundos vivos e, em doses pequenas, como acento de cada tema.
   Seções escuras são o padrão; .light troca as variáveis e o mesmo componente funciona sobre o papel.

   Regras de consistência
   - Tipos: display, h2, h3, lead, corpo, sm, xs. Nada fora desta escala.
   - Raios: 4px nos degraus (forma da marca), 16px em painéis e cartões, 999px em botões e etiquetas.
   - Espaço: --sec-y entre seções, 48–64px entre título e conteúdo, 12/16/24px dentro dos componentes.
   - Cores por tema, usadas no site inteiro: Ontologia = céu, Agentes = brasa, Cockpits = mar, Painéis = mata, Controle = aurora. */

:root {
  --ink: #0f1013; --ink-2: #17181b; --ink-3: #1e2024; --paper: #f3f2ed; --paper-2: #e8e6df;
  --text: #f3f2ed; --muted: rgba(243, 242, 237, .72); --faint: rgba(243, 242, 237, .5); --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
  --surface: rgba(255, 255, 255, .045); --surface-2: rgba(255, 255, 255, .08);
  --ceu: #7d9ecc; --brasa: #e07a52; --mar: #5d9a91; --mata: #a8a16f; --aurora: #8897af; --peach: #ef9d72;
  --ok: #6fb39c; --warn: #e9a15c; --bad: #e07a52;
  --f: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --pad: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px)); --col: 1280px; --navh: 84px;
  --sec-y: clamp(72px, 11vw, 152px);
  --fs-display: clamp(2.75rem, 5.6vw, 5rem);
  --fs-h2: clamp(1.875rem, 3vw, 2.625rem);
  --fs-statement: clamp(1.75rem, 3.2vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.6vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --fs-body: 1rem; --fs-sm: .9375rem; --fs-xs: .8125rem; --fs-2xs: .75rem;
  --r: 16px; --r-sm: 8px; --r-step: 4px;
}
.light {
  --text: #0f1013; --muted: #55595f; --faint: #7a7d82; --line: rgba(15, 16, 19, .12); --line-2: rgba(15, 16, 19, .22);
  --surface: #fff; --surface-2: #faf9f6;
  --ceu: #3f68a3; --brasa: #b8502c; --mar: #2f6e66; --mata: #6d6838; --aurora: #4a5b78;
  --ok: #2f7a62; --warn: #a8661f; --bad: #b8502c;
  background: var(--paper); color: var(--text)
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--ink) }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--f); font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0 }
ul, ol { padding: 0; list-style: none }
h1, h2, h3 { text-wrap: balance }
/* títulos de duas frases: cada frase fica inteira; se o título não couber numa linha, quebra entre as frases */
.s { display: inline-block }
p { text-wrap: pretty }
a { color: inherit }
button, input, textarea { font: inherit; color: inherit }
button { cursor: pointer }
::selection { background: #cfe0f2; color: var(--ink) }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px }
.skip { position: absolute; top: -100px; left: 24px; z-index: 100; padding: 10px 18px; background: var(--paper); color: var(--ink); border-radius: 999px }
.skip:focus { top: 12px }
.in { width: 100%; max-width: calc(var(--col) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad) }
section[id] { scroll-margin-top: 88px }

/* ---------- tipos ---------- */
.eyebrow { font-size: var(--fs-xs); font-weight: 550; letter-spacing: .14em; text-transform: uppercase; color: var(--faint) }
.eyebrow .dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; background: var(--c, currentColor) }
.h2 { font-size: var(--fs-h2); font-weight: 460; line-height: 1.06; letter-spacing: -.035em }
.h3 { font-size: var(--fs-h3); font-weight: 550; line-height: 1.25; letter-spacing: -.02em }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 68ch }
.small { font-size: var(--fs-sm); color: var(--muted) }
.fine { font-size: var(--fs-2xs); color: var(--faint) }

/* ---------- seções ---------- */
.sec { padding-block: var(--sec-y) }
.sec + .sec:not(.light):not(.flush) { border-top: 1px solid var(--line) }
.sec.flush { padding-top: 0 }
.head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px) }
/* títulos de seção só quebram quando não cabem; a coluna (ou a página) define a largura */
.head.center { justify-items: center; text-align: center }
.head.center .lead { margin-inline: auto }
.head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(32px, 6vw, 96px); align-items: start }
.head.split .lead, .head.split .ag-intro { padding-top: .45em }
.head.split .eyebrow { grid-column: 1 / -1 }
@media (max-width: 860px) { .head.split { grid-template-columns: 1fr } .head.split .lead, .head.split .ag-intro { padding-top: 0 } }

/* ---------- botões ---------- */
/* Vidro líquido, só na interface (botões, barra do menu, menus e etiquetas sobre a cor), nunca nos cartões de conteúdo:
   superfície translúcida que desfoca e satura o que está atrás, borda de luz em cima, sombra curta embaixo
   e um brilho que acompanha o cursor (--mx, definido em site.js). */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border: 1px solid transparent; transition: transform .2s cubic-bezier(.3, .7, .2, 1.4), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; background: none }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(90px 46px at var(--mx, 30%) 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); opacity: .5; transition: opacity .2s ease; pointer-events: none }
.btn:hover { transform: translateY(-1px) scale(1.02) }
.btn:hover::before { opacity: 1 }
.btn:active { transform: scale(.98) }
.btn-light { background: linear-gradient(180deg, #fff, #ebe9e2); color: var(--ink); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(15, 16, 19, .08), 0 8px 20px -10px rgba(0, 0, 0, .55) }
.btn-light:hover { background: linear-gradient(180deg, #fff, #f3f2ed) }
.btn-line { color: var(--text); border-color: rgba(255, 255, 255, .24); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 1px rgba(255, 255, 255, .06), 0 8px 20px -12px rgba(0, 0, 0, .5) }
.btn-line:hover { border-color: rgba(255, 255, 255, .42) }
.light .btn-line { border-color: rgba(15, 16, 19, .14); background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(15, 16, 19, .35) }
.light .btn-line:hover { border-color: rgba(15, 16, 19, .3) }
.light .btn-light, .btn-ink { color: var(--paper); background: linear-gradient(180deg, #34363c, #0f1013); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -10px rgba(15, 16, 19, .6) }
.light .btn-light:hover, .btn-ink:hover { background: linear-gradient(180deg, #3c3f46, #17181b) }
.btn-ink::before, .light .btn-light::before { background: radial-gradient(90px 46px at var(--mx, 30%) 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%) }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-xs) }
.ctas { display: flex; flex-wrap: wrap; gap: 12px }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .02em; background: var(--surface-2); color: var(--muted); white-space: nowrap }

/* ---------- navegação ---------- */
.nav { position: sticky; top: 0; z-index: 30; padding: 12px var(--pad); max-width: calc(var(--col) + 2 * var(--pad)); margin: 0 auto }
.nav .bar { display: flex; align-items: center; gap: 32px; padding: 8px 8px 8px 24px; border-radius: 999px; background: linear-gradient(180deg, rgba(40, 42, 48, .82), rgba(20, 21, 24, .78)); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 32px -16px rgba(0, 0, 0, .6) }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: 1.625rem; letter-spacing: -.03em; text-decoration: none; color: var(--paper) }
/* assinatura: maiúsculas do nome ≈ 61% da altura do símbolo; símbolo em múltiplos de 7px */
.mark { width: 28px; height: 28px; flex: none; shape-rendering: crispEdges }
.links { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: var(--fs-sm) }
.links > a, .dd-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: none; text-decoration: none; color: rgba(243, 242, 237, .78); font-size: var(--fs-sm) }
.links > a:hover, .dd-btn:hover, .dd.open .dd-btn, .links > a[aria-current], .dd-btn[aria-current] { color: #fff }
.links > a[aria-current], .dd-btn[aria-current] { font-weight: 600 }
.dd-btn svg { width: 10px; height: 10px; transition: transform .2s ease }
.dd.open .dd-btn svg { transform: rotate(180deg) }
.dd { position: relative }
.dd-panel { position: absolute; top: calc(100% + 14px); left: 50%; width: min(640px, calc(100vw - 2 * var(--pad))); transform: translate(-50%, -6px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 22px; background: linear-gradient(180deg, rgba(40, 42, 48, .84), rgba(23, 24, 27, .9)); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .6) }
.dd-panel::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .18s ease }
.dd-feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 100%; padding: 18px; border-radius: 14px; text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; background: #46689f url("../img/horizonte.jpg") center / cover }
.dd-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 14, 22, .55), rgba(10, 14, 22, 0) 70%) }
.dd-feature.f-mar { background-color: #1b4950; background-image: url("../img/mar.jpg") }
.dd-feature b { font-size: var(--fs-sm); font-weight: 600 }
.dd-feature span { font-size: var(--fs-xs); opacity: .9; line-height: 1.4 }
.dd-items { display: grid; gap: 2px }
.dd-items a { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--paper) }
.dd-items a:hover, .dd-items a:focus-visible { background: rgba(255, 255, 255, .06) }
.dd-items i { grid-row: span 2; width: 10px; height: 10px; margin-top: 6px; background: var(--c, var(--paper)) }
.dd-items b { font-size: var(--fs-sm); font-weight: 600 }
.dd-items span { font-size: var(--fs-xs); color: rgba(243, 242, 237, .62); line-height: 1.4 }
.menu-btn { display: none; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; padding: 0 }
.menu-btn svg { width: 18px; height: 18px }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none }
.menu-btn[aria-expanded="true"] .i-close { display: block }
.mmenu { margin-top: 8px; max-height: calc(100svh - 96px); overflow: auto; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 8px; display: grid; gap: 2px }
.mmenu a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 12px; text-decoration: none; color: var(--paper); font-size: var(--fs-lead); font-weight: 500 }
.mmenu a:hover { background: rgba(255, 255, 255, .06) }
.mmenu a[aria-current] { font-weight: 650 }
.mmenu a.cta { margin-top: 8px; font-size: var(--fs-body); background: var(--paper); color: var(--ink); justify-content: center; border-radius: 999px; font-weight: 600 }
@media (max-width: 920px) {
  .links, .nav .bar > .btn { display: none }
  .menu-btn { display: grid; margin-left: auto }
}
@media (min-width: 921px) { .mmenu { display: none !important } }
@media (max-width: 760px) {
  :root { --navh: 76px }
  .nav .logo { font-size: 19.5px; gap: 9px }
  .nav .mark { width: 21px; height: 21px }
}

/* ---------- campo de cor vivo (field.js): canvas pequeno, ampliado e desfocado, grão por cima. Sem JS, fica a foto. ---------- */
.field { position: relative; isolation: isolate; overflow: hidden; background-size: cover; background-position: center }
.field-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: -2; filter: blur(18px) saturate(1.05); pointer-events: none }
.field.is-live { background-image: none !important }
.field::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/grain.png") 0 0 / 160px 160px; mix-blend-mode: overlay; opacity: .34; pointer-events: none }
.fp-horizonte { background-color: #46689f; background-image: url("../img/horizonte.jpg") }
.fp-ceu { background-color: #4b71a8; background-image: url("../img/ceu.jpg") }
.fp-brasa { background-color: #5e3221; background-image: url("../img/brasa.jpg") }
.fp-mar { background-color: #12313a; background-image: url("../img/mar.jpg") }
.fp-mata { background-color: #4f573f; background-image: url("../img/mata.jpg") }
.fp-aurora { background-color: #13161b; background-image: url("../img/aurora.jpg") }
/* véu para texto sobre o campo */
.veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 14, 22, .62), rgba(10, 14, 22, .34) 50%, rgba(10, 14, 22, .12)) }

/* ---------- abertura das páginas internas: campo de cor de ponta a ponta ---------- */
.page-hero { margin-top: calc(-1 * var(--navh)); padding: calc(var(--navh) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 9vw, 128px); color: #fff }
.page-hero h1 { font-size: var(--fs-display); font-weight: 460; line-height: 1; letter-spacing: -.04em }
.page-hero .sub { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.55; max-width: 62ch; color: #fff; font-weight: 450 }
.page-hero .eyebrow { color: rgba(255, 255, 255, .86); margin-bottom: 20px }
.page-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px }
.page-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-size: var(--fs-sm); transition: border-color .2s ease, background .2s ease }
.page-index a:hover { border-color: rgba(255, 255, 255, .6); background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1)) }
.page-index i { width: 8px; height: 8px; background: var(--c, #fff) }

/* ---------- fechamento: campo de cor de ponta a ponta ---------- */
.closing { padding-block: clamp(80px, 9vw, 128px); color: #fff }
.closing .veil { background: linear-gradient(90deg, rgba(10, 16, 28, .6), rgba(10, 16, 28, .32) 45%, rgba(10, 16, 28, 0) 75%) }
.closing-in { display: grid; gap: 20px; justify-items: start }
.closing h2 { font-size: var(--fs-h2); font-weight: 460; line-height: 1.08; letter-spacing: -.035em; max-width: 32ch }
.closing p { font-size: var(--fs-lead); line-height: 1.5; max-width: 48ch; font-weight: 450 }
.closing br.lg { display: none }
@media (min-width: 900px) { .closing br.lg { display: inline } }
.closing .ctas { margin-top: 12px }

/* ---------- rodapé ---------- */
footer { background: var(--ink); color: var(--faint); font-size: var(--fs-xs) }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; min-height: 120px; padding-block: 28px }
.foot .logo { font-size: 19.5px; gap: 9px }
.foot .mark { width: 21px; height: 21px }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-left: auto; line-height: 1 }
.foot nav a { text-decoration: none; color: var(--muted) }
.foot nav a:hover { color: #fff }

/* ---------- aparecer ao entrar na tela ---------- */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1) }
.js .rise.is-in { opacity: 1; transform: none }

@media (max-width: 760px) {
  .page-hero { padding-bottom: 64px }
  .veil, .closing .veil { background: rgba(10, 16, 28, .5) }
  .closing { padding-block: 64px }
  .foot { display: grid; gap: 24px; min-height: 0; padding-block: 36px 44px }
  .foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-left: 0; font-size: var(--fs-sm) }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important }
  html { scroll-behavior: auto }
  .js .rise { opacity: 1; transform: none }
}

/* cor de cada tema (marcadores, pontos e acentos) */
.c-ceu { --c: var(--ceu) } .c-brasa { --c: var(--brasa) } .c-mar { --c: var(--mar) } .c-mata { --c: var(--mata) } .c-aurora { --c: var(--aurora) } .c-peach { --c: var(--peach) }
