/* ==========================================================================
   Pós-evento · Celebração 18 anos Prime Control
   Identidade do novo site (novo.primecontrol.com.br): Titillium Web + Inter,
   navy profundo, linhas finas azuis, destaque em peso e não em cor.
   ========================================================================== */

:root {
  --bg: #030724;
  --bg-2: #060d3d;
  --bg-3: #031230;
  --ink: #ffffff;
  --muted: #aab5dc;
  --soft: #cdd6f6;
  --accent: #8ea6ff;
  --blue: #2e43d8;
  --blue-h: #3a52f0;
  --orange: #f58220;
  --orange-btn: #bf5509;
  --line: rgba(142, 166, 255, .18);
  --line-soft: rgba(142, 166, 255, .12);
  --card: rgba(255, 255, 255, .05);

  --font-display: "Titillium Web", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(.2, .72, .2, 1);
  --header-h: 72px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 300 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; text-wrap: balance; }
h1 strong, h2 strong { font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: #3d63ff; color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; animation: none !important; }
}

.shell { width: min(1200px, 100% - 2 * clamp(16px, 4.2vw, 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: var(--r-sm); background: var(--blue); color: #fff; }
.skip-link:focus { top: 12px; }

.kicker {
  font: 700 .78rem/1.4 var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 { margin-top: 14px; font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -.015em; }
.lead { margin-top: 18px; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--muted); max-width: 62ch; }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-sm);
  font: 600 .9375rem/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange-btn); color: #fff; }
.button-primary:hover { background: #d4610c; }
.button-outline { border: 1px solid rgba(255, 255, 255, .28); }
.button-outline:hover { border-color: var(--accent); background: rgba(61, 99, 255, .15); }
.button .icon { width: 18px; height: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  font: 700 .75rem/1.4 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s, gap .3s var(--ease);
}
.text-link:hover { color: var(--accent); gap: 12px; }
.text-link .icon { width: 16px; height: 16px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
/* Degradê com desfoque atrás do menu: garante leitura sobre qualquer foto */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 7, 36, .82) 0%, rgba(3, 7, 36, .5) 55%, rgba(3, 7, 36, 0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  transition: opacity .3s;
}
.site-header.is-scrolled {
  background: rgba(3, 7, 36, .9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand img { width: 132px; }
.header-nav { display: none; gap: 30px; margin-left: auto; }
.header-nav a { font: 400 .9375rem/1 var(--font-body); color: var(--soft); transition: color .2s; }
.header-nav a:hover { color: #fff; }
.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .28);
  font: 600 .8125rem/1 var(--font-body);
  white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.header-cta:hover { border-color: var(--accent); background: rgba(61, 99, 255, .15); }
@media (max-width: 599px) { .header-cta { display: none; } }
@media (min-width: 960px) {
  .brand img { width: 148px; }
  .header-nav { display: flex; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Hero com fotos em sequência ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 940px);
  display: grid;
  align-items: end;
  padding-block: calc(var(--header-h) + 40px) clamp(56px, 8vw, 104px);
}
.slides { position: absolute; inset: 0; z-index: -2; }
/* Parallax + zoom no scroll: --hero-p vai de 0 (topo) a 1 (hero fora da tela), definido no JS */
@media (prefers-reduced-motion: no-preference) {
  .slides {
    transform: translate3d(0, calc(var(--hero-p, 0) * 22%), 0) scale(calc(1 + var(--hero-p, 0) * .14));
    transform-origin: 50% 30%;
    will-change: transform;
  }
  .hero-copy {
    transform: translate3d(0, calc(var(--hero-p, 0) * -60px), 0);
    opacity: calc(1 - var(--hero-p, 0) * 1.4);
    will-change: transform, opacity;
  }
  .hero-overlay { opacity: calc(1 + var(--hero-p, 0) * .5); }
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 7, 36, .55) 0%, rgba(3, 7, 36, .25) 30%, rgba(3, 7, 36, .78) 70%, var(--bg) 100%);
}
.hero-copy { max-width: 820px; }
.hero h1 { margin-top: 16px; font-size: clamp(2.375rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.02em; }
.hero-sub { margin-top: 22px; max-width: 58ch; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--soft); font-weight: 400; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-progress { margin-top: 44px; display: flex; gap: 6px; max-width: 320px; }
.hero-progress button {
  flex: 1;
  height: 20px;
  cursor: pointer;
  position: relative;
}
.hero-progress button::before,
.hero-progress button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  translate: 0 -50%;
}
.hero-progress button::before { background: rgba(255, 255, 255, .22); }
.hero-progress button::after { background: #fff; transform-origin: left; transform: scaleX(0); }
.hero-progress button.is-done::after { transform: scaleX(1); }
.hero-progress button.is-active::after { animation: progress var(--slide-ms, 6000ms) linear forwards; }
.hero.is-paused .hero-progress button.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

@media (min-width: 960px) {
  .hero { align-items: center; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 7, 36, .92) 0%, rgba(3, 7, 36, .72) 38%, rgba(3, 7, 36, .2) 70%, rgba(3, 7, 36, .05) 100%),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }
  .hero-copy { padding-top: 40px; }
}

/* ---------- A noite (agradecimento) ---------- */
.thanks-grid { display: grid; gap: 28px; }
.thanks-grid { gap: 56px; }
.thanks-text .h2 { margin-bottom: 26px; }
.thanks-text p:not(.kicker) { color: var(--soft); font-size: clamp(1rem, 1.2vw, 1.0625rem); line-height: 1.75; }
.thanks-text p:not(.kicker) + p { margin-top: 16px; }
.thanks-sign { margin-top: 26px !important; font: 400 1rem/1.4 var(--font-display) !important; color: var(--accent) !important; letter-spacing: .01em; }
@media (min-width: 960px) {
  .thanks-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 112px); align-items: center; }
}

/* Foto com blocos em degradê nos cantos (padrão "Quem somos" do novo site) */
.x-fig { position: relative; margin: 18px 18px 30px; }
.x-blk {
  position: absolute;
  z-index: 0;
  width: 30%;
  height: 34%;
  border-radius: 14px;
  background: linear-gradient(135deg, #033bbf, #0c068f);
}
.x-blk.tl { top: -18px; left: -18px; }
.x-blk.br { right: -18px; bottom: -18px; }
.x-media { position: relative; z-index: 1; aspect-ratio: 610 / 420; overflow: hidden; border-radius: 8px; background: #0a1348; }
.x-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.x-tip {
  position: absolute;
  z-index: 4;
  right: -10px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  border: .8px solid rgba(142, 166, 255, .25);
  background: rgba(3, 7, 36, .88);
  backdrop-filter: blur(8px);
  font-size: .8125rem;
  color: var(--soft);
  max-width: 80%;
}
.x-tip b { font: 600 1rem/1.25 var(--font-display); color: #fff; }
@media (max-width: 599px) {
  .x-fig { margin: 12px 12px 24px; }
  .x-blk.tl { top: -12px; left: -12px; }
  .x-blk.br { right: -12px; bottom: 31px; height: 30%; }
  .x-tip { position: relative; right: auto; bottom: auto; margin: -22px 0 0 14px; width: fit-content; max-width: calc(100% - 28px); padding: 10px 14px; }
}

/* Faixa de números (mesma do novo site) */
.stats {
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 0;
}
.stats li { position: relative; display: grid; gap: 6px; justify-items: center; align-content: start; padding: 0 10px; text-align: center; }
.stats b { font: 300 clamp(2rem, 3.2vw, 2.75rem)/1 var(--font-display); letter-spacing: -.01em; }
.stats small { font-size: .8125rem; line-height: 1.4; color: #dfe6ff; max-width: 18ch; }
.stats li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(rgba(26, 32, 205, 0), #1a20cd 22%, #033bbf 55%, rgba(47, 91, 255, 0));
}
.stats li:nth-child(odd)::before { display: none; }
.stats li:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stats li:nth-child(odd)::before { display: block; }
  .stats li:first-child::before { display: none; }
  .stats li:last-child { grid-column: auto; }
}
/* ---------- Link no texto (ex.: LinkedIn do Everton) ---------- */
.inline-link {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(142, 166, 255, .6);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.inline-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Vídeo "Prime Control 18 anos" (YouTube sob demanda) ---------- */
.yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { filter: saturate(.85); transition: transform .9s var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 36, .55), rgba(3, 7, 36, 0) 60%);
  pointer-events: none;
}
.yt-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-btn);
  box-shadow: 0 0 0 8px rgba(191, 85, 9, .22);
  transition: background-color .2s, scale .3s var(--ease);
}
.yt-play .icon { width: 40%; height: 40%; fill: #fff; stroke: none; margin-left: 4%; }
.yt:hover .yt-play { background: #d4610c; scale: 1.06; }
.yt.is-playing::after, .yt.is-playing .yt-play, .yt.is-playing img { display: none; }

/* ---------- Últimos eventos (mesmo card do Prime Experience) ---------- */
.events-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.car-nav { display: flex; gap: 10px; }
.car-nav button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(142, 166, 255, .4);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.car-nav button:hover:not(:disabled) { background: rgba(61, 99, 255, .15); border-color: var(--accent); }
.car-nav button:disabled { opacity: .35; cursor: default; }
.car-nav .icon { width: 20px; height: 20px; }
.editions {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.editions::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .editions { cursor: grab; } }
.editions.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.editions.is-dragging a { pointer-events: none; }
.edition {
  flex: 0 0 min(88vw, 366px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: .8px solid rgba(142, 166, 255, .22);
  background: #0b1158;
}
.edition:last-child { scroll-snap-align: end; }
@media (min-width: 700px) { .edition { flex-basis: calc((100% - 28px) / 2); } }
@media (min-width: 1000px) { .edition { flex-basis: calc((100% - 56px) / 3); } }
.edition img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.edition-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.edition-body h3 { font: 600 1.25rem/1.25 var(--font-display); }
.edition-body p { font: 400 .9375rem/1.55 var(--font-body); color: #c6cdf0; }
.edition-body a {
  margin-top: auto;
  padding-top: 8px;
  font: 600 .9375rem/1.3 var(--font-body);
  color: #a9bcff;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
  transition: color .2s;
}
.edition-body a:hover { color: #fff; }
.car-dots { margin-top: 24px; display: flex; justify-content: center; gap: 8px; }
.car-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(142, 166, 255, .35); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.car-dots button[aria-current="true"] { width: 22px; background: #3d63ff; }

/* ---------- Vídeos ---------- */
.stories {
  margin-top: 48px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 250px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 14px;
  margin-inline: calc(-1 * (100vw - 100%) / 2);
  padding-inline: calc((100vw - 100%) / 2);
  scroll-padding-inline: calc((100vw - 100%) / 2);
  scrollbar-width: thin;
  scrollbar-color: var(--bg-2) transparent;
}
.stories > li { scroll-snap-align: start; }
@media (min-width: 1000px) {
  .stories { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.story {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  cursor: pointer;
  text-align: left;
  transition: border-color .3s, transform .4s var(--ease);
}
.story:hover { border-color: rgba(142, 166, 255, .45); transform: translateY(-3px); }
.story img, .story video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story video { opacity: 0; transition: opacity .4s; }
.story.is-previewing video { opacity: 1; }
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 7, 36, .92) 100%);
  pointer-events: none;
}
.story-play {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 7, 36, .55);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s;
}
.story-play .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.story:hover .story-play { background: var(--blue); border-color: var(--blue); }
.story-meta { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: grid; gap: 2px; }
.story-title { font: 600 1.0625rem/1.25 var(--font-display); }
.story-time { font: 400 .8125rem/1.3 var(--font-body); color: var(--muted); }

/* ---------- Galeria ---------- */
.gallery-head { display: grid; gap: 24px; }
@media (min-width: 960px) { .gallery-head { grid-template-columns: 1fr auto; align-items: end; } }
.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(150px, 46vw, 240px);
  grid-auto-flow: dense;
  gap: 10px;
}
.bento-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-2);
  cursor: zoom-in;
}
/* Enquadramento: por padrão prioriza a faixa dos rostos (acima do centro); cada foto pode ajustar via --pos */
.bento-item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); transition: transform .9s var(--ease); }
.bento-item:hover img { transform: scale(1.03); }
.bento-item.wide, .bento-item.big { grid-column: span 2; }
.bento-item.tall, .bento-item.big { grid-row: span 2; }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 16vw, 220px); gap: 12px; }
  .bento-item.big { grid-row: span 2; }
}

/* ---------- História: vídeo fixo + capítulos (padrão "Quem somos" do novo site) ---------- */
.story-stage { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 48px; }
.story-media { position: relative; }
.story-figure { position: relative; }
.story-figure::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 59, 191, .22), rgba(3, 59, 191, 0) 65%);
  pointer-events: none;
}
.story-figure .yt { border-radius: 22px; border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.story-cap {
  position: relative;
  z-index: 2;
  margin: -34px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 20px;
  border-radius: 16px;
  border: .8px solid rgba(255, 255, 255, .28);
  background: rgba(30, 42, 92, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--soft);
  font-size: .875rem;
}
.story-cap b { display: block; font: 600 1.125rem/1.2 var(--font-display); color: #fff; }
.story-cap a {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: background-color .2s;
}
.story-cap a:hover { background: var(--blue-h); }
.story-cap .icon { width: 18px; height: 18px; }

.chapters { position: relative; padding-left: 36px; display: grid; gap: clamp(40px, 7vh, 72px); }
.chapters::before, .chapters::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 2px;
  border-radius: 2px;
}
.chapters::before { bottom: 10px; background: rgba(142, 166, 255, .2); }
.chapters::after {
  height: var(--fill, 0px);
  background: linear-gradient(180deg, #f58220, #f9a55c);
  transition: height .6s var(--ease);
}
.chapter { position: relative; transition: opacity .7s var(--ease), filter .7s var(--ease); }
.chapter::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0b1158;
  border: 1px solid rgba(142, 166, 255, .5);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.chapter.is-active::before, .chapter.is-past::before { background: var(--orange); border-color: var(--orange); }
.chapter.is-active::before { box-shadow: 0 0 0 6px rgba(245, 130, 32, .22); }
.chapter-k { font: 700 .78rem/1.4 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: #c6cdf0; }
.chapter-k time { color: #fff; }
.chapter-t { margin-top: 12px; font: 300 clamp(1.125rem, 1.6vw, 1.375rem)/1.55 var(--font-display); color: #c6cdf0; max-width: 32ch; }

/* Só o capítulo ativo fica nítido (com JS e sem preferência por menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js-story .chapter:not(.is-active) { opacity: .28; filter: blur(3px); }
}

@media (min-width: 960px) {
  .story-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 8vw, 108px); align-items: start; }
  .story-media { position: sticky; top: calc(var(--header-h) + 56px); }
  .chapters { padding-top: 4px; padding-bottom: 18vh; }
}

/* ---------- Fechamento ---------- */
/* Mesmo degradê do rodapé do novo site */
.closing {
  text-align: center;
  padding-block: clamp(96px, 12vw, 168px);
  background:
    radial-gradient(70% 70% at 50% 130%, rgba(77, 127, 224, .7) 0, rgba(46, 67, 216, .25) 45%, transparent 75%),
    linear-gradient(#030724, #060d3d 55%, #10227a);
}
.section.closing { border-top: 0; }
.closing::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 134, 255, .45) 30%, rgba(91, 134, 255, .45) 70%, transparent);
}
.closing .lead { color: var(--soft); }
.closing .h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.closing .lead { margin-inline: auto; }
.closing .button { margin-top: 28px; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.footer-inner { display: grid; gap: 24px; justify-items: center; text-align: center; }
.footer-brand img { width: 140px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.links a { padding-block: 8px; font-size: .875rem; color: var(--muted); transition: color .2s; }
.links a:hover { color: #fff; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.socials a:hover { border-color: var(--accent); background: rgba(61, 99, 255, .15); }
.social-icon { width: 15px; height: 15px; }
.footer-bottom { margin-top: 28px; text-align: center; font-size: .8125rem; color: var(--muted); }
@media (min-width: 821px) {
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; gap: 40px; text-align: left; }
  .links { justify-content: center; justify-self: center; }
}

/* ---------- Modais (lightbox e vídeo) ---------- */
.lightbox, .player {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  display: grid;
  place-items: center;
  padding: 64px 16px 72px;
  background: rgba(3, 7, 36, .96);
  backdrop-filter: blur(8px);
  color: #fff;
}
.lightbox:not([open]), .player:not([open]) { display: none; }
.lightbox::backdrop, .player::backdrop { background: transparent; }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100dvh - 136px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); }
.player { padding-bottom: 24px; }
.player video {
  height: min(calc(100dvh - 96px), 860px, calc((100vw - 32px) * 16 / 9));
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--r-lg);
  background: #000;
}
.player-title { position: absolute; top: 24px; left: 20px; right: 72px; font: 600 1rem/1.2 var(--font-display); }
.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(3, 7, 36, .7);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--blue); border-color: var(--blue); }
.lb-btn .icon { width: 20px; height: 20px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; font-size: .8125rem; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; }
}

/* Voltar ao topo */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(3, 7, 36, .88);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  cursor: pointer;
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); border-color: var(--blue); }
.to-top .icon { width: 18px; height: 18px; }

/* ---------- Revelação no scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal, .js-reveal .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js-reveal .reveal.is-in, .js-reveal .reveal-stagger.is-in > * { opacity: 1; transform: none; }
  .reveal-stagger > :nth-child(2) { --d: 60ms; }
  .reveal-stagger > :nth-child(3) { --d: .12s; }
  .reveal-stagger > :nth-child(4) { --d: .18s; }
  .reveal-stagger > :nth-child(5) { --d: .24s; }
  .reveal-stagger > :nth-child(n+6) { --d: .3s; }
  .hero-copy > * { animation: rise .9s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(n+4) { animation-delay: .27s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}
