/* ==========================================================
   BY. LUCAS GONÇALVES — Portfólio
   Identidade: mesma da proposta comercial (Nexa + serif itálica,
   preto #0c0c0e, vermelho #E1241C, teal #1f6b7d, granulação)
   ========================================================== */

@font-face { font-family: 'Nexa'; font-weight: 300; font-display: swap; src: url('../fonts/nexa-light.woff2') format('woff2'); }
@font-face { font-family: 'Nexa'; font-weight: 400; font-display: swap; src: url('../fonts/nexa-regular.woff2') format('woff2'); }
@font-face { font-family: 'Nexa'; font-weight: 700; font-display: swap; src: url('../fonts/nexa-bold.woff2') format('woff2'); }
@font-face { font-family: 'Nexa'; font-weight: 800; font-display: swap; src: url('../fonts/nexa-heavy.woff2') format('woff2'); }
@font-face { font-family: 'Nexa'; font-weight: 900; font-display: swap; src: url('../fonts/nexa-black.woff2') format('woff2'); }
@font-face { font-family: 'Pagella'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/serif-italic.woff2') format('woff2'); }

:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --card: #17171b;
  --ink: #ffffff;
  --muted: #c6c6cb;
  --dim: #8c8c93;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --red: #e1241c;
  --red-hot: #ff3b2f;
  --teal: #1f6b7d;
  --teal-lt: #6cc3d5;

  --sans: 'Nexa', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Pagella', 'Palatino Linotype', Palatino, Georgia, serif;

  --pad: clamp(16px, 4.2vw, 64px);
  --max: 1440px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong, b { font-weight: 700; color: var(--ink); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 16px; }

/* granulação global (igual à proposta) */
.grain {
  position: fixed; inset: -10%; z-index: 90; pointer-events: none;
  background-image: url('../img/grain.png'); background-size: 220px 220px;
  opacity: .55; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (hover: none) { .grain { animation: none; } }
.is-off .marquee, .is-off .scroll-cue i { animation-play-state: paused; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- tipografia utilitária ---------- */
.kicker { font-weight: 700; font-size: 12px; letter-spacing: .42em; text-transform: uppercase; color: var(--red-hot); }
.caps { font-weight: 400; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #a4a4ab; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -12px rgba(225, 36, 28, .8); }
.btn-red:hover { background: var(--red-hot); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: #fff; background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-play .dot {
  width: 30px; height: 30px; margin-left: -12px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center;
}
.btn-play .dot svg { width: 12px; height: 12px; margin-left: 2px; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(12, 12, 14, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.site-header:has(:focus-visible) { transform: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .b { font-weight: 300; font-size: 10px; letter-spacing: .3em; color: var(--muted); margin-bottom: 4px; }
.brand .n { font-weight: 900; font-size: 17px; letter-spacing: .01em; line-height: .98; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a.link { font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); position: relative; padding: 6px 0; transition: color .3s; }
.nav a.link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a.link:hover, .nav a.link.active { color: #fff; }
.nav a.link:hover::after, .nav a.link.active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { --h: 42px; padding: 0 20px; font-size: 11.5px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 96px var(--pad) 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  background-image: radial-gradient(120% 60% at 50% 115%, rgba(225, 36, 28, .55), transparent 60%);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.m { font-weight: 900; font-size: clamp(36px, 11vw, 64px); line-height: 1.12; display: flex; align-items: baseline; gap: 14px; }
.mobile-menu a.m small { font-weight: 300; font-size: 12px; letter-spacing: .3em; color: var(--red-hot); }
.mobile-menu .foot { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }
body.menu-open { overflow: hidden; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 24px) 0 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 70% at 30% 118%, rgba(225, 36, 28, .95), rgba(225, 36, 28, 0) 62%),
    radial-gradient(60% 55% at 85% -12%, rgba(31, 107, 125, .75), rgba(31, 107, 125, 0) 66%),
    #0a0a0c;
}
.hero-outline {
  position: absolute; z-index: -1; right: -2vw; top: 50%; transform: translateY(-50%);
  font-weight: 900; font-size: clamp(120px, 21vw, 360px); line-height: .82; letter-spacing: -.02em; text-align: left;
  color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .17);
  user-select: none; pointer-events: none; white-space: nowrap;
}
@media (min-width: 981px) {
  .hero-outline { top: auto; bottom: -.2em; right: auto; left: -.04em; transform: none; font-size: clamp(160px, 19vw, 300px); -webkit-text-stroke-color: rgba(255, 255, 255, .13); }
  .hero-outline br { display: none; }
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .kicker { margin-bottom: 26px; display: block; }
.hero h1 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6.2vw, 88px); line-height: .9; letter-spacing: -.015em;
}
.hero h1 .line { display: block; overflow: hidden; padding: .14em 0 .04em; margin-top: -.14em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1.1em; line-height: .8; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { margin-top: 26px; max-width: 30em; font-size: clamp(16px, 1.35vw, 20px); color: var(--muted); opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 1s .65s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-meta { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; pointer-events: none; }
.hero-meta a { pointer-events: auto; }
.hero-meta .wrap { display: flex; justify-content: space-between; align-items: flex-end; grid-template-columns: none; }
.hero-meta .caps { color: #d2d2d7; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(#fff, transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* colunas de reels no hero (como na 1ª versão), agora navegáveis: arrastar, inércia, clicar */
.hero-reels { position: relative; }
.reel-wall {
  position: relative; height: min(78svh, 760px); transform: rotate(-6deg) translateX(4%);
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.reel-wall.on-tile { cursor: none; }
.reel-wall.grabbing, .reel-wall.grabbing * { cursor: grabbing; }
.reel-cols { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; opacity: 0; animation: fadeIn 1.4s .3s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.reel-col { overflow: hidden; min-width: 0; }
.reel-track { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.reel-tile img { -webkit-user-drag: none; }
/* as imagens não recebem o mouse (o card recebe): evita ícones de busca por imagem do navegador sobre as thumbs */
.work img, .reel-tile img, .ai-player img { pointer-events: none; }
.reel-wall.on-tile .reel-tile:hover { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.wall-hint {
  position: absolute; z-index: 3; left: 50%; top: 0; transform: translateX(-50%); margin: 0;
  display: inline-flex; align-items: center; gap: 10px; color: #d2d2d7; font-size: 10.5px; pointer-events: none;
  padding: 8px 14px; border-radius: 999px; background: rgba(12, 12, 14, .55); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap;
  opacity: 0; animation: fadeIn 1s 1.6s ease forwards;
}
@media (max-width: 1200px) and (min-width: 981px) { .wall-hint { display: none; } }
.reel-tile { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid rgba(255, 255, 255, .08); }
.reel-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transition: transform .8s var(--ease); }
.reel-tile:hover img { transform: scale(1.05); }
.reel-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.reel-tile { container-type: inline-size; }
.reel-tile span { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 160px) { .reel-tile span { font-size: 8.5px; letter-spacing: .12em; left: 8px; right: 8px; bottom: 7px; } }

/* ==========================================================
   MARQUEE DE CLIENTES
   ========================================================== */
.clients-strip { border-block: 1px solid var(--line); padding: 30px 0; overflow: hidden; position: relative; background: var(--bg); }
.clients-strip .label { text-align: center; margin-bottom: 22px; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); }
.marquee img { height: 34px; width: auto; opacity: .62; transition: opacity .3s; }
.marquee img.tall { height: 46px; }
.marquee img:hover { opacity: 1; }
.marquee .txt { font-weight: 900; font-size: 22px; letter-spacing: .02em; color: rgba(255, 255, 255, .55); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients-strip::before, .clients-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.clients-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.clients-strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ==========================================================
   SEÇÕES — cabeçalho no estilo da proposta
   ========================================================== */
.section { position: relative; padding: clamp(88px, 11vw, 160px) 0; }
.sec-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sec-title { font-weight: 900; font-size: clamp(42px, 6.4vw, 96px); line-height: .94; letter-spacing: -.015em; }
.sec-en { margin-top: 12px; font-size: 12.5px; letter-spacing: .34em; color: #b4b4ba; }
.sec-sub { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 24px); color: #d7d7db; }
.sec-num { display: flex; align-items: center; gap: 18px; flex: none; }
.sec-num .bar { width: 5px; height: clamp(44px, 5vw, 64px); background: var(--red); }
.sec-num .num { font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: 1; min-width: 1.6em; text-align: right; }
.sec-rule { height: 1px; background: var(--line); margin: clamp(32px, 4vw, 52px) 0 clamp(36px, 4.6vw, 60px); }
.accent-corner { position: absolute; top: 0; right: 0; width: 5px; height: 240px; background: linear-gradient(180deg, var(--red), rgba(225, 36, 28, 0)); }

/* ==========================================================
   TRABALHOS
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 400; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: all .3s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.chip sup { font-size: 10px; letter-spacing: .05em; color: var(--dim); top: 0; }
.chip:hover { color: #fff; border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #0c0c0e; border-color: #fff; font-weight: 700; }
.chip[aria-pressed="true"] sup { color: var(--red); }

.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); grid-auto-flow: dense; }
.work {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--card); isolation: isolate; text-align: left; display: block; width: 100%;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .6s var(--ease), opacity .5s;
}
.work.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (min-width: 721px) {
  .works-grid .work:not(.featured) { aspect-ratio: 4 / 5; }
  .works-grid .work:not(.featured) .media:not(.wide) img { object-position: 50% 30%; }
}
.work .media, .work .media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.work .media img { object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.work .media.wide { background: #050506; }
.work .media.wide .blur { object-fit: cover; filter: blur(22px) saturate(1.2) brightness(.55); transform: scale(1.25); }
.work .media.wide .fit {
  top: 50%; bottom: auto; height: auto; aspect-ratio: 16 / 9; translate: 0 -50%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.work::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 26%, transparent 48%, rgba(0, 0, 0, .86) 100%); transition: opacity .5s; }
.work:hover .media img:not(.blur) { transform: scale(1.045); }
.work .top { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-weight: 700; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(12, 12, 14, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag.ia { color: var(--teal-lt); border-color: rgba(108, 195, 213, .4); }
.views { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: rgba(12, 12, 14, .55); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; flex: none; }
.views svg { color: var(--red-hot); }
.views svg { width: 13px; height: 13px; }
.work .info { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; }
.work .client { font-weight: 300; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #e3e3e6; }
.work .title { margin-top: 6px; font-weight: 900; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.05; }
.work.featured .title { font-size: clamp(26px, 3.2vw, 48px); }
.work.featured .client { font-size: 12px; }
.work .blurb { margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: 14px; line-height: 1.45; color: var(--muted); transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.work.featured .blurb { font-size: 16px; max-width: 30em; }
.work:hover .blurb, .work:focus-visible .blurb { max-height: 6em; opacity: 1; margin-top: 10px; }
.play-dot {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(225, 36, 28, .92);
  transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
  box-shadow: 0 10px 40px -8px rgba(225, 36, 28, .9);
}
.play-dot svg { width: 20px; height: 20px; margin-left: 3px; }
.work.featured .play-dot { width: 92px; height: 92px; margin: -46px 0 0 -46px; transform: scale(1); opacity: 1; }
.work:hover .play-dot, .work:focus-visible .play-dot { transform: scale(1); opacity: 1; }
.work.hidden { display: none; }
.work.enter { animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.works-foot { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.works-foot p { color: var(--dim); font-size: 15px; }

/* ==========================================================
   FILMES COM IA
   ========================================================== */
.ai {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(31, 107, 125, .55), transparent 65%),
    radial-gradient(60% 50% at 0% 100%, rgba(31, 107, 125, .28), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.ai .sec-num .bar { background: var(--teal-lt); }
.ai .kicker { color: var(--teal-lt); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ai-player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: pointer; display: block; width: 100%;
  border: 1px solid rgba(108, 195, 213, .25); background: #000;
}
.ai-player img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ai-player:hover img { transform: scale(1.04); }
.ai-player::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8)); }
.ai-player .play-dot { opacity: 1; transform: scale(1); width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
.ai-player:hover .play-dot { background: var(--red); border-color: var(--red); }
.ai-player .cap { position: absolute; z-index: 2; left: 20px; bottom: 18px; right: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ai-player .cap b { font-weight: 900; font-size: clamp(20px, 2.2vw, 30px); line-height: 1; }
.ai-text p.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.ai-list { margin-top: 28px; border-top: 1px solid var(--line); }
.ai-list li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; color: #e9e9ec; }
.ai-list li span { font-weight: 900; font-size: 12px; color: var(--teal-lt); letter-spacing: .1em; }
.ai-text .btn { margin-top: 30px; }
.ai-row { margin-top: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.ai-row .work { aspect-ratio: 4 / 5; }

/* ==========================================================
   MODALIDADES (lista editorial)
   ========================================================== */
.services { margin-top: -1px; }
#modalidades .sec-rule { margin-bottom: 0; }
.svc {
  position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.svc::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc:hover::before { transform: scaleX(1); }
.svc .n { font-weight: 900; font-size: 14px; color: var(--red-hot); letter-spacing: .1em; }
.svc h3 { font-weight: 900; font-size: clamp(24px, 2.8vw, 40px); line-height: 1; letter-spacing: -.01em; transition: transform .5s var(--ease); }
.svc:hover h3 { transform: translateX(10px); }
.svc p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ==========================================================
   ENTREGAS (formatos)
   ========================================================== */
.deliver-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.dcard {
  position: relative; padding: clamp(24px, 2.4vw, 34px); border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  min-height: 230px; display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease);
}
.dcard:hover { border-color: rgba(225, 36, 28, .55); transform: translateY(-4px); }
.dcard::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(225, 36, 28, .28), transparent 65%); opacity: 0; transition: opacity .5s; }
.dcard:hover::after { opacity: 1; }
.dcard .frame { height: 56px; display: flex; align-items: flex-end; gap: 8px; }
.dcard .frame i { display: block; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 4px; position: relative; }
.dcard .frame i.r169 { width: 88px; height: 49.5px; }
.dcard .frame i.r916 { width: 31.5px; height: 56px; }
.dcard .frame i.r45 { width: 44.8px; height: 56px; }
.dcard .frame i.r11 { width: 50px; height: 50px; }
.dcard .frame i.red { border-color: var(--red-hot); }
.dcard .frame i.fill { background: rgba(255, 255, 255, .12); }
.dcard .frame .wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.dcard .frame .wave b { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .7); }
.dcard h3 { font-weight: 900; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.05; }
.dcard p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ==========================================================
   SOBRE
   ========================================================== */
.about { background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5.5vw, 96px); align-items: center; }
/* foto: sem moldura, as bordas se dissolvem no fundo e a luz vermelha continua na página */
.about-photo { position: relative; margin: 0; isolation: isolate; }
.about-photo::before {
  content: ''; position: absolute; z-index: -1; inset: 6% -14% 0 -14%;
  background: radial-gradient(52% 48% at 50% 46%, rgba(225, 36, 28, .42), rgba(225, 36, 28, 0) 72%);
  filter: blur(18px); pointer-events: none;
}
.about-photo .ph {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 66%, transparent 100%), linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 66%, transparent 100%), linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.02); transition: transform 1.8s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
.about-photo figcaption {
  position: absolute; left: 7%; bottom: 3%; z-index: 2;
  display: flex; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 3px solid var(--red);
}
.about-photo .nm { font-weight: 900; font-size: clamp(22px, 2.1vw, 30px); line-height: 1; }
.about-photo .rl { color: #e3e3e6; font-size: 11px; }
.about-side { display: flex; flex-direction: column; gap: clamp(32px, 3.4vw, 48px); }
.about-text p { font-size: clamp(17px, 1.45vw, 21px); color: var(--muted); line-height: 1.6; }
.about-text p + p { margin-top: 18px; }
.about-sign { margin-top: 34px; display: flex; align-items: center; gap: 18px; }
.about-sign .plus { font-weight: 900; font-size: 30px; line-height: 1; }
.about-sign .plus em { font-style: normal; color: var(--red); }
.about-sign .mh { font-weight: 700; font-size: 9px; letter-spacing: .6em; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.stat { padding: clamp(22px, 2.4vw, 32px); border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat .sv { font-weight: 900; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -.02em; }
.stat .sv sup { font-size: .5em; color: var(--red-hot); top: -.75em; margin-right: 2px; }
.stat .sl { margin-top: 10px; }

/* ==========================================================
   CONTATO (fechamento, igual à última página da proposta)
   ========================================================== */
.contact {
  position: relative; text-align: center; overflow: hidden; isolation: isolate;
  padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 9vw, 120px);
  background:
    radial-gradient(95% 70% at 50% 116%, rgba(225, 36, 28, .98), rgba(225, 36, 28, 0) 62%),
    radial-gradient(75% 55% at 50% -16%, rgba(31, 107, 125, .75), rgba(31, 107, 125, 0) 66%),
    #0a0a0c;
}
.contact h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 9vw, 150px); line-height: .9; letter-spacing: -.015em; }
.contact .lead { margin: 26px auto 0; max-width: 34em; color: #e3e3e6; font-size: clamp(16px, 1.4vw, 20px); }
.contact-actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-actions .btn { --h: 58px; padding: 0 30px; }
.contact-cards { margin: clamp(56px, 6vw, 84px) auto 0; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; text-align: left; }
.ccard { display: block; padding: 22px 24px; border-radius: 16px; background: rgba(12, 12, 14, .5); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .4s, transform .5s var(--ease); }
.ccard:hover { border-color: #fff; transform: translateY(-3px); }
.ccard .caps { color: #d2d2d7; }
.ccard b { display: block; margin-top: 8px; font-weight: 700; font-size: clamp(14px, 1.2vw, 16px); overflow-wrap: anywhere; }
.closing-logo { margin-top: clamp(64px, 7vw, 96px); display: inline-flex; flex-direction: column; align-items: center; }
.closing-logo .row1 { font-weight: 900; font-size: 30px; line-height: 1; }
.closing-logo .row1 em { font-style: normal; color: var(--red); }
.closing-logo .mh { font-weight: 700; font-size: 9px; letter-spacing: .7em; margin-top: 6px; padding-left: .7em; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 34px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.site-footer .caps { font-size: 10.5px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.site-footer nav a:hover { color: #fff; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff;
  box-shadow: 0 14px 40px -10px rgba(225, 36, 28, .9);
  transform: translateY(120px); transition: transform .6s var(--ease), background-color .3s;
}
.wa-float.show { transform: none; }
.wa-float.show.away { transform: translateY(120px); }
body.menu-open .wa-float { transform: translateY(120px); }
.wa-float:hover { background: var(--red-hot); }
.wa-float svg { width: 26px; height: 26px; }

/* ==========================================================
   PLAYER (modal)
   ========================================================== */
.player-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(6, 6, 8, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  padding: 72px var(--pad) 32px;
}
.player-modal.open { opacity: 1; visibility: visible; }
.pm-inner { display: grid; grid-template-columns: auto minmax(240px, 360px); gap: clamp(24px, 3vw, 48px); align-items: center; max-width: 100%; }
.pm-inner.h { grid-template-columns: minmax(0, auto); justify-items: center; }
.pm-stage {
  position: relative; overflow: hidden; border-radius: 16px; background: #000;
  container-type: size;
  box-shadow: 0 40px 120px -30px rgba(225, 36, 28, .45);
  transform: scale(.96); transition: transform .6s var(--ease);
}
.player-modal.open .pm-stage { transform: none; }
.pm-stage.v { height: min(82svh, 860px, calc((100vw - 2 * var(--pad)) * 16 / 9)); aspect-ratio: 9 / 16; }
.pm-stage.h { width: min(1180px, calc(100vw - 2 * var(--pad) - 120px), calc((100svh - 290px) * 16 / 9)); aspect-ratio: 16 / 9; }
.pm-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.pm-stage .poster.ext { filter: brightness(.7); }
.pm-ext { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 28px 18px; text-align: center; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .75)); }
.pm-ext .btn svg { width: 14px; height: 14px; }
.pm-ext .caps { color: #d2d2d7; font-size: 10.5px; }
.pm-stage .spin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* recorte do player oficial do Instagram: some cabeçalho/rodapé, sobra só o vídeo */
.pm-stage iframe { position: absolute; border: 0; opacity: 0; transition: opacity .5s; background: transparent; }
.pm-stage iframe.ready { opacity: 1; }
.pm-stage.v iframe { width: 80cqh; height: calc(100cqh + 54px + 420px); left: -11.875cqh; top: -54px; }
.pm-stage.h iframe { width: 100cqw; height: calc(56.25cqw + 54px + 420px); left: 0; top: -54px; }
.pm-info .client { font-weight: 300; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.pm-info h3 { margin-top: 10px; font-weight: 900; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.pm-info .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-info p { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.pm-info .ig { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--red); padding-bottom: 6px; }
.pm-info .ig svg { width: 14px; height: 14px; }
.pm-inner.h .pm-info { text-align: center; max-width: 720px; }
.pm-inner.h { gap: 18px; }
.pm-inner.h .pm-info h3 { font-size: clamp(22px, 2.2vw, 32px); margin-top: 6px; }
.pm-inner.h .pm-info p { display: none; }
.pm-inner.h .pm-info .meta { margin-top: 10px; }
.pm-inner.h .pm-info .ig { margin-top: 14px; }
.pm-inner.h .pm-info .meta { justify-content: center; }
.pm-close, .pm-nav {
  position: absolute; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); transition: background-color .3s, border-color .3s;
}
.pm-close:hover, .pm-nav:hover { background: var(--red); border-color: var(--red); }
.pm-close { top: 18px; right: 18px; }
.pm-close svg, .pm-nav svg { width: 20px; height: 20px; }
.pm-nav { top: 50%; margin-top: -26px; }
.pm-nav.prev { left: 18px; } .pm-nav.next { right: 18px; }
.pm-nav[hidden] { display: none; }
.pm-count { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); }
body.modal-open { overflow: hidden; }

/* cursor "PLAY" (desktop) */
.cursor {
  position: fixed; z-index: 110; left: 0; top: 0; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; pointer-events: none;
  font-weight: 900; font-size: 11px; letter-spacing: .24em; padding-left: .24em;
  transform: scale(0); transition: transform .35s var(--ease);
  mix-blend-mode: normal;
}
.cursor.on { transform: scale(1); }

/* ==========================================================
   REVEAL
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1180px) {
  .svc { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav .link, .nav .btn { display: none; }
  .burger { display: block; }
  .hero { padding-bottom: 120px; align-items: flex-start; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 4vh; }
  .hero-copy .kicker { letter-spacing: .3em; line-height: 1.7; }
  .hero-outline { top: auto; bottom: 8%; transform: none; font-size: 34vw; right: -6vw; }
  .reel-wall {
    height: auto; transform: none; margin: 8px calc(-1 * var(--pad)) 0; padding: 2px 0;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: auto; touch-action: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .reel-wall::-webkit-scrollbar { display: none; }
  .reel-cols { display: block; height: auto; width: max-content; padding: 0 var(--pad); }
  .reel-col { overflow: visible; }
  .reel-track { flex-direction: row; width: max-content; transform: none !important; }
  .reel-track .reel-tile { width: 128px; flex: none; }
  .wall-hint { position: relative; left: auto; top: auto; transform: none; display: table; margin: 14px auto 0; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work.featured { grid-row: span 1; }
  .ai-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(100%, 460px); margin: 0 auto; }
  .deliver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .contact-cards .ccard[data-mail] { grid-column: 1 / -1; }
  .pm-inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .pm-info { text-align: center; max-width: 520px; }
  .pm-info .meta { justify-content: center; }
  .pm-info p { display: none; }
  .pm-stage.v { height: min(68svh, calc((100vw - 2 * var(--pad)) * 16 / 9)); }
  .pm-stage.h { width: min(calc(100vw - 2 * var(--pad)), calc((100svh - 300px) * 16 / 9)); }
  .pm-nav { top: auto; bottom: 18px; margin: 0; }
  .pm-nav.prev { left: calc(50% - 64px); } .pm-nav.next { right: calc(50% - 64px); }
  .player-modal { padding-bottom: 88px; }
  .cursor { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec-head { flex-direction: column-reverse; gap: 14px; }
  .sec-title { font-size: clamp(32px, 11vw, 42px); }
  .sec-num { gap: 12px; }
  .sec-num .num { font-size: 26px; min-width: 0; }
  .sec-num .bar { height: 26px; width: 3px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work.featured { grid-row: span 1; aspect-ratio: 4 / 5; }
  .work .info { left: 12px; right: 12px; bottom: 12px; }
  .work .top { top: 10px; left: 10px; right: 10px; }
  .tag { font-size: 8.5px; padding: 5px 8px; letter-spacing: .18em; }
  .views { font-size: 10px; padding: 5px 8px; }
  .work .blurb { display: none; }
  .work.featured .blurb { display: block; max-height: none; opacity: 1; margin-top: 8px; font-size: 14px; }
  .play-dot { width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 1; transform: scale(1); background: rgba(12, 12, 14, .35); border: 1px solid rgba(255, 255, 255, .55); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .play-dot svg { width: 13px; height: 13px; }
  .work.featured .play-dot { background: rgba(225, 36, 28, .92); border-color: transparent; box-shadow: 0 10px 40px -8px rgba(225, 36, 28, .9); }
  .work.featured .play-dot { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .ai-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ai-row .work { aspect-ratio: 9 / 16; }
  .ai-row .work .title { font-size: 13px; }
  .ai-row .work .client { font-size: 8.5px; letter-spacing: .16em; }
  .ai-row .work .tag { display: none; }
  .ai-row .play-dot { top: 40%; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .ai-row .play-dot svg { width: 13px; height: 13px; }
  .ai-player .play-dot { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .ai-player .cap { left: 14px; right: 14px; bottom: 12px; }
  .ai-player .cap b { font-size: 18px; }
  .svc { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
    .svc .n { font-size: 12px; }
  .deliver-grid { grid-template-columns: 1fr; }
  .dcard { min-height: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-meta .scroll-cue { display: none; }
  .pm-stage.v { height: min(calc(100svh - 340px), calc((100vw - 2 * var(--pad)) * 16 / 9)); }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (hover: none) {
  .cursor { display: none; }
}

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