:root {
  /* Layout: coluna editorial (máx. 1160px) em capítulos, com sumário lateral fixo a partir de 1180px.
     Visual: azulejo e cobalto como base técnica; cores do Pelourinho, serifa itálica, polaroides e a
     fitinha do Bonfim como camada criativa. Cada capítulo ganha uma cor de destaque (--accent). */
  --paper: #F6F4EE;
  --surface: #FFFFFF;
  --ink: #0E1A2F;
  --muted: #4F596B;
  --line: #DED9CD;
  --cobalt: #1E46B4;
  --cobalt-soft: #E7EDFB;
  --on-cobalt: #FFFFFF;
  --band: #1A3C9C;
  --band-fg: #F3F6FD;
  --band-line: rgba(255, 255, 255, .2);
  --tile-line: rgba(30, 70, 180, .26);
  --ochre: #E2A42A;
  --ochre-ink: #9A6200;
  --ochre-soft: #FBF0D8;
  --coral: #C2471F;
  --coral-soft: #FBEAE3;
  --teal: #0B7C70;
  --teal-soft: #DDF2EE;
  --rose: #B4306A;
  --rose-soft: #F9E4EE;
  --violet: #5B3FC4;
  --violet-soft: #ECE8FB;
  --accent: var(--cobalt);
  --accent-soft: var(--cobalt-soft);
  --on-accent: #FFFFFF;
  --live: #16804F;
  --wa: #1F8F55;
  --wa-hover: #18784A;
  --wa-fg: #FFFFFF;
  --lb-bg: rgba(6, 10, 18, .9);
  --lb-fg: #F3F6FD;
  --lb-btn: rgba(255, 255, 255, .12);
  --shadow: 0 12px 32px rgba(14, 26, 47, .12);
  --polaroid-shadow: 0 16px 34px rgba(14, 26, 47, .16), 0 2px 6px rgba(14, 26, 47, .08);
  --chip-line: #E6E2D8;
  --ribbon: linear-gradient(90deg, var(--cobalt) 0 20%, var(--coral) 20% 40%, var(--teal) 40% 60%, var(--ochre) 60% 80%, var(--rose) 80% 100%);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --radius: 6px;
  --wrap: 1160px;
  --outline-w: 264px;
  --header-h: 65px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A111E;
    --surface: #101A2C;
    --ink: #E6ECF6;
    --muted: #9BA9C2;
    --line: #223049;
    --cobalt: #8AA6FF;
    --cobalt-soft: #14213F;
    --on-cobalt: #0A111E;
    --band: #16295C;
    --band-fg: #EEF2FB;
    --band-line: rgba(170, 195, 255, .16);
    --tile-line: rgba(138, 166, 255, .22);
    --ochre: #F0B44A;
    --ochre-ink: #F0B44A;
    --ochre-soft: #33270F;
    --coral: #FF8F6B;
    --coral-soft: #3A1D14;
    --teal: #5FD4C2;
    --teal-soft: #0F2E2B;
    --rose: #F38DB9;
    --rose-soft: #3A1628;
    --violet: #B9A8FF;
    --violet-soft: #221B45;
    --on-accent: #0A111E;
    --live: #4CC38A;
    --shadow: 0 12px 32px rgba(0, 0, 0, .45);
    --polaroid-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
    --chip-line: rgba(255, 255, 255, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A111E;
  --surface: #101A2C;
  --ink: #E6ECF6;
  --muted: #9BA9C2;
  --line: #223049;
  --cobalt: #8AA6FF;
  --cobalt-soft: #14213F;
  --on-cobalt: #0A111E;
  --band: #16295C;
  --band-fg: #EEF2FB;
  --band-line: rgba(170, 195, 255, .16);
  --tile-line: rgba(138, 166, 255, .22);
  --ochre: #F0B44A;
  --ochre-ink: #F0B44A;
  --ochre-soft: #33270F;
  --coral: #FF8F6B;
  --coral-soft: #3A1D14;
  --teal: #5FD4C2;
  --teal-soft: #0F2E2B;
  --rose: #F38DB9;
  --rose-soft: #3A1628;
  --violet: #B9A8FF;
  --violet-soft: #221B45;
  --on-accent: #0A111E;
  --live: #4CC38A;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --polaroid-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  --chip-line: rgba(255, 255, 255, .14);
  color-scheme: dark;
}

/* Cor de destaque de cada capítulo */
#solucoes { --accent: var(--cobalt); --accent-soft: var(--cobalt-soft); }
#projetos { --accent: var(--coral); --accent-soft: var(--coral-soft); }
#impacto { --accent: var(--teal); --accent-soft: var(--teal-soft); }
#trajetoria { --accent: var(--ochre-ink); --accent-soft: var(--ochre-soft); }
#pessoal { --accent: var(--rose); --accent-soft: var(--rose-soft); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 84px; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { 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: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.hand { font-family: var(--font-hand); font-weight: 600; }

/* Azulejo */
.az { fill: none; stroke: var(--tile-line); stroke-width: 1.2; }
.az-dot { fill: var(--tile-line); }
.az-i { fill: none; stroke: var(--band-line); stroke-width: 1.2; }
.az-i-dot { fill: var(--band-line); }

/* Ícones */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
}
.ico-tile .ico { width: 24px; height: 24px; }
.chapter .ico-tile { background: var(--accent-soft); color: var(--accent); }
.ico-tile--band, .chapter .ico-tile--band { background: var(--band); color: var(--band-fg); }

/* Tipografia */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
h5 { font-weight: 650; font-size: 1rem; line-height: 1.35; }
h1 { font-weight: 700; font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.04; letter-spacing: -.028em; }
.t-chapter { font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.035em; }
.t-section { font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-weight: 650; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
h4 { font-weight: 650; font-size: 1.0625rem; line-height: 1.3; }
h1 em, .t-section em, .pub-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.005em;
  color: var(--accent);
}
.label {
  font: 500 .75rem/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 500 .75rem/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}
.eyebrow::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-intro { margin: 14px 0 0; max-width: 64ch; color: var(--muted); font-size: 1.125rem; }
/* blocos de texto criados na construção do painel */
.section--bloco .bloco-texto { max-width: 68ch; display: grid; gap: 12px; margin-top: 14px; font-size: 1.0625rem; }
.section--bloco .bloco-texto p { margin: 0; }
.section--bloco .bloco-link { margin-top: 20px; }
/* o aviso da voz própria do titular, gerada por IA, embaixo do botão de ouvir */
.ask-voz-ia { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
/* blocos de documentos para baixar (tela Arquivos do painel): capa, título, descrição, fatos, tags e o botão */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 22px; }
.doc-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.doc-capa { display: grid; place-items: center; padding: 18px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-bottom: 1px solid var(--line); }
.doc-capa img { display: block; max-width: 100%; max-height: 240px; width: auto; height: auto; border-radius: 4px; box-shadow: var(--polaroid-shadow); }
.doc-corpo { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.doc-titulo { margin: 0; font: 700 1.125rem/1.3 var(--font-display); text-wrap: balance; }
.doc-desc { margin: 0; color: var(--muted); font-size: .9375rem; }
.doc-subtitulo { margin: -4px 0 0; font: italic 400 1.0625rem/1.35 var(--font-serif); color: var(--accent); text-wrap: balance; }
.doc-fatos { margin: 0; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; color: var(--muted); font: 500 .75rem/1.5 var(--font-mono); }
.doc-acao { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 6px; }
.doc-acao .btn small { margin-left: 6px; font: 500 .75rem/1 var(--font-mono); opacity: .8; }
.doc-rotulo { color: var(--accent); }
.doc-card .pub-source { margin: 0; }
/* o estilo em destaque, como o cartão do livro: um cartão largo por documento */
.doc-destaques { display: grid; gap: clamp(22px, 3vw, 32px); margin-top: 22px; }
.doc-destaques .pub { margin-bottom: 0; }
.doc-destaque .doc-tags { margin: 0; }
.doc-sem-capa { display: grid; justify-items: center; gap: 12px; width: min(100%, 230px); padding: 32px 22px; border: 1px solid rgb(255 255 255 / .3); border-radius: 6px; background: rgb(255 255 255 / .1); color: #FFFFFF; font: 700 1.05rem/1.25 var(--font-display); text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.doc-sem-capa .ico { width: 28px; height: 28px; }
/* pop-up dos documentos do painel: pede o que o titular escolheu antes do PDF, sem sair do portfólio */
.doc-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.doc-dialog::backdrop { background: rgb(0 0 0 / .55); }
.doc-form { display: grid; gap: 12px; padding: 22px; }
.doc-dialog-topo { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.doc-dialog h3 { margin: 0; font: 700 1.15rem/1.3 var(--font-display); text-wrap: balance; }
.doc-fechar { padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.doc-form p { margin: 0; color: var(--muted); }
.doc-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.doc-form input[type=email], .doc-form input[type=tel] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
.doc-form .doc-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.doc-check input { margin-top: 3px; accent-color: var(--accent); }
.doc-hp { position: absolute; left: -9999px; }
.doc-form .doc-erro { color: var(--coral); font-weight: 600; }
.doc-form .doc-nota { font-size: .8rem; }
.doc-dialog-msg { margin: 0; padding: 22px; }
[data-doc][aria-busy="true"] { opacity: .6; pointer-events: none; }
/* blocos de integração (tela Integrações do painel): os trabalhos do titular em outras plataformas, em cartões */
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-top: 22px; }
.integ-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.integ-imagem { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-bottom: 1px solid var(--line); }
.integ-imagem img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.integ-card:hover .integ-imagem img { transform: scale(1.03); }
.integ-corpo { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.integ-titulo { margin: 0; font: 700 1.0625rem/1.3 var(--font-display); overflow-wrap: anywhere; }
.integ-desc { margin: 0; color: var(--muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.integ-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); font: 500 .75rem/1.5 var(--font-mono); }
.integ-acao { margin: auto 0 0; padding-top: 6px; }
.integ-privado { color: var(--muted); font-size: .8125rem; }
@media (prefers-reduced-motion: reduce) { .integ-imagem img { transition: none; } .integ-card:hover .integ-imagem img { transform: none; } }

/* Chinês: sem itálico nem letra cursiva, que não existem nessas fontes */
[lang|="zh"] h1 em, [lang|="zh"] .t-section em, [lang|="zh"] .pub-title em { font-family: inherit; font-style: normal; font-weight: 700; font-size: 1em; }
[lang|="zh"] .manifesto p { max-width: 22em; font: 700 clamp(1.4rem, 2.8vw, 2.05rem)/1.45 var(--font-display); }
[lang|="zh"] .cs-num { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
[lang|="zh"] .hand { font-family: var(--font-body); font-weight: 500; font-size: .95rem; }
:root:lang(zh) {
  --font-display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Figtree", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 .9375rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: color-mix(in srgb, var(--cobalt) 84%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-wa { background: var(--wa); color: var(--wa-fg); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 .875rem/1 var(--font-body);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.icon-btn .ico { width: 18px; height: 18px; }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.125rem/1 var(--font-display);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--band);
  color: var(--band-fg);
  font: 500 .6875rem/1 var(--font-mono);
  letter-spacing: .04em;
}
.chapters { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.chapters a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.chapters a:hover { color: var(--ink); background: var(--cobalt-soft); }
.chapters a.is-active { color: var(--cobalt); background: var(--cobalt-soft); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  font: 500 .75rem/1 var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: calc(var(--read, 0) * 100%); background: var(--ribbon); background-size: 100vw 100%; }
@media (max-width: 1320px) { .chapters { display: none; } }
@media (max-width: 640px) {
  .site-header .btn-cta { display: none; }
  .icon-btn .txt { display: none; }
  .brand { font-size: 1rem; }
  .lang a { min-width: 30px; padding: 4px 6px; }
}
@media (max-width: 400px) { .brand { font-size: 0; gap: 0; min-width: 40px; min-height: 40px; } }

/* Sumário lateral, no estilo do painel de tópicos de um editor de documentos */
.outline { display: none; }
.outline-toggle { padding: 0; width: 40px; justify-content: center; }
/* claro ou escuro: a lua aparece no modo claro (passar para o escuro) e o sol no escuro */
.theme-toggle { padding: 0; width: 40px; justify-content: center; flex: none; }
.theme-toggle .tema-claro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .tema-claro { display: block; } :root:not([data-theme="light"]) .theme-toggle .tema-escuro { display: none; } }
:root[data-theme="dark"] .theme-toggle .tema-claro { display: block; }
:root[data-theme="dark"] .theme-toggle .tema-escuro { display: none; }
@media (max-width: 400px) { .theme-toggle { width: 36px; height: 36px; } }
@media (min-width: 1180px) {
  .site-header .wrap { max-width: none; padding-inline: 14px 28px; }
  .outline {
    display: block;
    position: fixed;
    z-index: 15;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: var(--outline-w);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 14px 40px 14px;
    border-right: 1px solid var(--line);
    background: var(--paper);
    scrollbar-width: thin;
  }
  .doc { margin-left: var(--outline-w); }
  .toc-btn { display: none; }
  html.outline-off .outline { display: none; }
  html.outline-off .doc { margin-left: 0; }
}
@media (max-width: 1179.98px) { .outline-toggle { display: none; } }
.outline-title { margin: 0 0 12px 10px; font: 500 .72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.outline ol { list-style: none; margin: 0; padding: 0; }
.ol-l1 > li + li { margin-top: 6px; }
.ol-l1 > li:nth-child(2) { --ac: var(--cobalt); }
.ol-l1 > li:nth-child(3) { --ac: var(--coral); }
.ol-l1 > li:nth-child(4) { --ac: var(--teal); }
.ol-l1 > li:nth-child(5) { --ac: var(--ochre-ink); }
.ol-l1 > li:nth-child(6) { --ac: var(--rose); }
.outline a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .8125rem;
  line-height: 1.3;
  transition: background-color .15s, color .15s;
}
.outline a:hover { background: color-mix(in srgb, var(--ac, var(--cobalt)) 10%, transparent); color: var(--ink); }
.outline .ol-h1 { color: var(--ink); font: 650 .9375rem/1.25 var(--font-display); }
.ol-h1 .ico { width: 16px; height: 16px; color: var(--muted); }
.ol-num { min-width: 1.5em; font: italic 400 1.15rem/1 var(--font-serif); color: var(--ac, var(--cobalt)); }
.ol-l2 { margin: 2px 0 4px 21px !important; padding-left: 8px !important; border-left: 1px solid var(--line); }
.ol-l2 a { position: relative; padding: 5px 10px; }
.outline a.is-active { color: var(--ac, var(--cobalt)); background: color-mix(in srgb, var(--ac, var(--cobalt)) 12%, transparent); font-weight: 600; }
.ol-l2 a.is-active::before { content: ""; position: absolute; left: -9px; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--ac, var(--cobalt)); }

/* Índice (telas menores) */
.toc {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.toc::backdrop { background: rgba(6, 10, 18, .5); }
.toc-inner { padding: clamp(20px, 4vw, 32px); }
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.toc-head h2 { font-size: 1.5rem; }
.toc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 36px; }
@media (max-width: 820px) { .toc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.toc-group h3 .ico { color: var(--cobalt); }
.toc-group h3 a { color: var(--ink); text-decoration: none; }
.toc-group h3 a:hover { color: var(--cobalt); }
.toc-group ul { display: grid; gap: 2px; list-style: none; margin: 10px 0 0; padding: 0 0 0 30px; }
.toc-group a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc-group a:hover { color: var(--cobalt); }
.toc-langs.lang { gap: 6px; margin-top: 24px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 560px) { .toc-grid { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.scribble { position: relative; display: inline-block; }
.scribble em { color: var(--cobalt); }
.scribble-line {
  position: absolute;
  left: -3%;
  bottom: -.16em;
  width: 106%;
  height: .38em;
  overflow: visible;
  fill: none;
  stroke: var(--ochre);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.scribble-line path { vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .35s cubic-bezier(.6, .1, .3, 1) forwards; }
.scribble-line path + path { stroke-width: 2.5; opacity: .65; animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hl {
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--ochre) 50%, transparent) 64%, color-mix(in srgb, var(--ochre) 50%, transparent) 90%, transparent 90%);
  padding-inline: .04em;
}
.lead { margin: 0 0 24px; max-width: 58ch; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.2rem); }
.lead strong { color: var(--ink); font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pillar:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: var(--shadow); }
.pillar .ico-tile { grid-row: 1 / span 2; }
.pillar b { font: 650 1.0625rem/1.3 var(--font-display); }
.pillar span { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.now {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  max-width: 64ch;
  color: var(--muted);
  font-size: .9375rem;
}
.now-text { display: grid; gap: 4px; }
.now .label { display: inline-flex; align-items: center; gap: 6px; color: var(--live); }
.now .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; background: var(--cobalt-soft); }

.hero-portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: var(--polaroid-shadow);
  transform: rotate(2.4deg);
  animation: settle .9s .1s cubic-bezier(.2, .7, .2, 1) both;
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: #E9E5DA; }
.polaroid figcaption { padding: 10px 6px 14px; text-align: center; color: #273248; font-size: 1.4rem; line-height: 1.1; }
@keyframes settle { from { opacity: 0; transform: rotate(-4deg) translateY(16px); } to { opacity: 1; transform: rotate(2.4deg); } }
.tape {
  position: absolute;
  z-index: 1;
  top: -15px;
  left: 50%;
  width: 118px;
  height: 30px;
  transform: translateX(-50%) rotate(-3.5deg);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--ochre) 78%, #FFFFFF);
  opacity: .9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.spin-badge { position: absolute; z-index: 2; left: -52px; bottom: 70px; width: 132px; height: 132px; filter: drop-shadow(0 8px 16px rgba(14, 26, 47, .25)); }
.badge-bg { fill: var(--band); }
.badge-ring { transform-origin: 80px 80px; animation: spin 26s linear infinite; }
.spin-badge text { fill: var(--band-fg); font: 600 11.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.badge-ico { color: var(--ochre); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.doodle { position: absolute; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.doodle-spark { right: -20px; top: -30px; width: 46px; height: 46px; stroke: var(--coral); stroke-width: 2.6; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 12px;
  background: var(--cobalt-soft);
  animation: lay .7s cubic-bezier(.2, .7, .2, 1) both;
}
.tile:nth-child(2) { animation-delay: .08s; }
.tile:nth-child(3) { animation-delay: .16s; }
.tile:nth-child(4) { animation-delay: .24s; }
.tile svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 80%);
}
.tile-num { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-display); letter-spacing: -.025em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.tile-label { margin-top: 8px; max-width: 22ch; color: var(--ink); font-size: .875rem; line-height: 1.4; }
.tile--accent { background: var(--band); }
.tile--accent .tile-num, .tile--accent .tile-label { color: var(--band-fg); }
@keyframes lay { from { opacity: .3; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { width: min(78%, 320px); margin-top: 8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .spin-badge { left: -30px; bottom: 54px; width: 104px; height: 104px; }
  .doodle-spark { right: -8px; }
}

/* Logos: fichas brancas com a marca colorida e o nome por baixo */
.logos { border-block: 1px solid var(--line); background: var(--surface); }
.logos .wrap { padding-block: 26px 30px; }
.logos-label { display: block; margin: 0 0 14px; }
.logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; } .logo-chip { height: 64px; padding: 10px; } .logo-chip img { max-height: 38px; } }
.logo-grid li { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.logo-chip {
  display: grid;
  place-items: center;
  height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--chip-line);
  border-radius: 10px;
  background: #FFFFFF;
  transition: transform .2s, box-shadow .2s;
}
.logo-chip img { display: block; width: auto; height: auto; max-width: 100%; max-height: 44px; object-fit: contain; }
.logo-grid li:hover .logo-chip { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-word { font: 800 1.3rem/1 var(--font-display); letter-spacing: -.02em; color: #0E1A2F; }
.logo-word span { color: #C98A12; }
.logo-name { font: 500 .6875rem/1.3 var(--font-mono); color: var(--muted); text-align: center; letter-spacing: .02em; }

/* Capítulos */
.chapter-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.chapter-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ribbon); }
.chapter-head > svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 40%);
  mask-image: linear-gradient(to left, #000 0%, transparent 40%);
}
.chapter-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px 48px;
  align-items: end;
  padding-block: clamp(40px, 6vw, 72px);
}
.chapter-title { display: flex; align-items: center; gap: 16px; }
.chapter-num { font: italic 400 clamp(2.6rem, 5.4vw, 4rem)/.9 var(--font-serif); color: var(--accent); }
.chapter-head .ico-tile { background: var(--accent); color: var(--on-accent); }
.chapter-intro { margin: 14px 0 0; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.chapter-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chapter-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.chapter-links a:hover { border-color: var(--accent); color: var(--accent); }
.chapter-links .ico { width: 14px; height: 14px; }
@media (max-width: 860px) { .chapter-head .wrap { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 420px) { .chapter-num { display: none; } }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.list-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.1875rem; }
.list-title .ico { color: var(--accent); }

/* Em números */
.feature-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 14px;
  background: var(--band);
  color: var(--band-fg);
}
.feature-band > svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to top left, #000 5%, transparent 55%);
  mask-image: linear-gradient(to top left, #000 5%, transparent 55%);
}
.feature-num { font: 800 clamp(4rem, 10vw, 7rem)/.9 var(--font-display); letter-spacing: -.04em; color: var(--band-fg); }
.feature-label { margin-top: 10px; font: 600 1.25rem/1.3 var(--font-display); color: var(--band-fg); max-width: 18ch; }
.feature-band p { margin: 0 0 14px; opacity: .9; }
.chain { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: step; }
.chain li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--band-fg) 30%, transparent);
  border-radius: 999px;
  font-size: .875rem;
  counter-increment: step;
}
.chain li::before { content: counter(step); font: 500 .6875rem/1 var(--font-mono); opacity: .7; }
.feature-band .label { color: var(--band-fg); opacity: .75; margin-bottom: 10px; display: block; }
.stamps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stamp {
  padding: 5px 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--cobalt);
  font: 500 .8125rem/1.2 var(--font-mono);
  letter-spacing: .02em;
}
.feature-band .stamp { color: var(--band-fg); border-color: color-mix(in srgb, var(--band-fg) 55%, transparent); }
@media (max-width: 860px) { .feature-band { grid-template-columns: 1fr; } }

.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.numbers li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-block: 22px 24px; border-top: 1px solid var(--line); }
.num-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.num-head .ico { width: 22px; height: 22px; color: var(--muted); }
.num { font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.num-label { font-size: .96875rem; line-height: 1.45; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Soluções */
.pillar-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.pillar-col--ai { border-color: color-mix(in srgb, var(--cobalt) 40%, var(--line)); }
.pillar-head { display: flex; align-items: center; gap: 14px; }
.pillar-title { font-size: 1.5rem; }
.pillar-col > p { margin: 0; color: var(--muted); }
.offers { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.offer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding-block: 16px; border-top: 1px solid var(--line); }
.offer > .ico { grid-row: 1 / span 3; margin-top: 2px; color: var(--accent); }
.offer p { margin: 0; color: var(--muted); font-size: .9375rem; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.refs li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font: 500 .72rem/1.3 var(--font-mono);
}
@media (max-width: 860px) { .pillar-cols { grid-template-columns: 1fr; } }

/* Case de IA: painel em azul com grade de planta baixa (a arquitetura do processo) */
.case-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4.4vw, 52px);
  border-radius: 16px;
  background: var(--band);
  color: var(--band-fg);
}
.case-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%);
}
.case-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 52px); align-items: end; }
.case-panel .eyebrow { color: var(--band-fg); }
.case-panel .eyebrow::before { background: var(--ochre); }
.case-panel .t-section { color: var(--band-fg); }
.case-panel .t-section em { color: var(--ochre); }
.case-intro { margin: 14px 0 0; max-width: 60ch; opacity: .92; font-size: 1.0625rem; }
.case-stats { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.case-stats li {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--band-fg) 22%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--band-fg) 6%, transparent);
}
.cs-num { font: 800 clamp(1.6rem, 2.6vw, 2.15rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ochre); white-space: nowrap; }
.cs-label { font-size: .9375rem; line-height: 1.4; opacity: .94; }
.manifesto { position: relative; margin: clamp(30px, 4vw, 46px) 0 0; padding-top: clamp(20px, 3vw, 30px); border-top: 1px dashed color-mix(in srgb, var(--band-fg) 32%, transparent); }
.manifesto blockquote { margin: 0; }
.manifesto p { margin: 0; max-width: 30ch; font: italic 400 clamp(1.8rem, 3.8vw, 2.9rem)/1.12 var(--font-serif); color: var(--band-fg); }
.manifesto p::before { content: "“"; color: var(--ochre); }
.manifesto p::after { content: "”"; color: var(--ochre); }
.manifesto figcaption { margin-top: 8px; color: var(--ochre); font-size: 1.55rem; line-height: 1; }
.manifesto figcaption::before { content: "↳ "; font-family: var(--font-body); font-size: 1.1rem; }
.case-text { margin: 18px 0 0; max-width: 74ch; opacity: .9; }
.flow-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; color: var(--band-fg); font-size: 1.0625rem; }
.flow-title .ico { color: var(--ochre); }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--band-fg) 24%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, #000 14%, transparent);
}
.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 8px;
  height: 8px;
  border-top: 2px solid color-mix(in srgb, var(--band-fg) 60%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--band-fg) 60%, transparent);
  transform: translateY(-50%) rotate(45deg);
}
.flow-step:last-child::after { display: none; }
.flow-who { display: inline-flex; align-items: center; gap: 6px; font: 500 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.flow-who .ico { width: 14px; height: 14px; }
.flow-step b { font: 650 1rem/1.25 var(--font-display); }
.flow-text { font-size: .8125rem; line-height: 1.4; opacity: .86; }
.flow-step.is-ai {
  border-color: transparent;
  background: var(--ochre);
  color: #1D1400;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ochre) 32%, transparent), 0 14px 26px rgba(0, 0, 0, .25);
  transform: translateY(-6px) rotate(-1.2deg);
}
.flow-step.is-ai .flow-who, .flow-step.is-ai .flow-text { opacity: 1; }
@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-stats li { grid-template-columns: 6.8rem minmax(0, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow-step::after { top: auto; right: auto; left: 22px; bottom: -12px; transform: rotate(135deg); }
  .flow-step.is-ai { transform: rotate(-.6deg); }
}

/* Ferramentas */
.tool-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-group { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tool-group h4 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.tool-group h4 .ico { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.chips li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .875rem; line-height: 1.3; }
.maker-title { display: flex; align-items: center; gap: 10px; margin: 40px 0 16px; font-size: 1.25rem; }
.maker-title .ico { color: var(--accent); }
.maker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.maker article { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.maker p { margin: 0; color: var(--muted); font-size: .9375rem; }
@media (max-width: 1060px) { .maker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tool-groups { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .maker { grid-template-columns: 1fr; } }

/* Projetos ativos */
.active-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 14px;
  background: var(--surface);
}
.active-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.active .tech { color: var(--accent); font-weight: 600; font-size: .9375rem; }
.active p { margin: 0; color: var(--muted); font-size: .9375rem; }
.active .program { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: .8125rem; font-weight: 600; }
@media (max-width: 1100px) { .active-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .active-grid { grid-template-columns: 1fr; } }

/* Status */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font: 500 .72rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status--live::before { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }

/* Portfólio: cards com mídia no mesmo formato (foto ou capa gerada) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 .875rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip .ico { width: 16px; height: 16px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font-family: var(--font-mono); font-size: .75rem; opacity: .7; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 18px; }
.pcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-soft); }
.pcard-media .zoom-btn, .talk-media .zoom-btn { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.pcard-media img, .talk-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: var(--accent-soft); }
.pcard-body { display: flex; flex: 1; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(18px, 2.2vw, 24px); }
.pcard h4 { font-size: 1.25rem; }
.org { margin: -6px 0 0; color: var(--accent); font-weight: 600; font-size: .875rem; }
.pcard-text { margin: 0; color: var(--muted); font-size: .9375rem; }
.pcard .highlights li { font-size: .875rem; }
.pcard-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; }
.pcard-foot p { margin: 0; }
.pcard-foot .partners { color: var(--muted); }
.pcard--featured { grid-column: 1 / -1; }
.pcard--featured .pcard-media { aspect-ratio: 12 / 5; }
.pcard--featured .pcard-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px clamp(24px, 4vw, 52px); align-items: start; padding: clamp(22px, 3vw, 36px); }
.pcard-main, .pcard-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pcard--featured .pcard-foot { margin-top: 4px; }
.pcard-side .partners { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.pcard--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pcard--wide .pcard-media { aspect-ratio: auto; min-height: 300px; }
.pcard--featured h4 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pcard--featured .pcard-text { font-size: 1rem; }
.pcard-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.pcard-cover svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to top left, #000 10%, transparent 75%);
  mask-image: linear-gradient(to top left, #000 10%, transparent 75%);
}
.cover-ico { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 18px; background: rgba(255, 255, 255, .14); transform: rotate(-4deg); }
.cover-ico .ico { width: 32px; height: 32px; stroke-width: 1.5; }
.cover-label { position: relative; font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; opacity: .92; }
.tone-cobalt { --c1: #16348A; --c2: #3E66DA; }
.tone-teal { --c1: #0A5850; --c2: #13937F; }
.tone-coral { --c1: #9C3514; --c2: #E06A3B; }
.tone-violet { --c1: #3A2793; --c2: #7658E2; }
.pcard--wide .pcard-cover .cover-ico { width: 84px; height: 84px; }
.pcard--wide .pcard-cover .cover-ico .ico { width: 40px; height: 40px; }
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard--featured .pcard-media { aspect-ratio: 2 / 1; } }
@media (max-width: 900px) { .pcard--featured .pcard-body { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .pcard--featured, .pcard--wide { grid-column: auto; }
  .pcard--wide { display: flex; }
  .pcard--featured .pcard-body { display: flex; }
  .pcard--featured .pcard-media, .pcard--wide .pcard-media { aspect-ratio: 16 / 10; min-height: 0; }
}
.highlights { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.highlights li { position: relative; padding-left: 18px; font-size: .9375rem; }
.highlights li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.role b, .partners b { color: var(--ink); font-weight: 600; }
.credits { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.credits .is-me .r-name { color: var(--accent); }
.credits a.r-name { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; margin-block: -6px -4px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.credits a.r-name:hover { color: var(--accent); text-decoration-color: currentColor; }
.project-link { display: inline-flex; align-items: center; justify-self: start; align-self: flex-start; min-height: 32px; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--accent); }
.project-link:hover { text-decoration: underline; }
.r-name { font-weight: 600; }
.r-sub { grid-column: 1; color: var(--muted); font-size: .9375rem; }
.r-year { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font: 500 .8125rem/1.6 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Fotos */
.photo { margin: 0; display: grid; gap: 8px; min-width: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--cobalt-soft); }
.photo figcaption { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.photo--press img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }
.zoom-btn { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.zoom-btn img { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
/* Cartazes e documentos nos cards: a imagem inteira sobre um fundo desfocado dela mesma */
.zoom-btn--contain { background: #14161f; }
.zoom-btn--contain img:not(.img-fill) { position: relative; z-index: 1; object-fit: contain !important; background: transparent !important; }
.zoom-btn--contain .img-fill, .zoom-btn--contain:hover .img-fill { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.15) brightness(.8); transform: scale(1.25); }
.zoom-btn:hover img { transform: scale(1.04); }
.ai-tag { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: rgb(17 20 32 / .78); color: #fff; font: 500 .6875rem/1.2 var(--font-mono); letter-spacing: .04em; pointer-events: none; }
.zoom-btn .zoom-ico {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lb-bg);
  color: var(--lb-fg);
  opacity: 0;
  transition: opacity .2s;
}
.zoom-btn:hover .zoom-ico, .zoom-btn:focus-visible .zoom-ico { opacity: 1; }
.zoom-btn .zoom-ico .ico { width: 16px; height: 16px; }

/* Iniciativas próprias */
.ventures { padding: clamp(24px, 4vw, 40px); border-radius: 16px; background: var(--accent-soft); }
.ventures .t-section { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ventures-intro { margin: 10px 0 0; max-width: 64ch; color: var(--muted); }
.ventures-list { display: grid; gap: 20px; }
.ventures-list--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
@media (max-width: 760px) { .ventures-list--row { grid-template-columns: 1fr; gap: 20px; } }
.venture { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.venture-head { display: flex; align-items: center; gap: 10px; }
.venture-head .ico { color: var(--accent); }
.venture p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Educação e impacto */
.audiences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 0 32px; padding: 0; }
.audiences .label { margin-right: 6px; }
.audiences li.aud { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-weight: 500; font-size: .9375rem; }
.audiences li.aud .ico { width: 16px; height: 16px; color: var(--accent); }
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; position: relative; }
.levels::before { content: ""; position: absolute; top: 7px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--ochre), var(--accent)); }
.levels li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font: 500 .75rem/1.35 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.levels li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.levels li:first-child::before { border-color: var(--ochre); }
.impact-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.impact-feature article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 14px;
  background: var(--band);
  color: var(--band-fg);
}
.impact-feature h4 { color: var(--band-fg); font-size: 1.1875rem; }
.impact-feature .ico-tile { background: color-mix(in srgb, var(--band-fg) 14%, transparent); color: var(--band-fg); }
.impact-feature p { margin: 0; opacity: .9; font-size: .9375rem; }
.impact-feature .label { color: var(--band-fg); opacity: .75; }
.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edu-grid article { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edu-grid p { margin: 0; color: var(--muted); font-size: .9375rem; }
@media (max-width: 1060px) { .impact-feature, .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .impact-feature article:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .impact-feature, .edu-grid { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; gap: 12px; }
  .levels::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--ochre), var(--accent)); }
  .levels li { flex-direction: row; gap: 12px; text-align: left; }
}

/* Galeria em polaroides */
.gallery-title { margin-top: 44px; }
.polaroids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); padding: 6px 6px 0; }
.polaroid-card {
  margin: 0;
  padding: 10px 10px 0;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: var(--polaroid-shadow);
  transform: rotate(var(--tilt, -1.6deg));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.polaroid-card:nth-child(2) { --tilt: 1.3deg; }
.polaroid-card:nth-child(3) { --tilt: -.7deg; }
.polaroid-card:nth-child(4) { --tilt: 1.9deg; }
.polaroid-card:nth-child(5) { --tilt: -1.1deg; }
.polaroid-card:nth-child(6) { --tilt: .8deg; }
.polaroid-card:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid-card .zoom-btn { border-radius: 2px; }
.polaroid-card img { display: block; width: 100%; height: auto; border-radius: 2px; background: #E9E5DA; }
.polaroid-card figcaption { padding: 8px 4px 12px; text-align: center; color: #273248; font-size: 1.3rem; line-height: 1.15; }
@media (max-width: 860px) { .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mentoria */
.mentor-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 5vw, 52px); }
.case { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.case-top { display: flex; align-items: center; gap: 14px; }
.case-top h4 { font-size: 1.5rem; }
.case-top .label { display: block; margin-top: 2px; }
.case p { margin: 0; color: var(--muted); }
.case .role { color: var(--ink); }
.case .project-link { margin-top: auto; }
@media (max-width: 860px) { .mentor-feature { grid-template-columns: 1fr; } }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.mini > .ico { margin-top: 2px; color: var(--accent); }
.mini b { display: block; font-weight: 600; line-height: 1.35; }
.mini div > span { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.mini-year { color: var(--muted); font: 500 .75rem/1.7 var(--font-mono); white-space: nowrap; }
@media (min-width: 1061px) { .mini-grid > li:last-child:nth-child(3n+2) { grid-column: span 2; } .mini-grid > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; } .mini-grid:has(> li:last-child:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-grid:has(> li:last-child:nth-child(4)) > li:last-child { grid-column: auto; } }
@media (max-width: 1060px) and (min-width: 601px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-grid > li:last-child:nth-child(2n+1) { grid-column: span 2; } }
@media (max-width: 600px) { .mini-grid { grid-template-columns: 1fr; } }

/* Palestras e publicações */
.pub {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  overflow: hidden;
  margin-bottom: clamp(36px, 5vw, 52px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 16px;
  background: var(--surface);
}
.pub-art { position: relative; isolation: isolate; display: grid; place-items: center; padding: 30px 20px; background: linear-gradient(160deg, #0A5850, #0E2647); }
.pub-art > svg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .8; }
.elements { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; justify-content: center; }
.el {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 76px;
  height: 76px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #FFFFFF;
}
.el:nth-child(odd) { transform: rotate(-2deg); }
.el:nth-child(3), .el:nth-child(4) { border-color: rgba(240, 180, 74, .7); background: rgba(240, 180, 74, .24); }
.el small { font: 500 .625rem/1 var(--font-mono); opacity: .8; }
.el b { align-self: center; font: 700 1.45rem/1 var(--font-display); }
.el i { overflow: hidden; font: normal 500 .5625rem/1.1 var(--font-mono); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; text-overflow: ellipsis; opacity: .88; }
.pub-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3.2vw, 38px); }
.pub-body .label { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.pub-body .label .ico { width: 16px; height: 16px; }
.pub-title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.18; }
.pub-body p { margin: 0; color: var(--muted); }
.pub-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.pub-facts li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .8125rem; font-weight: 500; }
@media (max-width: 760px) { .pub { grid-template-columns: 1fr; } }
.talks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 5vw, 52px); }
.talk { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform .25s, box-shadow .25s; }
.talk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.talk:nth-child(-n+2) { grid-column: span 3; }
.talk:nth-child(n+6):nth-last-child(-n+2) { grid-column: span 3; }
.talk-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-soft); }
.talk-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.talk-meta { display: flex; justify-content: space-between; gap: 10px; font: 500 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; }
.talk-role { color: var(--accent); font-weight: 600; }
.talk-year { color: var(--muted); }
.talk h5 { font-size: 1.0625rem; }
.talk-event { margin: 0; color: var(--ink); font-size: .875rem; font-weight: 500; }
.talk-text { margin: 0; color: var(--muted); font-size: .875rem; }
@media (max-width: 1060px) {
  .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talk, .talk:nth-child(-n+2), .talk:nth-child(n+6):nth-last-child(-n+2) { grid-column: auto; }
  .talk:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .talk:last-child .talk-media { aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 600px) {
  .talks { grid-template-columns: 1fr; }
  .talk:last-child { display: flex; }
  .talk:last-child .talk-media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* Linha do tempo */
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -12px 0 28px; color: var(--muted); font-size: .875rem; }
.tl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tl-legend .k-role { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cobalt); }
.tl-legend .k-mile { width: 10px; height: 10px; background: var(--ochre); transform: rotate(45deg); }
.tl { --p: 0; --rail: 8.5rem; position: relative; list-style: none; margin: 0; padding: 0; }
.tl::before { content: ""; position: absolute; z-index: 0; left: var(--rail); top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--line); }
.tl::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--rail);
  top: 6px;
  width: 2px;
  margin-left: -1px;
  height: calc((100% - 12px) * var(--p));
  background: linear-gradient(var(--ochre), var(--cobalt));
}
.tl > li { position: relative; padding: 10px 0 10px calc(var(--rail) + 28px); }
.tl-year {
  position: absolute;
  left: 0;
  top: 14px;
  width: calc(var(--rail) - 22px);
  text-align: right;
  color: var(--muted);
  font: 500 .8125rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.tl-dot {
  position: absolute;
  left: var(--rail);
  top: 16px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid var(--cobalt);
  background: var(--paper);
  transition: background-color .3s, box-shadow .3s;
}
.tl-card {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .4s, transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s;
}
.tl-role { margin: 0; font: 650 1.0625rem/1.35 var(--font-display); }
.tl-org { color: var(--cobalt); font-weight: 600; }
.tl-desc { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.tl .is-mile .tl-dot { top: 15px; width: 11px; height: 11px; margin-left: -5.5px; border: 0; border-radius: 1px; background: var(--ochre); transform: rotate(45deg); }
.tl .is-mile .tl-year { top: 9px; }
.tl .is-mile .tl-card { padding: 4px 0; border: 0; background: none; }
.tl .is-mile .tl-role { font: 500 .9375rem/1.4 var(--font-body); color: var(--ink); }
.tl .is-current .tl-card { border-color: var(--cobalt); background: var(--cobalt-soft); }
.tl .is-current .tl-year { color: var(--live); font-weight: 600; }
.tl .is-current .tl-dot { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 5px color-mix(in srgb, var(--live) 22%, transparent); }
.tl.is-animated > li:not(.is-reached) .tl-card { opacity: .62; transform: translateX(10px); }
.tl.is-animated > li.is-reached .tl-dot { background: var(--cobalt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 20%, transparent); }
.tl.is-animated > li.is-reached .tl-card { border-color: color-mix(in srgb, var(--cobalt) 35%, var(--line)); }
.tl.is-animated > li.is-mile.is-reached .tl-dot { background: var(--ochre); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ochre) 25%, transparent); }
.tl.is-animated > li.is-current.is-reached .tl-dot { background: var(--live); box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 25%, transparent); }
@media (max-width: 640px) {
  .tl { --rail: 8px; }
  .tl > li { padding-left: 30px; }
  .tl-year { position: static; display: block; width: auto; text-align: left; margin-bottom: 4px; }
  .tl .is-mile .tl-year { margin-bottom: 0; }
  .tl-dot, .tl .is-mile .tl-dot { top: 16px; }
}

/* Reconhecimentos */
.awards { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.award-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.award-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 14px;
  background: var(--band);
  color: var(--band-fg);
}
.award-hero > svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to top left, #000 10%, transparent 60%);
  mask-image: linear-gradient(to top left, #000 10%, transparent 60%);
}
.award-hero .label { color: var(--band-fg); opacity: .8; }
.award-big { margin: 0; font: 700 clamp(2.6rem, 5vw, 3.75rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--band-fg); }
.award-big small { display: block; margin-top: 8px; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; opacity: .9; }
.award-hero ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.award-hero li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; font-size: .9375rem; }
.award-hero li span { font: 500 .75rem/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.award-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.award { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.award .label { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.award .label .ico { width: 14px; height: 14px; }
.award p { margin: 0; color: var(--muted); font-size: .9375rem; }
.award.is-new { border-color: color-mix(in srgb, var(--ochre) 60%, var(--line)); }
.award.has-thumb { padding-right: 92px; }
.award-thumb { position: absolute; top: 16px; right: 16px; width: 60px; height: 60px; border-radius: 6px; }
.award-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1060px) { .awards { grid-template-columns: 1fr; } }
@media (min-width: 521px) { .award-list > .award:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 520px) { .award-list { grid-template-columns: 1fr; } }

/* Depoimentos */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.quote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 14px;
  background: var(--surface);
}
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: 1.0625rem; }
.quote p strong { font-weight: 650; }
.quote figcaption { display: grid; gap: 2px; margin-top: 12px; }
.quote .who { font-weight: 600; }
.quote .role { color: var(--muted); font-size: .875rem; }
.quote-mark { display: grid; place-items: start center; width: 46px; color: var(--ochre); font: 400 4.6rem/.8 var(--font-serif); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Formação */
.degrees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.degree { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.degree .label { display: flex; align-items: center; gap: 6px; }
.degree .label .ico { width: 14px; height: 14px; }
.degree .inst { color: var(--accent); font-weight: 600; font-size: .9375rem; }
.degree p { margin: 0; color: var(--muted); font-size: .9375rem; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ochre) 22%, transparent);
  color: var(--ink);
  font: 600 .75rem/1.3 var(--font-body);
}
.badge .ico { width: 14px; height: 14px; }
.courses-title { margin: 44px 0 14px; }
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.courses li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.courses .r-sub { font-size: .875rem; }
@media (max-width: 960px) { .degrees, .courses { grid-template-columns: 1fr; } }

/* Mosaico e interesses: fotos horizontais ocupam uma célula, verticais ocupam duas linhas */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 215px); grid-auto-flow: dense; gap: 10px; }
.mosaic .photo { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 10px; }
.mosaic .is-port { grid-row: span 2; }
.mosaic .zoom-btn { height: 100%; border-radius: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.mosaic .photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(to top, rgba(6, 10, 18, .8), rgba(6, 10, 18, .38) 45%, rgba(6, 10, 18, 0));
  pointer-events: none;
}
/* Legenda em até duas linhas, sobre a sombra; o ícone de zoom fica no canto de cima para não disputar espaço */
.mosaic figcaption {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: -webkit-box;
  overflow: hidden;
  color: #FFFFFF;
  font: 600 .8125rem/1.25 var(--font-body);
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  pointer-events: none;
}
.mosaic .zoom-btn .zoom-ico { top: 10px; bottom: auto; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic figcaption { font-size: .75rem; }
}
.interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 32px 0 0; padding: 0; }
.interests li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding-block: 16px; border-top: 1px solid var(--line); }
.interests .ico { grid-row: 1 / span 2; margin-top: 2px; color: var(--accent); }
.interests span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 720px) { .interests { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--lb-bg);
  color: var(--lb-fg);
}
.lightbox::backdrop { background: var(--lb-bg); }
.lb-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
/* A foto fica presa à área de cima, centralizada; a legenda tem sempre a sua faixa própria embaixo */
.lb-stage { position: relative; min-height: 0; }
.lb-stage img { position: absolute; inset: 0; display: block; margin: auto; max-width: min(100%, 1100px); max-height: 100%; width: auto; height: auto; border-radius: var(--radius); }
.lb-stage img.zoom { animation: lb-zoom .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lb-caption { max-width: 720px; margin: 0 auto; text-align: center; }
.lb-caption h2 { color: var(--lb-fg); font-size: 1.25rem; }
.lb-caption p { margin: 6px 0 0; opacity: .85; font-size: .9375rem; }
.lb-count { display: block; margin-top: 8px; font: 500 .75rem/1 var(--font-mono); opacity: .6; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lb-btn);
  color: var(--lb-fg);
  cursor: pointer;
}
.lb-btn:hover { background: color-mix(in srgb, var(--lb-fg) 22%, transparent); }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-inner { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .lb-prev, .lb-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; }
}

/* Contato */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--band); color: var(--band-fg); }
.contact > svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 55%);
  mask-image: linear-gradient(to left, #000 0%, transparent 55%);
}
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; padding-block: clamp(64px, 9vw, 112px); }
.contact .eyebrow { color: var(--band-fg); }
.contact .eyebrow::before { background: var(--ochre); }
.contact .t-section { color: var(--band-fg); }
.contact .t-section em { color: var(--ochre); }
.contact-text { margin: 16px 0 0; max-width: 56ch; opacity: .88; font-size: 1.125rem; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.contact-id { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.contact-id .avatar { width: 64px; height: 64px; object-position: 50% 18%; border: 2px solid color-mix(in srgb, var(--band-fg) 35%, transparent); }
.contact-id b { display: block; font: 650 1.125rem/1.3 var(--font-display); }
.contact-id span { opacity: .8; font-size: .875rem; }
.btn-band { justify-content: center; background: var(--band-fg); color: var(--band); }
.btn-band:hover { background: color-mix(in srgb, var(--band-fg) 86%, var(--band)); }
.btn-band-ghost { color: var(--band-fg); border-color: color-mix(in srgb, var(--band-fg) 40%, transparent); justify-content: center; }
.btn-band-ghost:hover { border-color: var(--band-fg); }
.phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--band-fg) 40%, transparent);
  border-radius: 12px;
  font: 500 .9375rem/1.2 var(--font-mono);
}
.phone span { -webkit-user-select: all; user-select: all; }
.copy {
  margin-left: auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--band-fg) 16%, transparent);
  color: var(--band-fg);
  font: 600 .75rem/1 var(--font-body);
  cursor: pointer;
}
.copy:hover { background: color-mix(in srgb, var(--band-fg) 26%, transparent); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links .btn { flex: 1 1 auto; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; align-items: start; } }

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-fg);
  font: 600 .875rem/1 var(--font-body);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.wa-float:hover { background: var(--wa-hover); }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* Rodapé */
.site-footer { color: var(--muted); font-size: .9375rem; }
.ribbon { height: 6px; background: var(--ribbon); }
.footer-map { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.footer-map p { margin: 10px 0 0; max-width: 40ch; }
.footer-map h4 { margin-bottom: 12px; font: 500 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink); }
.footer-map ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); }
.site-footer .brand { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .875rem; }
@media (max-width: 760px) { .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }

/* Links dos cards do portfólio para as páginas de projeto */
.pcard-title { color: inherit; text-decoration: none; }
.pcard-title:hover { color: var(--accent); }
.pcard-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.pcard-more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-weight: 650;
  font-size: .9375rem;
  text-decoration: none;
  text-underline-offset: 4px;
}
.pcard-more:hover { color: var(--accent); text-decoration: underline; }

/* Na imprensa e em registros públicos */
.press { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.press-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.press-top { display: flex; align-items: center; gap: 10px; }
.press-year { color: var(--accent); font: 600 .8125rem/1 var(--font-mono); }
.press-type { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font: 500 .6875rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.press-item h4 { font-size: 1.0625rem; }
.press-item p { margin: 0; color: var(--muted); font-size: .9375rem; }
.press-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px; margin-top: auto; color: var(--accent); font-weight: 600; font-size: .875rem; text-decoration: none; }
.press-link:hover { text-decoration: underline; }
.press-item .press-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: auto 0 0; }
.press-links > span { color: var(--muted); font-size: .875rem; }
.press-links .press-link { margin-top: 0; }

/* Case de IA: link para o projeto */
.case-link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 10px; color: var(--accent); font-weight: 600; text-decoration: none; }
.case-link:hover { text-decoration: underline; }
.case-panel .case-link, .case-panel .case-project { color: var(--ochre); }
.case-panel .video-body b { color: #fff; }
.case-panel .video-body .label { color: rgb(255 255 255 / .72); }

/* Livro: capa, leitura online e download */
.pub-art { text-decoration: none; }
.pub-cover { display: block; width: min(100%, 230px); height: auto; border-radius: 4px; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .55); transform: rotate(-2deg); transition: transform .3s; }
.pub-art:hover .pub-cover, .pub-art:focus-visible .pub-cover { transform: rotate(0) scale(1.02); }
.pub-actions .btn[hidden] { display: none; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pub-actions .btn small { margin-left: 6px; color: var(--muted); font: 500 .75rem/1 var(--font-mono); }
.pub-actions .btn-primary small { color: inherit; opacity: .8; }
.pub-source { font-size: .875rem; }
.pub-source a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pub-source a:hover { text-decoration: underline; }

/* Páginas de projeto: conquistas */
.achievements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ach { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ach-top { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.ach-year { color: var(--muted); font: 500 .75rem/1 var(--font-mono); }
.ach-title { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.ach-body > p:not(.ach-top) { margin: 0; color: var(--muted); font-size: .9375rem; }
.ach-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 6px !important; }
.ach-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); font-weight: 600; font-size: .875rem; text-decoration: none; }
.ach-links a:hover { text-decoration: underline; }
.ach--funding .ico-tile, .ach--award .ico-tile { background: color-mix(in srgb, var(--ochre, #C8902B) 18%, var(--surface)); }
@media (max-width: 700px) { .achievements { grid-template-columns: 1fr; } }

/* Case de IA: pitches do Centelha */
.videos--case { margin-bottom: 8px; }
.videos--case li { display: grid; gap: 4px; align-content: start; }
.case-project { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); font-weight: 600; font-size: .875rem; text-decoration: none; }
.case-project:hover { text-decoration: underline; }

/* Livro: foto do lançamento */
.pub-launch { max-width: 360px; margin-top: 8px; }
.pub-launch img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }

/* Pessoal: cartão da Steam */
.steam-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; margin-top: 32px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 16px; background: var(--surface); }
.steam-head h4 { margin: 2px 0 0; font-size: 1.25rem; }
.steam-card .label { margin: 0; color: var(--accent); }
.steam-body { grid-column: 2 / -1; display: grid; gap: 18px; min-width: 0; }
.steam-body > p { margin: 0; max-width: 68ch; color: var(--muted); }
.steam-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.steam-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; padding: 14px 16px; }
.steam-stats div + div { border-left: 1px solid var(--line); }
.steam-stats dd { margin: 0; font: 700 1.6rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.steam-stats dt { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.steam-top ol { display: grid; gap: 12px; list-style: none; margin: 10px 0 0; padding: 0; counter-reset: top; }
.steam-top li { display: grid; grid-template-columns: 2ch minmax(0, 1fr) auto; gap: 6px 10px; align-items: baseline; counter-increment: top; }
.steam-top li::before { content: counter(top); color: var(--accent); font: 700 1rem/1 var(--font-display); }
.steam-game { min-width: 0; color: var(--ink); font-weight: 600; line-height: 1.3; }
.steam-h { color: var(--muted); font: 500 .8125rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.steam-bar { grid-column: 2 / -1; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--w), var(--accent-soft) var(--w)); }
@media (max-width: 760px) {
  .steam-card { grid-template-columns: auto minmax(0, 1fr); }
  .steam-cta { grid-column: 1 / -1; justify-self: start; order: 1; }
  .steam-body { grid-column: 1 / -1; }
}
/* telas estreitas: 3 indicadores em cima e 2 embaixo, sem célula vazia */
@media (max-width: 600px) {
  .steam-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .steam-stats div { grid-column: span 2; padding: 12px; }
  .steam-stats div:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .steam-stats div:nth-child(4) { border-left: 0; }
  .steam-stats dd { font-size: 1.35rem; }
}

/* Páginas de projeto: vídeos */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.video { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.video-thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .35s, opacity .2s; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-play .ico { width: 46px; height: 46px; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .5)); }
.video:hover .video-thumb img, .video:focus-visible .video-thumb img { transform: scale(1.04); opacity: 1; }
.video-body { display: grid; gap: 2px; }
.video-body b { font-size: .9375rem; line-height: 1.35; }
.video:hover .video-body b { color: var(--accent); }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .videos { grid-template-columns: 1fr; } }
.press-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .press { grid-template-columns: 1fr; } }

/* Páginas de projeto: ficha, história, galeria, equipe e outros projetos */
.proj { --accent: var(--coral); --accent-soft: var(--coral-soft); }
.proj [id] { scroll-margin-top: 136px; }
.site-header--proj.site-header .wrap { max-width: var(--wrap); padding-inline: clamp(16px, 4vw, 40px); }
.site-header--proj .brand { margin-right: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-right: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 500 .875rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.back-link:hover { border-color: var(--coral); color: var(--coral); }
.back-link .ico { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .back-link { width: 40px; padding: 0; justify-content: center; }
  .back-link span { display: none; }
}
.proj-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); }
.proj-hero > svg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 45%); mask-image: linear-gradient(to left, #000 0%, transparent 45%); }
.proj-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ribbon); }
.proj-hero .wrap { padding-block: clamp(22px, 3.5vw, 36px) clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(20px, 3vw, 32px); color: var(--muted); font: 500 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.proj-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.proj-title { margin: 12px 0 10px; font: 800 clamp(2.2rem, 5vw, 3.6rem)/1.02 var(--font-display); letter-spacing: -.03em; }
.proj-org { margin: 0; color: var(--accent); font-weight: 600; }
.proj-lead { max-width: 60ch; margin: 14px 0 0; color: var(--muted); font-size: 1.125rem; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.proj-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--accent-soft); box-shadow: var(--shadow); }
.proj-media .zoom-btn { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.proj-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* Topo das páginas de projeto: a foto aparece inteira, sem corte */
.proj-media--photo { aspect-ratio: auto; display: flex; justify-content: center; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.proj-media--photo .zoom-btn { position: relative; inset: auto; width: auto; max-width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.proj-media--photo img { width: auto; max-width: 100%; height: auto; max-height: min(70vh, 600px); aspect-ratio: auto !important; object-fit: contain !important; border-radius: 16px; }
@media (max-width: 900px) { .proj-hero-grid { grid-template-columns: 1fr; } }
.proj-nav { position: sticky; top: var(--header-h); z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.proj-nav .wrap { display: flex; align-items: center; gap: 6px 20px; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.proj-nav .label { flex: none; }
.proj-nav a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-bottom: 2px solid transparent; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.proj-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.proj-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 6vw, 72px); }
.proj-main { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.proj-sec p { max-width: 68ch; margin: 0 0 14px; font-size: 1.0625rem; }
.proj-h2 { margin-bottom: 16px; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -.015em; }
.proj-h3 { margin: 26px 0 12px; font-size: 1.125rem; }
.proj-sec .role { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.proj-sec .proj-hint { color: var(--muted); font-size: .9375rem; }
.proj-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.proj-gallery:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.proj-gallery { align-items: start; }
.proj-gallery img { aspect-ratio: auto; height: auto; object-fit: contain; }
.proj-gallery .photo--wide { grid-column: 1 / -1; }
.proj-gallery .photo--wide img { aspect-ratio: auto; }
.proj-sheet { position: sticky; top: calc(var(--header-h) + 72px); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.proj-sheet h2 { display: block; margin: 0 0 12px; }
.proj-sheet dl { display: grid; margin: 0; }
.proj-sheet dl > div { display: grid; gap: 4px; padding-block: 12px; border-top: 1px solid var(--line); }
.proj-sheet dt { color: var(--muted); font: 500 .6875rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.proj-sheet dd { margin: 0; font-size: .9375rem; }
.proj-sheet dd a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.proj-sheet .refs { margin: 0; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: 1fr; } .proj-sheet { position: static; order: -1; } }
@media (max-width: 600px) { .proj-gallery { grid-template-columns: 1fr; } }
.proj-others { border-top: 1px solid var(--line); }
.proj-others .t-section { margin-bottom: 24px; }
.pcard--mini .pcard-media { display: block; }
.pcard--mini .pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard-h { font: 650 1.1875rem/1.3 var(--font-display); }
.pcard--mini .pcard-more { margin-top: auto; }
@media (min-width: 700px) { #equipe .credits:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.proj-all { margin-top: 26px; }
.proj-cta .wrap { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble-line path { stroke-dashoffset: 0; }
  .polaroid { transform: rotate(2.4deg); }
}

/* ---------- V15 ---------- */
/* Trilha acadêmica: graduação, especialização e mestrado em andamento */
.levels--path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.levels--path::before { left: 16.6%; right: 50%; background: linear-gradient(90deg, var(--ochre), var(--accent)); }
.levels--path::after { content: ""; position: absolute; top: 7px; left: 50%; right: 16.6%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
.levels--path li { color: var(--ink); }
.levels--path li b { font: 600 .8125rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.levels--path li span { color: var(--muted); font: 500 .75rem/1.3 var(--font-mono); text-transform: none; letter-spacing: 0; }
.levels--path li.is-done::before { background: var(--accent); }
.levels--path li.is-current::before { background: var(--paper); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); animation: path-pulse 2.4s ease-in-out infinite; }
@keyframes path-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { .levels--path li.is-current::before { animation: none; } }
@media (max-width: 600px) {
  .levels--path { grid-template-columns: 1fr; }
  .levels--path::before { top: 8px; bottom: 50%; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--ochre), var(--accent)); }
  .levels--path::after { top: 50%; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(var(--accent) 0 8px, transparent 8px 14px); }
  .levels--path li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .levels--path li::before { grid-row: 1 / span 2; }
}

/* Vídeos do YouTube que tocam na própria página */
.yt-box { position: relative; }
.yt-play { position: absolute; inset: 0; display: block; color: inherit; }
.yt-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-box.is-playing { background: #000; }
.talk-media.yt-box .video-play .ico { width: 54px; height: 54px; }
.talk-media.yt-box:hover img { transform: scale(1.03); transition: transform .4s; }
.talk-episodes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 0; font-size: .8125rem; }
.talk-episodes > span { color: var(--muted); font: 500 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; }
.talk-episodes a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--accent); font-weight: 600; text-decoration: none; }
.talk-episodes a .ico { width: 16px; height: 16px; }
.talk-episodes a:hover { text-decoration: underline; }

/* Busca inteligente */
.ask-float {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--on-cobalt);
  font: 600 .875rem/1 var(--font-body);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.ask-float .ico { width: 18px; height: 18px; }
/* Portfólio sem WhatsApp: a busca fica no canto, no lugar do botão do WhatsApp */
.ask-float--solo { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.ask-float:hover { background: color-mix(in srgb, var(--cobalt) 84%, #000); }
.ask-float[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.ask-panel {
  position: fixed;
  right: 16px;
  bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 170px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgb(14 26 47 / .28);
}
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--cobalt) 10%, var(--surface)), var(--surface)); }
.ask-head .label { margin: 0; color: var(--cobalt); }
.ask-sub { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.ask-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.ask-close:hover { background: var(--line); }
.ask-close .ico { width: 18px; height: 18px; }
.ask-log { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.ask-msg { max-width: 92%; font-size: .875rem; line-height: 1.45; }
.ask-msg p { margin: 0 0 6px; }
.ask-user { align-self: flex-end; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--cobalt); color: var(--on-cobalt); }
.ask-bot { align-self: flex-start; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--paper); color: var(--ink); }
.ask-wait { color: var(--muted); }
.ask-hits { display: grid; gap: 6px; list-style: none; margin: 4px 0 6px; padding: 0; }
.ask-hits a { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ask-hits a:hover, .ask-hits a:focus-visible { border-color: var(--cobalt); }
.ask-hits b { color: var(--cobalt); font-size: .875rem; }
.ask-hits span { color: var(--muted); font-size: .8125rem; }
.ask-hits mark { background: color-mix(in srgb, var(--ochre) 35%, transparent); color: inherit; border-radius: 3px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-actions a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .8125rem; text-decoration: none; }
.ask-actions .ask-wa { border-color: var(--wa); background: var(--wa); color: var(--wa-fg); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.ask-chip { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 .78rem/1.2 var(--font-body); cursor: pointer; }
.ask-chip:hover { border-color: var(--cobalt); color: var(--cobalt); }
.ask-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 .9375rem/1 var(--font-body); }
.ask-form input:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.ask-form button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--cobalt); color: var(--on-cobalt); font: 600 .875rem/1 var(--font-body); cursor: pointer; }
@media (max-width: 520px) {
  .ask-float span { display: none; }
  .ask-float { padding: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .ask-float--solo { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .ask-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; }
  html.ask-open { overflow: hidden; }
}
@media print { .ask-float, .ask-panel { display: none !important; } }

/* Aviso de cookies e janela de privacidade (só aparecem com alguma ferramenta de métricas configurada) */
.consent {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 50px rgb(14 26 47 / .22);
}
.consent-title { margin: 0 0 4px; font: 600 .9375rem/1.3 var(--font-body); }
.consent-text { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.consent-actions, .privacy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.consent-actions button, .privacy-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 .8125rem/1 var(--font-body);
  cursor: pointer;
}
.consent-actions button:hover, .privacy-actions button:hover { border-color: var(--cobalt); }
.consent-actions .is-primary, .privacy-actions .is-primary { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-cobalt); }
.consent-actions .is-link { padding: 0 6px; border-color: transparent; background: none; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .consent { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; }
  html.consent-open .wa-float, html.consent-open .ask-float { transform: translateY(calc(-1 * var(--consent-h, 0px))); }
}
.privacy-link { display: inline-flex; align-items: center; min-height: 32px; margin-left: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-link:hover { color: var(--cobalt); }
.privacy {
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(14 26 47 / .3);
  overflow: auto;
  overscroll-behavior: contain;
}
.privacy::backdrop { background: rgb(8 14 26 / .55); }
.privacy-inner { padding: 20px 22px 0; }
.privacy-actions { position: sticky; bottom: 0; margin: 14px -22px 0; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.privacy-inner > p { margin: 10px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.privacy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.privacy-head h2 { margin: 2px 0 0; font: 700 1.25rem/1.25 var(--font-display); }
.privacy-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.privacy-close:hover { background: var(--line); }
.privacy-close .ico { width: 18px; height: 18px; }
.privacy-cat { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.privacy-cat p { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.privacy-row b { font-size: .9375rem; }
label.privacy-row { cursor: pointer; }
.privacy-always { color: var(--teal); font: 600 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.privacy-tools { font-weight: 600; }
.privacy-row input[type="checkbox"] {
  appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background .2s;
}
.privacy-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.privacy-row input[type="checkbox"]:checked { background: var(--cobalt); }
.privacy-row input[type="checkbox"]:checked::after { transform: translateX(18px); }
.privacy-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.privacy-status { align-self: center; color: var(--teal); font-size: .8125rem; font-weight: 600; }
@media print { .consent, .privacy { display: none !important; } }

/* Leitor de PDF na própria página */
.pdf-reader {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1b1f27;
  color: #fff;
}
.pdf-reader[open] { display: flex; flex-direction: column; }
.pdf-reader::backdrop { background: rgb(8 14 26 / .75); }
.pdf-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: #11151c;
}
.pdf-title { flex: 1; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 .9375rem/1.3 var(--font-body); }
.pdf-count { color: rgb(255 255 255 / .72); font: 500 .8125rem/1 var(--font-mono); white-space: nowrap; }
.pdf-tools { display: flex; gap: 4px; }
.pdf-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / .08);
  color: #fff;
  font: 600 1.25rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.pdf-btn:hover, .pdf-btn:focus-visible { background: rgb(255 255 255 / .2); }
.pdf-btn[hidden] { display: none; }
.pdf-btn .ico { width: 18px; height: 18px; }
.pdf-pages { flex: 1; overflow: auto; padding: 16px 12px 48px; overscroll-behavior: contain; outline: none; }
.pdf-page { position: relative; width: var(--pw, 800px); margin: 0 auto 14px; background: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .35); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-page:not(.is-ready)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #f1f1f1 30%, #fafafa 50%, #f1f1f1 70%) 0 0 / 200% 100%; animation: pdf-wait 1.4s linear infinite; }
@keyframes pdf-wait { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pdf-page:not(.is-ready)::after { animation: none; } }
.pdf-msg { margin: 18vh auto 0; max-width: 32ch; color: rgb(255 255 255 / .82); font-size: .9375rem; line-height: 1.5; text-align: center; }
.pdf-msg a { color: #fff; font-weight: 600; }
html.pdf-open { overflow: hidden; }
@media (max-width: 600px) {
  .pdf-count { display: none; }
  .pdf-bar { gap: 8px; padding-left: 12px; }
  .pdf-pages { padding: 10px 6px 40px; }
}
@media print { .pdf-reader { display: none !important; } }

/* Conversa da busca: resposta escrita, referências e selo de resposta com IA */
.ask-bot p.ask-ref { margin: 10px 0 4px; color: var(--muted); font: 600 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.ask-bot ul:not(.ask-hits) { margin: 0 0 6px; padding-left: 18px; }
.ask-bot ul:not(.ask-hits) li { margin: 2px 0; }
.ask-bot p.ask-ai { margin: 2px 0 6px; color: var(--muted); font-size: .75rem; }
.ask-bot p.ask-bloqueio { color: var(--coral); font-weight: 600; font-size: .8rem; }

/* Currículo para uma vaga (assets/cv.js) */
[data-cv-open][aria-busy="true"] { opacity: .7; cursor: progress; }
.cv-dialog {
  width: min(1180px, calc(100vw - 24px));
  max-width: none;
  height: min(920px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(14 26 47 / .3);
  overflow: hidden;
}
.cv-dialog[open] { display: flex; flex-direction: column; }
.cv-dialog::backdrop { background: rgb(8 14 26 / .6); }
.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cv-head h2 { font-size: 1.25rem; }
.cv-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: clamp(16px, 3vw, 28px); }
.cv-form { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.cv-form[hidden], .cv-result[hidden] { display: none; }
.cv-intro { margin: 0; color: var(--muted); line-height: 1.55; }
.cv-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.cv-form input, .cv-form textarea, .cv-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 1rem/1.45 var(--font-body); }
.cv-form textarea { min-height: 190px; resize: vertical; }
.cv-form input:focus-visible, .cv-form textarea:focus-visible, .cv-form select:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.cv-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.cv-detect { margin: 0 0 10px; color: var(--cobalt); font-size: .875rem; }
.cv-more summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.cv-more[open] summary { margin-bottom: 10px; }
/* ocultar experiências e portfólio à parte */
.cv-hide-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.cv-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
.cv-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cobalt); }
.cv-check small { color: var(--muted); white-space: nowrap; }
.cv-copy { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.cv-days { display: grid; gap: 4px; max-width: 220px; }
.cv-copy-made { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.cv-copy-made .ico { width: 16px; height: 16px; color: var(--cobalt); }
.cv-warn { color: var(--coral, #b4462e); }
.cv-note { margin: 4px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.cv-error { margin: 0; min-height: 1.2em; color: #b42318; font-size: .9rem; }
.cv-actions, .cv-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.cv-report { display: grid; gap: 10px; }
.cv-report h3, .cv-preview h3 { margin: 10px 0 2px; font-size: .95rem; }
.cv-score { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cv-score-top { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.cv-score-top b { font: 700 2rem/1 var(--font-display); }
.cv-score-top span { color: var(--muted); font-size: .9rem; }
.cv-bar { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cv-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--cobalt); }
.cv-score--high .cv-bar > span { background: var(--live); }
.cv-score--low .cv-bar > span { background: var(--coral); }
.cv-kws, .cv-checks, .cv-chips { list-style: none; margin: 0; padding: 0; }
.cv-kws li { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cv-kws li span { color: var(--muted); font-size: .8rem; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-chips li { padding: 4px 10px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.cv-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: .85rem; line-height: 1.45; }
.cv-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; font-weight: 700; }
.cv-checks .is-ok .cv-mark { background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live); }
.cv-checks .is-warn .cv-mark { background: color-mix(in srgb, #d97706 20%, transparent); color: #b45309; }
.cv-preview { min-width: 0; }
.cv-top { position: sticky; top: calc(-1 * clamp(16px, 3vw, 28px)); z-index: 1; margin: calc(-1 * clamp(16px, 3vw, 28px)) 0 14px; padding: clamp(12px, 2vw, 18px) 0 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cv-top .cv-note { margin: 0; }
.cv-status { min-height: 1.2em; margin: 0; color: var(--cobalt); font-size: .875rem; }
.cv-plain { width: 100%; min-height: 160px; margin: 8px 0; font: .85rem/1.4 var(--font-mono); }
.cv-paper {
  max-width: 794px;
  margin: 12px auto 0;
  padding: clamp(20px, 5vw, 44px);
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 6px 24px rgb(0 0 0 / .12);
  font: 400 10pt/1.28 Arial, "Liberation Sans", Helvetica, sans-serif;
  text-align: left;
}
.cv-paper h1 { margin: 0; color: #111; font: 700 18pt/1.22 Arial, "Liberation Sans", Helvetica, sans-serif; text-wrap: initial; }
.cv-paper h2 { margin: 16px 0 6px; padding-bottom: 2px; border-bottom: 1px solid #8c8c8c; color: #111; font: 700 10.5pt/1.33 Arial, "Liberation Sans", Helvetica, sans-serif; text-transform: uppercase; }
.cv-paper p { margin: 0 0 4px; }
.cv-paper ul { margin: 2px 0 6px; padding-left: 18px; }
.cv-paper li { margin: 1px 0; }
.cv-paper a { color: #1a3c9c; }
.cv-paper mark { padding: 0 1px; background: #fff1a8; color: inherit; }
.cv-headline { color: #333; font-size: 10.5pt; }
.cv-contact { color: #333; font-size: 9pt; overflow-wrap: anywhere; }
.cv-portfolio { margin: 3px 0 2px !important; font-size: 10pt; overflow-wrap: anywhere; }
.cv-portfolio a { font-weight: 700; }
.cv-sep { color: #777; }
.cv-objective { margin-top: 6px !important; font-weight: 700; }
.cv-skills { padding-left: 0 !important; list-style: none; }
.cv-entry-h { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 2px !important; }
.cv-period { flex: none; color: #444; white-space: nowrap; }
#cv-print { display: none; }
@media (max-width: 960px) { .cv-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cv-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .cv-row { grid-template-columns: minmax(0, 1fr); }
  .cv-tools .btn { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
  .cv-top { position: static; }
  .cv-entry-h { flex-direction: column; gap: 0; }
}
/* PDF em chinês: a página imprime só o currículo */
@media print {
  html.cv-printing body > *:not(#cv-print) { display: none !important; }
  html.cv-printing #cv-print { display: block; }
  html.cv-printing #cv-print .cv-paper { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  .cv-dialog { display: none !important; }
}

/* "Essa pessoa serve para a minha vaga?": o convite no topo da página e a janela da aderência */
.recruit { display: flex; align-items: center; gap: 12px; max-width: 64ch; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.recruit-ico { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--cobalt-soft); color: var(--cobalt); }
.recruit-ico .ico { width: 18px; height: 18px; }
.recruit p { flex: 1; margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.recruit .btn { flex: none; }
.match-dialog { width: min(860px, calc(100vw - 24px)); }
.match-result { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.match-result[hidden] { display: none; }
.match-result h3 { margin: 8px 0 0; font-size: .95rem; }
.match-verdict { margin: 0; font-weight: 600; }
.match-fit { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.match-fit li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.match-fit p { margin: 0; font-size: .925rem; line-height: 1.5; }
.match-fit mark { padding: 0 1px; border-radius: 2px; background: #fff1a8; color: #1a1a1a; }
.match-fit span { color: var(--muted); font-size: .8rem; }
.match-tools { margin-top: 6px; }
@media (max-width: 640px) {
  .recruit { flex-wrap: wrap; }
  .recruit .btn { width: 100%; justify-content: center; }
  .match-dialog { width: 100vw; }
}

/* "Pergunte ao portfólio": gêmeo digital (selo de IA) e voz (perguntar falando e ouvir a resposta) */
.ask-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font: 700 .65rem/1.5 var(--font-body); letter-spacing: .04em; vertical-align: 2px; }
.ask-form .ask-mic { flex: none; display: inline-grid; place-items: center; width: 42px; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.ask-form .ask-mic:hover { color: var(--ink); border-color: var(--cobalt); }
.ask-form .ask-mic[hidden] { display: none; }
.ask-form .ask-mic .ico { width: 18px; height: 18px; }
.ask-form .ask-mic.is-on { border-color: #d92d20; background: #d92d20; color: #fff; animation: ask-ouvindo 1.2s ease-in-out infinite; }
@keyframes ask-ouvindo { 50% { box-shadow: 0 0 0 6px rgb(217 45 32 / .22); } }
.ask-listen { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 600 .78rem/1.2 var(--font-body); cursor: pointer; }
.ask-listen:hover { color: var(--ink); border-color: var(--cobalt); }
.ask-listen .ico { width: 14px; height: 14px; }
.ask-listen.is-on { border-color: var(--cobalt); color: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { .ask-form .ask-mic.is-on { animation: none; } }
