/* =====================================================================
   SOUTO MAIOR, AMORIM & VIANA — REIDI
   "Holografia dourada em vácuo cinematográfico"
   Deep warm-black space · glowing gold light-constructs · sci-fi HUD
   ===================================================================== */

/* ------------------------------------------------------------------
   1) RESET / TOKENS / BASE
   ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

:root {
  /* surfaces */
  --bg:#38383B;
  --bg-deep:#313134;
  --panel:#28282B;

  /* ink */
  --ink:#F2F0E9;
  --muted:#C4C2BA;
  --dim:#9B998F; /* clareado p/ manter ≥4.5:1 sobre o novo fundo cinza */

  /* gold system */
  --gold:#C0890F;
  --gold-bright:#E6B84A;
  --gold-soft:#F0CE7A;

  /* lines / glass */
  --line:rgba(192,137,15,.18);
  --glass-bg:rgba(30,30,34,.55);
  --glass-brd:rgba(230,184,74,.22);

  /* type — família única: Hanken Grotesk (display, corpo e rótulos/HUD) */
  --font-display:'Hanken Grotesk', system-ui, sans-serif;
  --font-body:'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:'Hanken Grotesk', system-ui, sans-serif;

  /* layout */
  --maxw:1180px;
  --gutter:clamp(1.25rem, 4vw, 2.75rem);
  --rhythm:clamp(6rem, 12vh, 10rem);
  --radius:20px;
  --radius-sm:12px;

  /* motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-soft:cubic-bezier(.4,0,.2,1);

  /* nav */
  --nav-h:74px;
}

/* Algarismos tabulares — mantém a largura estável dos números
   (estabilidade antes garantida pela fonte monoespaçada). */
.counter,
.stat-block__big,
.metric__num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--muted);
  background-color: var(--bg-deep);
  /* fallback warm-black space behind the WebGL canvas */
  background-image:
    radial-gradient(120% 90% at 78% 8%, rgba(192,137,15,.10), transparent 55%),
    radial-gradient(110% 80% at 12% 100%, rgba(230,184,74,.06), transparent 50%),
    linear-gradient(180deg, #38383B 0%, #343437 45%, #313134 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

strong { color: var(--ink); font-weight: 600; }

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

ul { list-style: none; }

::selection {
  background: var(--gold);
  color: #0A0A0C;
}

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

.skip-link {
  position: fixed;
  top: -120%;
  left: 1rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--gold);
  color: #0A0A0C;
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 8px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------
   2) ATMOSPHERE — canvas, grain, vignette
   ------------------------------------------------------------------ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 110% at 50% 42%, transparent 52%, rgba(24,24,28,.38) 84%, rgba(18,18,22,.6) 100%);
}

/* ---- READABILITY SCRIM ----------------------------------------------------
   Darkens the LEFT/CENTER reading column (where copy lives) while leaving the
   RIGHT third lighter, so the gold 3D motif still glows through on the right.
   Fixed, non-interactive, sits on the atmosphere layer (z-index 1) above the
   WebGL canvas (z-index 0) and below content (z-index 2). This is the primary
   fix for the "polluted background" complaint. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7,6,10,.78) 0%,
      rgba(7,6,10,.62) 28%,
      rgba(7,6,10,.30) 46%,
      rgba(7,6,10,0) 58%
    ),
    radial-gradient(70% 60% at 22% 50%, rgba(7,6,10,.34), transparent 70%);
}
/* On narrow viewports the motif is hidden/reduced, so darken more evenly for
   maximum legibility of the single-column layout. */
@media (max-width: 768px) {
  body::before {
    background:
      linear-gradient(
        180deg,
        rgba(7,6,10,.55) 0%,
        rgba(7,6,10,.42) 40%,
        rgba(7,6,10,.55) 100%
      );
  }
}

/* ------------------------------------------------------------------
   3) LOADER
   ------------------------------------------------------------------ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(192,137,15,.08), transparent 70%),
    var(--bg-deep);
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__mark .logo-mark {
  width: 86px;
  height: auto;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 14px rgba(230,184,74,.45));
  animation: loaderGlow 2.6s var(--ease-soft) infinite;
}
/* raster/vector monogram variant inside the loader */
#loader .brand__logo {
  height: 72px;
  filter: drop-shadow(0 0 14px rgba(230,184,74,.45));
  animation: loaderGlow 2.6s var(--ease-soft) infinite;
}
@keyframes loaderGlow {
  0%,100% { filter: drop-shadow(0 0 10px rgba(230,184,74,.3)); transform: translateY(0); }
  50%     { filter: drop-shadow(0 0 22px rgba(240,206,122,.6)); transform: translateY(-4px); }
}

.loader__bar {
  position: relative;
  width: min(240px, 60vw);
  height: 2px;
  background: rgba(192,137,15,.16);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar span {
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold-soft), transparent);
  box-shadow: 0 0 14px rgba(230,184,74,.55);
  animation: loaderSweep 1.5s var(--ease-soft) infinite;
}
@keyframes loaderSweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

.loader__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------------
   4) BRAND / LOGO / NAV
   ------------------------------------------------------------------ */
.logo-mark {
  width: 36px;
  height: auto;
  color: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--gold-bright);
}
.brand__mark {
  display: inline-flex;
  filter: drop-shadow(0 0 8px rgba(230,184,74,.35));
}

/* Raster/vector monogram (PNG or SVG <img>). Coexists with the inline
   .brand__mark SVG above; whichever the markup uses will render. */
.brand__logo {
  height: clamp(34px, 4.4vw, 46px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(230,184,74,.35));
}
/* If only the FULL logo art is available, crop to the monogram on the left. */
.brand__logo--mark {
  width: clamp(40px, 6vw, 52px);
  height: clamp(34px, 4.4vw, 46px);
  object-fit: cover;
  object-position: left center;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .12em;
  color: var(--ink);
}
.brand__text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: .15rem;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(8,7,11,.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-nav.is-scrolled {
  background: rgba(8,7,11,.74);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-menu a {
  position: relative;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .35rem 0;
  transition: color .3s var(--ease);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a.is-active::after { transform: scaleX(1); }
.nav-menu a.is-active { color: var(--gold-soft); }

.nav-cta {
  padding: .55rem 1rem !important;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  color: var(--gold-soft) !important;
  background: rgba(192,137,15,.08);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: rgba(230,184,74,.16);
  border-color: var(--gold-bright);
  color: var(--gold-soft) !important;
}

/* hamburger */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.6px;
  background: var(--gold-soft);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .25s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ------------------------------------------------------------------
   5) BUTTONS
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.btn--gold {
  color: #14110A;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-bright) 45%, var(--gold) 100%);
  box-shadow: 0 6px 22px rgba(192,137,15,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(230,184,74,.42), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--gold:active { transform: translateY(0); }

.btn--ghost {
  color: var(--gold-soft);
  border-color: var(--glass-brd);
  background: rgba(192,137,15,.04);
}
.btn--ghost:hover {
  background: rgba(230,184,74,.12);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   6) LAYOUT PRIMITIVES
   ------------------------------------------------------------------ */
main { position: relative; z-index: 2; }

.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--rhythm) var(--gutter);
}
.section--tight { padding-block: clamp(3rem, 7vh, 5rem); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section__title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section__title .grad,
.hero__title .grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 45%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section__intro {
  margin-top: 1.4rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------
   7) GLASS PANELS (shared look)
   ------------------------------------------------------------------ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow:
    0 24px 60px -28px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
/* faint gold corner accent */
.glass::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: radial-gradient(circle at top right, rgba(230,184,74,.18), transparent 70%);
  pointer-events: none;
}
/* inner hairline highlight */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(240,206,122,.12);
  pointer-events: none;
}

/* ------------------------------------------------------------------
   8) HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 8vh;
  max-width: var(--maxw);
  margin-inline: auto;
}
.hero__inner {
  position: relative;
  max-width: 920px;
}
/* faint local darkening so the headline/lead stay legible over the canvas */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: -8% -12% -8% -16%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(75% 90% at 24% 50%, rgba(7,6,10,.46), transparent 72%);
}
.hero__title,
.hero__lead { text-shadow: 0 1px 22px rgba(7,6,10,.55); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(.66rem, .6rem + .3vw, .76rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  max-width: 56ch;
  line-height: 1.7;
}

.hero__title {
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 2.4rem;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--muted);
}
/* REIDI acronym expansion, inlined into the lead — keeps the eyebrow's gold */
.lead-acronym { color: var(--gold); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* SETORES — title on the LEFT, sector sub-items in a grid on the RIGHT */
.hero__sectors-block {
  position: relative;
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.35rem;
  padding: .9rem 1.15rem;
  border-radius: var(--radius-sm);
}
/* faint local backdrop behind the whole strip (legibility over the canvas) */
.hero__sectors-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(100deg, rgba(7,6,10,.66), rgba(7,6,10,.4) 70%, rgba(7,6,10,.18));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
/* differentiated title — white, bold, two lines ("Setores / Beneficiados") */
.hero__sectors-title {
  width: min-content;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .9rem + .7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(7,6,10,.5);
}

/* the sector sub-items grid (4 equal columns) */
.hero__sectors {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: .5rem .55rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: clamp(.66rem, .6rem + .25vw, .72rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
/* (the SETORES label moved out of the strip → .hero__sectors-title) */
.hero__sectors li {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(192,137,15,.05);
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
/* line-art glyph before each label (1px gold strokes, currentColor) */
.sector-ico {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--gold);
  opacity: .85;
  transition: color .3s var(--ease), opacity .3s var(--ease),
              filter .3s var(--ease), transform .3s var(--ease);
}
.hero__sectors li:hover {
  color: var(--gold-soft);
  border-color: var(--glass-brd);
  background: rgba(230,184,74,.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(230,184,74,.5),
              inset 0 1px 0 rgba(240,206,122,.14);
}
.hero__sectors li:hover .sector-ico {
  color: var(--gold-soft);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(230,184,74,.55));
}
@media (prefers-reduced-motion: no-preference) {
  .hero__sectors li:hover .sector-ico { transform: scale(1.08); }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 3vh;
  display: none; /* ocultado: o FAB "Converse agora" agora ocupa o canto inferior direito */
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  color: var(--dim);
}

/* ------------------------------------------------------------------
   MELHORIAS — mapa do Brasil (métrica), exemplo do simulador, FAB chat
   ------------------------------------------------------------------ */
.metric--map {
  gap: .7rem;
}
.metric__map {
  width: auto;
  height: clamp(96px, 11vw, 128px);
  display: block;
  margin-top: .2rem;
}
/* The map ships as an external <img> SVG with a solid black <path>; external
   SVGs can't be recolored via page CSS, so tint the black silhouette gold and
   add the signature glow. (If the SVG is ever inlined, the part-selectors below
   take over and this filter still adds the glow harmlessly.) */
.metric--map img.metric__map {
  /* brazil-map.svg self-colors via its embedded <style>; just add the glow */
  filter: drop-shadow(0 0 7px rgba(230,184,74,.32));
}
/* Inline-SVG variant (only matches if the markup inlines the <svg>). */
.metric__map-outline {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(230,184,74,.35));
}
.metric__map-dot { fill: var(--gold-soft); }
.metric__map-dot--hq { fill: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) {
  .metric__map-dot--hq {
    transform-box: fill-box;
    transform-origin: center;
    animation: hqPulse 2.4s var(--ease-soft) infinite;
  }
  @keyframes hqPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(1.45); }
  }
}

.sim__example {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.sim__example-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.sim__example-row {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.7;
  color: var(--muted);
}
.sim__example-row b { color: var(--gold-soft); font-weight: 700; }

.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold-bright));
  color: #0A0A0C;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.05;
  box-shadow: 0 10px 34px rgba(230,184,74,.30);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(230,184,74,.45); }
.wa-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wa-fab__icon { width: 22px; height: 22px; flex: none; }
.wa-fab__txt { display: inline-block; text-align: left; }
@media (max-width: 600px) {
  .wa-fab__txt { display: none; }
  .wa-fab { padding: .95rem; }
}
.scroll-cue__txt {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .3em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  animation: scrollDraw 2.2s var(--ease-soft) infinite;
}
@keyframes scrollDraw {
  0%   { transform: translateY(-120%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

/* "EXPLORAR" só aparece quando o hero atinge a largura máxima e sobra uma
   faixa livre à direita do conteúdo. Abaixo disso ele se sobreporia ao texto,
   então é ocultado (elemento puramente decorativo; a navegação já cobre isso). */
@media (max-width: 1180px) {
  .scroll-cue { display: none; }
}

/* ------------------------------------------------------------------
   9) #reidi — grid + stat-block
   ------------------------------------------------------------------ */
.reidi-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.reidi-copy p + p { margin-top: 1.2rem; }
.reidi-note {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--dim);
  letter-spacing: .01em;
}

.stat-block { padding: clamp(1.75rem, 3vw, 2.5rem); }
.stat-block__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.stat-block__big {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  margin: .8rem 0 .4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 5vw, 4.6rem);
  line-height: .9;
  color: var(--gold-soft);
}
.stat-block__big .unit {
  font-size: .4em;
  color: var(--gold);
  font-weight: 700;
}
.stat-block__sub {
  font-size: .92rem;
  color: var(--muted);
  max-width: 38ch;
}
.stat-block__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stat-block__row div { display: flex; flex-direction: column; }
.stat-block__row strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-soft);
}
.stat-block__row span {
  margin-top: .25rem;
  font-size: .8rem;
  color: var(--dim);
  line-height: 1.45;
}

/* ------------------------------------------------------------------
   10) #numeros — metrics
   ------------------------------------------------------------------ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.4rem);
  text-align: center;
  align-items: stretch;
}
/* HUD dashboard cells: faint glass, a thin gold top-accent rule and corner ticks */
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.2rem 1.6rem;
  background: linear-gradient(180deg, rgba(192,137,15,.045), rgba(18,16,20,.32));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
/* thin gold top-accent rule, brightened on hover */
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 50%, transparent);
  opacity: .55;
  transition: opacity .35s var(--ease);
}
/* corner ticks (top-left + bottom-right) — sci-fi HUD framing */
.metric::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 0 solid var(--glass-brd);
  border-top-width: 1px;
  border-left-width: 1px;
  width: 12px; height: 12px;
  opacity: .6;
  pointer-events: none;
}
.metric:hover {
  transform: translateY(-3px);
  border-color: var(--glass-brd);
  box-shadow: 0 20px 46px -30px rgba(192,137,15,.6),
              inset 0 1px 0 rgba(240,206,122,.12);
}
.metric:hover::before { opacity: 1; }
/* tiny mono index/label above each numeral */
.metric__tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.metric__idx {
  color: var(--gold);
  font-weight: 700;
  padding-right: .45rem;
  border-right: 1px solid var(--line);
}
.metric__num {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 3.6rem);
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: -.02em;
}
/* faint radial backdrop so the moving canvas never bleeds through the numerals */
.metric__num::before {
  content: "";
  position: absolute;
  inset: -.35em -.6em;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(7,6,10,.55), transparent 75%);
  pointer-events: none;
}
.metric__num .plus,
.metric__num .unit {
  font-size: .5em;
  color: var(--gold);
  margin-left: .05em;
}
.metric__lbl {
  display: block;
  margin-top: .9rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.45;
}
.metric__lbl em {
  display: block;
  font-style: normal;
  font-size: .78rem;
  color: var(--dim);
  margin-top: .2rem;
}
/* "30 vs 204" comparison — two tiny labelled bars (ours vs market) */
.metric__cmp {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  width: 100%;
  max-width: 220px;
  margin: .9rem auto 0;
}
.metric__cmp-row {
  display: grid;
  grid-template-columns: 3.6em 1fr 2.2em;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.metric__cmp-name { text-align: left; color: var(--dim); }
.metric__cmp-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(192,137,15,.12);
  overflow: hidden;
}
.metric__cmp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
}
.metric__cmp-fill--us {
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-soft));
  box-shadow: 0 0 8px rgba(230,184,74,.55);
}
.metric__cmp-fill--mkt { background: rgba(116,114,107,.5); }
.metric__cmp-val {
  text-align: right;
  font-weight: 700;
  color: var(--gold-soft);
}
.metric__cmp-row--market .metric__cmp-name,
.metric__cmp-row--market .metric__cmp-val {
  color: var(--dim);
  font-weight: 400;
}
@media (prefers-reduced-motion: no-preference) {
  .metric__cmp-fill {
    width: 0 !important;
    animation: cmpGrow 1.1s var(--ease) forwards;
  }
  .metric__cmp-fill--us  { animation-delay: .15s; }
  .metric__cmp-fill--mkt { animation-delay: .05s; }
  @keyframes cmpGrow { to { width: var(--cmp-w, 100%); } }
}
.micro-disclaimer {
  margin-top: 2.2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--dim);
}

/* ------------------------------------------------------------------
   11) #setores — tablist + panel
   ------------------------------------------------------------------ */
.sectors {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.sectors__nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sector-tab {
  position: relative;
  text-align: left;
  padding: 1rem 1.1rem 1rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,.012);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.sector-tab::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height .3s var(--ease), box-shadow .3s var(--ease);
}
.sector-tab:hover {
  color: var(--ink);
  background: rgba(192,137,15,.05);
}
.sector-tab.is-active {
  color: var(--gold-soft);
  background: rgba(192,137,15,.08);
  border-color: var(--glass-brd);
}
.sector-tab.is-active::before {
  height: 60%;
  box-shadow: 0 0 14px rgba(230,184,74,.6);
}

.sectors__panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  min-height: 280px;
}
.sector-panel__index {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.sector-panel__title {
  margin: .8rem 0 .6rem;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  color: var(--ink);
  transition: opacity .3s var(--ease);
}
.sector-panel__org {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .02em;
  margin-bottom: 1.1rem;
  transition: opacity .3s var(--ease);
}
.sector-panel__desc {
  color: var(--muted);
  max-width: 56ch;
  transition: opacity .3s var(--ease);
}
.sector-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
}
.sector-panel__tags li {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--gold-soft);
  padding: .4rem .85rem;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: rgba(192,137,15,.05);
}
/* panel transition helper (JS may toggle .is-swapping) */
.sectors__panel.is-swapping .sector-panel__title,
.sectors__panel.is-swapping .sector-panel__org,
.sectors__panel.is-swapping .sector-panel__desc,
.sectors__panel.is-swapping .sector-panel__tags,
.sectors__panel.is-swapping .sector-explore { opacity: 0; }

/* ---- "Explorar setor em detalhe" — affordance to open the modal ---------- */
.sector-explore {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.8rem;
  padding: .7rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(192,137,15,.05);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease),
              transform .3s var(--ease), opacity .3s var(--ease);
}
.sector-explore svg {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease);
}
.sector-explore:hover {
  color: #14110A;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-bright) 55%, var(--gold) 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 8px 26px -10px rgba(230,184,74,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.sector-explore:hover svg { transform: translateX(4px); }
.sector-explore:active { transform: translateY(1px); }
.sector-explore:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------
   12) #elegibilidade — cards-3
   ------------------------------------------------------------------ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.card { padding: clamp(1.5rem, 2.5vw, 2rem); }
.card__tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.card h3 {
  margin: .9rem 0 .8rem;
  font-size: 1.3rem;
  color: var(--ink);
}
.card p { font-size: .96rem; color: var(--muted); }

.card--warn {
  border-color: rgba(230,150,60,.32);
  background: linear-gradient(160deg, rgba(40,26,12,.55), rgba(18,16,20,.55));
}
.card--warn .card__tag { color: #E0A24A; }
.card--warn::before {
  background: radial-gradient(circle at top right, rgba(230,150,60,.22), transparent 70%);
}

/* ------------------------------------------------------------------
   13) #processo — timeline
   ------------------------------------------------------------------ */
/* ---- process flow: a glowing horizontal spine connecting numbered nodes ---- */
.timeline {
  --tl-node: 44px;        /* node diameter */
  --tl-spine-y: 22px;     /* vertical centre of the spine = node radius */
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
/* the spine itself: a thin gold rule running across all node centres */
.timeline::before {
  content: "";
  position: absolute;
  top: var(--tl-spine-y);
  left: calc(100% / 10);              /* centre of first node (½ of 1/5 col) */
  right: calc(100% / 10);             /* centre of last node */
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    rgba(192,137,15,.15),
    rgba(192,137,15,.5) 12%,
    rgba(192,137,15,.5) 88%,
    rgba(192,137,15,.15));
  pointer-events: none;
}
/* a gold pulse that travels left → right along the spine */
.timeline::after {
  content: "";
  position: absolute;
  top: var(--tl-spine-y);
  left: calc(100% / 10);
  right: calc(100% / 10);
  height: 2px;
  transform: translateY(-50%);
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--gold-soft) 50%, transparent) no-repeat;
  background-size: 22% 100%;
  background-position: -22% 0;
  opacity: .9;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .timeline::after { animation: tlFlow 4.5s var(--ease-soft) infinite; }
  @keyframes tlFlow {
    0%   { background-position: -22% 0; }
    100% { background-position: 122% 0; }
  }
}
.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* numbered node disc sitting ON the spine */
.timeline__node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tl-node);
  height: var(--tl-node);
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--bg-deep) 56%, transparent 57%),
    linear-gradient(135deg, var(--gold-soft), var(--gold-bright));
  box-shadow: 0 0 0 5px rgba(7,6,10,.9), 0 0 0 6px rgba(192,137,15,.18),
              0 0 18px rgba(230,184,74,.5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.timeline__node-num {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-bright);
}
/* refined glass card under each node */
.timeline__card {
  position: relative;
  width: 100%;
  padding: 1.4rem 1.25rem 1.5rem;
  text-align: left;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
/* hover lift/glow per step (node + card move together) */
.timeline__step:hover .timeline__card {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 22px 50px -28px rgba(192,137,15,.55),
              inset 0 1px 0 rgba(240,206,122,.16);
}
.timeline__step:hover .timeline__node {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(7,6,10,.9), 0 0 0 6px rgba(230,184,74,.4),
              0 0 26px rgba(230,184,74,.75);
}
/* phase chip */
.timeline__phase {
  display: inline-block;
  padding: .28rem .6rem;
  margin-bottom: .7rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(192,137,15,.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.timeline__step h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .6rem;
}
.timeline__step p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------------
   14) #reforma
   ------------------------------------------------------------------ */
.section--reforma {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(192,137,15,.07), transparent 60%);
  border-radius: var(--radius);
}

.reforma-shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.shift-card { padding: clamp(1.6rem, 3vw, 2.25rem); }
.shift-card__when {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.shift-card h3 {
  margin: .7rem 0 .7rem;
  font-size: 1.6rem;
  color: var(--ink);
}
.shift-card p { font-size: .94rem; color: var(--muted); }

.shift-card--new {
  border-color: var(--gold-bright);
  background: linear-gradient(160deg, rgba(46,33,10,.6), rgba(18,16,20,.6));
  box-shadow: 0 24px 60px -28px rgba(192,137,15,.5), inset 0 1px 0 rgba(240,206,122,.18);
}
.shift-card--new h3 { color: var(--gold-soft); }
.shift-card--new::before {
  background: radial-gradient(circle at top right, rgba(230,184,74,.3), transparent 70%);
}

.shift-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(230,184,74,.5);
}

.timeline-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.tl-mini__node {
  flex: 1 1 200px;
  position: relative;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.012);
}
.tl-mini__node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-soft);
}
.tl-mini__node span {
  display: block;
  margin-top: .3rem;
  font-size: .82rem;
  color: var(--dim);
}

.reforma-quote {
  margin-top: 3rem;
  padding-left: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 40ch;
}
.reforma-quote::before {
  content: "\201C";
  position: absolute;
  left: 0; top: -.2em;
  font-size: 3.5em;
  line-height: 1;
  color: var(--gold);
  opacity: .55;
}

/* ------------------------------------------------------------------
   15) #servicos — services grid
   ------------------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.service { padding: clamp(1.5rem, 2.5vw, 2rem); }
.service__n {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .85;
}
.service h3 {
  margin: .8rem 0 .6rem;
  font-size: 1.2rem;
  color: var(--ink);
}
.service p { font-size: .92rem; color: var(--muted); }
.service--wide { grid-column: 1 / -1; }

/* ------------------------------------------------------------------
   16) #escritorio — partners
   ------------------------------------------------------------------ */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.partner { padding: clamp(1.5rem, 2.5vw, 2rem); }
.partner h3 {
  font-size: 1.3rem;
  color: var(--ink);
}
.partner__role {
  display: block;
  margin: .35rem 0 1rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.partner p { font-size: .92rem; color: var(--muted); }

/* ------------------------------------------------------------------
   17) #contato — grid + form
   ------------------------------------------------------------------ */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}
.contato-info li {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .96rem;
  color: var(--muted);
  line-height: 1.55;
}
.contato-info li span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.contato-info a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.contato-info a:hover { border-color: var(--gold-bright); }

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: rgba(7,6,10,.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem .95rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.form textarea { resize: vertical; min-height: 90px; }
.form select { cursor: pointer; appearance: none; }
.form select option { background: var(--panel); color: var(--ink); }
.form input::placeholder,
.form textarea::placeholder { color: var(--dim); }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(230,184,74,.18);
  background: rgba(7,6,10,.75);
}
.form .btn--gold { width: 100%; margin-top: .4rem; }
.form__status {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--gold-soft);
  min-height: 1.2em;
}

/* ==================================================================
   17B) SECTOR MODAL — immersive, interactive deep-dive
   z-index: canvas 0 · scrim/grain/vignette 1 · content 2 · nav 50 · modal 90+
   ================================================================== */

/* body scroll-lock helper (toggled by main.js) */
body.modal-open { overflow: hidden; }

.sector-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.sector-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sector-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,4,8,.66);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.sector-modal.is-open .sector-modal__backdrop { opacity: 1; }

.sector-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(960px, 94vw);
  max-height: 92vh;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(.975);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.sector-modal.is-open .sector-modal__dialog {
  opacity: 1;
  transform: none;
}

/* close button */
.sector-modal__close {
  position: absolute;
  top: clamp(.85rem, 1.6vw, 1.2rem);
  right: clamp(.85rem, 1.6vw, 1.2rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold-soft);
  background: rgba(7,6,10,.5);
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), transform .35s var(--ease),
              box-shadow .3s var(--ease);
}
.sector-modal__close svg { width: 20px; height: 20px; }
.sector-modal__close:hover {
  color: var(--gold-bright);
  background: rgba(192,137,15,.16);
  border-color: var(--gold-bright);
  transform: rotate(90deg);
  box-shadow: 0 0 18px -4px rgba(230,184,74,.55);
}

/* ---- HERO band ---- */
.sm-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  flex-shrink: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(192,137,15,.12), transparent 55%);
}
/* gold hairline under hero band */
.sm-hero::after {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 4vw, 2.75rem);
  right: clamp(1.5rem, 4vw, 2.75rem);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.sm-illus {
  flex-shrink: 0;
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  color: var(--gold-soft);
  filter: drop-shadow(0 0 14px rgba(230,184,74,.4));
}
.sm-illus svg { width: 100%; height: 100%; }
.sm-meta { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.sm-index {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}
.sm-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sm-org {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .01em;
  color: var(--gold);
  margin-top: .15rem;
}
.sm-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  margin-top: .35rem;
}

/* ---- scrolling body ---- */
.sm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.sm-body::-webkit-scrollbar { width: 8px; }
.sm-body::-webkit-scrollbar-track { background: transparent; }
.sm-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.sm-block { min-width: 0; }
.sm-block + .sm-block { margin-top: 0; }
.sm-block__h {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

/* eligibility list */
.sm-elig { display: flex; flex-direction: column; gap: 1rem; }
.sm-elig li { position: relative; padding-left: 1.5rem; }
.sm-elig li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(230,184,74,.6);
}
.sm-elig__name {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
}
.sm-elig__desc {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* flow — horizontal stepped row with connector line */
.sm-flow {
  position: relative;
  display: flex;
  gap: clamp(.5rem, 1.5vw, 1rem);
  counter-reset: smstep;
}
.sm-flow__step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}
.sm-flow__node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--gold-soft);
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(192,137,15,.12), 0 0 14px rgba(230,184,74,.45);
}
/* connector between nodes */
.sm-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  width: calc(100% - 30px + clamp(.5rem, 1.5vw, 1rem));
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(192,137,15,.15));
}
.sm-flow__label {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
}
.sm-flow__detail {
  display: block;
  color: var(--dim);
  font-size: .78rem;
  line-height: 1.45;
}

/* norms — gold hairline pills */
.sm-norms {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.sm-norms li {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--gold-soft);
  padding: .4rem .8rem;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: rgba(192,137,15,.05);
}

/* attention list */
.sm-att { display: flex; flex-direction: column; gap: .75rem; }
.sm-att li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.sm-att li::before {
  content: "\25B9"; /* ▹ */
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-size: .95rem;
}

/* reform callout */
.sm-reform {
  grid-column: 1 / -1;
  margin-top: .25rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(100deg, rgba(192,137,15,.1), rgba(192,137,15,.02));
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--gold-soft);
}

/* bloco de elegibilidade em destaque — mesma linguagem visual do aviso da
   Reforma (filete dourado + banho âmbar), com brilho suave ao redor */
.sm-block--eligible {
  padding: 1.15rem 1.35rem 1.35rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(100deg, rgba(192,137,15,.12), rgba(192,137,15,.03));
  box-shadow: 0 0 30px rgba(192,137,15,.14);
}
.sm-block--eligible .sm-block__h {
  color: var(--gold-bright);
  border-bottom-color: rgba(230,184,74,.32);
}

/* bloco de NÃO elegibilidade — mesma linguagem, em vermelho, para que a
   exclusão da microgeração seja inconfundível */
.sm-block--ineligible {
  padding: 1.15rem 1.35rem 1.35rem;
  border-left: 3px solid #C24840;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(100deg, rgba(194,72,64,.12), rgba(194,72,64,.03));
  box-shadow: 0 0 30px rgba(194,72,64,.16);
}
.sm-block--ineligible .sm-block__h {
  color: #E4837A;
  border-bottom-color: rgba(224,122,112,.32);
}
.sm-block--ineligible .sm-elig li::before {
  background: #E0655A;
  box-shadow: 0 0 10px rgba(224,101,90,.55);
}
.sm-elig__x {
  color: #E8574A;
  font-weight: 800;
  font-size: 1.15em;
  text-shadow: 0 0 12px rgba(232,87,74,.55);
}

/* ---- ENERGY modules block ---- */
.sm-modules { grid-column: 1 / -1; }
.sm-modtabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.sm-modtab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
  background: rgba(255,255,255,.012);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.sm-modtab:hover {
  color: var(--ink);
  background: rgba(192,137,15,.06);
}
.sm-modtab.is-active {
  color: var(--gold-soft);
  background: rgba(192,137,15,.12);
  border-color: var(--glass-brd);
  box-shadow: 0 0 16px -4px rgba(230,184,74,.4);
}
.sm-modtab.is-highlight {
  border-color: var(--gold);
}
.sm-modtab.is-highlight.is-active {
  background: rgba(192,137,15,.16);
  box-shadow: 0 0 20px -4px rgba(230,184,74,.6);
}
.sm-modtab__badge {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  font-weight: 700;
  color: #14110A;
  padding: .15rem .4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-bright));
}

.sm-modpanel { animation: smPanelFade .4s var(--ease); }
@keyframes smPanelFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.sm-modpanel > p {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 1rem;
}
.sm-modlist { display: flex; flex-direction: column; gap: .65rem; }
.sm-modlist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.sm-modlist li::before {
  content: "";
  position: absolute;
  left: .15rem; top: .65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(230,184,74,.55);
}

/* ---- MGD classifier widget ---- */
.mgd {
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  background: rgba(192,137,15,.04);
}
.mgd__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}
.mgd__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(192,137,15,.2));
  cursor: pointer;
  outline: none;
}
.mgd__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-bright));
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 12px rgba(230,184,74,.6);
  cursor: pointer;
}
.mgd__range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-bright));
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 12px rgba(230,184,74,.6);
  cursor: pointer;
}
.mgd__range:focus-visible {
  box-shadow: 0 0 0 3px rgba(230,184,74,.25);
}
.mgd__value {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.6rem);
  line-height: 1;
  color: var(--gold-soft);
}
.mgd__result {
  display: block;
  margin-top: .5rem;
  color: var(--ink);
  font-size: .95rem;
}
.mgd__badge {
  display: inline-block;
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: rgba(192,137,15,.12);
}
.mgd__badge.is-warn {
  border-color: rgba(230,150,60,.5);
  color: #E0A24A;
  background: rgba(230,150,60,.12);
}

/* ---- CAPEX simulator widget ---- */
.sim {
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  background: rgba(192,137,15,.04);
}
.sim__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .7rem;
}
.sim__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  background: rgba(7,6,10,.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem .95rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.sim__input::placeholder { color: var(--dim); }
.sim__input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(230,184,74,.18);
  background: rgba(7,6,10,.75);
}
.sim__out {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.6rem);
  line-height: 1;
  color: var(--gold-soft);
}
.sim__note {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--dim);
  line-height: 1.5;
}

/* ---- footer band ---- */
.sm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.5rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
  background: rgba(7,6,10,.4);
}
.sm-cta { flex-shrink: 0; }
.sm-disclaimer {
  flex: 1 1 240px;
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--dim);
}

/* spacing between stacked blocks in a single grid column */
.sm-grid > .sm-block,
.sm-grid > .sm-modules,
.sm-grid > .sm-reform { align-self: start; }

/* ------------------------------------------------------------------
   18) FOOTER
   ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 3rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: 2.5rem;
}
.brand--footer { color: var(--gold-bright); }
/* larger monogram in the footer */
.brand--footer .brand__logo { height: 52px; }
/* cream/legible firm name on the dark footer */
.brand--footer .brand__text strong { color: var(--ink); }
.brand--footer .brand__text em { color: var(--muted); }
.footer__pitch {
  max-width: 58ch;
  font-size: .96rem;
  color: var(--muted);
}
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer__legal p {
  font-size: .76rem;
  line-height: 1.6;
  color: var(--dim);
}
.footer__legal strong { color: var(--muted); }
.footer__law { font-family: var(--font-mono); font-size: .7rem !important; }
.footer__copy { color: var(--dim); }

/* ------------------------------------------------------------------
   19) MOTION DEFAULTS / REVEAL
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* no-JS / GSAP-absent fallback: never hide content */
.no-gsap .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ------------------------------------------------------------------
   20) RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1180px) {
  /* 5-across spine gets cramped before the main tablet break; go 3-up.
     The single horizontal spine only reads in one row, so hide it and give
     each node its own short stub connector down into its card. */
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before,
  .timeline::after { display: none; }
}

@media (max-width: 1024px) {
  .reidi-grid { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .sectors__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sector-tab { flex: 1 1 calc(50% - .5rem); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before,
  .timeline::after { display: none; }
  .partners { grid-template-columns: 1fr 1fr; }
}

/* ---- sector modal responsive ---- */
@media (max-width: 860px) {
  .sm-grid { grid-template-columns: 1fr; }
}

/* Gaveta de navegação já a partir de 1100px: abaixo disso o menu horizontal
   (8 itens + CTA) não cabe ao lado da marca animada e estoura sobre o logo. */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: rgba(8,7,11,.94);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-menu a {
    font-size: .9rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu a::after { display: none; }
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-brd) !important;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* smaller monogram in the nav on phones */
  .brand__logo { height: 30px; }
  .brand__logo--mark { width: 34px; height: 30px; }

  /* sectors strip stacks on phones: title on top, chips in 2 columns */
  .hero__sectors-block {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: .8rem .9rem;
  }
  .hero__sectors-title { width: auto; }
  .hero__sectors {
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
  }
  .hero__sectors li { padding: .3rem .65rem; gap: .35rem; }
  .hero__sectors li .sector-ico { width: 13px; height: 13px; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }

  /* timeline → vertical glowing spine, nodes down the left, cards to the right */
  .timeline { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline::before, .timeline::after { display: none; }
  .timeline__step {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    text-align: left;
  }
  .timeline__node {
    flex: none;
    margin-bottom: 0;
    align-self: flex-start;
  }
  /* vertical spine segment connecting this node to the next */
  .timeline__step:not(:last-child) .timeline__node::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: calc(100% + 1.25rem);
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--gold), rgba(192,137,15,.12));
  }
  @media (prefers-reduced-motion: no-preference) {
    .timeline__step:not(:last-child) .timeline__node::before {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      width: 4px; height: 22px;
      transform: translateX(-50%);
      border-radius: 999px;
      background: linear-gradient(180deg, var(--gold-soft), transparent);
      box-shadow: 0 0 10px rgba(230,184,74,.7);
      animation: tlFlowV 3s var(--ease-soft) infinite;
      z-index: 1;
    }
    @keyframes tlFlowV {
      0%   { transform: translate(-50%, 0); opacity: 0; }
      30%  { opacity: 1; }
      100% { transform: translate(-50%, calc(100% + 1.25rem - 22px)); opacity: 0; }
    }
  }
  .timeline__card { flex: 1 1 auto; }

  /* reforma stacks → arrow rotates */
  .reforma-shift { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); }

  .partners { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; align-items: start; }

  /* ---- sector modal: near-fullscreen + stacked flow ---- */
  .sector-modal { padding: .5rem; }
  .sector-modal__dialog {
    max-width: 100%;
    max-height: 94vh;
    border-radius: var(--radius-sm);
  }
  .sm-hero { flex-direction: column; align-items: flex-start; }

  /* flow → vertical with a connecting line down the left of the nodes */
  .sm-flow { flex-direction: column; gap: 1.25rem; }
  .sm-flow__step { flex-direction: row; align-items: flex-start; gap: .9rem; }
  .sm-flow__step > div,
  .sm-flow__text { display: flex; flex-direction: column; }
  .sm-flow__node { flex-shrink: 0; }
  .sm-flow__step:not(:last-child)::after {
    top: 30px;
    left: 15px;
    width: 1px;
    height: calc(100% + 1.25rem - 30px);
    background: linear-gradient(180deg, var(--gold), rgba(192,137,15,.15));
  }

  .sm-modtabs { gap: .4rem; }
  .sm-foot { flex-direction: column; align-items: stretch; }
  .sm-cta { width: 100%; }
}

/* ---- phones (large) ---- */
@media (max-width: 600px) {
  .metrics { grid-template-columns: 1fr; }
  .reforma-shift { gap: 1.25rem; }
  .services { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .tl-mini__node { flex: 1 1 100%; }
  /* prevent the big quote mark / oversized numerals from forcing overflow */
  .reforma-quote { padding-left: 2rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 6vh); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .stat-block__row { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .sector-tab { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .brand__text strong { font-size: .9rem; }

  /* ---- sector modal on phones ---- */
  .sector-modal { padding: 0; }
  .sector-modal__dialog {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .sm-modtab { flex: 1 1 calc(50% - .2rem); justify-content: center; }
  .sm-norms li { font-size: .68rem; }
}

/* ---- very small phones (~414px and below): overflow safety ---- */
@media (max-width: 414px) {
  :root { --gutter: 1.1rem; }
  /* tame the largest fluid type so nothing pushes past the viewport edge */
  .hero__title { font-size: clamp(2.1rem, 8vw, 2.6rem); }
  .stat-block__big { font-size: clamp(2.6rem, 14vw, 3.2rem); }
  .metric__num { font-size: clamp(2.2rem, 12vw, 2.8rem); }
  .sm-title { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  /* number pills can wrap awkwardly; keep them snug */
  .sector-panel__tags li,
  .sm-norms li { font-size: .66rem; padding: .35rem .7rem; }
  .timeline-mini { gap: .75rem; }
}

/* ------------------------------------------------------------------
   PREFERS-REDUCED-MOTION
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .loader__mark .logo-mark,
  .loader__bar span,
  .scroll-cue__line::after { animation: none !important; }

  /* modal: instant show, no enter/scale/fade, still usable */
  .sector-modal,
  .sector-modal__backdrop,
  .sector-modal__dialog {
    transition: none !important;
  }
  .sector-modal__dialog { transform: none !important; }
  .sm-modpanel { animation: none !important; }
  .sector-modal__close:hover { transform: none !important; }
}

/* ==================================================================
   21) HUB + SPOKES — additions (2026-06)
   Appended as overrides (equal specificity, later in source) so no
   earlier rule is edited in place. Covers: modal scroll hardening,
   the Híbrido quick-view, and the "Setores" dropdown nav.
   ================================================================== */

/* --- modal scroll hardening (defensive; quick-view is short anyway) --- */
.sector-modal__dialog { overflow: hidden auto; }   /* never hard-clip long text */
.sm-hero { max-height: 46vh; }                      /* never starve .sm-body */
.sm-body::-webkit-scrollbar { width: 11px; }
.sm-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(10,10,12,.45);
  box-shadow: inset 0 0 0 1px rgba(230,184,74,.28);
}

/* --- quick-view (Híbrido) --- */
.sm-quick__summary {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.sm-quick__tags { margin-bottom: 1.35rem; }
.sm-foot--quick {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.sm-foot--quick .btn { flex: 0 0 auto; }

/* --- dropdown nav (Setores) --- */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop__top { display: inline-flex; align-items: center; gap: .32rem; cursor: pointer; }
.nav-drop__caret { font-size: .58em; opacity: .8; transition: transform .3s var(--ease); }
.nav-drop__panel {
  position: absolute;
  top: calc(100% + .9rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 244px;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .6rem;
  background: rgba(10,9,13,.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  box-shadow: 0 26px 64px -30px rgba(0,0,0,.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Fechamento com tolerância: o menu só começa a sumir ~0.35s depois que o
     ponteiro sai — hesitações e travessias diagonais não o derrubam mais. */
  transition: opacity .24s var(--ease) .35s, transform .24s var(--ease) .35s,
              visibility 0s linear .6s;
  z-index: 60;
}
/* Ponte invisível cobre o vão entre o gatilho e o painel: o hover fica
   contínuo durante a descida do ponteiro. */
.nav-drop__panel::before {
  content: "";
  position: absolute;
  left: -.75rem;
  right: -.75rem;
  top: -1.1rem;
  height: 1.1rem;
}
.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel,
.nav-drop.is-open .nav-drop__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* abertura imediata, sem herdar o atraso do fechamento */
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s;
}
.nav-drop:hover .nav-drop__caret,
.nav-drop:focus-within .nav-drop__caret { transform: rotate(180deg); }
.nav-drop__panel a {
  padding: .52rem .7rem !important;
  border-radius: 8px;
  font-size: .72rem !important;
  text-transform: none !important;
  letter-spacing: .02em !important;
  color: var(--muted);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-drop__panel a::after { display: none !important; }
.nav-drop__panel a:hover { background: rgba(192,137,15,.12); color: var(--gold-soft); }
.nav-drop__panel a.nav-drop__star { color: var(--gold-soft); }
.nav-drop__sep {
  height: 1px;
  margin: .35rem .4rem;
  background: var(--line);
}

/* drawer: dropdown becomes inline, always expanded (no hover) */
@media (max-width: 1100px) {
  .nav-drop { display: block; width: 100%; }
  .nav-drop__panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: .35rem 0 .35rem 1rem;
    border-left: 1px solid var(--line);
    margin-top: .45rem;
  }
  .nav-drop__caret { display: none; }
  .nav-drop__panel a { white-space: normal; }
}
