/* ==========================================================================
   MUSSA CALIL — Sempre Presente!
   Conceito de site de pré-campanha · Barretos e região
   Identidade: azuis do folder (#0973B3 → #003E8B → #2F1A6F) + amarelo #F8BA0C
   ========================================================================== */

:root {
  --blue-sky: #0973B3;
  --blue-mid: #0059A8;
  --blue-deep: #003E8B;
  --navy: #062A66;
  --navy-ink: #041B46;
  --indigo: #2F1A6F;
  --yellow: #F8BA0C;
  --yellow-soft: #FFD44D;
  --yellow-hot: #FFC629;
  --paper: #F4F7FC;
  --white: #FFFFFF;
  --ink: #0B1B3A;
  --ink-soft: #46567A;
  --line: #DCE4F2;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --radius: 18px;
  --radius-lg: 28px;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--yellow); color: var(--navy-ink); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(1180px, calc(100% - 2 * clamp(20px, 5vw, 48px)));
  margin-inline: auto;
}

/* ---------- Texturas ---------- */
.halftone {
  position: absolute;
  width: clamp(220px, 30vw, 420px);
  aspect-ratio: 1;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  pointer-events: none;
}
.halftone-tl { top: -60px; left: -80px; }
.halftone-br { bottom: -40px; right: 8%; }
.halftone-tr { top: 40px; right: -60px; }
.halftone-bl { bottom: -60px; left: -60px; }

/* Grain global sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- Marca-texto amarelo (sweep) ---------- */
.mark-sweep {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  background-repeat: no-repeat;
  background-size: 0% 92%;
  background-position: 0 60%;
  color: inherit;
  padding: .02em .12em;
  margin-inline: -.06em;
  border-radius: .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size .9s var(--ease-out) .15s;
}
.is-revealed .mark-sweep, .mark-sweep.is-revealed { background-size: 100% 92%; }
.chapter-light .mark-sweep, .quote-band .mark-sweep { color: var(--navy-ink); }
.hero .mark-sweep, .cta-band .mark-sweep { color: var(--navy-ink); }

/* ---------- Animações de reveal ---------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal-item.is-revealed { opacity: 1; transform: none; }

.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out) var(--d, 0s);
}
.reveal-line.is-revealed > span { transform: none; }

/* ---------- Barra de progresso ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 130;
  background: transparent;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-soft));
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  transition: background .35s ease, box-shadow .35s ease, transform .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(4, 27, 70, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(4, 27, 70, .35);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  width: min(1280px, calc(100% - 2 * clamp(16px, 4vw, 40px)));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  height: 40px;
  width: auto;
  transition: transform .3s var(--ease-spring);
  filter: drop-shadow(0 3px 8px rgba(3, 15, 45, .3));
}
.brand:hover .brand-logo { transform: scale(1.05) rotate(-1.5deg); }
.brand-num {
  margin-left: 4px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy-ink);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 5px 16px rgba(248, 186, 12, .35);
}

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--white); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  z-index: 130;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy-ink);
  box-shadow: 0 10px 30px rgba(248, 186, 12, .35);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(248, 186, 12, .45); }
.btn-yellow:hover svg { transform: translateX(3px); }
.btn-yellow:active { transform: translateY(0); }

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }

.btn-nav { padding: 11px 20px; font-size: 13.5px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(118deg, var(--blue-sky) 0%, var(--blue-mid) 30%, var(--blue-deep) 62%, var(--indigo) 100%);
  overflow: clip;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 40px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero-glow-1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(9, 168, 216, .55), transparent 65%);
  top: -12vw; left: -10vw;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(90, 40, 190, .5), transparent 65%);
  bottom: -14vw; right: -8vw;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.hero-glow-3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(9, 115, 179, .55), transparent 65%);
  top: -10vw; right: -10vw;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, 3vw) scale(1.12); }
}

.hero-watermark, .chapter-watermark {
  position: absolute;
  right: -1.5vw;
  bottom: -3vw;
  font-size: clamp(90px, 15vw, 230px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09);
  user-select: none;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  width: min(1220px, calc(100% - 2 * clamp(20px, 5vw, 48px)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: clamp(20px, 3vh, 32px);
  backdrop-filter: blur(6px);
}
.kicker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(248, 186, 12, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 186, 12, .55); }
  70% { box-shadow: 0 0 0 9px rgba(248, 186, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 186, 12, 0); }
}

.hero-title { line-height: 1; margin-bottom: clamp(16px, 2.4vh, 26px); }
.hero-logo {
  width: clamp(280px, 40vw, 520px);
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(3, 15, 45, .4));
}

.hero-slogan {
  font-size: clamp(17px, 2.1vw, 26px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: clamp(22px, 3.4vh, 34px);
}

.hero-legal {
  margin-top: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .58);
}

/* ---------- Número estilo urna eletrônica ---------- */
.urna {
  display: inline-block;
  padding: 16px 20px 14px;
  border-radius: 20px;
  background: rgba(4, 27, 70, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(3, 15, 45, .4);
  margin-bottom: clamp(24px, 4vh, 36px);
}
.urna-label, .urna-foot {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  text-align: center;
}
.urna-label { margin-bottom: 10px; }
.urna-foot { margin-top: 10px; color: var(--yellow); }

.urna-keys { display: flex; gap: clamp(7px, 1vw, 11px); justify-content: center; }
.urna-key {
  display: grid;
  place-items: center;
  width: clamp(46px, 6.2vw, 74px);
  height: clamp(58px, 7.6vw, 92px);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--yellow-hot), var(--yellow));
  color: var(--navy-ink);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 0 #C98F00, 0 14px 26px rgba(3, 15, 45, .38);
  opacity: 0;
  transform: translateY(-14px);
}
.urna.is-typed .urna-key {
  animation: keyPress .5s var(--ease-spring) forwards;
  animation-delay: calc(var(--k) * .13s);
}
@keyframes keyPress {
  0% { opacity: 0; transform: translateY(-16px); box-shadow: 0 10px 0 #C98F00, 0 18px 30px rgba(3, 15, 45, .38); }
  55% { opacity: 1; transform: translateY(3px); box-shadow: 0 2px 0 #C98F00, 0 8px 16px rgba(3, 15, 45, .3); }
  100% { opacity: 1; transform: translateY(0); box-shadow: 0 6px 0 #C98F00, 0 14px 26px rgba(3, 15, 45, .38); }
}

/* ---------- Selo do partido ---------- */
.party-badge {
  position: absolute;
  right: -14px;
  bottom: 96px;
  display: grid;
  place-items: center;
  min-width: 78px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(3, 15, 45, .4);
  transform: rotate(4deg);
  transition: transform .4s var(--ease-spring);
}
.portrait-stack:hover .party-badge { transform: rotate(-2deg) scale(1.05); }
.party-badge img { width: 62px; height: auto; }
.party-badge b { display: none; }
.party-badge.no-img img { display: none; }
.party-badge.no-img b {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--navy-ink);
}
.party-badge-sm {
  position: static;
  transform: none;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: none;
}
.party-badge-sm img { width: 46px; }
.party-badge-sm.no-img b { font-size: 18px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(28px, 4.5vh, 44px); }

.hero-proof { display: flex; align-items: center; gap: 16px; }
.proof-avatars { display: flex; }
.proof-avatars img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--blue-deep);
  margin-left: -12px;
  transition: transform .3s var(--ease-spring);
}
.proof-avatars img:first-child { margin-left: 0; }
.proof-avatars:hover img { transform: translateX(2px); }
.hero-proof p {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  max-width: 24ch;
  line-height: 1.45;
}

/* ---------- Retrato ---------- */
.hero-visual { position: relative; }
.portrait-stack {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
  will-change: transform;
}
.portrait-frame {
  position: relative;
  background: var(--white);
  padding: 14px 14px 18px;
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(3, 15, 45, .5);
  transform: rotate(2.2deg);
  transition: transform .5s var(--ease-spring);
}
.portrait-stack:hover .portrait-frame { transform: rotate(.8deg) scale(1.015); }
.portrait-frame img {
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.tape {
  position: absolute;
  width: 110px; height: 30px;
  background: linear-gradient(100deg, rgba(248, 186, 12, .92), rgba(255, 212, 77, .92));
  box-shadow: 0 4px 12px rgba(3, 15, 45, .2);
  opacity: .95;
}
.tape-1 { top: -12px; left: 26px; transform: rotate(-8deg); }
.tape-2 { bottom: -10px; right: 34px; transform: rotate(6deg); }

.portrait-card {
  position: absolute;
  left: -26px;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(3, 15, 45, .55);
  transform: rotate(-3deg);
  animation: float 5.5s ease-in-out infinite;
}
.portrait-card strong {
  font-size: 32px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.portrait-card span { font-size: 12px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .85); }
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-9px); }
}

.stamp {
  position: absolute;
  top: -34px;
  right: -20px;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(248, 186, 12, .4);
  animation: spin 16s linear infinite;
}
.stamp svg { width: 100%; height: 100%; }
.stamp text {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .22em;
  fill: var(--navy-ink);
  text-transform: uppercase;
  font-family: var(--font);
}
.stamp-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: relative;
  margin: clamp(30px, 5vh, 52px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  transition: color .3s ease;
}
.scroll-cue:hover { color: var(--yellow); }
.scroll-cue-track {
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue-track span {
  width: 4px; height: 9px;
  border-radius: 4px;
  background: var(--yellow);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  background: var(--yellow);
  color: var(--navy-ink);
  overflow: hidden;
  padding: 15px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin-top: -28px;
  position: relative;
  z-index: 5;
  box-shadow: 0 16px 40px rgba(3, 15, 45, .18);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 12px;
}
.ticker-track i { font-style: normal; margin: 0 14px; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  background: var(--paper);
  padding: clamp(64px, 9vh, 96px) 0 clamp(40px, 6vh, 64px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(11, 27, 58, .06);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.stat:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(11, 27, 58, .1); }
.stat strong {
  display: block;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--blue-deep);
  line-height: 1.05;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat strong em { font-style: normal; color: var(--yellow); }
.stat > span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.45; }

/* ==========================================================================
   CHAPTERS (base)
   ========================================================================== */
.chapter { position: relative; padding: clamp(72px, 11vh, 130px) 0; overflow: clip; }
.chapter-light { background: var(--paper); }
.chapter-dark {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-ink) 55%, #0A1240 100%);
  color: var(--white);
}
.chapter-dark-bg { position: absolute; inset: 0; pointer-events: none; }
.chapter-watermark { -webkit-text-stroke-color: rgba(255, 255, 255, .05); top: 20px; bottom: auto; }

.chapter-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 36px);
  margin-bottom: clamp(48px, 7vh, 80px);
}
.chapter-head-row { align-items: flex-end; }
.chapter-head-row > div:nth-child(2) { flex: 1; }

.chapter-num {
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  flex-shrink: 0;
  translate: 0 6px;
}
.chapter-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin-bottom: 10px;
}
.chapter-dark .chapter-kicker, .cta-band .chapter-kicker { color: var(--yellow); }
.chapter-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   BIO CARD
   ========================================================================== */
.bio-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  padding: clamp(24px, 3vw, 38px);
  margin-bottom: clamp(48px, 7vh, 76px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(11, 27, 58, .07);
  position: relative;
  overflow: hidden;
}
.bio-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--yellow), var(--blue-sky));
}
.bio-block { display: flex; gap: 16px; align-items: flex-start; }
.bio-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--blue-deep);
  border: 1px solid var(--line);
}
.bio-ico svg { width: 24px; height: 24px; }
.bio-block h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin-bottom: 6px;
}
.bio-block p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.bio-block strong { color: var(--navy-ink); font-weight: 700; }

/* ==========================================================================
   TRAJETÓRIA (linha do tempo)
   ========================================================================== */
.trail {
  position: relative;
  --trail-pad: clamp(104px, 11vw, 152px);
  padding-left: var(--trail-pad);
}
.trail-rail {
  position: absolute;
  left: calc(var(--trail-pad) / 2);
  top: 8px; bottom: 8px;
  width: 3px;
  translate: -50% 0;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.trail-rail span {
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 5%, var(--blue-sky) 18%, var(--blue-deep) 65%, var(--indigo) 100%);
  transform-origin: top;
  transform: scaleY(0);
}

.trail-item { position: relative; padding-bottom: clamp(20px, 2.8vh, 30px); }
.trail-item:last-child { padding-bottom: 0; }

/* Ano — chip centrado no trilho */
.trail-year {
  position: absolute;
  left: calc(var(--trail-pad) / -2);
  top: 20px;
  z-index: 2;
  translate: -50% 0;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy-ink);
  color: var(--white);
  font-size: clamp(12.5px, 1.05vw, 15px);
  font-weight: 900;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(11, 27, 58, .25), 0 0 0 5px var(--paper);
}
.trail-year i { font-style: normal; opacity: .7; }
.is-vote .trail-year { background: var(--yellow); color: var(--navy-ink); }
.is-now .trail-year { background: var(--yellow); color: var(--navy-ink); animation: pulse 2.4s infinite; }

/* Card */
.trail-card {
  display: flex;
  gap: clamp(20px, 2.4vw, 30px);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .3s ease;
}
.trail-card:hover {
  transform: translateX(5px);
  border-color: rgba(9, 115, 179, .35);
  box-shadow: 0 22px 50px rgba(11, 27, 58, .1);
}
.trail-media {
  position: relative;
  flex: 0 0 clamp(190px, 26%, 310px);
  min-height: 210px;
  overflow: hidden;
}
.trail-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform .7s var(--ease-out);
}
.trail-card:hover .trail-media img { transform: scale(1.05); }
.trail-body { flex: 1; padding: clamp(20px, 2.2vw, 30px); }
.trail-body h3 {
  font-size: clamp(18px, 1.85vw, 25px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--navy-ink);
  margin-bottom: 10px;
  line-height: 1.15;
}
.trail-body p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; max-width: 62ch; }
.trail-body strong { color: var(--blue-deep); font-weight: 700; }
.trail-highlight {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(248, 186, 12, .14);
  border-left: 3px solid var(--yellow);
  color: var(--navy-ink) !important;
  font-weight: 600;
}
.trail-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
}

/* Marcos de mandato */
.is-vote .trail-card { border-color: rgba(248, 186, 12, .5); background: linear-gradient(100deg, #FFFDF5, var(--white) 55%); }
.is-vote .trail-tag { color: var(--navy-ink); background: rgba(248, 186, 12, .2); border-color: rgba(248, 186, 12, .45); }

/* Marco atual — 2026 */
.is-now .trail-card {
  background: linear-gradient(125deg, var(--navy) 0%, var(--navy-ink) 60%, var(--indigo) 100%);
  border-color: transparent;
  box-shadow: 0 26px 60px rgba(11, 27, 58, .28);
}
.is-now .trail-body h3 { color: var(--white); }
.is-now .trail-body p { color: rgba(255, 255, 255, .82); }
.is-now .trail-year { color: var(--blue-deep); }
.trail-vote { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.trail-vote-num {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy-ink);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 0 #C98F00, 0 16px 30px rgba(248, 186, 12, .3);
}
.trail-vote-txt {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
}

/* ==========================================================================
   QUOTE BAND
   ========================================================================== */
.quote-band {
  position: relative;
  padding: clamp(90px, 16vh, 170px) 0;
  overflow: clip;
  color: var(--white);
  background: var(--navy-ink);
}
.quote-bg { position: absolute; inset: -18% 0; }
.quote-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: blur(4px) saturate(1.15);
  transform: scale(1.08);
  will-change: transform;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 27, 70, .88), rgba(47, 26, 111, .72));
}
.quote-band blockquote { position: relative; text-align: center; }
.quote-mark {
  display: block;
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 900;
  line-height: .4;
  color: var(--yellow);
  margin-bottom: 8px;
}
.quote-band p {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: 22ch;
  margin-inline: auto;
}
.quote-band cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ==========================================================================
   REALIZAÇÕES
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.work-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .3s ease, background .3s ease;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(248, 186, 12, .5);
  background: rgba(255, 255, 255, .08);
}
.work-wide { grid-column: span 6; flex-direction: row; align-items: stretch; }
.work-wide figure { flex: 1.15; position: relative; min-height: 300px; }
.work-wide figure img { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-wide .work-body { flex: 1; align-self: center; }
.work-wide-flip { flex-direction: row-reverse; }

.work-card figure { overflow: hidden; position: relative; }
.work-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 27, 70, .45));
  pointer-events: none;
}
.work-card figure img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.work-wide figure img { aspect-ratio: auto; }
.work-card:hover figure img { transform: scale(1.06); }

.work-body { padding: clamp(22px, 2.6vw, 34px); position: relative; }
.work-num {
  position: absolute;
  top: -26px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy-ink);
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 12px 28px rgba(248, 186, 12, .35);
  transform: rotate(-5deg);
  transition: transform .3s var(--ease-spring);
}
.work-card:hover .work-num { transform: rotate(3deg) scale(1.08); }
.work-wide .work-num { top: 22px; right: 22px; }
.work-body h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--white);
}
.work-body p { font-size: 14.5px; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.work-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1.5px solid rgba(248, 186, 12, .4);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   GALERIA
   ========================================================================== */
.gallery-nav { display: flex; gap: 10px; }
.gal-btn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--navy-ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-spring);
}
.gal-btn:hover { background: var(--yellow); border-color: var(--yellow); transform: scale(1.06); }
.gal-btn:active { transform: scale(.96); }
.gal-btn svg { width: 20px; height: 20px; }

.gallery {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px calc((100vw - min(1180px, 100vw - 2 * clamp(20px, 5vw, 48px))) / 2) 26px;
  scrollbar-width: none;
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging .gal-item { pointer-events: none; }

.gal-item {
  position: relative;
  flex: 0 0 clamp(260px, 30vw, 380px);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 27, 58, .14);
  background: var(--navy-ink);
}
.gal-item img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform .7s var(--ease-out), opacity .4s ease;
}
.gal-item:hover img { transform: scale(1.05); opacity: .85; }
.gal-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 42px 20px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(4, 27, 70, .92));
  line-height: 1.4;
}
.gallery-progress {
  width: min(320px, 60%);
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.gallery-progress span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 4px;
  background: var(--yellow);
  transition: width .2s ease;
}

/* ==========================================================================
   CTA / CONTATO
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(130deg, var(--blue-mid) 0%, var(--blue-deep) 45%, var(--indigo) 100%);
  color: var(--white);
  padding: clamp(80px, 12vh, 140px) 0;
  overflow: clip;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.cta-title {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.cta-sub { font-size: 16.5px; color: rgba(255, 255, 255, .85); max-width: 46ch; margin-bottom: 34px; }

.social-links { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  transition: transform .3s var(--ease-out), background .25s ease, border-color .25s ease;
}
.social-link:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(248, 186, 12, .55);
}
.social-ico {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--navy-ink);
}
.social-ico svg { width: 24px; height: 24px; }
.social-link strong { display: block; font-size: 15.5px; font-weight: 800; }
.social-link em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .65); font-weight: 500; }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }

.cta-side { justify-self: center; }
.vote-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 260px;
  background: var(--white);
  color: var(--navy-ink);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(3, 15, 45, .4);
  transform: rotate(2.5deg);
  transition: transform .4s var(--ease-spring);
  border-top: 8px solid var(--yellow);
}
.vote-card:hover { transform: rotate(0deg) scale(1.03); }
.vote-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.vote-card-num {
  font-size: clamp(56px, 7vw, 78px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--navy-ink);
  font-variant-numeric: tabular-nums;
}
.vote-card-slogan {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-deep);
}

/* ---------- Barra fixa de voto (mobile) ---------- */
.vote-bar {
  position: fixed;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 115;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(4, 27, 70, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 40px rgba(3, 15, 45, .45);
  transform: translateY(150%);
  transition: transform .45s var(--ease-out);
}
.vote-bar.is-shown { transform: none; }
.vote-bar-num {
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--navy-ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vote-bar-txt {
  flex: 1;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.vote-bar-txt b { color: var(--yellow); font-weight: 800; }
.vote-bar-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #25D366;
  color: #05391B;
}
.vote-bar-btn svg { width: 24px; height: 24px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, .6);
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner { text-align: center; display: grid; gap: 10px; justify-items: center; }
.footer-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-logo { height: 46px; width: auto; }
.footer-num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.footer-note { font-size: 13.5px; font-weight: 500; }
.footer-legal { font-size: 12px; opacity: .75; }
.footer-legal strong { color: rgba(255, 255, 255, .9); font-weight: 700; letter-spacing: .03em; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-visual { order: -1; margin-top: 8px; }
  .portrait-stack { max-width: min(380px, 78vw); }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-actions { justify-content: center; }

  .work-wide { flex-direction: column; }
  .work-wide figure img { aspect-ratio: 16 / 9; }
  .work-card { grid-column: span 3; }

  .bio-card { grid-template-columns: 1fr; gap: 20px; }

  .cta-inner { grid-template-columns: 1fr; }
  .cta-side { justify-self: start; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 125;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-ink) 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .main-nav .nav-link {
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 900;
    text-transform: uppercase;
    padding: 12px 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s var(--ease-out) var(--nav-d, 0s), transform .4s var(--ease-out) var(--nav-d, 0s), color .25s ease;
  }
  .main-nav.is-open .nav-link { opacity: 1; transform: none; }
  .main-nav .btn-nav {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s var(--ease-out) .3s, transform .4s var(--ease-out) .3s;
  }
  .main-nav.is-open .btn-nav { opacity: 1; transform: none; }
  .menu-toggle { display: flex; }

  .portrait-card { left: -8px; bottom: 24px; padding: 12px 16px; }
  .portrait-card strong { font-size: 24px; }
  .stamp { width: 92px; height: 92px; top: -24px; right: -8px; }
  .party-badge { right: -8px; bottom: 74px; min-width: 62px; padding: 9px 12px; }
  .party-badge img { width: 48px; }

  .urna { display: block; padding: 14px 14px 12px; }
  .urna-keys { gap: 6px; }
  .urna-key { width: clamp(44px, 15vw, 62px); height: clamp(56px, 19vw, 78px); font-size: clamp(28px, 10vw, 42px); }

  .ticker { transform: rotate(-1.6deg) scale(1.05); }

  .stats { padding-top: 72px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat { padding: 22px 12px; }

  .chapter-head { flex-direction: column; gap: 14px; }
  .chapter-head-row { flex-direction: column; align-items: flex-start; }
  .chapter-num { translate: 0; }

  /* Trajetória: ano acima do card */
  .trail { padding-left: 34px; }
  .trail-rail { left: 5px; }
  .trail-item { padding-bottom: 20px; }
  .trail-year {
    position: static;
    display: inline-block;
    translate: none;
    margin-bottom: 10px;
    padding: 7px 14px;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(11, 27, 58, .2);
  }
  .trail-card { flex-direction: column; }
  .trail-media { flex: none; }
  .trail-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .trail-vote { gap: 12px; }

  .work-card { grid-column: span 6; }
  .work-wide .work-num { top: -26px; }

  .gal-item { flex-basis: min(78vw, 320px); }

  .cta-side { justify-self: center; }
  .vote-card { transform: rotate(0); }
  .social-links { max-width: 100%; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Barra fixa de voto */
  .vote-bar { display: flex; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Modo estático (?static=1 — capturas e depuração) ---------- */
.static-mode { scroll-behavior: auto; }
.static-mode *, .static-mode *::before, .static-mode *::after {
  animation: none !important;
  transition: none !important;
}
.static-mode .reveal-item, .static-mode .reveal-line > span { opacity: 1; transform: none; }
.static-mode .mark-sweep { background-size: 100% 92%; }
.static-mode .hero { min-height: 760px; }
.static-mode .urna-key { opacity: 1; transform: none; }
.static-mode .vote-bar { transform: none; }

/* ---------- Acessibilidade: reduz movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-item, .reveal-line > span { opacity: 1; transform: none; }
  .mark-sweep { background-size: 100% 92%; }
  .ticker-track { animation: none; }
  .urna-key { opacity: 1; transform: none; }
}
