/* ==========================================================================
   REMASC – REMA Soluções Científicas
   Folha de estilos principal

   Linguagem visual
   - Cores derivadas do logotipo, com papel semântico fixo:
       azul  (#0873BA) → REMASC, dados, ações
       âmbar (#F9B316) → calor (isotermas, fluxo de calor); só em gráficos
       verde (#0A785A) → processos biológicos e informação documentada
   - Uma família tipográfica (Archivo, eixo de largura): títulos semicondensados,
     texto em largura normal.
   - Alinhamento à esquerda; títulos de seção numa coluna lateral, como num
     relatório técnico.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #142430;
  --ink-2: #3e5260;
  --ink-3: #5f707b;
  --paper: #ffffff;
  --silt: #eef2f1;
  --line: #d3dcdc;
  --blue: #0873ba;
  --blue-hover: #065d97;
  --blue-deep: #0b3049;
  --amber: #f9b316;
  --amber-text: #8a5a00;
  --green: #0a785a;
  --green-soft: #e3f1ec;
  --blue-soft: #e4f0f8;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;

  /* Escala tipográfica (razão ~1,25) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: clamp(1.75rem, 3.2vw, 2.375rem);
  --t-2xl: clamp(2.25rem, 5vw, 3.5rem);
  --t-hero: clamp(2.6rem, 6.6vw, 5.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-stretch: 82%;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); line-height: 1.25; font-weight: 650; }
h4 { font-size: var(--t-base); font-weight: 650; font-stretch: 90%; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 650; }
abbr[title] { text-decoration: none; }
sub { font-size: 0.72em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --------------------------------------------------------------------------
   Cabeçalho e navegação
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand img { width: 150px; height: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 0;
}
.site-nav a.nav-cta {
  margin-left: 0.5rem;
  background: var(--blue);
  color: #fff;
}
.site-nav a.nav-cta:hover { background: var(--blue-hover); color: #fff; }
.site-nav a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 550;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(20, 36, 48, 0.35);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav a { padding: 0.85rem 0.25rem; font-size: 1.1rem; border-bottom: 1px solid var(--silt); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.85rem; }
  .site-nav a.nav-cta { margin: 0.75rem 0 0; text-align: center; border-bottom: 0; }
  /* Sem JavaScript, o menu aparece abaixo do logotipo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { width: 100%; }
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-soft); color: var(--blue-deep); text-decoration: none; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Hero da página inicial
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-text { max-width: 54rem; }
.hero h1 {
  font-size: var(--t-hero);
  font-stretch: 74%;
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
}
.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44rem;
}
.hero-lead strong { color: var(--ink); }

.hero-figure { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.hero-figure .figure-frame {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* Prolonga as camadas do esquema (superfície em 25,5% e nível d'água em 63,8% da altura) */
  background: linear-gradient(#fff 0 25.3%, #8c8273 25.3% 25.7%, #e7e1d5 25.7% 63.7%, #d4e4ed 63.7%);
}
.hero-figure svg { width: 100%; max-width: 1240px; margin-inline: auto; }
.figure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.figure-legend li { display: flex; gap: 0.5rem; align-items: baseline; }
.key {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.45rem; height: 1.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}
.figure-note { font-size: var(--t-sm); color: var(--ink-3); margin-top: 0.6rem; }

/* Rótulos completos dentro do SVG só aparecem em telas largas */
.svg-label { font-family: var(--font); font-size: 15px; fill: var(--ink); font-stretch: 90%; }
.svg-label-sub { font-size: 13px; fill: var(--ink-2); }
.svg-label, .svg-label-sub { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.svg-zone { font-family: var(--font); font-size: 13px; fill: var(--ink-3); font-weight: 600; }
.svg-key circle { fill: var(--ink); }
.svg-key text { font-family: var(--font); font-size: 13px; font-weight: 700; fill: #fff; }
@media (max-width: 760px) {
  .svg-label, .svg-label-sub, .svg-leader, .svg-zone { display: none; }
  .svg-key { transform-box: fill-box; transform-origin: center; transform: scale(1.35); }
  /* Em telas estreitas, amplia o trecho central do esquema (x ≈ 300 a 1000) */
  .hero-figure .figure-frame { overflow: hidden; }
  .hero-figure svg { width: 170%; max-width: none; margin-left: -42.5%; }
}
@media (min-width: 761px) {
  .figure-legend.is-mobile-only { display: none; }
}

/* Animação de entrada do esquema (única animação automática do site) */
@media (prefers-reduced-motion: no-preference) {
  .anim-iso {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-iso 1.8s cubic-bezier(.3,.6,.2,1) forwards;
  }
  .anim-iso:nth-of-type(2) { animation-delay: 0.25s; }
  .anim-iso:nth-of-type(3) { animation-delay: 0.5s; }
  .anim-iso:nth-of-type(4) { animation-delay: 0.75s; }
  .anim-heat { opacity: 0; animation: rise 1.2s ease-out 1.1s forwards; }
  .anim-glow { opacity: 0; animation: fade 2.2s ease-out 0.4s forwards; }
  .anim-rf { opacity: 0; animation: rf 1.6s ease-out 1.8s 3; }
  .anim-rf:nth-of-type(2) { animation-delay: 2s; }
  .anim-rf:nth-of-type(3) { animation-delay: 2.2s; }
  .anim-bubble { animation: bubble 5s ease-in-out infinite; }
  .anim-bubble:nth-of-type(2n) { animation-delay: -2.2s; }
  .anim-bubble:nth-of-type(3n) { animation-delay: -3.6s; }
}
@keyframes draw-iso { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rf { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bubble { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-10px); opacity: .5; } }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section.is-silt { background: var(--silt); border-top: 0; }
.section.is-silt + .section { border-top: 0; }

/* Título na coluna lateral, conteúdo na coluna principal */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.split > header h2 { margin-bottom: 0.4em; }
.split > header p { color: var(--ink-2); font-size: var(--t-sm); max-width: 22rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 1rem; }
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-2); font-size: var(--t-md); line-height: 1.5; }

.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--ink); }
.prose > p:first-child { font-size: var(--t-md); line-height: 1.5; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--green); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Fatos documentados em linha */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.facts li { padding: 1.1rem 1.25rem 0 0; }
.facts li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts dt, .facts .fact-value {
  display: block;
  font-size: var(--t-lg);
  font-weight: 700;
  font-stretch: 78%;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.facts .fact-text { display: block; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li { padding-bottom: 1rem; }
}

/* Lista de contrastes (desafio) */
.prose .challenge-list, .challenge-list { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.challenge-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.challenge-list li:last-child { border-bottom: 1px solid var(--line); }
.challenge-list svg { width: 2rem; height: 2rem; color: var(--blue); margin-top: 0.1rem; }
.challenge-list h3 { margin: 0 0 0.2rem; font-size: var(--t-base); font-stretch: 92%; }
.challenge-list p { margin: 0; color: var(--ink-2); }

/* Proposta de valor */
.value-statement {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-stretch: 80%;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 48rem;
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--amber);
  text-wrap: balance;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.deliverables li { padding: 1.5rem 1.5rem 1.5rem 0; border-top: 1px solid var(--line); }
.deliverables li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.deliverables h3 { margin-bottom: 0.4rem; }
.deliverables p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 860px) {
  .deliverables { grid-template-columns: 1fr; }
  .deliverables li + li { padding-left: 0; border-left: 0; }
}

/* --------------------------------------------------------------------------
   Etapas numeradas (sequências reais)
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 1.5rem 0 0;
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.steps > li::after {
  content: "";
  position: absolute;
  top: 1.125rem; left: 2.25rem; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 11px);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.steps + p { margin-top: 2.5rem; }
.pipeline + p, .sites + p { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps > li { padding: 0 0 0 3.25rem; }
  .steps > li::before { position: absolute; left: 0; top: -0.25rem; margin: 0; }
  .steps > li::after { top: 2.25rem; bottom: -1.75rem; left: 1.075rem; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--blue) 0 6px, transparent 6px 11px); }
}

/* --------------------------------------------------------------------------
   Marcadores de natureza da informação
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem 0.15rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}
.tag::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.tag-doc { background: var(--green-soft); color: #075a43; }
.tag-doc::before { background: var(--green); }
.tag-sci { background: var(--blue-soft); color: #075386; }
.tag-sci::before { background: var(--blue); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.tag-pot { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tag-pot::before { border: 2px solid var(--ink-3); }

.evidence-key {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  margin: 0 0 2.5rem; padding: 1rem 1.25rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.evidence-key li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.benefit-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.benefit-columns h3 { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; font-size: var(--t-base); }
.benefit-columns ul { margin: 0; padding: 0; list-style: none; }
.benefit-columns li { padding: 0.8rem 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.benefit-columns li strong { display: block; color: var(--ink); }
.benefit-columns li span { display: block; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) { .benefit-columns { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Aplicações
   -------------------------------------------------------------------------- */
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.apps > li {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.apps svg { width: 100%; max-width: 168px; height: auto; margin-bottom: 1rem; color: var(--ink); }
.apps h3 { margin-bottom: 0.35rem; font-size: var(--t-base); }
.apps p { margin: 0 0 0.6rem; font-size: 0.96rem; color: var(--ink-2); }
@media (max-width: 900px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; } }

.project-types { margin: 2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.project-types li {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Origem científica / parceiros / linha do tempo
   -------------------------------------------------------------------------- */
.lineage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.lineage li { padding: 1.25rem 1.5rem 0 0; border-top: 3px solid var(--ink); }
.lineage li:nth-child(2) { border-top-color: var(--green); }
.lineage li:nth-child(3) { border-top-color: var(--blue); }
.lineage li + li { padding-left: 1.5rem; }
.lineage h3 { font-size: var(--t-base); margin-bottom: 0.3rem; }
.lineage p { font-size: 0.96rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) {
  .lineage { grid-template-columns: 1fr; gap: 1.5rem; }
  .lineage li + li { padding-left: 0; }
}

.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 4.6rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--line);
}
.timeline > li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.75rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline > li::after {
  content: ""; position: absolute; left: 4.35rem; top: 0.45rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue);
}
.timeline time, .timeline .when {
  font-weight: 700; font-stretch: 78%; font-size: var(--t-md); line-height: 1.2; text-align: right;
}
.timeline h3 { font-size: var(--t-base); margin-bottom: 0.25rem; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.timeline .source { display: block; margin-top: 0.35rem; font-size: 0.82rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Propriedade intelectual
   -------------------------------------------------------------------------- */
.ip-list { margin: 0; padding: 0; list-style: none; }
.ip-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.ip-list li:last-child { border-bottom: 1px solid var(--line); }
.ip-number {
  font-size: var(--t-lg);
  font-weight: 650;
  font-stretch: 80%;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.ip-office { color: var(--ink-2); font-size: var(--t-sm); }
.ip-kind { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.96rem; }
.status-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem;
}
.status-note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Páginas internas
   -------------------------------------------------------------------------- */
.page-header {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-stretch: 76%; font-size: clamp(2.4rem, 5.6vw, 4.25rem); line-height: 1; max-width: 22ch; }
.page-header .lead { font-size: var(--t-md); color: var(--ink-2); max-width: 46rem; line-height: 1.5; margin: 0; }
.breadcrumb { margin: 0 0 1.25rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--t-sm); color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-2); }

.on-page {
  position: sticky; top: 4.5rem; z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.on-page ul {
  display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.on-page ul::-webkit-scrollbar { display: none; }
.on-page a {
  display: block; padding: 0.8rem 0.75rem; white-space: nowrap;
  font-size: 0.92rem; color: var(--ink-2); text-decoration: none;
}
.on-page a:hover, .on-page a.is-active { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }

/* Figuras técnicas */
.tech-figure { margin: 2rem 0 0; }
.tech-figure figcaption { margin-top: 0.75rem; font-size: var(--t-sm); color: var(--ink-3); max-width: 46rem; }
.tech-figure svg text { font-family: var(--font); }

.equation {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem;
  margin: 1.5rem 0; padding: 1.1rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.equation .formula { font-size: 1.5rem; font-style: italic; font-stretch: 90%; letter-spacing: 0.02em; }
.equation .formula b { font-style: normal; font-weight: 600; }
.equation .where { font-size: var(--t-sm); color: var(--ink-2); }

/* Pipeline da arquitetura */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: layer;
}
.pipeline > li {
  counter-increment: layer;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  margin-right: 1.75rem;
  border-radius: var(--radius);
}
.pipeline > li:last-child { margin-right: 0; }
.pipeline > li:not(:last-child)::after {
  content: "";
  position: absolute; top: 50%; right: -1.6rem;
  width: 1.45rem; height: 12px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h20M15 1l6 5-6 5' fill='none' stroke='%230873BA' stroke-width='2'/%3E%3C/svg%3E");
}
.pipeline svg { width: 52px; height: 52px; margin-bottom: 0.9rem; }
.pipeline h3 { font-size: var(--t-base); margin-bottom: 0.25rem; }
.pipeline .layer-where { display: block; font-size: 0.82rem; color: var(--ink-3); margin-bottom: 0.75rem; }
.pipeline ul { margin: 0; padding-left: 1.05rem; font-size: 0.93rem; color: var(--ink-2); }
.pipeline ul li { margin-bottom: 0.35rem; }
.pipeline ul li::marker { color: var(--green); }
.link-label {
  display: block; margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px dashed var(--line);
  font-size: 0.82rem; color: var(--blue);
}
@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline > li { margin: 0 0 1.75rem; }
  .pipeline > li:not(:last-child)::after { top: auto; bottom: -1.6rem; right: auto; left: 2rem; transform: rotate(90deg); }
}

/* Tabela de componentes */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.97rem; }
.spec-table caption { text-align: left; font-size: var(--t-sm); color: var(--ink-3); caption-side: bottom; padding-top: 0.75rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); }
.spec-table thead th { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; border-bottom: 2px solid var(--ink); }
.spec-table tbody th { font-weight: 650; width: 30%; }
@media (max-width: 640px) {
  .spec-table thead { display: none; }
  .spec-table tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .spec-table th, .spec-table td { display: block; padding: 0.15rem 0; border: 0; width: auto; }
}

/* Etapas do desenvolvimento (lista vertical numerada) */
.dev-stages { counter-reset: dev; margin: 0; padding: 0; list-style: none; }
.dev-stages > li {
  counter-increment: dev;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.dev-stages > li::before {
  content: counter(dev);
  font-size: var(--t-lg); font-weight: 700; font-stretch: 75%; line-height: 1.1; color: var(--blue);
}
.dev-stages h3 { font-size: var(--t-base); margin-bottom: 0.3rem; }
.dev-stages p { margin: 0; color: var(--ink-2); }

/* Áreas de campo */
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.sites li { padding: 1.25rem 1.5rem 1.25rem 0; border-top: 1px solid var(--line); }
.sites li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.sites .site-name { display: block; font-weight: 650; font-stretch: 85%; font-size: var(--t-md); line-height: 1.2; }
.sites .site-place { display: block; font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 0.4rem; }
.sites p { margin: 0; font-size: 0.96rem; color: var(--ink-2); }
@media (max-width: 680px) {
  .sites { grid-template-columns: 1fr; }
  .sites li:nth-child(even) { padding-left: 0; border-left: 0; }
}

.ref-list { margin: 0; padding-left: 1.2rem; font-size: 0.93rem; color: var(--ink-2); }
.ref-list li { margin-bottom: 0.6rem; }
.ref-list em { color: var(--ink); }

/* NSZD processos */
.prose .process-list, .process-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.process-list li { padding: 0.85rem 0 0.85rem 1.75rem; border-top: 1px solid var(--line); position: relative; }
.process-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.3rem;
  width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--green);
}
.process-list li.is-heat::before { background: var(--amber); }
.process-list strong { display: block; }
.process-list span { color: var(--ink-2); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Faixa de chamada comercial
   -------------------------------------------------------------------------- */
.cta-band { background: var(--blue-deep); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.cta-band h2 { color: #fff; font-size: var(--t-2xl); font-stretch: 76%; margin-bottom: 0.4em; }
.cta-band p { color: rgba(255,255,255,.85); font-size: var(--t-md); line-height: 1.5; max-width: 40rem; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-label { margin: 0 0 0.25rem; color: var(--ink-3); font-size: var(--t-sm); }
.contact-email {
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 650;
  font-stretch: 80%;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.contact-email a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.contact-email a:hover { color: var(--blue); }
.contact-subhead { font-size: var(--t-md); margin-top: 3rem; }
.topic-links { margin: 1rem 0 0; padding: 0; list-style: none; }
.topic-links li { border-top: 1px solid var(--line); }
.topic-links li:last-child { border-bottom: 1px solid var(--line); }
.topic-links a { display: block; padding: 0.9rem 0.25rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.topic-links a:hover { color: var(--blue); background: var(--silt); }

.contact-aside { padding: 1.5rem; background: var(--silt); border-radius: var(--radius); }
.contact-aside h2 { font-size: var(--t-md); }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-size: var(--t-sm); color: var(--ink-3); margin-top: 1rem; }
.contact-aside dd { margin: 0.15rem 0 0; font-weight: 550; overflow-wrap: anywhere; }
.contact-aside .aside-empty { font-size: 0.95rem; color: var(--ink-2); }
.contact-aside ul { padding-left: 1.1rem; font-size: 0.95rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer { background: #0a2233; color: rgba(255,255,255,.78); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr));
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.footer-brand img { width: 170px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 24rem; }
.footer-col h2 { font-size: 0.95rem; font-stretch: 90%; color: #fff; font-weight: 650; margin-bottom: 0.9rem; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 0.85rem; color: rgba(255,255,255,.6);
}
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

[data-contact-item][hidden], .contact-fallback[hidden] { display: none !important; }

/* 404 */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); }
.notfound h1 { font-size: var(--t-2xl); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media print {
  .site-header, .on-page, .cta-band, .site-footer, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* Links em fundo cinza-claro: tom mais escuro para manter contraste AA */
.is-silt a:not(.btn) { color: var(--blue-hover); }
.prose + .timeline { margin-top: 2.5rem; }

/* Famílias de patentes */
.ip-family + .ip-family { margin-top: 2.5rem; }
.ip-family h3 { font-size: var(--t-md); margin-bottom: 0.3rem; max-width: 38rem; }
.ip-family-meta { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 1rem; }
.ip-status {
  justify-self: end;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.5;
  border-radius: 999px;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.ip-status.is-granted { color: #075a43; background: var(--green-soft); box-shadow: none; }
@media (max-width: 560px) { .ip-list li { grid-template-columns: 1fr; } .ip-status { justify-self: start; } }
