/* ============================================
   Fontes locais
   ============================================ */
@font-face {
  font-family: "Michroma";
  src: url("assets/fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Audiowide";
  src: url("assets/fonts/Audiowide-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monda";
  src: url("assets/fonts/Monda-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monda";
  src: url("assets/fonts/Monda-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monda";
  src: url("assets/fonts/Monda-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monda";
  src: url("assets/fonts/Monda-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   Kepler Ads — design tokens
   ============================================ */
:root {
  --bg: #0b0b12;
  --bg-alt: #1a1833;
  --bg-alt-2: #131226;
  --purple: #6b4bd8;
  --lilac: #a16bff;
  --pink: #ff4fa8;
  --text: #f8f8f8;
  --text-muted: #b9bcc9;
  --text-dim: #8a8da3;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;

  --container: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 420ms;

  --font-display: "Monda", "Segoe UI", system-ui, sans-serif;
  --font-logo: "Michroma", "Segoe UI", system-ui, sans-serif;
  --font-eyebrow: "Audiowide", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--pink);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: var(--space-2);
}

.section-head p {
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-size: 16px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section {
  position: relative;
  padding: var(--space-7) 0;
}

section[id],
.footer-curtain,
.service-curtain,
.section-curtain {
  scroll-margin-top: 88px;
}

/* skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-2);
  background: var(--pink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus-visible {
  top: var(--space-2);
}

/* focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--bg);
  box-shadow: 0 8px 30px rgba(255, 79, 168, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(255, 79, 168, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid rgba(248, 248, 248, 0.25);
  color: var(--text);
  background: rgba(248, 248, 248, 0.04);
}

.btn-ghost:hover {
  border-color: var(--lilac);
  background: rgba(161, 107, 255, 0.12);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px var(--space-3) 0;
  transition: padding var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  padding-top: 12px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.nav-bar {
  padding: 10px 10px 10px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(26, 24, 51, 0.82), rgba(13, 12, 26, 0.78));
  border: 1px solid rgba(248, 248, 248, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(248, 248, 248, 0.06);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled .nav-bar {
  border-color: rgba(248, 248, 248, 0.15);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(248, 248, 248, 0.08);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.logo .logo-sub {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-actions .btn {
  min-height: 42px;
  padding: 0 22px;
  font-size: 13.5px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-toggle-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.6s var(--ease-out);
}

.nav-toggle-morph {
  stroke-dasharray: 12 63;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 0.6s var(--ease-out), stroke-dashoffset 0.6s var(--ease-out);
}

body.nav-open .nav-toggle-icon {
  transform: rotate(-45deg);
}

body.nav-open .nav-toggle-morph {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* mobile nav */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 100px;
    left: var(--space-3);
    right: var(--space-3);
    bottom: auto;
    height: auto;
    max-height: calc(100dvh - 120px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(248, 248, 248, 0.09);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    overflow-y: auto;
    background: rgba(11, 11, 18, 0.98);
    backdrop-filter: blur(20px);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease-out),
      opacity var(--dur-slow) var(--ease-out);
  }

  .nav-links a {
    font-size: 17px;
    color: var(--text);
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-bar {
    padding-right: 14px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 60;
    width: 38px;
    height: 38px;
  }
}

/* header compacto em telas bem pequenas */
@media (max-width: 480px) {
  .nav-bar {
    padding: 8px 12px 8px 18px;
  }

  .logo {
    font-size: 15px;
  }

  .logo .logo-sub {
    font-size: 13px;
  }

  .header-actions {
    gap: var(--space-2);
  }

  .header-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }
}

/* telas muito estreitas: o botão "Solicite seu site" some do
   cabeçalho (o botão flutuante do WhatsApp já cobre o CTA) pra
   garantir que o ícone do menu nunca vaze da borda da pílula */
@media (max-width: 400px) {
  .header-actions .btn {
    display: none;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px var(--space-3) var(--space-6);
  mix-blend-mode: difference;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(48px, 11vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0;
  animation: rise var(--dur-slow) var(--ease-out) forwards;
  animation-delay: 0.1s;
}

.hero-title .sub {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.26em;
  vertical-align: super;
  margin-left: 0.08em;
}

.hero-quote {
  margin-top: var(--space-4);
  max-width: 560px;
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0;
  animation: rise var(--dur-slow) var(--ease-out) forwards;
  animation-delay: 0.28s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--pink), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ============================================
   Reveal on scroll
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-blur] {
  opacity: 0;
  filter: blur(18px);
  transform: translateX(-36px);
  transition: opacity var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.service-panel-media[data-reveal-blur] {
  transform: translateX(36px);
}

[data-reveal-blur].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* ---- painel de serviço: texto revela em panorama (esquerda -> direita) ---- */
[data-panorama] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-out);
}

[data-panorama].is-visible {
  clip-path: inset(0 0 0 0);
}

/* ---- títulos de seção: revelam da esquerda pra direita ao entrar na tela ---- */
[data-title-wipe] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease-out);
}

[data-title-wipe].is-visible {
  clip-path: inset(0 0 0 0);
}

/* ============================================
   Sobre
   ============================================ */
.sobre {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(26, 24, 51, 0.4) 20%, rgba(26, 24, 51, 0.4) 80%, transparent);
}

.sobre .container {
  position: relative;
  z-index: 2;
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-6);
}

.sobre-content {
  max-width: 620px;
  text-align: left;
}

.sobre-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
  align-items: start;
  gap: var(--space-3);
  justify-self: center;
}

@keyframes sobre-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.sobre-photo-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 60px -30px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(161, 107, 255, 0.18),
    0 0 34px rgba(255, 79, 168, 0.12);
  animation: sobre-float 6s ease-in-out infinite;
}

.sobre-photo-card-alt {
  animation-delay: -3s;
}

.sobre-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(161, 107, 255, 0.7), rgba(255, 79, 168, 0.35), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sobre-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sobre-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(120deg, #fff, var(--lilac) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sobre-text {
  margin-top: var(--space-4);
  font-size: 17px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .sobre-inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .sobre-content {
    max-width: none;
    text-align: center;
  }

  .sobre-quote,
  .sobre-text {
    text-align: center;
  }

  .sobre-text {
    margin-top: var(--space-3);
  }

  .sobre-photos {
    grid-template-columns: repeat(2, 1fr);
    max-width: 340px;
    gap: var(--space-2);
    margin: var(--space-4) auto 0;
  }
}

/* ============================================
   Dúvidas frequentes
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid rgba(248, 248, 248, 0.08);
  background: linear-gradient(160deg, rgba(26, 24, 51, 0.55), rgba(13, 12, 26, 0.7));
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  background: radial-gradient(240px circle at var(--faq-x, 50%) var(--faq-y, 50%), rgba(161, 107, 255, 0.18), transparent 70%);
}

.faq-item:hover::before,
.faq-item.is-open::before {
  opacity: 1;
}

.faq-item.is-open {
  border-color: rgba(161, 107, 255, 0.35);
}

.faq-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  text-align: left;
  color: var(--text);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 248, 248, 0.16);
  background: rgba(248, 248, 248, 0.04);
  color: var(--text);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-item.is-open .faq-icon {
  border-color: var(--pink);
}

.faq-item.is-open .faq-icon svg {
  transform: rotate(45deg);
}

.faq-trigger-text {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}

.faq-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 248, 248, 0.14);
  padding: 4px 12px;
  font-family: var(--font-eyebrow);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  margin-left: auto;
}

.faq-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer {
  padding: 0 var(--space-3) var(--space-3) calc(40px + var(--space-3) + var(--space-3));
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .faq-tag {
    margin-left: 0;
  }

  .faq-answer {
    padding-left: var(--space-3);
  }
}

@media (max-width: 480px) {
  .faq-trigger {
    padding: var(--space-2);
    gap: var(--space-2);
  }

  .faq-icon {
    width: 34px;
    height: 34px;
  }

  .faq-icon svg {
    width: 14px;
    height: 14px;
  }

  .faq-question {
    font-size: 15px;
  }

  .faq-answer {
    padding-bottom: var(--space-2);
    font-size: 14px;
  }
}

/* ============================================
   Serviços
   ============================================ */
/* ---- mobile: um só "// Nossos serviços" no topo da seção, antes da
   1ª imagem, em vez de repetido nos 3 painéis (ver @media 860px) ---- */
.services-mobile-eyebrow {
  display: none;
}

.service-curtain {
  position: relative;
  height: calc(100vh + var(--pin-extra, 0px));
  height: calc(100svh + var(--pin-extra, 0px));
  height: calc(100dvh + var(--pin-extra, 0px));
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.service-panel {
  position: fixed;
  inset: auto 0 0 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: 1;
  display: flex;
  align-items: center;
  align-items: safe center;
  overflow: hidden;
  background: var(--bg);
  padding: 0;
}

/* ---- Projetos: grade de cards, sem pin/cortina — o conteúdo cresce
   com a quantidade de projetos, então em vez de prender a seção numa
   tela cheia e "esfregar" o scroll por dentro (o que cortava as
   últimas linhas da grade quando o conteúdo ficava mais alto que a
   viewport), a seção rola em fluxo normal, como Sobre/Dúvidas. ---- */
.section-curtain {
  position: relative;
  height: auto;
  clip-path: none;
}

.curtain-panel {
  position: static;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  filter: none !important;
}

/* conteúdo do painel: única caixa que a rolagem "esfrega" (translateY)
   quando o conteúdo é mais alto que uma tela, em vez de criar um
   scroll interno que rouba o gesto de rolagem do usuário */
.curtain-scroll-content {
  width: 100%;
  will-change: transform;
}

/* Projetos não fica mais preso em 100vh (ver .curtain-panel acima),
   então o "esfregar" por transform some — o conteúdo já rola normal. */
.curtain-panel .curtain-scroll-content {
  transform: none !important;
}

/* ---- fundo espacial ---- */
.service-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.service-stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 340px 340px;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(248, 248, 248, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(248, 248, 248, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 46% 15%, rgba(248, 248, 248, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 63% 52%, rgba(248, 248, 248, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 82% 30%, rgba(248, 248, 248, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 91% 70%, rgba(248, 248, 248, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 35% 88%, rgba(248, 248, 248, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 55% 78%, rgba(248, 248, 248, 0.5), transparent);
  opacity: 0.55;
}

.service-nebula {
  position: absolute;
  top: 22%;
  left: 62%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 168, 0.28), rgba(107, 75, 216, 0.2) 45%, transparent 72%);
  filter: blur(70px);
}

.service-panel--landing .service-nebula {
  background: radial-gradient(circle, rgba(161, 107, 255, 0.3), rgba(255, 79, 168, 0.16) 45%, transparent 72%);
}

.service-panel--mini .service-nebula {
  background: radial-gradient(circle, rgba(107, 75, 216, 0.32), rgba(161, 107, 255, 0.16) 45%, transparent 72%);
}

.service-mountain {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -2px;
  height: 34vh;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 10, 0.9) 55%, #05050a 100%);
  clip-path: polygon(0% 100%, 0% 55%, 8% 42%, 16% 58%, 24% 30%, 33% 50%, 42% 20%, 50% 46%, 58% 34%, 67% 60%, 76% 38%, 85% 55%, 93% 32%, 100% 50%, 100% 100%);
  opacity: 0.9;
}

/* ---- conteúdo ---- */
.service-panel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-6);
}

.service-panel-text {
  max-width: 560px;
}

.service-panel-title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.service-panel-desc {
  margin-top: var(--space-3);
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-panel-cta {
  margin-top: var(--space-4);
}

.service-panel-media {
  position: relative;
  overflow: visible;
}

.service-panel-media img {
  display: block;
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 46%, #000 28%, rgba(0, 0, 0, 0.55) 48%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 46%, #000 28%, rgba(0, 0, 0, 0.55) 48%, transparent 78%);
}

.service-panel--landing .service-panel-media img,
.service-panel--sites .service-panel-media img {
  width: 148%;
  max-width: 148%;
}

@media (max-width: 860px) {
  .services-mobile-eyebrow {
    display: block;
    order: -2;
    margin-bottom: var(--space-3);
  }

  .service-panel-text .eyebrow {
    display: none;
  }

  .service-panel-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-panel-media {
    order: -1;
    max-width: clamp(180px, 58vw, 280px);
    margin: 0 auto;
  }

  .service-panel--sites .service-panel-media {
    max-width: clamp(270px, 88vw, 400px);
  }

  .service-panel--landing .service-panel-media {
    max-width: clamp(195px, 62vw, 290px);
  }

  .service-panel--landing .service-panel-media img,
  .service-panel--sites .service-panel-media img {
    width: 112%;
    max-width: 112%;
    margin-left: -6%;
  }

  .service-nebula {
    width: 90vw;
    height: 90vw;
  }

  .service-mountain {
    height: 22vh;
  }

  /* ---- mobile: remove a cortina com pin nas 3 sessões de Serviços —
     em telas pequenas o pin (painel fixo + faixa de scroll extra)
     trava a rolagem e o botão flutuante do WhatsApp acaba cobrindo
     texto sem dar pra rolar até ele. Vira rolagem normal, em fluxo,
     sem nenhuma transição entre Home/Sites/Landing/Mini. Projetos e
     Contato mantêm o pin — só Serviços muda. */
  .service-curtain {
    height: auto;
    clip-path: none;
  }

  .service-curtain .service-panel {
    position: static;
    height: auto;
    overflow: visible;
    filter: none !important;
  }

  .service-curtain .curtain-scroll-content {
    transform: none !important;
  }

  .service-curtain [data-panorama],
  .service-curtain [data-reveal-blur] {
    opacity: 1;
    filter: none;
    clip-path: none;
    transform: none;
  }

  /* ---- mobile: sem o pin, os 3 painéis de Serviço agora se empilham
     em fluxo normal. A "montanha" (clip-path com aresta dura) criava
     uma linha reta bem visível repetida nas 3 seções — removida no
     mobile. Fica só a nebulosa (glow suave, sem aresta) + estrelas,
     e o fundo esmaece bem pra dentro (mask) pra fundir com o --bg
     contínuo por trás, sem nenhuma costura entre uma seção e a
     próxima — como se fosse um único cenário contínuo. */
  .service-panel-bg {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  }

  .service-mountain {
    display: none;
  }

  .service-stars {
    opacity: 0.35;
  }
}

@media (max-width: 480px) {
  .service-panel-media {
    max-width: clamp(150px, 52vw, 210px);
  }
}


.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out);
}

.service-cta:hover {
  color: var(--pink);
}

.service-cta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

/* ---- popup expansível do card de serviço ---- */
.service-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(11, 11, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.service-modal-backdrop.is-visible {
  opacity: 1;
}

.service-modal {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(26, 24, 51, 0.97), rgba(10, 10, 16, 0.99));
  border: 1px solid rgba(248, 248, 248, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 46px rgba(161, 107, 255, 0.2);
  transition: top var(--dur-slow) var(--ease-out),
    left var(--dur-slow) var(--ease-out),
    width var(--dur-slow) var(--ease-out),
    height var(--dur-slow) var(--ease-out),
    border-radius var(--dur-slow) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}

.service-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--lilac), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(248, 248, 248, 0.08);
  border: 1px solid rgba(248, 248, 248, 0.16);
  color: var(--text);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.service-modal-close:hover {
  background: rgba(255, 79, 168, 0.22);
  border-color: var(--pink);
}

.service-modal-close svg {
  width: 18px;
  height: 18px;
}

.service-modal-letter {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  background: linear-gradient(120deg, var(--pink), var(--lilac) 65%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-modal-title {
  position: relative;
  z-index: 1;
  margin-top: var(--space-2);
  font-size: clamp(24px, 3.4vw, 32px);
}

.service-modal-desc {
  position: relative;
  z-index: 1;
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.service-modal .service-cta {
  position: relative;
  z-index: 1;
  margin-top: var(--space-4);
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .service-modal {
    transition: opacity var(--dur-base) linear;
  }
}

/* ============================================
   Projetos (grade de cards)
   ============================================ */
.projects {
  overflow-x: hidden;
}

/* ---- projeto em destaque: o último fechado, sempre com vídeo
   desktop + celular tocando e a história completa visível — sem
   precisar clicar em nada ---- */
.project-featured {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.project-featured-media {
  position: relative;
  flex: 0 0 38%;
  max-width: 380px;
}

.project-featured-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  background: #05050a;
}

.project-featured-phone {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: clamp(56px, 11vw, 88px);
  aspect-ratio: 9 / 19.5;
  border-radius: 14px;
  border: 4px solid #05050a;
  background: #05050a;
  overflow: hidden;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(248, 248, 248, 0.1);
}

.project-featured-phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-featured-body {
  flex: 1;
  min-width: 0;
}

.project-featured--reverse {
  flex-direction: row-reverse;
}

.project-featured--reverse .project-featured-phone {
  right: auto;
  left: -16px;
}

.project-featured-title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
}

.project-featured-desc {
  margin-top: var(--space-2);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.project-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-3);
}

.project-featured-body .service-cta {
  margin-top: var(--space-4);
}

/* ---- galeria: os outros projetos, só a foto e o nome, sem clique ---- */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 24, 51, 0.55), rgba(13, 12, 26, 0.7));
  border: 1px solid rgba(248, 248, 248, 0.08);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(161, 107, 255, 0.35);
  transform: translateY(-4px);
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(161, 107, 255, 0.16), rgba(255, 79, 168, 0.1));
}

.project-card-media::after {
  content: "Ver projeto";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 10px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 18, 0.7);
  border: 1px solid rgba(248, 248, 248, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.project-card:hover .project-card-media::after,
.project-card:focus-visible .project-card-media::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.project-card-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-eyebrow);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.project-card-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
}

.project-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}

.project-card-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 248, 248, 0.14);
  padding: 4px 12px;
  font-family: var(--font-eyebrow);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- galeria compacta: card vira só a foto, com o título por cima
   num degradê — ao passar o mouse por qualquer card da galeria, os
   outros escurecem/borram e o que está sob o cursor se destaca ---- */
.project-card--compact {
  position: relative;
  aspect-ratio: 4 / 5;
  border: none;
  cursor: default;
  transition: transform var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
}

.projects-gallery:hover .project-card--compact {
  opacity: 0.55;
  filter: blur(2px);
  transform: scale(0.97);
}

.projects-gallery:hover .project-card--compact:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.04);
  z-index: 2;
}

.project-card--compact .project-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.project-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-card--compact .project-card-media::after {
  content: none;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  background: linear-gradient(to top, rgba(5, 5, 10, 0.85), rgba(5, 5, 10, 0.25) 55%, transparent);
  pointer-events: none;
}

.project-card-subtitle {
  font-family: var(--font-eyebrow);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(248, 248, 248, 0.75);
}

.project-card-overlay .project-card-title {
  margin-top: 4px;
  font-size: 17px;
}

.project-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}

.project-cta:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 860px) {
  .project-featured {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .project-featured-media {
    flex: none;
    max-width: none;
  }

  .project-featured-phone {
    width: clamp(74px, 20vw, 116px);
    right: 16px;
    bottom: -24px;
  }

  .project-featured--reverse .project-featured-phone {
    right: 16px;
    left: auto;
  }

  .projects-gallery {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
  }
}

@media (max-width: 480px) {
  .projects-gallery {
    gap: 10px;
  }

  .project-card--compact .project-card-media::after {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ============================================
   Cinematic footer (curtain reveal)
   ============================================ */
.footer-curtain {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.cinematic-footer {
  position: fixed;
  inset: auto 0 0 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.footer-aurora {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 80vw;
  height: 55vh;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(161, 107, 255, 0.22), rgba(255, 79, 168, 0.12) 45%, transparent 72%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: footer-breathe 8s ease-in-out infinite alternate;
}

@keyframes footer-breathe {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.9;
  }
}

.footer-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 60px 60px;
  background-image: linear-gradient(to right, rgba(248, 248, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(248, 248, 248, 0.035) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.footer-giant-text {
  position: absolute;
  bottom: -4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21vw;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 248, 248, 0.06);
  background: linear-gradient(180deg, rgba(161, 107, 255, 0.18), transparent 65%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 104px;
  overflow: hidden;
  border-top: 1px solid rgba(248, 248, 248, 0.08);
  border-bottom: 1px solid rgba(248, 248, 248, 0.08);
  background: rgba(11, 11, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee 30s linear infinite;
}

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

.marquee-set {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee-set .dot {
  color: var(--pink);
}

.footer-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4) var(--space-3);
}

.footer-heading {
  font-size: clamp(30px, 5.5vw, 58px);
  max-width: 780px;
  margin-top: var(--space-2);
  background: linear-gradient(180deg, #fff, rgba(248, 248, 248, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: var(--space-5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(248, 248, 248, 0.05), rgba(248, 248, 248, 0.015));
  border: 1px solid rgba(248, 248, 248, 0.09);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(248, 248, 248, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.pill:hover {
  border-color: rgba(161, 107, 255, 0.5);
  background: linear-gradient(145deg, rgba(248, 248, 248, 0.09), rgba(248, 248, 248, 0.03));
  box-shadow: 0 16px 40px -12px rgba(107, 75, 216, 0.4), inset 0 1px 1px rgba(248, 248, 248, 0.14);
}

.pill-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 12px 34px -8px rgba(255, 79, 168, 0.45);
}

.pill-primary:hover {
  box-shadow: 0 16px 44px -8px rgba(255, 79, 168, 0.6);
}

.pill svg {
  width: 18px;
  height: 18px;
}

.pill-icon {
  padding: 0;
  width: 46px;
  height: 46px;
  justify-content: center;
}

.pill-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) var(--space-5);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.footer-social {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-legal {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-right: calc(58px + var(--space-2));
}

.footer-legal a {
  color: var(--text-dim);
  transition: color var(--dur-base) var(--ease-out);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text);
}

@media (max-width: 640px) {
  .footer-giant-text {
    display: none;
  }

  /* o KEPLER gigante de fundo (que o margin-top original abria espaço
     pra evitar) some acima — sem ele, o marquee pode ficar bem mais
     colado ao topo do rodapé */
  .footer-marquee {
    margin-top: var(--space-4);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-social {
    grid-column: 1;
    order: -1;
  }

  .footer-legal {
    grid-column: 1;
    justify-content: center;
    margin-right: 0;
  }

  .footer-bottom {
    padding-bottom: calc(58px + var(--space-3) + var(--space-2));
  }
}

/* ============================================
   Mini pop-up do e-mail (rodapé)
   ============================================ */
.email-popover {
  position: fixed;
  z-index: 70;
  width: 232px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(26, 24, 51, 0.97), rgba(10, 10, 16, 0.99));
  border: 1px solid rgba(248, 248, 248, 0.12);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.6), 0 0 30px rgba(161, 107, 255, 0.18);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.95);
  transform-origin: bottom center;
  transition: opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility var(--dur-base) var(--ease-out);
}

.email-popover.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.email-popover-arrow {
  position: absolute;
  bottom: -6px;
  left: var(--arrow-left, 50%);
  width: 12px;
  height: 12px;
  background: #14121f;
  border-right: 1px solid rgba(248, 248, 248, 0.12);
  border-bottom: 1px solid rgba(248, 248, 248, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.email-popover-label {
  font-family: var(--font-eyebrow);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.email-popover-address {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  word-break: break-word;
}

.email-popover-copy {
  margin-top: var(--space-2);
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* ============================================
   Ripple cursor trail (site-wide)
   ============================================ */
.ripple-cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
  .ripple-cursor-canvas {
    display: none;
  }
}

/* ============================================
   WhatsApp float button
   ============================================ */
.wa-float {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(255, 79, 168, 0.45);
  animation: wa-pulse 2.6s ease-in-out infinite;
  transition: transform var(--dur-fast) var(--ease-out);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  color: var(--bg);
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(255, 79, 168, 0.45), 0 0 0 0 rgba(255, 79, 168, 0.35);
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 79, 168, 0.45), 0 0 0 12px rgba(255, 79, 168, 0);
  }
}

@media (max-width: 480px) {
  .wa-float {
    right: var(--space-2);
    bottom: var(--space-2);
    width: 50px;
    height: 50px;
  }

  .wa-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   Responsive
   ============================================ */
/* ---- mobile: o rodapé fica preso em 100dvh (curtain reveal), mas como
   o conteúdo é mais curto que a tela em telas estreitas, isso cria um
   vão vazio grande (centralização vertical) antes do CTA — mesmo
   problema que Serviços já teve. Vira fluxo normal, compacto. ---- */
@media (max-width: 860px) {
  .footer-curtain {
    height: auto;
    clip-path: none;
  }

  .footer-curtain .cinematic-footer {
    position: static;
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  section {
    padding: var(--space-6) 0;
  }

  .hero-overlay {
    padding-top: 110px;
  }

  .section-head {
    margin-bottom: var(--space-4);
  }

  .footer-pills {
    gap: 10px;
    margin-top: var(--space-4);
  }

  .pill:not(.pill-icon) {
    min-height: 46px;
    padding: 0 22px;
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  section {
    padding: var(--space-5) 0;
  }

  .footer-main {
    padding: var(--space-3) var(--space-3);
  }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-title,
  .hero-quote {
    opacity: 1;
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-reveal-blur] {
    opacity: 1;
    filter: none;
    transform: none;
  }

  [data-panorama] {
    clip-path: none;
  }

  .service-curtain,
  .section-curtain {
    height: auto;
    clip-path: none;
  }

  .service-panel,
  .curtain-panel {
    position: static;
    height: auto;
    overflow: visible;
    filter: none !important;
  }

  .curtain-scroll-content {
    transform: none !important;
  }
}

/* ============================================
   Páginas legais (Termos de Uso / Privacidade)
   ============================================ */
.legal-header {
  position: relative;
  z-index: 1;
  padding: var(--space-3) 0;
}

.legal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.legal-back {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  white-space: nowrap;
}

.legal-back-short {
  display: none;
}

.legal-main {
  padding: var(--space-6) 0 var(--space-8);
}

.legal-container {
  max-width: 760px;
}

.legal-title {
  margin-top: var(--space-2);
  font-size: clamp(32px, 5vw, 48px);
}

.legal-updated {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--text-dim);
}

.legal-body {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--text-muted);
}

.legal-body h2 {
  margin-top: var(--space-3);
  font-size: 20px;
  color: var(--text);
}

.legal-body p {
  font-size: 15.5px;
  line-height: 1.75;
}

.legal-body a {
  color: var(--lilac);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--pink);
}

.legal-cta {
  margin-top: var(--space-6);
}

.legal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(248, 248, 248, 0.08);
  padding: var(--space-4) 0;
}

.legal-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

@media (max-width: 640px) {
  .legal-footer-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .legal-header {
    padding: var(--space-2) 0;
  }

  .legal-header-bar {
    gap: var(--space-2);
  }

  .legal-back {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .legal-main {
    padding: var(--space-4) 0 var(--space-6);
  }

  .legal-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .legal-updated {
    margin-top: var(--space-1);
  }

  .legal-body {
    margin-top: var(--space-4);
    gap: var(--space-2);
  }

  .legal-body h2 {
    margin-top: var(--space-2);
    font-size: 18px;
  }

  .legal-body p {
    font-size: 15px;
    line-height: 1.7;
  }

  .legal-cta {
    margin-top: var(--space-4);
    width: 100%;
  }
}

@media (max-width: 480px) {
  .legal-header .logo {
    font-size: 15px;
  }

  .legal-header .logo .logo-sub {
    font-size: 13px;
  }

  .legal-back-full {
    display: none;
  }

  .legal-back-short {
    display: inline;
  }

  .legal-back {
    padding: 0 14px;
  }
}
