:root {
  --brand-orange: #F97316;
  --brand-orange-light: #FB923C;
  --brand-orange-dark: #EA580C;
  --alert-red: #EF4444;
  --bg-dark: #0B1120;
  --bg-darker: #070B14;
  --bg-card: #111827;
  --bg-card-hover: #1F2937;
  --text-primary: #ffffff;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #1E293B;
  --border-hover: #334155;

  /* LANDMARK-like spacing tokens */
  --wr: clamp(20px, 3vw, 64px);
  --radius-landmark: clamp(28px, 3vw, 48px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* ===== CORREÇÃO BUG AUTO-SCROLL =====
     Garante que o Navegador NUNCA interpola smooth-scroll para âncoras / hashes / focos
     durante animações GSAP + Locomotive. Todo scroll é controlado EXCLUSIVAMENTE
     pelo usuário (mouse wheel, touch, barra) ou Locomotive v4 em modo smooth (lento).
     Valor "auto" previne scroll programático em elementos com ID quando há resize ou
     reflow de layout (ex: entrada na seção riscos). */
  scroll-behavior: auto !important;
  scroll-snap-type: none;
}

/* Desativa completamente smooth-scroll nativo no wrapper do Locomotive também
   (algumas engines de layout ainda "lembram" do comportamento html em filhos). */
[data-scroll-container] {
  scroll-behavior: auto !important;
  overscroll-behavior: contain;
}

body.loading {
  overflow: hidden;
  height: 100vh;
}

body.loaded {
  overflow: auto;
}

.font-display {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.wrapper {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--wr);
  position: relative;
}

.text-brand-orange { color: var(--brand-orange); }
.text-alert-red { color: var(--alert-red); }

.section {
  position: relative;
}

.pin-section {
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(251, 146, 60, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================================= */
/* ===================== PRELOADER ========================= */
/* ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #0B1120 0%, #070B14 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1),
              visibility 0.9s cubic-bezier(0.65, 0, 0.35, 1),
              clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: inset(0 0 0 0);
}

.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(251, 146, 60, 0.08), transparent 55%);
  pointer-events: none;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: min(90%, 440px);
  position: relative;
  z-index: 2;
}

.preloader-logo {
  width: 100%;
  transform: scale(0.92);
  opacity: 0;
  animation: preLogoIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes preLogoIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(12px); filter: blur(8px); }
  60%  { opacity: 1; transform: scale(1.02) translateY(0);  filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0);     filter: blur(0); }
}

.mbw-logo-svg { width: 100%; height: auto; }

/* Letras aparecendo em cascade */
.logo-letter {
  opacity: 0;
  transform: translateY(6px);
  animation: letterIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.logo-M { animation-delay: 0.35s; }
.logo-B { animation-delay: 0.55s; }
.logo-W { animation-delay: 0.75s; }

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Raios diagonais do logo = spark group */
.pre-spark-group {
  opacity: 0;
  transform: translateX(-10px) scale(0.9);
  transform-origin: left center;
  animation: sparksIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards,
             sparkTremble 3.5s ease-in-out 1.3s infinite;
}
@keyframes sparksIn {
  to { opacity: 0.9; transform: translateX(0) scale(1); }
}
@keyframes sparkTremble {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(1.5px); }
}

.pre-spark-group path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dashDraw 0.9s cubic-bezier(0.7, 0, 0.3, 1) 0.4s forwards;
}
.pre-spark-group path:nth-child(2) { animation-delay: 0.48s; }
.pre-spark-group path:nth-child(3) { animation-delay: 0.56s; }
.pre-spark-group path:nth-child(4) { animation-delay: 0.64s; }
.pre-spark-group path:nth-child(5) { animation-delay: 0.72s; }

@keyframes dashDraw {
  to { stroke-dashoffset: 0; }
}

/* OBRAS subtitle */
.logo-subtitle {
  opacity: 0;
  letter-spacing: 0;
  animation: subtitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}
@keyframes subtitleIn {
  0%   { opacity: 0; letter-spacing: 0; }
  100% { opacity: 1; letter-spacing: 8px; }
}

/* Faíscas / sparks overlay no preloader */
.pre-spark {
  opacity: 0;
  transform: scale(0.2);
  transform-origin: center;
  filter: drop-shadow(0 0 4px currentColor);
  animation: sparkBlink 1.8s ease-in-out infinite;
}
.pre-spark.s-a { animation-delay: 1.0s; }
.pre-spark.s-b { animation-delay: 1.3s; }
.pre-spark.s-c { animation-delay: 0.9s; }
.pre-spark.s-d { animation-delay: 1.5s; }
.pre-spark.s-e { animation-delay: 1.15s; }

@keyframes sparkBlink {
  0%, 100% { opacity: 0; transform: scale(0.2); }
  15%      { opacity: 1; transform: scale(1.3); }
  30%      { opacity: 0.5; transform: scale(0.9); }
  45%      { opacity: 0; transform: scale(0.4); }
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FB923C, #F97316, #EA580C);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.65);
  animation: fillBar 1.6s cubic-bezier(0.7, 0, 0.3, 1) 0.2s forwards;
}

@keyframes fillBar {
  0%   { width: 0%; }
  70%  { width: 86%; }
  100% { width: 100%; }
}

.preloader-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  animation: fadeText 0.7s ease 0.9s forwards;
}

@keyframes fadeText {
  to { opacity: 1; }
}

.preloader-dots span {
  opacity: 0;
  animation: dotsBlink 1.4s infinite;
}
.preloader-dots span:nth-child(1) { animation-delay: 0.9s; }
.preloader-dots span:nth-child(2) { animation-delay: 1.05s; }
.preloader-dots span:nth-child(3) { animation-delay: 1.2s; }

@keyframes dotsBlink {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}


/* ========================================================= */
/* ======================= HEADER ========================== */
/* ========================================================= */
header {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--text-primary);
}

header.scrolled {
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

.header-inner {
  position: relative;
  z-index: 2;
}

.logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow:
    0 16px 40px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 40px -10px rgba(249, 115, 22, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  transform-origin: center center;
}

.logo-link:hover .logo-mark-img,
.logo-link:focus-within .logo-mark-img,
.footer-brand:hover .logo-mark-img {
  transform: scale(1.12);
  filter: saturate(1.2) contrast(1.08);
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
}

.logo-text {
  background: linear-gradient(135deg, #F97316, #FB923C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-contrast-text {
  color: #F8FAFC;
  -webkit-text-fill-color: #F8FAFC;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: white !important;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
  letter-spacing: 0.01em;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
}

.btn-nav::after {
  display: none;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 80px;
  background: var(--bg-darker);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 24px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.mobile-link:hover {
  border-color: var(--brand-orange);
  background: rgba(249, 115, 22, 0.05);
}

.mobile-cta {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  border-color: transparent;
  color: white;
  margin-top: 8px;
  text-align: center;
}


/* =========================================================
   HERO: CANTO SUPERIOR ESQUERDO (apenas o texto move)
   ALTURA do hero preservada (100vh) para não colapsar.
   Fundo/canvas INTACTO.
   ========================================================= */
.hero {
  position: relative !important;
  padding: 18px 0 26px 0 !important;
  overflow: visible !important;
  min-height: 100vh !important;
  height: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.hero-landmark {
  position: relative !important;
  width: 100% !important;
  min-height: calc(100vh - 20px) !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Stage de fundo = hero-bg (LANDMARK s1-3 / hero) — PONTA A PONTA
   ALTURA 100% (vinculada ao hero-landmark) para o fundo ter o mesmo tamanho do hero (100vh) */
.hero-bg-stage {
  position: absolute !important;
  top: 0 !important;
  left: calc(-50vw + 50%) !important;
  width: 100vw !important;
  height: 100% !important;
  min-height: calc(100vh - 20px) !important;
  z-index: 1 !important;
}

.hero-bg-frame {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: calc(100vh - 20px) !important;
  border-radius: 0 0 var(--radius-landmark) var(--radius-landmark) !important;
  overflow: hidden !important;
  box-shadow:
    0 80px 160px -60px rgba(0, 0, 0, 0.85),
    0 30px 80px -30px rgba(249, 115, 22, 0.22);
  background: #0A0F1C;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  transform: scale(1.03);
  will-change: transform;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: saturate(0.95) contrast(1.08) brightness(0.92);
}

img.hero-bg-img {
  object-fit: cover;
  object-position: center 28%;
}

canvas.hero-bg-img {
  display: block;
}

.hero-landmark:hover .hero-bg-img {
  transform: scale(1.06);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.28) 0%, rgba(7, 11, 20, 0.48) 45%, rgba(7, 11, 20, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.86) 0%, rgba(7, 11, 20, 0.45) 42%, rgba(7, 11, 20, 0.22) 100%);
  pointer-events: none;
}

/* Conteúdo do hero sobreposto = LANDMARK s1-2 (alinhado ao fundo) */
.hero-content-stage {
  position: relative;
  z-index: 5;
  padding: 20vh var(--wr) 70px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.hero-copy {
  position: relative;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-orange-light);
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

.hero-title {
  font-size: clamp(32px, 6vw, 90px);
  font-weight: 1000;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: #FFFFFF;
}

.italic-text {
  font-style: italic;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.65);
  font-family: 'Space Grotesk', serif;
}

.text-brand-orange {
  color: var(--brand-orange) !important;
  font-weight: 600;
}

.hero-text-stack {
  width: 100%;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.hero-subtitle {
  font-size: clamp(15.5px, 1.3vw, 19px);
  color: #FFFFFF !important;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px 0;
  line-height: 1.75;
  font-weight: 400;
}

.hero-subtitle .text-brand-orange {
  color: var(--brand-orange) !important;
  font-weight: 650;
}

.hero-feature-bullets {
  list-style: none;
  margin: 0 0 36px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  width: 100%;
  max-width: 100%;
}

.hero-feature-bullets .feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.45;
  font-weight: 450;
  padding: 2px 0;
}

.hero-feature-bullets .bullet-dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--brand-orange, #F97316);
  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.15),
    0 0 10px rgba(249, 115, 22, 0.55);
}

.hero-feature-bullets .bullet-text { display: inline; }

@media (max-width: 640px) {
  .hero-feature-bullets {
    grid-template-columns: 1fr;
    gap: 10px 0;
    margin-bottom: 32px;
  }
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: white;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3);
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-wide {
  padding: 18px 36px;
  width: fit-content;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 18px;
}

.btn-danger {
  background: linear-gradient(135deg, var(--alert-red), #DC2626);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.28);
}

.btn-danger:hover {
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.48);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost-light {
  border-color: rgba(248, 250, 252, 0.22);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--brand-orange);
  background: rgba(249, 115, 22, 0.04);
  color: var(--brand-orange-light);
}

/* ====== LISTA DE 6 SERVIÇOS LANDMARK ====== */
.hero-services-landmark {
  position: relative;
  z-index: 5;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 100%;
  backdrop-filter: blur(0px);
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(17, 24, 39, 0.48);
  border: 1px solid rgba(30, 41, 59, 0.6);
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
}

.svc-item:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(249, 115, 22, 0.25);
}

.svc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.08));
  border-radius: 12px;
  font-size: 20px;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.svc-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.svc-text span {
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.9);
}

/* Mini painel elétrico flutuante — position: absolute DENTRO do hero; segue o scroll, some ao sair do hero */
.hero-floating-panel {
  position: absolute;
  right: clamp(0px, 5.6vw, 0px);
  bottom: clamp(10px, 11vh, 10px);
  z-index: 2147483647;
  width: clamp(120px, 13vw, 180px);
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero-landmark {
  position: relative;
  isolation: isolate;
}

.mini-panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 30px -5px rgba(249, 115, 22, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0F172A;
  aspect-ratio: 4 / 5;
}

.mini-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.mini-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.95) contrast(1.05) brightness(0.95);
}

.mini-led {
  animation: ledBlink 1.8s ease-in-out infinite;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
  50% { opacity: 0.3; filter: none; }
}

.wire {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.wire-1 { animation: wireFlow 2.5s ease-in-out infinite 0s; }
.wire-2 { animation: wireFlow 2.5s ease-in-out infinite 0.3s; }
.wire-3 { animation: wireFlow 2.5s ease-in-out infinite 0.6s; }

@keyframes wireFlow {
  0% { stroke-dashoffset: 200; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}

.spark {
  animation: sparkFlash 2.5s ease-in-out infinite;
}

.spark-1 { animation-delay: 0.5s; }
.spark-2 { animation-delay: 1.2s; }
.spark-3 { animation-delay: 1.9s; }

@keyframes sparkFlash {
  0%, 100% { r: 0; opacity: 0; }
  45% { r: 0; opacity: 0; }
  50% { r: 4; opacity: 1; }
  55% { r: 1.5; opacity: 0.6; }
  60% { r: 0; opacity: 0; }
}

.mini-panel-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  font-family: 'Space Grotesk', sans-serif;
}

/* Badge +15 anos flutuante */
.hero-floating-badge {
  position: relative;
  z-index: 6;
  padding: 16px 22px 16px 20px;
  background: rgba(17, 24, 39, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-left: 3px solid var(--brand-orange);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: -10px;
  margin-bottom: 10px;
}

.hero-floating-badge strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-orange);
  text-shadow: 0 0 24px rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, #FB923C, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-floating-badge span {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.3;
  font-weight: 500;
  display: block;
}

/* Scroll indicator (LANDMARK-inspired) */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  color: rgba(248, 250, 252, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}

.scroll-line-wrap {
  width: 1px;
  height: 60px;
  background: rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.scroll-line {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--brand-orange-light));
  animation: scrollLine 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--brand-orange);
}

@keyframes scrollLine {
  0% { top: -40%; }
  100% { top: 100%; }
}


/* ========================================================= */
/* ============ SECTION 2 — PAINÉIS / IMAGENS ============== */
/* ========================================================= */
.section-2 {
  background: transparent;
  padding: 84px 0 92px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.section-2-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: flex-start;
  margin-top: -10px;
}

.panel-container {
  position: relative;
}

.panel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.85) translateX(60px);
  transition: all 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.panel.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

/* Container para imagens reais */
.panel-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    inset 0 0 60px rgba(0, 0, 0, 0.25);
  background: #0A0F1C;
}

.panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.05);
}

.panel-img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.05) 0%, rgba(7, 11, 20, 0.25) 60%, rgba(7, 11, 20, 0.78) 100%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.1), transparent 45%);
  z-index: 2;
  pointer-events: none;
}

.overlay-light {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.0) 0%, rgba(7, 11, 20, 0.25) 55%, rgba(7, 11, 20, 0.6) 100%);
}

.panel-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  padding: 8px 16px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 999px;
}

.panel-tag.tag-dark {
  background: rgba(249, 115, 22, 0.85);
  color: #0B1120;
  border-color: var(--brand-orange);
}

/* =============== THERMAL / HEAT VISION — expensive.toys SVG filter =============== */
.panel-image-container {
  --thermal: 0;
}

.panel-img-thermal {
  opacity: var(--thermal);
  z-index: 2;
  filter: saturate(1.1) contrast(1.1) brightness(1.02) url(#thermal-iron-mbw);
  mix-blend-mode: normal;
  transition: opacity 0.2s linear;
  will-change: opacity, filter;
}

.thermal-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 180, 80, 0.08) 40%,
    rgba(255, 230, 180, 0.14) 50%,
    rgba(255, 180, 80, 0.08) 60%,
    transparent 100%
  );
  top: calc(-40% + var(--thermal) * 140%);
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: calc(var(--thermal) * 0.85);
  transition: top 0.15s linear, opacity 0.2s linear;
  filter: blur(2px);
}

.thermal-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: calc(var(--thermal) * 0.25);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.6 0 0 0 0 0.1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  transition: opacity 0.2s linear;
  animation: thermalNoiseShift 0.9s steps(4) infinite;
}

@keyframes thermalNoiseShift {
  0%   { background-position: 0 0; }
  25%  { background-position: 24px -18px; }
  50%  { background-position: -20px 30px; }
  75%  { background-position: 18px 22px; }
  100% { background-position: 0 0; }
}

#panel2.panel.active .panel-image-container {
  isolation: isolate;
}

#panel2.panel.active .panel-img:not(.panel-img-thermal) {
  filter: saturate(0.95) contrast(1.05) brightness(calc(1 - var(--thermal) * 0.12));
}

.panel-led {
  animation: panelLed 1.5s ease-in-out infinite;
}

.panel-led:nth-child(2) { animation-delay: 0.3s; }
.panel-led:nth-child(3) { animation-delay: 0.6s; }
.panel-led:nth-child(4) { animation-delay: 0.9s; }

@keyframes panelLed {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
  50% { opacity: 0.4; filter: none; }
}

.panel-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 32px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  width: fit-content;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.step-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.step-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.progress-step.active .step-num {
  color: var(--brand-orange);
}

.progress-step.active .step-label {
  color: var(--text-primary);
}

.progress-line {
  width: 32px;
  height: 1px;
  background: var(--border-color);
  margin: 0 12px;
  position: relative;
  overflow: hidden;
}

.progress-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--brand-orange);
  transition: width 0.5s ease;
}

.progress-step.active + .progress-line::after {
  width: 100%;
}

.section-2-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -6px;
}

.section-2-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  align-self: stretch;
  /* ↓ Início horizontal do título = início do s2-text-stack */
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.s2-text-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 18px 0;
  padding: 24px 26px 30px 26px;
  max-width: 100%;
  border-radius: 22px;
  isolation: isolate;
  overflow: visible;
  z-index: 22;
  pointer-events: auto;
  transition: box-shadow 260ms ease-out, background-color 260ms ease-out, backdrop-filter 260ms ease-out;
  align-items: flex-start;
  justify-content: flex-start;
}
/* Camada de fundo gradiente para CONTRASTE do texto sobre as imagens.
   Paleta = fundo real da página (--bg-darker #070B14 → --bg-dark #0B1120)
   com opacidade 76~88% + blur sutil para destacar SEM ocultar o painel. */
.s2-text-stack::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  z-index: -1;
  background:
    radial-gradient(120% 120% at 8% 6%,
        rgba(249, 115, 22, 0.14) 0%, rgba(249, 115, 22, 0.00) 38%),
    linear-gradient(135deg,
        rgba( 7, 11, 20, 0.88) 0%,
        rgba( 7, 11, 20, 0.82) 42%,
        rgba(11, 17, 32, 0.76) 100%);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  box-shadow:
    0 12px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(249, 115, 22, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(249, 115, 22, 0.10);
}
/* Garante que TODO o conteúdo (p, bullets) fique ACIMA da camada ::before,
   e que o ::before fique sempre por CIMA das imagens do painel. */
.s2-text-stack > * {
  position: relative;
  z-index: 2;
}
.section-2 .panel-container {
  /* Deixa as imagens painéis por baixo do text stack (z 22 > z 3) */
  position: relative;
  z-index: 3;
}

/* ================= Reveal scroll initial state ================= */
.reveal-s2-text,
.reveal-s2-bullets .s2-feature-bullet,
.section-2 .panel-container img.panel-img {
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}
.reveal-s2-text .text-brand-orange {
  transition: text-shadow 220ms ease-out, filter 220ms ease-out, color 220ms ease-out;
}

/* ================= Electric post-reveal keyframes ================= */
@keyframes s2-electric-flicker {
  0%   { opacity: 0; filter: brightness(1); }
  5%   { opacity: 0.55; filter: brightness(2.15); }
  9%   { opacity: 0; filter: brightness(1); }
  16%  { opacity: 0.72; filter: brightness(2.6); }
  22%  { opacity: 0.05; filter: brightness(1.1); }
  31%  { opacity: 0.42; filter: brightness(1.85); }
  38%  { opacity: 0; filter: brightness(1); }
  50%  { opacity: 0.9; filter: brightness(3.2); }
  60%  { opacity: 0.1; filter: brightness(1.15); }
  72%  { opacity: 0.6; filter: brightness(2.35); }
  85%  { opacity: 0.05; filter: brightness(1.08); }
  92%  { opacity: 0.55; filter: brightness(2.4); }
  100% { opacity: 0; filter: brightness(1); }
}
@keyframes s2-bolt-shadow {
  0%   { box-shadow: inset 0 0 0 0 rgba(249, 115, 22, 0); background-color: rgba(249,115,22,0); }
  4%   { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 0 18px 2px rgba(255, 214, 102, 0.72), 0 0 44px 6px rgba(249, 115, 22, 0.55); background-color: rgba(255, 220, 140, 0.05); }
  11%  { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); background-color: rgba(249,115,22,0); }
  21%  { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 0 12px 1px rgba(103, 232, 249, 0.55), 0 0 32px 4px rgba(103, 232, 249, 0.22); }
  33%  { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); }
  50%  { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7), 0 0 26px 3px rgba(255, 214, 102, 0.9), 0 0 62px 10px rgba(249, 115, 22, 0.78), 0 0 90px 14px rgba(103, 232, 249, 0.45); background-color: rgba(255, 235, 190, 0.08); }
  70%  { box-shadow: 0 0 8px 1px rgba(255, 214, 102, 0.25); }
  85%  { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 0 14px 2px rgba(249, 115, 22, 0.55), 0 0 32px 5px rgba(249, 115, 22, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); background-color: rgba(249,115,22,0); }
}
@keyframes s2-electric-text {
  0%   { text-shadow: 0 0 0 rgba(255,255,255,0); filter: brightness(1); }
  4%   { text-shadow: 0 0 2px rgba(255,255,255,0.95), 0 0 6px rgba(255, 214, 102, 0.85), 0 0 14px rgba(249, 115, 22, 0.72), 0 0 26px rgba(103, 232, 249, 0.55); filter: brightness(2.3); }
  12%  { text-shadow: 0 0 0 rgba(0,0,0,0); filter: brightness(1); }
  22%  { text-shadow: 0 0 4px rgba(103, 232, 249, 0.55), 0 0 10px rgba(249, 115, 22, 0.35); }
  34%  { text-shadow: 0 0 0 rgba(0,0,0,0); }
  50%  { text-shadow: 0 0 2px rgba(255,255,255,1), 0 0 8px rgba(255, 214, 102, 1), 0 0 18px rgba(249, 115, 22, 0.92), 0 0 36px rgba(103, 232, 249, 0.72), 0 0 52px rgba(249, 115, 22, 0.5); filter: brightness(3); }
  70%  { text-shadow: 0 0 2px rgba(255, 214, 102, 0.35), 0 0 6px rgba(249, 115, 22, 0.2); }
  85%  { text-shadow: 0 0 3px rgba(255,255,255,0.85), 0 0 10px rgba(249, 115, 22, 0.7), 0 0 22px rgba(255, 214, 102, 0.45); }
  100% { text-shadow: 0 0 0 rgba(0,0,0,0); filter: brightness(1); }
}
@keyframes s2-electric-dot {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 0 10px rgba(249, 115, 22, 0.55); }
  45%     { transform: scale(1.6); box-shadow: 0 0 0 4px rgba(255, 214, 102, 0.35), 0 0 22px rgba(249, 115, 22, 0.95), 0 0 44px rgba(255, 214, 102, 0.55); }
  55%     { transform: scale(0.92); box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2), 0 0 12px rgba(103, 232, 249, 0.8); }
}
@keyframes s2-bolt-flash {
  0%   { clip-path: inset(50% 100% 50% 0%); opacity: 0; }
  2%   { clip-path: inset(48% 82% 48% 2%);  opacity: 1; background: linear-gradient(90deg, rgba(103,232,249,0.5) 0%, rgba(255,255,255,0.95) 40%, rgba(255,214,102,0.8) 100%); filter: drop-shadow(0 0 4px rgba(255,255,255,0.8)); }
  8%   { clip-path: inset(40% 70% 55% 8%);  opacity: 0.6; }
  14%  { clip-path: inset(55% 78% 40% 6%);  opacity: 0; }
  30%  { clip-path: inset(46% 70% 52% 5%);  opacity: 0.9; background: linear-gradient(90deg, rgba(103,232,249,0.65) 0%, rgba(255,255,255,0.95) 45%, rgba(255,214,102,0.85) 100%); }
  50%  { clip-path: inset(36% 62% 58% 0%);  opacity: 1; background: linear-gradient(90deg, rgba(249,115,22,0.9) 0%, rgba(255,255,255,1) 40%, rgba(103,232,249,0.85) 60%, rgba(255,214,102,0.9) 100%); filter: drop-shadow(0 0 8px rgba(255,214,102,0.9)); }
  82%  { clip-path: inset(44% 72% 54% 7%);  opacity: 0.75; background: linear-gradient(90deg, rgba(103,232,249,0.7) 0%, rgba(255,255,255,0.95) 50%, rgba(249,115,22,0.75) 100%); }
  100% { clip-path: inset(50% 100% 50% 0%); opacity: 0; }
}

/* ================= Electric on-class trigger ================= */
.reveal-s2.s2-electric-on {
  animation: s2-bolt-shadow 950ms steps(22, end) forwards;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.reveal-s2.s2-electric-on .reveal-s2-text {
  animation: s2-electric-text 920ms steps(24, end) forwards;
}
.reveal-s2.s2-electric-on .reveal-s2-text .text-brand-orange {
  filter: brightness(2.4) drop-shadow(0 0 4px rgba(249, 115, 22, 0.95));
}
.reveal-s2.s2-electric-on .reveal-s2-text .text-brand-orange:nth-of-type(2) {
  animation: s2-electric-flicker 720ms steps(18, end) 0.08s forwards;
}
.reveal-s2.s2-electric-on .s2-feature-bullet .s2-bullet-dot {
  animation: s2-electric-dot 780ms steps(20, end) 0.04s forwards;
}
.reveal-s2.s2-electric-on .s2-electric-flash {
  animation: s2-bolt-flash 920ms steps(30, end) forwards;
}
.s2-electric-flash {
  position: absolute;
  left: 0;
  top: 34%;
  width: 100%;
  height: 32%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  z-index: 2;
}

.s2-description {
  font-size: 22px;
  color: #FFFFFF !important;
  line-height: 1.78;
  max-width: 58ch;
  margin: 0 0 22px 0;
  font-weight: 420;
}

.s2-description .text-brand-orange {
  color: var(--brand-orange) !important;
  font-weight: 650;
}

.s2-feature-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 0;
  max-width: 100%;
}

.s2-feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 450;
  padding: 10px 0;
}

.s2-bullet-dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--brand-orange, #F97316);
  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.15),
    0 0 10px rgba(249, 115, 22, 0.55);
}

.s2-bullet-text {
  display: inline-flex;
  flex-wrap: wrap;
  white-space: pre;
}
.s2-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  font-weight: 450;
  letter-spacing: 0.005em;
  will-change: opacity, transform, color, text-shadow, filter;
  backface-visibility: hidden;
}
.s2-bullet-dot {
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
  transition: box-shadow 220ms ease-out;
}

/* =============== PANEL-1 GHOST (preserva DOM para dock, mas img/tag fallback invisíveis) =============== */
.panel-1--ghost > .panel-image-container > img.panel-img,
.panel-1--ghost > .panel-image-container > .panel-img-overlay,
.panel-1--ghost > .panel-image-container > .panel-tag {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
}
.panel-1--ghost > .panel-image-container {
  overflow: visible;
}
/* O #heroFloatingPanel reparentado dentro de panel-1 DEVE continuar visível */
.panel-1--ghost > .panel-image-container > #heroFloatingPanel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* =============== DOCK-ACTIVE: imagens fallback do TRACK somem (efeito interligado) =============== */
.panel-container--dock-active .panel-track .panel > .panel-image-container {
  overflow: visible;
  background: transparent !important;               /* remove "tela escura" preta */
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
.panel-container--dock-active .panel-track .panel {
  background: transparent !important;
  filter: none !important;
  box-shadow: none !important;
}
.panel-container--dock-active .panel-track .panel > .panel-image-container > img.panel-img,
.panel-container--dock-active .panel-track .panel > .panel-image-container > .panel-img-overlay,
.panel-container--dock-active .panel-track .panel > .panel-image-container > .panel-tag {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
  background: transparent !important;
}
/* O heroFloatingPanel DENTRO do panel1ImageWrap NUNCA some; ele é o conteúdo real */
.panel-container--dock-active .panel-track .panel > .panel-image-container > #heroFloatingPanel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ===== Botão CTA (Saiba mais) DENTRO do s2-text-stack =====
   Alinhado EXATAMENTE à esquerda, logo abaixo do último bullet. */
.reveal-s2-cta {
  /* inline-flex que é o default, mas garantimos alinhamento */
  display: inline-flex;
  align-self: flex-start;
  justify-content: flex-start;
  justify-self: flex-start;
  text-align: left;
  margin-top: 6px;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 2;
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}
.reveal-s2-cta > .btn-primary,
.reveal-s2-cta.btn-primary {
  /* remove o width 100% do media query mobile se necessário; no desktop mantém padding. */
  width: auto;
  min-width: 240px;
  padding: 16px 28px;
  justify-content: center;
}

/* =============== GRADIENTE MASCARA no #panel1 .panel-image-container =============== */
/* No onLoad (section 1 centralizada): 100% opaco → esconde completamente a área.     */
/* Ao descer rolagem entre section-1 → section-2: opacity 1→0 com scrub 1:1.           */
/* Mesma paleta de fundo da página (--bg-darker #070B14 → --bg-dark #0B1120 → transpa). */
.s2-fade-overlay {
  position: absolute;
  inset: -2px;
  z-index: 9;                    /* abaixo do heroFloatingPanel (z=10 no dock), acima de img/overlay/tag */
  pointer-events: none;
  user-select: none;
  will-change: opacity;
  backface-visibility: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(7, 11, 20, 1) 0%, rgba(7, 11, 20, 0.985) 30%,
                    rgba(11, 17, 32, 0.93) 58%, rgba(11, 17, 32, 0.68) 78%, rgba(11, 17, 32, 0) 100%);
  opacity: 1;
}
.panel-container--dock-active .s2-fade-overlay,
.panel-1--ghost .s2-fade-overlay {
  /* mantém layer ativo (opacity controlado por GSAP) mas não herda hidden/transparent de siblings */
  visibility: visible !important;
  pointer-events: none !important;
}

/* =============== BULLET: palavra COMPLETA → PULSA LARANJA =============== */
@keyframes s2-bullet-pulse-orange {
  0%   { color: rgba(255,255,255,0.93);
         text-shadow: 0 0 0 rgba(249,115,22,0), 0 0 0 rgba(255,255,255,0);
         filter: brightness(1); letter-spacing: 0.005em; }
  8%   { color: #FFFFFF;
         text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 18px rgba(249,115,22,0.95), 0 0 36px rgba(249,115,22,0.55);
         filter: brightness(1.55); }
  16%  { color: #F97316;
         text-shadow: 0 0 4px rgba(255,255,255,0.7), 0 0 14px rgba(255,214,102,0.9), 0 0 30px rgba(249,115,22,0.8);
         filter: brightness(1.8) saturate(1.4); }
  26%  { color: rgba(255,255,255,0.95);
         text-shadow: 0 0 2px rgba(255,255,255,0.45), 0 0 10px rgba(249,115,22,0.5);
         filter: brightness(1.15); }
  36%  { color: #F97316;
         text-shadow: 0 0 5px rgba(255,255,255,0.9), 0 0 16px rgba(255,214,102,1), 0 0 32px rgba(249,115,22,0.9), 0 0 58px rgba(249,115,22,0.45);
         filter: brightness(1.9) saturate(1.6); }
  50%  { color: #FFFFFF;
         text-shadow: 0 0 3px rgba(255,255,255,0.75), 0 0 12px rgba(249,115,22,0.65);
         filter: brightness(1.25); }
  62%  { color: #F97316;
         text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 14px rgba(255,214,102,0.95), 0 0 30px rgba(249,115,22,0.85);
         filter: brightness(1.75) saturate(1.5); }
  76%  { color: rgba(255,255,255,0.95);
         text-shadow: 0 0 2px rgba(255,255,255,0.4), 0 0 9px rgba(249,115,22,0.4);
         filter: brightness(1.12); }
  88%  { color: #F97316;
         text-shadow: 0 0 5px rgba(255,255,255,0.95), 0 0 16px rgba(255,214,102,1), 0 0 34px rgba(249,115,22,0.92), 0 0 64px rgba(249,115,22,0.48);
         filter: brightness(1.95) saturate(1.65); }
  100% { color: rgba(255,255,255,0.93);
         text-shadow: 0 0 1px rgba(249,115,22,0.15);
         filter: brightness(1); letter-spacing: 0.005em; }
}

@keyframes s2-bullet-dot-flash {
  0%   { box-shadow: 0 0 0 3px rgba(249,115,22,0.15), 0 0 10px rgba(249,115,22,0.55); transform: scale(1); }
  12%  { box-shadow: 0 0 0 5px rgba(255,214,102,0.35), 0 0 24px rgba(249,115,22,1), 0 0 48px rgba(255,214,102,0.65); transform: scale(1.45); }
  28%  { box-shadow: 0 0 0 3px rgba(249,115,22,0.18), 0 0 12px rgba(103,232,249,0.75); transform: scale(0.95); }
  44%  { box-shadow: 0 0 0 6px rgba(255,214,102,0.42), 0 0 30px rgba(249,115,22,1), 0 0 60px rgba(249,115,22,0.7); transform: scale(1.6); }
  62%  { box-shadow: 0 0 0 3px rgba(249,115,22,0.15), 0 0 11px rgba(249,115,22,0.6); transform: scale(1.05); }
  80%  { box-shadow: 0 0 0 5px rgba(255,214,102,0.3), 0 0 22px rgba(255,214,102,0.9), 0 0 46px rgba(249,115,22,0.7); transform: scale(1.35); }
  100% { box-shadow: 0 0 0 3px rgba(249,115,22,0.15), 0 0 10px rgba(249,115,22,0.55); transform: scale(1); }
}

.s2-bullet-word-complete {
  animation: s2-bullet-pulse-orange 920ms steps(26, end) forwards;
}
.s2-bullet-word-complete .s2-char {
  animation: s2-bullet-pulse-orange 920ms steps(26, end) forwards;
}
.s2-feature-bullet:has(.s2-bullet-word-complete) .s2-bullet-dot {
  animation: s2-bullet-dot-flash 920ms steps(22, end) forwards;
}

@media (max-width: 900px) {
  .s2-feature-bullets {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.04);
  transform: translateX(6px);
}

.feature-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  color: var(--brand-orange-light);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ========================================================= */
/* ============ SECTION 3 — SPDA / STORM =================== */
/* ========================================================= */
/* ============================================================
   SECTION 3: Garantir visibilidade (textos NÃO somem no desktop!)
   overflow-y visible, position relative, min-height intacta.
   ============================================================ */
.section-3 {
  background: linear-gradient(180deg, #0C1321 0%, #0A0F1C 50%, #070A14 100%);
  padding: 120px 0 100px !important;
  min-height: 100vh !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  aspect-ratio: auto !important;
}

.storm-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.clouds-layer {
  position: absolute;
  inset: 0;
}

.leaves-layer {
  position: absolute;
  inset: 0;
}

.wind-lines {
  position: absolute;
  inset: 0;
}

.cloud {
  position: absolute;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-radius: 50%;
  opacity: 0;
  filter: blur(8px);
}

.leaf {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #78350F;
  border-radius: 0 100% 0 100%;
  opacity: 0;
  transform-origin: center;
}

.wind-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), transparent);
  opacity: 0;
  border-radius: 999px;
}

.section-3-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.spda-visual {
  position: relative;
}

.spda-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.spda-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  filter:
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 40px rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.25);
  background: #0A0F1C;
  transition: filter 0.18s ease;
}

.spda-stage.flash {
  filter:
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 80px rgba(254, 243, 199, 0.7))
    brightness(1.45);
}

.spda-img-wrap {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, filter 0.2s ease;
}

.spda-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.08);
}

.spda-img-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.0) 0%, rgba(7, 11, 20, 0.55) 70%, rgba(7, 11, 20, 0.88) 100%);
  pointer-events: none;
}

.lightning-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 8%, rgba(254, 243, 199, 0.6) 0%, rgba(251, 191, 36, 0.18) 25%, rgba(249, 115, 22, 0.05) 50%, transparent 75%);
  opacity: 0;
  animation: lightGlow 0.22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes lightGlow {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #FCA5A5;
  margin-bottom: 28px;
}

.warning-list {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 4px solid #EF4444;
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(239, 68, 68, 0.45),
              inset 0 0 0 1px rgba(239, 68, 68, 0.05);
  position: relative;
  overflow: visible;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 5;
}

.warning-list::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -40%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.warn-item {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 12px;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.warn-item:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.65);
  transform: translateX(6px) translateY(-1px) !important;
  box-shadow: 0 10px 28px -12px rgba(239, 68, 68, 0.55);
}

.warn-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(249, 115, 22, 0.28));
  border-radius: 10px;
  color: #FECACA;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25),
              0 8px 18px -10px rgba(239, 68, 68, 0.7);
  visibility: visible !important;
  opacity: 1 !important;
}

.warn-item strong {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 0px;
  visibility: visible !important;
  opacity: 1 !important;
}

.warn-item p {
  font-size: 16px;
  color: #E2E8F0;
  line-height: 1.6;
  margin: 0;
  visibility: visible !important;
  opacity: 1 !important;
}


/* =========================================================
   SECTION 4: Garantir visibilidade (textos NÃO somem!)
   overflow visible, aspect auto, opacidade 1 forçada.
   ========================================================= */
.section-4 {
  background: var(--bg-darker);
  padding: 120px 0 !important;
  min-height: 100vh !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  aspect-ratio: auto !important;
}

.section-4-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.section-header-sm {
  margin-bottom: 12px;
}

.contact-header-img {
  margin-top: 28px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.03);
  background: var(--bg-darker);
}

.contact-facade-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  will-change: transform;
}

.contact-header-img:hover .contact-facade-img,
.contact-header-img:focus-within .contact-facade-img {
  transform: scale(1.03);
}

.contact-img-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0) 45%, rgba(2, 6, 23, 0.55) 100%),
    linear-gradient(90deg, rgba(249, 115, 22, 0.10) 0%, transparent 50%);
  z-index: 2;
}

.contact-logo-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.contact-logo-grad {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.55) 0%, rgba(249, 115, 22, 0.28) 32%, rgba(17, 24, 39, 0.88) 72%, rgba(2, 6, 23, 0.98) 100%);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(1.1);
}

.contact-logo-img {
  position: relative;
  z-index: 1;
  width: 56%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  filter: saturate(1.08) contrast(1.02);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 70px -10px rgba(249, 115, 22, 0.55);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    filter 0.8s ease;
}

.contact-header-img:hover .contact-logo-grad,
.contact-header-img:focus-within .contact-logo-grad {
  opacity: 1;
  transform: scale(1);
}

.contact-header-img:hover .contact-logo-img,
.contact-header-img:focus-within .contact-logo-img {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1.18) contrast(1.05);
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-orange-light);
  margin-bottom: 16px;
}

.contact-title {
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 15.5px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateX(6px);
  background: rgba(249, 115, 22, 0.04);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.08));
  border-radius: 14px;
  color: var(--brand-orange-light);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.contact-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-item strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-title {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-darker);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  transition: all 0.28s ease;
  outline: none;
  resize: vertical;
}

.form-row textarea {
  min-height: 110px;
  line-height: 1.6;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(100, 116, 139, 0.7);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--brand-orange);
  background: rgba(11, 17, 32, 0.9);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-row select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}


/* ========================================================= */
/* ===================== FOOTER ============================ */
/* ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--bg-darker) 0%, #05080F 100%);
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  margin-top: 0;
  border-radius: var(--radius-landmark) var(--radius-landmark) 0 0;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: 72px var(--wr) 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}

.footer-tagline {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 8px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li {
  font-size: 14px;
  color: rgba(226, 232, 240, 0.78);
  transition: color 0.25s ease;
  line-height: 1.5;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--brand-orange-light);
}

.footer-col li:hover {
  color: var(--brand-orange-light);
}

.footer-bottom {
  border-top: 1px solid rgba(30, 41, 59, 0.55);
  padding: 22px 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}


/* ========================================================= */
/* =================== RESPONSIVO ========================== */
/* ========================================================= */
@media (max-width: 1280px) {
  .hero-content-stage { padding-top: 16%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-floating-panel { right: 36px; bottom: 56px; width: 140px; }
  .hero-floating-badge { position: relative; left: auto; bottom: auto; margin-top: -10px; }
}

@media (max-width: 1023.98px) {
  :root {
    --wr: 20px;
    --radius-landmark: 24px;
  }

  /* =============== MOBILE: DESATIVA LOCK 1200×850 (layout fluido normal) ============== */
  .hero,
  .section-2,
  .section-3,
  .section-4 {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    display: block !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  /* =============== Wrappers internos: NÃO absolute inset:0 (volta fluxo normal) ======== */
  .hero > .wrapper,
  .section-2-wrapper,
  .section-3-wrapper,
  .section-4-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 var(--wr) !important;
    display: block !important;
    align-items: stretch !important;
  }

  /* === [REQ 1 MOBILE] .wrapper da section 1 (hero) limitado ao canvas, sem overflow ===
         + ===== [NOVO REQ] TODOS elementos/subelementos do wrapper (hero-landmark / stage / frame / canvas / content-stage / hero-copy) =====
         ======= FORÇADOS a ALTURA FIXA de 520px (≤1024px mobile) =======
         ======= (evita 824px de altura excessiva que o usuário reportou) ======= */
  section.hero > .wrapper,
  section.hero > .wrapper * {
    max-height: 520px !important;
  }
  section.hero > .wrapper {
    width: 100% !important;
    height: 520px !important;
    min-height: 520px !important;
    max-width: 100% !important;
    max-height: 520px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
  }
  section.hero > .wrapper > .hero-landmark,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage > .hero-bg-frame,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage > .hero-bg-frame > .hero-bg-img,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage > .hero-bg-frame > canvas.hero-bg-img,
  section.hero > .wrapper > .hero-landmark > .hero-content-stage,
  section.hero > .wrapper > .hero-landmark > .hero-content-stage > .hero-copy {
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  section.hero > .wrapper > .hero-landmark > .hero-content-stage {
    /* Força o content-stage caber DENTRO do wrapper 520px (absolute ele podia vazar) */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
  }

  /* =============== Paddings mobile (só texto, espaçamentos bonitos) =================== */
  .hero     { padding: 18px 0 18px 0 !important; }
  .section-2 {
    padding: 44px 0 24px 0 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
  }
  .section-3 { padding: 72px 0 56px 0 !important; }
  .section-4 { padding: 72px 0 64px 0 !important; }

  /* =============== MOBILE: REMOVER IMAGENS Section 2 e Section 3 ====================== */
  .section-2 .panel-container,
  .section-2 .panel-track,
  .section-2 .panel,
  .section-2 .panel-image-container,
  .section-2 .panel-img,
  .section-2 .panel-tag,
  .section-2 .panel-img-overlay,
  .section-2 .panel-led,
  .section-2 .panel-progress,
  .section-2 .progress-step,
  .section-2 .progress-line,
  .section-2 .step-num,
  .section-2 .step-label,
  .section-2 .s2-fade-overlay,
  .section-3 .spda-visual,
  .section-3 .storm-bg,
  .section-3 .clouds-layer,
  .section-3 .leaves-layer,
  .section-3 .wind-lines,
  .section-3 .lightning-glow,
  .section-3 .spda-stage,
  .section-3 .spda-img-wrap,
  .section-3 .spda-img,
  .section-3 .spda-img-vignette {
    display: none !important;
  }

  /* =============== MOBILE: REMOVER QUADRO/DOCK que atravessa 1 → 2 =================== */
  .hero-floating-panel,
  #heroFloatingPanel,
  .mini-panel,
  .mini-panel-img,
  .panel-1--ghost,
  .hero-landmark:hover .hero-floating-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .panel-container--dock-active::after,
  .panel-container--dock-active { opacity: 1 !important; }

  /* =============== HERO mobile (canvas/frame + conteudo SOBREPOSTO dentro da area) ====== */
  .hero-bg-stage,
  .hero-bg-frame,
  .hero-bg-img {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  .hero-bg-frame {
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
    display: block !important;
  }
  .hero-bg-img { object-fit: cover; object-position: center 32%; opacity: 0.7; }
  canvas.hero-bg-img { width: 100% !important; height: 520px !important; }

  .hero-landmark {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 0 !important;
  }

  /* Conteudo do hero fica SOBREPOSTO DENTRO do frame (520px altura) */
  .hero-content-stage {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .hero-copy {
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 28px 24px 26px 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .hero-eyebrow {
    margin-bottom: 0 !important;
    align-self: flex-start;
    font-size: 11.5px;
    padding: 7px 12px;
  }
  .hero-title {
    font-size: clamp(32px, 8.2vw, 44px);
    line-height: 1.06;
    margin: 0;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-cta {
    margin-top: 4px;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost-light {
    min-height: 48px;
    font-size: 14.5px;
  }

  .hero-floating-badge {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 150px !important;            /* ====== REQ: largura 150px ====== */
    max-width: 150px !important;
    min-width: 150px !important;
    padding: 9px 10px 9px 10px;
    z-index: 4;
    margin-top: -5px;
    margin-bottom: 5px;
    box-sizing: border-box !important;
  }
  .hero-floating-badge strong { font-size: 18px; line-height: 1; max-width: 52px; flex: 0 0 52px; }
  .hero-floating-badge span   { font-size: 9.5px; line-height: 1.2; max-width: 70px; flex: 1 1 auto; }

  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(7, 11, 20, 0.22) 0%, rgba(7, 11, 20, 0.52) 42%, rgba(7, 11, 20, 0.88) 100%),
      linear-gradient(90deg, rgba(7, 11, 20, 0.78) 0%, rgba(7, 11, 20, 0.30) 100%);
  }

  /* =============== Section 2 mobile (SÓ TEXTO: bullets + CTA) ======================== */
  .section-2-wrapper,
  .section-3-wrapper,
  .section-4-wrapper {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: flex-start !important;
  }
  .section-2-content {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
  }
  .section-2-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .section-title {
    margin-bottom: 22px !important;
    font-size: clamp(28px, 7.2vw, 44px);
  }
  .s2-text-stack {
    gap: 20px !important;
    margin: 0 !important;
    padding: 16px 16px 20px 16px !important;
    max-width: 100% !important;
    border-radius: 18px !important;
    height: auto !important;
    width: 100% !important;
  }
  .s2-electric-flash { display: none !important; }
  .reveal-s2-cta { margin-top: 12px !important; }
  .reveal-s2-cta.btn-primary { margin-top: 0 !important; }
  .s2-description { font-size: 16px; line-height: 1.55; }
  .section-body { font-size: 16px !important; line-height: 1.55; }
  .contact-subtitle.section-body { font-size: 16px !important; }
  .spda-body.section-body { font-size: 16px !important; }
  .contact-subtitle { font-size: 16px !important; }
  .s2-feature-bullets { gap: 20px 0 !important; }
  .s2-feature-bullet {
    padding: 8px 0 !important;
    font-size: 16px !important;
    line-height: 1.5;
  }

  /* =============== Section 3 mobile (SÓ TEXTO: alert + services grid) =============== */
  .section-3 .spda-title { margin-bottom: 16px !important; }
  .section-3 .spda-body { margin-bottom: 28px !important; font-size: 18px; }
  .section-3 .alert-badge { margin-bottom: 20px !important; }
  .services-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
  .svc-item { padding: 12px 14px !important; }
  .svc-icon { width: 38px; height: 38px; font-size: 16px !important; }

  /* =============== Section 4 mobile ================================================= */
  .contact-info { margin-bottom: 32px; }
  .contact-items { gap: 16px; }
  .contact-form-wrap { padding: 22px 18px !important; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }

  /* =============== Footer mobile =================================================== */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding: 48px var(--wr) 28px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .scroll-indicator { display: none !important; }
}

@media (max-width: 640px) {
  .hero-bg-frame { min-height: 480px; border-radius: 20px; }
  canvas.hero-bg-img { height: 480px !important; }

  /* === [REQ 1 MOBILE] .wrapper section 1 (hero) limitado canvas ===
         + ===== [NOVO REQ] TODOS elementos/subelementos do wrapper hero =====
         ======= FORÇADOS a ALTURA FIXA de 480px (≤640px mobile) — NÃO 824px ======= */
  section.hero > .wrapper,
  section.hero > .wrapper * {
    max-height: 480px !important;
  }
  section.hero > .wrapper {
    width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    max-width: 100% !important;
    max-height: 480px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
  }
  section.hero > .wrapper > .hero-landmark,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage > .hero-bg-frame,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage > .hero-bg-frame > .hero-bg-img,
  section.hero > .wrapper > .hero-landmark > .hero-bg-stage > .hero-bg-frame > canvas.hero-bg-img,
  section.hero > .wrapper > .hero-landmark > .hero-content-stage,
  section.hero > .wrapper > .hero-landmark > .hero-content-stage > .hero-copy {
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  section.hero > .wrapper > .hero-landmark > .hero-content-stage {
    /* Força o content-stage caber DENTRO do wrapper 480px (absolute ele podia vazar) */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
  }

  /* Mantem conteudo sobreposto DENTRO da area do frame em telas pequenas */
  .hero-content-stage {
    position: absolute !important;
    inset: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .hero-copy {
    gap: 14px !important;
    padding: 22px 18px 22px 18px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
  }
  .hero-title {
    font-size: clamp(26px, 9vw, 40px);
    line-height: 1.05;
    margin: 0;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-eyebrow { font-size: 11px; margin-bottom: 0 !important; padding: 6px 11px; }

  .hero-cta { flex-direction: column !important; gap: 10px !important; margin-top: 0 !important; }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost,
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .s2-text-stack { padding: 14px 14px 18px 14px !important; gap: 16px !important; height: auto !important; width: 100% !important; }
  .section-title { font-size: clamp(26px, 9vw, 40px); margin-bottom: 18px !important; }
  .s2-description { font-size: 16px; line-height: 1.55; }
  .section-body { font-size: 16px !important; line-height: 1.55; }
  .contact-subtitle { font-size: 16px !important; }
  .spda-body.section-body { font-size: 16px !important; }
  .section-2 { padding: 40px 0 20px 0 !important; min-height: 0 !important; }
  .s2-electric-flash { display: none !important; }

  /* ======= [REQ 2 PORTFOLIO MOBILE] RISCOS-CARROSSEL: 1 card por vez / slide system ======= */
  /* Desktop continua intacto (grid auto-fit + animacao loop contínuo original) */
  .riscos-carousel-stage {
    position: relative;
    width: 100% !important;
    overflow: hidden !important;
    padding-bottom: 56px !important;
  }
  .riscos-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 400% !important;   /* 4 cards ORIGINAIS (grupo 1) */
    transform: translate3d(0, 0, 0);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    /* DESLIGA o loop contínuo desktop — NO MOBILE o movimento só por clique nos botões */
    animation: none !important;
    animation-name: none !important;
    animation-play-state: paused !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  /* Apenas GRUPO 1 (4 ORIGINAIS) participa do carrossel; GRUPO 2 oculto (usado no loop desktop, não precisamos) */
  .riscos-carousel-track > .riscos-carousel-card:nth-child(n+5) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* Cada card ocupa 100% de 400% = 25% da track */
  .riscos-carousel-track > .riscos-carousel-card:nth-child(-n+4) {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    padding: 0 46px 56px 46px !important;  /* 46px lateral = margem interna p/ botões riscos-nav 40px ficarem FORA do card sem sobrepor */
    min-height: 0 !important;
    height: auto !important;
  }

  /* ======= [REQ 2 MOBILE] risco-card TAMANHO REDUZIDO p/ não sobrepor riscos-nav prev/next ======= */
  .riscos-carousel-card,
  .riscos-carousel-card.risco-card {
    padding: 16px 16px 18px 16px !important;
    gap: 10px !important;
    border-radius: 18px !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  .riscos-carousel-card .risco-icon,
  .riscos-carousel-card.risco-card .risco-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
  .riscos-carousel-card .risco-icon svg,
  .riscos-carousel-card.risco-card .risco-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .riscos-carousel-card .risco-body,
  .riscos-carousel-card.risco-card .risco-body {
    gap: 8px !important;
  }
  .riscos-carousel-card .risco-tag,
  .riscos-carousel-card.risco-card .risco-tag {
    font-size: 10px !important;
    padding: 4px 10px !important;
    letter-spacing: 0.06em !important;
  }
  .riscos-carousel-card .risco-tag::before,
  .riscos-carousel-card.risco-card .risco-tag::before {
    width: 6px !important;
    height: 6px !important;
  }
  .riscos-carousel-card .risco-name,
  .riscos-carousel-card.risco-card .risco-name {
    font-size: 15px !important;
    line-height: 1.22 !important;
  }
  .riscos-carousel-card .risco-text,
  .riscos-carousel-card.risco-card .risco-text {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }
  .riscos-carousel-card .risco-list,
  .riscos-carousel-card.risco-card .risco-list {
    gap: 6px !important;
    margin: 2px 0 0 0 !important;
  }
  .riscos-carousel-card .risco-list li,
  .riscos-carousel-card.risco-card .risco-list li {
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding-left: 14px !important;
  }
  .riscos-carousel-card .risco-list li::before,
  .riscos-carousel-card.risco-card .risco-list li::before {
    width: 5px !important;
    height: 5px !important;
    left: 0 !important;
  }
  /* Botões navegação mobile-only (antes display none por padrão, agora visíveis) */
  .riscos-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(249, 115, 22, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FED7AA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
  }
  .riscos-nav svg { width: 18px; height: 18px; stroke-width: 2.5; }
  .riscos-nav:hover {
    background: linear-gradient(135deg, #FB923C, #F97316);
    color: #FFF7ED;
    transform: translateY(-50%) scale(1.06);
    border-color: rgba(251, 146, 60, 0.9);
  }
  .riscos-nav-prev { left: 4px; }
  .riscos-nav-next { right: 4px; }
  /* Dots */
  .riscos-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 12;
    padding: 0;
    margin: 0;
  }
  .riscos-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .riscos-dot.is-active {
    width: 32px;
    background: linear-gradient(135deg, #FB923C, #F97316);
    border-color: rgba(251, 146, 60, 0.95);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.55);
  }

  /* ======= [REQ 3 PORTFOLIO MOBILE] riscos-checklist-card todo texto flex column ======= */
  .riscos-checklist-card,
  .riscos-checklist-card > .risco-body,
  .riscos-checklist-card .risco-body > .risco-list,
  .riscos-checklist-card .risco-body > .risco-list > li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  .riscos-checklist-card .risco-body {
    gap: 10px !important;
  }
  .riscos-checklist-card .risco-list {
    gap: 16px !important;
  }
  .riscos-checklist-card .risco-list > li {
    gap: 8px !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }
  .riscos-checklist-card .risco-check-icon {
    align-self: flex-start !important;
    flex: 0 0 auto !important;
    margin-top: 2px;
    /* ELIMINA o risco-check-icon EXCLUSIVAMENTE no mobile (desktop mantém) */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  .riscos-checklist-card .risco-check-icon svg { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; }

  /* ======= [REQ 3 MOBILE] riscos-cta-row altura FIXA 350px + btn-primary DENTRO da caixa ======= */
  .riscos-cta-row {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 22px 20px !important;
    margin-top: 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    border-radius: 22px !important;
  }
  .riscos-cta-row .riscos-cta-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-height: 230px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .riscos-cta-row .riscos-cta-title {
    font-size: 20px !important;
    line-height: 1.22 !important;
    margin: 0 !important;
  }
  .riscos-cta-row .riscos-cta-desc {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    max-height: 150px !important;
    overflow: hidden !important;
  }
  .riscos-cta-row .btn-primary,
  .riscos-cta-row > .btn-primary,
  .riscos-cta-row > button.btn-primary,
  .riscos-cta-row button.btn-primary {
    /* Garante btn-primary FICA DENTRO da caixa 350px — não transborda */
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 52px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    justify-content: center !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    overflow: hidden !important;
  }

  /* ======= [REQ DASHBOARD-CHART MOBILE] =======
     - chart-chip da chart-card 2 (donut) ficar ABAIXO donut-row (status-wrap)
     - chart-title e chart-subtitle CENTRALIZADOS em TODAS chart-cards
     - técnica: .chart-header = display:contents (destroi container; filhos viram filhos do chart-card flex; usa order para rearranjar)
  */
  .chart-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }
  .chart-header {
    display: contents !important;   /* destrói a caixa do header; os filhos internos viram filhos DIRETOS do chart-card flex */
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* === ORDEM DOS ELEMENTOS (agora tudo filho direto do chart-card flex column): === */
  /* 1) Grupo title/subtitle (filho do antigo chart-header): PRIMEIRO no topo */
  .chart-header > div {
    order: 1 !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;   /* substitui o margin-bottom do header antigo */
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 2a) Carousel-stage (chart-card 1): fica DEPOIS do title/subtitle (meio) */
  .chart-card > .carousel-stage {
    order: 2 !important;
  }

  /* 2b) Status-wrap / donut-row (chart-card 2): fica DEPOIS do title/subtitle (meio) */
  .chart-card > .status-wrap {
    order: 2 !important;
  }

  /* 3) chart-chip (chart-card 2): fica ABAIXO donut-row (último) */
  .chart-header > .chart-chip {
    order: 3 !important;
    align-self: center !important;    /* centraliza horizontalmente */
    margin: 22px 0 0 0 !important;    /* espaçamento acima do chip (abaixo legend/donut) */
    width: auto !important;
    max-width: 100% !important;
  }

  /* ==== centraliza texto de title e subtitle em AMBAS as chart-cards ==== */
  .chart-title,
  .chart-header > div .chart-title {
    text-align: center !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
  }
  .chart-subtitle,
  .chart-header > div .chart-subtitle {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 42px var(--wr) 26px; }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    gap: 8px;
  }

  /* Badge experiencia no canto inferior direito em telas pequenas
     para nao conflitar com eyebrow no topo */
  .hero-floating-badge {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: -5px;
    transform: none !important;
    width: 150px !important;            /* ====== REQ: largura 150px ====== */
    max-width: 150px !important;
    min-width: 150px !important;
    padding: 8px 10px 8px 10px;
    box-sizing: border-box !important;
  }
  .hero-floating-badge strong {
    font-size: 18px;
    line-height: 1;
    max-width: 50px !important;
    flex: 0 0 50px !important;
  }
  .hero-floating-badge span {
    font-size: 9.5px;
    line-height: 1.2;
    max-width: 68px !important;
    flex: 1 1 auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg-img { transform: none !important; }
}


/* ========================================================= */
/* ===== ESTILOS ESPEC�FICOS DA P�GINA portfolio.html ===== */
/* ========================================================= */
    .portfolio-wrap { max-width: 1920px; margin: 0 auto; padding: 0 var(--wr); }

    /* ===== HERO INTRODUTÓRIO ===== */
    .portfolio-hero {
      padding-top: 140px;
      padding-bottom: 72px;
      position: relative;
      overflow: hidden;
    }
    .portfolio-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(249, 115, 22, 0.14), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(239, 68, 68, 0.08), transparent 60%);
      pointer-events: none;
      z-index: 0;
    }
    .portfolio-hero-inner { position: relative; z-index: 2; }
    .portfolio-badge {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 10px 20px;
      background: rgba(249, 115, 22, 0.12);
      border: 1px solid rgba(249, 115, 22, 0.35);
      border-radius: 999px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12.5px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--brand-orange-light);
      margin-bottom: 28px;
    }
    .portfolio-badge::before {
      content: '';
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--brand-orange);
      box-shadow: 0 0 12px rgba(249, 115, 22, 0.8);
    }
    .portfolio-title {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: clamp(36px, 5.2vw, 64px);
      line-height: 1.05;
      letter-spacing: -0.025em;
      margin: 0 0 28px 0;
      color: var(--text-primary);
    }
    .portfolio-title .accent-orange { color: var(--brand-orange); }
    .portfolio-desc {
      font-family: 'Sora', sans-serif;
      font-size: clamp(15px, 1.4vw, 18px);
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 820px;
      margin: 0 0 40px 0;
    }
    .portfolio-cta-row {
      display: flex; flex-wrap: wrap; gap: 14px;
    }
    .btn-ghost-portfolio {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 16px 32px;
      background: transparent;
      border: 1.5px solid var(--border-hover);
      color: var(--text-primary);
      border-radius: 999px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .btn-ghost-portfolio:hover {
      border-color: var(--brand-orange);
      background: rgba(249, 115, 22, 0.06);
      transform: translateY(-2px);
    }

    /* ===== KPI CARDS (métricas principais) ===== */
    .dashboard-kpis {
      padding: 12px 0 64px 0;
      position: relative;
      z-index: 2;
    }
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 18px;
    }
    .kpi-card {
      position: relative;
      padding: 28px 26px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      background:
        linear-gradient(180deg, var(--bg-card) 0%, rgba(17, 24, 39, 0.6) 100%);
      box-shadow:
        0 24px 60px -20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      overflow: hidden;
      transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .kpi-card:hover {
      transform: translateY(-5px);
      border-color: rgba(249, 115, 22, 0.38);
      box-shadow:
        0 32px 70px -20px rgba(249, 115, 22, 0.18),
        0 24px 60px -20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .kpi-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.14), transparent 55%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .kpi-card:hover::after { opacity: 1; }
    .kpi-label {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 10px;
    }
    .kpi-value {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(38px, 4.2vw, 52px);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin: 0 0 8px 0;
      background: linear-gradient(135deg, #F8FAFC, #F97316);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .kpi-value.pure-orange {
      background: linear-gradient(135deg, #F97316, #EA580C);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .kpi-sub {
      font-size: 13.5px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* ===== VISUALIZAÇÕES / CHART SECTION ===== */
    .dashboard-charts {
      padding: 48px 0 80px 0;
      display: grid;
      grid-template-columns: 1.35fr 1fr;
      gap: 28px;
    }
    @media (max-width: 1023.98px) {
      .dashboard-charts { grid-template-columns: 1fr; padding-top: 24px; }
    }
    .chart-card {
      position: relative;
      padding: 34px 32px;
      border-radius: var(--radius-xl);
      border: 1px solid var(--border-color);
      background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 17, 32, 0.9) 100%);
      box-shadow:
        0 28px 70px -24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
      overflow: hidden;
    }
    .chart-card::before {
      content: '';
      position: absolute;
      top: -1px; left: 30px; right: 30px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.55), transparent);
    }
    .chart-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 14px;
      margin-bottom: 28px;
    }
    .chart-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 20px;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.01em;
      margin: 0 0 6px 0;
    }
    .chart-subtitle {
      font-size: 13.5px;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .chart-chip {
      padding: 7px 14px;
      background: rgba(249, 115, 22, 0.12);
      border: 1px solid rgba(249, 115, 22, 0.32);
      border-radius: 999px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--brand-orange-light);
      white-space: nowrap;
    }

    /* Donut status de projetos */
    .status-wrap {
      display: flex; flex-direction: column; align-items: center; gap: 32px;
    }
    .donut-row {
      display: flex; flex-direction: column; align-items: center;
    }
    .donut-svg { width: 240px; height: 240px; transform: rotate(-90deg); }
    .donut-svg circle {
      fill: none; stroke-linecap: round;
    }
    .donut-bg { stroke: #111827; stroke-width: 22; }
    .donut-seg { stroke-width: 22; transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1); }
    .donut-center {
      position: absolute; inset: 0;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      pointer-events: none;
    }
    .donut-center-num {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 46px; font-weight: 700; line-height: 1;
      background: linear-gradient(135deg, #F8FAFC, #F97316);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      margin-bottom: 6px;
    }
    .donut-center-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

    .status-legend {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 18px;
      width: 100%;
    }
    .legend-item {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 14px;
      border-radius: var(--radius-md);
      background: rgba(17, 24, 39, 0.5);
      border: 1px solid var(--border-color);
      transition: all 0.3s ease;
    }
    .legend-item:hover { border-color: rgba(249, 115, 22, 0.32); transform: translateX(3px); }
    .legend-dot {
      width: 11px; height: 11px; border-radius: 50%;
      box-shadow: 0 0 10px currentColor;
      flex-shrink: 0;
    }
    .legend-text { display: flex; flex-direction: column; line-height: 1.3; }
    .legend-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
    .legend-val { font-size: 12px; color: var(--text-secondary); font-family: 'Space Grotesk', sans-serif; }

    /* ===== CARROSSEL (dentro da primeira .chart-card) ===== */
    .carousel-stage {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: calc(var(--radius-lg) - 4px);
      overflow: hidden;
      margin-top: 4px;
      border: 1px solid rgba(30, 41, 59, 0.9);
      background: transparent;
    }
    .carousel-track {
      position: absolute;
      inset: 0;
      width: 600%; /* 6 slides = 6 * 100% */
      height: 100%;
      display: flex;
      transform: translate3d(0, 0, 0);
      transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }
    .carousel-slide {
      position: relative;
      flex: 0 0 16.6667%; /* 1/6 = 1 slide */
      width: 16.6667%;
      height: 100%;
      overflow: hidden;
    }
    .carousel-slide img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center center;
      display: block;
    }
    .carousel-slide-overlay {
      display: none;
    }
    .carousel-slide-caption {
      position: absolute;
      left: 0;
      bottom: 0;
      top: auto;
      right: auto;
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-end;
      padding: 0;
      margin: 0;
    }
    .carousel-caption-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px;
      background: rgba(17, 24, 39, 0.72);
      border: 1px solid rgba(249, 115, 22, 0.45);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border-radius: 0 10px 0 0;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 9.5px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--brand-orange-light);
      box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.7);
      line-height: 1.3;
    }

    /* Navegação (botões anterior/próximo) */
    .carousel-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
      width: 46px; height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(15, 23, 42, 0.45);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: #FFFFFF;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
      opacity: 0;
      pointer-events: none;
      padding: 0;
    }
    .carousel-nav svg { width: 20px; height: 20px; }
    .carousel-stage:hover .carousel-nav,
    .carousel-stage:focus-within .carousel-nav {
      opacity: 1;
      pointer-events: auto;
    }
    .carousel-nav:hover {
      background: linear-gradient(135deg, #FB923C, #F97316);
      border-color: transparent;
      transform: translateY(-50%) scale(1.06);
      box-shadow: 0 10px 28px -8px rgba(249, 115, 22, 0.55);
    }
    .carousel-nav.prev { left: 18px; }
    .carousel-nav.next { right: 18px; }

    /* Indicadores (dots) */
    .carousel-dots {
      display: flex; align-items: center; justify-content: center;
      gap: 10px;
      margin-top: 22px;
    }
    .carousel-dot {
      width: 10px; height: 10px;
      border-radius: 999px;
      background: rgba(100, 116, 139, 0.35);
      border: 1px solid rgba(30, 41, 59, 0.9);
      cursor: pointer;
      transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .carousel-dot:hover { background: rgba(249, 115, 22, 0.5); }
    .carousel-dot.is-active {
      width: 36px;
      background: linear-gradient(135deg, #FB923C, #F97316);
      border-color: transparent;
      box-shadow: 0 0 18px rgba(249, 115, 22, 0.55);
    }

    /* ===== NOVA SEÇÃO: RISCOS ATUAIS / SPDA / BENEFÍCIOS MANUTENÇÃO ===== */
    .riscos-section {
      padding: 48px 0 120px 0;
      position: relative;
    }
    .riscos-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(239, 68, 68, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 60% at 90% 100%, rgba(249, 115, 22, 0.10), transparent 60%);
      pointer-events: none;
      z-index: 0;
    }
    .riscos-section > * { position: relative; z-index: 2; }

    .riscos-header {
      margin-bottom: 40px;
      max-width: 860px;
    }
    .riscos-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(28px, 3.6vw, 44px);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin: 0 20px 16px 20px;
    }
    .riscos-title span {
      background: linear-gradient(135deg, #F97316, #EF4444);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .riscos-desc {
      font-family: 'Sora', sans-serif;
      font-size: clamp(14px, 1.2vw, 16.5px);
      line-height: 1.75;
      color: var(--text-secondary);
      margin: 0 20px;
    }

    /* ===== CARROSSEL DE RISCOS (4 cards, 3 visíveis por vez) ===== */
    .riscos-carousel-stage {
      position: relative;
      overflow: hidden;
      padding: 6px 2px 26px 2px;
      mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    }
    .riscos-carousel-track {
      display: flex;
      gap: 18px;
      width: max-content;
      will-change: transform;
      animation: riscos-carousel-scroll 40s linear infinite;
    }
    @keyframes riscos-carousel-scroll {
      0%   { transform: translate3d(0, 0, 0); }
      100% { transform: translate3d(calc(-50% - 9px), 0, 0); }
    }
    .riscos-carousel-stage:hover .riscos-carousel-track,
    .riscos-carousel-stage:focus-within .riscos-carousel-track {
      animation-play-state: paused;
    }
    .riscos-carousel-card {
      flex: 0 0 calc((min(1856px, 100vw - 2 * var(--wr)) - 2 * 18px) / 3);
      width: calc((min(1856px, 100vw - 2 * var(--wr)) - 2 * 18px) / 3);
      min-width: calc((min(1856px, 100vw - 2 * var(--wr)) - 2 * 18px) / 3);
    }
    @media (prefers-reduced-motion: reduce) {
      .riscos-carousel-track { animation: none; }
    }

    /* ===== CARD DE CHECKLIST (independente, abaixo do carrossel) ===== */
    .riscos-checklist-card {
      margin-top: 32px;
      position: relative;
      padding: 36px 38px;
      border-radius: var(--radius-xl);
      border: 1px solid rgba(249, 115, 22, 0.45);
      background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(34, 197, 94, 0.12) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 17, 32, 0.96) 100%);
      box-shadow:
        0 32px 80px -24px rgba(249, 115, 22, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
      overflow: hidden;
      transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      display: flex;
      flex-direction: column;
      gap: 22px;
    }
    .riscos-checklist-card::before {
      content: '';
      position: absolute;
      top: -1px; left: 40px; right: 40px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.8), rgba(34, 197, 94, 0.6), transparent);
      pointer-events: none;
    }
    .riscos-checklist-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.16), transparent 55%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .riscos-checklist-card:hover::after { opacity: 1; }
    .riscos-checklist-card:hover {
      transform: translateY(-3px);
      border-color: rgba(34, 197, 94, 0.55);
      box-shadow:
        0 40px 90px -24px rgba(34, 197, 94, 0.22),
        0 32px 70px -20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    .riscos-checklist-card .risco-icon {
      width: 68px; height: 68px; border-radius: 20px;
    }
    .riscos-checklist-card .risco-icon svg { width: 32px; height: 32px; }
    .riscos-checklist-card .risco-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; flex: 1; }
    .riscos-checklist-card .risco-tag {
      padding: 8px 18px;
      font-size: 13.8px;
      letter-spacing: 0.08em;
    }
    .riscos-checklist-card .risco-tag::before { width: 8px; height: 8px; box-shadow: 0 0 10px currentColor; }
    .riscos-checklist-card .risco-name {
      font-size: 22.8px;
      line-height: 1.22;
      color: #FFFFFF;
      letter-spacing: -0.015em;
      text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    }
    .riscos-checklist-card .risco-text {
      font-size: 16.8px;
      line-height: 1.72;
      color: #F8FAFC;
    }
    .riscos-checklist-card .risco-text strong { color: #FFFFFF; font-weight: 700; }
    .riscos-checklist-card .risco-list {
      list-style: none;
      padding: 0;
      margin: 8px 0 0 0;
      display: flex; flex-direction: column; gap: 13px;
    }
    .riscos-checklist-card .risco-list li {
      position: relative;
      padding-left: 34px;
      font-size: 16.2px;
      line-height: 1.6;
      color: #F8FAFC;
      min-height: 24px;
      display: flex;
      align-items: flex-start;
    }
    .riscos-checklist-card .risco-list li::before {
      content: none;
    }
    .riscos-checklist-card .risco-check-icon {
      position: absolute;
      left: 0;
      top: 2px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: linear-gradient(135deg, #22C55E, #16A34A);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 0 14px rgba(34, 197, 94, 0.55);
    }
    .riscos-checklist-card .risco-check-icon svg {
      width: 13px; height: 13px;
      color: #FFFFFF;
      stroke-width: 3;
    }

    /* Breakpoints do carrossel e checklist */
    @media (max-width: 1279.98px) {
      .riscos-carousel-card {
        flex-basis: calc((min(1856px, 100vw - 2 * var(--wr)) - 18px) / 2);
        width: calc((min(1856px, 100vw - 2 * var(--wr)) - 18px) / 2);
        min-width: calc((min(1856px, 100vw - 2 * var(--wr)) - 18px) / 2);
      }
    }
    @media (max-width: 767.98px) {
      .riscos-carousel-card {
        flex-basis: min(1856px, 100vw - 2 * var(--wr));
        width: min(1856px, 100vw - 2 * var(--wr));
        min-width: min(1856px, 100vw - 2 * var(--wr));
      }
      .riscos-checklist-card { padding: 26px 22px; margin-top: 24px; }
      .riscos-checklist-card .risco-name { font-size: 20px; }
      .riscos-checklist-card .risco-text { font-size: 15.2px; }
      .riscos-checklist-card .risco-list li { font-size: 14.8px; }
    }

    .risco-card {
      position: relative;
      padding: 28px 26px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      background:
        linear-gradient(180deg, var(--bg-card) 0%, rgba(17, 24, 39, 0.65) 100%);
      box-shadow:
        0 24px 60px -22px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      overflow: hidden;
      transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .risco-card:hover {
      transform: translateY(-4px);
      border-color: rgba(249, 115, 22, 0.38);
      box-shadow:
        0 32px 70px -20px rgba(249, 115, 22, 0.18),
        0 24px 60px -20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .risco-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.12), transparent 55%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .risco-card:hover::after { opacity: 1; }

    .risco-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: #FFFFFF;
      position: relative;
      z-index: 2;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .risco-icon svg { width: 26px; height: 26px; }
    .risco-icon.icon-danger { background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(249, 115, 22, 0.32)); border: 1px solid rgba(239, 68, 68, 0.5); }
    .risco-icon.icon-alert  { background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.30)); border: 1px solid rgba(245, 158, 11, 0.5); }
    .risco-icon.icon-fire   { background: linear-gradient(135deg, rgba(239, 68, 68, 0.26), rgba(251, 146, 60, 0.30)); border: 1px solid rgba(251, 146, 60, 0.5); }
    .risco-icon.icon-money  { background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(249, 115, 22, 0.28)); border: 1px solid rgba(34, 197, 94, 0.45); }
    .risco-icon.icon-check  { background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(34, 197, 94, 0.26)); border: 1px solid rgba(59, 130, 246, 0.45); }

    .risco-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; flex: 1; }

    .risco-tag {
      display: inline-flex; align-items: center; gap: 8px;
      align-self: flex-start;
      padding: 6px 14px;
      border-radius: 999px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .risco-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
    .risco-tag.tag-danger { background: rgba(239, 68, 68, 0.14); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.35); }
    .risco-tag.tag-alert  { background: rgba(245, 158, 11, 0.14); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.35); }
    .risco-tag.tag-fire   { background: rgba(251, 146, 60, 0.14); color: #FDBA74; border: 1px solid rgba(251, 146, 60, 0.35); }
    .risco-tag.tag-money  { background: rgba(34, 197, 94, 0.12);  color: #86EFAC; border: 1px solid rgba(34, 197, 94, 0.32); }
    .risco-tag.tag-check  { background: rgba(59, 130, 246, 0.14); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.35); }

    .risco-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 19px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--text-primary);
      letter-spacing: -0.01em;
      margin: 0;
    }
    .risco-text {
      font-size: 14px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin: 0;
    }
    .risco-text strong { color: var(--text-primary); }
    .risco-list {
      list-style: none;
      padding: 0;
      margin: 4px 0 0 0;
      display: flex; flex-direction: column; gap: 9px;
    }
    .risco-list li {
      position: relative;
      padding-left: 18px;
      font-size: 13.5px;
      line-height: 1.55;
      color: var(--text-secondary);
    }
    .risco-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.62em;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: linear-gradient(135deg, #FB923C, #F97316);
      box-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
    }

    /* CTA final da seção de riscos */
    .riscos-cta-row {
      max-width: 1050px;
      margin-top: 36px;
      padding: 32px 36px;
      border-radius: var(--radius-xl);
      background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(249, 115, 22, 0.20) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(11, 17, 32, 0.9));
      border: 1px solid rgba(249, 115, 22, 0.38);
      box-shadow:
        0 32px 80px -24px rgba(249, 115, 22, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }
    .riscos-cta-text { flex: 1 1 380px; min-width: 0; }
    .riscos-cta-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(20px, 2.2vw, 26px);
      font-weight: 700;
      line-height: 1.2;
      color: var(--text-primary);
      margin: 0 0 8px 0;
      letter-spacing: -0.015em;
    }
    .riscos-cta-title span {
      background: linear-gradient(135deg, #FB923C, #EF4444);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .riscos-cta-desc {
      font-size: 14.5px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin: 0;
      max-width: 620px;
    }

    /* Media queries extras para portfolio */
    @media (max-width: 1023.98px) {
      .portfolio-hero { padding-top: 110px; padding-bottom: 48px; }
      .status-legend { grid-template-columns: 1fr 1fr; }
      .carousel-stage { aspect-ratio: 4 / 3; }
      .carousel-slide-caption { left: 0; bottom: 0; top: auto; right: auto; padding: 0; margin: 0; }
      .carousel-caption-chip { font-size: 9px; padding: 3px 9px; border-radius: 0 8px 0 0; }
    }
    @media (max-width: 639.98px) {
      .kpi-card { padding: 22px 20px; }
      .chart-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
      }
      /* ==== chart-card 1 (carousel projetos): ordem FILHOS DIRETOS ====
         1) .chart-header  (title/subtitle via display:contents general do outro @media)
         2) .carousel-stage (slide)
         3) .carousel-dots  (ABAIXO do carousel-slide — como estava antes)
      */
      .chart-card > .chart-header { order: 1 !important; }
      .chart-card > .carousel-stage { order: 2 !important; }
      .chart-card > .carousel-dots  { order: 3 !important; margin-top: 18px !important; }

      .portfolio-cta-row { flex-direction: column; }
      .portfolio-cta-row a, .portfolio-cta-row button { width: 100%; justify-content: center; }
      .status-legend { grid-template-columns: 1fr; }
      .donut-svg { width: 200px; height: 200px; }
      .riscos-section { padding: 24px 0 80px 0; }
      .riscos-cta-row { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
      .riscos-cta-row .btn-primary { width: 100%; justify-content: center; }
      .risco-card { padding: 22px 20px; }
      .carousel-stage { aspect-ratio: 3 / 4; border-radius: 16px; }
      .carousel-slide-caption { left: 0; bottom: 0; top: auto; right: auto; padding: 0; margin: 0; }
      .carousel-caption-chip { font-size: 8.5px; padding: 3px 8px; border-radius: 0 7px 0 0; gap: 4px; }
      .carousel-nav { opacity: 1; pointer-events: auto; width: 40px; height: 40px; }
      .carousel-nav.prev { left: 10px; }
      .carousel-nav.next { right: 10px; }
      .carousel-dots {
        margin-top: 18px;
        gap: 8px;
        /* Garante dots não são puxados pra cima pelo stage (ordem correta) */
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
      }
    }

    /* ===== MODAL / POP-UP CONTACT-FORM ===== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .modal-overlay.is-open {
      opacity: 1;
      visibility: visible;
    }
    .modal-dialog {
      position: relative;
      width: 100%;
      max-width: 680px;
      max-height: 92vh;
      overflow-y: auto;
      background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 17, 32, 0.98) 100%);
      border: 1px solid rgba(249, 115, 22, 0.32);
      border-radius: var(--radius-xl);
      box-shadow:
        0 40px 100px -30px rgba(249, 115, 22, 0.35),
        0 60px 120px -40px rgba(0, 0, 0, 0.8);
      transform: translateY(24px) scale(0.96);
      opacity: 0;
      transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .modal-overlay.is-open .modal-dialog {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
    .modal-dialog::before {
      content: '';
      position: absolute;
      top: -1px; left: 40px; right: 40px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.7), transparent);
    }
    .modal-close {
      position: absolute;
      top: 20px; right: 20px;
      width: 42px; height: 42px;
      border-radius: 999px;
      border: 1px solid var(--border-color);
      background: rgba(17, 24, 39, 0.8);
      color: var(--text-primary);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 5;
    }
    .modal-close:hover {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.5);
      color: #FCA5A5;
      transform: rotate(90deg);
    }
    .modal-close svg { width: 18px; height: 18px; }
    .modal-body {
      padding: 40px 36px 36px;
    }
    .modal-header {
      margin-bottom: 28px;
      padding-right: 50px;
    }
    .modal-chip {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 14px;
      background: rgba(249, 115, 22, 0.12);
      border: 1px solid rgba(249, 115, 22, 0.32);
      border-radius: 999px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--brand-orange-light);
      margin-bottom: 16px;
    }
    .modal-chip::before {
      content: ''; width: 7px; height: 7px; border-radius: 50%;
      background: var(--brand-orange);
      box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
    }
    .modal-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(24px, 2.8vw, 32px);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin: 0 0 10px 0;
    }
    .modal-title span {
      background: linear-gradient(135deg, #F97316, #EF4444);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .modal-subtitle {
      font-size: 14px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin: 0;
      max-width: 520px;
    }
    .modal-contact-form {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .modal-contact-form .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 14px;
    }
    .modal-contact-form .form-row {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .modal-contact-form .form-row.full { grid-column: 1 / -1; }
    .modal-contact-form .form-row label {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
      letter-spacing: 0.02em;
    }
    .modal-contact-form .form-row input,
    .modal-contact-form .form-row textarea,
    .modal-contact-form .form-row select {
      width: 100%;
      padding: 13px 15px;
      background: var(--bg-darker);
      border: 1.5px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-family: inherit;
      font-size: 14px;
      transition: all 0.28s ease;
      outline: none;
      resize: vertical;
    }
    .modal-contact-form .form-row textarea { min-height: 100px; line-height: 1.6; }
    .modal-contact-form .form-row input::placeholder,
    .modal-contact-form .form-row textarea::placeholder { color: rgba(100, 116, 139, 0.7); }
    .modal-contact-form .form-row input:focus,
    .modal-contact-form .form-row textarea:focus,
    .modal-contact-form .form-row select:focus {
      border-color: var(--brand-orange);
      background: rgba(11, 17, 32, 0.95);
      box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }
    .modal-contact-form .form-row select {
      appearance: none; -webkit-appearance: none; cursor: pointer;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
      background-repeat: no-repeat;
      background-position: right 15px center;
      padding-right: 42px;
    }
    .modal-contact-form .form-row select option { background: var(--bg-dark); color: var(--text-primary); }
    .modal-contact-form .btn-primary {
      padding: 16px 28px;
      width: 100%;
      justify-content: center;
    }

    @media (max-width: 639.98px) {
      .modal-body { padding: 32px 22px 28px; }
      .modal-contact-form .form-grid { grid-template-columns: 1fr; }
      .modal-close { top: 14px; right: 14px; width: 38px; height: 38px; }
      .modal-header { padding-right: 44px; margin-bottom: 22px; }
    }
    body.modal-open { overflow: hidden; }
