/* =========================================================
   CLUSTERS — Identidade Território (v4)
   60/30/10: Cal (base) · Mata/Asfalto (estrutura) · Telha (acento único)
   Tipografia: IBM Plex Sans (títulos/texto), Plex Mono (dados e rótulos),
   Plex Serif (ênfases e textos longos). Módulo de 8 pt.
   ========================================================= */
:root {
  /* paleta Território */
  --mata: #1F4A3B; --asfalto: #1B1F1D; --cal: #F3F0E8; --telha: #A94E27;
  --musgo: #47704F; --agua: #2F5F7A; --ipe: #E2B13C; --liquen: #A9BFA3;
  /* neutros */
  --n100: #F3F0E8; --n200: #E3DFD5; --n300: #C2BDB1; --n500: #8C877C; --n700: #5A574F; --n900: #1B1F1D;
  --paper: #FBFAF6;
  /* tipografia */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "IBM Plex Serif", Georgia, serif;
  /* módulo */
  --u: 8px; --radius: 4px; --maxw: 1200px; --header: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--asfalto); background: var(--cal); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--mata); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--telha); outline-offset: 3px; }
::selection { background: var(--ipe); color: var(--asfalto); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--asfalto); color: var(--cal); padding: 8px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; }
.muted { color: var(--n700); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--mata); background: var(--mata); color: var(--cal);
  padding: 12px 24px; border-radius: var(--radius); font-weight: 500; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--asfalto); border-color: var(--asfalto); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--mata); }
.btn-outline:hover { background: var(--mata); color: var(--cal); border-color: var(--mata); }
.btn-ipe { background: var(--ipe); border-color: var(--ipe); color: var(--asfalto); }
.btn-ipe:hover { background: var(--cal); border-color: var(--cal); color: var(--asfalto); }
.btn-ghost { background: transparent; border-color: rgba(243,240,232,.45); color: var(--cal); }
.btn-ghost:hover { background: rgba(243,240,232,.1); border-color: var(--cal); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--mata); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--mata); text-decoration: underline; text-underline-offset: 3px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--n300); background: transparent; transition: .2s; }
.round-btn:hover:not(:disabled) { border-color: var(--mata); background: var(--mata); color: var(--cal); }
.round-btn:disabled { opacity: .35; cursor: default; }
kbd { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--n300); border-radius: 3px; padding: 0 5px; color: var(--n700); background: var(--paper); }

/* ---------- Cabeçalho ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header); background: rgba(243,240,232,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--n200); }
.site-header.tucked { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--asfalto); flex-shrink: 0; }
.brand-symbol { width: 44px; height: auto; transition: transform .4s var(--ease); }
.brand:hover .brand-symbol { transform: rotate(-8deg); }
.brand-word { font: 600 1.2rem/1 var(--sans); letter-spacing: .12em; display: flex; flex-direction: column; gap: 4px; }
.brand-word small { font: 400 .66rem/1 var(--mono); letter-spacing: .06em; color: var(--musgo); text-transform: lowercase; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; background: none; border-radius: var(--radius); text-decoration: none; color: var(--asfalto); font-weight: 500; font-size: .95rem; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--telha); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link.current::after { transform: scaleX(1); }
.chev { width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.mega-toggle[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 8px; border: 1px solid transparent; background: none; border-radius: var(--radius); color: var(--asfalto); }
.icon-btn:hover { border-color: var(--n300); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--telha); color: var(--cal); font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.badge[hidden] { display: none; }
.proposal-btn.bump .badge { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress span { display: block; height: 100%; background: var(--telha); transform: scaleX(0); transform-origin: left; }

/* menu de soluções */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: var(--header); background: var(--paper); border-top: 1px solid var(--n200); border-bottom: 1px solid var(--n200);
  box-shadow: 0 24px 48px -24px rgba(27,31,29,.25); padding: 24px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); animation: drop .25s var(--ease); }
.mega[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mega-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--asfalto); border: 1px solid transparent; transition: .15s; }
.mega-item:hover, .mega-item:focus-visible { background: var(--cal); border-color: var(--n200); }
.mega-item .glyph { width: 40px; height: 40px; flex-shrink: 0; }
.mega-item b { display: block; font-weight: 500; line-height: 1.25; }
.mega-item small { color: var(--n700); font-size: .72rem; }
.mega-foot { display: flex; gap: 32px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--n200); }

/* glifo de eixo: grafo em miniatura */
.glyph { width: 28px; height: 28px; flex-shrink: 0; }
.glyph line { stroke: var(--c, var(--mata)); stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.glyph circle { fill: var(--c, var(--mata)); }
.glyph circle.hot { fill: var(--telha); }

/* menu móvel */
.mobile-nav { position: fixed; inset: var(--header) 0 0; z-index: 99; background: var(--mata); color: var(--cal); padding: 32px 24px; overflow: auto;
  transform: translateX(100%); transition: transform .3s var(--ease);
  background-image: radial-gradient(rgba(169,191,163,.18) 1.2px, transparent 1.3px); background-size: 20px 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav.open { transform: none; }
.mobile-nav li a { display: block; padding: 14px 0; font-size: 1.6rem; font-weight: 500; color: var(--cal); text-decoration: none; border-bottom: 1px solid rgba(243,240,232,.15); }
.mobile-social { display: flex; gap: 24px; margin-top: 32px; }
.mobile-social a { color: var(--liquen); font-family: var(--mono); font-size: .9rem; }

/* índice lateral (grafo-caminho) */
.rail { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 50; }
.rail { transition: opacity .3s; } .rail.hide { opacity: 0; pointer-events: none; }
.rail ol { margin: 0; padding: 0; list-style: none; position: relative; }
.rail ol::before { content: ""; position: absolute; right: 5px; top: 8px; bottom: 8px; width: 1.5px; background: var(--n300); }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px; text-decoration: none; color: var(--asfalto); }
.rail i { order: 2; width: 12px; height: 12px; border-radius: 50%; background: var(--cal); border: 1.5px solid var(--n500); position: relative; transition: .2s; }
.rail a.past i { background: var(--musgo); border-color: var(--musgo); }
.rail a.on i { background: var(--telha); border-color: var(--telha); transform: scale(1.35); }
.rail span { font-size: .7rem; padding: 2px 8px; border-radius: 3px; background: var(--paper); border: 1px solid var(--n200); opacity: 0; transform: translateX(6px); transition: .2s; pointer-events: none; white-space: nowrap; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail.on-dark ol::before { background: rgba(243,240,232,.3); }
.rail.on-dark i { background: transparent; border-color: rgba(243,240,232,.6); }
.rail.on-dark a.past i { background: var(--liquen); border-color: var(--liquen); }
.rail.on-dark a.on i { background: var(--ipe); border-color: var(--ipe); }

/* ---------- Seções ---------- */
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--paper); border-top: 1px solid var(--n200); border-bottom: 1px solid var(--n200); }
.section-dark { background: var(--mata); color: var(--cal); background-image: radial-gradient(rgba(169,191,163,.16) 1.2px, transparent 1.3px); background-size: 20px 20px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.section-sub { color: var(--n700); margin: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .04em; color: var(--musgo); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--telha); }
.section-dark .eyebrow { color: var(--liquen); }
.section-dark .eyebrow::before { background: var(--ipe); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 500; color: var(--mata); }
.section-dark h2 { color: var(--cal); }
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h3 { font-size: 1.375rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: var(--mata); color: var(--cal); overflow: hidden; padding: calc(var(--header) + 48px) 0 96px;
  background-image: radial-gradient(rgba(169,191,163,.16) 1.2px, transparent 1.3px); background-size: 20px 20px; }
#hero-graph { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,74,59,.94) 0%, rgba(31,74,59,.75) 45%, rgba(31,74,59,.1) 85%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.kicker { color: var(--liquen); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 500; max-width: 15ch; line-height: 1.06; letter-spacing: -.02em; }
.rotator { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ipe); min-height: 2.2em; }
#rotator-word { display: inline-block; transition: opacity .35s, transform .35s var(--ease); }
#rotator-word.out { opacity: 0; transform: translateY(12px); }
.lead { font-size: 1.15rem; max-width: 56ch; color: rgba(243,240,232,.85); margin: 24px 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 64px 0 0; }
.hero-stats div { border-left: 1.5px solid rgba(169,191,163,.4); padding-left: 16px; display: flex; flex-direction: column-reverse; gap: 6px; }
.hero-stats dt { font-size: .72rem; color: var(--liquen); }
.hero-stats dd { margin: 0; font: 500 2.4rem/1 var(--mono); color: var(--cal); }
.hero-legend { position: absolute; right: 24px; bottom: 32px; z-index: 2; display: grid; gap: 6px; font-size: .68rem; color: var(--liquen); }
.legend-bar { width: 160px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #47704F, #A9BFA3, #F3F0E8, #E2B13C); }
.legend-labels { display: flex; justify-content: space-between; } .legend-labels i { font-style: normal; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; z-index: 2; width: 24px; height: 40px; border: 1.5px solid rgba(243,240,232,.5); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ipe); animation: cue 1.8s infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } }

/* faixa de temas */
.marquee { background: var(--asfalto); color: var(--cal); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 24px; align-items: center; font-size: .85rem; animation: marquee 50s linear infinite; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--ipe); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Frentes ---------- */
.fronts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.front { position: relative; background: var(--paper); border: 1px solid var(--n200); border-radius: var(--radius); padding: 0 32px 32px; overflow: hidden; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.front:hover, .front:focus-visible { border-color: var(--mata); transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(27,31,29,.35); }
.front-visual { height: 160px; margin: 0 -32px 24px; border-bottom: 1px solid var(--n200); overflow: hidden; }
.front-visual svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.front:hover .front-visual svg { transform: scale(1.06); }
.front-n { position: absolute; top: 16px; right: 16px; font-size: .75rem; background: var(--cal); border: 1px solid var(--n300); padding: 2px 8px; border-radius: 3px; }
.front h3 { color: var(--mata); margin-bottom: 12px; font-size: 1.5rem; }
.front p { color: var(--n700); }
.front ul { display: flex; flex-wrap: wrap; gap: 6px; }
.front li { font-size: .8rem; padding: 4px 10px; border: 1px solid var(--n300); border-radius: 999px; background: var(--cal); }

/* ---------- Públicos ---------- */
.tabs { display: flex; border-bottom: 1px solid rgba(243,240,232,.2); margin-bottom: 40px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 16px 24px; color: rgba(243,240,232,.65); font-weight: 500; font-size: 1.02rem; position: relative; white-space: nowrap; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ipe); transform: scaleX(0); transition: transform .25s var(--ease); }
.tab.active { color: var(--cal); } .tab.active::after { transform: scaleX(1); }
.tab:hover { color: var(--cal); }
.tab-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; animation: fade .4s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel-text h3 { font-size: 1.75rem; font-weight: 500; margin-bottom: 16px; }
.panel-text p { color: rgba(243,240,232,.82); font-family: var(--serif); font-size: 1.1rem; line-height: 1.65; }
.panel-text .link-arrow { color: var(--ipe); }
.panel-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(243,240,232,.15); }
.panel-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--liquen); flex-shrink: 0; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.catalog-side { position: sticky; top: calc(var(--header) + 24px); max-height: calc(100vh - var(--header) - 48px); overflow: auto; padding: 2px 4px 2px 2px; }
.search { position: relative; margin-bottom: 24px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--n700); stroke-width: 1.7; }
.search input { width: 100%; padding: 12px 12px 12px 40px; border: 1.5px solid var(--n300); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: .92rem; }
.search input:focus { outline: none; border-color: var(--mata); }
.filter-label { font-size: .72rem; color: var(--n700); margin: 0 0 8px; }
.chips { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.chip { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 1px solid transparent; padding: 8px 10px; border-radius: var(--radius); font-size: .9rem; transition: .15s; }
.chip span { flex: 1; }
.chip b { font-weight: 400; font-size: .75rem; color: var(--n700); }
.chip:hover { background: var(--paper); border-color: var(--n200); }
.chip.active { background: var(--mata); color: var(--cal); }
.chip.active b { color: var(--liquen); }
.chip.active .glyph { background: var(--cal); border-radius: 3px; }
.chip[data-eixo="all"] { padding-left: 48px; justify-content: space-between; }
.phase-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.pf { border: 1px solid var(--n300); background: var(--paper); padding: 6px 12px; border-radius: 999px; font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; }
.pf i { font-style: normal; font-size: .68rem; color: var(--n500); }
.pf.active { background: var(--asfalto); color: var(--cal); border-color: var(--asfalto); }
.pf.active i { color: var(--ipe); }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; min-height: 36px; }
.result-count { margin: 0; font-size: .82rem; color: var(--n700); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result-count b { color: var(--asfalto); font-weight: 500; }
.af { border: 1px solid var(--telha); color: var(--telha); background: transparent; border-radius: 999px; padding: 2px 10px; font: .75rem var(--mono); }
.af:hover { background: var(--telha); color: var(--cal); }
.view-toggle { display: flex; border: 1px solid var(--n300); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.vt { background: var(--paper); border: 0; padding: 6px 8px; }
.vt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vt.active { background: var(--asfalto); color: var(--cal); }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sol-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--n200); border-radius: var(--radius); padding: 24px; cursor: pointer;
  animation: rise .45s var(--ease) both; animation-delay: var(--d); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.sol-card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--c); border-radius: var(--radius) 0 0 var(--radius); transform: scaleY(.3); transform-origin: top; transition: transform .3s var(--ease); }
.sol-card:hover { border-color: var(--n300); transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(27,31,29,.4); }
.sol-card:hover::before, .sol-card.picked::before { transform: scaleY(1); }
.sol-card.picked { border-color: var(--mata); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.sol-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sol-eixo { font-size: .7rem; color: var(--n700); flex: 1; line-height: 1.3; }
.sol-fase { font-size: .66rem; padding: 2px 8px; border-radius: 3px; background: var(--cal); border: 1px solid var(--n200); color: var(--n700); white-space: nowrap; }
.sol-card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.sol-open { all: unset; cursor: pointer; }
.sol-open:focus-visible { outline: 2px solid var(--telha); outline-offset: 4px; }
.sol-card p { color: var(--n700); font-size: .92rem; flex: 1; }
.sol-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--n300); }
.ods-mini { display: flex; gap: 4px; }
.ods-mini i { font-style: normal; font-size: .68rem; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--n300); color: var(--n700); }
.pick { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--mata); background: transparent; color: var(--mata); font-size: 1.2rem; line-height: 1; transition: .2s; flex-shrink: 0; }
.pick:hover { background: var(--mata); color: var(--cal); }
.pick[aria-pressed="true"] { background: var(--telha); border-color: var(--telha); color: var(--cal); }
.sol-grid.as-list { grid-template-columns: 1fr; gap: 8px; }
.sol-grid.as-list .sol-card { display: grid; grid-template-columns: 220px 1fr auto; gap: 4px 24px; align-items: center; padding: 16px 24px; }
.sol-grid.as-list .sol-top { margin: 0; grid-row: span 2; flex-wrap: wrap; }
.sol-grid.as-list h3 { margin: 0; }
.sol-grid.as-list p { margin: 0; grid-column: 2; font-size: .88rem; }
.sol-grid.as-list .sol-foot { grid-column: 3; grid-row: 1 / span 2; border: 0; padding: 0; gap: 16px; }
.empty { padding: 48px; text-align: center; color: var(--n700); border: 1px dashed var(--n300); border-radius: var(--radius); }

/* ---------- Diagnóstico ---------- */
.wizard { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; color: var(--mata); }
legend small { font-weight: 400; color: var(--n700); font-size: .8rem; }
.step-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--mata); color: var(--cal); display: grid; place-items: center; font-size: .8rem; }
.porte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.porte label, .desafio { cursor: pointer; position: relative; }
.porte input, .desafio input { position: absolute; opacity: 0; pointer-events: none; }
.porte span { display: block; text-align: center; padding: 12px 8px; border: 1.5px solid var(--n300); border-radius: var(--radius); font-size: .88rem; background: var(--cal); transition: .15s; }
.porte input:checked + span { border-color: var(--mata); background: var(--mata); color: var(--cal); }
.porte input:focus-visible + span, .desafio input:focus-visible + span { outline: 2px solid var(--telha); outline-offset: 2px; }
.desafios { display: grid; gap: 8px; }
.desafio span { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--n300); border-radius: var(--radius); font-size: .92rem; background: var(--cal); transition: .15s; }
.desafio span::before { content: ""; width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid var(--n500); flex-shrink: 0; transition: .15s; }
.desafio input:checked + span { border-color: var(--mata); background: #fff; }
.desafio input:checked + span::before { background: var(--telha) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8l3 3 5-6' fill='none' stroke='%23F3F0E8' stroke-width='2'/%3E%3C/svg%3E"); border-color: var(--telha); }
.desafio:hover span { border-color: var(--musgo); }
.desafio.off span { opacity: .45; cursor: not-allowed; }
.wizard-result { position: sticky; top: calc(var(--header) + 24px); background: var(--mata); color: var(--cal); border-radius: var(--radius); padding: 32px; min-height: 420px;
  background-image: radial-gradient(rgba(169,191,163,.14) 1.2px, transparent 1.3px); background-size: 20px 20px; }
.roadmap-empty { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; color: var(--liquen); }
.roadmap-empty svg { width: 160px; } .roadmap-empty path { fill: none; stroke: var(--liquen); stroke-width: 2; stroke-dasharray: 5 5; }
.roadmap-empty circle { fill: var(--liquen); } .roadmap-empty circle.hot { fill: var(--ipe); }
.rm-head span { font-size: .75rem; color: var(--liquen); }
.rm-head h3 { font-size: 1.3rem; font-weight: 500; margin: 8px 0 24px; }
.rm-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rm-steps::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1.5px; background: rgba(169,191,163,.4); }
.rm-steps li { position: relative; padding-left: 44px; margin-bottom: 20px; animation: rise .4s var(--ease) both; animation-delay: var(--d); }
.rm-phase { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 8px; min-height: 28px; }
.rm-phase b { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ipe); color: var(--asfalto); display: grid; place-items: center; font-size: .8rem; font-weight: 500; }
.rm-items { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-item { display: inline-flex; align-items: center; gap: 8px; background: rgba(243,240,232,.08); border: 1px solid rgba(243,240,232,.22); color: var(--cal); padding: 6px 12px 6px 6px; border-radius: var(--radius); font-size: .86rem; text-align: left; transition: .15s; }
.rm-item:hover { background: var(--cal); color: var(--asfalto); }
.rm-item .glyph { width: 22px; height: 22px; background: var(--cal); border-radius: 3px; padding: 1px; }
.rm-item em { font-family: var(--mono); font-style: normal; font-size: .66rem; color: var(--ipe); margin-left: 4px; }
.rm-item:hover em { color: var(--telha); }
.rm-note { font-family: var(--serif); font-size: .95rem; color: rgba(243,240,232,.8); border-left: 2px solid var(--ipe); padding-left: 16px; margin: 24px 0; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rm-actions .btn { background: var(--ipe); border-color: var(--ipe); color: var(--asfalto); }
.rm-actions .btn:hover { background: var(--cal); border-color: var(--cal); }
.rm-actions .btn-outline { background: transparent; border-color: rgba(243,240,232,.45); color: var(--cal); }
.rm-actions .btn-outline:hover { background: rgba(243,240,232,.12); color: var(--cal); }
.rm-actions .muted { color: var(--liquen); font-size: .8rem; flex-basis: 100%; }

/* ---------- Estudos ---------- */
.scroller-nav { display: flex; gap: 8px; align-items: center; justify-self: end; }
.scroller-pos { font-size: .82rem; color: var(--n700); margin-right: 8px; }
.h-scroller { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); padding: 8px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)) 24px; scrollbar-width: thin; scrollbar-color: var(--n300) transparent; cursor: grab; }
.h-scroller.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-scroller:focus-visible { outline-offset: -3px; }
.study { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; background: var(--paper); border: 1px solid var(--n200); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.study:hover { border-color: var(--mata); }
.study-art { height: 220px; border-bottom: 1px solid var(--n200); }
.study-art svg { width: 100%; height: 100%; }
.study h3 { padding: 24px 24px 12px; color: var(--mata); }
.study p { padding: 0 24px 8px; color: var(--n700); font-family: var(--serif); font-size: .98rem; line-height: 1.65; }

/* ---------- Laboratório ---------- */
.grid-lab { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.grid-lab > div > p { color: var(--n700); }
.grid-lab h2, .grid-team h2, .grid-contact h2 { margin-bottom: 24px; }
.grid-lab strong { color: var(--asfalto); font-weight: 600; }
.lab-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 16px; }
.mode { text-align: left; border: 1.5px solid var(--n300); background: var(--cal); border-radius: var(--radius); padding: 12px; transition: .15s; }
.mode b { display: block; font-weight: 600; }
.mode small { font-size: .74rem; color: var(--n700); line-height: 1.3; display: block; margin-top: 2px; }
.mode:hover { border-color: var(--musgo); }
.mode.active { border-color: var(--mata); background: var(--mata); color: var(--cal); }
.mode.active small { color: var(--liquen); }
.lab-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1.5px solid var(--asfalto); border-radius: var(--radius); overflow: hidden; }
.seg-btn { border: 0; background: transparent; padding: 7px 14px; font-size: .85rem; }
.seg-btn.active { background: var(--asfalto); color: var(--cal); }
.lab-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--n200); border: 1px solid var(--n200); margin: 24px 0 16px; border-radius: var(--radius); overflow: hidden; }
.lab-stats div { background: var(--cal); padding: 12px 16px; }
.lab-stats dt { font-size: .7rem; color: var(--n700); }
.lab-stats dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 500; }
.lab-stats .pos { color: var(--musgo); } .lab-stats .neg { color: var(--telha); }
.lab-msg { min-height: 3em; font-size: .9rem; color: var(--asfalto); border-left: 2px solid var(--telha); padding-left: 12px; }
.lab-msg:empty { border-color: transparent; }
.lab-figure { position: sticky; top: calc(var(--header) + 24px); }
.lab-canvas-wrap { position: relative; aspect-ratio: 1; background: var(--cal); border: 1px solid var(--n300); border-radius: var(--radius);
  background-image: radial-gradient(var(--n200) 1px, transparent 1.2px); background-size: 20px 20px; }
#lab-graph { width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
#lab-graph[data-mode="remover"] { cursor: not-allowed; }
.lab-tooltip { position: absolute; pointer-events: none; background: var(--asfalto); color: var(--cal); font-size: .72rem; line-height: 1.5; padding: 8px 10px; border-radius: 3px; white-space: nowrap; z-index: 2; }
.lab-tooltip[hidden] { display: none; }
.lab-legend { display: flex; align-items: center; gap: 12px; font-size: .72rem; color: var(--n700); margin-top: 12px; }
.ramp { flex: 1; height: 8px; border-radius: 4px; }
.ramp-div { background: linear-gradient(90deg, #1E4A66, #2F5F7A, #93B0C4, #C2BDB1, #DFA283, #A94E27, #6F2D15); }

/* ---------- Método ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 11px; left: 12px; right: 12px; height: 2px; background: var(--n300); }
.timeline::after { background: var(--mata); transform: scaleX(var(--p)); transform-origin: left; transition: transform .1s linear; }
.timeline li { position: relative; padding-top: 48px; }
.t-dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--cal); border: 2px solid var(--n300); z-index: 1; transition: .3s var(--ease); }
.timeline li.lit .t-dot { background: var(--mata); border-color: var(--mata); box-shadow: 0 0 0 6px rgba(31,74,59,.12); }
.timeline li:last-child.lit .t-dot { background: var(--telha); border-color: var(--telha); box-shadow: 0 0 0 6px rgba(169,78,39,.14); }
.t-n { font-size: .75rem; color: var(--n500); }
.timeline h3 { color: var(--mata); margin: 4px 0 12px; }
.timeline p { color: var(--n700); font-size: .95rem; }

/* ---------- Sobre ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.mvv article { border-top: 3px solid var(--mata); padding-top: 24px; }
.mvv article:nth-child(2) { border-color: var(--musgo); } .mvv article:nth-child(3) { border-color: var(--agua); }
.mvv h3 { margin-bottom: 16px; }
.mvv p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; color: var(--n700); }
.mvv li { padding: 8px 0; border-bottom: 1px solid var(--n200); font-size: .95rem; }
.values-title { margin-bottom: 16px; color: var(--mata); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 80px; }
.value { text-align: left; background: var(--cal); border: 1.5px solid var(--n300); border-radius: var(--radius); padding: 20px; min-height: 180px; display: flex; flex-direction: column; gap: 12px; transition: .25s var(--ease); }
.v-name { font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.v-name::after { content: "+"; font: 400 1.2rem var(--mono); color: var(--n500); transition: transform .25s; }
.v-text { font-size: .88rem; color: var(--n700); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .4s var(--ease); }
.value[aria-expanded="true"] { background: var(--mata); border-color: var(--mata); color: var(--cal); }
.value[aria-expanded="true"] .v-name::after { transform: rotate(45deg); color: var(--ipe); }
.value[aria-expanded="true"] .v-text { opacity: 1; max-height: 200px; color: rgba(243,240,232,.85); }
.value:hover { border-color: var(--mata); }
.ods-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.ods-block h3 { margin-bottom: 12px; color: var(--mata); }
.ods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ods { position: relative; text-align: left; background: var(--cal); border: 1px solid var(--n300); border-radius: var(--radius); padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: .2s; }
.ods b { font-size: 1.4rem; font-weight: 500; color: var(--mata); }
.ods span { font-size: .78rem; line-height: 1.3; flex: 1; }
.ods em { font-style: normal; font-size: .68rem; color: var(--telha); }
.ods-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--w) * 100%); background: var(--musgo); }
.ods:hover, .ods:focus-visible { border-color: var(--mata); transform: translateY(-2px); }

/* ---------- Quem somos ---------- */
.grid-team { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.grid-team p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; color: var(--n700); }
.grid-team p.rt { font-family: var(--mono); font-size: .82rem; color: var(--asfalto); border: 1px dashed var(--n300); padding: 8px 12px; display: inline-block; }
#team-graph { width: 100%; overflow: visible; }
.tl { stroke: var(--musgo); stroke-width: 2; opacity: .35; transition: opacity .2s, stroke .2s; }
.tl.hl { stroke: var(--telha); opacity: 1; stroke-width: 2.5; }
.tn { cursor: default; outline: none; }
.tn circle { fill: var(--musgo); transition: fill .2s, transform .25s var(--ease); }
.tn-o circle { fill: var(--mata); }
.tn-a circle { fill: var(--telha); }
.tn-core circle { fill: var(--asfalto); }
.tn text { fill: var(--cal); font: 500 13px var(--sans); pointer-events: none; }
.tn-core text { font: 600 15px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.tn.hl circle, .tn:focus-visible circle { transform: scale(1.08); }
.tn:focus-visible circle { stroke: var(--ipe); stroke-width: 3; }

/* ---------- Contato ---------- */
.grid-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact p { color: rgba(243,240,232,.82); font-family: var(--serif); font-size: 1.1rem; }
.contact-list { margin-top: 32px; }
.contact-list li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(243,240,232,.15); }
.contact-list span { font-size: .75rem; color: var(--liquen); padding-top: 3px; }
.contact-list a { color: var(--cal); }
.contact-form { background: var(--cal); color: var(--asfalto); border-radius: var(--radius); padding: 32px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 500 .72rem var(--mono); color: var(--n700); margin-bottom: 6px; text-transform: lowercase; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--n300); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: .95rem; color: var(--asfalto); transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mata); box-shadow: 0 0 0 3px rgba(31,74,59,.12); }
.field .invalid { border-color: var(--telha); background: #FBF1EC; }
.form-status { margin: 12px 0 0; font-size: .88rem; min-height: 1.4em; }
.form-status.err { color: var(--telha); } .form-status.ok { color: var(--musgo); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--asfalto); color: var(--n300); padding: 64px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .brand-word { color: var(--cal); }
.footer-brand .brand-word small { color: var(--liquen); }
.footer-brand p { margin: 12px 0 0; font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--cal); text-decoration: none; font-size: .92rem; }
.site-footer nav a:hover { color: var(--ipe); }
.copy { font-size: .75rem; margin: 0; }

/* ---------- Botão flutuante ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: var(--asfalto); color: var(--cal); text-decoration: none; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(27,31,29,.6); font-weight: 500; font-size: .92rem; opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s var(--ease); }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fab.has-items { background: var(--telha); }
.fab:hover { background: var(--mata); }

/* ---------- Camadas: busca, gaveta, modal ---------- */
.palette[hidden], .drawer[hidden], .modal[hidden], .toast[hidden] { display: none; }
.palette { position: fixed; inset: 0; z-index: 300; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.palette-backdrop, .drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(27,31,29,.55); opacity: 0; transition: opacity .2s; }
.palette.open .palette-backdrop, .drawer.open .drawer-backdrop, .modal.open .modal-backdrop { opacity: 1; }
.palette-card { position: relative; width: min(640px, 100%); background: var(--paper); border-radius: 6px; box-shadow: 0 32px 64px -24px rgba(0,0,0,.5); overflow: hidden; transform: translateY(-8px) scale(.98); opacity: 0; transition: .2s var(--ease); }
.palette.open .palette-card { transform: none; opacity: 1; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--n200); }
.palette-input svg { width: 20px; height: 20px; fill: none; stroke: var(--n700); stroke-width: 1.7; flex-shrink: 0; }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.1rem; outline: none; color: var(--asfalto); }
.palette-list { max-height: 50vh; overflow: auto; padding: 8px; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); cursor: pointer; }
.palette-list li[aria-selected="true"] { background: var(--cal); box-shadow: inset 3px 0 0 var(--telha); }
.po-dot { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; }
.po-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--n500); }
.po-t { flex: 1; font-weight: 500; line-height: 1.3; }
.po-t small { display: block; font-weight: 400; font-size: .78rem; color: var(--n700); }
.po-k { font-size: .66rem; color: var(--n500); border: 1px solid var(--n300); border-radius: 3px; padding: 1px 6px; }
.palette-list li.po-empty { color: var(--n700); padding: 24px; cursor: default; }
.palette-hint { margin: 0; padding: 10px 20px; border-top: 1px solid var(--n200); font-size: .7rem; color: var(--n500); }

.drawer { position: fixed; inset: 0; z-index: 250; }
.drawer-card { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--cal); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); outline: none; }
.drawer.open .drawer-card { transform: none; }
.drawer-head { position: relative; padding: 32px 32px 24px; background: var(--mata); color: var(--cal); }
.drawer-head .eyebrow { color: var(--liquen); margin-bottom: 8px; } .drawer-head .eyebrow::before { background: var(--ipe); }
.drawer-head h2 { color: var(--cal); font-size: 1.5rem; }
.drawer-list { flex: 1; overflow: auto; padding: 16px 24px; }
.drawer-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--n200); animation: rise .3s var(--ease) both; }
.dl-open { flex: 1; text-align: left; background: none; border: 0; padding: 0; }
.dl-open b { display: block; font-weight: 500; line-height: 1.3; }
.dl-open small { font-size: .7rem; color: var(--n700); }
.dl-open:hover b { color: var(--mata); text-decoration: underline; }
.dl-rm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--n300); background: none; font-size: 1.1rem; color: var(--n700); flex-shrink: 0; }
.dl-rm:hover { border-color: var(--telha); color: var(--telha); }
.drawer-list li.dl-empty { display: block; color: var(--n700); font-size: .95rem; padding: 24px 0; border: 0; }
.drawer-foot { padding: 24px; border-top: 1px solid var(--n200); display: flex; gap: 16px; align-items: center; }
.drawer-foot .btn { flex: 1; }
.drawer-foot .link-btn[hidden] { display: none; }

.modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 24px; }
.modal-card { position: relative; width: min(900px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--cal); border-radius: 6px; outline: none; transform: translateY(16px); opacity: 0; transition: .25s var(--ease); }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(243,240,232,.4); background: transparent; color: var(--cal); font-size: 1.5rem; line-height: 1; }
.modal-close:hover { background: var(--cal); color: var(--asfalto); }
.m-head { padding: 40px 40px 32px; background: var(--mata); color: var(--cal); border-bottom: 4px solid var(--c);
  background-image: radial-gradient(rgba(169,191,163,.14) 1.2px, transparent 1.3px); background-size: 20px 20px; }
.m-eixo { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--liquen); margin-bottom: 16px; }
.m-eixo .glyph { background: var(--cal); border-radius: 3px; padding: 2px; }
.m-head h2 { color: var(--cal); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; padding-right: 40px; }
.m-head p { color: rgba(243,240,232,.85); font-family: var(--serif); font-size: 1.08rem; margin: 0; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; padding: 32px 40px; }
.m-grid h4 { font-size: .72rem; font-weight: 500; color: var(--musgo); margin: 0 0 10px; }
.m-grid h4:not(:first-child) { margin-top: 20px; }
.m-grid li { position: relative; padding: 5px 0 5px 18px; font-size: .94rem; }
.m-grid li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--musgo); }
.m-problem { grid-column: 1 / -1; background: var(--paper); border-left: 3px solid var(--telha); padding: 16px 20px; }
.m-problem p { font-family: var(--serif); font-size: 1.05rem; margin: 0; }
.m-ods { display: flex; flex-direction: column; gap: 6px; }
.m-ods span { display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.m-ods b { width: 28px; height: 28px; border-radius: 50%; background: var(--mata); color: var(--cal); display: grid; place-items: center; font-size: .75rem; font-weight: 500; flex-shrink: 0; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 0 40px 32px; }
.m-actions .btn[aria-pressed="true"] { background: var(--telha); border-color: var(--telha); }
.m-related { padding: 24px 40px; border-top: 1px solid var(--n200); }
.m-related h4 { font-size: .72rem; font-weight: 500; color: var(--musgo); margin-bottom: 12px; }
.rel { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--n200); padding: 10px 0; font-weight: 500; color: var(--mata); }
.rel:hover { color: var(--telha); }
.m-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--n200); }
.m-pager button { background: var(--paper); border: 0; padding: 20px 40px; text-align: left; font-weight: 500; font-size: .92rem; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.m-pager button + button { text-align: right; border-left: 1px solid var(--n200); align-items: flex-end; }
.m-pager span { font-size: .7rem; color: var(--n500); font-weight: 400; }
.m-pager button:hover { background: var(--n200); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 16px); opacity: 0; background: var(--asfalto); color: var(--cal); padding: 10px 18px; border-radius: var(--radius); font-size: .82rem; border-left: 3px solid var(--ipe); transition: .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Revelação ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1320px) { .rail { display: none; } }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .catalog { grid-template-columns: 1fr; }
  .catalog-side { position: static; max-height: none; overflow: visible; }
  .chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .chip { border: 1px solid var(--n300); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: .82rem; }
  .chip .glyph { width: 22px; height: 22px; }
  .chip[data-eixo="all"] { padding-left: 12px; }
  .sol-grid.as-list .sol-card { grid-template-columns: 1fr auto; }
  .sol-grid.as-list .sol-top { grid-row: auto; grid-column: 1 / -1; }
  .sol-grid.as-list p { grid-column: 1; }
  .sol-grid.as-list .sol-foot { grid-column: 2; grid-row: 2 / span 2; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-head.split, .fronts, .tab-panel, .wizard, .grid-lab, .grid-team, .grid-contact, .ods-block, .mvv { grid-template-columns: 1fr; }
  .section-head.split { gap: 16px; }
  .scroller-nav { justify-self: start; }
  .tab-panel { gap: 32px; }
  .wizard-result, .lab-figure { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before, .timeline::after { display: none; }
  .hero-legend { display: none; }
  .m-grid { grid-template-columns: 1fr; padding: 24px; }
  .m-head { padding: 32px 24px 24px; } .m-actions, .m-related { padding-left: 24px; padding-right: 24px; }
  .m-pager button { padding: 16px 24px; }
}
@media (max-width: 600px) {
  :root { --header: 64px; }
  .container { padding: 0 20px; }
  .brand-word small { display: none; }
  .brand-symbol { width: 38px; }
  .header-cta, #open-search kbd { display: none; }
  .hero h1 { font-size: 2.3rem; }
  .hero-stats { gap: 24px; } .hero-stats dd { font-size: 1.9rem; }
  .hero::after { background: linear-gradient(180deg, rgba(31,74,59,.9), rgba(31,74,59,.75)); }
  .porte { grid-template-columns: 1fr; }
  .lab-modes { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .value { min-height: 0; }
  .row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .wizard-result { padding: 24px 20px; }
  .modal { padding: 0; } .modal-card { max-height: 100vh; height: 100%; border-radius: 0; }
  .m-pager { grid-template-columns: 1fr; } .m-pager button + button { border-left: 0; border-top: 1px solid var(--n200); }
  .fab { right: 16px; bottom: 16px; padding: 14px; }
  .fab span { display: none; }
  .fab.has-items span { display: inline; }
}

/* ---------- Impressão (roteiro do diagnóstico) ---------- */
@media print {
  .site-header, .rail, .fab, .toast, .marquee, .scroll-cue, #hero-graph { display: none !important; }
  body.print-roadmap main > *:not(#diagnostico), body.print-roadmap .site-footer, body.print-roadmap .wizard-form, body.print-roadmap .section-sub, body.print-roadmap .rm-actions { display: none !important; }
  body.print-roadmap .wizard { grid-template-columns: 1fr; }
  body.print-roadmap .wizard-result { background: #fff !important; color: #000; border: 1px solid #999; }
  body.print-roadmap .rm-item { color: #000; border-color: #999; }
  body.print-roadmap .rm-note, body.print-roadmap .rm-head span { color: #333; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
