/* ══════════════════════════════════════════════════════════
   PEREGRINO SOLUÇÕES DIGITAIS — Design system compartilhado
   Usado por: index.html e edicao-de-video.html
   ══════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* primitives — paleta azul-acinzentado (Falco peregrinus), atualizada a pedido do cliente */
  --bg:       #070809;
  --s1:       #0d1116;
  --s2:       #131820;
  --s3:       #1a212b;
  --border:   #1c232c;
  --accent:     #6E93C9;
  --accent-lt:  #8FB0DE;
  --accent-glow:rgba(110,147,201,.14);
  --txt:      #EDF0F4;
  --txt2:     #88919C;
  --txt3:     #3D4552;
  --ok:       #4caf7d;
  --err:      #e05c5c;
  --fd: 'Bebas Neue', sans-serif;
  --fh: 'Playfair Display', serif;
  --fb: 'Inter', sans-serif;
  --sp: clamp(80px, 10vw, 140px);
  --r:  4px;
  --ease: cubic-bezier(.25,.46,.45,.94);

  /* ── tokens semânticos ─────────────────────────────── */
  /* cor */
  --color-bg:          var(--bg);
  --color-surface:     var(--s1);
  --color-surface-2:   var(--s2);
  --color-surface-3:   var(--s3);
  --color-border:      var(--border);
  --color-text:        var(--txt);
  --color-text-muted:  var(--txt2);
  --color-text-faint:  var(--txt3);
  --color-primary:     var(--accent);
  --color-primary-hover: var(--accent-lt);
  --color-accent:      var(--accent);
  --color-focus:       var(--accent);
  --color-success:     var(--ok);
  --color-error:       var(--err);

  /* espaçamento — escala base 4/8px, para componentes novos */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --container-max: 1320px;

  /* raio */
  --radius-sm: var(--r);
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* elevação / sombra */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  --shadow-primary: 0 14px 44px rgba(110,147,201,.28);

  /* movimento */
  --duration-fast: .2s;
  --duration-base: .35s;
  --duration-slow: .6s;
  --ease-standard: var(--ease);
  --ease-entrance: cubic-bezier(.16,.84,.44,1);
  --ease-exit: cubic-bezier(.7,0,.84,0);

  /* z-index — apenas camadas de página; empilhamento local usa z-index:1/2 no próprio componente */
  --z-base: 1;
  --z-nav: 200;
  --z-nav-overlay: 199; /* menu mobile: abaixo da nav para o botão hambúrguer (X) continuar visível por cima */
  --z-modal: 300;
  --z-toast: 400;
  --z-cursor: 9999;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* keyboard focus visibility (WCAG) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── SCROLL REVEAL ──────────────────────────────────── */
.r {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

/* ── SHARED COMPONENTS ──────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--fh);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--txt);
}
.section-title em { color: var(--accent); font-style: italic; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--r);
  padding: 15px 30px;
  cursor: pointer;
  transition: background .3s, transform .25s, box-shadow .3s;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 30px;
  cursor: pointer;
  background: none;
  transition: border-color .3s, color .3s, transform .25s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt2);
  padding: 15px 4px;
  transition: color .3s;
}
.btn-wa:hover { color: var(--accent); }

/* ── NAV ────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 52px;
  transition: padding .4s, background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#nav.s {
  padding: 16px 52px;
  background: rgba(7,7,7,.88);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fd);
  font-size: 22px;
  letter-spacing: .14em;
  color: var(--txt);
}
.nav-logo span { color: var(--accent); }
.nav-logo-icon { height: 30px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt2);
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 10px 22px;
  border-radius: var(--r);
  transition: background .3s !important;
}
.nav-cta:hover { background: var(--accent-lt) !important; }
.nav-cta::after { display: none !important; }

/* hamburger */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hbg span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--txt);
  transition: all .3s;
}
.hbg.o span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hbg.o span:nth-child(2) { opacity: 0; }
.hbg.o span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile overlay */
#mob {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-nav-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  overflow-y: auto;
  padding: 40px 20px;
}
#mob.o { display: flex; }
#mob a {
  font-family: var(--fd);
  font-size: 42px;
  letter-spacing: .08em;
  color: var(--txt);
  transition: color .25s;
  text-align: center;
}
#mob a:hover { color: var(--accent); }

/* ── HERO ───────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 52px 80px; /* padding-top garante espaço para a nav fixa mesmo quando o conteúdo (com o falcão) passa de 100svh no mobile */
  position: relative;
  overflow: hidden;
}

/* radial glow */
#hero::after {
  content: '';
  position: absolute;
  top: -15%; right: -8%;
  width: 65vw; height: 65vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,147,201,.055) 0%, transparent 68%);
  pointer-events: none;
}

/* subtle noise */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* marca d'água da logo — grande, discreta, com leve parallax no scroll (ver main.js) */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(880px, 68vw);
  height: auto;
  transform: translate(-50%, calc(-50% + var(--wm-y, 0px)));
  opacity: .09;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .hero-watermark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-watermark { transform: translate(-50%, -50%); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .9s .3s var(--ease) forwards;
}
.hero-eyebrow::before { content: ''; width: 38px; height: 1px; background: var(--accent); }

.hero-title {
  font-family: var(--fd);
  font-size: clamp(52px, 10vw, 140px);
  letter-spacing: .045em;
  line-height: .88;
  color: var(--txt);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1s .5s var(--ease) forwards;
}
.hero-title .g { color: var(--accent); }

.hero-bottom {
  opacity: 0;
  animation: fadeUp .9s .85s var(--ease) forwards;
}

.hero-hl {
  font-family: var(--fh);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 14px;
  max-width: 620px;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--txt2);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.goal-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; max-width: 480px; }
.goal-tag {
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--txt2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 15px;
  transition: border-color .3s, color .3s;
}
.goal-tag:hover { border-color: var(--accent); color: var(--accent); }

/* resultados que a edição de vídeo ajuda a alcançar — linha compacta sob os CTAs */
.hero-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.hero-outcome { display: flex; flex-direction: column; gap: 4px; }
.hero-outcome-lbl {
  font-family: var(--fd);
  font-size: 19px;
  letter-spacing: .03em;
  color: var(--color-primary);
  line-height: 1;
}
.hero-outcome-sub {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: 150px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px; right: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt3);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}
.scroll-line {
  width: 38px; height: 1px;
  background: var(--txt3);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scan 2.2s 2.2s infinite;
}

/* ── SERVICES ───────────────────────────────────────── */
#servicos { padding: var(--sp) 52px; }

.section-hd { margin-bottom: 56px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.svc-card {
  background: var(--s1);
  padding: 46px 38px;
  position: relative;
  overflow: hidden;
  transition: background .35s;
  display: flex;
  flex-direction: column;
}
.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, rgba(110,147,201,.045) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .4s;
}
.svc-card:hover { background: var(--s2); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover::after { opacity: 1; }

.svc-num {
  position: absolute;
  top: 18px; right: 28px;
  font-family: var(--fd);
  font-size: 72px;
  color: var(--s3);
  line-height: 1;
  transition: color .4s;
  pointer-events: none;
}
.svc-card:hover .svc-num { color: rgba(110,147,201,.07); }

.svc-icon { width: 42px; height: 42px; color: var(--accent); margin-bottom: 24px; position: relative; z-index: 1; }
.svc-name {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.svc-desc { font-size: 13px; line-height: 1.72; color: var(--txt2); position: relative; z-index: 1; }

.svc-features { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 7px; position: relative; z-index: 1; }
.svc-features li { font-size: 12px; color: var(--txt2); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.svc-features li::before { content: '—'; color: var(--accent); flex-shrink: 0; }

.svc-orcamento {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt2);
  position: relative; z-index: 2;
  transition: color .25s;
}
.svc-orcamento:hover { color: var(--accent); }

/* featured — Edição de Vídeo */
.svc-card--featured {
  grid-column: span 2;
  border: 1px solid rgba(110,147,201,.3);
  cursor: pointer;
}
.svc-card--featured .svc-icon { width: 50px; height: 50px; }
.svc-card--featured .svc-name { font-size: 25px; }
.svc-card--featured .svc-desc { font-size: 14px; max-width: 520px; }

/* último card ocupa a linha inteira — evita célula vazia no grid de 3/2 colunas */
.svc-card--wide { grid-column: span 2; }
.svc-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  width: fit-content;
}
.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative; z-index: 2;
  width: fit-content;
  transition: gap .25s, color .25s;
}
.svc-cta:hover { gap: 12px; color: var(--accent-lt); }

/* ── VIDEO DESTAQUE ─────────────────────────────────── */
#video-destaque { padding: var(--sp) 52px; background: var(--s1); position: relative; overflow: hidden; }
#video-destaque::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(110,147,201,.06) 0%, transparent 55%);
  pointer-events: none;
}
.vd-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.vd-visual {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#1a0533,#5d1060,#8B1A4A,#C9A96E);
  border: 1px solid var(--border);
}
.vd-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent, transparent 26px, rgba(255,255,255,.035) 26px, rgba(255,255,255,.035) 27px);
}
.vd-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(7,7,7,.55);
  border: 1px solid rgba(240,237,232,.4);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.vd-body p { font-size: 14px; line-height: 1.78; color: var(--txt2); margin-bottom: 10px; max-width: 540px; }
.vd-body .section-title { margin-bottom: 20px; }
.vd-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

@media (max-width: 1080px) {
  .vd-grid { grid-template-columns: 1fr; gap: 36px; }
  .vd-visual { aspect-ratio: 16 / 9; }
}

/* ── PROCESS ────────────────────────────────────────── */
#processo {
  padding: var(--sp) 52px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
.proc-step { position: relative; padding: 4px 32px 0; }
.proc-step:not(:first-child) { border-left: 1px solid var(--color-border); }
.proc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--fd);
  font-size: 18px;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.proc-title { font-family: var(--fh); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.proc-desc { font-size: 13px; line-height: 1.7; color: var(--txt2); }

@media (max-width: 1080px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .proc-step:nth-child(odd) { border-left: none; }
}
@media (max-width: 768px) {
  .proc-grid { grid-template-columns: 1fr; gap: 0; }
  .proc-step { border-left: none !important; padding: 28px 0 0; }
  .proc-step:first-child { padding-top: 0; border-top: none; }
  .proc-step:not(:first-child) { border-top: 1px solid var(--color-border); }
}

/* ── PORTFOLIO ──────────────────────────────────────── */
#portfolio { padding: var(--sp) 52px; }

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 24vw, 330px);
  gap: 3px;
}

.port-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.port-item:nth-child(1) { grid-column: span 2; }
.port-item:nth-child(4) { grid-column: span 2; }
.port-item:nth-child(6) { grid-column: span 2; }

.port-visual {
  position: absolute;
  inset: 0;
  transition: transform .7s var(--ease);
}
.port-item:hover .port-visual { transform: scale(1.07); }

.pv1 { background: linear-gradient(135deg,#1a0533,#5d1060,#8B1A4A,#C9A96E); }
.pv2 { background: linear-gradient(135deg,#050d20,#0a1e3d,#0d3d5a,#0a6e8c); }
.pv3 { background: linear-gradient(135deg,#1a0808,#3d1508,#8B3A00,#C97A0A); }
.pv4 { background: linear-gradient(135deg,#030d0a,#0a2e1a,#0d4a2e,#0d8048); }
.pv5 { background: linear-gradient(135deg,#0d0520,#200a40,#3a0a5e,#6a1a8f); }
.pv6 { background: linear-gradient(135deg,#150d03,#2e1e06,#5a3a0a,#8A6020); }

.port-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px;
  background: linear-gradient(transparent, rgba(7,7,7,.78));
  z-index: 1;
}
.port-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.port-name {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
}

.port-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,7,7,.91);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity .38s;
  z-index: 2;
}
.port-item:hover .port-overlay,
.port-item:focus-visible .port-overlay { opacity: 1; }

.port-desc { font-size: 13px; color: var(--txt2); line-height: 1.65; margin: 8px 0 16px; }
.port-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* portfolio empty state — sem cases fictícios */
.port-empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 64px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.port-empty svg { color: var(--accent); margin: 0 auto 22px; }
.port-empty h3 { font-family: var(--fh); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.port-empty p { font-size: 14px; color: var(--txt2); line-height: 1.75; margin-bottom: 26px; }

/* ── MANIFESTO ──────────────────────────────────────── */
#manifesto {
  padding: var(--sp) 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#manifesto::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(110,147,201,.038) 0%, transparent 62%);
  pointer-events: none;
}

.manifesto-q {
  font-family: var(--fh);
  font-size: clamp(20px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  max-width: 700px;
  margin: 0 auto 32px;
  position: relative; z-index: 1;
  text-wrap: balance;
}
.manifesto-q em { color: var(--accent); font-style: italic; }

.manifesto-rule {
  width: 56px; height: 1px;
  background: var(--accent);
  margin: 0 auto;
}

/* ── DIFFERENTIALS ──────────────────────────────────── */
#diferenciais { padding: var(--sp) 52px; background: var(--s1); }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.dif-card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--s2);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background .3s, transform .3s;
}
.dif-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.dif-card:hover { border-color: rgba(110,147,201,.28); background: var(--s3); transform: translateY(-4px); }
.dif-card:hover::before { transform: scaleX(1); }

.dif-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 18px; }
.dif-title { font-family: var(--fh); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.dif-desc { font-size: 13px; line-height: 1.7; color: var(--txt2); }

/* ── FINAL CTA ──────────────────────────────────────── */
#cta {
  padding: var(--sp) 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--fd);
  font-size: clamp(64px, 13vw, 190px);
  color: var(--s2);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .06em;
  z-index: 0;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-title {
  font-family: var(--fh);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}
.cta-title em { color: var(--accent); font-style: italic; }
.cta-body { font-size: 15px; line-height: 1.72; color: var(--txt2); margin-bottom: 38px; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── CONTACT ────────────────────────────────────────── */
#contato { padding: var(--sp) 52px; background: var(--s1); }

.cnt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.cnt-info .section-title { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.cnt-info p { font-size: 14px; line-height: 1.75; color: var(--txt2); margin-bottom: 36px; }

.cnt-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--txt2);
  margin-bottom: 16px;
}
.cnt-detail svg { color: var(--accent); flex-shrink: 0; }
.cnt-detail a { color: inherit; transition: color .25s; }
.cnt-detail a:hover { color: var(--accent); }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.fg { display: flex; flex-direction: column; gap: 7px; }
.fg label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt2);
}
.fg input, .fg select, .fg textarea {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--txt);
  font-family: var(--fb);
  font-size: 14px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  width: 100%;
  -webkit-appearance: none;
}
.fg select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.fg select option { background: var(--s2); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--accent);
  background: var(--s3);
  box-shadow: 0 0 0 3px rgba(110,147,201,.07);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--txt3); }
.fg textarea { resize: vertical; min-height: 130px; }

#fb { font-size: 13px; display: none; margin-top: 4px; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 36px 52px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.ft-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fd); font-size: 18px; letter-spacing: .14em; }
.ft-logo span { color: var(--accent); }
.ft-logo-icon { height: 24px; width: auto; display: block; }
.ft-copy { font-size: 11px; color: var(--txt3); letter-spacing: .04em; }
.ft-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-links a { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--txt2); transition: color .25s; }
.ft-links a:hover { color: var(--accent); }

/* ── CURSOR GLOW ─────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,147,201,.055) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: var(--z-cursor);
  transition: opacity var(--duration-base);
}

/* ══════════════════════════════════════════════════════════
   PÁGINA — EDIÇÃO DE VÍDEO (/edicao-de-video.html)
   ══════════════════════════════════════════════════════════ */

.vp-header { padding: 160px 52px 50px; }
.vp-header .section-title { margin-bottom: 18px; }
.vp-header p { font-size: 15px; color: var(--txt2); max-width: 660px; line-height: 1.8; }
.vp-header .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--txt2); margin-bottom: 26px; transition: color .25s; }
.vp-header .back-link:hover { color: var(--accent); }

.vp-filters {
  display: flex;
  gap: 12px;
  padding: 0 52px 46px;
  flex-wrap: wrap;
}
.vp-filter-btn {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--txt2);
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.vp-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.vp-filter-btn[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.vp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 0 52px 40px;
}

.vp-empty-msg { padding: 0 52px 60px; color: var(--txt2); font-size: 14px; }

/* flip card */
.vcard { perspective: 1700px; }
.vcard-inner {
  position: relative;
  display: grid;
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
.vcard.flipped .vcard-inner { transform: rotateY(180deg); }

.vcard-face {
  grid-area: 1 / 1;
  width: 100%;
  min-height: 420px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vcard-back { transform: rotateY(180deg); }

.vcard-visual {
  height: 150px;
  position: relative;
  flex-shrink: 0;
}
.vcard-cat {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 2;
}

.vcard-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}
.vcard-title { font-family: var(--fh); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.vcard-short { font-size: 13px; color: var(--txt2); line-height: 1.62; flex: 1; margin-bottom: 18px; }
.vcard-full { font-size: 12.5px; color: var(--txt2); line-height: 1.68; margin-bottom: 14px; }

.vcard-list { list-style: none; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.vcard-list li { font-size: 12px; color: var(--txt2); display: flex; gap: 8px; line-height: 1.5; }
.vcard-list li::before { content: '✓'; color: var(--accent); flex-shrink: 0; }

.vcard-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.vcard-meta div span { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt3); margin-bottom: 3px; }
.vcard-meta div strong { font-size: 12px; color: var(--txt2); font-weight: 600; }

.vcard-price { margin-bottom: 16px; }
.vcard-price .old { font-size: 12px; color: var(--txt3); text-decoration: line-through; margin-right: 8px; }
.vcard-price .now { font-family: var(--fh); font-size: 21px; font-weight: 700; color: var(--accent); }
.vcard-price .save { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; color: var(--ok); background: rgba(76,175,125,.12); padding: 3px 8px; border-radius: 3px; vertical-align: middle; }
.vcard-price .consult { font-family: var(--fh); font-size: 16px; font-weight: 700; color: var(--txt); }

.vcard-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.vcard-btn {
  flex: 1;
  font-family: var(--fb);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 10px;
  border-radius: var(--r);
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--txt);
  min-height: 44px;
}
.vcard-btn:hover { border-color: var(--accent); color: var(--accent); }
.vcard-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.vcard-btn--primary:hover { background: var(--accent-lt); }

/* per-service visual gradients, cycling */
.vg1 { background: linear-gradient(135deg,#1a0533,#5d1060,#8B1A4A,#C9A96E); }
.vg2 { background: linear-gradient(135deg,#050d20,#0a1e3d,#0d3d5a,#0a6e8c); }
.vg3 { background: linear-gradient(135deg,#1a0808,#3d1508,#8B3A00,#C97A0A); }
.vg4 { background: linear-gradient(135deg,#030d0a,#0a2e1a,#0d4a2e,#0d8048); }
.vg5 { background: linear-gradient(135deg,#0d0520,#200a40,#3a0a5e,#6a1a8f); }
.vg6 { background: linear-gradient(135deg,#150d03,#2e1e06,#5a3a0a,#8A6020); }

/* ── PLANOS DE CRIATIVOS ────────────────────────────── */
#planos { padding: var(--sp) 52px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: 56px; }
.plan-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--duration-base), transform var(--duration-base);
}
.plan-card:hover { border-color: rgba(110,147,201,.3); transform: translateY(-4px); }
.plan-name { font-family: var(--fh); font-size: 22px; font-weight: 700; margin-bottom: var(--space-3); }
.plan-desc { font-size: 13.5px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: var(--space-5); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.plan-features li { font-size: 12.5px; color: var(--color-text-muted); display: flex; gap: var(--space-2); line-height: 1.5; }
.plan-features li::before { content: '✓'; color: var(--color-primary); flex-shrink: 0; }

.plan-tiers { display: flex; flex-direction: column; gap: var(--space-3); margin-top: auto; }
.plan-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-base);
}
.plan-tier:hover, .plan-tier:focus-within { border-color: var(--color-primary); }
.plan-tier-info { display: flex; flex-direction: column; gap: 2px; }
.plan-tier-qty { font-size: 11.5px; letter-spacing: .04em; color: var(--color-text-muted); }
.plan-tier-price { font-family: var(--fh); font-size: 17px; font-weight: 700; color: var(--color-text); }
.plan-tier-btn {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-4);
  font-family: var(--fb);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  transition: background var(--duration-base), color var(--duration-base);
}
.plan-tier-btn:hover { background: var(--color-primary); color: var(--color-bg); }

@media (max-width: 1080px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } #planos { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 768px)  { .plans-grid { grid-template-columns: 1fr; } #planos { padding-left: 22px; padding-right: 22px; } }

/* FAQ (native details/summary — accessible by default) */
#faq { padding: var(--sp) 52px; background: var(--s1); }
.faq-list { max-width: 780px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.faq-item { background: var(--s1); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 26px;
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--fb);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item:hover summary { color: var(--accent); }
.faq-item p { padding: 0 26px 24px; font-size: 13.5px; line-height: 1.75; color: var(--txt2); max-width: 640px; }

/* ── KEYFRAMES ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scan {
  0%   { left: -100%; }
  100% { left:  100%; }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1080px) {
  #nav, #nav.s { padding-left: 32px; padding-right: 32px; }
  #hero, #servicos, #video-destaque, #processo, #portfolio, #manifesto, #diferenciais, #cta, #contato { padding-left: 32px; padding-right: 32px; }
  footer { padding-left: 32px; padding-right: 32px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .cnt-grid { grid-template-columns: 1fr; gap: 48px; }
  .vp-header, .vp-filters, .vp-grid, .vp-empty-msg, #faq { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  #nav, #nav.s { padding-left: 22px; padding-right: 22px; }
  #hero, #servicos, #video-destaque, #processo, #portfolio, #manifesto, #diferenciais, #cta, #contato { padding-left: 22px; padding-right: 22px; }
  footer { padding: 28px 22px; flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .hbg { display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card--featured, .svc-card--wide { grid-column: span 1; }
  .port-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .port-item:nth-child(n) { grid-column: span 1; }
  .dif-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-outcomes { gap: var(--space-5); }
  .scroll-hint { display: none; }
  #cursor-glow { display: none; }
  .vp-header, .vp-filters, .vp-grid, .vp-empty-msg, #faq { padding-left: 22px; padding-right: 22px; }
  .vp-header { padding-top: 130px; }
  .vp-grid { grid-template-columns: 1fr; }
  .vcard-face { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .r { opacity: 1; transform: none; }
  /* estes elementos dependem de uma animação (fadeUp/fadeIn) para sair de opacity:0 —
     com animation:none essa transição nunca ocorre, então forçamos o estado final aqui */
  .hero-eyebrow, .hero-title, .hero-bottom, .scroll-hint { opacity: 1; transform: none; }
}

