/* ─────────────────────────────────────────────────────────────
   Rede Agrogenômica — Design Tokens
   Paleta herdada do NAPI Microbioma de Solos (DESIGN.md)
   Tipografia Panton → substituída por Mulish (Google Fonts)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --c-ink:        #0a2230;   /* Azul-Marinho profundo (autoridade) */
  --c-ink-2:      #14304a;
  --c-cream:      #fcf9de;   /* Creme (fundo, respiro) */
  --c-cream-2:    #f5f0c8;
  --c-paper:      #fffdf5;
  --c-green:      #92c251;   /* Verde vivo (principal) */
  --c-green-2:    #98c771;
  --c-green-dark: #68a654;   /* Verde escuro (hover) */
  --c-green-deep: #3f6b2e;
  --c-earth:      #4f3320;   /* Marrom — base/ancoragem */
  --c-earth-2:    #5b3f2c;
  --c-earth-3:    #3d2314;
  --c-tan:        #a98a64;   /* tom claro */
  --c-line:       #e4dfbc;
  --c-line-soft:  #ede9c6;
  --c-muted:      #6f6a4a;

  /* Status (acessível) */
  --c-warn:   #b5651d;
  --c-ok:     #2f7c3f;

  /* Tipografia */
  --ff-display: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ff-body:    "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Espaçamento */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,34,48,.06), 0 2px 8px rgba(10,34,48,.04);
  --shadow-md: 0 10px 30px rgba(10,34,48,.10), 0 2px 6px rgba(10,34,48,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--ff-body);
  background: var(--c-cream);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--c-green); color: var(--c-ink); }

a { color: inherit; text-decoration: none; }
a.link { color: var(--c-green-deep); text-decoration: underline; text-underline-offset: 3px; }
a.link:hover { color: var(--c-ink); }

button { font-family: inherit; }

/* Tipografia utilitária — escala Panton-like */
.t-eyebrow {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-earth);
}
.t-display {
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--c-ink);
}
.t-h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--c-ink);
}
.t-h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.t-script {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--c-green); outline-offset: 3px; }

.btn--primary { background: var(--c-ink); color: var(--c-cream); }
.btn--primary:hover { background: var(--c-ink-2); }

.btn--green { background: var(--c-green); color: var(--c-ink); }
.btn--green:hover { background: var(--c-green-dark); color: var(--c-cream); }

.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-cream); }

.btn--ghost-light { background: transparent; color: var(--c-cream); border-color: rgba(252,249,222,0.4); }
.btn--ghost-light:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }

.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn--lg { padding: 16px 24px; font-size: 15px; }

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
}

/* Faixa de acessibilidade (e-MAG) */
.a11y-bar {
  background: var(--c-ink);
  color: var(--c-cream);
  font-size: 12px;
  border-bottom: 1px solid rgba(252,249,222,0.08);
}
.a11y-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
}
.a11y-bar .group { display: flex; align-items: center; gap: 14px; }
.a11y-bar .keys { display: flex; gap: 14px; }
.a11y-bar .keys kbd {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(252,249,222,0.10);
  border: 1px solid rgba(252,249,222,0.18);
  margin-right: 4px;
}
.a11y-bar button {
  background: transparent;
  border: 1px solid rgba(252,249,222,0.25);
  color: var(--c-cream);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-family: var(--ff-display);
}
.a11y-bar button:hover { background: rgba(252,249,222,0.08); }
.a11y-bar button.is-active { background: var(--c-green); color: var(--c-ink); border-color: var(--c-green); }

/* Topbar — header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
}
.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.brandmark .mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.brandmark .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brandmark .wordmark .top {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brandmark .wordmark .sub {
  font-family: var(--ff-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--c-earth);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--c-ink);
  position: relative;
}
.nav a:hover { background: var(--c-cream-2); }
.nav a.is-active { background: var(--c-ink); color: var(--c-cream); }
.nav .has-menu { position: relative; }
.nav .menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  min-width: 260px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.nav .has-menu:hover .menu,
.nav .has-menu:focus-within .menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav .menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.nav .menu a small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.topbar .actions { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .topbar .actions .btn { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--c-cream);
  z-index: 50;
  padding: 28px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.drawer nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--c-green);
  color: var(--c-ink);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Helpers */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

.divider-line {
  height: 1px; background: var(--c-line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--c-cream-2);
  color: var(--c-earth);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--c-line);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green);
}

/* Hero — capa */
.hero {
  position: relative;
  background: var(--c-cream);
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 56px; }
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  margin-bottom: 28px;
}
.hero .kicker .pin {
  background: var(--c-green);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-family: var(--ff-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.hero .kicker .txt {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-earth);
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--c-ink);
}
.hero h1 .ital {
  font-style: italic;
  font-weight: 400;
  display: block;
  font-size: clamp(10px, 0.95vw, 12px);
  line-height: 1.55;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin-top: 22px;
  padding-left: 4px;
  max-width: 540px;
}
.hero h1 .accent { color: var(--c-green-dark); }
.hero p.lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 540px;
  color: var(--c-ink-2);
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-art {
  position: relative;
  aspect-ratio: 4/4.2;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-art .layer { position: absolute; inset: 0; }
.hero-art .corner {
  position: absolute;
  z-index: 2;
  padding: 16px 18px;
  background: rgba(252,249,222,0.92);
  backdrop-filter: blur(4px);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  font-family: var(--ff-display);
  font-size: 11px;
  color: var(--c-earth);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; gap: 10px; align-items: center;
}
.hero-art .corner.tl { top: 18px; left: 18px; }
.hero-art .corner.br {
  bottom: 18px; right: 18px;
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: transparent;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.hero-art .corner.br .big {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-green);
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Stat strip */
.stat-strip {
  background: var(--c-ink);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 28px 32px;
}
.stat-strip .item {
  border-left: 1px solid rgba(252,249,222,0.12);
  padding: 8px 18px;
}
.stat-strip .item:first-child { border-left: 0; padding-left: 0; }
.stat-strip .num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-green);
}
.stat-strip .num .plus { color: rgba(252,249,222,0.4); }
.stat-strip .lbl {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(252,249,222,0.7);
}
.stat-strip .item .note {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(252,249,222,0.5);
  font-style: italic;
}
.stat-strip .item.is-placeholder {
  border-left: 1px dashed rgba(252,249,222,0.18);
}
.stat-strip .num-placeholder {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: rgba(252,249,222,0.25);
  border: 1.5px dashed rgba(252,249,222,0.2);
  border-radius: 10px;
  padding: 4px 14px;
  display: inline-block;
}
.stat-strip .ph-mono {
  font-family: var(--ff-mono);
  color: var(--c-green);
}
@media (max-width: 880px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat-strip .item { border-left: 0; }
}

/* Section header */
.sect-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.sect-head h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.sect-head .meta {
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-earth);
  font-weight: 700;
}
@media (max-width: 720px) {
  .sect-head { grid-template-columns: 1fr; }
}

/* Section spacing */
section { padding: 76px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }

/* Sub-arranjo card */
.napi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .napi-grid { grid-template-columns: 1fr; } }

.napi-card {
  position: relative;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.napi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-earth);
}
.napi-card .top-band {
  height: 8px;
  background: var(--c-green);
}
.napi-card.is-feijao .top-band { background: var(--c-earth); }
.napi-card.is-soja .top-band { background: var(--c-green-dark); }
.napi-card.is-microbioma .top-band { background: var(--c-green); }
.napi-card.is-equipamentos .top-band { background: var(--c-ink); }

.napi-card .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.napi-card .head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.napi-card .index {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 36px;
  color: var(--c-line);
  letter-spacing: -0.04em;
  line-height: 1;
}
.napi-card h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.015em;
}
.napi-card h3 small {
  display: block;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-earth);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.napi-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-2);
}
.napi-card .leads {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--c-earth);
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
}
.napi-card .leads strong {
  color: var(--c-ink);
  font-weight: 700;
}
.napi-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}
.napi-card .badge-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.napi-card .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.napi-card:hover .arrow {
  background: var(--c-green-dark);
  transform: rotate(-45deg);
}

/* Quote / mission */
.mission {
  background: var(--c-earth);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.mission .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .mission .container { grid-template-columns: 1fr; gap: 32px; }
}
.mission h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  color: var(--c-cream);
}
.mission h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-green-2);
}
.mission p {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(252,249,222,0.88);
  max-width: 560px;
}
.mission .pillars {
  display: grid;
  gap: 14px;
}
.mission .pillar {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(252,249,222,0.16);
  border-radius: var(--r-lg);
  background: rgba(252,249,222,0.04);
}
.mission .pillar .num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--c-green);
  line-height: 1;
}
.mission .pillar h4 {
  margin: 0 0 6px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--c-cream);
}
.mission .pillar p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(252,249,222,0.7);
  margin: 0;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card.featured { grid-row: span 1; }
.news-card .thumb {
  aspect-ratio: 16/10;
  background: var(--c-line-soft);
  position: relative;
  overflow: hidden;
}
.news-card.featured .thumb { aspect-ratio: 16/11; }
.news-card .thumb .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(10,34,48,0.05) 12px 13px);
}
.news-card .thumb .label {
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--c-earth);
}
.news-card .body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-earth);
  text-transform: uppercase;
  font-weight: 700;
}
.news-card h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.news-card.featured h4 { font-size: 24px; }
.news-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-muted);
}

/* External systems */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .ext-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ext-grid { grid-template-columns: 1fr; } }
.ext-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.ext-card:hover {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-cream);
}
.ext-card:hover .ext-arrow { background: var(--c-green); color: var(--c-ink); }
.ext-card:hover .ext-owner { color: rgba(252,249,222,0.6); }
.ext-card:hover .ext-tag { background: rgba(252,249,222,0.1); color: var(--c-cream); border-color: rgba(252,249,222,0.2); }
.ext-card .ext-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--c-cream-2);
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--c-earth);
  border: 1px solid var(--c-line);
  width: fit-content;
  letter-spacing: 0.04em;
}
.ext-card h5 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.ext-card .ext-owner {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: auto;
}
.ext-card .ext-arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-cream-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}

/* Partners / footer */
.partners {
  background: var(--c-cream-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.partners .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 32px;
}
@media (max-width: 760px) { .partners .container { grid-template-columns: 1fr; } }
.partners h6 {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin: 0;
}
.partners h6 small {
  display: block;
  font-weight: 400;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  font-size: 12px;
}
.partners .logos {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.partners .logo-slot {
  height: 60px;
  min-width: 140px;
  border: 1px dashed var(--c-tan);
  border-radius: 8px;
  background: var(--c-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  color: var(--c-earth);
  text-align: center;
  line-height: 1.15;
}
.partners .logo-slot.solid {
  background: var(--c-ink);
  color: var(--c-cream);
  border-style: solid;
  border-color: var(--c-ink);
}

footer.site {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 64px 0 24px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(252,249,222,0.12);
}
@media (max-width: 880px) { footer.site .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer.site .grid { grid-template-columns: 1fr; } }

footer.site h6 {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(252,249,222,0.6);
  margin: 0 0 16px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
footer.site ul a:hover { color: var(--c-green); cursor: pointer; }

footer.site .brand-block .mark { width: 64px; height: 64px; margin-bottom: 14px; }
footer.site .brand-block p { font-size: 13.5px; color: rgba(252,249,222,0.7); max-width: 320px; line-height: 1.55; margin: 0; }

footer.site .row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(252,249,222,0.55);
  flex-wrap: wrap;
  gap: 14px;
}
footer.site .row-bottom .links { display: flex; gap: 18px; }
footer.site .row-bottom a:hover { color: var(--c-green); cursor: pointer; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,34,48,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--c-paper);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 36px;
  position: relative;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-cream-2);
  border: 0;
  cursor: pointer;
}
.modal h3 { font-family: var(--ff-display); font-weight: 900; font-size: 28px; letter-spacing: -0.015em; margin: 0 0 8px; }
.modal p { font-size: 14px; color: var(--c-muted); margin: 0 0 24px; line-height: 1.5; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--ff-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--c-earth); }
.field input {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink);
}
.field input:focus { outline: none; border-color: var(--c-green-dark); background: var(--c-paper); }

/* Sub-arranjo detail page */
.detail-hero {
  background: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.detail-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}
@media (max-width: 880px) { .detail-hero .container { grid-template-columns: 1fr; } }
.detail-hero .crumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--ff-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--c-earth);
  margin-bottom: 24px;
  cursor: pointer;
}
.detail-hero .crumb:hover { color: var(--c-ink); }
.detail-hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.detail-hero h1 .sub {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin-bottom: 14px;
}
.detail-hero .logo-image {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* Equipe / org chart */
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .org-grid { grid-template-columns: 1fr; } }
.org-tier-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.org-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
  width: 240px;
}
.org-card .photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-line-soft);
  margin: 0 auto 12px;
  border: 2px solid var(--c-paper);
  outline: 2px solid var(--c-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 900; font-size: 24px;
  color: var(--c-earth);
}
.org-card .name { font-family: var(--ff-display); font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.org-card .role { font-family: var(--ff-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-earth); margin-top: 6px; font-weight: 700; }
.org-card .inst { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

/* DNA spine — abstract decorative */
.dna-spine {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--c-line);
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* Quiet scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-cream); }
::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-tan); }

/* ─── HEADLINE ALTERNATIVES (Hero) ─── */
.headline-alts {
  margin: 14px 0 28px;
  padding: 14px 16px;
  background: var(--c-paper);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  max-width: 620px;
}
.headline-alts .t-eyebrow {
  display: block;
  margin-bottom: 8px;
}
.alts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.alt-chip {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.alt-chip:hover { background: var(--c-cream-2); border-color: var(--c-earth); }
.alt-chip.is-on {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

/* ─── LEMA ALTERNATIVES (NAPI page) ─── */
.lema-alts {
  margin-top: 32px;
  padding: 20px;
  background: var(--c-cream);
  border-radius: var(--r-md);
  border: 1px dashed var(--c-line);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lema-alts .alts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.lema-alts .alt-row {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--c-muted);
  letter-spacing: -0.005em;
}

/* ─── PARTICIPE (cadastro de interessados) ─── */
.participe {
  background: var(--c-cream-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.participe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .participe-grid { grid-template-columns: 1fr; gap: 32px; }
}
.participe-copy h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
}
.participe-copy h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-green-dark);
}
.participe-copy p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 460px;
}
.participe-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .participe-cards { grid-template-columns: 1fr; }
}
.participe-card {
  padding: 24px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s ease;
  min-height: 200px;
}
.participe-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-earth);
  box-shadow: var(--shadow-md);
}
.participe-card .ic {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}
.participe-card h4 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.participe-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0;
}
.participe-card .cta-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--c-green-dark);
  text-transform: uppercase;
  padding-top: 10px;
}
.participe-card.on-dark {
  background: rgba(252,249,222,0.04);
  border: 1px solid rgba(252,249,222,0.16);
  color: var(--c-cream);
}
.participe-card.on-dark p { color: rgba(252,249,222,0.7); }
.participe-card.on-dark:hover { border-color: var(--c-green); background: rgba(252,249,222,0.08); }
.participe-card.on-dark .cta-link { color: var(--c-green); }
.participe-card.contact-card .mono {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--c-green-2);
  margin-top: 14px;
  line-height: 1.4;
  word-break: break-word;
}

/* ─── ORG CHART (NAPI detail) ─── */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-chart .tier {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.org-chart .tier-lead .org-card { min-width: 240px; }
.org-chart .tier-team {
  margin-top: 8px;
  gap: 12px;
}
.org-chart .tier-team .org-card {
  width: 170px;
  padding: 14px;
}
.org-chart .tier-connector {
  height: 40px;
  width: 100%;
  max-width: 420px;
  opacity: 0.6;
}

.org-card--sm .photo {
  width: 56px !important;
  height: 56px !important;
  font-size: 16px !important;
  margin-bottom: 8px;
}

.db-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--c-cream);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  text-align: center;
}
.db-note code {
  background: var(--c-cream-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--c-earth);
}
.db-note.inline {
  display: inline-block;
  margin: 0;
  text-align: left;
}

/* ─── CONSTELAÇÃO (Equipe page satellite) ─── */
.constelacao {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed var(--c-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.constelacao .centro {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--ff-display);
  z-index: 1;
}

/* ─── FILTER TABS (Equipe) ─── */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tabs .chip {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink-2);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.filter-tabs .chip.on {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

/* ─── NAPI CONTACT CARD ─── */
.napi-contact {
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}
.napi-contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-earth);
}
.napi-contact .cta-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-green-dark);
  text-transform: uppercase;
}

/* Contrast mode (accessibility toggle) */
body.high-contrast {
  --c-cream: #ffffff;
  --c-cream-2: #f0f0f0;
  --c-paper: #ffffff;
  --c-line: #000000;
  --c-line-soft: #d0d0d0;
  --c-ink: #000000;
  --c-ink-2: #000000;
  --c-earth: #000000;
  --c-muted: #1a1a1a;
  --c-green: #008000;
  --c-green-dark: #006400;
}
body.font-lg { font-size: 18px; }
body.font-lg .hero h1 { font-size: clamp(50px, 8vw, 100px); }

