/* ============================================================
   VÉRTICE — estilos do site
   Constrói sobre os tokens de vertice-theme.css (var(--v-*)).
   Âmbar = ação/marca · Azul-aço = navegação/interação
   ============================================================ */

:root {
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1240px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --section-pad: clamp(4.5rem, 9vw, 8rem);

  --cut: 22px; /* corte angular padrão dos cards */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--v-text);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--v-text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: var(--v-accent); color: var(--v-accent-ink);
  padding: .7rem 1.1rem; border-radius: var(--v-radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- fundo: grid técnico + noise ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--v-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--v-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--v-bg) 94%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--v-border);
}
.header-inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: .4rem;
  margin-right: auto;
  color: var(--v-text);
}
.brand-mark-wrap { position: relative; flex: none; line-height: 0; }
.brand-mark {
  flex: none;
  width: 34px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--v-accent-border)) drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: filter .2s ease, transform .2s ease;
}
.brand:hover .brand-mark { filter: drop-shadow(0 0 16px var(--v-accent-border)) drop-shadow(0 2px 6px rgba(0,0,0,.35)); transform: translateY(-1px); }
.footer-mark { width: 32px; height: 35px; }

/* fagulha ocasional subindo da ponta do V */
.brand-spark {
  position: absolute;
  left: 15px; top: 24px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 4px 1px #fff,
    0 0 10px 3px var(--v-accent-hover),
    0 0 18px 6px var(--v-accent-border);
  opacity: 0;
  pointer-events: none;
  animation: spark-rise 9s ease-out infinite;
  animation-delay: 1.4s;
}
@keyframes spark-rise {
  0%, 74% { opacity: 0; transform: translate(0, 0) scale(.3); }
  78% { opacity: 1; transform: translate(0, -2px) scale(1); }
  86% { opacity: 1; transform: translate(1px, -14px) scale(.85); }
  100% { opacity: 0; transform: translate(3px, -32px) scale(.3); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-spark { animation: none; }
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-word em { color: var(--v-accent); font-style: normal; }

.main-nav ul { display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.main-nav a {
  position: relative;
  font-weight: 600; font-size: .93rem;
  color: var(--v-text-muted);
  padding: .3rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--v-steel);
  transition: right .22s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--v-text);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .7rem; }
.header-cta { display: inline-flex; }

.theme-toggle {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--v-surface); color: var(--v-text);
  border: 1px solid var(--v-border); border-radius: var(--v-radius);
  cursor: pointer; flex: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--v-steel); background: var(--v-steel-soft); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { position: absolute; transition: opacity .2s ease, transform .3s ease; }
.icon-moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
.icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(40deg) scale(.6); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle {
  display: none; flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--v-border); border-radius: var(--v-radius);
  background: var(--v-surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--v-text);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: var(--v-bg);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 2rem clamp(1.25rem, 6vw, 3rem);
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mobile-nav.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600; color: var(--v-text);
}
.mobile-nav a:hover { color: var(--v-link); }
.mobile-nav li {
  opacity: 0; transform: translateX(-14px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: calc(var(--i) * 60ms);
}
.mobile-nav.is-open li { opacity: 1; transform: translateX(0); }
.mobile-cta { align-self: flex-start; }

/* ============================================================
   BOTÕES (extensões dos definidos no theme.css)
   ============================================================ */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { box-shadow: 0 10px 30px -12px var(--v-accent-border); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px var(--v-accent-border); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary, .btn-secondary { transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 8vw, 7rem);
  overflow: clip;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow { display: inline-block; }
.hero-copy h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.6rem);
  font-weight: 700;
  margin-top: .5rem;
}
.accent-word { color: var(--v-accent); }
.hero-lead {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.hero-tags li {
  font-family: var(--font-mono); font-size: .76rem;
  color: var(--v-text-subtle);
  border: 1px solid var(--v-border);
  border-radius: 999px; padding: 5px 12px;
  animation: breathe-border 4.5s ease-in-out infinite;
}
.hero-tags li:nth-child(2) { animation-duration: 5.4s; animation-delay: -1.8s; }
.hero-tags li:nth-child(3) { animation-duration: 3.9s; animation-delay: -3.1s; }
@keyframes breathe-border {
  0%, 100% { border-color: var(--v-border); box-shadow: 0 0 0 0 transparent; }
  50% { border-color: var(--v-accent-border); box-shadow: 0 0 12px 0 var(--v-accent-border); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tags li { animation: none; }
}

/* Reveal on load */
[data-reveal-child] {
  opacity: 0; transform: translateY(18px);
  animation: reveal-up .7s cubic-bezier(.22,.98,.36,1) forwards;
  animation-delay: calc(var(--d) * 110ms + 120ms);
}
[data-reveal-stage] {
  opacity: 0; transform: translateY(24px) scale(.97);
  animation: reveal-stage .9s cubic-bezier(.22,.98,.36,1) forwards;
  animation-delay: .3s;
}
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-stage { to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal-child], [data-reveal-stage] { animation: none; opacity: 1; transform: none; }
}

/* palco escuro do hero, sempre no tema dark localmente */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  background: var(--v-bg);
  border: 1px solid var(--v-border);
  border-radius: 28px;
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 46px 100%, 0 calc(100% - 46px));
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.stage-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--v-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--v-border) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
}
.stage-glow {
  position: absolute; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--v-accent-soft) 0%, transparent 70%);
  filter: blur(10px);
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.stage-logo-wrap {
  position: relative; z-index: 2;
  width: 86%;
  animation: float-logo 7s ease-in-out infinite;
}
.stage-logo {
  width: 100%; display: block;
  filter: drop-shadow(0 0 26px var(--v-accent-border)) drop-shadow(0 20px 40px rgba(0,0,0,.55));
  animation: glow-pulse 4.5s ease-in-out infinite;
}
.stage-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.7) 49%, var(--v-accent) 52%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 260% 260%;
  background-position: 160% -40%;
  mask-image: url("../assets/logo-full-transparent.png");
  -webkit-mask-image: url("../assets/logo-full-transparent.png");
  mask-mode: alpha; -webkit-mask-mode: alpha;
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  animation: sheen-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 18px var(--v-accent-border)) drop-shadow(0 20px 40px rgba(0,0,0,.55)); }
  50% { filter: drop-shadow(0 0 40px var(--v-accent-border)) drop-shadow(0 20px 40px rgba(0,0,0,.55)); }
}
@keyframes sheen-sweep {
  0%, 30% { background-position: 160% -40%; }
  62%, 100% { background-position: -60% 140%; }
}
.shard {
  position: absolute; z-index: 1;
  background: linear-gradient(155deg, var(--v-accent-soft), transparent 70%);
  border: 1px solid var(--v-accent-border);
}
.shard-a { width: 90px; height: 90px; top: 12%; left: 10%; clip-path: polygon(0 0, 100% 30%, 40% 100%); animation: drift 9s ease-in-out infinite; }
.shard-b { width: 70px; height: 70px; bottom: 14%; right: 12%; clip-path: polygon(20% 0, 100% 15%, 80% 100%, 0 70%); animation: drift 11s ease-in-out infinite reverse; }
.shard-c { width: 50px; height: 50px; top: 55%; right: 6%; clip-path: polygon(0 20%, 100% 0, 80% 100%); animation: drift 8s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(6px,-10px) rotate(8deg); }
}
.stage-coord {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  display: flex; gap: 14px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--v-text-subtle);
}
@media (prefers-reduced-motion: reduce) {
  .stage-glow, .stage-logo, .stage-logo-wrap, .stage-sheen, .shard { animation: none; }
}

.hero-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: var(--v-bg);
  clip-path: polygon(0 100%, 0 40%, 100% 0, 100% 100%);
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferenciais { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.diff-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  overflow: hidden;
}
.diff-item {
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border-left: 1px solid var(--v-border);
  background: var(--v-surface);
  transition: background .2s ease;
}
.diff-item:first-child { border-left: none; }
.diff-item:hover { background: var(--v-surface-2); }
.diff-num {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--v-accent); letter-spacing: .08em;
}
.diff-num::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--v-accent);
  transform: scaleX(0); transform-origin: left;
}
.diff-item.in-view .diff-num::after {
  animation: underline-draw .6s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: .15s;
}
@keyframes underline-draw { to { transform: scaleX(1); } }
.diff-item h3 { font-size: 1.05rem; margin: .6rem 0 .4rem; }
.diff-item p { font-size: .9rem; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .diff-num::after { animation: none; transform: scaleX(1); }
}

/* ============================================================
   SEÇÃO — título padrão
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-top: .5rem;
}
.section-lead { font-size: 1rem; margin-top: .75rem; }

.services, .portfolio, .about, .contact {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--v-border);
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.service-card {
  position: relative;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.service-card:hover {
  border-color: var(--v-border-strong);
  background: var(--v-surface-2);
  transform: translateY(-4px);
}
.service-card.in-view {
  animation: card-flash .55s ease-out;
  animation-delay: .85s;
}
@keyframes card-flash {
  0% { border-color: var(--v-border); }
  35% { border-color: var(--v-accent); }
  100% { border-color: var(--v-border); }
}
.service-icon {
  position: relative;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--v-accent);
  background: var(--v-accent-soft);
  border: 1px solid var(--v-accent-border);
  border-radius: var(--v-radius);
  margin-bottom: 1.25rem;
}
.service-icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--v-accent);
  opacity: 0;
  pointer-events: none;
}
.service-card.in-view .service-icon::after {
  animation: icon-shock .6s ease-out forwards;
  animation-delay: .85s;
}
@keyframes icon-shock {
  0% { transform: scale(1); opacity: .85; }
  100% { transform: scale(1.9); opacity: 0; }
}
.service-card h3 { font-size: 1.12rem; }
.service-card p { font-size: .92rem; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .service-card.in-view { animation: none; }
  .service-card.in-view .service-icon::after { animation: none; opacity: 0; }
}

/* ícone desenhado em traço ao entrar na tela */
.service-icon svg path,
.service-icon svg rect,
.service-icon svg circle:not([fill]) {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.service-icon svg circle[fill] {
  opacity: 0;
  transform-origin: center;
  transform: scale(.3);
}
.service-card.in-view .service-icon svg path,
.service-card.in-view .service-icon svg rect,
.service-card.in-view .service-icon svg circle:not([fill]) {
  animation: draw-icon .9s cubic-bezier(.4,0,.2,1) forwards;
}
.service-card.in-view .service-icon svg circle[fill] {
  animation: dot-pop .3s ease-out forwards;
  animation-delay: .7s;
}
@keyframes draw-icon { to { stroke-dashoffset: 0; } }
@keyframes dot-pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .service-icon svg path,
  .service-icon svg rect,
  .service-icon svg circle:not([fill]) { animation: none; stroke-dashoffset: 0; }
  .service-icon svg circle[fill] { animation: none; opacity: 1; transform: scale(1); }
}

/* ============================================================
   PROJETOS
   ============================================================ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem;
}
.project-card {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  overflow: hidden;
  background: var(--v-surface);
  transition: border-color .2s ease, transform .2s ease;
}
.project-card:hover { border-color: var(--v-border-strong); transform: translateY(-4px); }

/* janela de navegador */
.project-window { display: block; }
.window-bar {
  display: flex; align-items: center; gap: .65rem;
  padding: 9px 12px;
  background: var(--v-surface-2);
  border-bottom: 1px solid var(--v-border);
}
.window-dots { display: flex; gap: 5px; flex: none; }
.window-dots i {
  display: block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--v-border-strong);
  font-style: normal;
}
.window-url {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--v-text-subtle);
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: 999px;
  padding: 3px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window-shot {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--v-surface-2);
}
.window-shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  transition: transform .4s ease;
}
.project-card:hover .window-shot img { transform: scale(1.045); }

.project-info { padding: 1.25rem 1.4rem 1.5rem; }
.project-index {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--v-accent); letter-spacing: .05em;
}
.project-info h3 { font-size: 1.05rem; margin: .45rem 0 .3rem; }
.project-info p { font-size: .88rem; margin: 0 0 .8rem; color: var(--v-text-subtle); }
.project-link {
  display: inline-block;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--v-link);
}
.project-link:hover { color: var(--v-link-hover); }
.project-link.is-disabled {
  color: var(--v-text-subtle);
  font-weight: 500;
  cursor: default;
}
.project-window.is-locked .window-shot img { filter: grayscale(.25); }
.project-card:has(.is-locked):hover .window-shot img { transform: none; }

/* ============================================================
   SOBRE
   ============================================================ */
.about-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about-copy p { font-size: 1rem; }
.about-visual { display: flex; justify-content: center; }
.about-frame {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 1;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  background: var(--v-surface);
  overflow: hidden;
}
.about-lockup {
  position: absolute; z-index: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  gap: clamp(.5rem, 2vw, .9rem);
  pointer-events: none;
}
.about-v-draw {
  width: clamp(46px, 16vw, 72px);
  aspect-ratio: 1;
  overflow: visible;
  flex: none;
}
.about-v-draw path {
  fill: none;
  stroke: var(--v-accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: .9;
}
.about-v-draw path:nth-child(2) { stroke: var(--v-accent-hover); opacity: .75; }
.about-visual.in-view .about-v-draw path {
  animation: draw-v 1.1s cubic-bezier(.4,0,.2,1) forwards;
}
.about-visual.in-view .about-v-draw path:nth-child(2) { animation-delay: .3s; }
@keyframes draw-v { to { stroke-dashoffset: 0; } }

.about-wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  color: var(--v-text);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
.about-wordmark em { color: var(--v-accent); font-style: normal; }
.about-visual.in-view .about-wordmark {
  animation: wordmark-reveal .8s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: 1.35s;
}
@keyframes wordmark-reveal { to { clip-path: inset(0 0% 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .about-v-draw path { animation: none; stroke-dashoffset: 0; }
  .about-wordmark { animation: none; clip-path: none; }
}
.about-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(var(--v-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--v-border) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .4;
}
.about-lines {
  position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(45deg, var(--v-border) 0 1px, transparent 1px 22px);
  opacity: .6;
}
.about-lines::after {
  content: "";
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 30% 30%, var(--v-accent-soft), transparent 55%),
              radial-gradient(circle at 75% 75%, var(--v-steel-soft), transparent 55%);
  animation: about-drift 11s ease-in-out infinite;
}
@keyframes about-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 3%) scale(1.06); }
}
.frame-corner {
  position: absolute; width: 26px; height: 26px; z-index: 2;
  border: 2px solid var(--v-accent);
}
.frame-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.frame-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.about-coord {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--v-text-subtle);
}
@media (prefers-reduced-motion: reduce) {
  .about-lines::after { animation: none; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--v-bg);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  clip-path: polygon(0 34px, 100% 0, 100% calc(100% - 34px), 0 100%);
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 22ch; margin: 0 auto .6rem; }
.cta-inner p { max-width: 48ch; margin: 0 auto 1.75rem; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-inner {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
}
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-details { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-label {
  display: block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--v-text-subtle);
  margin-bottom: .2rem;
}
.contact-details a { font-size: 1.02rem; font-weight: 600; }
.contact-details span:not(.contact-label) { color: var(--v-text); font-size: 1.02rem; }

.contact-form {
  position: relative;
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: clamp(1.9rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.3rem;
  overflow: hidden;
}

/* barra de progresso do preenchimento */
.form-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--v-border);
}
.form-progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--v-accent), var(--v-accent-hover));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

.form-row { display: grid; }
.contact-form textarea.input { resize: vertical; font-family: inherit; }
.form-note { min-height: 1.2em; font-size: .88rem; color: var(--v-success); margin: 0; }

/* campo: ícone + rótulo flutuante + contorno em traço no foco */
.field {
  position: relative;
  isolation: isolate;
}
.field .input {
  width: 100%; padding-left: 2.6rem; position: relative;
  font-size: 16px; font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus-within .input {
  border-color: var(--v-accent);
  box-shadow: 0 0 0 3px var(--v-accent-soft);
}
.field-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--v-text-subtle);
  pointer-events: none;
  transition: color .2s ease;
  z-index: 1;
}
.field:has(textarea) .field-icon { top: 16px; transform: none; }
.field:focus-within .field-icon { color: var(--v-accent); }

.field label {
  position: absolute; left: 2.6rem; top: 50%; transform: translateY(-50%);
  font-size: .95rem; color: var(--v-text-subtle);
  pointer-events: none;
  transition: transform .18s ease, top .18s ease, left .18s ease, color .18s ease, background .18s ease;
  z-index: 1;
}
.field:has(textarea) label { top: 16px; transform: none; }

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field-select label {
  top: 0; left: 1rem;
  transform: translateY(-50%) scale(.82);
  background: var(--v-surface);
  padding: 0 6px;
}
.field input:focus ~ label,
.field textarea:focus ~ label,
.field-select:focus-within label {
  color: var(--v-accent);
}
@media (prefers-reduced-motion: reduce) {
  .field:focus-within::before { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--v-border);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--v-surface);
}
.footer-glow {
  position: absolute; z-index: 0;
  right: -10%; top: -35%;
  width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--v-accent-soft), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.footer-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--v-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--v-border) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .3;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--v-border);
}
.footer-col-brand .footer-brand { margin-right: 0; margin-bottom: .9rem; }
.footer-tagline { font-size: .92rem; max-width: 30ch; margin: 0; }

.footer-heading {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--v-accent);
  margin: 0 0 1rem;
}
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a, .footer-contact a, .footer-contact span {
  font-size: .92rem; color: var(--v-text-muted);
}
.footer-contact a { font-weight: 600; color: var(--v-text); }
.footer-nav a, .footer-contact a { transition: color .15s ease, padding-left .15s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--v-link); padding-left: .3rem; }

.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--v-border); border-radius: var(--v-radius);
  color: var(--v-text-muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.footer-social a:hover { border-color: var(--v-steel); color: var(--v-link); background: var(--v-steel-soft); transform: translateY(-2px); }

.footer-bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--v-text-subtle); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VOLTAR AO TOPO
   ============================================================ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 91;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--v-accent); color: var(--v-accent-ink);
  border-radius: 50%;
  box-shadow: 0 12px 30px -10px var(--v-accent-border), var(--v-shadow);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover {
  background: var(--v-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px var(--v-accent-border), var(--v-shadow);
}

.to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--v-surface); color: var(--v-text);
  border: 1px solid var(--v-border); border-radius: var(--v-radius);
  box-shadow: var(--v-shadow);
  cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, border-color .15s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { border-color: var(--v-steel); color: var(--v-link); }

/* ============================================================
   SCROLL REVEAL (seções abaixo da dobra)
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.98,.36,1), transform .7s cubic-bezier(.22,.98,.36,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { max-width: 460px; margin: 0 auto; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-item:nth-child(3) { border-left: none; }
  .diff-item:nth-child(3), .diff-item:nth-child(4) { border-top: 1px solid var(--v-border); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-item { border-left: none !important; border-top: 1px solid var(--v-border); }
  .diff-item:first-child { border-top: none; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
