/* ==========================================================================
   Percio Castelo · Home v3
   Layout editorial (Instrument Serif + Hanken Grotesk + IBM Plex Mono)
   Fonte: _design/novo.html — adaptado para SSR + acessibilidade.
   ========================================================================== */
/* ==========================================================================
   Fontes auto-hospedadas (WOFF2 Latin Subset)
   Elimina round-trips externos ao Google Fonts e reduz payload
   ========================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fallbacks metricamente compatíveis (anti-CLS no font swap).
   As métricas foram medidas no Chrome com as fontes reais a 100px:
   Plus Jakarta Sans normal = 9273.99 unidades vs Arial = 8879.93 (×1.0444)
   Plus Jakarta Sans itálico = 9582.99 vs Arial = 8879.93 (×1.0792)
   JetBrains Mono = 10799.99 vs Courier New = 10801.76 (×0.9998)
   Com size-adjust/ascent-override iguais às da fonte final, a troca de
   fonte não altera a altura da linha nem a quebra do texto (CLS ~0). */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  font-style: normal;
  font-weight: 300 800;
  src: local("Arial");
  size-adjust: 104.44%;
  ascent-override: 104%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  font-style: italic;
  font-weight: 700;
  src: local("Arial");
  size-adjust: 107.92%;
  ascent-override: 104%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  font-style: normal;
  font-weight: 400 700;
  src: local("Courier New");
  size-adjust: 99.98%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  --bg: #0e0d0b;
  --bg2: #15140f;
  --bg3: #1c1a15;
  --tx: #ece6d9;
  --mu: #b0a99b;
  --ln: #2b2924;
  --ac: #e8623a;
  --ac-rgb: 232, 98, 58;
  --serif: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, sans-serif;
  --sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  --top-h: 64px;
  color-scheme: dark;
  box-sizing: border-box;
}

/* ══ PALETAS DE DESIGN TOKENS (NEXUS STYLE) ══ */
html[data-palette="amber"], :root { --ac: #e8623a; --ac-rgb: 232, 98, 58; }
html[data-palette="matrix"]        { --ac: #10b981; --ac-rgb: 16, 185, 129; }
html[data-palette="cyan"]          { --ac: #06b6d4; --ac-rgb: 6, 182, 212; }
html[data-palette="dracula"]       { --ac: #a855f7; --ac-rgb: 168, 85, 247; }
html[data-palette="sakura"]        { --ac: #f43f5e; --ac-rgb: 244, 63, 94; }
html[data-palette="slate"]         { --ac: #f1f5f9; --ac-rgb: 241, 245, 249; }
html[data-theme-mode="light"][data-palette="slate"] { --ac: #334155; --ac-rgb: 51, 65, 85; }

/* ══ MODOS DE TEMA (CLARO / ESCURO) ══ */
html[data-theme-mode="dark"], :root {
  --bg: #0e0d0b;
  --bg2: #15140f;
  --bg3: #1c1a15;
  --tx: #ece6d9;
  --mu: #b0a99b;
  --ln: #2b2924;
  color-scheme: dark;
}
html[data-theme-mode="light"] {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --tx: #0f172a;
  --mu: #475569;
  --ln: #e2e8f0;
  color-scheme: light;
}
html[data-theme-mode="light"] .top {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #e2e8f0;
}
html[data-theme-mode="light"] .kb,
html[data-theme-mode="light"] .theme-btn,
html[data-theme-mode="light"] .cv {
  border-color: #e2e8f0;
  color: #0f172a;
  background: #ffffff;
}
html[data-theme-mode="light"] .kb:hover,
html[data-theme-mode="light"] .theme-btn:hover,
html[data-theme-mode="light"] .theme-btn.is-open,
html[data-theme-mode="light"] .cv:hover {
  border-color: var(--ac);
  color: var(--ac);
  background: #ffffff;
}
html[data-theme-mode="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}
html[data-theme-mode="light"] .theme-popover {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
}
html[data-theme-mode="light"] .theme-popover-head {
  border-bottom-color: #f1f5f9;
}
html[data-theme-mode="light"] .theme-popover-title,
html[data-theme-mode="light"] .theme-chip-name {
  color: #0f172a;
}
html[data-theme-mode="light"] .theme-mode-btn,
html[data-theme-mode="light"] .theme-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme-mode="light"] .theme-mode-btn:hover {
  background: #f1f5f9;
  border-color: var(--ac);
  color: var(--ac);
}
html[data-theme-mode="light"] .theme-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
html[data-theme-mode="light"] .theme-chip.is-active {
  background: #ffffff;
  border-color: var(--ac);
  box-shadow: 0 0 0 1px var(--ac), 0 2px 8px rgba(15, 23, 42, 0.04);
}
html[data-theme-mode="light"] .theme-toast {
  background: #ffffff;
  color: #0f172a;
  border-color: var(--ac);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
html[data-theme-mode="light"] .pbox {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}
html[data-theme-mode="light"] .pbox input {
  color: #0f172a;
  border-bottom-color: #e2e8f0;
}
html[data-theme-mode="light"] .pbox input:focus,
html[data-theme-mode="light"] .pbox input:focus-visible {
  border-bottom-color: var(--ac);
  background: #f8fafc;
}
html[data-theme-mode="light"] .pal-cat-header {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html[data-theme-mode="light"] .pal-cat-title,
html[data-theme-mode="light"] .pal-item-title {
  color: #0f172a !important;
}
html[data-theme-mode="light"] .pal-item-desc {
  color: #64748b !important;
}
html[data-theme-mode="light"] .pal-item:hover,
html[data-theme-mode="light"] .pal-item.on,
html[data-theme-mode="light"] .pal-item.is-selected {
  background: #f1f5f9 !important;
}
html[data-theme-mode="light"] .blog-cover-frame,
html[data-theme-mode="light"] .cert-img-frame,
html[data-theme-mode="light"] .cat-thumb-frame {
  background: #f1f5f9;
}
html[data-theme-mode="light"] .blog-card:hover,
html[data-theme-mode="light"] .cert-card:hover,
html[data-theme-mode="light"] .cat-card:hover {
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* ══ PRESERVAÇÃO DE CÓDIGO/TERMINAL DARK NO MODO CLARO (PADRÃO GITHUB/STRIPE) ══ */
html[data-theme-mode="light"] pre,
html[data-theme-mode="light"] .highlight,
html[data-theme-mode="light"] .terminal-window,
html[data-theme-mode="light"] .code-block,
html[data-theme-mode="light"] div[class*="language-"] {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme-mode="light"] pre code,
html[data-theme-mode="light"] .highlight code {
  color: #f8fafc !important;
  background: transparent !important;
}
html[data-theme-mode="light"] .terminal-header,
html[data-theme-mode="light"] .code-header {
  background: #1e293b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}
html[data-theme-mode="light"] :not(pre) > code {
  background: #f1f5f9 !important;
  color: var(--ac) !important;
  border: 1px solid #e2e8f0 !important;
}

/* ══ CATEGORIAS ESPECIAIS NA PALETA DE COMANDOS ══ */
.pal-cat-header-recent { border-left: 3px solid #f59e0b !important; }
.pal-cat-header-theme  { border-left: 3px solid var(--ac) !important; }
.pal-swatch-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ══ VIEW TRANSITIONS (TÚNEL / CIRCULAR RIPPLE EFFECT ESTILO NEXUS) ══ */
::view-transition-image-pair(root) {
  isolation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}
html { scroll-padding-top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--tx);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 400;
  background: var(--ac); color: #fff; padding: 10px 16px; font-weight: 500;
  transition: top .2s;
}
.skip:focus { top: 12px; }
.mono { font: 400 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mu); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* progresso + cursor */
#pg { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--ac); z-index: 120; }
.cur {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--ac); border-radius: 50%; pointer-events: none; z-index: 200;
  opacity: 0; transition: opacity .3s, background .25s;
}
.cur.on { opacity: .9; }
.cur.h { background: color-mix(in srgb, var(--ac) 18%, transparent); }
@media (hover: none) { .cur { display: none; } }

/* header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ln);
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); gap: 20px; }
.brand { font: 400 24px var(--serif); white-space: nowrap; }
.brand i { color: var(--ac); font-style: normal; }
.top nav ul { display: flex; gap: 12px; font-size: 12.5px; list-style: none; white-space: nowrap; }
.top nav li { flex-shrink: 0; white-space: nowrap; }
.top nav a { color: var(--mu); transition: color .2s; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="true"] { color: var(--tx); }
.tr { display: flex; gap: 8px; align-items: center; }
.kb, .cv {
  font-size: 13px; border: 1px solid var(--ln); padding: 8px 13px; transition: .2s; white-space: nowrap;
}
.mb {
  display: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  border: 1px solid var(--ln);
  padding: 13px 15px;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  transition: .2s;
  white-space: nowrap;
}
.kb { font-family: var(--mono); color: var(--mu); }
.kb:hover, .cv:hover, .mb:hover { border-color: var(--ac); color: var(--ac); }

/* dropdown editorial desktop */
.nav-dropdown {
  position: relative;
}
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-caret {
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
  display: inline-block;
  vertical-align: middle;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 18px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: color-mix(in srgb, var(--bg2) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ln);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 6px;
  min-width: 154px;
  list-style: none;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li {
  width: 100%;
  margin: 0;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 8px 14px;
  font-size: 13px !important;
  border-radius: 5px;
  color: var(--mu) !important;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--tx) !important;
  background: var(--bg3);
}

/* menu mobile */
.mnav {
  display: none;
  border-top: 1px solid var(--ln);
  background: var(--bg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  position: relative;
  z-index: 60;
  /* O painel rola sozinho: nunca passa da altura da tela nem arrasta a página */
  max-height: calc(100vh - var(--top-h) - env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ln) transparent;
}
.mnav.on { display: block; }
.mnav > .wrap {
  display: block;
  height: auto;
  padding-top: 4px;
  padding-bottom: 18px;
}
.mnav ul { list-style: none; padding: 8px 0 20px; }
.mnav li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--ln);
  font: 400 26px/1.1 var(--serif);
}
.mnav li a:hover { color: var(--ac); }
.mnav .mcta { display: flex; gap: 10px; margin-top: 18px; }
.mnav .mcta a { flex: 1; text-align: center; }

/* mobile dropdown & subitens */
.mnav-group {
  border-bottom: 1px solid var(--ln);
  padding: 14px 0 10px;
}
.mnav-group-title {
  display: block;
  font: 400 26px/1.1 var(--serif);
  color: var(--tx);
  margin-bottom: 8px;
}
.mnav-sub {
  list-style: none;
  padding: 0 0 6px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.mnav-sub li a {
  font: 400 18px/1.3 var(--sans) !important;
  color: var(--mu) !important;
  padding: 6px 0 !important;
  border-bottom: none !important;
}
.mnav-sub li a:hover {
  color: var(--ac) !important;
}

/* hero */
.hero { position: relative; padding: clamp(40px, 7vw, 80px) 0 0; overflow: hidden; }
#cvs { position: absolute; inset: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hud {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: 10px; transform: translateX(-50%); text-align: center;
}
.hud b { font: 400 34px/1 var(--serif); letter-spacing: -.02em; }
.sim {
  font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ac); color: var(--ac); padding: 9px 16px; transition: .2s; background: var(--bg);
}
.sim:hover { background: var(--ac); color: var(--bg); }
.meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ac);
  margin-right: 10px; animation: pl 2.4s ease-in-out infinite;
}
@keyframes pl { 50% { opacity: .25; } }
.hero-kicker {
  display: block;
  font-size: 12px;
  color: var(--ac);
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 10px;
}
h1 { font: 800 clamp(36px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -.035em; }
h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .ln > span { display: block; transform: translateY(105%); animation: up 1.1s cubic-bezier(.2, .7, .1, 1) forwards; }
h1 .ln:nth-child(2) > span { animation-delay: .12s; }
h1 .ln:nth-child(3) > span { animation-delay: .24s; }
h1 em, .sh em { color: var(--ac); font-style: italic; font-weight: 700; }
@keyframes up { to { transform: none; } }
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 64px);
  margin-top: clamp(24px, 3vw, 48px); align-items: end;
}
.intro p { font-size: clamp(16px, 1.4vw, 19px); color: var(--mu); max-width: 520px; }
.intro p b { color: var(--tx); font-weight: 400; }
.acts { display: flex; gap: 28px; justify-content: flex-end; align-items: center; font-size: 15px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--tx); color: var(--bg); padding: 15px 28px; font-weight: 500;
  transition: background .25s, color .25s, transform .2s;
}
.btn:hover { background: var(--ac); color: #fff; }
.lnk { border-bottom: 1px solid var(--mu); padding-bottom: 3px; transition: .2s; display: inline-block; }
.lnk:hover { border-color: var(--ac); color: var(--ac); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 5vw, 80px); border-top: 1px solid var(--ln); list-style: none; }
.stats li { padding: 20px 0 20px 24px; border-left: 1px solid var(--ln); }
.stats li:first-child { border: 0; padding-left: 0; }
.stats b { display: block; font: 700 clamp(36px, 4.4vw, 64px)/1 var(--mono); letter-spacing: -.03em; }
.stats .mono { display: block; margin-top: 10px; }

/* seções */
section.s {
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 24px;
}
.sh {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; border-top: 1px solid var(--ln);
  padding-top: 22px; margin-bottom: clamp(32px, 5vw, 64px);
}
.sh h2 { font: 700 clamp(28px, 3.6vw, 48px)/1.12 var(--serif); letter-spacing: -.025em; max-width: 880px; }
.sh em { font-style: italic; font-weight: 700; color: var(--ac); }
.sh-content { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.sh-content h2 { margin: 0; }
.sh-sub { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; color: var(--mu, #6b6b6b); margin: 0; }

/* sobre */
.ab { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); }
.lede { font: 400 clamp(22px, 2.5vw, 34px)/1.3 var(--serif); letter-spacing: -.015em; }
.ab p.t { color: var(--mu); margin-top: 20px; max-width: 620px; }
.fc { margin: 0; }
.fc div { padding: 16px 0; border-top: 1px solid var(--ln); }
.fc div:last-child { border-bottom: 1px solid var(--ln); }
.fc dt { display: block; margin-bottom: 4px; }
.fc dd { font-weight: 400; font-size: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  font: 400 12px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--ln); padding: 8px 14px; color: var(--mu); transition: .2s;
}
.chip:hover { color: var(--tx); border-color: var(--mu); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.stk { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--ln); padding-top: 26px; }
.stk > .mono { display: block; margin-bottom: 18px; }
.stk-badges { margin-top: 12px; }
.stk-items { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.stack-badge {
  display: inline-flex; align-items: center; padding: 6px 12px; background: var(--bg2);
  border: 1px solid var(--ln); border-radius: 6px; font: 500 12.5px var(--mono);
  color: var(--tx); letter-spacing: .02em; transition: border-color .2s, transform .2s, color .2s, background .2s;
}
.stack-badge:hover { border-color: var(--ac); color: var(--ac); background: var(--bg); transform: translateY(-2px); }
.stack-expand {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--ln);
  background: transparent;
  color: var(--mu);
  padding: 9px 14px;
  font: 400 12px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stack-expand:hover { border-color: var(--ac); color: var(--ac); }
.pr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 80px); list-style: none; }
.pr li { border-top: 1px solid var(--ln); padding-top: 16px; }
.pr h3 { font: 400 24px/1.1 var(--serif); margin: 8px 0; }
.pr p { color: var(--mu); font-size: 15px; }

/* listas */
.lst { list-style: none; }
.row {
  display: grid; grid-template-columns: 90px 1.1fr 1.5fr 150px; gap: 24px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--ln); transition: padding .35s;
}
.lst > li:last-child > .row, .lst > .row:last-child { border-bottom: 1px solid var(--ln); }
.row:hover { padding-left: 16px; }
.row h3 { font: 400 clamp(24px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; transition: color .25s; }
.row:hover h3 { color: var(--ac); }
.row p { color: var(--mu); font-size: 16px; }
.row .r { text-align: right; }
.row.im { grid-template-columns: 200px 1.1fr 1.6fr; }
.big { font: 400 clamp(44px, 5vw, 76px)/1 var(--serif); letter-spacing: -.03em; transition: color .25s; }
.row:hover .big { color: var(--ac); }
.proj {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--ln); transition: padding .35s;
}
.lst > li:last-child > .proj { border-bottom: 1px solid var(--ln); }
.proj:hover { padding-left: 14px; }
.proj h3 { font: 400 clamp(32px, 5vw, 76px)/1 var(--serif); letter-spacing: -.035em; transition: color .25s; }
.proj:hover h3 { color: var(--ac); }
.proj.sm h3 { font-size: clamp(24px, 3vw, 42px); letter-spacing: -.02em; }
.proj p { color: var(--mu); font-size: 15px; margin-top: 8px; max-width: 600px; }
.proj .r { text-align: right; }
.more { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.cap { margin-top: 18px; }

/* incidente */
.inc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(56px, 8vw, 110px); }
.inc > * { min-width: 0; }
.clock { font: 400 clamp(80px, 12vw, 190px)/.9 var(--serif); letter-spacing: -.05em; }
.tag {
  display: inline-block; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ac); border: 1px solid var(--ac); padding: 4px 10px; margin: 18px 0 14px;
}
.inc p.d { color: var(--mu); min-height: 3.4em; max-width: min(440px, 100%); }
.cnt { display: flex; gap: 40px; margin-top: 26px; border-top: 1px solid var(--ln); padding-top: 18px; }
.cnt b { display: block; font: 400 clamp(38px, 4vw, 56px)/1 var(--serif); letter-spacing: -.02em; }
.log { background: var(--bg2); border: 1px solid var(--ln); font: 400 12.5px/1.95 var(--mono); min-height: 250px; }
.log .bar { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--ln); }
.log .ln2 {
  padding: 0 20px; color: var(--mu); opacity: 0; transform: translateX(-8px); transition: .5s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.log .ln2.on { opacity: 1; transform: none; }
.log .ln2.cur2 { color: var(--tx); }
.log .ln2:nth-child(1) { margin-top: 12px; }
.log .rd { display: inline-block; height: .8em; width: 80px; background: var(--tx); vertical-align: -1px; }
.log .hl { color: var(--ac); }
.ctl { grid-column: 1 / -1; margin-top: 24px; }
.ctl .row2 { display: flex; align-items: center; gap: 20px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--ac) var(--v, 0%), var(--ln) var(--v, 0%)); outline: 0; cursor: pointer;
}
input[type="range"]:focus-visible { outline: 2px solid var(--ac); outline-offset: 8px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ac); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--ac);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ac);
  border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--ac);
}
.ticks { display: flex; justify-content: space-between; margin: 14px 0 0 118px; }
.ticks button { font: 400 12px var(--mono); color: var(--mu); transition: .2s; padding: 4px 0; }
.ticks button.on { color: var(--ac); }
.play {
  font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ln); padding: 9px 14px; white-space: nowrap; transition: .2s;
}
.play:hover { border-color: var(--ac); color: var(--ac); }

/* experiência (accordion) */
.ex { border-top: 1px solid var(--ln); }
.ex:last-child { border-bottom: 1px solid var(--ln); }
.ex .hd {
  display: grid; grid-template-columns: 200px 1fr 1fr 30px; gap: 24px; align-items: baseline;
  padding: 26px 0; width: 100%; text-align: left;
}
.ex h3 { font: 400 clamp(24px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; transition: color .25s; }
.ex .hd:hover h3 { color: var(--ac); }
.ex .pl { font: 400 22px var(--mono); color: var(--ac); text-align: right; transition: transform .3s; }
.ex.open .pl { transform: rotate(45deg); }
.ex .bd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.ex.open .bd { grid-template-rows: 1fr; }
.ex .bd > div { overflow: hidden; }
.ex .bd p { color: var(--mu); padding: 0 0 28px 224px; max-width: 900px; }
.lead-badge {
  display: inline-block;
  font-size: 10.5px;
  color: var(--ac);
  background: rgba(232, 98, 58, .12);
  border: 1px solid rgba(232, 98, 58, .3);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* certificados */
.mq {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.mq > ul { display: flex; gap: 64px; width: max-content; animation: mq 60s linear infinite; list-style: none; }
.mq:hover > ul { animation-play-state: paused; }
.mq li { font: 400 clamp(28px, 3.4vw, 48px) var(--serif); letter-spacing: -.02em; white-space: nowrap; color: var(--mu); transition: color .2s; }
.mq li:hover { color: var(--ac); }
@keyframes mq { to { transform: translateX(-50%); } }

/* além do terminal */
.al { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); }
.al p { color: var(--mu); max-width: 640px; }
.al p + p { margin-top: 14px; }

/* preview flutuante */
.pv {
  position: fixed; left: 0; top: 0; width: 290px; padding: 20px; background: var(--bg2);
  border: 1px solid var(--ac); z-index: 90; pointer-events: none; opacity: 0; transition: opacity .25s;
}
.pv.on { opacity: 1; }
.pv b { display: block; font: 400 26px/1.1 var(--serif); margin-bottom: 12px; }
.pv span { display: block; font: 400 12px/1.9 var(--mono); color: var(--mu); }
.pv i { display: block; height: 2px; margin-top: 14px; background: var(--ac); width: 0; transition: width .7s; }
.pv.on i { width: 100%; }
@media (hover: none) { .pv { display: none; } }

/* contato */
.cta {
  margin-top: clamp(48px, 6vw, 96px);
  padding: 32px 0 60px;
}
.cta h2 { font: 400 clamp(46px, 9vw, 150px)/.95 var(--serif); letter-spacing: -.04em; margin-top: 20px; }
.cta h2 em { color: var(--ac); }
.cta-note { max-width: 680px; margin-top: 20px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: var(--mu, #6b6b6b); }
.cta .mail {
  display: inline-block; margin-top: 44px; font: 400 clamp(20px, 2.6vw, 34px) var(--serif);
  border-bottom: 1px solid var(--ac); padding-bottom: 6px; transition: .2s; word-break: break-all;
}
.cta .mail:hover { color: var(--ac); }
.soc { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; font-size: 15px; list-style: none; }

/* rodapé */
footer { border-top: 1px solid var(--ln); padding: 26px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--ac); }

/* paleta de comandos */
.pal {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.pal.on { display: flex; }
.pbox {
  width: min(680px, 94vw); background: #131210; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 14px; overflow: hidden;
}
.pbox input {
  width: 100%; background: rgba(255, 255, 255, 0.02); border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px; font: 400 16px var(--sans); color: #f1f5f9; outline: 0;
  transition: border-color .15s ease, background .15s ease;
}
.pbox input:focus,
.pbox input:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: -2px;
  border-bottom-color: var(--ac);
  background: rgba(255, 255, 255, 0.04);
}
.pbox input::placeholder { color: #64748b; opacity: .8; }
.pbox ul { list-style: none; max-height: 480px; overflow-y: auto; padding: 6px 0 12px; }

/* Items base */
.pbox li {
  padding: 9px 16px; margin: 2px 10px; border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 14px; transition: background .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.pbox li:hover, .pbox li.on {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.pbox li.on {
  background: rgba(232, 122, 42, 0.12);
  border-color: rgba(232, 122, 42, 0.35);
}

/* Category header dividers — Separação visual nítida */
.pal-cat-header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 18px 10px 6px 10px !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  cursor: default !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #1b1916 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.pal-cat-header:first-child {
  margin-top: 4px !important;
}
.pal-cat-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pal-cat-icon {
  font-size: 14px;
  line-height: 1;
}
.pal-cat-title {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: .08em;
  text-transform: uppercase !important;
  color: #f8fafc !important;
}
.pal-cat-count {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  color: #94a3b8 !important;
  text-transform: none !important;
}

/* Bordas de destaque por categoria no header */
.pal-cat-header-paginas { border-left: 3px solid #38bdf8 !important; }
.pal-cat-header-ferramentas { border-left: 3px solid #fbbf24 !important; }
.pal-cat-header-servicos { border-left: 3px solid #34d399 !important; }
.pal-cat-header-blog { border-left: 3px solid #c084fc !important; }
.pal-cat-header-recents { border-left: 3px solid #94a3b8 !important; }
.pal-cat-header-theme { border-left: 3px solid var(--ac) !important; }

/* Item Typography & Structure */
.pal-item-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.pal-item-title {
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.pbox li:hover .pal-item-title, .pbox li.on .pal-item-title {
  color: var(--ac) !important;
  font-weight: 600 !important;
}
.pal-item-desc {
  font-family: var(--sans) !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  line-height: 1.35;
}

/* Item Badges — Cores contextuais nítidas por tipo */
.pal-item-badge {
  font: 600 10px var(--mono) !important;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.pal-badge-paginas {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
}
.pal-badge-ferramentas {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}
.pal-badge-servicos {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}
.pal-badge-blog {
  background: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
  color: #c084fc !important;
}
.pal-item-recent .pal-item-badge {
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.pal-item-theme .pal-item-badge {
  background: rgba(var(--ac-rgb), 0.12) !important;
  border-color: rgba(var(--ac-rgb), 0.35) !important;
  color: var(--ac) !important;
}
.pbox li.on .pal-item-badge {
  border-color: currentColor;
}

/* Advanced search footer button */
.pal-adv-item {
  margin: 14px 10px 4px 10px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: rgba(232, 122, 42, 0.08) !important;
  border: 1px dashed rgba(232, 122, 42, 0.4) !important;
}
.pal-adv-item:hover, .pal-adv-item.on {
  background: rgba(232, 122, 42, 0.18) !important;
  border-color: var(--ac) !important;
}
.pal-adv-item .pal-item-title {
  color: var(--ac) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}
.pal-adv-item .pal-item-desc {
  color: #fdba74 !important;
  opacity: 0.85;
}
.pal-adv-item .pal-item-badge {
  background: var(--ac) !important;
  color: #fff !important;
  border-color: var(--ac) !important;
}

/* ══ SELETOR DE TEMA E PALETAS (HEADER & POPOVER) ══ */
.theme-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  height: 38.8px;
  padding: 8px 13px;
  border: 1px solid var(--ln);
  background: transparent;
  color: var(--mu);
  border-radius: 0;
  cursor: pointer;
  transition: .2s;
  position: relative;
  box-sizing: border-box;
}
.theme-btn:hover, .theme-btn.is-open {
  border-color: var(--ac);
  color: var(--ac);
}
.theme-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}
.theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac);
  flex-shrink: 0;
  transition: background-color .2s ease;
}

/* Popover Flutuante */
.theme-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 285px;
  background: #141311;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: themePopIn .18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.theme-popover[hidden] {
  display: none !important;
}
@keyframes themePopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.theme-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-popover-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #f1f5f9;
}
.theme-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.theme-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-mode-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}
.theme-mode-btn:hover {
  border-color: var(--ac);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ac);
}
.theme-palettes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.theme-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  color: #cbd5e1;
}
.theme-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.theme-chip.is-active {
  border-color: var(--ac);
  background: rgba(232, 98, 58, 0.12);
  color: #fff;
  font-weight: 600;
}
.theme-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-chip-name {
  font-family: var(--sans);
  font-size: 11.5px;
  white-space: nowrap;
}

/* A11y dentro do Theme Popover */
.theme-popover-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}
html[data-theme-mode="light"] .theme-popover-divider {
  background: rgba(0, 0, 0, 0.08);
}
.theme-popover-a11y {
  display: flex;
}
.theme-a11y-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--tx, #cbd5e1);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.theme-a11y-btn:hover {
  background: rgba(232, 98, 58, 0.12);
  border-color: var(--ac, #e8623a);
  color: #ffffff;
}
.theme-a11y-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.theme-a11y-icon {
  width: 15px;
  height: 15px;
  color: var(--ac, #e8623a);
  flex-shrink: 0;
}
.theme-a11y-kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mu, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.05em;
}
html[data-theme-mode="light"] .theme-a11y-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}
html[data-theme-mode="light"] .theme-a11y-btn:hover {
  background: rgba(232, 98, 58, 0.1);
  color: var(--ac, #e8623a);
}
html[data-theme-mode="light"] .theme-a11y-kbd {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

/* Toast de Notificação de Troca */
.theme-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  background: #191815;
  border: 1px solid var(--ac);
  color: #f8fafc;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(232, 98, 58, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity .25s ease, transform .25s ease;
}
.theme-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .1, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  h1 .ln > span { animation: none; transform: none; }
  .dot, .mq > ul { animation: none; }
  .mq { overflow-x: auto; }
}

/* A nav horizontal só cabe acima de ~1400px. Nessa faixa as ações do header
   também são compactadas para fecharem na prumada da coluna de conteúdo do
   .wrap, em vez de vazar para fora dela. */
@media (min-width: 1401px) {
  .tr { gap: 6px; }
  .kb,
  .cv { padding: 8px 11px; }
}

/* Abaixo disso o menu vira hambúrguer para nada estourar a viewport. */
@media (max-width: 1400px) {
  .top nav { display: none; }
  .mb { display: inline-flex; }
}

/* Header compacto em telas estreitas: marca + tema + idioma + menu cabem
   até 320px sem empurrar o botão Menu para fora da tela. */
@media (max-width: 480px) {
  .top .wrap { gap: 12px; padding-inline: 16px; }
  .brand { font-size: 21px; }
  .tr { gap: 6px; }
  .kb,
  .cv { padding: 8px 11px; font-size: 12.5px; }
  .mb { padding: 13px 13px; font-size: 12.5px; min-height: 44px; }
  .theme-btn { padding: 8px 10px; }
}
@media (max-width: 380px) {
  .top .wrap { gap: 8px; padding-inline: 12px; }
  .brand { font-size: 18px; }
  .tr { gap: 4px; }
  .kb,
  .cv { padding: 7px 9px; font-size: 12px; }
  .mb { padding: 13px 10px; font-size: 12px; min-height: 44px; }
  .theme-btn { padding: 7px 9px; }
}
@media (max-width: 900px) {
  .kb, .tr .cv-d { display: none; }
  .intro, .inc, .ab, .al { grid-template-columns: 1fr; }
  .acts { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--ln); }
  .sh { grid-template-columns: 1fr; gap: 12px; }
  .row, .row.im { grid-template-columns: 1fr; gap: 8px; }
  .row .r { text-align: left; }
  .proj { grid-template-columns: 1fr; gap: 6px; }
  .proj .r { text-align: left; }
  .pr { grid-template-columns: 1fr 1fr; }
  .ex .hd { grid-template-columns: 1fr 30px; gap: 6px; }
  .ex .hd > :nth-child(1) { grid-column: 1; }
  .ex .hd h3 { grid-column: 1; }
  .ex .hd > :nth-child(3) { grid-column: 1; }
  .ex .hd .pl { grid-row: 1; grid-column: 2; }
  .ex .bd p { padding-left: 0; }
  .ticks { margin-left: 0; }
  .ctl .row2 { flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .hero { padding-top: 36px; }
  .meta { margin-bottom: 18px; }
  .hero-kicker { margin-bottom: 10px; }
  h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.01; }
  .intro { margin-top: 22px; }
  .stats { margin-top: 48px; }
  .hud {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none;
    margin: 28px auto 12px;
  }
}
@media (max-width: 520px) {
  .pr { grid-template-columns: 1fr; }
  .hud b { font-size: 26px; }
  .chips .chip {
    flex: 1 1 calc(50% - 4px);
    min-height: 34px;
  }
  .chips .chip:last-child { flex-basis: 100%; }
  .stk-badges:not(.is-expanded) .stk-items {
    max-height: 276px;
    overflow: hidden;
    position: relative;
  }
  .stk-badges:not(.is-expanded) .stk-items::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 52px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
  }
  .stack-expand { display: inline-block; }
  .stk-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stack-badge { flex: 1; min-height: 40px; }
  .floating-actions {
    right: 16px;
    bottom: 24px;
    gap: 10px;
  }
  .btn-whatsapp-float { width: 50px; height: 50px; }
  .btn-whatsapp-float svg { width: 26px; height: 26px; }
  .btn-back-to-top { width: 42px; height: 42px; }
}

/* ==========================================================================
   COMPONENTES ADICIONAIS V3 (Mídia Real & Floating Actions)
   ========================================================================== */

/* Bio / Avatar na seção Sobre */
.ab-bio-col {
  display: flex;
  flex-direction: column;
}
.ab-avatar-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.ab-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--ln);
  flex-shrink: 0;
}
.ab-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ab-avatar-name {
  font: 700 16px var(--sans);
  color: var(--tx);
  letter-spacing: -.01em;
}
.ab-avatar-role {
  font-size: 12px;
  color: var(--mu);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Atuação - Accordion Interativo */
.atuacao-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.atuacao-item {
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.atuacao-item:hover, .atuacao-item.is-open {
  border-color: var(--ac);
  background: color-mix(in srgb, var(--bg2) 92%, var(--ac) 8%);
}
.atuacao-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: background .2s;
}
.atuacao-header .num {
  font: 500 13px var(--mono);
  color: var(--ac);
  flex-shrink: 0;
}
.atuacao-header-text {
  flex: 1;
  min-width: 0;
}
.atuacao-title {
  font: 700 clamp(18px, 1.8vw, 22px)/1.25 var(--sans);
  color: var(--tx);
  letter-spacing: -.015em;
  margin-bottom: 4px;
}
.atuacao-summary {
  font-size: 14px;
  color: var(--mu);
  line-height: 1.45;
}
.atuacao-header .tag-badge {
  font: 500 11.5px var(--mono);
  color: var(--ac);
  background: rgba(232, 98, 58, .12);
  border: 1px solid rgba(232, 98, 58, .3);
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.atuacao-toggle-icon {
  font: 400 22px/1 var(--mono);
  color: var(--mu);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ln);
  flex-shrink: 0;
  transition: transform .25s, color .25s, border-color .25s;
}
.atuacao-item.is-open .atuacao-toggle-icon {
  color: var(--ac);
  border-color: var(--ac);
}
.atuacao-body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.atuacao-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding-top: 20px;
}
.atuacao-detail-box {
  background: var(--bg);
  padding: 16px;
  border: 1px solid var(--ln);
  border-radius: 10px;
}
.atuacao-detail-lbl {
  display: block;
  font-size: 12px;
  color: #b0a99a;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.atuacao-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.atuacao-badge {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 6px;
  color: var(--tx);
}
.atuacao-deliverable {
  font-size: 13.5px;
  color: var(--mu);
  line-height: 1.5;
  margin-bottom: 12px;
}
.atuacao-metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ac);
  background: rgba(232, 98, 58, .1);
  padding: 3px 8px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .atuacao-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .atuacao-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Impacto em Produção - Cards Interativos */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.impact-card {
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.impact-card:hover {
  border-color: var(--ac);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45);
}
.impact-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.impact-metric {
  font: 800 clamp(30px, 3vw, 40px)/1 var(--sans);
  color: var(--ac);
  letter-spacing: -.03em;
}
.impact-badge {
  font-size: 12px;
  color: #b0a99a;
  background: var(--bg);
  border: 1px solid var(--ln);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.impact-title {
  font: 700 18px/1.3 var(--sans);
  color: var(--tx);
  letter-spacing: -.015em;
  margin-bottom: 10px;
  transition: color .2s;
}
.impact-card:hover .impact-title {
  color: var(--ac);
}
.impact-desc {
  font-size: 13.5px;
  color: var(--mu);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}
.impact-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ln);
  font-size: 12px;
  color: #b0a99a;
}
.impact-tag {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
}
/* Seta "abrir" desenhada em CSS (mask), sem emoji no HTML.
   Mesmo traço em todos os cards; herda a cor do contexto. */
.impact-arrow,
.proj-item-arrow {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8.5 7H17v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8.5 7H17v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.impact-arrow {
  width: 16px;
  height: 16px;
  color: var(--mu);
  transition: transform .2s, color .2s;
}
.impact-card:hover .impact-arrow {
  color: var(--ac);
  transform: translate(2px, -2px);
}
@media (max-width: 960px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* Blog Cards com Imagens Reais e Bordas Suaves */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
  height: 100%;
}
.blog-card:hover {
  border-color: var(--ac);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45);
}
.blog-cover-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  border-bottom: 1px solid var(--ln);
}
.blog-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-cover-frame img { transform: scale(1.04); }
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #b0a99a;
  margin-bottom: 12px;
}
.blog-card-title {
  font: 700 clamp(18px, 1.6vw, 21px)/1.28 var(--sans);
  letter-spacing: -.015em;
  margin-bottom: 10px;
  transition: color .2s;
}
.blog-card:hover .blog-card-title { color: var(--ac); }
.blog-card-summary {
  color: var(--mu);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.blog-card-tag {
  font: 500 12px var(--mono);
  padding: 3px 8px;
  border: 1px solid var(--ln);
  border-radius: 6px;
  color: #b0a99a;
  text-transform: uppercase;
  letter-spacing: .03em;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Certificados Cards com Imagens Reais e Bordas Suaves */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.cert-card {
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  border-color: var(--ac);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45);
}
.cert-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--ln);
}
.cert-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cert-card:hover .cert-img-frame img { transform: scale(1.03); }
.cert-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cert-card-title {
  font: 400 20px/1.2 var(--serif);
  margin-bottom: 6px;
  transition: color .2s;
}
.cert-card:hover .cert-card-title { color: var(--ac); }
.cert-card-issuer {
  font-size: 14px;
  color: #b0a99a;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 900px) {
  .certs-grid {
    height: 300px; /* Fixed height for slider */
    overflow: hidden;
    position: relative;
  }
  .certs-grid > .cert-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1;
    opacity: 0;
  }
  .certs-grid > .cert-card.active {
    
    z-index: 2;
    transform: translateX(0);
    opacity: 1;
  }
  /* Navigation arrows */
  .cert-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(232, 98, 58, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .cert-nav-arrow:hover {
    background: rgba(232, 98, 58, 0.9);
    transform: translateY(-50%) scale(1.1);
  }
  .cert-nav-arrow-left {
    left: 16px;
  }
  .cert-nav-arrow-right {
    right: 16px;
  }
  /* Hide scrollbar */
  .certs-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .certs-grid::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
  }
}
.cats-section { margin-top: 36px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.cat-card {
  background: var(--bg2);
  border: 1px solid var(--ln);
  padding: 10px;
  cursor: pointer;
  transition: border-color .25s, transform .25s;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { border-color: var(--ac); transform: translateY(-3px); }
.cat-thumb-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #181714;
  overflow: hidden;
  border-bottom: 1px solid var(--ln);
  margin-bottom: 8px;
}
.cat-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.cat-card:hover .cat-thumb-frame img { transform: scale(1.06); }
.cat-card-info h3,
.cat-card-info h4,
.cat-card-name {
  font: 400 18px/1.1 var(--serif);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-star-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -1px;
  background-color: #e3b341;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3.1l2.6 5.6 6.1.8-4.5 4.3 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.5l6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3.1l2.6 5.6 6.1.8-4.5 4.3 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.5l6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cat-tribute-star {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  background-color: #e3b341;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3.1l2.6 5.6 6.1.8-4.5 4.3 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.5l6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3.1l2.6 5.6 6.1.8-4.5 4.3 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.5l6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cat-card-role {
  font-size: 12.5px;
  color: var(--mu);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card-tag {
  font: 400 10.5px var(--mono);
  color: var(--ac);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* Ações e expansão do Mural de Gatos */
.cats-footer-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.btn-cats-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  color: var(--tx);
  padding: 13px 26px;
  font: 600 12.5px var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  border-radius: 4px;
}
.btn-cats-toggle:hover {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(232, 98, 58, .15);
}
.btn-cats-toggle[aria-expanded="true"] {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--bg);
}
.cat-card-extra[hidden] {
  display: none !important;
}
.cat-card-extra.is-revealed {
  animation: fadeInCat .35s ease forwards;
}
@keyframes fadeInCat {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card-extra.is-revealed { animation: none; }
}

/* Modal do Gato Resgatado */
.cat-modal {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.cat-modal.is-open { display: flex; }
.cat-modal-box {
  width: min(540px, 94vw);
  background: var(--bg);
  border: 1px solid var(--ln);
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  max-height: 90vh;
  overflow-y: auto;
}
.cat-modal-close {
  position: absolute; right: 18px; top: 18px;
  font-size: 24px; line-height: 1; color: var(--mu);
  padding: 4px; transition: color .2s;
}
.cat-modal-close:hover { color: var(--ac); }
.cat-modal-header {
  display: flex; gap: 20px; align-items: center; margin-bottom: 20px;
}
.cat-modal-avatar-frame {
  width: 90px; height: 90px; flex-shrink: 0;
  border: 1px solid var(--ln); overflow: hidden;
}
.cat-modal-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.cat-modal-title { font: 400 28px/1.1 var(--serif); }
.cat-modal-tag {
  font: 400 11px var(--mono);
  color: var(--ac);
  text-transform: uppercase;
  display: inline-block;
  margin-top: 4px;
}
.cat-modal-role { font-size: 14px; color: var(--mu); margin-top: 4px; }
.cat-modal-tribute {
  background: color-mix(in srgb, var(--ac) 12%, transparent);
  border: 1px solid var(--ac);
  padding: 10px 14px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--tx);
}
.cat-modal-bio {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--tx);
  border-top: 1px solid var(--ln);
  padding-top: 16px;
}

/* Floating Actions: WhatsApp & Scroll to Top */
.floating-actions {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 80px);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.btn-whatsapp-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #128c7e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(18, 140, 126, .4);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-whatsapp-float:hover {
  transform: scale(1.08);
  background: #0f8174;
  box-shadow: 0 6px 24px rgba(18, 140, 126, .6);
  color: #ffffff;
}
.btn-whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.btn-back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--ln);
  color: var(--tx);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, border-color .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.btn-back-to-top:hover {
  border-color: var(--ac);
  color: var(--ac);
}
.btn-back-to-top svg { width: 20px; height: 20px; }

/* Redes Sociais com Ícones Vetoriais */
.social-links-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  list-style: none;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ln);
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--bg2);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.social-pill:hover {
  border-color: var(--ac);
  color: var(--ac);
  transform: translateY(-2px);
}
.social-pill.social-whatsapp:hover {
  border-color: #128c7e;
  color: #128c7e;
}
.social-pill svg { width: 16px; height: 16px; fill: currentColor; }

/* Cards de Relatórios de Incidentes com Evidências Forenses (Grade 3x1 limpa com bordas suaves) */
.evidence-nav { display: none; } /* barra de navegação: só no slider mobile */
.proj-nav { display: none; } /* idem para a lista de projetos */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.evidence-card {
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.evidence-card:hover {
  border-color: var(--ac);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45);
}
.evidence-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--ln);
}
.evidence-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.evidence-card:hover .evidence-img-frame img {
  transform: scale(1.03);
}
.evidence-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.evidence-card-kicker {
  font: 500 11.5px var(--mono);
  color: var(--ac);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.evidence-card-title {
  font: 700 clamp(17px, 1.5vw, 20px)/1.28 var(--sans);
  margin-bottom: 10px;
  color: var(--tx);
  letter-spacing: -.015em;
  transition: color .2s;
}
.evidence-card:hover .evidence-card-title {
  color: var(--ac);
}
.evidence-card-desc {
  color: var(--mu);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.evidence-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.evidence-card-tag {
  font: 500 11px var(--mono);
  padding: 3px 8px;
  border: 1px solid var(--ln);
  border-radius: 6px;
  color: var(--mu);
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

/* Lista Interativa de Projetos com Thumbnail ao Lado e Fonte Menor */
.proj-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.proj-item:hover {
  background: var(--bg);
  border-color: var(--ac);
  transform: translateX(4px);
}
.proj-thumb-frame {
  width: 140px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ln);
}
.proj-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.proj-item:hover .proj-thumb-frame img {
  transform: scale(1.05);
}
.proj-item-content {
  flex: 1;
  min-width: 0;
}
.proj-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.proj-item-title {
  font: 700 clamp(17px, 1.5vw, 19.5px)/1.2 var(--sans);
  color: var(--tx);
  letter-spacing: -.015em;
  transition: color .2s;
}
.proj-item:hover .proj-item-title {
  color: var(--ac);
}
.proj-item-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.proj-item-cat {
  font: 500 11px var(--mono);
  color: var(--ac);
  background: rgba(232, 98, 58, .12);
  border: 1px solid rgba(232, 98, 58, .3);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.proj-item-scope {
  font: 500 10.5px var(--mono);
  color: var(--mu);
  background: rgba(120, 110, 100, .08);
  border: 1px solid rgba(120, 110, 100, .18);
  padding: 2px 6px;
  border-radius: 4px;
}
.proj-item-desc {
  font-size: 13.5px;
  color: var(--mu);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-item-tags {
  font: 500 11.5px var(--mono);
  color: var(--mu);
}
.proj-item-arrow {
  width: 20px;
  height: 20px;
  color: var(--mu);
  transition: transform .2s, color .2s;
  margin-right: 6px;
}
.proj-item:hover .proj-item-arrow {
  color: var(--ac);
  transform: translate(3px, -3px);
}
@media (max-width: 768px) {
  .proj-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .proj-thumb-frame {
    width: 100%;
    height: 150px;
  }
  .proj-item-arrow {
    display: none;
  }
}

/* Paginação da Seção de Projetos */
.proj-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ln);
}
.proj-page-info {
  font-size: 12px;
  color: var(--mu);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.proj-page-info span {
  color: var(--tx);
  font-weight: 500;
}
.proj-page-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.proj-page-btn,
.proj-page-num {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--ln);
  color: var(--tx);
  font: 500 12.5px var(--mono);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.proj-page-btn:hover:not(:disabled),
.proj-page-num:hover:not(.is-active) {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--bg);
}
.proj-page-num.is-active {
  background: var(--tx);
  color: var(--bg);
  border-color: var(--tx);
  font-weight: 700;
  cursor: default;
}
.proj-page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  border-color: var(--ln);
}
.proj-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--mu);
  font: 400 13px var(--mono);
}
@media (max-width: 640px) {
  .proj-pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .proj-page-controls {
    width: 100%;
    justify-content: space-between;
  }
  .proj-page-numbers {
    display: none;
  }
}

/* ==========================================================================
   Modal de Contato / Sugestão (Sendmail v3)
   ========================================================================== */
#sendmailModal.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  padding: clamp(12px, 3vw, 24px);
}

#sendmailModal.modal:not(.is-open) {
  display: none !important;
}

#sendmailModal.modal.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#sendmailModal .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#sendmailModal .modal-box,
#sendmailModal .modal-box-sendmail {
  position: relative;
  z-index: 1;
  width: min(840px, 96vw);
  height: min(85vh, 720px);
  max-height: calc(100vh - 28px);
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.1rem 1.35rem 1rem;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#sendmailModal.is-open .modal-box,
#sendmailModal.is-open .modal-box-sendmail {
  transform: scale(1) translateY(0);
}

#sendmailModal .modal-header,
#sendmailModal .modal-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ln);
}

#sendmailModal .modal-heading,
#sendmailModal #sendmailModalTitle {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tx);
  margin: 0;
  letter-spacing: -0.01em;
}

#sendmailModal .modal-close {
  position: absolute;
  top: 1.05rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: var(--bg);
  color: var(--mu);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
}

#sendmailModal .modal-close:hover {
  color: var(--tx);
  border-color: var(--ac);
  background: rgba(232, 98, 58, 0.12);
}

#sendmailModal .sendmail-frame {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
}

@media (max-width: 640px) {
  #sendmailModal .modal-box-sendmail {
    width: 100%;
    height: 94vh;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
  }
}

/* ==========================================================================
   Mobile Evidence Slider - "Relatórios de incidentes" section
   ========================================================================== */
@media (max-width: 900px) {
  .evidence-grid {
    height: 280px; /* Fixed height for slider - adjusted for content */
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
  }
  .evidence-grid > .evidence-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1;
    opacity: 0;
  }
  .evidence-grid > .evidence-card.active {
    position: relative;
    z-index: 2;
    transform: translateX(0);
    opacity: 1;
  }
  /* Barra de navegação abaixo do slider (não cobre o texto do card) */
  .evidence-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 8px;
  }
  .evidence-nav-arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: transparent;
    color: var(--tx);
    border: 1px solid var(--ln);
    border-radius: 50%;
    font: 400 18px/1 var(--mono);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s, background .2s;
  }
  .evidence-nav-arrow:hover,
  .evidence-nav-arrow:focus-visible {
    border-color: var(--ac);
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 12%, transparent);
  }
  .evidence-nav-count {
    min-width: 46px;
    text-align: center;
  }
  /* Hide scrollbar */
  .evidence-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .evidence-grid::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
  }
}

/* ==========================================================================
   Mobile Projects Slider - "Ferramentas do meu lab" section
   ========================================================================== */
@media (max-width: 900px) {
  /* Um projeto por vez, com altura natural: nada de corte em altura fixa */
  .proj-list {
    height: auto;
    overflow: visible;
    margin-bottom: 16px;
  }
  /* Os filhos reais da lista são <li> (o <a class="proj-item"> vive dentro) */
  .proj-list > li {
    display: none;
  }
  .proj-list > li.is-active {
    display: block;
  }
  /* O slider substitui a paginação numérica neste breakpoint
     (!important porque o JS do paginador escreve display inline) */
  #projPagination {
    display: none !important;
  }
  /* Barra de navegação abaixo da lista (não cobre o conteúdo) */
  .proj-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 8px;
  }
  .proj-nav-arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: transparent;
    color: var(--tx);
    border: 1px solid var(--ln);
    border-radius: 50%;
    font: 400 18px/1 var(--mono);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s, background .2s;
  }
  .proj-nav-arrow:hover,
  .proj-nav-arrow:focus-visible {
    border-color: var(--ac);
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 12%, transparent);
  }
  .proj-nav-count {
    min-width: 46px;
    text-align: center;
  }
  /* Hide scrollbar */
  .proj-list {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .proj-list::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
  }
}
/* =============================================================================
   ACCESSIBILITY HUB (WCAG 2.1 AAA / eMAG)
   ============================================================================= */
.a11y-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}
.a11y-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.a11y-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  margin: auto;
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.a11y-modal-backdrop.is-open .a11y-panel {
  transform: scale(1) translateY(0);
}
.a11y-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ln);
}
.a11y-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.a11y-icon-main {
  width: 22px;
  height: 22px;
  color: var(--ac);
}
.a11y-panel-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tx);
  margin: 0;
  letter-spacing: -0.01em;
}
.a11y-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 50%;
  color: var(--mu);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  z-index: 10;
  padding: 0;
  font-size: 15px;
}
.a11y-close-btn:hover {
  color: var(--tx);
  border-color: var(--ac);
  transform: scale(1.08);
}
.a11y-panel-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.a11y-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.a11y-group-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mu);
}
.a11y-btn-group {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.4rem;
}
.a11y-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.a11y-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 8px;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.a11y-btn:hover {
  border-color: var(--mu);
  color: var(--tx);
}
.a11y-btn.is-active {
  background: color-mix(in srgb, var(--ac) 16%, transparent);
  border-color: var(--ac);
  color: var(--ac);
}
.a11y-font-icon {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.a11y-toggles-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 8px;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  text-align: left;
}
.a11y-toggle-row:hover {
  border-color: var(--mu);
}
/* LGPD (seq 3781): descrição do interruptor "Métricas do Site" */
.a11y-toggle-desc {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
  line-height: 1.3;
}
.a11y-toggle-pill {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--ln);
  border-radius: 20px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.a11y-toggle-pill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--mu);
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.a11y-toggle-row.is-active {
  background: color-mix(in srgb, var(--ac) 10%, transparent);
  border-color: var(--ac);
  color: var(--tx);
}
.a11y-toggle-row.is-active .a11y-toggle-pill {
  background: var(--ac);
}
.a11y-toggle-row.is-active .a11y-toggle-pill::after {
  background: #ffffff;
  transform: translateX(16px);
}
.a11y-vlibras-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: color-mix(in srgb, #22c55e 8%, transparent);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-align: left;
  width: 100%;
}
.a11y-vlibras-card:hover {
  background: color-mix(in srgb, #22c55e 18%, transparent);
  border-color: #22c55e;
  transform: translateY(-1px);
}
.a11y-vlibras-card.is-active {
  border-color: #22c55e;
  background: color-mix(in srgb, #22c55e 22%, transparent);
}
.a11y-vlibras-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.a11y-vlibras-info {
  display: flex;
  flex-direction: column;
}
.a11y-vlibras-title {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
}
.a11y-vlibras-sub {
  font-size: 0.76rem;
  color: var(--mu);
}
.a11y-panel-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--ln);
  background: var(--bg);
}
.a11y-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--mu);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0.3rem 0.5rem;
}
.a11y-reset-btn:hover {
  color: var(--tx);
}
body.a11y-modal-open {
  overflow: hidden;
}

/* Light mode — a11y panel uses CSS vars (var(--bg2), var(--ln), var(--tx), var(--mu))
   that already adapt to light mode via the global html[data-theme-mode=light] rules.
   Only override what the vars don't cover: */
html[data-theme-mode="light"] .a11y-modal-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

/* A11Y Root Overrides — Zoom garante redimensionamento proporcional de todos os textos (px, rem, clamp) */
html.a11y-font-xs { zoom: 0.85; }
html.a11y-font-sm { zoom: 0.92; }
html.a11y-font-lg { zoom: 1.15; }
html.a11y-font-xl { zoom: 1.30; }
html.a11y-font-xxl { zoom: 1.50; }

/* Counter-zoom para elementos fixos/sticky (navbar, modais, floating buttons, cursor)
   assim só o conteúdo da página escala — a interface de navegação permanece no tamanho nativo */
.top,
.pal,
.a11y-modal-backdrop,
.floating-actions,
.theme-toast,
.cur { zoom: 1; }

html.a11y-font-xs .top,
html.a11y-font-xs .pal,
html.a11y-font-xs .a11y-modal-backdrop,
html.a11y-font-xs .floating-actions,
html.a11y-font-xs .theme-toast,
html.a11y-font-xs .cur { zoom: 1.1765; }

html.a11y-font-sm .top,
html.a11y-font-sm .pal,
html.a11y-font-sm .a11y-modal-backdrop,
html.a11y-font-sm .floating-actions,
html.a11y-font-sm .theme-toast,
html.a11y-font-sm .cur { zoom: 1.087; }

html.a11y-font-lg .top,
html.a11y-font-lg .pal,
html.a11y-font-lg .a11y-modal-backdrop,
html.a11y-font-lg .floating-actions,
html.a11y-font-lg .theme-toast,
html.a11y-font-lg .cur { zoom: 0.8696; }

html.a11y-font-xl .top,
html.a11y-font-xl .pal,
html.a11y-font-xl .a11y-modal-backdrop,
html.a11y-font-xl .floating-actions,
html.a11y-font-xl .theme-toast,
html.a11y-font-xl .cur { zoom: 0.7692; }

html.a11y-font-xxl .top,
html.a11y-font-xxl .pal,
html.a11y-font-xxl .a11y-modal-backdrop,
html.a11y-font-xxl .floating-actions,
html.a11y-font-xxl .theme-toast,
html.a11y-font-xxl .cur { zoom: 0.6667; }

@supports not (zoom: 1) {
  html.a11y-font-xs { font-size: 85% !important; }
  html.a11y-font-sm { font-size: 92% !important; }
  html.a11y-font-lg { font-size: 115% !important; }
  html.a11y-font-xl { font-size: 130% !important; }
  html.a11y-font-xxl { font-size: 150% !important; }
}

html.a11y-contrast-high,
html.a11y-contrast-high body {
  background-color: #000000 !important;
  color: #ffffff !important;
}
html.a11y-contrast-high * {
  border-color: #ffd700 !important;
}
html.a11y-contrast-high a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
html.a11y-contrast-high p,
html.a11y-contrast-high li,
html.a11y-contrast-high span,
html.a11y-contrast-high h1,
html.a11y-contrast-high h2,
html.a11y-contrast-high h3,
html.a11y-contrast-high h4 {
  color: #ffffff !important;
}
html.a11y-contrast-high pre,
html.a11y-contrast-high code,
html.a11y-contrast-high .panel,
html.a11y-contrast-high .card {
  background-color: #0d0d0d !important;
  border: 2px solid #ffd700 !important;
}

html.a11y-contrast-gray {
  filter: grayscale(100%) !important;
}
html.a11y-contrast-invert {
  filter: invert(100%) hue-rotate(180deg) !important;
}
html.a11y-contrast-invert img,
html.a11y-contrast-invert video,
html.a11y-contrast-invert picture {
  filter: invert(100%) hue-rotate(180deg) !important;
}

html.a11y-font-dyslexic,
html.a11y-font-dyslexic * {
  font-family: "OpenDyslexic", "Comic Sans MS", "Arial", sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.08em !important;
}
html.a11y-line-height p,
html.a11y-line-height li,
html.a11y-line-height span,
html.a11y-line-height article {
  line-height: 1.95 !important;
  letter-spacing: 0.04em !important;
}

.a11y-reading-ruler {
  position: fixed;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(56, 189, 248, 0.16);
  border-top: 2px solid #38bdf8;
  border-bottom: 2px solid #38bdf8;
  pointer-events: none;
  z-index: 999999;
  transform: translateY(-50%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transition: top 0.04s linear;
}
