/* =========================================================
   Paulo Dutra | Woop Design Estúdio — estilos do site
   Redesign premium — visual cinematográfico, bold, impactante.
   Animações guiadas pela rolagem via variável --p (0 → 1).
   ========================================================= */

:root {
  --bg: #06100b;
  --bg-2: #0b1810;
  --bg-3: #0f1d13;
  --surface: #132018;
  --surface-2: #192a1f;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #edf2ee;
  --muted: #7a8c7f;
  --accent: #22c55e;
  --accent-dim: rgba(34, 197, 94, .12);
  --accent-glow: rgba(34, 197, 94, .4);
  --serif: "Bebas Neue", Georgia, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --gutter: clamp(20px, 5vw, 60px);
  --max: 1320px;
  --radius: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { overflow-x: hidden; } /* overflow-x aqui, não no body — evita quebrar position:fixed no iOS */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 56px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.h1 { font: 400 clamp(48px, 7vw, 110px)/.9 var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.h2 { font: 400 clamp(36px, 5vw, 72px)/1.0 var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #c8c4bb; margin-top: 24px; }
.prose { margin-top: 28px; color: #b8b4ac; line-height: 1.7; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font: 400 clamp(28px, 3vw, 42px)/1.1 var(--serif); color: var(--text); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; color: var(--text); margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; } .prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--accent); font: italic 400 24px/1.35 var(--serif); color: var(--text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 38px;
  padding: 16px 28px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255,255,255,.1); opacity: 0; transition: opacity .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -15px var(--accent-glow); }
.btn:hover::after { opacity: 1; }
.btn--ghost {
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  margin-top: 0; text-transform: none; letter-spacing: .01em; font-weight: 600;
}
.btn--ghost:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-dim); }
.btn--lg { padding: 20px 36px; font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s, gap .3s; }
.link:hover { color: var(--text); gap: 12px; }

/* ---------- Revelar ao entrar na tela ---------- */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Cabeçalho ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px var(--gutter); transition: background .5s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(4, 12, 7, .96); padding-block: 14px; border-color: var(--line); }
.hdr__logo { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.hdr__mark { width: 30px; height: 30px; margin-right: 2px; transition: transform .7s var(--ease); }
.hdr__logo:hover .hdr__mark { transform: rotate(-12deg) scale(1.08); }
.ftr__logo { width: 160px; height: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .7; transition: opacity .3s; }
.ftr__logo:hover { opacity: 1; }
.hdr__logo img { height: 32px; width: auto; }
.hdr__name { font-weight: 800; letter-spacing: .04em; font-size: 13px; text-transform: uppercase; }
.hdr__sep { color: rgba(255,255,255,.2); }
.hdr__sub { color: var(--muted); font-weight: 500; font-size: 12px; }
.hdr__nav { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hdr__nav a { color: rgba(255,255,255,.55); transition: color .25s; }
.hdr__nav a:hover { color: #fff; }
/* Contato: sem caixa, só texto */
.hdr__cta { color: #fff !important; transition: color .3s !important; }
.hdr__cta:hover { color: var(--accent) !important; }
.hdr__burger { display: none; width: 40px; height: 40px; position: relative; }
.hdr__burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.hdr__burger span:first-child { top: 14px; } .hdr__burger span:last-child { top: 23px; }
.menu-open .hdr__burger span:first-child,
html.menu-open .hdr__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .hdr__burger span:last-child,
html.menu-open .hdr__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Botão X dentro do nav — só visível no mobile */
.hdr__nav__close {
  display: none;
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer; align-items: center; justify-content: center;
  transition: background .2s;
}
.hdr__nav__close:hover { background: rgba(255,255,255,.18); }

@media (max-width: 860px) {
  .hdr__sub, .hdr__sep { display: none; }
  .hdr__burger { display: flex; align-items: center; justify-content: center; z-index: 102; }
  .hdr__nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 32px;
    z-index: 100;
    background: rgba(4, 12, 7, .98);
    font-size: 18px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .menu-open .hdr__nav,
  html.menu-open .hdr__nav { opacity: 1; visibility: visible; }
  .hdr__nav__close { display: flex; }
  /* Bloqueia scroll enquanto menu mobile está aberto — aplicado no html para não quebrar position:fixed no iOS */
  html.menu-open { overflow: hidden; }
  .hdr__nav a { font-size: 20px; padding: 8px 0; color: rgba(255,255,255,.8); }
  .hdr__nav a:hover { color: #fff; }
  .hdr__cta { margin-top: 8px; text-align: center; color: rgba(255,255,255,.8) !important; }
  .menu-open .hdr__burger,
  html.menu-open .hdr__burger { opacity: 0; pointer-events: none; }
}

/* =========================================================
   1. TOPO — hero cinematográfico com vídeo de fundo
   ========================================================= */
.hero { position: relative; height: 270vh; }
.hero__sticky {
  --k: clamp(0, calc((var(--p, 0) - .07) * 2.2), 1);
  --t: clamp(0, calc(1 - var(--p, 0) * 3.6), 1);
  --c: clamp(0, calc((var(--p, 0) - .4) * 3.8), 1);
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.hero__frame {
  position: absolute; inset: 0; overflow: hidden; background: #000;
  transform: scale(calc(1 - var(--k) * .18)) translateZ(0);
  border-radius: calc(var(--k) * 32px);
  will-change: transform;
  transition: border-radius .1s linear;
}
.hero__video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1.4s;
}
.hero__iframe.is-loaded { opacity: 1; }
.hero__fallback {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 60% at 25% 45%, rgba(34,197,94,.38), transparent 65%),
    radial-gradient(50% 50% at 75% 55%, rgba(10,80,40,.35), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, #0b1a0f, #030d06);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(5%, -4%, 0) rotate(8deg) scale(1.1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.75) 100%),
    linear-gradient(135deg, rgba(34,197,94,.04) 0%, transparent 60%);
  opacity: calc(.5 + var(--t) * .5);
}
/* Grain texture overlay */
.hero__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4; mix-blend-mode: overlay;
}
.hero__copy {
  position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); max-width: 1200px;
  opacity: var(--t); transform: translateY(calc(var(--p, 0) * -24vh)) scale(calc(1 - var(--p, 0) * .1));
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.14); padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
}
.hero__eyebrow span { color: var(--accent); }
.hero__title {
  font: 600 clamp(32px, 5.8vw, 90px)/1.18 var(--serif);
  text-transform: uppercase; letter-spacing: .04em;
  letter-spacing: -.025em; text-wrap: balance;
  background: linear-gradient(170deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__caption {
  position: absolute; z-index: 2; left: 50%; bottom: 12vh; width: min(800px, 88vw); text-align: center;
  font: italic 400 clamp(22px, 2.8vw, 40px)/1.2 var(--serif); text-wrap: balance;
  color: rgba(255,255,255,.82);
  opacity: var(--c); transform: translate(-50%, calc((1 - var(--c)) * 50px));
}
.hero__hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: rgba(255,255,255,.45);
  opacity: var(--t); padding-bottom: 36px;
}
.hero__hint::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 28px; background: rgba(255,255,255,.45);
  transform-origin: top; animation: hint 2s var(--ease) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Barra de serviços abaixo do hero (aparece quando rola) */
.hero__tags {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 0 var(--gutter) 32px;
  opacity: var(--c); transform: translateY(calc((1 - var(--c)) * 20px));
}
.hero__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px); color: rgba(255,255,255,.7);
  transition: border-color .3s, color .3s;
}

/* Mobile: reposiciona hero para evitar sobreposição título × tags */
@media (max-width: 640px) {
  .hero__sticky {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding-bottom: 110px; /* espaço para as tags na base */
  }
  .hero__copy {
    padding: 0 var(--gutter);
    margin-top: auto; margin-bottom: auto;
  }
  .hero__title {
    font-size: clamp(28px, 9.5vw, 52px);
    line-height: 1.15;
    letter-spacing: .02em;
  }
  .hero__tags {
    padding-bottom: 20px;
    gap: 8px;
  }
  .hero__tag { font-size: 10px; padding: 6px 12px; letter-spacing: .12em; }
  .hero__hint { bottom: 116px; }
}

/* =========================================================
   2. APRESENTAÇÃO — layout editorial imponente
   ========================================================= */
.intro {
  display: grid; grid-template-columns: 4fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center;
  padding-block: clamp(100px, 15vw, 200px);
}
.intro__photo { position: relative; }
.intro__photo img, .ph-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg); }
.ph-photo {
  display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 14px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-3));
  border: 1px dashed rgba(255,255,255,.1);
}
/* Decoração de linha na foto */
.intro__photo::before {
  content: ""; position: absolute; top: -20px; left: -20px; right: 40px; bottom: 40px;
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); z-index: -1;
  pointer-events: none;
}
.intro__text { }
.intro__text .eyebrow { color: var(--accent); }
.intro__kicker {
  margin-top: 10px; font: 400 clamp(13px, 1.1vw, 15px)/1.55 var(--sans);
  color: var(--muted); letter-spacing: .02em; text-transform: none;
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__photo { max-width: 380px; } .intro__photo::before { display: none; } }

/* =========================================================
   3. FRASE REVELADA PALAVRA POR PALAVRA — enorme, impactante
   ========================================================= */
.words { height: 260vh; position: relative; background: var(--bg); }
.words::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 50%, rgba(34,197,94,.06), transparent 70%);
}
.words__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); overflow: hidden; }
.words__text {
  max-width: 1250px; font: 400 clamp(40px, 6.5vw, 100px)/1.06 var(--serif);
  letter-spacing: -.02em; text-align: center; text-wrap: balance;
}
.words__text span {
  opacity: clamp(.1, calc(var(--p, 0) * (var(--n) + 6) - var(--i) - 1), 1);
  transition: opacity .12s linear;
  display: inline;
}

/* =========================================================
   4. NÚMEROS — removido do HTML se array vazio
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: clamp(36px, 5vw, 64px) clamp(24px, 3.5vw, 48px); }
.stat__num { font: 400 clamp(72px, 9vw, 136px)/.88 var(--serif); display: flex; align-items: baseline; gap: 10px; }
.stat__num small { font: 700 14px var(--sans); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.stat__label { margin-top: 18px; color: var(--muted); max-width: 26ch; font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* =========================================================
   5. CREDIBILIDADE — letreiro premium
   ========================================================= */
.cred { padding-block: clamp(80px, 10vw, 140px); overflow: hidden; border-top: 1px solid var(--line); }
.cred .eyebrow { justify-content: center; }
.cred .eyebrow::before { display: none; }
.marquee { margin-top: 28px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee.is-paused .marquee__track,
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; padding: 0 clamp(28px, 4.5vw, 64px); white-space: nowrap;
  font: 400 clamp(26px, 3.2vw, 46px)/1 var(--serif); color: rgba(255,255,255,.35);
  border: none; background: none; cursor: pointer;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.marquee__item:hover { color: rgba(255,255,255,.9); transform: scale(1.05); }
.marquee__item::after {
  content: "✦"; font-size: .45em; color: var(--accent); opacity: .5;
  margin-left: clamp(56px, 9vw, 120px);
}
.marquee__item img { height: 40px; width: auto; filter: grayscale(1) brightness(2); opacity: .35; transition: filter .4s, opacity .4s; }
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee__name { font: inherit; color: inherit; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   6. PORTFÓLIO — grid com cards grandes e impactantes
   ========================================================= */
.work { padding-block: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 56px; }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filters button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: all .35s var(--ease);
}
.filters button:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.filters button.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card.is-hidden { display: none; }

/* Card: mídia */
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4/5;
  overflow: hidden; border-radius: var(--radius-lg); background: var(--surface);
  cursor: pointer; text-decoration: none;
}
.card__media img, .card__ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card__ph {
  display: grid; place-items: end start; padding: 28px;
  background: radial-gradient(80% 90% at 20% 10%, hsl(var(--h) 40% 22%), transparent 70%), linear-gradient(135deg, #1e1e24, #0d0d10);
}
.card__ph span { font: italic 400 clamp(22px, 2.5vw, 30px)/1.1 var(--serif); color: rgba(255,255,255,.65); max-width: 12ch; text-align: left; }
.card__media:hover img, .card__media:hover .card__ph { transform: scale(1.05); }
/* Overlay escuro no hover */
.card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card__media:hover::before { opacity: 1; }
.card__play {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  transform: translate(-50%, -50%) scale(.85); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s, background .3s;
  z-index: 2;
}
.card__play .ico { width: 20px; height: 20px; margin-left: 3px; }
.card__media:hover .card__play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.card__media:hover .card__play:hover { background: var(--accent); }

/* Etiqueta de categoria no canto */
.card__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s;
}
.card__media:hover .card__badge { opacity: 1; transform: none; }

/* Card: corpo */
.card__body { padding-top: 20px; }
.card__cats { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card__tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(34,197,94,.2);
  transition: background .3s, border-color .3s;
}
.card__tag:hover { background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.4); }
.card__title { font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); letter-spacing: .03em; text-transform: uppercase; margin-top: 8px; }
.card__desc { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.55; }
.grid.is-collapsed .card:nth-child(n+7) { display: none; }

/* Primeiro card em destaque (full-width) */
.grid .card:first-child { grid-column: 1 / -1; }
.grid .card:first-child .card__media { aspect-ratio: 21/9; }
@media (max-width: 600px) { .grid .card:first-child { grid-column: 1; } .grid .card:first-child .card__media { aspect-ratio: 4/5; } }

/* =========================================================
   7. SOBRE — seção imersiva com foto grande
   ========================================================= */
.about {
  padding-block: clamp(100px, 13vw, 180px);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  overflow: hidden; position: relative;
}
/* Detalhe visual de fundo */
.about::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; pointer-events: none;
  background: radial-gradient(50% 50% at 60% 40%, rgba(34,197,94,.05), transparent 70%);
}
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; position: relative; }
.about__photo img, .about__photo .ph-photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto;
  transform: translateY(calc((var(--p, .5) - .5) * -80px)) scale(1.12);
}
.mvv {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  margin-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
}
.mvv__item { background: var(--bg-2); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.mvv__item h3 { font: italic 400 clamp(28px, 2.8vw, 38px)/1 var(--serif); color: var(--accent); margin-bottom: 16px; }
.mvv__item p { color: #b8b4ac; font-size: 15px; line-height: 1.65; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .mvv { grid-template-columns: 1fr; } }

/* =========================================================
   8. SERVIÇOS — lista intercomunicada, premium
   ========================================================= */
.svc {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px);
  padding-block: clamp(100px, 13vw, 180px);
  border-top: 1px solid var(--line);
}
.svc__aside { }
.svc__sticky { position: sticky; top: 110px; }
.svc__sticky .lead { max-width: 40ch; }
.svc__sticky .muted { margin-top: 20px; font-size: 15px; line-height: 1.65; }
/* Tags de serviço (intercomunicadas com o portfólio) */
.svc__tagcloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.svc__pill {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); transition: color .3s, border-color .3s, background .3s;
}
.svc__pill:hover, .svc__pill.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
/* Lista */
.svc__list { list-style: none; margin: 0; padding: 0; }
.svc__item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line);
  opacity: .25; transition: opacity .7s var(--ease);
}
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__item.is-active { opacity: 1; }
.svc__n { font: 700 12px var(--sans); color: var(--accent); letter-spacing: .14em; text-transform: uppercase; padding-top: 10px; }
.svc__item h3 { font: 400 clamp(26px, 2.8vw, 38px)/1.07 var(--serif); }
.svc__item p { color: var(--muted); margin-top: 14px; max-width: 52ch; font-size: 15px; line-height: 1.65; }
/* Linha de tags por serviço */
.svc__item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svc__item__tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc__sticky { position: static; } .svc__item { opacity: 1; } }

/* =========================================================
   9. ARTIGOS
   ========================================================= */
.arts { padding-block: clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); }
.arts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .arts__grid { grid-template-columns: 1fr; } }
.art__img { aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); margin-bottom: 20px; }
.art__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.art:hover .art__img img { transform: scale(1.04); filter: brightness(1.08); }
.art__date { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.art h3 { font: 600 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 10px; }
.art .muted { font-size: 14px; line-height: 1.55; }

/* =========================================================
   10. CHAMADA FINAL — impactante, cinematográfica
   ========================================================= */
.cta {
  position: relative; overflow: hidden;
  padding-block: clamp(140px, 18vw, 260px); text-align: center; isolation: isolate;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: -40% -15%; z-index: -1;
  background: radial-gradient(55% 65% at 50% calc(35% + var(--p, .5) * 30%), rgba(34,197,94,.45), transparent 65%);
  filter: blur(60px);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(80% 80% at 50% 50%, #0b1a0f, var(--bg));
}
.cta__bg {
  position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover;
  z-index: -3; opacity: .18; transform: translateY(calc((var(--p, .5) - .5) * -60px));
}
.cta__inner { max-width: 1000px; }
.cta__title {
  font: 400 clamp(48px, 8vw, 120px)/.9 var(--serif); text-wrap: balance; letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(170deg, #fff 30%, rgba(255,255,255,.65) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta .lead { max-width: 600px; margin-inline: auto; font-size: clamp(16px, 1.4vw, 19px); }

/* =========================================================
   Páginas internas
   ========================================================= */
.page { padding-top: 140px; min-height: 70vh; }
.page__head { padding-bottom: 64px; max-width: 900px; margin-inline: 0; }
.page .arts__grid { padding-bottom: 120px; }
.post__head { max-width: 860px; padding-bottom: 44px; }
.post__head .art__date { margin-top: 32px; }
.post__cover img { width: 100%; max-height: 680px; object-fit: cover; border-radius: var(--radius-lg); }
.post__body { max-width: 760px; padding-block: 56px 140px; font-size: 18px; line-height: 1.75; }
.post__video { aspect-ratio: 16/9; margin-bottom: 44px; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.post__video iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   Rodapé
   ========================================================= */
.ftr { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg-3); }
.ftr__grid { display: flex; flex-wrap: wrap; gap: 36px 72px; justify-content: space-between; align-items: start; }
.ftr__brand { font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.ftr__brand span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.ftr__links { display: grid; gap: 12px; }
.ftr__links a, .ftr__social a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; transition: color .25s; }
.ftr__links a:hover, .ftr__social a:hover { color: var(--text); }
.ftr__social { display: flex; gap: 20px; } .ftr__social .ico { width: 20px; height: 20px; }
.ftr__bottom { padding-block: 44px 36px; font-size: 12px; color: var(--muted); letter-spacing: .05em; }

/* =========================================================
   WhatsApp flutuante
   ========================================================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 8px 32px -8px rgba(37,211,102,.6);
  transform: scale(0); transition: transform .5s var(--ease);
}
.wa-float.is-on { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 40px -6px rgba(37,211,102,.7); }
.wa-float .ico { width: 26px; height: 26px; }

/* =========================================================
   Modal de vídeo
   ========================================================= */
.modal {
  width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 0; background: transparent;
  color: var(--text); overflow: visible;
}
.modal::backdrop { background: rgba(0,0,0,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] { animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(24px); } }
.modal__frame { aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg); overflow: hidden; }
.modal__frame iframe, .modal__frame video { width: 100%; height: 100%; border: 0; }
.modal__frame.is-empty { aspect-ratio: auto; display: none; }
.modal__info { padding: 22px 4px 0; }
.modal__info h3 { font: 400 clamp(24px, 2.8vw, 34px)/1.1 var(--serif); }
.modal__info p { color: var(--muted); margin-top: 10px; max-width: 70ch; font-size: 15px; }
.modal__close {
  position: fixed; top: 20px; right: 20px; z-index: 100; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(20,20,20,.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .25s, transform .2s;
}
.modal__close:hover { background: rgba(255,255,255,.15); transform: scale(1.1); }
.modal__close .ico { width: 20px; height: 20px; }

/* =========================================================
   Acessibilidade: menos movimento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .words { height: auto; }
  .hero__sticky, .words__sticky { position: relative; height: 100vh; }
  .hero__fallback { animation: none; }
  .hero__hint::after { animation: none; }
  .marquee__track { animation: none; }
  .js .rv { transition: none; }
}

/* =========================================================
   Tags clicáveis e destaque neon
   ========================================================= */
.tag-btn {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(34,197,94,.2);
  transition: background .3s, border-color .3s, color .3s;
  cursor: pointer;
}
.tag-btn:hover { background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.4); color: var(--accent); }

.highlight-neon {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* =========================================================
   Portfólio: card simplificado (imagem + título + tags)
   ========================================================= */
.card__cats { display: none; }
.card__desc { display: none; }

/* Serviços: sem numeração */
.svc__n { display: none; }
.svc__item { grid-template-columns: 1fr; }

/* =========================================================
   Página de Estudo de Caso (projeto.php)
   ========================================================= */
.case-page { padding-bottom: 0; }

/* ── HERO fullscreen ── */
.case__hero {
  position: relative;
  width: 100%; height: 100svh; min-height: 480px;
  overflow: hidden; background: var(--bg);
}
.case__hero__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.case__hero__fallback {
  width: 100%; height: 100%;
  background: hsl(var(--h,200) 30% 12%);
}
.case__hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
}
.case__back {
  position: absolute; top: clamp(80px, 10vw, 110px); left: clamp(20px, 5vw, 60px);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.case__back:hover { color: #fff; }
.case__back .ico { width: 15px; height: 15px; transform: rotate(225deg); }

/* ── SPLIT: metadados | narrativa ── */
.case__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "title ." "details narrative";
  column-gap: clamp(40px, 6vw, 100px);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  align-items: start;
}
.case__titleblock { grid-area: title; }
.case__details    { grid-area: details; }
.case__narrative  { grid-area: narrative; }
@media (max-width: 768px) {
  .case__split { grid-template-columns: 1fr; grid-template-areas: "title" "details" "narrative"; }
  .case__narrative { margin-top: 40px; }
}

/* Hero com vídeo no lugar da foto */
.case__hero--video {
  height: auto; min-height: 0; padding-top: 130px; background: var(--bg);
}
.case__hero--video .case__back { top: 92px; }
.case__videoframe {
  width: min(100%, calc((100svh - 150px) * 16 / 9));
  margin: 0 auto; aspect-ratio: 16 / 9; background: #000;
}
.case__videoframe iframe, .case__videoframe video { width: 100%; height: 100%; border: 0; display: block; }

.case__meta__eyebrow {
  margin-bottom: 20px;
}
.case__title {
  font: 400 clamp(36px, 5.5vw, 80px)/.9 var(--serif);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 32px;
}
.case__meta__rule {
  border: none; border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.case__meta__list { display: grid; gap: 16px; margin-bottom: 32px; }
.case__meta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case__meta__row dt {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.case__meta__row dd {
  font-size: 15px; color: var(--fg); margin: 0;
}
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.case__narrative .prose {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.85;
  color: var(--muted);
}
.case__narrative .prose p + p { margin-top: 1.4em; }

/* ── BLOCOS ── */
.case__body { max-width: 860px; padding-bottom: 120px; }

/* Blocos de conteúdo */
.case__block { margin-bottom: clamp(48px, 7vw, 96px); }

.case__text .prose { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; }
.case__text--2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 700px) { .case__text--2col { grid-template-columns: 1fr; } }

.case__quote {
  position: relative; padding: clamp(32px, 5vw, 64px);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
}
.case__quote blockquote {
  font: 400 clamp(26px, 3.5vw, 46px)/1.1 var(--serif);
  color: var(--accent); letter-spacing: .02em; text-transform: uppercase;
  margin: 0;
}
.case__quote cite {
  display: block; margin-top: 20px;
  font-style: normal; font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.case__image img {
  width: 100%; border-radius: var(--radius-lg);
}
.case__image figcaption {
  margin-top: 14px; font-size: 13px; color: var(--muted);
  letter-spacing: .04em; text-align: center;
}

.case__video__frame {
  aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; background: #000;
}
.case__video__frame iframe { width: 100%; height: 100%; border: 0; }
.case__caption {
  margin-top: 12px; font-size: 13px; color: var(--muted);
  letter-spacing: .04em; text-align: center;
}

/* Projetos relacionados */
.case__related {
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--bg-2);
}
.case__related .eyebrow { margin-bottom: 40px; }
.case__related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 40px);
}
@media (max-width: 600px) { .case__related__grid { grid-template-columns: 1fr; } }

.case__rel__item { display: block; text-decoration: none; }
.case__rel__media {
  aspect-ratio: 16/10; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); margin-bottom: 18px;
  transition: transform .4s var(--ease);
}
.case__rel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case__rel__item:hover .case__rel__media img { transform: scale(1.05); }
.case__rel__body h3 {
  font: 400 clamp(20px, 2vw, 28px)/1.1 var(--serif);
  letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 10px; transition: color .2s;
}
.case__rel__item:hover .case__rel__body h3 { color: var(--accent); }
