/* ============================================================
   AUGUSTO SANTANA — Estúdio digital de alto desempenho
   Design system: dark premium · lime elétrico · violeta
   ============================================================ */

:root {
  --bg: #07070c;
  --bg-2: #0d0e15;
  --surface: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f4f5f7;
  --muted: #9a9db0;
  --lime: #d5ff3f;
  --lime-soft: rgba(213, 255, 63, 0.14);
  --violet: #7c4dff;
  --cyan: #38bdf8;
  --dark-ink: #07070c;

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --nav-h: 84px;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-locked { overflow: hidden; }

::selection { background: var(--lime); color: var(--dark-ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
img, svg, canvas { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(1240px, 100% - clamp(2.5rem, 7vw, 6rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ---------- Textura de ruído global ---------- */
.noise {
  position: fixed;
  inset: -50%;
  z-index: 400;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barra de progresso do scroll ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--violet));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 250;
  pointer-events: none;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 600;
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease-io);
  animation: preloader-failsafe 0.6s ease 5s forwards;
}
.preloader.is-done { transform: translateY(-101%); }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

.pre-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 6.2vw, 5rem);
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.6rem, 2.2vw, 1.4rem);
  overflow: hidden;
  padding: 0 1rem 0.1em;
}
.pre-name .word { display: flex; }
.pre-name .ltr {
  display: inline-block;
  transform: translateY(120%);
  animation: pre-ltr-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
.pre-name .word:last-child .ltr { color: var(--lime); }
@keyframes pre-ltr-in { to { transform: translateY(0); } }

.preloader.is-leaving .pre-name .ltr {
  animation: pre-ltr-out 0.5s var(--ease-io) forwards;
  animation-delay: calc(var(--i) * 20ms);
}
@keyframes pre-ltr-out { to { transform: translateY(-120%); } }

.pre-counter {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 238, 0.35);
}
.pre-bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
}
.pre-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Navegação ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transform: translateY(-110%);
  transition: transform 0.7s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
body.is-loaded .nav { transform: translateY(0); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
body.menu-open .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-dot { color: var(--lime); }

.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-cta { flex-shrink: 0; }
body.menu-open .nav-cta { opacity: 0; pointer-events: none; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}
.menu-toggle:hover { border-color: var(--lime); }
.menu-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle span:first-child { transform: translate(-50%, calc(-50% - 3.5px)); }
.menu-toggle span:last-child { transform: translate(-50%, calc(-50% + 3.5px)); }
body.menu-open .menu-toggle span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: calc(var(--nav-h) + 1rem) clamp(1.8rem, 8vw, 4rem) 3rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
body.menu-open .menu-overlay {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-io), visibility 0s;
}
.menu-links { display: flex; flex-direction: column; gap: 0.2rem; }
.menu-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out), color 0.3s ease;
  transition-delay: 0s;
}
.menu-links a i {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--lime);
}
.menu-links a:hover { color: var(--lime); }
body.menu-open .menu-links a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.25s + var(--i) * 65ms);
}
.menu-foot {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0s, transform 0.5s var(--ease-out) 0s;
}
body.menu-open .menu-foot { opacity: 1; transform: none; transition-delay: 0.65s; }
.menu-foot > a { color: var(--lime); font-weight: 600; }
.menu-social { display: flex; gap: 1.4rem; }
.menu-social a { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.menu-social a:hover { color: var(--text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease,
              color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.btn-arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

.btn-primary {
  background: var(--lime);
  color: var(--dark-ink);
  box-shadow: 0 0 0 rgba(213, 255, 63, 0);
}
.btn-primary:hover { box-shadow: 0 8px 42px rgba(213, 255, 63, 0.35); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(213, 255, 63, 0.06);
}

.btn-sm { padding: 0.8rem 1.5rem; font-size: 0.88rem; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.05rem; }

/* ---------- Sistema de reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Split text (palavra a palavra, com máscara) */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
[data-split] .wi {
  display: inline-block;
  transform: translateY(115%) rotate(3deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 50ms);
  will-change: transform;
}
[data-split].is-visible .wi { transform: translateY(0) rotate(0deg); }

/* ---------- Tipografia de seção ---------- */
.sec {
  position: relative;
  padding-block: clamp(6rem, 11vw, 10rem);
  scroll-margin-top: 2rem;
}
.sec-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 900px; }
.sec-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
.sec-note { max-width: 340px; color: var(--muted); font-size: 0.98rem; margin-bottom: 0.6rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: '';
  width: 26px; height: 1.5px;
  background: var(--lime);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }

h2 {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.accent {
  font-weight: 600;
  color: var(--lime);
}

.ghost {
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  right: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 17vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 0 6rem;
  overflow: hidden;
}
.orbs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.033) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 25%, transparent 72%);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}
.hero-title {
  font-size: clamp(2.5rem, 7.8vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 16ch;
}
.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero-sub strong { color: var(--text); font-weight: 700; }

/* Carrossel de projetos do hero */
.hero-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero-carousel-track {
  display: flex;
  width: max-content;
  animation: hero-slide 44s linear infinite;
}
.hero-carousel:hover .hero-carousel-track { animation-play-state: paused; }
.hero-carousel-group {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  padding-right: clamp(1rem, 1.8vw, 1.5rem);
  flex-shrink: 0;
}
@keyframes hero-slide { to { transform: translateX(-50%); } }

.hero-slide {
  position: relative;
  width: clamp(240px, 25vw, 330px);
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
.hero-slide:hover { transform: translateY(-6px); border-color: rgba(213, 255, 63, 0.4); }
.slide-art {
  position: absolute;
  inset: 0;
  isolation: isolate;
  container-type: inline-size;
}
.slide-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.9s var(--ease-out);
}
.hero-slide:hover .slide-art::before { transform: scale(1.06); }
.slide-metric {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
}
.slide-info {
  position: absolute;
  left: 0.9rem; bottom: 0.8rem; right: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-align: left;
}
.slide-info b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.slide-info i {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-scroll {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-line {
  width: 44px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateX(-100%);
  animation: scroll-line 2.2s var(--ease-io) infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.hero-stamp {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: 2rem;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
}
.hero-stamp svg {
  position: absolute;
  inset: 0;
  animation: spin 16s linear infinite;
}
.hero-stamp text {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: rgba(242, 242, 238, 0.55);
}
.stamp-arrow { color: var(--lime); font-size: 1.3rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
  padding-right: 1.2rem;
}
.marquee-group span::after {
  content: '✦';
  color: var(--lime);
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 1.2rem;
}
.marquee-group .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 238, 0.4);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-visual { position: relative; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(213, 255, 63, 0.22), transparent 55%),
    radial-gradient(80% 80% at 15% 85%, rgba(139, 92, 246, 0.35), transparent 60%),
    linear-gradient(160deg, #14141d, #0c0c12);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(80% 60% at 50% 50%, #000, transparent);
}
.portrait-mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 242, 238, 0.5);
}
.portrait-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  right: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(242, 242, 238, 0.75);
  letter-spacing: 0.04em;
  text-align: left;
}
.chip {
  position: absolute;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(15, 15, 22, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 7%; right: -6%; color: var(--lime); border-color: rgba(213, 255, 63, 0.35); }
.chip-2 { bottom: 26%; left: -8%; animation-delay: -1.8s; color: var(--cyan); border-color: rgba(92, 225, 255, 0.3); }
.chip-3 { top: 42%; right: -10%; animation-delay: -3.2s; color: #c4b5fd; border-color: rgba(139, 92, 246, 0.4); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about-body p { color: var(--muted); max-width: 56ch; }
.about-body p + p { margin-top: 1.1rem; }
.about-body .sec-head { margin-bottom: 2rem; }

.stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: background-color 0.35s ease;
}
.stat:hover { background: var(--bg-2); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  color: var(--lime);
}
.stat > span { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

/* ---------- Serviços ---------- */
.svc-list { border-top: 1px solid var(--border); }
.svc-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1.35fr) minmax(0, 0.65fr) 56px;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(0.8rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease, padding 0.4s var(--ease-out);
}
.svc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.4s ease;
}
.svc-main { display: flex; flex-direction: column; gap: 0.5rem; }
.svc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.svc-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 52ch;
  transition: color 0.4s ease;
}
.svc-tags {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  transition: color 0.4s ease;
}
.svc-arrow {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.svc-row:hover {
  background: var(--lime);
  color: var(--dark-ink);
  padding-inline: clamp(1.6rem, 3vw, 2.6rem) clamp(0.8rem, 2vw, 1.6rem);
}
.svc-row:hover .svc-num,
.svc-row:hover .svc-desc,
.svc-row:hover .svc-tags { color: rgba(10, 10, 15, 0.6); }
.svc-row:hover .svc-arrow {
  background: var(--dark-ink);
  color: var(--lime);
  border-color: var(--dark-ink);
  transform: rotate(45deg);
}


/* ---------- Projetos ---------- */
/* Projeto em destaque */
.pj-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(0.9rem, 1.6vw, 1.3rem);
  background: linear-gradient(180deg, var(--surface), transparent);
  margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
  transition: border-color 0.45s ease, transform 0.5s var(--ease-out);
}
.pj-featured:hover { border-color: rgba(213, 255, 63, 0.35); }
.pj-featured .pj-art { aspect-ratio: 16 / 11; height: 100%; }
.pj-featured-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2.5vw, 2.4rem) clamp(1rem, 2vw, 1.8rem) clamp(1.2rem, 2vw, 1.6rem);
}
.pj-cat {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}
.pj-featured-body h3 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.pj-featured-body > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-top: 0.9rem;
  max-width: 42ch;
}
.pj-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: auto;
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  list-style: none;
}
.pj-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1.1;
}
.pj-stats span { font-size: 0.82rem; color: var(--muted); }
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  list-style: none;
}
.pj-tags li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.pj-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  transition: gap 0.35s var(--ease-out), color 0.3s ease;
}
.pj-cta span { transition: transform 0.35s var(--ease-out); }
.pj-featured:hover .pj-cta { color: var(--lime); gap: 0.8rem; }

/* Grid de apoio */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2rem);
  align-items: start;
}

.pj-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 6px);
  transition: transform 0.2s ease-out;
}
[data-tilt] {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.pj-art {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  container-type: inline-size;
}
.pj-art::before {
  content: '';
  position: absolute;
  inset: -6%;
  z-index: -1;
  transition: transform 0.9s var(--ease-out);
}
.project:hover .pj-art::before { transform: scale(1.07) rotate(1.2deg); }

.art-1::before {
  background:
    radial-gradient(70% 90% at 85% 15%, rgba(10, 10, 15, 0.4), transparent 60%),
    repeating-radial-gradient(circle at 15% 85%, transparent 0 46px, rgba(10, 10, 15, 0.14) 46px 48px),
    linear-gradient(135deg, #d5ff3f 0%, #6ee7a0 60%, #2dd4bf 100%);
}
.art-2::before {
  background:
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(255, 255, 255, 0.09) 34px 36px),
    radial-gradient(80% 80% at 20% 20%, #a78bfa, transparent 70%),
    linear-gradient(150deg, #6d5cf6 0%, #312e81 70%, #171636 100%);
}
.art-3::before {
  background:
    repeating-radial-gradient(circle at 80% 20%, transparent 0 40px, rgba(255, 244, 224, 0.12) 40px 42px),
    linear-gradient(140deg, #f5c884 0%, #c2703d 55%, #5c2e18 100%);
}
.art-4::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px),
    linear-gradient(150deg, #64748b 0%, #1e293b 60%, #0f172a 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.pj-metric {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
}
.pj-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0.4rem 0;
}
.pj-info .pj-cat { margin-bottom: 0.45rem; font-size: 0.72rem; letter-spacing: 0.14em; }
.pj-info h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.pj-summary {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.7rem 0.4rem 0;
}
.pj-card .pj-tags { margin-top: 1rem; padding: 0 0.4rem; }
.pj-card .pj-tags li { font-size: 0.72rem; padding: 0.32rem 0.7rem; }
.pj-arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.5s var(--ease-out);
}
.project:hover .pj-arrow {
  background: var(--lime);
  color: var(--dark-ink);
  border-color: var(--lime);
  transform: rotate(45deg);
}

/* ---------- Processo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
  counter-reset: step;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  background: linear-gradient(180deg, var(--surface), transparent);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
.step:hover { transform: translateY(-8px); border-color: rgba(213, 255, 63, 0.45); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 238, 0.3);
  margin-bottom: 1.6rem;
  transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
.step:hover .step-num { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.step h3 {
  font-size: clamp(1.12rem, 1.2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.step p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.step::after {
  content: '';
  position: absolute;
  right: -30%;
  top: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 255, 63, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.step:hover::after { opacity: 1; }

/* ---------- Depoimentos ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
}
.testi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
  padding: clamp(1.8rem, 2.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
.testi:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); }
.testi::before {
  content: '“';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--lime);
  display: block;
  height: 0.35em;
}
.testi blockquote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}
.testi figcaption { display: flex; align-items: center; gap: 0.95rem; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-ink);
  flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg, #d5ff3f, #6ee7a0); }
.av-2 { background: linear-gradient(135deg, #a78bfa, #5ce1ff); }
.av-3 { background: linear-gradient(135deg, #ffb45c, #ff7a9e); }
.testi figcaption b { display: block; font-size: 0.95rem; }
.testi figcaption div > span { font-size: 0.82rem; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta {
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding-block: clamp(7rem, 13vw, 12rem);
}
.cta-content { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.cta .kicker { margin-bottom: 0; }
.cta-title {
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  max-width: 12ch;
}
.cta-sub { color: var(--muted); max-width: 480px; }
.cta-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.email-copy .email-label { transition: color 0.3s ease; }
.email-copy.is-copied { border-color: var(--lime); color: var(--lime); }
.cta-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-note::before { content: '⚡'; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand p { color: var(--muted); max-width: 30ch; margin-top: 1rem; font-size: 0.95rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col b {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  width: fit-content;
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--lime); transform: translateX(5px); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.to-top {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.4s var(--ease-out);
}
.to-top:hover {
  background: var(--lime);
  color: var(--dark-ink);
  border-color: var(--lime);
  transform: translateY(-4px);
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1.1rem, 3vw, 2rem);
  bottom: clamp(1.1rem, 3vw, 2rem);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 210;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  opacity: 0;
  transform: translateY(130%) scale(0.6);
  transition: transform 0.6s var(--ease-out), opacity 0.5s ease, box-shadow 0.35s ease;
}
body.is-loaded .wa-float { opacity: 1; transform: none; transition-delay: 1s; }
body.menu-open .wa-float { opacity: 0; transform: scale(0.6); pointer-events: none; }
.wa-float:hover { box-shadow: 0 16px 42px rgba(37, 211, 102, 0.6); }
.wa-float svg { position: relative; z-index: 1; }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Mockups de site nos cards de projeto ---------- */
.pj-metric, .slide-metric { z-index: 2; }
.mock-win {
  position: absolute;
  top: 8%; left: 7%; right: 7%; bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 2.4cqw 2.4cqw 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.4);
  font-size: 4.1cqw;
  text-align: left;
  line-height: 1;
}
.mk-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2em;
  padding: 0 1em;
  flex-shrink: 0;
  background: #eceef1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mk-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: #cdd2da; }
.mk-dot:nth-child(1) { background: #ff5f57; }
.mk-dot:nth-child(2) { background: #febc2e; }
.mk-dot:nth-child(3) { background: #28c840; }
.mk-addr {
  margin-left: 0.6em;
  flex: 1;
  max-width: 62%;
  height: 1.3em;
  display: flex;
  align-items: center;
  padding: 0 0.9em;
  border-radius: 0.7em;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 0.62em;
  color: #9aa1ab;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.mk-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.2em;
  overflow: hidden;
}
.mk-nav { display: flex; align-items: center; justify-content: space-between; }
.mk-logo { width: 3.2em; height: 0.95em; border-radius: 0.3em; background: var(--mk-ink); }
.mk-logo.wide { width: 4.4em; }
.mk-links { display: flex; gap: 0.7em; }
.mk-links i { width: 1.7em; height: 0.5em; border-radius: 0.25em; background: var(--mk-soft); }
.mk-cart { width: 1em; height: 1em; border-radius: 0.28em; background: var(--mk-accent); }
.mk-hero { display: flex; flex-direction: column; gap: 0.7em; }
.mk-split { flex-direction: row; align-items: center; gap: 1.2em; }
.mk-col { display: flex; flex-direction: column; gap: 0.6em; flex: 1; min-width: 0; }
.mk-h { height: 1.35em; width: 82%; border-radius: 0.3em; background: var(--mk-ink); }
.mk-h.big { height: 1.9em; width: 92%; }
.mk-line { height: 0.55em; width: 100%; border-radius: 0.3em; background: var(--mk-soft); }
.mk-line.s { width: 62%; }
.mk-btn { height: 1.6em; width: 4.6em; border-radius: 0.85em; background: var(--mk-accent); flex-shrink: 0; }
.mk-btn.xs { height: 1.2em; width: 3em; }
.mk-shot { flex: 1; align-self: stretch; min-height: 4.4em; border-radius: 0.6em; background: var(--mk-shot); }
.mk-shot--card { width: 70%; align-self: center; min-height: 3.6em; box-shadow: 0 1em 2em rgba(0, 0, 0, 0.3); }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; margin-top: auto; }
.mk-card { aspect-ratio: 1; border-radius: 0.5em; background: var(--mk-shot); }
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.mk-cols span { height: 3.2em; border-radius: 0.4em; background: var(--mk-soft); }
.mk-center { align-items: center; text-align: center; }
.mk-center .mk-h, .mk-center .mk-line { align-self: center; }

.mk-page--aurora { background: #fbfdfb; --mk-ink: #1c2b21; --mk-soft: #d8e8da; --mk-accent: #7ac74f; --mk-shot: linear-gradient(135deg, #c7f0a8, #6cc07a); }
.mk-page--nave { background: #14122b; --mk-ink: #e7e9ff; --mk-soft: #40397a; --mk-accent: #8b5cf6; --mk-shot: linear-gradient(135deg, #8b5cf6, #4318a8); }
.mk-page--origem { background: #fdf7f0; --mk-ink: #3a241a; --mk-soft: #ecdcc9; --mk-accent: #c2703d; --mk-shot: linear-gradient(135deg, #ecc79c, #b5673a); }
.mk-page--atlas { background: #f7f9fc; --mk-ink: #1e293b; --mk-soft: #dbe2ec; --mk-accent: #1e3a8a; --mk-shot: linear-gradient(135deg, #94a3b8, #334155); }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .svc-row { grid-template-columns: 2.6rem minmax(0, 1fr) 56px; }
  .svc-tags { display: none; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 440px; }
  .chip-1 { right: 2%; }
  .chip-2 { left: -2%; }
  .chip-3 { right: -2%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .hero-stamp { display: none; }
  .pj-featured { grid-template-columns: 1fr; }
  .pj-featured .pj-art { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  :root { --nav-h: 72px; }
  .nav-cta { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 48px; }
  .svc-num { display: none; }
  .svc-arrow { width: 48px; height: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], [data-split] .wi { opacity: 1; transform: none; }
  .preloader { display: none; }
  .nav { transform: none; }
}
