/* ============================================================
   Biohma — components: buttons, forms, cards
   ============================================================ */

/* ---------- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; font-family: var(--font-body); font-size: var(--text-base);
  font-weight: var(--fw-semibold); line-height: 1.1; letter-spacing: var(--ls-tight);
  border-radius: var(--radius-leaf-sm); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: not-allowed; opacity: .45; }

.btn--primary { background: var(--brand); color: var(--on-brand); border: 1.5px solid var(--brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--border-strong); }
.btn--secondary:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn--inverse { background: var(--paper); color: var(--green-950); border: 1.5px solid var(--paper); }
.btn--inverse:hover { background: color-mix(in srgb, var(--paper) 88%, var(--green-950)); }
.btn--ghost-dark { background: transparent; color: var(--paper); border: 1.5px solid var(--stone-on-dark); }
.btn--ghost-dark:hover { border-color: var(--paper); }

/* ---------- Form fields ---------------------------------------------- */
.form-fields { display: flex; flex-direction: column; gap: 18px; margin-top: var(--space-6); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-body); }
.field label .req { color: var(--danger, #a8331f); margin-left: 3px; }
.field .hint { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-muted); }

.input-shell {
  display: flex; align-items: center; height: 46px; padding: 0 14px;
  background: var(--white); border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.input-shell:focus-within { border-color: var(--turq-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turq-500) 25%, transparent); }
.input-shell input, .input-shell textarea {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-base); color: var(--text-body);
}
textarea.input-shell { height: auto; align-items: stretch; padding: 12px 14px; }
textarea.input-shell textarea { resize: vertical; font-family: var(--font-body); }

.select-shell { position: relative; display: inline-flex; width: 100%; }
.select-shell select {
  appearance: none; width: 100%; height: 46px; padding: 0 40px 0 14px;
  font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-base); color: var(--text-body);
  background: var(--white); border: 1.5px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer;
}
.select-shell::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--stone-500); border-bottom: 2px solid var(--stone-500);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--text-base); font-weight: var(--fw-medium); }
.checkbox input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.checkbox__box {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none;
  border-radius: var(--radius-sharp); border: 1.5px solid var(--border-default); background: var(--white);
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.checkbox input:checked + .checkbox__box { background: var(--brand); border-color: var(--brand); }
.checkbox__box svg { width: 13px; height: 13px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard); }
.checkbox input:checked + .checkbox__box svg { opacity: 1; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--turq-500); outline-offset: 2px; }

.form-success { padding-top: 8px; }
.form-success strong { display: block; font-weight: 600; }
.form-success p { margin-top: 8px; color: var(--stone-600); font-weight: var(--fw-semibold); font-size: var(--text-sm); }
[data-form-state="sent"] .form-fields { display: none; }
[data-form-state="idle"] .form-success { display: none; }

/* Honeypot: off-screen (not display:none, which bots skip), unreachable by keyboard/AT */
.field-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Submit feedback: error message under the fields, loading state on the button */
.form-error { margin: 0; padding: 10px 14px; border-left: 3px solid var(--danger, #a8331f); background: color-mix(in srgb, var(--danger, #a8331f) 8%, var(--white)); color: var(--danger, #a8331f); font-size: var(--text-sm); font-weight: var(--fw-semibold); line-height: 1.5; border-radius: var(--radius-sm, 4px); }
.form-error:empty { display: none; }
.form-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.btn.is-loading { cursor: progress; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin .8s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation-duration: 2.4s; } }

/* ---------- Cards ------------------------------------------------------ */
.card {
  background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.card--sunken { background: var(--green-50); border: none; }
.card--on-dark { background: rgba(4,16,11,.3); border: 1px solid var(--border-on-dark); color: var(--paper); }
.card--on-dark .icon { color: var(--green-600); }

.card-icon { color: var(--green-600); display: flex; width: 28px; height: 28px; flex: none; }
.card--on-dark .card-icon { color: var(--mark-on-dark); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); line-height: 1.1; letter-spacing: var(--ls-tight); }
.card__kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--turq-800); font-variant-numeric: tabular-nums; }
.card--on-dark .card__kicker { color: var(--mark-on-dark); opacity: .9; }
.card__body { color: var(--stone-700); font-size: var(--text-sm); margin: 0; }
.card--on-dark .card__body { color: var(--stone-on-dark); font-weight: var(--fw-semibold); }
.card__source { margin-top: auto; padding-top: 8px; font-size: var(--text-xs); color: var(--stone-600); font-weight: var(--fw-semibold); }

/* stat card — carries its own navy→teal gradient (plus the turquoise
   corner glow) now that the section around it is plain paper, instead of
   the whole section sharing one bleed. Exact recipe .section--blue used
   to paint full-bleed, just scoped to each card's own box — the wider
   blue-to-green spread, not the narrower all-green ramp tried after it. */
.stat {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px 32px;
  background: radial-gradient(120% 90% at 100% 100%, rgba(23,195,168,0.55) 0%, rgba(23,195,168,0.18) 40%, rgba(23,195,168,0) 70%),
              linear-gradient(120deg, #0B2545 0%, #134074 55%, #0E7C6E 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
}
.stat__icon { width: 44px; height: 44px; color: var(--mark-on-dark); }
.stat__value {
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: var(--ls-tighter);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--mark-on-dark); }
.stat__desc { font-size: var(--text-sm); color: rgba(240,243,242,0.85); max-width: 30ch; }

/* photo placeholder (documentary photography slot) */
.photo-slot {
  background: var(--sand-300); border-radius: var(--radius-lg);
  padding: 16px; font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--ls-caps); line-height: 1.8; color: var(--stone-700);
  display: flex; align-items: flex-end;
  overflow: hidden; /* required for [data-parallax] on this element to clip cleanly */
  position: relative;
}

/* progress / org chart bars */
.org-row .org-row__head { display: flex; justify-content: space-between; gap: 16px; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--stone-600); }
.org-row .org-row__head span:last-child { color: var(--green-950); }
.org-bar { display: flex; height: 14px; margin-top: 8px; background: var(--sand-300); border-radius: var(--radius-sm); overflow: hidden; }
.org-bar__fill { background: var(--green-500); transform-origin: left; }
.org-legend { display: flex; gap: 20px; font-size: var(--text-xs); color: var(--stone-600); font-weight: var(--fw-semibold); margin-top: 12px; }
.org-legend span { display: flex; align-items: center; gap: 8px; }
.org-legend i { width: 12px; height: 12px; border-radius: 2px; display: block; }

/* partner / logo card
   Equitable Earth, Vieira Rezende and Cravo e Santana ship as white-only
   source files with no usable color to recover — those stay masked, at the
   darkest green in the system for full strength. Everland, Samaúma and
   Hummingbirds ship with real ink/color and render as plain, unmasked
   images so their actual mark shows instead of a flattened silhouette. */
.partner-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.partner-logo { height: 40px; width: 150px; background: var(--green-950); mask-size: contain; mask-repeat: no-repeat; mask-position: left center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: left center; }
.partner-logo--native { height: 40px; width: auto; max-width: 150px; object-fit: contain; }

/* Cravo e Santana ships as two separate files (a colour icon, a white-only
   wordmark) rather than one combined lockup, with no version drawn for a
   light background. #00b184 is their own site's text colour on white
   (sampled from cravoesantana.com) — darker than the icon's #00dda8,
   which is tuned for their dark header and reads weak on paper alone. */
.partner-logo-cs { display: flex; align-items: center; gap: 10px; height: 53px; }
.partner-logo-cs__icon, .partner-logo-cs__word { background: #00b184; mask-size: contain; mask-repeat: no-repeat; mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; }
.partner-logo-cs__icon { width: 34px; height: 53px; }
.partner-logo-cs__word { width: 143px; height: 53px; }
.partner-card__name { font-size: var(--text-xs); color: var(--stone-500); white-space: nowrap; }

/* team */
/* Executive photos grow with the viewport instead of just gaining gap —
   capped so they don't run away on very wide screens. Where this grid sits
   in its own full-width section (quem.html) the cap is what lets the photos
   actually grow; nested beside a text column (index.html's teaser) the
   column itself is already narrower than the cap, so this is a no-op there. */
.team-grid { max-width: 1480px; margin-inline: auto; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
/* The source photographs are already pre-cropped RGBA cutouts (their own
   silhouette, transparent background) — no square crop, no circular mask,
   no object-fit. Forcing either double-crops the subject. */
.team-card img { width: 100%; max-width: 680px; height: auto; display: block; }
.team-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); letter-spacing: var(--ls-tight); }
.team-card__role { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--turq-800); margin-top: 6px; }
.team-card__bio { margin-top: 12px; color: var(--stone-700); font-size: var(--text-sm); max-width: 42ch; }
.team-teaser { text-align: center; color: var(--green-950); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.team-teaser img { width: 100%; max-width: 320px; height: auto; display: block; }
.team-teaser__photo { position: relative; border-radius: var(--radius-lg); }

/* Name, role and the toggle button read as one unit, not three items
   loosely stacked: a tight 4px gap, the button directly under the role
   with almost no air. The active indicator is the button itself, not a
   ring around the photo (tried, didn't read well against the portrait
   crop) — see .team-teaser__toggle[aria-expanded="true"] below, which
   also doubles as the "this one's open" state and the close affordance
   (main.js swaps its label to data-label-close). */
.team-teaser__meta { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.team-teaser__name { font-weight: 600; font-size: var(--text-sm); }
.team-teaser__role { font-size: var(--text-xs); color: var(--turq-800); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; }
.team-teaser__toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  margin-top: 10px; padding: 8px 16px; border-radius: var(--radius-leaf-sm);
  border: 1.5px solid var(--green-600); background: transparent; color: var(--green-600);
  font-size: var(--text-sm); font-weight: 700;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.team-teaser__toggle:hover,
.team-teaser__toggle[aria-expanded="true"] { background: var(--green-600); color: var(--paper); transform: scale(1.04); }

/* Full-width band, now a grid ITEM of .grid-team itself (main.js moves it
   in the DOM, right after whichever row holds the open person), not a
   sibling fixed below the whole grid. At 2 columns that grid used to put
   the band under BOTH rows always, so opening the top row's person made
   the band land flush against the row below instead — reading as if the
   text belonged to them. grid-column spans it full width regardless of
   which row it's in. The height transition runs on grid-template-rows
   (0fr -> 1fr), not max-height guesswork, so it never clips a bio that's
   longer than expected; opacity on the inner content rides along so the
   reveal doesn't feel like a snap. margin-top is 0, not --space-8: as a
   grid item the row gap already provides that spacing, and adding both
   doubled it. */
.team-band { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); grid-column: 1 / -1; margin-top: 0; position: relative; }
.team-band.is-open { grid-template-rows: 1fr; }
.team-band__row { overflow: hidden; min-height: 0; }
/* Sequenced, not simultaneous: the pointer taps in first (120ms), the box
   grows out of it a beat later (translateY + scale, not scale alone — a
   pure vertical scale read as a squeeze fighting the grid-rows height
   reveal underneath it; rising in from the pointer reads as one motion
   instead of two competing ones), and the text inside settles in last,
   after the box has mostly opened, so nothing pops in all at once.
   margin-top: 22px makes room, inside .team-band__row's own
   overflow:hidden (needed for the grid-rows height reveal), for the
   border path's pointer notch (18px tall) and this element's own
   translateY(-10px) entrance — both poke above the box's nominal top, and
   without this gutter .team-band__row was clipping them clean off.
   A real CSS border, not an SVG path traced to match it: three rounds of
   hand-built SVG (stroke-dasharray draw-in, then a plain fade, bigger
   corners, a bigger notch) never rendered as cleanly as the native border
   every other card on this site already uses — a browser's own
   border-radius is simply better at this than a hand-rolled arc path
   will ever be. */
.team-band__inner {
  position: relative; margin-top: 10px;
  opacity: 0; transform: scale(.96) translateY(-6px); transform-origin: var(--ptr-x, 50%) top;
  transition: opacity 320ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms;
  background: var(--green-50); border: 1.75px solid var(--green-600);
  border-radius: var(--radius-lg);
}
.team-band.is-open .team-band__inner { opacity: 1; transform: scale(1) translateY(0); }

/* The pointer: one solid triangle, not the classic two-triangle outlined
   tail (tried first) — the inner triangle sat 1.75px below the outer
   one's own tip so it would leave an outline, but that same offset left
   a thin solid-green sliver uncovered along the BASE too, reading as a
   stray line sitting right on top of the card's own border. A single
   filled triangle in the border's own colour has no inner shape to
   misalign, and its base simply continues the line below it. */
.team-band__pointer {
  position: absolute; top: 1px; left: var(--ptr-x, 50%); margin-left: -9px;
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 9px solid var(--green-600);
  opacity: 0; transition: opacity 220ms var(--ease-out) 40ms; pointer-events: none;
}
.team-band.is-open .team-band__pointer { opacity: 1; }
/* Closing uses its own fast, undelayed transition instead of inheriting
   the opening one: the 220ms entrance delay (text settles in last, after
   the box has mostly opened) reversed on close would leave the text
   sitting at full opacity while the row around it is already shrinking —
   clipped by .team-band__row's overflow:hidden before its own fade even
   starts. Fading out immediately keeps it in step with the collapse. */
.team-band__text { opacity: 0; transform: translateY(8px); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.team-band.is-open .team-band__text { opacity: 1; transform: translateY(0); transition: opacity 300ms var(--ease-out) 220ms, transform 300ms var(--ease-out) 220ms; }

.team-band__panel { padding: var(--space-8); }
.team-band__panel[hidden] { display: none; }
.team-band__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); letter-spacing: var(--ls-tight); }
.team-band__role { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--turq-800); margin-top: 4px; }
/* A fixed px cap, not ch: Buvera's digit glyph (what `ch` measures) runs
   much narrower than its average running-text character, so `62ch` was
   resolving to ~90+ real characters per line instead of 62. */
.team-band__text p { margin: 12px 0 0; font-size: var(--text-base); line-height: var(--lh-body); color: var(--stone-700); max-width: 552px; }
.team-band__linkedin { display: inline-flex; align-items: center; justify-content: center; margin: 8px 0 0 -11px; padding: 11px; color: var(--turq-800); border-radius: 8px; transition: color 160ms var(--ease-out); }
.team-band__linkedin:hover { color: var(--green-950); }
@media (max-width: 640px) {
  .team-band__panel { padding: var(--space-6); }
  .team-band__text p { font-size: var(--text-xs); line-height: var(--lh-relaxed); }
}
@media (prefers-reduced-motion: reduce) {
  .team-band, .team-band__inner, .team-band__text, .team-band__pointer, .team-teaser__photo { transition: none; }
}

/* territory index cards */
.territory-card {
  text-align: left; background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: 0; overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column; width: 100%;
}
.territory-card--active { background: var(--green-400); color: var(--green-950); cursor: pointer; }
.territory-card--pending { background: var(--white); color: var(--stone-700); cursor: default; }
.territory-card__photo { display: block; height: 140px; padding: 16px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: var(--ls-wide); line-height: 1.8; position: relative; overflow: hidden; }
.territory-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.territory-card--active .territory-card__photo { background: var(--stone-700); color: var(--paper); }
.territory-card--pending .territory-card__photo { background: var(--sand-300); color: var(--stone-700); }
.territory-card__body { display: flex; flex-direction: column; gap: 12px; padding: 28px; flex: 1; }
.territory-card__status { display: flex; align-items: center; gap: 10px; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; }
.territory-card--active .territory-card__status { color: var(--green-950); }
.territory-card--pending .territory-card__status { color: var(--turq-800); }
.territory-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); letter-spacing: var(--ls-tight); }
.territory-card__loc { font-size: var(--text-sm); opacity: .85; }

/* registro / news teaser */
.news-card { text-align: left; background: none; border: none; padding: 0; color: var(--green-950); display: flex; flex-direction: column; gap: 14px; }
.news-card__thumb { aspect-ratio: 3/2; width: 100%; }
.news-card__meta { font-size: var(--text-xs); color: var(--stone-600); font-weight: var(--fw-semibold); }
.news-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); line-height: 1.15; letter-spacing: var(--ls-tight); }
.news-card__lead { font-size: var(--text-sm); color: var(--stone-700); }

/* timeline / etapas rows */
.step-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sand-300); align-items: center; }
.step-row__label { font-size: var(--text-sm); }
.step-row__status { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; }

/* closing CTA cards */
.cta-card { border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.cta-card--dark { background: rgba(7,26,18,0.72); border: 1px solid var(--border-on-dark); }
.cta-card--light { background: var(--white); border: 1px solid var(--sand-200); }
.cta-card--brand { background: var(--green-800); color: var(--paper); }
.cta-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-lg); line-height: 1.04; letter-spacing: var(--ls-tighter); }
.cta-card p { margin-top: 12px; color: var(--stone-on-dark); font-weight: var(--fw-semibold); font-size: var(--text-sm); max-width: 40ch; }
.cta-card--light p { color: var(--stone-700); }

/* "O desafio" — four beats, not one continuous column: the opening
   (globe + headline + tipping-point line), the pressure, the three
   threats, the turn — each its own row with real air between it and the
   next. See .desafio__anel below for the photo disc that sits beside
   them. */
.desafio-content { position: relative; z-index: 1; }
.desafio-row { margin-top: var(--space-16); }
.desafio-upper-beat { max-width: 54%; }
/* No max-width in ch here (see the note on .desafio-lead below for why):
   .ig__text is already a flex:1 column inside the upper-beat, so it fills
   exactly the space left after the globe — a second, narrower cap on top
   of that forced the sentence into 6+ short lines instead of the 2-3 its
   column width actually allows. font-size sits between --text-display-lg
   and --text-display-xl, not on xl itself: xl's own 60px+ sizes still
   wrapped the sentence past what reads as "the same line" as the globe
   beside it, even at the widened column. */
.desafio-chamada { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3.25rem); }

/* Photo discs (.desafio__anel, .visao__anel): a disc bleeding off the right
   edge of the viewport. Two rules:
   1. It never reaches the blocks around it: the wrapper stops one --section-y
      above the section's end and the disc is never taller than the wrapper.
   2. It does not keep growing with the screen (capped at 780px). Wider screens
      REVEAL more of it: half at laptop widths, the whole circle from ~2200px. */
.desafio__anel, .visao__anel {
  position: absolute; top: var(--space-12); bottom: var(--section-y); right: 0; left: 0;
  container-type: size; z-index: 0; pointer-events: none;
}
.desafio__anel img, .visao__anel img {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; right: -310px; /* fallback without cq units */
  width: min(100cqh, 780px, 76vw); height: min(100cqh, 780px, 76vw);
  right: calc(-1 * clamp(-80px, (2200px - 100vw) * 0.4, min(50cqh, 390px, 38vw)));
  object-fit: cover; display: block; border-radius: 50%;
}
.visao-texto { max-width: min(720px, 56%); position: relative; z-index: 1; }
@media (min-width: 921px) {
  .section--desafio, .section--visao { min-height: min(840px, 64vw); }
  .section--visao { display: flex; flex-direction: column; justify-content: center; }
}
/* Entrance: slow fade sliding in from the right. Opacity runs on a plain
   `ease` so the disc doesn't pop in before it has finished sliding. */
.desafio__anel[data-reveal], .visao__anel[data-reveal] {
  opacity: 0; transform: translateX(260px);
  transition: opacity 3200ms ease, transform 3200ms var(--ease-out);
}
.desafio__anel[data-reveal].is-in, .visao__anel[data-reveal].is-in { opacity: 1; transform: none; }
/* Below 920px the disc drops into the flow, below the text, edge to edge. */
@media (max-width: 920px) {
  .desafio-upper-beat, .visao-texto { max-width: 100%; }
  .desafio__anel, .visao__anel {
    position: static; container-type: normal;
    margin: var(--space-12) calc(-1 * var(--pad-inline)) 0;
  }
  .desafio__anel img, .visao__anel img {
    position: static; transform: none; width: 100%; height: auto; aspect-ratio: 1;
  }
  .desafio__anel[data-reveal], .visao__anel[data-reveal],
  .desafio__anel[data-reveal].is-in, .visao__anel[data-reveal].is-in { opacity: 1; transform: none; transition: none; }
}

/* Globe infographic: the globe (.ig, no arrow — see the inline SVG,
   #chamada was dropped) sits beside the headline, vertically centred
   against it (align-items:center below) — a fixed, intrinsic-height
   diagram (globe + icon triangle, no connecting line any more), not
   stretched to match the headline's own height. It was stretched that
   way once (a flex:1 line soaking up the leftover space so the icon
   row landed flush on the headline's last line) but that read as a
   long, mostly-empty connector with nothing at the other end of it to
   justify its length. Top-aligned was tried after that and read as
   unbalanced too, in the other direction: the diagram is now taller
   than the headline at most viewport widths, so flex-start left its
   own bottom hanging well past the headline's last line. Centering
   two differently-sized, fixed-height boxes against each other is the
   plain, unstretched case align-items:center is for. */
.ig-beat { display: flex; align-items: center; gap: var(--space-6); margin-bottom: var(--space-4); }
/* .ig's own box has to include the icon triangle's drop below the
   globe for align-items:center (above) to center against the RIGHT
   height — the triangle itself is position:absolute (see
   .ig__stem-row below), which normally contributes nothing to a
   parent's layout size, so flexbox was centering using just the
   globe's height and silently ignoring ~80px of triangle hanging
   below it. --globe-h mirrors .ig__globo's own width/aspect-ratio (no
   way to read a rendered size back into layout otherwise) so .ig's
   explicit height can include that drop explicitly: globe height +
   stem-row-top (38px) + its own gap to the bottom node (3px) + the
   bottom node itself (38px). */
.ig {
  --globe-w: clamp(110px, 10vw, 180px);
  --globe-h: calc(var(--globe-w) * 660 / 670);
  flex: none; position: relative; width: var(--globe-w); height: calc(var(--globe-h) + 38px + 3px + 38px);
}
.ig__globo { width: 100%; height: auto; color: var(--text-strong); display: block; }
.ig__text { flex: 1; min-width: 0; }

/* Three nodes under the globe for what the headline's "10% da
   biodiversidade" claim actually covers: the species themselves, the
   flora they depend on, and the water the forest regulates. No
   connecting line down from the ring any more — it read as clutter
   crossing the globe's own artwork rather than a helpful link, so the
   triangle just sits on its own under the sphere instead.
   The America do Sul shape sits well above the globe's own graticule-
   circle centre, not dead on it (309.8, 270 — see the translate() on
   the America do Sul + ig-marca group in index.html, which moves the
   continent AND the ring together, preserving the ring's position
   relative to the continent).
   .ig__stem-row's left:46.27% is a PERCENT of .ig's WIDTH (the globe's
   own width — left:right is unaffected by the height change above —
   matching the ring's cx/670, where the continent, and so the ring,
   now sits) so the triangle still centres under the same point as the
   ring, even with no line drawn between them. top is var(--globe-h)
   exactly, not 100% — .ig's own box is now taller than the globe on
   purpose (see .ig above), so 100% would land past the globe AND past
   the triangle's own reserved space, not at the globe's edge. That
   edge already clears the visible sphere (its circle ends around
   92.7% of the globe's own height, baked into the viewBox with a
   little margin below it already) without needing the row pushed
   further down. */
.ig__stem-row {
  position: absolute; left: 46.27%; top: var(--globe-h); transform: translateX(-50%);
}
.ig__stem-row-top { display: flex; gap: 3px; }
/* .ig__stem-row's own box is sized by .ig__stem-row-top alone — the
   bottom node is position:absolute, so it's out of flow and doesn't
   widen it — so left:50% below positions the bottom node dead centre
   under the TOP PAIR specifically, not a guess at the group's overall
   centre (what actually read as off-centre before: a 3rd flex/grid
   item centers on the group's own box, which isn't always the same
   point). Gap below the pair matches the pair's own internal gap
   (3px) exactly, for one consistent spacing in both directions. */
.ig__stem-row > .ig__stem-node {
  position: absolute; left: 50%; top: 100%; margin-top: 3px;
  transform: translateX(-50%) translateY(-18px);
}
.ig.is-in .ig__stem-row > .ig__stem-node { transform: translateX(-50%) translateY(0); }
/* Entrance is a vertical slide (down into place) + fade, same
   --ease-out curve as the rest of the reveal system. Starts once the
   ring itself has finished (its own opacity/transform settle at
   2400ms, animations.css), staggered 110ms apart. */
.ig__stem-node {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--grade-globo); border-radius: 50%; background: var(--paper); color: var(--green-600);
  opacity: 0; transform: translateY(-18px);
  transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out);
}
.ig__stem-node .icon { width: 19px; height: 19px; stroke-width: 1.6; }
.ig.is-in .ig__stem-node { opacity: 1; transform: translateY(0); }
.ig.is-in .ig__stem-row-top > :nth-child(1) { transition-delay: 2400ms; }
.ig.is-in .ig__stem-row-top > :nth-child(2) { transition-delay: 2510ms; }
.ig.is-in .ig__stem-row > .ig__stem-node { transition-delay: 2620ms; }

/* Mobile override below must stay AFTER the base .ig__stem-row rules
   above — same specificity (single class), so without the media
   query's rules coming later in source order, the always-applying
   base .ig__stem-row{position:absolute} would win over this one at
   narrow widths regardless of the media query matching. */
@media (max-width: 480px) {
  .ig-beat { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  /* Stacked above the headline instead of squeezed beside it, the
     globe has the section's full width to itself here — the desktop
     clamp (topping out at 180px, sized to sit next to text) reads as
     needlessly small once nothing is competing with it for room.
     height:auto (was an explicit globe-h + triangle-footprint calc,
     needed to center-align .ig against the headline on desktop) — the
     row below is back in normal flow here instead of position:
     absolute, so .ig's box can just size to its actual stacked
     content again; no headline-centering math applies once .ig-beat
     is a column anyway. */
  .ig { --globe-w: clamp(180px, 55vw, 280px); height: auto; }
  /* One row of 3, not the desktop inverted triangle — spans exactly
     the globe's own width (space-between), not the triangle's
     narrower footprint. .ig__stem-row-top (display:contents) unwraps
     the first two nodes so all three become direct flex items of
     .ig__stem-row together — display:contents only changes box
     generation, not actual DOM parentage, so the entrance-animation
     selectors elsewhere (keyed off that real parentage) still match
     correctly. */
  .ig__stem-row {
    position: static; left: auto; top: auto; transform: none;
    display: flex; justify-content: space-between; align-items: center;
    width: var(--globe-w); margin-top: 12px;
  }
  .ig__stem-row-top { display: contents; }
  .ig__stem-row > .ig__stem-node { position: static; margin-top: 0; transform: translateY(-18px); }
  .ig.is-in .ig__stem-row > .ig__stem-node { transform: translateY(0); }
}

/* The two tipping-point paragraphs sit loose on the paper ground — no
   card, no background — max-width matches .desafio-upper-beat's own
   54%, so they still line up with the globe + headline above. */
.desafio-block { max-width: 54%; }

/* Same type treatment as .pillar__text (Nossa abordagem's own item
   descriptions) — this block now reads as body copy, not a headline
   bookend, so it borrows that section's description style rather than
   inventing its own. Paragraph-to-paragraph rhythm matches "Visão"'s
   own two-paragraph lead exactly (space-6) — one shared paragraph
   standard across the site instead of a bigger one-off gap here. */
.desafio-lead { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--stone-700); }
.desafio-lead + .desafio-lead { margin-top: var(--space-6); }
/* Same type treatment as .pillar__title (Nossa abordagem's own item
   titles) — the close reads as part of the same body-text beat as the
   two paragraphs above it, not a second display-headline bookend.
   margin-top matches .desafio-lead + .desafio-lead exactly (space-6,
   the "Visão" paragraph standard) instead of its own larger value, so
   every paragraph-to-paragraph step in this block shares one rhythm;
   weight bumped to bold — this is the line the whole beat has been
   building to, so it should read heavier than the two leads above it,
   not the same semibold. */
.desafio-row--4 { margin-top: var(--space-6); max-width: 54%; font-size: var(--text-lg); font-weight: var(--fw-bold); }
@media (max-width: 920px) {
  .desafio-block, .desafio-row--4 { max-width: 100%; }
}

/* icon */
.icon { width: 28px; height: 28px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* state abbreviation badge — sits in an icon slot where no icon concept
   fits (a município chip), same 28px box the icons keep. */
.state-badge {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: none;
  border: 1.5px solid var(--green-600); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--green-600);
}

/* "Nossa abordagem" — six pillars. Single column below 700px (each heading
   at the full content width instead of a ~190px sliver); two columns from
   700px, where the measure is wide enough to hold the longer headings
   without the five-line wraps a 2-up grid forced under that width. The
   icon stays flex:none at the left of the text regardless of column count. */
.pillars { display: grid; grid-template-columns: 1fr; }
.pillar { display: flex; gap: 18px; padding: 32px 0; border-top: 1px solid var(--border-subtle); }
/* First pillar carries no border AND no padding-top: the section's own
   .title-gap already sets the distance from "Nossa abordagem" down to
   this row, same as every other section's title-to-content gap — the
   32px here is for the rhythm BETWEEN pillars, not a second gap stacked
   on top of the title-gap, which otherwise doubled it (72px vs every
   other section's 40). */
.pillar:first-child { border-top: none; padding-top: 0; }
.pillar__icon { width: 30px; height: 30px; flex: none; color: var(--green-600); }
.pillar__title { font-size: var(--text-lg); font-weight: var(--fw-semibold); margin: 0 0 8px; }
.pillar__text { margin: 0; color: var(--stone-700); font-size: var(--text-sm); font-weight: var(--fw-medium); }
@media (min-width: 700px) {
  .pillars { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .pillar:nth-child(2) { border-top: none; padding-top: 0; }
}

/* inline list marker (desafio bullet lists) */
.list-mark { width: 12px; height: 2px; margin-top: 11px; flex: none; background: var(--mark-on-dark); }

/* org chart legend swatches */
.org-legend i.is-community { background: var(--green-500); }
.org-legend i.is-biohma { background: var(--sand-300); }

/* governance flow (index.html "O modelo" teaser) — three roles as a
   connected chain instead of cards, no border/panel around it. --flow-pad
   stays as a variable (0 by default) so the node/line offset math below
   still works if a padded variant is ever needed again. */
.model-flow {
  --flow-pad: 0px;
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--space-10); height: 100%;
}
.model-flow__line {
  position: absolute; top: calc(var(--flow-pad) + 26px); bottom: calc(var(--flow-pad) + 26px); left: calc(var(--flow-pad) + 25px); width: 2px;
  background: var(--border-subtle); z-index: 0;
}
.model-flow__item { position: relative; z-index: 1; display: flex; gap: var(--space-5); align-items: flex-start; }
.model-flow__node {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
}
.model-flow__node .icon { width: 24px; height: 24px; }
.model-flow__node--fill { background: var(--green-500); color: var(--green-950); }
.model-flow__node--outline { background: var(--paper); border: 1.5px solid var(--border-subtle); color: var(--stone-600); }
.model-flow__node--dark { background: var(--green-950); color: var(--paper); }
.model-flow__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); padding-top: 8px; }
.model-flow__kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--stone-600); margin-top: 3px; }
.model-flow__text { margin-top: 8px; color: var(--stone-700); font-size: var(--text-sm); max-width: 38ch; }

/* Horizontal variant: the three roles side by side instead of stacked, with
   the connecting line running left-to-right. Only above ~700px — three
   node+text columns squeezed into a phone-width row stops being readable,
   so narrower viewports fall back to the vertical chain above unchanged. */
@media (min-width: 700px) {
  .model-flow--horizontal { flex-direction: row; height: auto; gap: clamp(20px, 3vw, 48px); }
  .model-flow--horizontal .model-flow__line {
    top: calc(var(--flow-pad) + 26px); bottom: auto; left: var(--flow-pad); right: var(--flow-pad); width: auto; height: 2px;
  }
  .model-flow--horizontal .model-flow__item { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
  .model-flow--horizontal .model-flow__title { padding-top: 0; }
  .model-flow--horizontal .model-flow__text { max-width: 26ch; margin-inline: auto; }
}

/* outlined panel — replaces a near-paper tint with a hairline, not a fill */
.panel-outline {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}
.pill-outline {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 14px 16px;
}

/* territory map panel + zoom controls (TI Baú) — real Leaflet map over Esri
   World Imagery, see js/map.js. Sits beside .bau-photo-panel in
   .grid-bau-3col (info | map | photo). */
.map-panel {
  background: var(--green-950); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; min-height: 420px;
}
.map-leaflet-mount { position: absolute; inset: 0; background: var(--green-950); }
.map-leaflet-mount .leaflet-control-attribution {
  background: rgba(7,26,18,.72); color: var(--stone-on-dark); font-size: 10px; padding: 2px 6px; border-radius: var(--radius-sm);
}
.map-leaflet-mount .leaflet-control-attribution a { color: var(--stone-on-dark); }

.bau-photo-panel {
  background: var(--green-950); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; min-height: 420px;
}
.bau-photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* village pin: same maloca glyph as the rest of the icon set, unboxed —
   sits directly on the imagery, legible via drop-shadow instead of a chip. */
.map-pin { display: flex; align-items: center; gap: 6px; transform: translate(-10px, -22px); pointer-events: none; }
.map-pin__mark {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  color: var(--paper); filter: drop-shadow(0 1px 2px rgba(7,26,18,.85)) drop-shadow(0 0 5px rgba(7,26,18,.5));
}
.map-pin__mark .icon { width: 20px; height: 20px; stroke-width: 2; }
.map-pin__label {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--paper);
  white-space: nowrap; text-shadow: 0 1px 3px rgba(7,26,18,.9), 0 0 8px rgba(7,26,18,.6);
}

.map-zoom-controls { position: absolute; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 4px; z-index: 500; }
/* Same stroke weight as .icon. In/out stack as a single rounded control:
   each button rounds only its outer corners, square where they meet. */
.map-zoom-btn {
  width: 36px; height: 36px; background: var(--paper); color: var(--green-950);
  border: none; cursor: pointer; display: grid; place-items: center;
}
.map-zoom-btn .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.map-zoom-btn--in { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.map-zoom-btn--out { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* Decorative weave band dropped into the blank paper gap between two
   stacked blocks that both sit on the paper ground — that gap is
   the EARLIER section's own bottom padding (.section + .section
   zeroes the next one's top padding, see layout.css), height exactly
   var(--section-y). --tx-h is the band's own rendered height,
   computed from --tx-w via the source SVG's fixed aspect ratio
   (261.54/5978.99) instead of left to height:auto, so `bottom` can
   solve for an even split of the leftover space: (--section-y -
   --tx-h) / 2 above AND below the band. --tx-extra is 0 for a plain
   seam; #parceiros carries its own extra margin-block beyond the
   normal section rhythm (see layout.css), which sits OUTSIDE this
   box on whichever side borders #parceiros — .textura-divisor--pb
   feeds that same amount in here so the band still splits the full
   visible gap evenly instead of just its own section's padding,
   which otherwise reads lopsided next to #parceiros specifically.
   Left edge matches the content column (--pad-inline), same as
   everything else in the section, and fades out via mask rather than
   a flat color stop, so it blends into whatever --paper tone sits
   behind it instead of cutting off hard. */
/* Hidden: the decorative band itself was removed, but it was always
   position:absolute (never part of document flow), so hiding it here
   doesn't change any spacing — the blank gap between blocks it used
   to sit in is the section's own --section-y padding, untouched. */
.textura-divisor {
  display: none;
  --tx-w: clamp(720px, 90vw, 1800px);
  --tx-h: calc(var(--tx-w) * 0.043743);
  --tx-extra: 0px;
  position: absolute; left: var(--pad-inline);
  bottom: calc((var(--section-y) - var(--tx-h) - var(--tx-extra)) / 2);
  width: var(--tx-w); height: var(--tx-h);
  z-index: 0; pointer-events: none; line-height: 0;
}
.textura-divisor--pb { --tx-extra: var(--space-8); }
/* Cancels the generic [data-reveal] fade-up (opacity:0 + translateY)
   from animations.css — the band's own entrance is the clip-path wipe
   below, not a second motion stacked on top of it. */
.textura-divisor[data-reveal] { opacity: 1; transform: none; }
.textura-divisor img {
  width: 100%; height: 100%; display: block;
  filter: url(#tx-thin);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 38%, transparent 80%);
  mask-image: linear-gradient(to right, black 0%, black 38%, transparent 80%);
}
/* "Being drawn": a left-to-right wipe via clip-path (the mask above
   handles the right-edge fade-to-paper; this handles the reveal over
   time) — inset's right value walks from 100% (fully clipped, nothing
   showing) to 0 (fully shown) once the band scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .textura-divisor img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 4500ms var(--ease-out);
  }
  .textura-divisor.is-in img { clip-path: inset(0 0 0 0); }
}
@media (max-width: 760px) { .textura-divisor { display: none; } }


/* ---------- Legal pages, footer legal line, form notice, consent bar ---------- */
.legal { max-width: 68ch; font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--text-body); }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: var(--lh-heading-wrap); letter-spacing: var(--ls-tighter); margin: var(--space-12) 0 var(--space-3); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 var(--space-4); max-width: none; }
.legal ul { margin: 0 0 var(--space-4); padding-left: 1.25em; list-style: disc; }
.legal li { margin-bottom: var(--space-2); }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.form-note { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--text-muted); }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.site-footer__legal { display: inline-flex; align-items: center; flex-wrap: wrap; column-gap: var(--space-2); }
.site-footer__legal [data-cookie-prefs] { display: inline-flex; align-items: center; column-gap: var(--space-2); }
.site-footer__legal [hidden] { display: none; }
.site-footer__legal a, .link-btn { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color var(--dur-base) var(--ease-standard); }
.link-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.site-footer__legal a:hover, .link-btn:hover { color: var(--paper); }
@media (max-width: 760px) {
  .site-footer__legal a, .site-footer__legal .link-btn { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; }
}

.consent-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5);
  padding: var(--space-2) var(--pad-inline); background: var(--green-950); color: var(--paper);
  border-top: 1px solid var(--border-on-dark); font-size: var(--text-xs); line-height: 1.45; font-weight: var(--fw-semibold);
}
.consent-bar[hidden] { display: none; }
.consent-bar:focus { outline: none; }
.consent-bar__text { margin: 0; flex: 1 1 340px; max-width: none; }
.consent-bar__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-bar__actions { display: flex; gap: var(--space-2); }
.consent-bar__btn {
  appearance: none; min-height: 36px; padding: 0 var(--space-5); border: 1px solid color-mix(in srgb, var(--paper) 65%, transparent);
  border-radius: var(--radius-sm); background: transparent; color: var(--paper); font: inherit; font-weight: 600; cursor: pointer;
}
.consent-bar__btn:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); }
.consent-bar__btn:focus-visible, .consent-bar__text a:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
@media (max-width: 760px), (pointer: coarse) {
  .consent-bar { padding-block: var(--space-3); }
  .consent-bar__actions { width: 100%; }
  .consent-bar__btn { flex: 1 1 0; min-height: 44px; }
}
html.has-consent-bar body { padding-bottom: var(--consent-h, 0px); }

/* Partners block and its links are hidden for now (remove `hidden` to bring back). */
[data-parceiros-oculto][hidden], #parceiros[hidden] { display: none !important; }
