/* =========================================================
   SCROLL STORY — Sticky Pin sem vídeo (RPAWorks)
   ========================================================= */

.scroll-story {
  position: relative;
  height: 400vh;
  background: #070a12;
}

.scroll-story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

#storyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.story-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,10,18,.82) 0%, transparent 28%, rgba(7,10,18,.82) 100%),
    linear-gradient(to top, rgba(7,10,18,.92) 0%, transparent 35%, rgba(7,10,18,.55) 100%);
}

/* ── Frame ─────────────────────────────────────────────── */
.story-frame {
  position: relative;
  width: min(78vw, 1100px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.10);
  background: transparent;
  box-shadow: 0 40px 120px rgba(0,0,0,.75), 0 0 80px rgba(255,106,0,.10);
  z-index: 2;
  overflow: hidden;
  transform-origin: center center;
}

.story-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 72px 72px;
  z-index: 1;
  pointer-events: none;
}

.story-scan {
  position: absolute;
  left: 0; top: -20%;
  z-index: 3;
  width: 100%; height: 16%;
  background: linear-gradient(to bottom, transparent, rgba(255,106,0,.14), transparent);
  pointer-events: none;
}

/* ── Copy central ─────────────────────────────────────── */
.story-center {
  position: absolute;
  z-index: 8;
  width: min(720px, 88vw);
  text-align: center;
  pointer-events: none;
  padding: 0 16px;
}

.story-center .story-eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ff8a1d;
  font-weight: 800;
  margin-bottom: 16px;
}

.story-center h2 {
  font-size: clamp(1.8rem, 5.5vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.05em;
  color: #fff;
}


/* ── IMPACTO VISUAL DO TÍTULO CENTRAL ─────────────────────
   Mantém a estrutura do HTML, mas transforma o texto central
   em uma entrada mais cinematográfica e agressiva.
*/
.story-center {
  perspective: 1100px;
  transform-style: preserve-3d;
}

.story-center::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 86vw);
  height: min(760px, 86vw);
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
  opacity: .92;
  background:
    radial-gradient(circle, rgba(255,106,0,.24) 0%, rgba(255,106,0,.08) 22%, transparent 58%),
    conic-gradient(from 180deg, transparent 0deg, rgba(255,106,0,.22) 58deg, transparent 120deg, rgba(255,138,42,.16) 210deg, transparent 300deg);
  filter: blur(4px);
  animation: storyImpactPulse 3.8s ease-in-out infinite;
}

.story-center::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: min(420px, 72vw);
  height: 2px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,.95), rgba(255,255,255,.65), rgba(255,106,0,.95), transparent);
  box-shadow: 0 0 34px rgba(255,106,0,.45);
}

.story-center__impact {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: .8;
}

.story-impact-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,106,0,.18);
  box-shadow: inset 0 0 42px rgba(255,106,0,.055), 0 0 42px rgba(255,106,0,.06);
}

.story-impact-ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(255,255,255,.11);
  animation: storyRingRotate 10s linear infinite reverse;
}

.story-impact-ring:nth-child(3) {
  inset: 24%;
  border-style: dashed;
  border-color: rgba(255,106,0,.34);
  animation: storyRingRotate 12s linear infinite;
}

.story-impact-sparks {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 42%, rgba(255,106,0,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.7) 0 1px, transparent 3px),
    radial-gradient(circle at 86% 68%, rgba(255,106,0,.85) 0 2px, transparent 4px),
    radial-gradient(circle at 32% 78%, rgba(255,138,42,.75) 0 1px, transparent 3px);
  filter: drop-shadow(0 0 10px rgba(255,106,0,.55));
  animation: storySparks 2.6s ease-in-out infinite;
}

.story-center .story-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,106,0,.24);
  border-radius: 999px;
  background: rgba(255,106,0,.06);
  box-shadow: 0 0 34px rgba(255,106,0,.10);
}

.story-center .story-eyebrow::before,
.story-center .story-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,.95));
}

.story-center .story-eyebrow::after {
  background: linear-gradient(90deg, rgba(255,106,0,.95), transparent);
}

.story-center h2 {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-transform: none;
  text-shadow: 0 18px 55px rgba(0,0,0,.75);
  transform-style: preserve-3d;
}

.story-title-word {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform-origin: 50% 80%;
}

.story-title-word:nth-child(3),
.story-title-word:nth-child(4),
.story-title-word:nth-child(6) {
  background: linear-gradient(180deg, #fff 0%, #ff9a3d 46%, #ff6a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,106,0,.22));
}

@keyframes storyImpactPulse {
  0%, 100% { opacity: .56; transform: translate(-50%, -50%) scale(.96) rotate(0deg); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.04) rotate(4deg); }
}

@keyframes storyRingRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes storySparks {
  0%, 100% { opacity: .42; transform: scale(.96) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.04) rotate(8deg); }
}

/* ── Painéis — BASE DESKTOP ───────────────────────────── */
.story-panel {
  position: absolute;
  z-index: 9;
  width: min(300px, 80vw);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,22,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  pointer-events: none;
  border-radius: 4px;
}

/* Posicionamento desktop */
.story-panel--1 { left: 5vw;  top: 16vh; }
.story-panel--2 { right: 5vw; top: 34vh; }
.story-panel--3 { left: 5vw;  bottom: 14vh; }
.story-panel--4 {
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  width: min(460px, 88vw);
  text-align: center;
}
.story-panel--4 .story-panel__chips { justify-content: center; }

/* ── Conteúdo interno dos painéis ─────────────────────── */
.sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sp-num {
  font-size: .68rem; font-weight: 900;
  letter-spacing: .18em; color: #ff6a00;
  text-transform: uppercase;
}
.sp-icon {
  font-size: 1.6rem; line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255,106,0,.5));
}
.sp-title {
  font-size: 1.2rem; font-weight: 800;
  color: #fff; letter-spacing: -.02em;
  margin-bottom: 8px; line-height: 1.2;
}
.sp-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.62);
  line-height: 1.65; margin-bottom: 14px;
}
.sp-metrics {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px; padding: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
}
.sp-metric { display: flex; align-items: center; gap: 8px; }
.sp-metric__label {
  font-size: .62rem; color: rgba(255,255,255,.45);
  font-weight: 600; width: 140px; flex-shrink: 0;
  letter-spacing: .02em;
}
.sp-metric__bar {
  flex: 1; height: 3px;
  background: rgba(255,255,255,.10);
  border-radius: 999px; overflow: hidden;
}
.sp-metric__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff6a00, #ff8a2a);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.2,.9,.2,1);
}
.story-panel.sp-visible .sp-metric__fill { width: var(--pct); }
.sp-metric__val {
  font-size: .68rem; font-weight: 800;
  color: #ff8a2a; min-width: 36px;
  text-align: right; letter-spacing: -.01em;
}
.sp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sp-list__item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.72);
  line-height: 1.45; font-weight: 500;
}
.sp-list__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #ff6a00; flex-shrink: 0; margin-top: 5px;
  box-shadow: 0 0 6px rgba(255,106,0,.6);
}
.sp-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-chip {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .05em; padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,106,0,.25);
  color: rgba(255,106,0,.85);
  background: rgba(255,106,0,.08);
}
.sp-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 6px;
  background: linear-gradient(135deg, #ff6a00, #ff8a2a);
  color: #fff; font-size: .74rem; font-weight: 800;
  letter-spacing: .04em; text-decoration: none;
  white-space: nowrap; pointer-events: all;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(255,106,0,.28);
}
.sp-cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(255,106,0,.42); }
.sp-cta:active { transform: translateY(0); }
.sp-cta--big {
  width: 100%; justify-content: center;
  padding: 13px 20px; font-size: .82rem;
  border-radius: 8px; box-shadow: 0 12px 36px rgba(255,106,0,.32);
}
.sp-combo-stats { display: flex; gap: 8px; margin-bottom: 14px; }
.sp-combo-stat {
  flex: 1; text-align: center; padding: 10px 8px;
  background: rgba(255,106,0,.08);
  border: 1px solid rgba(255,106,0,.18); border-radius: 8px;
}
.sp-combo-stat__val {
  font-size: 1.3rem; font-weight: 900; color: #ff6a00;
  letter-spacing: -.03em; line-height: 1; margin-bottom: 3px;
}
.sp-combo-stat__label {
  font-size: .58rem; color: rgba(255,255,255,.5);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.sp-footer--combo { flex-direction: column; align-items: stretch; gap: 8px; }
.sp-trust {
  text-align: center; font-size: .68rem;
  color: rgba(255,255,255,.4); font-weight: 600; letter-spacing: .02em;
}

/* ── Barra de progresso ─────────────────────────────── */
.story-progress {
  position: absolute; bottom: 20px;
  left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 10px;
}
.story-progress__bar {
  width: 100px; height: 2px;
  background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden;
}
.story-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff6a00, #ff8a2a); border-radius: 999px;
}
.story-progress__label {
  font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  font-weight: 700; min-width: 28px; text-align: right;
}

/* ── Scroll hint ─────────────────────────────────────── */
.story-scroll-hint {
  position: absolute; bottom: 18px; right: 5vw;
  z-index: 10; display: flex; align-items: center; gap: 8px;
  font-size: .62rem; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,255,255,.35);
}
.story-scroll-hint span {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, #ff6a00, transparent);
  animation: storyPulse 1.6s infinite ease-in-out;
}
@keyframes storyPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; }
  50%       { transform: scaleY(1);  opacity: 1;  }
}

/* =========================================================
   MOBILE ≤ 768px — 1 painel por vez, controlado pelo JS
   ========================================================= */
@media (max-width: 768px) {

  .scroll-story { height: 550vh; }

  /* Frame: fundo de tela inteira */
  .story-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
  }
  .story-frame::before { display: none; }

  /* Copy central: topo */
  .story-center {
    top: 12vh !important;
    left: 0 !important; right: 0 !important;
    width: 100% !important;
    padding: 0 24px !important;
    text-align: center !important;
    transform: none !important;
    /* JS controla opacity/visibility */
  }
  .story-center h2 {
    font-size: clamp(1.5rem, 7vw, 2.4rem) !important;
    letter-spacing: -.03em; line-height: 1.1;
  }
  .story-center::before {
    width: 92vw;
    height: 92vw;
    opacity: .7;
    filter: blur(8px);
  }
  .story-center::after {
    bottom: -14px;
    width: 64vw;
  }
  .story-center__impact {
    width: 86vw;
    height: 86vw;
  }
  .story-center .story-eyebrow {
    padding: 6px 9px;
    gap: 7px;
  }
  .story-center .story-eyebrow::before,
  .story-center .story-eyebrow::after {
    width: 14px;
  }
  .story-center .story-eyebrow { font-size: .6rem; margin-bottom: 8px; }

  /* Painéis: centralizados, 1 por vez
     JS seta opacity/visibility/transform inline */
  .story-panel {
    width: calc(100vw - 40px) !important;
    left: 20px !important;
    right: 20px !important;
    top: 50% !important;
    bottom: auto !important;
    /* JS controla transform inline (translateY(-50%) + offset) */
    opacity: 0 !important;
    visibility: hidden !important;
    text-align: left !important;
    padding: 18px !important;
    max-height: 70vh;
    overflow-y: auto;
    pointer-events: all !important;
  }

  /*
    FIX MOBILE:
    A regra acima escondia todos os painéis com !important.
    No desktop não muda nada. No mobile, quando o JS adiciona .sp-visible,
    este bloco libera o painel ativo por cima da regra base.
  */
  .story-panel.sp-visible,
  .story-center.sp-visible {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .story-panel--4 { text-align: left !important; }
  .story-panel--4 .story-panel__chips { justify-content: flex-start !important; }

  /* Overlay simplificado */
  .story-overlay {
    background: rgba(7,10,18,.45) !important;
  }

  /* Esconder hint */
  .story-scroll-hint { display: none !important; }

  /* Progresso menor */
  .story-progress { bottom: 12px; }
  .story-progress__bar { width: 64px; }
  .story-progress__label { font-size: .58rem; }

  /* Conteúdo interno dos cards menor */
  .sp-title { font-size: 1.05rem; }
  .sp-desc  { font-size: .78rem; margin-bottom: 10px; }
  .sp-metrics { margin-bottom: 10px; padding: 10px; }
  .sp-metric__label { width: 110px; font-size: .58rem; }
  .sp-list { gap: 5px; margin-bottom: 10px; }
  .sp-list__item { font-size: .74rem; }
  .sp-combo-stat__val { font-size: 1.1rem; }
  .sp-cta { font-size: .72rem; padding: 8px 14px; }
  .sp-cta--big { font-size: .78rem; padding: 12px 16px; }
  .sp-footer { flex-direction: column; align-items: flex-start; }
  .sp-footer .sp-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .story-scan, .story-scroll-hint span { animation: none !important; }
}

/* =========================================================
   MOBILE IMPACT FIX — mantém desktop intacto
   Ajuste específico para o texto central cinematográfico no celular.
   ========================================================= */
@media (max-width: 768px) {
  .story-center {
    top: 9vh !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 22px !important;
  }

  .story-center .story-eyebrow {
    max-width: calc(100vw - 52px) !important;
    padding: 6px 10px !important;
    margin-bottom: 12px !important;
    font-size: .56rem !important;
    letter-spacing: .16em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 0 18px rgba(255,106,0,.10) !important;
  }

  .story-center .story-eyebrow::before,
  .story-center .story-eyebrow::after {
    width: 10px !important;
    opacity: .8 !important;
  }

  .story-center h2 {
    max-width: 330px !important;
    margin: 0 auto !important;
    font-size: clamp(1.78rem, 8.4vw, 2.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
    text-wrap: balance;
    text-shadow: 0 12px 34px rgba(0,0,0,.82), 0 0 14px rgba(255,106,0,.14) !important;
  }

  /* No desktop várias palavras ficam em laranja. No mobile isso polui e quebra leitura.
     Mantemos impacto só em “transformada,” e deixamos o resto branco. */
  .story-title-word:nth-child(4),
  .story-title-word:nth-child(6) {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: #fff !important;
    filter: none !important;
  }

  .story-title-word:nth-child(3) {
    background: linear-gradient(180deg, #fff 0%, #ff9a3d 42%, #ff6a00 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    filter: drop-shadow(0 0 16px rgba(255,106,0,.25)) !important;
  }

  /* Reduz os anéis no celular para não parecer “um alvo” gigante ocupando a tela. */
  .story-center::before {
    width: 66vw !important;
    height: 66vw !important;
    max-width: 270px !important;
    max-height: 270px !important;
    opacity: .46 !important;
    filter: blur(7px) !important;
  }

  .story-center__impact {
    width: 70vw !important;
    height: 70vw !important;
    max-width: 290px !important;
    max-height: 290px !important;
    opacity: .36 !important;
  }

  .story-impact-ring {
    border-color: rgba(255,106,0,.13) !important;
    box-shadow: inset 0 0 26px rgba(255,106,0,.035), 0 0 26px rgba(255,106,0,.035) !important;
  }

  .story-impact-ring:nth-child(2) {
    border-color: rgba(255,255,255,.075) !important;
  }

  .story-impact-ring:nth-child(3) {
    border-color: rgba(255,106,0,.22) !important;
  }

  .story-impact-sparks {
    opacity: .45 !important;
    filter: drop-shadow(0 0 7px rgba(255,106,0,.42)) !important;
  }

  .story-center::after {
    bottom: -16px !important;
    width: min(210px, 54vw) !important;
    height: 1px !important;
    opacity: .78 !important;
    box-shadow: 0 0 18px rgba(255,106,0,.32) !important;
  }

  /* Dá mais respiro para os cards que vêm depois, sem alterar desktop. */
  .story-panel {
    top: 52% !important;
    width: calc(100vw - 34px) !important;
    left: 17px !important;
    right: 17px !important;
  }
}

@media (max-width: 390px) {
  .story-center {
    top: 8vh !important;
    padding: 0 18px !important;
  }

  .story-center h2 {
    max-width: 300px !important;
    font-size: clamp(1.62rem, 8.1vw, 2.05rem) !important;
  }

  .story-center .story-eyebrow {
    font-size: .51rem !important;
    letter-spacing: .13em !important;
  }

  .story-center::before {
    width: 60vw !important;
    height: 60vw !important;
  }

  .story-center__impact {
    width: 64vw !important;
    height: 64vw !important;
  }
}


/* =========================================================
   MOBILE PREMIUM TEXT V2 — somente celular
   Deixa o texto central com aparência de campanha premium,
   sem alterar o notebook/desktop.
   ========================================================= */
@media (max-width: 768px) {
  .story-center {
    top: 10.5vh !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 34px) !important;
    max-width: 390px !important;
    padding: 18px 18px 22px !important;
    transform: translateX(-50%) !important;
    border: 1px solid rgba(255, 138, 42, .18) !important;
    border-radius: 22px !important;
    background:
      linear-gradient(135deg, rgba(255,106,0,.105), transparent 34%),
      linear-gradient(180deg, rgba(9,13,22,.72), rgba(6,8,14,.34)) !important;
    box-shadow:
      0 28px 90px rgba(0,0,0,.62),
      inset 0 1px 0 rgba(255,255,255,.10),
      0 0 0 1px rgba(255,255,255,.035) !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  .story-center.sp-visible {
    animation: storyMobileCardIn .72s cubic-bezier(.16, 1, .3, 1) both !important;
  }

  .story-center::before {
    width: 118% !important;
    height: 118% !important;
    max-width: none !important;
    max-height: none !important;
    opacity: .98 !important;
    filter: blur(0) !important;
    border-radius: 28px !important;
    transform: translate(-50%, -50%) rotate(-3deg) !important;
    background:
      radial-gradient(circle at 20% 15%, rgba(255,138,42,.28), transparent 32%),
      radial-gradient(circle at 80% 72%, rgba(255,106,0,.16), transparent 35%),
      linear-gradient(90deg, transparent, rgba(255,106,0,.12), transparent) !important;
    box-shadow: 0 0 85px rgba(255,106,0,.16) !important;
    animation: storyMobileAura 4.8s ease-in-out infinite !important;
  }

  .story-center::after {
    left: 18px !important;
    right: 18px !important;
    bottom: 12px !important;
    width: auto !important;
    height: 2px !important;
    transform: none !important;
    opacity: 1 !important;
    background: linear-gradient(90deg, rgba(255,106,0,0), #ff6a00 18%, #ffb15c 50%, #ff6a00 82%, rgba(255,106,0,0)) !important;
    box-shadow: 0 0 24px rgba(255,106,0,.58) !important;
  }

  .story-center__impact {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: -1 !important;
  }

  .story-impact-ring {
    inset: -10px 8px auto 8px !important;
    height: calc(100% + 20px) !important;
    border-radius: 26px !important;
    border: 1px solid rgba(255,106,0,.18) !important;
    box-shadow:
      inset 0 0 28px rgba(255,106,0,.045),
      0 0 34px rgba(255,106,0,.06) !important;
    animation: storyMobileHudFloat 5.8s ease-in-out infinite !important;
  }

  .story-impact-ring:nth-child(2) {
    inset: 7px -8px auto 18px !important;
    height: calc(100% - 2px) !important;
    border-color: rgba(255,255,255,.095) !important;
    transform: rotate(2.4deg) !important;
    animation-duration: 7s !important;
    animation-delay: -.9s !important;
  }

  .story-impact-ring:nth-child(3) {
    inset: 18px 16px auto -7px !important;
    height: calc(100% - 14px) !important;
    border-style: solid !important;
    border-color: rgba(255,106,0,.22) !important;
    transform: rotate(-2deg) !important;
    animation-duration: 6.4s !important;
    animation-delay: -1.4s !important;
  }

  .story-impact-sparks {
    inset: -12px !important;
    opacity: .9 !important;
    background:
      radial-gradient(circle at 7% 22%, rgba(255,106,0,.9) 0 2px, transparent 3px),
      radial-gradient(circle at 91% 18%, rgba(255,255,255,.7) 0 1px, transparent 3px),
      radial-gradient(circle at 86% 78%, rgba(255,106,0,.8) 0 2px, transparent 4px),
      radial-gradient(circle at 18% 86%, rgba(255,138,42,.75) 0 1px, transparent 3px) !important;
    filter: drop-shadow(0 0 12px rgba(255,106,0,.58)) !important;
    animation: storyMobileSparks 2.8s ease-in-out infinite !important;
  }

  .story-center .story-eyebrow {
    position: relative !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
    padding: 7px 12px 7px 28px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,106,0,.34) !important;
    background: linear-gradient(90deg, rgba(255,106,0,.20), rgba(255,106,0,.055)) !important;
    color: #ff9a3d !important;
    font-size: .58rem !important;
    letter-spacing: .17em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 0 28px rgba(255,106,0,.13), inset 0 1px 0 rgba(255,255,255,.10) !important;
  }

  .story-center .story-eyebrow::before {
    content: '' !important;
    position: absolute !important;
    left: 11px !important;
    top: 50% !important;
    width: 7px !important;
    height: 7px !important;
    transform: translateY(-50%) !important;
    border-radius: 50% !important;
    background: #ff6a00 !important;
    box-shadow: 0 0 16px rgba(255,106,0,.9) !important;
  }

  .story-center .story-eyebrow::after {
    content: '' !important;
    width: 20px !important;
    height: 1px !important;
    opacity: .8 !important;
    background: linear-gradient(90deg, rgba(255,106,0,.95), transparent) !important;
  }

  .story-center h2 {
    max-width: 350px !important;
    margin: 0 auto !important;
    font-size: clamp(2.35rem, 11.8vw, 3.25rem) !important;
    line-height: .9 !important;
    letter-spacing: -.07em !important;
    text-wrap: balance !important;
    color: #fff !important;
    text-shadow:
      0 18px 42px rgba(0,0,0,.95),
      0 0 24px rgba(255,106,0,.15) !important;
  }

  .story-title-word {
    display: inline-block !important;
    transform-origin: 50% 85% !important;
  }

  .story-title-word:nth-child(3) {
    display: block !important;
    margin: .03em 0 .02em !important;
    font-size: 1.06em !important;
    letter-spacing: -.085em !important;
    background: linear-gradient(180deg, #fff7ee 0%, #ffb15c 30%, #ff6a00 64%, #d94a00 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-stroke: .45px rgba(255,255,255,.08) !important;
    filter: drop-shadow(0 0 18px rgba(255,106,0,.42)) !important;
  }

  .story-title-word:nth-child(4),
  .story-title-word:nth-child(5),
  .story-title-word:nth-child(6) {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: #fff !important;
    filter: none !important;
    opacity: .96 !important;
  }

  .story-title-word:nth-child(6) {
    color: #ff9a3d !important;
    text-shadow: 0 0 22px rgba(255,106,0,.22) !important;
  }

  @keyframes storyMobileCardIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(22px) scale(.94); filter: blur(12px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
  }

  @keyframes storyMobileAura {
    0%, 100% { opacity: .72; transform: translate(-50%, -50%) rotate(-3deg) scale(.98); }
    50% { opacity: 1; transform: translate(-50%, -50%) rotate(2deg) scale(1.02); }
  }

  @keyframes storyMobileHudFloat {
    0%, 100% { opacity: .62; transform: translateY(0) rotate(-1.2deg); }
    50% { opacity: 1; transform: translateY(-6px) rotate(1.2deg); }
  }

  @keyframes storyMobileSparks {
    0%, 100% { opacity: .45; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.03); }
  }
}

@media (max-width: 390px) {
  .story-center {
    top: 9.5vh !important;
    width: calc(100vw - 28px) !important;
    padding: 16px 15px 20px !important;
    border-radius: 20px !important;
  }

  .story-center h2 {
    max-width: 315px !important;
    font-size: clamp(2.05rem, 11vw, 2.78rem) !important;
    line-height: .92 !important;
  }

  .story-center .story-eyebrow {
    font-size: .49rem !important;
    letter-spacing: .135em !important;
    padding-left: 25px !important;
  }
}


/* =========================================================
   SCROLL STORY — LIGHT PREMIUM THEME
   Remove a vibe escura e transforma a seção em branco premium
   com laranja RPAWorks, grafite e detalhes tecnológicos claros.
   ========================================================= */

.scroll-story {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,106,0,.13), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(255,169,77,.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 52%, #ffffff 100%) !important;
  color: #101828 !important;
}

.scroll-story__pin {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,248,251,.88)) !important;
}

/* Canvas claro: o JS também foi ajustado para não pintar fundo escuro */
#storyCanvas {
  opacity: .9 !important;
  mix-blend-mode: normal !important;
}

.story-overlay {
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.22) 30%, rgba(255,255,255,.94) 100%),
    linear-gradient(to top, rgba(255,255,255,.98) 0%, rgba(255,255,255,.25) 42%, rgba(255,255,255,.88) 100%) !important;
}

/* Frame claro e elegante */
.story-frame {
  border: 1px solid rgba(255,106,0,.16) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.22)) !important;
  box-shadow:
    0 42px 120px rgba(16,24,40,.12),
    0 0 80px rgba(255,106,0,.10) !important;
}

.story-frame::before {
  background:
    linear-gradient(to right, rgba(16,24,40,.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(to bottom, rgba(16,24,40,.045) 1px, transparent 1px) 0 0 / 72px 72px !important;
}

.story-scan {
  background: linear-gradient(to bottom, transparent, rgba(255,106,0,.18), transparent) !important;
}

/* Título central em versão branca premium */
.story-center .story-eyebrow {
  color: #ff6a00 !important;
  border-color: rgba(255,106,0,.22) !important;
  background: rgba(255,106,0,.075) !important;
  box-shadow: 0 16px 44px rgba(255,106,0,.12) !important;
}

.story-center h2 {
  color: #101828 !important;
  text-shadow: 0 18px 48px rgba(16,24,40,.13) !important;
}

.story-center::before {
  background:
    radial-gradient(circle, rgba(255,106,0,.18) 0%, rgba(255,106,0,.055) 28%, transparent 62%),
    conic-gradient(from 180deg, transparent 0deg, rgba(255,106,0,.16) 58deg, transparent 120deg, rgba(255,185,95,.14) 210deg, transparent 300deg) !important;
  filter: blur(5px) !important;
}

.story-center::after {
  background: linear-gradient(90deg, transparent, rgba(255,106,0,.9), rgba(16,24,40,.22), rgba(255,106,0,.9), transparent) !important;
  box-shadow: 0 0 30px rgba(255,106,0,.24) !important;
}

.story-impact-ring {
  border-color: rgba(255,106,0,.18) !important;
  box-shadow: inset 0 0 42px rgba(255,106,0,.045), 0 0 42px rgba(255,106,0,.05) !important;
}

.story-impact-ring:nth-child(2) {
  border-color: rgba(16,24,40,.12) !important;
}

.story-impact-ring:nth-child(3) {
  border-color: rgba(255,106,0,.26) !important;
}

.story-impact-sparks {
  background:
    radial-gradient(circle at 18% 42%, rgba(255,106,0,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, rgba(16,24,40,.32) 0 1px, transparent 3px),
    radial-gradient(circle at 86% 68%, rgba(255,106,0,.75) 0 2px, transparent 4px),
    radial-gradient(circle at 32% 78%, rgba(255,138,42,.7) 0 1px, transparent 3px) !important;
}

.story-title-word:nth-child(3),
.story-title-word:nth-child(4),
.story-title-word:nth-child(6) {
  background: linear-gradient(180deg, #101828 0%, #ff8a2a 48%, #ff6a00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 18px rgba(255,106,0,.12)) !important;
}

/* Painéis brancos */
.story-panel {
  border: 1px solid rgba(16,24,40,.10) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74)) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
  box-shadow:
    0 28px 80px rgba(16,24,40,.16),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  color: #101828 !important;
}

.sp-num {
  color: #ff6a00 !important;
}

.sp-icon {
  filter: drop-shadow(0 0 10px rgba(255,106,0,.22)) !important;
}

.sp-title {
  color: #101828 !important;
}

.sp-desc {
  color: rgba(16,24,40,.70) !important;
}

.sp-metrics {
  background: rgba(255,106,0,.045) !important;
  border-color: rgba(255,106,0,.12) !important;
}

.sp-metric__label {
  color: rgba(16,24,40,.55) !important;
}

.sp-metric__bar {
  background: rgba(16,24,40,.10) !important;
}

.sp-metric__fill,
.story-progress__fill {
  background: linear-gradient(90deg, #ff6a00, #ff9a3d) !important;
}

.sp-metric__val {
  color: #ff6a00 !important;
}

.sp-list__item {
  color: rgba(16,24,40,.78) !important;
}

.sp-list__dot {
  background: #ff6a00 !important;
  box-shadow: 0 0 8px rgba(255,106,0,.45) !important;
}

.sp-footer {
  border-top-color: rgba(16,24,40,.10) !important;
}

.sp-chip {
  border-color: rgba(255,106,0,.20) !important;
  color: #d95a00 !important;
  background: rgba(255,106,0,.07) !important;
}

.sp-cta {
  background: linear-gradient(135deg, #ff6a00, #ff9a3d) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(255,106,0,.26) !important;
}

.sp-cta:hover {
  box-shadow: 0 16px 38px rgba(255,106,0,.34) !important;
}

.sp-combo-stat {
  background: rgba(255,106,0,.06) !important;
  border-color: rgba(255,106,0,.14) !important;
}

.sp-combo-stat__label,
.sp-trust {
  color: rgba(16,24,40,.52) !important;
}

.story-progress__bar {
  background: rgba(16,24,40,.12) !important;
}

.story-progress__label,
.story-scroll-hint {
  color: rgba(16,24,40,.48) !important;
}

/* Mobile claro premium */
@media (max-width: 768px) {
  .scroll-story {
    background:
      radial-gradient(circle at 16% 12%, rgba(255,106,0,.14), transparent 34%),
      radial-gradient(circle at 90% 66%, rgba(255,166,75,.12), transparent 36%),
      linear-gradient(180deg, #fff 0%, #f8fafc 50%, #fff 100%) !important;
  }

  .story-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.46), rgba(255,255,255,.94)) !important;
  }

  .story-center {
    border-color: rgba(255,106,0,.18) !important;
    background:
      linear-gradient(135deg, rgba(255,106,0,.09), rgba(255,255,255,.82) 34%),
      linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.68)) !important;
    box-shadow:
      0 28px 84px rgba(16,24,40,.16),
      inset 0 1px 0 rgba(255,255,255,.95),
      0 0 0 1px rgba(255,106,0,.045) !important;
  }

  .story-center h2 {
    color: #101828 !important;
    text-shadow: 0 16px 34px rgba(16,24,40,.12), 0 0 18px rgba(255,106,0,.10) !important;
  }

  .story-title-word:nth-child(4),
  .story-title-word:nth-child(5) {
    color: #101828 !important;
  }

  .story-title-word:nth-child(6) {
    color: #ff6a00 !important;
    text-shadow: 0 0 18px rgba(255,106,0,.16) !important;
  }

  .story-center .story-eyebrow {
    background: linear-gradient(90deg, rgba(255,106,0,.14), rgba(255,255,255,.66)) !important;
    color: #d95a00 !important;
    box-shadow: 0 14px 28px rgba(255,106,0,.12), inset 0 1px 0 rgba(255,255,255,.9) !important;
  }

  .story-panel {
    background:
      linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82)) !important;
    border-color: rgba(16,24,40,.10) !important;
    box-shadow:
      0 28px 76px rgba(16,24,40,.18),
      inset 0 1px 0 rgba(255,255,255,.95) !important;
  }
}

/* Ajuste premium das cores do texto central da Scroll Story */
.story-center h2,
.story-center .story-title {
  color: #0F172A !important;
}

.story-center h2 span,
.story-center .story-word--accent,
.story-center .story-accent {
  color: #D97706 !important;
  background: none !important;
  -webkit-text-fill-color: #D97706 !important;
}

.story-eyebrow {
  color: #D97706 !important;
  border-color: rgba(217, 119, 6, 0.24) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.story-center::before,
.story-center::after {
  opacity: 0.35;
}