/* LabOtim · folha de estilo única (versão 3, "Índice editorial").
   Cores extraídas do logotipo atualizado (outubro de 2026): azul #00315D e laranja #E56C20.
   Todos os tamanhos de fonte, espaços e cores passam pelos tokens de :root. */

@font-face { font-family: "Archivo"; src: url(../fonts/archivo-wdth-wght.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(../fonts/source-serif-4-wght.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* cor: marca */
  --brand: #00315D;          /* azul do logo, 13,2:1 sobre branco */
  --brand-deep: #00213F;
  --brand-mist: #C9D3DF;     /* texto secundário sobre azul, 8,7:1 */
  --accent: #E56C20;         /* laranja do logo: grafismos e texto sobre azul (4,1:1) */
  --accent-display: #DE6A24; /* títulos acima de 40 px (3,4:1) */
  --amber: #FFB80C;
  /* cor: semântica */
  --text: #15202B;
  --text-muted: #4E5A6C;     /* 7,0:1 */
  --link: #B4520A;           /* 5,1:1 */
  --link-hover: #00315D;
  --faint: #6E7A8C;          /* só elementos não textuais */
  --surface: #FFFFFF;
  --surface-alt: #F6F5F2;
  --rule: #E1E5EA;
  --on-brand: #FFFFFF;
  --focus-inner: #00315D;
  --focus-outer: #FFB80C;

  /* tipografia */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --fs-1: .75rem;
  --fs-2: .875rem;
  --fs-3: 1rem;
  --fs-4: 1.125rem;
  --fs-5: clamp(1.3rem, 2vw, 1.75rem);
  --fs-6: clamp(1.7rem, 3.2vw, 2.75rem);
  --fs-display: clamp(2.4rem, 6vw, 5.25rem);
  --fs-page: clamp(2.2rem, 5vw, 4.25rem);
  --fs-item: clamp(1.1rem, 1.6vw, 1.375rem);
  --fs-num: 1.375rem;
  --fs-lead-sm: 1.1rem;

  /* espaço (base 4/8) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 104px; --sp-10: 120px;
  --hit: 44px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1320px;
  --gutter: 20px;
  --header-h: 76px;
  --portrait: 160px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--sp-5)); }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--f-text); font-size: var(--fs-3); line-height: 1.6; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s var(--ease); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus-inner); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-outer); }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-outer); box-shadow: none; outline-width: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--brand); margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono, .eyebrow { font-family: var(--f-mono); font-size: var(--fs-1); letter-spacing: .06em; color: var(--text-muted); }
.eyebrow { text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--sp-4); top: -120px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: var(--sp-3) var(--sp-4); font-family: var(--f-display); }
.skip:focus { top: var(--sp-3); color: var(--on-brand); }
.display { font-stretch: 118%; font-weight: 800; letter-spacing: -0.025em; }
.js .nojs-only { display: none !important; }

/* Componente base de controle: chip, tag, idioma, botão e link com seta */
.ctl { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); padding: 0 var(--sp-4); border: 1px solid var(--rule); background: var(--surface); color: var(--brand); font-family: var(--f-display); font-weight: 600; font-size: var(--fs-2); line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }
.ctl:hover { border-color: var(--brand); color: var(--brand); }
.ctl:active { transform: translateY(1px); }
.ctl--fill, .ctl[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ctl--fill:hover, .ctl[aria-pressed="true"]:hover { color: var(--on-brand); }
.ctl--tag { border-color: transparent; background: var(--surface-alt); font-weight: 500; }
.ctl--tag:hover { background: var(--brand); color: var(--on-brand); }
.ctl--link { border: 0; padding: 0; background: none; }
.ctl--link:hover { color: var(--link); }
.ctl svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.ctl--link:hover svg { transform: translateX(4px); }
.ctl[aria-disabled="true"] { color: var(--text-muted); border-style: dashed; cursor: not-allowed; }
.ctl[aria-disabled="true"]:hover { border-color: var(--rule); color: var(--text-muted); }

/* Lista com filete, usada em portas, índice, painéis e projetos da equipe */
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brand); }
.rule-list > li { border-bottom: 1px solid var(--rule); }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.brand img { height: 66px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 14px; font-family: var(--f-display); font-weight: 600; font-stretch: 108%; font-size: var(--fs-2); color: var(--brand); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: var(--sp-2); height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { font-family: var(--f-mono); font-size: var(--fs-1); padding: 0 var(--sp-3); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-grid; place-items: center; width: var(--hit); height: var(--hit); padding: 0; margin-left: auto; background: none; border: 0; color: var(--brand); cursor: pointer; }
  .menu-toggle svg { width: 26px; height: 26px; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { order: 5; flex-basis: 100%; margin: 0 0 var(--sp-3); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; border-top: 1px solid var(--rule); }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { width: 100%; padding: 0; min-height: 52px; font-size: var(--fs-3); }
  .nav a::after { left: 0; right: auto; width: var(--sp-6); }
  .brand img { height: 52px; }
}

/* Abertura */
.hero { padding-top: var(--sp-6); }
@media (min-width: 1024px) { .hero { padding-top: var(--sp-7); } }
.hero h1 { font-size: var(--fs-display); line-height: .9; margin-top: var(--sp-5); }
.hero h1 .accent { color: var(--accent-display); display: block; }
.hero-row { display: grid; gap: var(--sp-6); margin-top: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 900px) { .hero-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sp-8); align-items: end; } }
.hero-lead { font-size: var(--fs-4); line-height: 1.55; margin: 0; }
.doors > li > a { display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); min-height: 56px; padding: var(--sp-3) 0; text-decoration: none; color: var(--brand); }
.doors .n { font-family: var(--f-mono); font-size: var(--fs-1); color: var(--link); }
.doors .t { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: var(--fs-3); line-height: 1.25; }
.doors .t small { display: block; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: var(--fs-1); color: var(--text-muted); letter-spacing: .02em; margin-top: 2px; }
.doors svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.doors a:hover { color: var(--link); }
.doors a:hover svg { transform: translateX(4px); }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: var(--surface-alt); }
.hero-photo img { width: 100%; height: min(60vh, 680px); min-height: 260px; object-fit: cover; object-position: 50% 48%; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--brand); color: var(--on-brand); font-family: var(--f-mono); font-size: var(--fs-1); letter-spacing: .04em; padding: 10px var(--sp-4); }

/* Seções */
.section { padding-block: var(--sp-8); }
@media (min-width: 768px) { .section { padding-block: var(--sp-9); } }
@media (min-width: 1024px) { .section { padding-block: var(--sp-10); } }
.section + .section { border-top: 1px solid var(--rule); }
.sec-head { display: grid; gap: var(--sp-4) var(--sp-7); margin-bottom: var(--sp-7); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); margin-bottom: var(--sp-8); } }
.sec-head .eyebrow { padding-top: var(--sp-3); border-top: 2px solid var(--accent); align-self: start; }
.sec-head h2 { font-size: var(--fs-6); }
.sec-head p { margin: var(--sp-5) 0 0; max-width: 58ch; color: var(--text-muted); }
.sec-head--wide { display: block; }
.sec-head--wide h2 { max-width: 20ch; }

/* O laboratório */
.about { display: grid; gap: var(--sp-6) var(--sp-7); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.about-eb { padding-top: var(--sp-3); border-top: 2px solid var(--accent); }
.about-lead { font-size: var(--fs-5); line-height: 1.32; color: var(--brand); margin: 0; letter-spacing: -0.005em; }
@media (max-width: 479px) { .about-lead { font-size: var(--fs-lead-sm); } }
.about-cols { display: grid; gap: var(--sp-6) var(--sp-7); margin-top: var(--sp-7); }
@media (min-width: 900px) { .about-cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tag-list { list-style: none; margin: 10px 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-display); font-weight: 600; font-stretch: 105%; color: var(--brand); }

/* Índice de temas: details nativo, sem script */
.tindex .titem > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3ch minmax(0, 1fr); grid-template-areas: "n t" ". m"; align-items: baseline; gap: var(--sp-2) var(--sp-4); min-height: 72px; padding: var(--sp-4) 0; color: var(--brand); }
.tindex .titem > summary::-webkit-details-marker { display: none; }
.tindex .n { grid-area: n; font-family: var(--f-mono); font-size: var(--fs-1); color: var(--link); }
.tindex .t { grid-area: t; font-family: var(--f-display); font-weight: 700; font-stretch: 105%; font-size: var(--fs-4); line-height: 1.15; letter-spacing: -0.01em; transition: font-stretch .4s var(--ease), color .3s var(--ease); }
.tindex .m { grid-area: m; display: flex; align-items: center; gap: var(--sp-3); }
.tindex .bar { display: block; height: 4px; width: calc(var(--w) * 120px); background: var(--accent); transition: width .4s var(--ease); }
.tindex .c { font-family: var(--f-mono); font-size: var(--fs-1); color: var(--text-muted); white-space: nowrap; }
.tindex .x { display: none; }
.tindex .titem > summary:hover .t, .tindex .titem[open] > summary .t { color: var(--link); }
.tindex .tbody { padding: 0 0 var(--sp-6) calc(3ch + var(--sp-4)); }
.tindex .people { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.tindex .people a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--hit); font-family: var(--f-display); font-weight: 600; font-size: var(--fs-2); color: var(--brand); text-decoration: none; }
.tindex .people a:hover { color: var(--link); }
.tindex .people img { width: 32px; height: 32px; object-fit: cover; filter: grayscale(1); }
@media (min-width: 900px) {
  .tindex .titem > summary { grid-template-columns: 4ch minmax(0, 1fr) 160px 12ch 24px; grid-template-areas: "n t m m x"; align-items: center; padding: var(--sp-4) 0; }
  .tindex .t { font-size: var(--fs-item); }
  .tindex .m { justify-content: space-between; }
  .tindex .x { display: block; grid-area: x; width: 20px; height: 20px; color: var(--brand); transition: transform .4s var(--ease); }
  .tindex .titem[open] .x { transform: rotate(45deg); }
  .tindex .tbody { padding-left: calc(4ch + var(--sp-4)); }
}
@media (min-width: 1400px) and (prefers-reduced-motion: no-preference) {
  .tindex .titem > summary:hover .t, .tindex .titem > summary:focus-visible .t { font-stretch: 114%; }
}

/* Números de orientação (Lattes) */
.stats { margin: 0 0 var(--sp-7); }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--brand); }
.stats dl > div { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column-reverse; gap: var(--sp-1); }
.stats dd { margin: 0; font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: var(--fs-6); line-height: 1; color: var(--brand); }
.stats dt { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-2); color: var(--text-muted); }
.stats .mono { margin: var(--sp-3) 0 0; max-width: 80ch; text-align: left; }
.page-hero .stats { margin: var(--sp-6) 0 0; }
.page-hero .stats .mono { font-size: var(--fs-1); }
.sup { margin-top: var(--sp-4); }
.sup .mono { margin: 0 0 var(--sp-1); text-align: left; text-transform: uppercase; }
.sup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); font-family: var(--f-display); font-size: var(--fs-2); color: var(--text-muted); }
.sup b { color: var(--brand); font-weight: 800; font-stretch: 112%; font-size: var(--fs-3); }

/* Equipe na página inicial */
.faces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-5); }
.faces > li { width: var(--portrait); }
.faces a { display: block; color: var(--brand); text-decoration: none; }
.faces .ph { display: block; width: var(--portrait); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-alt); }
.faces img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .7s var(--ease); }
.faces a:hover img, .faces a:focus-visible img { filter: none; transform: scale(1.04); }
.faces .nm { display: block; margin-top: var(--sp-3); font-family: var(--f-display); font-weight: 700; font-size: var(--fs-2); line-height: 1.25; }
.faces a:hover .nm { color: var(--link); }
@media (max-width: 400px) { :root { --portrait: calc((100vw - 2 * var(--gutter) - var(--sp-5)) / 2); } }
.more { margin-top: var(--sp-7); }

/* Vínculos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.logos a { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-5); height: 100%; min-height: 220px; padding: var(--sp-6) var(--sp-5); text-decoration: none; transition: background-color .4s var(--ease); }
.logos a:hover { background: var(--surface-alt); }
.logos .lg { height: 120px; display: flex; align-items: center; justify-content: center; }
.logos img { height: var(--logo-h); width: auto; max-width: 90%; object-fit: contain; }
.logos .cap { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-2); line-height: 1.35; color: var(--text-muted); }

/* Contato */
.contact { background: var(--brand); color: var(--on-brand); }
.contact-grid { display: grid; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-text { padding: var(--sp-8) var(--gutter); }
@media (min-width: 900px) { .contact-text { padding: 120px 64px 120px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); } }
.contact h2 { color: var(--on-brand); font-size: var(--fs-6); margin-bottom: var(--sp-7); }
.contact .eyebrow { color: var(--brand-mist); display: block; margin-bottom: var(--sp-2); }
.contact address { font-style: normal; font-size: var(--fs-4); line-height: 1.5; margin-bottom: var(--sp-6); }
.contact a { color: var(--on-brand); display: inline-flex; align-items: center; min-height: var(--hit); }
.contact a:hover { color: var(--amber); }
.contact .mail { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: var(--fs-5); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact figure { margin: 0; position: relative; min-height: 320px; }
.contact figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.site-footer { background: var(--brand-deep); color: var(--brand-mist); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: 28px; }
.site-footer .footer-logo { display: inline-flex; }
.site-footer img { height: 64px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); font-family: var(--f-mono); font-size: var(--fs-1); }
.site-footer a { color: var(--on-brand); display: inline-flex; align-items: center; min-height: var(--hit); }
.site-footer a:hover { color: var(--amber); }

/* Páginas internas */
.page-hero { padding-block: var(--sp-7) var(--sp-6); border-bottom: 1px solid var(--rule); }
@media (min-width: 1024px) { .page-hero { padding-block: var(--sp-9) var(--sp-7); } }
.page-hero h1 { font-size: var(--fs-page); line-height: .94; margin-top: 18px; }
.page-hero p { margin: 28px 0 0; max-width: 60ch; font-size: var(--fs-4); }
.page-hero .stats p { font-size: var(--fs-1); margin-top: var(--sp-3); }
.page-hero .source { margin-top: var(--sp-4); font-size: var(--fs-1); color: var(--text-muted); }

/* Projetos: painel de filtros + barra de resultado
   O painel é um quadro de consulta fixo no fluxo da página: dois índices numerados,
   como o índice de temas da página inicial. A barra fina abaixo dele é a única parte
   que acompanha a rolagem: diz quantos projetos aparecem e quais filtros estão ligados. */
.finder { background: var(--surface-alt); border-top: 1px solid var(--rule); }
.finder .wrap { padding-block: var(--sp-5); }
@media (min-width: 900px) { .finder .wrap { padding-block: var(--sp-7) var(--sp-7); } }
.filters > summary { list-style: none; display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: var(--fs-3); color: var(--brand); }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary .fs-s { font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: var(--fs-1); color: var(--text-muted); }
.filters > summary svg { width: 20px; height: 20px; margin-left: auto; transition: transform .4s var(--ease); }
.filters[open] > summary svg { transform: rotate(45deg); }
@media (min-width: 900px) { .filters > summary { display: none; } }
.fgrid { display: grid; gap: var(--sp-6) var(--sp-7); padding-top: var(--sp-3); }
@media (min-width: 900px) { .fgrid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); padding-top: 0; } }
.fh { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-1); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--sp-3); }
.opts { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--brand); }
@media (min-width: 700px) { .fgroup--tema .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: var(--sp-5); } }
.opts > li { display: flex; }
.opt { flex: 1; width: 100%; display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-3); margin: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--brand); font: 600 var(--fs-2)/1.3 var(--f-display); text-align: left; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.opt .n, .opt .k { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-1); }
.opt .n { color: var(--link); }
.opt .k { color: var(--text-muted); min-width: 2ch; text-align: right; }
.opt:hover { background: rgba(0, 49, 93, .05); }
.opt[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.opt[aria-pressed="true"] .n { color: var(--amber); }
.opt[aria-pressed="true"] .k { color: var(--on-brand); }
.opt[aria-disabled="true"] { color: var(--faint); cursor: not-allowed; }
.opt[aria-disabled="true"]:hover { background: transparent; }
.opt[aria-disabled="true"] .n, .opt[aria-disabled="true"] .k { color: var(--faint); }
.opt[aria-pressed="true"][aria-disabled="true"], .opt[aria-pressed="true"][aria-disabled="true"]:hover { background: var(--brand); color: var(--on-brand); cursor: default; }
.opt[aria-pressed="true"][aria-disabled="true"] .k { color: var(--on-brand); }
.opt[aria-pressed="true"][aria-disabled="true"] .n { color: var(--amber); }

.resultbar { background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.js .resultbar { position: sticky; top: var(--header-h); z-index: 20; }
@supports (backdrop-filter: blur(8px)) { .resultbar { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.resultbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); min-height: 60px; padding-block: var(--sp-2); }
.count { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: var(--fs-3); color: var(--brand); white-space: nowrap; }
.active-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.atag { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); padding: 0 var(--sp-2) 0 var(--sp-3); border: 1px solid var(--brand); background: var(--surface); color: var(--brand); font: 600 var(--fs-2)/1.2 var(--f-display); cursor: pointer; text-align: left; }
.atag small { font: 400 var(--fs-1)/1 var(--f-mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.atag svg { width: 16px; height: 16px; flex: none; }
.atag:hover { background: var(--brand); color: var(--on-brand); }
.atag:hover small { color: var(--brand-mist); }
.to-filters { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); font-family: var(--f-mono); font-size: var(--fs-1); color: var(--link); }
.to-filters svg { width: 14px; height: 14px; }
.no-js .finder, .no-js .resultbar { display: none; }
.page-hero .eyebrow { font-size: var(--fs-1); margin-top: 0; }

.plist { list-style: none; margin: var(--sp-4) 0 0; padding: 0; border-top: 1px solid var(--brand); }
.project { border-bottom: 1px solid var(--rule); padding: var(--sp-6) 0; display: grid; gap: var(--sp-3) var(--sp-6); scroll-margin-top: calc(var(--header-h) + 140px); }
@media (min-width: 900px) { .project { grid-template-columns: 10ch minmax(0, 1fr); padding: 44px 0; } }
.project[hidden] { display: none; }
.project .yr { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: var(--fs-num); color: var(--link); line-height: 1; padding-top: var(--sp-1); }
.project .yr small { display: block; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: var(--fs-1); color: var(--text-muted); margin-bottom: 6px; letter-spacing: .04em; }
.project h2 { font-size: var(--fs-item); font-stretch: 104%; line-height: 1.2; }
.meta { display: grid; gap: var(--sp-2) var(--sp-6); margin: var(--sp-5) 0 0; font-size: var(--fs-2); }
@media (min-width: 700px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meta dt { font-family: var(--f-mono); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.meta dd { margin: 2px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.desc { margin-top: 18px; }
.desc summary { display: inline-flex; align-items: center; gap: 10px; min-height: var(--hit); cursor: pointer; font-family: var(--f-display); font-weight: 600; font-stretch: 105%; color: var(--brand); list-style: none; }
.desc summary::-webkit-details-marker { display: none; }
.desc summary svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.desc[open] summary svg { transform: rotate(45deg); }
.desc summary:hover { color: var(--link); }
.desc .body { max-width: 70ch; padding-top: var(--sp-2); }
.empty { padding: var(--sp-7) 0; color: var(--text-muted); }
.empty .acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

/* Índice por tema, só sem JavaScript (destino dos links do Início) */
.theme-fallback { padding-block: var(--sp-6); }
.theme-fallback h2 { font-size: var(--fs-4); margin: var(--sp-6) 0 var(--sp-2); scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
.theme-fallback ul { margin: 0; padding-left: 1.2em; }

/* Equipe */
.people-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brand); }
.person { display: grid; gap: var(--sp-5) var(--sp-6); padding: var(--sp-6) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
@media (min-width: 760px) { .person { grid-template-columns: var(--portrait) minmax(0, 1fr); } }
@media (min-width: 1100px) { .person { grid-template-columns: var(--portrait) minmax(0, 5fr) minmax(0, 6fr); } }
.person .ph { width: var(--portrait); aspect-ratio: 1; background: var(--surface-alt); overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.person h2 { font-size: var(--fs-5); font-stretch: 112%; }
.person .deg { margin: 10px 0 14px; color: var(--text-muted); }
.person .links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); font-family: var(--f-mono); font-size: var(--fs-1); }
.person .links a { display: inline-flex; align-items: center; min-height: var(--hit); }
.person .pj h3 { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--sp-2); }
.person .pj ul { border-top-color: var(--rule); }
.person .pj a { display: grid; grid-template-columns: 5ch minmax(0, 1fr); gap: 10px; padding: 10px 0; color: var(--text); text-decoration: none; line-height: 1.35; font-size: var(--fs-2); }
.person .pj a .y { font-family: var(--f-mono); font-size: var(--fs-1); color: var(--link); padding-top: 2px; }
.person .pj a:hover { color: var(--link); }
.talk { margin-top: var(--sp-8); padding: var(--sp-6); background: var(--surface-alt); display: grid; gap: var(--sp-3) var(--sp-7); }
@media (min-width: 900px) { .talk { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; } }
.talk h2 { font-size: var(--fs-5); }
.talk p { margin: 0; }

/* Movimento: só com JS e sem preferência por movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
  .motion .reveal.is-in { opacity: 1; transform: none; }
  .motion .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
  .motion .hero-photo img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
  .motion .hero-photo.is-in img { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
@keyframes rise { to { opacity: 1; transform: none; } }

img.is-broken { background: var(--surface-alt); min-height: var(--sp-7); font-family: var(--f-mono); font-size: var(--fs-1); color: var(--text-muted); }

/* Texto corrido justificado em todas as larguras (decisão do cliente), com hífens embutidos pelo gerador */
main p, .desc .body p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main p.eyebrow, main p.mono, main p.count, main p.yr, main p.more, .empty p, .contact p, .talk p, .ctl, .stats p, .sup p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

@media print {
  .site-header, .finder, .resultbar, .hero-photo, .contact figure, .menu-toggle { display: none !important; }
}

/* ===== Alinhamento entre colunas =====
   Regra única: em colunas lado a lado, o topo das maiúsculas da primeira linha
   de cada coluna cai na mesma altura. text-box corta a meia-entrelinha de cima,
   de modo que o topo da caixa passa a ser o topo da maiúscula. */
.eyebrow, .hero-lead, .about-lead, .sec-head h2, .talk h2, .talk p,
.doors .t, .doors .n, .person h2, .person .pj h3 { text-box: trim-start cap alphabetic; }
/* coluna ao lado de um rótulo com fio laranja: mesmo recuo do rótulo (fio de 2px + espaço) */
@media (min-width: 900px) { .sec-head > :not(.eyebrow), .about > :not(:first-child) { padding-top: calc(var(--sp-3) + 2px); } }
.about-eb { text-box: trim-start cap alphabetic; }
/* abertura: as duas colunas começam no mesmo fio */
@media (min-width: 900px) {
  .hero-row { align-items: start; }
  .hero-lead { border-top: 1px solid var(--brand); padding-top: var(--sp-4); }
}
.doors > li > a { align-items: start; padding: var(--sp-4) 0; min-height: 56px; }
.doors .n { padding-top: 2px; }
.doors svg { margin-top: -2px; }
/* índice de temas: número, nome e contagem na mesma linha de base */
/* índice de temas: tudo centrado na linha, como antes */
.talk { align-items: start !important; }
.about-cols > * > :first-child, .about-cols > :first-child { text-box: trim-start cap alphabetic; margin-top: 0; }
.sec-head .eyebrow, .about-eb { margin-top: 0; }


/* ===== Revisão geral (9 out.) ===== */
/* abertura: o texto ocupa a coluna inteira, o fio vai de borda a borda e as palavras respiram melhor no justificado */
@media (min-width: 900px) { .hero-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); } .hero-lead { padding-right: var(--sp-5); } }
/* títulos grandes: compensa o recuo óptico da primeira letra */
.hero h1, .page-hero h1 { margin-left: -.04em; }
/* legenda da foto alinhada à margem do texto */
@media (min-width: 900px) { .hero-photo figcaption { left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); } }
.hero-photo img { filter: saturate(.86) contrast(1.02); }
/* cabeçalhos de seção: todos no mesmo sistema 3/9 */
.sec-head h2 { max-width: 24ch; }
.sec-head { margin-bottom: var(--sp-7); }
/* índice de temas: fundo ao passar o mouse e no tema aberto */
.tindex .titem > summary { transition: background-color .3s var(--ease); }
@media (hover: hover) { .tindex .titem > summary:hover { background: linear-gradient(90deg, rgba(229, 108, 32, .07), rgba(229, 108, 32, 0) 70%); } }
.tindex .titem[open] { background: var(--surface-alt); }
.tindex .titem[open] .tbody { padding-inline-end: var(--sp-3); }
/* equipe na página inicial: grade de sete, sem órfão */
.faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
.faces > li, .faces .ph { width: auto; }
@media (min-width: 600px) { .faces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .faces { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); } }
.faces .ph { position: relative; }
.faces .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.faces a:hover .ph::after, .faces a:focus-visible .ph::after { transform: scaleX(1); }
/* números de orientação: o número fica no topo mesmo quando o rótulo quebra */
.stats dl > div { justify-content: flex-end; }
.stats dt { hyphens: manual; }
.stats .mono, .page-hero .stats p { font-family: var(--f-text); font-size: .8125rem; letter-spacing: 0; max-width: 64ch; line-height: 1.5; }
/* vínculos: legendas começam na mesma altura */
.logos a { justify-content: flex-start; min-height: 0; }
.logos .cap { color: var(--text); }
/* projetos: título e metadados com a mesma borda direita, etiquetas mais leves */
@media (min-width: 900px) { .project > div { max-width: 66rem; } .project { padding: 44px 0 32px; } }
.project .ctl--tag { min-height: 36px; padding: 0 var(--sp-3); background: transparent; border: 1px solid var(--rule); font-size: var(--fs-1); font-family: var(--f-display); }
.project .ctl--tag:hover, .project .ctl--tag:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* equipe: entre 760 e 1099 px a lista de projetos fica na coluna do texto, não na da foto */
@media (min-width: 760px) and (max-width: 1099px) { .person .ph { grid-row: span 2; } .person .pj { grid-column: 2; } }
.person h2 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); font-stretch: 106%; text-wrap: balance; }
.nw { white-space: nowrap; }
main .person .deg { text-align: left; hyphens: manual; text-wrap: pretty; }
/* filtro: temas em duas colunas largas, docentes numa faixa abaixo, tudo com a mesma largura */
.fgrid { grid-template-columns: minmax(0, 1fr) !important; gap: var(--sp-6); }
@media (min-width: 700px) { .fgroup--tema .opts { column-gap: var(--sp-7); } }
.fgroup--doc .opt { grid-template-columns: minmax(0, 1fr) auto; }
.fgroup--doc .opt .n { display: none; }
@media (min-width: 700px) { .fgroup--doc .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-3); } }
@media (min-width: 1100px) { .fgroup--doc .opts { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* celular: textos justificados com medida um pouco maior, para abrir menos espaços */
@media (max-width: 600px) {
  .desc .body p { font-size: .97rem; line-height: 1.55; }
  main p { hyphenate-limit-chars: 6 3 3; }
}
.sec-head h2 { max-width: none; text-wrap: balance; }

@media (max-width: 479px) { .stats dl { grid-template-columns: .8fr .9fr 1.3fr; } }
.project .ctl--tag { font-size: .8125rem; }
@media (max-width: 479px) { .stats dl > div { padding-right: var(--sp-2); } .stats dt { font-size: .8125rem; } }

/* ===== P&D ===== */
.section--pd { background: var(--surface-alt); }
.pd-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 900px) { .pd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8); } }
.pd-ex { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brand); }
.pd-ex li { border-bottom: 1px solid var(--rule); }
.pd-ex a { display: grid; grid-template-columns: 5ch minmax(0, 1fr) auto; align-items: start; gap: var(--sp-3); padding: var(--sp-4) 0; min-height: var(--hit); color: var(--brand); text-decoration: none; font: 600 var(--fs-3)/1.35 var(--f-display); }
.pd-ex .pd-y { font: 400 var(--fs-1)/1.9 var(--f-mono); color: var(--link); }
.pd-ex svg { width: 18px; height: 18px; margin-top: 2px; transition: transform .4s var(--ease); }
.pd-ex a:hover { color: var(--link); }
.pd-ex a:hover svg { transform: translateX(4px); }
.faqs { border-top: 1px solid var(--brand); }
.faq { border-bottom: 1px solid var(--rule); }
.faq > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: var(--sp-4); align-items: center; min-height: 56px; padding: var(--sp-3) 0; cursor: pointer; color: var(--brand); }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary h3 { margin: 0; font: 700 var(--fs-3)/1.3 var(--f-display); font-stretch: 104%; }
.faq > summary svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.faq[open] > summary svg { transform: rotate(45deg); }
.faq > summary:hover h3 { color: var(--link); }
.faq p { margin: 0 0 var(--sp-5); max-width: 68ch; }
.contact .social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--sp-6); }
.contact .social a { gap: var(--sp-2); font-family: var(--f-display); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.contact .social svg { width: 16px; height: 16px; }
/* ===== Canais oficiais ===== */
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brand); }
.channels li { border-bottom: 1px solid var(--rule); }
.channels a { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2) var(--sp-6); padding: var(--sp-5) 0; color: var(--brand); text-decoration: none; }
@media (min-width: 900px) { .channels a { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); align-items: start; } }
.channels .ch-k { font: 800 var(--fs-5)/1 var(--f-display); font-stretch: 112%; text-box: trim-start cap alphabetic; }
.channels .ch-t { font: 700 var(--fs-3)/1.3 var(--f-display); text-box: trim-start cap alphabetic; }
.channels .ch-t small { display: block; margin-top: var(--sp-2); font: 400 var(--fs-3)/1.55 var(--f-text); color: var(--text-muted); }
.channels .ch-u { display: inline-flex; align-items: center; gap: var(--sp-2); justify-self: start; font: 400 var(--fs-1)/1.4 var(--f-mono); color: var(--link); text-box: trim-start cap alphabetic; }
@media (min-width: 900px) { .channels .ch-u { justify-self: end; } }
.channels .ch-u svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.channels a:hover .ch-k { color: var(--accent); }
.channels a:hover .ch-u svg { transform: translateX(4px); }
/* ===== Parcerias: camadas de analytics ===== */
.page-hero .more { margin-top: var(--sp-6); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--brand); }
@media (min-width: 900px) { .layers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layers > li { padding: var(--sp-5) var(--sp-5) var(--sp-6) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .layers > li { border-bottom: 0; padding: var(--sp-5) var(--sp-6) var(--sp-5) 0; } .layers > li + li { border-left: 1px solid var(--rule); padding-left: var(--sp-5); } }
.layers .ly-n { margin: 0 0 var(--sp-4); font: 400 var(--fs-1)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--link); text-box: trim-start cap alphabetic; }
.layers h3 { margin: 0 0 var(--sp-3); font: 800 var(--fs-5)/1.15 var(--f-display); font-stretch: 108%; color: var(--brand); }
.layers p:last-child { margin: 0; }
.twin { margin-top: var(--sp-7); background: var(--brand); color: var(--on-brand); padding: var(--sp-6); display: grid; gap: var(--sp-3) var(--sp-7); }
@media (min-width: 900px) { .twin { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); padding: var(--sp-7) var(--sp-6); } }
.twin .eyebrow { color: var(--amber); margin: 0; }
.twin h3 { margin: 0 0 var(--sp-3); font: 800 var(--fs-5)/1.15 var(--f-display); font-stretch: 108%; color: var(--on-brand); text-box: trim-start cap alphabetic; }
.twin p:last-child { margin: 0; color: var(--brand-mist); max-width: 68ch; }
.section--pd .sec-head { margin-bottom: 0; }
#aplicacoes .fh { margin-top: 0; }
/* índice de temas: título de chamada + nome técnico */
.tindex .t .tt { display: block; margin-top: 6px; font: 500 var(--fs-2)/1.3 var(--f-display); font-stretch: 100%; letter-spacing: 0; color: var(--text-muted); transition: none; }
.tindex .titem > summary:hover .tt, .tindex .titem[open] .tt { color: var(--link); }

/* ===== Para empresas: faixas azuis ===== */
.band { background: var(--brand); color: var(--on-brand); padding-block: var(--sp-8); }
@media (min-width: 1024px) { .band { padding-block: var(--sp-9); } }
.band + .band { border-top: 1px solid rgba(255, 255, 255, .14); }
.band .eyebrow { color: var(--amber); }
.band h2, .band h3 { color: var(--on-brand); }
.band p { color: var(--brand-mist); }
.band-head { display: grid; gap: var(--sp-4) var(--sp-7); margin-bottom: var(--sp-7); }
@media (min-width: 900px) { .band-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } .band-head > div { padding-top: calc(var(--sp-3) + 2px); } }
.band-head .eyebrow { margin: 0; padding-top: var(--sp-3); border-top: 2px solid var(--amber); align-self: start; text-box: trim-start cap alphabetic; }
.band-head h2 { font-size: var(--fs-6); text-wrap: balance; text-box: trim-start cap alphabetic; margin: 0; }
.band-head p { margin: var(--sp-5) 0 0; max-width: 62ch; }
/* fluxo do gêmeo digital */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); counter-reset: f; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.flow li { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
@media (min-width: 760px) { .flow li + li { border-left: 0; } .flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--brand); border-top: 1px solid var(--amber); border-right: 1px solid var(--amber); transform: rotate(45deg); z-index: 1; } }
.flow li:last-child { background: var(--link); border-color: var(--link); }
.flow .fl-n { font: 400 var(--fs-1)/1 var(--f-mono); color: var(--amber); letter-spacing: .06em; }
.flow li:last-child .fl-n { color: var(--on-brand); }
.flow .fl-t { font: 700 var(--fs-4)/1.25 var(--f-display); font-stretch: 106%; color: var(--on-brand); }
.flow-loop { display: inline-flex; align-items: center; gap: var(--sp-2); margin: var(--sp-5) 0 0; font: 400 var(--fs-2)/1.4 var(--f-mono); color: var(--amber) !important; }
.flow-loop svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 760px) { .flow-loop { display: flex; justify-content: flex-end; } }
/* etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); border-top: 1px solid rgba(255, 255, 255, .28); padding-top: var(--sp-6); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { gap: var(--sp-7) var(--sp-8); } .steps li { display: grid; grid-template-columns: calc(var(--fs-6) * 1.7) minmax(0, 1fr); column-gap: var(--sp-5); align-items: start; } .steps .st-n { grid-row: span 2; margin: 0; text-box: trim-both cap alphabetic; } .steps h3 { text-box: trim-start cap alphabetic; } }
.steps .st-n { display: block; font: 800 var(--fs-6)/1 var(--f-display); font-stretch: 118%; color: var(--amber); margin-bottom: var(--sp-4); }
.steps h3 { margin: 0 0 var(--sp-2); font: 700 var(--fs-4)/1.25 var(--f-display); }
.steps p { margin: 0; }
/* entregas */
.dels { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--brand); }
@media (min-width: 760px) { .dels { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); } }
.dels li { padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule); }
.dels h3 { margin: 0 0 var(--sp-2); font: 700 var(--fs-4)/1.25 var(--f-display); color: var(--brand); }
.dels h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: var(--sp-3); background: var(--accent); vertical-align: .1em; }
.dels p { margin: 0; max-width: 60ch; }
/* números */
.nums { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.nums dd { margin: 0; font: 800 clamp(2.5rem, 5vw, 4rem)/1 var(--f-display); font-stretch: 118%; color: var(--on-brand); }
.nums dt { font: 600 var(--fs-2)/1.35 var(--f-display); color: var(--brand-mist); max-width: 22ch; }
/* chamada final */
.band--cta { background: var(--link); }
.band--cta .cta { display: grid; gap: var(--sp-5) var(--sp-7); align-items: end; }
@media (min-width: 900px) { .band--cta .cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.band--cta h2 { font-size: var(--fs-6); margin: 0 0 var(--sp-4); }
.band--cta p { color: var(--on-brand); margin: 0; max-width: 56ch; }
.cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
@media (min-width: 900px) { .cta-act { align-items: flex-end; } }
.cta-act .mail { font: 700 var(--fs-5)/1.2 var(--f-display); font-stretch: 112%; color: var(--on-brand); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ctl--amber { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ctl--amber:hover { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
main .band p, main .band--cta p { text-align: left; hyphens: manual; }
main .band-head p, main .steps p { text-align: justify; hyphens: auto; }

/* opção sem resultado na combinação atual: esmaecida, mas clicável (limpa o outro filtro) */
.opt.is-zero { color: var(--faint); }
.opt.is-zero .n, .opt.is-zero .k { color: var(--faint); }
.opt.is-zero:hover { color: var(--brand); }

/* filtro de temas: título de chamada + nome técnico */
.opt .lt { display: block; margin-top: 2px; font: 400 var(--fs-1)/1.3 var(--f-display); color: var(--text-muted); }
.opt[aria-pressed="true"] .lt { color: var(--brand-mist); }
.opt.is-zero .lt { color: var(--faint); }
/* descrição do projeto na largura total da coluna, alinhada ao título e aos metadados */
.desc .body { max-width: none; }
/* ícones oficiais dos canais (Bootstrap Icons, MIT) */
.ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.channels .ch-k { display: inline-flex; align-items: center; gap: var(--sp-3); }
.channels .ch-k .ico { width: .9em; height: .9em; }
.channels .ico--youtube { color: #FF0000; }
.channels .ico--linkedin { color: #0A66C2; }
.contact .social a .ico { width: 20px; height: 20px; }
.site-footer .soc { gap: 6px; }
.site-footer .soc .ico { width: 14px; height: 14px; }

/* ===== Para Empresas v2 ===== */
/* camadas com o que é feito em cada uma */
.ly-l { list-style: none; margin: var(--sp-4) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.ly-l li { position: relative; padding: var(--sp-2) 0 var(--sp-2) var(--sp-5); border-bottom: 1px solid var(--rule); font: 500 var(--fs-2)/1.35 var(--f-display); color: var(--brand); }
.ly-l li::before { content: ""; position: absolute; left: 0; top: calc(var(--sp-2) + .45em); width: 8px; height: 8px; background: var(--accent); }
@media (min-width: 900px) { .layers > li { border-bottom: 0; } }
/* portfólio em faixa azul */
.port { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .18); }
@media (min-width: 700px) { .port { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .port { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf { background: var(--brand); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); min-height: 200px; transition: background-color .3s var(--ease); }
.pf:hover { background: #0A3E6E; }
.pf .pf-n { font: 400 var(--fs-1)/1 var(--f-mono); color: var(--amber); letter-spacing: .06em; margin-bottom: var(--sp-2); }
.pf h3 { margin: 0; font: 700 var(--fs-4)/1.25 var(--f-display); font-stretch: 104%; color: var(--on-brand); }
.pf p { margin: 0; font-size: var(--fs-2); line-height: 1.5; color: var(--brand-mist); text-align: left !important; hyphens: manual; }
.pf--twin { background: var(--link); }
.pf--twin:hover { background: #9A4508; }
.pf--twin .pf-n { color: var(--on-brand); }
.pf--twin p { color: var(--on-brand); }
.pf-more { margin-top: auto; padding-top: var(--sp-3); display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); font: 600 var(--fs-2)/1.2 var(--f-display); color: var(--on-brand); }
.pf-more svg { width: 16px; height: 16px; }
/* números em fundo claro */
.section--nums .nums { border-top-color: var(--brand); }
.section--nums .nums > div { border-bottom-color: var(--rule); }
.section--nums .nums dd { color: var(--brand); }
.section--nums .nums dt { color: var(--text-muted); }
/* fluxo: rótulo da camada + papel */
.flow .fl-n { text-transform: uppercase; }
/* chamada final: texto logo abaixo da pergunta, numa linha larga */
.band--cta .cta { display: block; }
.band--cta h2 { margin: 0 0 var(--sp-3); }
.band--cta .cta-p { max-width: 96ch; margin: 0; }
.cta-act { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: var(--sp-4) var(--sp-6) !important; margin-top: var(--sp-6) !important; }
.band--cta .cta-p { max-width: none; }
.band--cta .cta-act { max-width: none; }
.pf p { text-align: justify !important; hyphens: auto; -webkit-hyphens: auto; }
/* coluna do projeto com largura comum: título, metadados, etiquetas e descrição terminam na mesma margem */
/* título justificado: as linhas cheias terminam na mesma margem da descrição, sem depender de JavaScript */
@media (min-width: 900px) { .project h2 { text-align: justify; text-align-last: left; hyphens: manual; } }

/* ===== Credenciamento ANP ===== */
.anp-sec { padding-block: var(--sp-7) 0; }
.anp { display: grid; gap: var(--sp-6) var(--sp-8); padding: var(--sp-6); border: 1px solid var(--brand); border-top: 4px solid var(--accent); background: var(--surface); }
@media (min-width: 900px) { .anp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: var(--sp-7); } }
.anp h2 { margin: var(--sp-3) 0 var(--sp-4); font-size: var(--fs-5); font-stretch: 108%; color: var(--brand); text-wrap: balance; }
.anp-main > p:not(.eyebrow):not(.anp-ref) { margin: 0; }
.anp-ref { margin: var(--sp-5) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--rule); font: 400 var(--fs-1)/1.55 var(--f-mono); color: var(--text-muted); text-align: left !important; hyphens: manual; }
.anp-lines .fh { margin-top: 0; }
.anp-lines ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brand); }
.anp-lines li { position: relative; padding: var(--sp-2) 0 var(--sp-2) var(--sp-5); border-bottom: 1px solid var(--rule); font: 500 var(--fs-2)/1.35 var(--f-display); color: var(--brand); }
.anp-lines li::before { content: ""; position: absolute; left: 0; top: calc(var(--sp-2) + .45em); width: 8px; height: 8px; background: var(--accent); }
/* cartão ANP em Vínculos (texto, sem logo) */
@media (min-width: 900px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.anp-mark { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 2px solid var(--brand); font: 800 2.25rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .04em; color: var(--brand); }

/* ===== Para Empresas: nova ordem ===== */
.section--alt, .anp-sec--alt { background: var(--surface-alt); }
.anp-sec--alt { padding-block: var(--sp-8); }
@media (min-width: 1024px) { .anp-sec--alt { padding-block: var(--sp-9); } }
.anp-badge { margin: var(--sp-5) 0 0 !important; }
.anp-badge a { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--hit); font: 600 var(--fs-2)/1.3 var(--f-display); color: var(--brand); text-decoration: none; }
.anp-badge a:hover { color: var(--link); }
.anp-mark--sm { padding: 4px 8px; font-size: .95rem; border-width: 2px; }
/* gêmeo digital logo depois do portfólio, na mesma faixa */
.syn { margin-top: var(--sp-8); padding-top: var(--sp-7); border-top: 1px solid rgba(255, 255, 255, .28); }
/* aplicações em duas colunas */
@media (min-width: 900px) { .pd-ex--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); } .pd-ex--grid li { border-bottom: 1px solid var(--rule); } }
#perguntas .faqs { margin-top: var(--sp-6); }
/* listas com marcador: sem linhas entre os itens, o marcador já separa */
.ly-l, .anp-lines ul { border-top: 0; }
.ly-l li, .anp-lines li { border-bottom: 0; padding-block: 5px; }
.ly-l li::before, .anp-lines li::before { top: calc(5px + .45em); }
.ly-l { margin-top: var(--sp-4); }
/* texto de apoio com a mesma largura do título da seção
   (o bloco toma a largura do título; o texto não alarga o bloco). Títulos curtos garantem uma largura mínima de leitura. */
@media (min-width: 900px) {
  .sec-head > div:not(.free), .band-head > div { width: max-content; min-width: min(100%, 32rem); max-width: 100%; }
  .sec-head > div:not(.free) > :not(h2), .band-head > div > :not(h2) { width: 0; min-width: 100%; max-width: none; }
}
/* chamada "Para Empresas" da inicial: título numa linha no desktop, para o texto acompanhar a largura dele */
@media (min-width: 900px) { #pd .sec-head h2 { font-size: clamp(1.7rem, 2.55vw, 2.4rem); } }

/* ===== Sistema tipográfico =====
   Archivo: títulos, nomes, links, botões e rótulos de itens (600 para ação e item, 500 para apoio).
   Source Serif: texto corrido e todas as notas de procedência.
   IBM Plex Mono: só rótulos de seção em maiúsculas e dados (numeração, anos, contagens, endereços web). */
main p.note, .anp .note { margin: var(--sp-3) 0 0; padding-top: 0; border-top: 0; max-width: 72ch; font: 400 .8125rem/1.55 var(--f-text); letter-spacing: 0; text-transform: none; color: var(--text-muted); text-align: left !important; hyphens: manual; }
.anp .note { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--rule); }
.page-hero .note { margin-top: var(--sp-4); }
/* links e ações sempre em Archivo */
.person .links { font-family: var(--f-display); font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; }
.site-footer ul { font-family: var(--f-display); font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; }
.to-filters, .lang { font-family: var(--f-display); font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; }
.flow-loop { font: 600 var(--fs-2)/1.4 var(--f-display) !important; }
.doors .t small { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-2); letter-spacing: 0; }
/* texto de apoio em Archivo: um peso só */
.sup ul, .sup li { font-weight: 500; }
.ctl--tag, .project .ctl--tag { font-size: var(--fs-2); font-weight: 500; }
/* hierarquia: nome do docente no mesmo nível dos títulos de projeto */
.person h2 { font-size: var(--fs-item); }
/* números da equipe: mesmo tamanho nas páginas Equipe, inicial e Para Empresas */
.stats dd, .nums dd { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; font-stretch: 118%; }
main .page-hero p.note, main .page-hero .stats p.note { font-size: .8125rem; line-height: 1.55; font-family: var(--f-text); }

/* Justificação uniforme do texto corrido (notas, legendas, descrições e listas de projetos) */
main p.note, .anp .note, .anp-ref, .pf p, main .band p, main .band--cta p, .cta-p,
.contact-text p, main p:not(.eyebrow):not(.mono):not(.count):not(.yr):not(.more),
.ch-t small, .anp li, .dels li, .port li, .steps li {
  text-align: justify !important; text-align-last: left; hyphens: auto; -webkit-hyphens: auto;
}
/* Títulos em lista seguem a regra dos títulos de projeto: justificados só em telas largas */
@media (min-width: 900px) { .pd-t, .pj li a > span:not(.y) { text-align: justify; text-align-last: left; hyphens: manual; } }
