/* =========================================================
   SOZO creative media — estilos
   ========================================================= */

:root {
  --bg: #e8eae9;
  --card: #f5f6f5;
  --dark: #151717;
  --tile: #1d2020;
  --tile-line: #333836;
  --ink: #0e0e0e;
  --ink-2: #3c403e;
  --muted: #6d716f;
  --muted-dark: #a3a8a5;
  --line: #dcdfdd;
  --accent: #2448a6;          /* azul Sozo */
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 12px 16px 32px #cdd0ce, -10px -10px 25px #ffffff;
  --shadow-soft: 6px 8px 18px #d3d6d4, -6px -6px 14px #ffffff;
  --max: 1240px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.stack > * + * { margin-top: 20px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 99px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 14px; height: 14px; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn--light:hover { background: #f1f2f1; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }

.round-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); color: #fff;
  transition: background-color .2s;
}
.round-btn:hover { background: rgba(255,255,255,.1); }
.round-btn svg { width: 16px; height: 16px; }
.round-btn--light { border-color: rgba(255,255,255,.3); }

.text-link { display: inline-flex; gap: 6px; font-weight: 500; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .2s var(--ease), color .2s; }
.text-link:hover { gap: 10px; color: var(--accent); }

/* ---------- Cabeçalho ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 234, 233, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 58px; }
/* O PNG do logo é um quadrado com bastante margem; este recorte mostra só a marca. */
.logo { display: block; position: relative; overflow: hidden; height: 30px; aspect-ratio: 282 / 94; }
.logo img { position: absolute; max-width: none; width: 177.3%; height: auto; left: -40.43%; top: -205.32%; filter: brightness(0); }
.nav__logo { justify-self: start; }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav__contact { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 4px; transition: color .2s; }
.nav__contact:hover, .nav__contact.is-active { color: var(--ink); }
.nav__contact.is-active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.icon-link { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s; }
.icon-link:hover { background: rgba(0,0,0,.06); }

.pill {
  display: flex; padding: 4px; gap: 2px;
  background: var(--bg); border-radius: 99px;
  box-shadow: inset 2px 2px 5px #cfd2d0, inset -2px -2px 5px #ffffff;
}
.pill__item {
  padding: 7px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pill__item.is-active { background: var(--ink); color: #fff; }
.pill__item:not(.is-active):hover { color: var(--ink); }

.nav__links {
  display: flex; justify-content: center; gap: 28px;
  height: 40px; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  position: relative; display: flex; align-items: center; flex-shrink: 0;
  font-size: 14px; color: var(--ink-2); transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); font-weight: 500; }
.nav__links a.nav__page { gap: 7px; color: var(--ink); font-weight: 500; }
.nav__links a.nav__page::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #00b6f5; box-shadow: 0 0 0 3px rgba(0,182,245,.18); }
.nav__links a.is-active::after { transform: scaleX(1); }

/* ---------- Cards ---------- */
main { padding-top: 16px; }
.card { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.card.dark { background: var(--dark); color: #fff; }
.card.light { background: var(--card); }
.sec { padding: 44px 36px 40px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec__title { margin: 0; font-size: clamp(32px, 4vw, 42px); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.sec__note { margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Destaque (hero) ---------- */
.opening { overflow: hidden; }
.hero {
  position: relative; isolation: isolate;
  min-height: 600px; height: min(80vh, 720px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 36px 28px;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; background: #0c0d0d; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.08); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
.hero.is-paused .hero__slide img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.08) translate3d(0,0,0); } to { transform: scale(1.0) translate3d(-1%, -1%, 0); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,11,.55) 0%, rgba(10,11,11,0) 22%),
    linear-gradient(0deg, rgba(10,11,11,.92) 0%, rgba(10,11,11,.55) 38%, rgba(10,11,11,.15) 65%, rgba(10,11,11,.25) 100%);
}
.hero__top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; opacity: .92; }
.hero__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: auto; }
.hero__title {
  margin: 0; font-weight: 500;
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.0; letter-spacing: -.04em;
}
.hero__sub { margin: 18px 0 0; font-size: 15px; opacity: .88; }
.hero__cta { flex-shrink: 0; }

.timeline { margin-top: 30px; }
.timeline__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.timeline__title { font-size: 14px; font-weight: 500; }
.timeline__right { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
[data-hero-toggle] .i-play { display: none; }
[data-hero-toggle].is-paused .i-play { display: block; }
[data-hero-toggle].is-paused .i-pause { display: none; }

.filmstrip {
  position: relative; height: 46px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
}
.filmstrip__frames { display: flex; height: 100%; }
.filmstrip__frame {
  flex: 1; position: relative; overflow: hidden; opacity: .45;
  transition: opacity .4s; border-right: 1px solid rgba(0,0,0,.6);
}
.filmstrip__frame:last-child { border-right: 0; }
.filmstrip__frame img { width: 100%; height: 100%; object-fit: cover; }
.filmstrip__frame:hover, .filmstrip__frame.is-active { opacity: 1; }
.filmstrip__frame.is-past { opacity: .8; }
.filmstrip__head {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.8); pointer-events: none;
}
.filmstrip__head::before { content: ""; position: absolute; top: -1px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* vídeo que roda sozinho, sem som, com a linha do tempo (S.loopVideo em script.js) */
.lv { position: relative; overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.lv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv__open { position: absolute; inset: 0; z-index: 1; cursor: pointer; background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,0) 40%); }
.lv__sound {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px 7px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 500; line-height: 1; color: #fff;
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, transform .25s var(--ease);
}
.lv__open:hover .lv__sound { background: rgba(0,0,0,.72); transform: scale(1.04); }
.lv__sound svg { width: 15px; height: 15px; }
.lv.is-small .lv__sound { padding: 7px; }
.lv.is-small .lv__sound span { display: none; }
.lv__bar { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; }
.lv__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.lv__toggle { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); }
.lv__toggle svg { width: 13px; height: 13px; }
.lv__toggle .i-play { display: none; }
.lv__toggle.is-paused .i-play { display: block; }
.lv__toggle.is-paused .i-pause { display: none; }
.lv__strip { height: 34px; border-radius: 8px; background: rgba(0,0,0,.35); cursor: pointer; touch-action: pan-y; }
.lv.is-small .lv__strip { height: 28px; }
.lv__strip .filmstrip__frame { opacity: .5; }
.lv__strip .filmstrip__frame.is-past { opacity: .85; }
.lv__strip .filmstrip__frame.is-active { opacity: 1; }
.lv__fill { display: none; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; pointer-events: none; }
/* sem miniaturas: só uma barra fina de progresso */
.lv__strip.is-plain { height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.lv__strip.is-plain .lv__fill { display: block; }
.lv__strip.is-plain .filmstrip__head { display: none; }

/* vídeo no topo */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.is-video .filmstrip { cursor: pointer; touch-action: pan-y; }
.hero.is-video .filmstrip__frame { opacity: .5; }
.hero.is-video .filmstrip__frame.is-past { opacity: .85; }
.hero.is-video .filmstrip__frame.is-active { opacity: 1; }
.filmstrip__ticks { position: relative; height: 16px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
.filmstrip__ticks:empty { display: none; }
.filmstrip__ticks span { position: absolute; top: 0; transform: translateX(-50%); line-height: 1; }
.filmstrip__ticks span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 4px; background: rgba(255,255,255,.35); }
.filmstrip__ticks span:first-child { transform: none; }
.filmstrip__ticks span:first-child::before { left: 0; }
.filmstrip__ticks span:last-child { transform: translateX(-100%); }
.filmstrip__ticks span:last-child::before { left: auto; right: 0; }
.video-modal__frame video { width: 100%; height: 100%; display: block; background: #000; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.08); }
.stat { padding: 30px 20px 32px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.06); }
.stat__value { display: block; font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.stat__label { display: block; margin-top: 6px; font-size: 14px; color: var(--muted-dark); }

/* ---------- Faixa de clientes ---------- */
.brand-strip { overflow: hidden; padding: 0; }
.marquee {
  overflow: hidden; padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.brand-strip:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 56px; padding-right: 56px;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; color: #1a1c1b;
}
.marquee__item:not(.is-logo):nth-child(3n+2) { font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.marquee__item:not(.is-logo):nth-child(3n) { font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2vw, 24px); letter-spacing: .06em; }
.marquee__item:not(.is-logo)::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.marquee__item.is-logo { padding-right: 96px; height: 84px; }
.marquee__item.is-logo img { height: var(--logo-h, 56px); width: auto; max-width: none; opacity: .82; transition: opacity .3s; }
.marquee__item.is-logo:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: #0d0f0f; border: 1px solid var(--tile-line); flex-wrap: wrap; }
.filter {
  padding: 8px 16px; border-radius: 99px; font-size: 14px; color: var(--muted-dark);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.filter:hover { color: #fff; }
.filter.is-active { background: #fff; color: var(--ink); }

/* ---------- Grade de trabalhos ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  grid-column: span var(--span, 4);
  display: flex; flex-direction: column; text-align: left;
  background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius-sm);
  overflow: hidden; color: #fff;
  transition: border-color .3s, transform .5s var(--ease), opacity .5s var(--ease);
}
.tile:hover { border-color: #4a504d; }
.tile__media { position: relative; overflow: hidden; height: var(--h, 220px); background: #101212; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform 1s var(--ease), opacity .6s; opacity: 0; }
.tile__media img.is-loaded { opacity: 1; }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile__badge {
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 500;
  background: rgba(10,11,11,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.tile:hover .tile__badge, .tile:focus-visible .tile__badge { opacity: 1; transform: none; }
.tile__body { padding: 18px 18px 22px; }
.tile__title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.tile__type { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 14px; color: var(--muted-dark); }
.tile__icon { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.5; color: #d9dcda; }
.tile__tags { display: flex; gap: 6px; margin-top: 12px; }
.tile__tags span { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--tile-line); }
.tile[data-size="lg"] { --h: 340px; }
.tile[data-size="md"] { --h: 220px; }
.tile[data-size="xl"] { --h: 460px; }
.tile.is-hidden { display: none; }

/* ---------- Filmes ---------- */
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.film {
  position: relative; display: block; text-align: left; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; padding: 6px; box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease);
}
.film:hover { transform: translateY(-3px); }
.film__media { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.film__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.film:hover .film__media img { transform: scale(1.04); }
.film__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.film__play {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  border-radius: 99px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
  transition: background-color .25s, color .25s;
}
.film__play svg { width: 14px; height: 14px; }
.film:hover .film__play { background: var(--accent); color: #fff; }
.film__body { padding: 14px 12px 10px; }
.film__title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.film__type { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
/* filme do YouTube rodando sem som no cartão; o botão cobre o cartão inteiro */
.film__hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.film__yt {
  position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 120px);
  border: 0; pointer-events: none; opacity: 0; transition: opacity .8s;
}
.film__yt.is-on { opacity: 1; }
/* vídeos do site que rodam sozinhos (S.loopVideo) */
.film--vertical .film__media { aspect-ratio: 9 / 16; }
.film__lv { position: absolute; inset: 0; }
.film--loop .film__media::after { display: none; }
.film--loop:hover .film__media img { transform: none; }

/* fluxo: todos os filmes numa faixa que corre sozinha (script.js → flow).
   --fh = altura dos vídeos; a largura sai do formato (deitado 16:9, em pé 9:16) */
.flow {
  --fh: 240px; --gap: 16px;
  overflow: hidden; margin: 0 -8px; padding: 6px 8px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.flow__track { position: relative; --gap: 16px; }
.flow .film {
  --w: calc(var(--fh) * 16 / 9);
  position: absolute; left: 0; top: 0; width: calc(var(--w) + 12px);
  transition: none; will-change: transform;
}
.flow .film--vertical { --w: calc(var(--fh) * 9 / 16); }
.flow .film__media { width: var(--w); height: var(--fh); aspect-ratio: auto; }
.flow .film__body { padding: 10px 6px 4px; }
.flow .film__title { font-size: 15.5px; line-height: 1.25; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flow .film__type { font-size: 12.5px; line-height: 1.3; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flow .film__play { left: 12px; bottom: 12px; height: 34px; padding: 0 13px 0 10px; font-size: 13px; }
/* parada (sem movimento ou poucos cartões): fileira que desliza com o dedo */
.flow.is-static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.flow.is-static .flow__track { display: flex; gap: var(--gap); width: max-content; }
.flow.is-static .film { position: relative; flex: none; }

/* ---------- Serviços (lista) ---------- */
.list { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.row__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.row__title { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; transition: transform .4s var(--ease); }
.row:hover .row__title { transform: translateX(6px); }
.row__text { margin: 0; color: var(--ink-2); max-width: 520px; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; }
.frame { margin: 0; background: #fff; padding: 6px; border-radius: 18px; box-shadow: var(--shadow-soft); }
.frame img { width: 100%; border-radius: 13px; }
.about__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about__text p { font-size: 17px; color: var(--ink-2); margin: 16px 0 0; max-width: 560px; }
.about__text .sec__title { margin-bottom: 6px; }
.about__text .text-link { margin-top: 26px; }

/* ---------- Mosaico ---------- */
.mosaic { columns: 4 220px; column-gap: 18px; }
.mosaic__item {
  display: block; width: 100%; margin: 0 0 18px; break-inside: avoid;
  background: #fff; padding: 6px; border-radius: 16px; box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease);
}
.mosaic__item:hover { transform: translateY(-3px); }
.mosaic__item img { width: 100%; border-radius: 11px; background: #e3e5e4; min-height: 120px; }
/* Destaques em rotação (script.js → mosaic): a foto nova entra por cima, no mesmo tamanho do quadro */
[data-mosaico] .mosaic__item { position: relative; }
[data-mosaico] .mosaic__swap {
  position: absolute; top: 6px; left: 6px; width: calc(100% - 12px); height: calc(100% - 12px); min-height: 0;
  object-fit: cover; opacity: 0; transition: opacity 1s var(--ease);
}
[data-mosaico] .mosaic__swap.is-on { opacity: 1; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.contact__lead { margin: 16px 0 0; color: var(--muted-dark); font-size: 16px; max-width: 340px; }
.contact__links { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.contact__links a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #e9ecea; transition: color .2s; }
.contact__links a:hover { color: #fff; }
.contact__links svg { width: 18px; height: 18px; color: var(--muted-dark); }
.contact__links svg { color: #fff !important; }
.form .btn svg { width: 18px; height: 18px; }
.field input::placeholder, .field textarea::placeholder { color: #6f7572; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: #fff;
  background: #222525; border: 1px solid #3a3f3d; border-radius: 10px;
  padding: 12px 14px; min-height: 46px; transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a8a5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #8a908d; background: #262a29; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d2675e; }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { margin: 0; font-size: 14px; color: var(--muted-dark); }

/* ---------- Rodapé ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 0 56px; flex-wrap: wrap; }
.footer__logo { height: 28px; }
.footer__meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 14px; }
.social {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), color .2s;
}
.social:hover { transform: translateY(-2px); color: var(--accent); }
.social svg { width: 22px; height: 22px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(9,10,10,.96);
  display: grid; grid-template-rows: auto 1fr auto; color: #fff;
  animation: fade .3s ease;
}
.lightbox[hidden], .video-modal[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 15px; }
.lightbox__top span { color: var(--muted-dark); margin-left: 8px; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; min-height: 0; overflow: hidden; }
.lightbox__stage img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 144px); max-height: 100%;
  object-fit: contain; border-radius: 8px; transition: opacity .25s;
}
.lightbox__stage img.is-loading { opacity: .3; }
.lightbox__stage img[hidden], .lightbox__stage video[hidden] { display: none; }
.lightbox__stage video {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 144px); max-height: 100%;
  border-radius: 8px; background: #000;
}
.lb-thumb.is-video { position: relative; }
.lb-thumb.is-video::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.lb-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background-color .2s;
}
.lb-arrow:hover { background: rgba(255,255,255,.18); }
.lb-arrow--prev { left: 16px; }
.lb-arrow--next { right: 16px; }
.lightbox__thumbs { display: flex; gap: 6px; padding: 14px 20px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.lb-thumb { flex: 0 0 64px; height: 44px; border-radius: 6px; overflow: hidden; opacity: .4; transition: opacity .2s; border: 1px solid transparent; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb.is-active { opacity: 1; border-color: #fff; }

/* ---------- Vídeo ---------- */
.video-modal { position: fixed; inset: 0; z-index: 210; background: rgba(9,10,10,.94); display: grid; place-items: center; padding: 60px 20px; animation: fade .3s ease; }
.video-modal__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__frame.is-vertical { width: auto; height: min(84vh, 900px); max-width: 100%; aspect-ratio: 9 / 16; }

/* ---------- Celulares de stories (eleição e retiro): passam as capas e abrem o visualizador ---------- */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone {
  position: relative; width: min(30%, 210px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  background: #000; border: 5px solid #262a29; box-shadow: 0 24px 50px rgba(0,0,0,.45);
  cursor: pointer;
}
.phone:nth-child(2) { transform: translateY(-18px); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.phone img.is-on { opacity: 1; }
.phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 75%, rgba(0,0,0,.35)); }
.phone__bars { position: absolute; z-index: 2; top: 9px; left: 9px; right: 9px; display: flex; gap: 4px; }
.phone__bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.phone__bar i { display: block; height: 100%; width: 0; background: #fff; }
.phone__bar.is-done i { width: 100%; }
.phone__bar.is-on i { animation: story-fill var(--story, 3.6s) linear forwards; }
.phone.is-paused .phone__bar.is-on i { animation-play-state: paused; }
@keyframes story-fill { to { width: 100%; } }
.phone__who { position: absolute; z-index: 2; top: 20px; left: 10px; right: 10px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; }
.phone__who img { position: static; width: 24px; height: 24px; border-radius: 50%; opacity: 1; border: 1.5px solid #fff; flex-shrink: 0; object-fit: cover; }
.phone__who small { font-weight: 400; opacity: .75; }
.phones--real .phone { padding: 0; text-align: left; color: #fff; transition: transform .4s var(--ease), border-color .3s; }
.phones--real .phone:hover { border-color: #3d4341; transform: translateY(-4px); }
.phones--real .phone:nth-child(2):hover { transform: translateY(-22px); }
@media (max-width: 760px) {
  .phones { gap: 10px; }
  .phone { border-width: 3px; border-radius: 18px; }
  .phone__who { top: 16px; left: 7px; right: 7px; gap: 5px; font-size: 9.5px; }
  .phone__who img { width: 18px; height: 18px; }
  .phone__who small { display: none; }
  .phone:nth-child(2) { transform: translateY(-10px); }
}

/* ---------- Visualizador de stories (projetos e eleição) ---------- */
.sv { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; background: rgba(8,9,9,.94); animation: fade .3s ease; padding: 16px; }
.sv[hidden] { display: none; }
.sv__phone {
  position: relative; height: min(88vh, 860px); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.sv__phone video, .sv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv__phone video[hidden], .sv__img[hidden] { display: none; }
.sv__bars { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.sv__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv__bars i { display: block; height: 100%; width: 0; background: #fff; }
.sv__head { position: absolute; z-index: 3; top: 22px; left: 12px; right: 8px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sv__head strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv__head small { opacity: .75; margin-right: auto; font-variant-numeric: tabular-nums; }
.sv__avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1.5px solid #fff; }
.sv__avatar[hidden] { display: none; }
.sv__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sv__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.sv__icon:hover { background: rgba(255,255,255,.12); }
.sv__icon svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.sv__icon .i-off { display: none; }
.sv__icon.is-muted .i-on { display: none; }
.sv__icon.is-muted .i-off { display: block; }
.sv__tap { position: absolute; z-index: 2; top: 70px; bottom: 0; width: 35%; }
.sv__tap--prev { left: 0; }
.sv__tap--next { right: 0; width: 65%; }
.sv__paused {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  padding: 8px 16px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.sv.is-paused .sv__paused { opacity: 1; }
@media (max-width: 760px) {
  .sv { padding: 0; }
  .sv__phone { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
}
.video-modal__close { position: absolute; top: 16px; right: 20px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

body.no-scroll { overflow: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .tile { grid-column: span 6 !important; }
  .tile[data-size] { --h: 260px; }
  .tile.is-wide { grid-column: span 12 !important; --h: 340px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  .nav__row { grid-template-columns: 1fr auto; height: 54px; }
  .pill { display: none; }
  .nav__logo .logo { height: 26px; }
  .nav__links { justify-content: flex-start; gap: 22px; padding: 0 var(--gutter); height: 38px; }
  main { padding-top: 12px; }
  .stack > * + * { margin-top: 14px; }
  .card { border-radius: 20px; box-shadow: 6px 10px 22px #cdd0ce, -6px -6px 16px #ffffff; }
  .sec { padding: 32px 18px 28px; }
  .sec__head { margin-bottom: 22px; }

  .hero { min-height: 560px; height: 82vh; max-height: 680px; padding: 20px 18px 18px; }
  .hero__top { font-size: 13px; }
  .hero__body { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__sub { font-size: 14px; margin-top: 14px; }
  .btn { height: 42px; padding: 0 18px; }
  .timeline { margin-top: 22px; }
  .filmstrip { height: 38px; }
  .hero:not(.is-video) .filmstrip__frame:nth-child(n+7) { display: none; }
  .filmstrip__ticks { font-size: 11px; }
  .filmstrip__ticks span:nth-child(2), .filmstrip__ticks span:nth-child(4) { display: none; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 18px 16px; display: flex; align-items: baseline; justify-content: space-between; text-align: left; gap: 12px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); }
  .stat__label { margin: 0; text-align: right; }

  .marquee { padding: 20px 0; }
  .marquee__item { gap: 36px; padding-right: 36px; }
  .marquee__item.is-logo { padding-right: 56px; height: 64px; }
  .marquee__item.is-logo img { height: calc(var(--logo-h, 56px) * .75); }

  .filters { width: 100%; justify-content: space-between; }
  .filter { padding: 7px 11px; font-size: 13px; }
  .grid { gap: 14px; }
  .tile, .tile.is-wide { grid-column: span 12 !important; }
  .tile[data-size], .tile.is-wide { --h: 230px; }
  .tile__body { padding: 14px 14px 18px; }

  .films { grid-template-columns: 1fr; }
  .flow { --fh: 200px; --gap: 12px; }
  .flow__track { --gap: 12px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__text p { font-size: 16px; }
  .mosaic { columns: 2; column-gap: 10px; }
  .mosaic__item { margin-bottom: 10px; padding: 4px; border-radius: 12px; }
  .mosaic__item img { border-radius: 9px; }
  [data-mosaico] .mosaic__swap { top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact__links { margin-top: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer { padding: 32px 0 40px; }
  .social { width: 44px; height: 44px; }

  .lightbox__stage img, .lightbox__stage video { max-width: calc(100% - 16px); }
  .lb-arrow { width: 40px; height: 40px; background: rgba(0,0,0,.45); }
  .lb-arrow--prev { left: 10px; }
  .lb-arrow--next { right: 10px; }
}

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