/* ==========================================================================
   MOTIN FILMS — Design System
   Dark cinematográfico · Dourado · Anton (display) + Open Sans (texto)
   ========================================================================== */

:root {
  /* Paleta da marca — primárias (neutros quentes) */
  --bg: #16120f;
  --bg-2: #1b1613;
  --bg-3: #211b16;
  --line: rgba(251, 188, 63, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f5f1ea;
  --muted: #a49d90;
  --muted-2: #6e6c68;
  /* Paleta da marca — secundárias (fogo) */
  --gold: #fbbc3f;      /* âmbar — destaques de texto */
  --gold-2: #ffd070;    /* âmbar claro — hover */
  --gold-dark: #ee5527; /* laranja — gradientes/CTAs */
  --red: #e2293b;
  --crimson: #ac1e3a;
  --plum: #5c1a38;
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #1a1405; }

/* ---------- Utilitários ---------- */

.container { width: min(1180px, 92vw); margin-inline: auto; }

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.display em {
  font-style: normal;
  color: var(--gold);
}

.display .script {
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0;
}

h1.display { font-size: clamp(3rem, 9vw, 7.2rem); }
h2.display { font-size: clamp(2.1rem, 5.4vw, 4rem); max-width: 18ch; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.section-head p.lead {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.05rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251,188,63,.5); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(251,188,63,0); }
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  font-family: var(--font-body);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #2a1208;
  box-shadow: 0 8px 34px rgba(238, 85, 39, 0.28);
}

.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(238,85,39,.42); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn .arrow {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(22,18,15,.18);
  font-size: .8rem;
}

.btn--ghost .arrow { background: rgba(251,188,63,.14); color: var(--gold); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(22, 18, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header nav { display: flex; gap: 30px; }

.header nav a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}

.header nav a:hover { color: var(--gold-2); }

.logo { display: flex; align-items: center; transition: opacity .25s; }

.logo:hover { opacity: 0.8; }

.logo img { height: 40px; width: auto; }

.footer .logo img { height: 32px; }

.header .btn { padding: 11px 22px; font-size: 0.78rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 14px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 42% at 22% 18%, rgba(251,188,63,.09), transparent 70%),
    radial-gradient(46% 38% at 82% 78%, rgba(251,188,63,.06), transparent 70%);
}

.hero h1 { margin-bottom: 30px; }

.hero .sub {
  color: var(--muted);
  max-width: 52ch;
  margin: 26px auto 38px;
  font-size: 1.08rem;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-media {
  width: min(420px, 72vw);
  aspect-ratio: 9 / 12;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin: 8px auto 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--line-soft);
}

.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-media--wide { width: min(880px, 92vw); aspect-ratio: 16 / 9; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: 26px 0;
  background: var(--bg-2);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.marquee-item .idx {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.18em;
}

/* Marquee de logos */
.logo-marquee .marquee-track { align-items: center; gap: 72px; animation-duration: 34s; }

.logo-marquee img {
  height: 34px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity .25s, filter .25s;
}

.logo-marquee img:hover { opacity: 1; filter: grayscale(0) brightness(1); }

/* ---------- Números / Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.stat { border-left: 1px solid var(--line); padding-left: 26px; }

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--text);
  line-height: 1;
}

.stat .num em { color: var(--gold); font-style: normal; }

.stat .label {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Manifesto ---------- */

.manifesto { text-align: center; }

.manifesto h2 { margin-inline: auto; max-width: 22ch; }

.manifesto p {
  color: var(--muted);
  max-width: 64ch;
  margin: 30px auto 40px;
  font-size: 1.06rem;
}

/* ---------- Portfólio ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

.filter-btn {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .22s;
  font-family: var(--font-body);
}

.filter-btn:hover { color: var(--gold-2); border-color: var(--line); }

.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(251,188,63,.07);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  transition: transform .3s ease, border-color .3s ease;
}

.work:hover { transform: translateY(-5px); border-color: var(--line); }

.work .thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.work .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.work:hover .thumb img { transform: scale(1.05); }

.work .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(22,18,15,.75), rgba(22,18,15,.1) 55%);
}

.work .play span {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 188, 63, 0.92);
  color: #1a1405;
  font-size: 1.1rem;
  padding-left: 4px;
  transition: transform .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.work .thumb:hover .play span { transform: scale(1.1); }

.work .info { padding: 20px 22px 24px; }

.work .cat {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.work h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 8px 0 8px;
  letter-spacing: 0.02em;
}

.work p { color: var(--muted); font-size: 0.88rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 4, 5, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}

.lightbox.open { display: flex; }

.lightbox .frame {
  width: min(1060px, 94vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

.lightbox iframe { width: 100%; height: 100%; border: 0; }

.lightbox .close {
  position: absolute;
  top: 22px; right: 26px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all .2s;
}

.lightbox .close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Cards genéricos (diagnóstico, diferenciais, processo) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: border-color .3s, transform .3s;
}

.card:hover { border-color: var(--line); transform: translateY(-4px); }

.card .idx {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 14px 0 12px;
  letter-spacing: 0.02em;
}

.card .problema { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

.card .solucao {
  color: var(--text);
  font-size: 0.92rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.card .solucao strong { color: var(--gold-2); }

.card > p { color: var(--muted); font-size: 0.92rem; }

.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.card .meta em { color: var(--gold); font-style: normal; }

/* ---------- Serviços (lista numerada) ---------- */

.services { border-top: 1px solid var(--line-soft); }

.service {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr auto;
  gap: 30px;
  align-items: center;
  padding: 36px 10px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}

.service:hover { background: rgba(251,188,63,.03); }

.service .idx {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}

.service h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
}

.service p { color: var(--muted); font-size: 0.94rem; }

.service .btn { padding: 11px 22px; font-size: 0.74rem; white-space: nowrap; }

/* ---------- Compactas / bônus ---------- */

.bonus-note {
  color: var(--gold-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.compact-card .specs {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.compact-card .specs div span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}

.compact-card .specs div strong { color: var(--gold-2); font-size: 0.9rem; }

/* ---------- Checklist (destaques de serviço) ---------- */

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 26px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Tags (público atendido) ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .25s;
}

.tag:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }

/* ---------- Depoimentos ---------- */

.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.testimonial p { color: var(--text); font-size: 0.95rem; margin: 14px 0 22px; }

.testimonial footer strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.testimonial footer span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- CTA final ---------- */

.cta-final { text-align: center; }

.cta-final h2 { margin: 0 auto 36px; max-width: 20ch; }

/* ---------- Contato ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-info .item { margin-bottom: 30px; }

.contact-info .item span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-info .item p, .contact-info .item a { color: var(--text); font-size: 0.98rem; }

.contact-info .item a:hover { color: var(--gold-2); }

.socials { display: flex; gap: 12px; margin-top: 6px; }

.socials a {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  transition: all .2s;
}

.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.form-card {
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}

.form-card label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 9px;
}

.form-card label:first-of-type { margin-top: 0; }

.form-card input, .form-card select, .form-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color .2s;
}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-card select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.form-card .btn { width: 100%; justify-content: center; margin-top: 28px; }

.form-note {
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 16px;
}

.form-feedback { margin-top: 14px; font-size: .85rem; color: var(--gold-2); text-align: center; display: none; }

/* ---------- Blog ---------- */

.blog-hero { padding: calc(var(--header-h) + 70px) 0 40px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}

.post-card:hover { transform: translateY(-5px); border-color: var(--line); }

.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.post-card--featured .post-thumb { width: 52%; aspect-ratio: auto; min-height: 320px; }

.post-card--featured .post-body { display: flex; flex-direction: column; justify-content: center; }

.post-card--featured h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.post-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--crimson));
}

.post-card:nth-child(3n) .post-thumb { background: linear-gradient(135deg, var(--crimson), var(--gold-dark)); }
.post-card:nth-child(3n+1) .post-thumb { background: linear-gradient(135deg, #3a2c1c, var(--gold-dark)); }

.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.post-thumb .ph {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.post-body { padding: 24px 24px 28px; }

.post-meta {
  display: flex;
  gap: 14px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.post-meta .cat { color: var(--gold); }

.post-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.post-card h3 a:hover { color: var(--gold-2); }

.post-card .excerpt { color: var(--muted); font-size: 0.9rem; }

.post-card .read-more {
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}

.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: all .2s;
}

.pagination a:hover { border-color: var(--gold); color: var(--gold); }

.pagination .current { border-color: var(--gold); color: var(--gold); background: rgba(251,188,63,.08); }

/* Artigo (post single) */

.prose { max-width: 760px; margin-inline: auto; }

.prose > * + * { margin-top: 1.4em; }

.prose p { color: #d8d2c6; font-size: 1.05rem; }

.prose h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin-top: 2em;
}

.prose h2 em { font-style: normal; color: var(--gold); }

.prose ul, .prose ol { padding-left: 1.3em; color: #d8d2c6; }

.prose li + li { margin-top: .5em; }

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
  color: var(--gold-2);
  font-size: 1.15rem;
  font-style: italic;
}

.prose img, .prose .video-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.prose .video-embed { aspect-ratio: 16/9; }

.prose .video-embed iframe { width: 100%; height: 100%; border: 0; }

.post-header { text-align: center; max-width: 860px; margin-inline: auto; }

.post-header h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 18px 0; }

.cta-box {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 70px;
}

.cta-box h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.cta-box h3 em { font-style: normal; color: var(--gold); }

.cta-box p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-thumb { width: 100%; aspect-ratio: 16/9; min-height: 0; }
}

@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 54px 0 40px;
  background: var(--bg-2);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer img { height: 26px; }

.footer nav { display: flex; gap: 26px; }

.footer nav a, .footer p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer nav a:hover { color: var(--gold); }

/* ---------- Barra fixa do WhatsApp (acompanha a página inteira) ---------- */

body { padding-bottom: 64px; } /* espaço para a barra não cobrir o rodapé */

.wa-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 4vw;
  background: rgba(22, 18, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
}

.wa-bar .wa-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.wa-bar .wa-text strong { color: var(--text); font-weight: 700; }

.wa-bar .wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
  transition: transform .22s, box-shadow .22s;
}

.wa-bar .wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.5); }

.wa-bar svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

@media (max-width: 680px) {
  .wa-bar { gap: 12px; }
  .wa-bar .wa-text { display: none; }
  .wa-bar .wa-btn { width: 100%; justify-content: center; }
}

/* ---------- Ambient background motion ----------
   Orbes de luz desfocados que derivam lentamente ao fundo
   das seções marcadas com .ambient (o JS injeta os orbes).
------------------------------------------------- */

.ambient { overflow: clip; } /* clip (e não hidden) p/ não quebrar position:sticky */

.ambient > .container { position: relative; z-index: 1; }

.ambient-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 52vmin;
  height: 52vmin;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.11;
  will-change: transform;
}

.orb-0 { background: var(--gold);      top: -18%; left: -8%;  animation: drift-a 26s ease-in-out infinite alternate; }
.orb-1 { background: var(--gold-dark); bottom: -22%; right: -8%; animation: drift-b 34s ease-in-out infinite alternate; }
.orb-2 { background: var(--crimson);   top: 28%; right: 18%; opacity: 0.09; animation: drift-a 40s ease-in-out infinite alternate-reverse; }

@keyframes drift-a {
  to { transform: translate(11vw, 9vh) scale(1.18); }
}

@keyframes drift-b {
  to { transform: translate(-9vw, -7vh) scale(0.88); }
}

/* ---------- Scrollytelling (Processo / Metodologia) ---------- */

.scrolly-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.scrolly-pin {
  position: sticky;
  top: calc(var(--header-h) + 90px);
}

.scrolly-num {
  font-family: var(--font-display);
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  display: block;
}

.scrolly-num.tick { animation: num-tick .45s cubic-bezier(.2,.7,.3,1); }

@keyframes num-tick {
  0%   { transform: translateY(24px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.scrolly-count {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin: 22px 0 12px;
}

.scrolly-bar {
  width: min(220px, 100%);
  height: 3px;
  background: var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}

.scrolly-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}

.scrolly-steps { display: flex; flex-direction: column; }

.scrolly-step {
  min-height: 52vh;
  display: flex;
  align-items: center;
  opacity: 0.22;
  transform: scale(0.98);
  transition: opacity .45s ease, transform .45s ease;
}

.scrolly-step.active { opacity: 1; transform: none; }

.scrolly-step .card { width: 100%; }

.scrolly-step.active .card { border-color: var(--line); }

@media (max-width: 860px) {
  .scrolly-grid { grid-template-columns: 1fr; }
  .scrolly-pin { position: static; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  .scrolly-num { font-size: 4rem; -webkit-text-stroke-width: 1.5px; }
  .scrolly-count { margin: 0; }
  .scrolly-step { min-height: 0; padding: 18px 0; opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .scrolly-step { opacity: 1; transform: none; }
  .scrolly-num.tick { animation: none; }
}

/* ---------- Contador estilo matrix ---------- */

.stat .num { font-variant-numeric: tabular-nums; }

.stat .digit { display: inline-block; }

.stat .digit.rolling {
  color: var(--gold);
  opacity: 0.85;
  text-shadow: 0 0 18px rgba(251, 188, 63, 0.35);
}

/* ---------- Headline do hero: letras subindo (motion graphics) ---------- */

.h1-anim .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.16em 0 0.08em;   /* respiro p/ acentos (Ê) e descendentes (ç) */
  margin: -0.16em 0 -0.08em;
}

.h1-anim .ltr {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform .75s cubic-bezier(.16, .8, .26, 1),
    opacity .35s ease-out;
  transition-delay: var(--d, 0ms);
  will-change: transform;
}

.h1-anim.play .ltr { transform: translateY(0); opacity: 1; }

/* ---------- Vídeo do hero: o player se forma por partículas ---------- */

.hero-media { transition: box-shadow 1.1s ease; }

.hero-media video { transition: opacity .9s ease, transform 1.1s ease; }

/* enquanto se forma: sem moldura/sombra e sem vídeo — só as partículas existem */
.hero-media.forming { box-shadow: none; }

.hero-media.forming video { opacity: 0; transform: scale(1.05); }

/* o canvas cobre a seção inteira p/ as partículas voarem de longe sem serem cortadas */
.hero .particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .h1-anim .ltr { transform: none; opacity: 1; transition: none; }
  .hero-media.forming { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--line-soft); }
  .hero-media.forming video { opacity: 1; transform: none; }
  .hero .particles { display: none; }
}

/* ---------- Spotlight que segue o mouse ---------- */

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(
    340px circle at var(--spot-x, 50vw) var(--spot-y, 50vh),
    rgba(251, 188, 63, 0.07),
    rgba(251, 188, 63, 0.03) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .5s ease;
}

body.has-pointer .spotlight { opacity: 1; }

/* Brilho na borda/superfície dos cards sob o cursor */
.card, .work {
  position: relative;
}

.card::after, .work::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(251, 188, 63, 0.12),
    transparent 65%
  );
}

.card:hover::after, .work:hover::after { opacity: 1; }

/* ---------- Balanço suave dos cards ---------- */

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-5px) rotate(0.25deg); }
  75%      { transform: translateY(3px) rotate(-0.25deg); }
}

.card, .work {
  animation: sway 7s ease-in-out infinite;
  will-change: transform;
}

.card:nth-child(2n)   { animation-duration: 8.5s; animation-delay: -2.1s; }
.card:nth-child(3n)   { animation-duration: 9.5s; animation-delay: -4.3s; }
.card:nth-child(3n+1) { animation-delay: -1.2s; }
.work:nth-child(2n)   { animation-duration: 8s;   animation-delay: -2.8s; }
.work:nth-child(3n)   { animation-duration: 9s;   animation-delay: -5.2s; }

/* O balanço só começa depois da animação de entrada (senão a anula) */
.card.reveal:not(.visible), .work.reveal:not(.visible) { animation: none; }

/* No hover o JS assume o transform (tilt 3D) e pausa o balanço */
.card.tilting, .work.tilting {
  animation: none;
  transition: transform .18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .card, .work { animation: none; }
  .spotlight { display: none; }
}

/* ---------- Animações de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .work-grid, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
  .service { grid-template-columns: 50px 1fr; grid-template-rows: auto auto auto; }
  .service .idx { grid-row: 1; }
  .service h3 { grid-column: 2; }
  .service p { grid-column: 2; }
  .service .btn { grid-column: 2; justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(22,18,15,.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 28px 6vw 34px;
    gap: 22px;
    border-bottom: 1px solid var(--line-soft);
    display: none;
  }
  .header nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header .btn { display: none; }
  .work-grid, .cards, .cards--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
