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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--elev { background: var(--bg-elev); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================
   TIPOGRAFIA
   ========================================================== */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.label--accent { color: var(--accent); }
.label__num { color: var(--accent); }

.h-display,
.h1,
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.section-head__title { display: grid; gap: var(--s-4); }
.section-head__aside { max-width: 380px; color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================
   COMPONENTES
   ========================================================== */

/* Botões */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  height: var(--btn-h);
  padding-inline: var(--s-6);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }

/* "Lâmpada" do ÚNICO, em azul */
.btn--flicker { animation: flicker 4s infinite; }
@keyframes flicker {
  0%, 90% { background: var(--text); color: var(--bg); box-shadow: none; }
  91%, 93% { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-glow); }
  92%, 94% { background: var(--text); color: var(--bg); box-shadow: none; }
  96%, 100% { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-glow); }
}
.btn--flicker:hover { animation: none; background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-glow); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { --btn-h: 60px; padding-inline: var(--s-7); font-size: 0.8125rem; }

.btn__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Status / live dot */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.dot--ok { background: var(--ok); --accent-glow: rgba(52, 211, 153, 0.6); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Caixa com cantos em colchete */
.bracket-box {
  --c: 14px;
  position: relative;
  padding: var(--s-4) var(--s-6);
  text-align: center;
}
.bracket-box::before,
.bracket-box::after,
.bracket-box > .bracket-box__c::before,
.bracket-box > .bracket-box__c::after {
  content: "";
  position: absolute;
  width: var(--c);
  height: var(--c);
  border: 1px solid var(--line-strong);
}
.bracket-box::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bracket-box::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bracket-box > .bracket-box__c::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bracket-box > .bracket-box__c::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Tag / pílula */
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: var(--s-3);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Marquee */
.marquee { overflow: hidden; display: flex; user-select: none; }
.marquee__track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: marquee var(--marquee-dur, 30s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reveal ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}
.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
}
.nav { display: flex; gap: var(--s-5); }
.nav--right { justify-content: flex-end; align-items: center; }

.nav-bracket {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-bracket::before { content: "["; margin-right: 2px; }
.nav-bracket::after { content: "]"; margin-left: 2px; }
.nav-bracket:hover,
.nav-bracket.is-active { color: var(--text); }
.nav-bracket:hover::before,
.nav-bracket:hover::after,
.nav-bracket.is-active::before,
.nav-bracket.is-active::after { color: var(--accent); }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }

.menu-toggle { display: none; width: 40px; height: 40px; position: relative; justify-self: end; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
}
.mobile-menu a:hover { color: var(--accent); }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open { overflow: hidden; }

/* ==========================================================
   01 HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: calc(var(--header-h) + var(--s-7)) var(--s-8);
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.star--blue { background: var(--accent-hover); box-shadow: 0 0 6px var(--accent-glow); }
.star--glow { box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
/* Pausa as animações do hero quando ele sai da tela */
.hero.is-offscreen .star,
.hero.is-offscreen .marquee__track { animation-play-state: paused; }
.hero__glow {
  position: absolute;
  left: 50%; bottom: -40%;
  width: 120vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(39, 118, 234, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.hero__marquee { --marquee-dur: 40s; position: relative; }
.hero__word {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding: 0.12em 0 0.04em 0; /* respiro pro acento não cortar */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
/* Separador azul entre as frases do letreiro */
.hero__word::after {
  content: "✦";
  font-size: 0.32em;
  color: var(--accent);
  -webkit-text-stroke: 0;
  margin-inline: 0.9em;
}
.hero__word--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}
.hero__word--accent { color: var(--accent); }

.hero__bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.hero__id { font-size: var(--fs-sm); line-height: 1.7; }
.hero__id strong { font-weight: 600; }
.hero__id em { font-style: normal; color: var(--accent); }

.hero__scroll {
  position: absolute;
  bottom: var(--s-5);
  left: var(--gutter);
}
.hero__meta {
  position: absolute;
  bottom: var(--s-5);
  right: calc(var(--gutter) + 80px); /* não fica embaixo do botão do WhatsApp */
}

/* ==========================================================
   02 MANIFESTO
   ========================================================== */
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  max-width: 30ch;
  margin-top: var(--s-5);
}
.manifesto__text em { font-style: normal; color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: var(--s-9);
}
.stat { padding: var(--s-6) var(--s-5) 0 0; }
.stat + .stat { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
}
.stat__num sup { color: var(--accent); font-size: 0.5em; vertical-align: top; }
.stat__label { margin-top: var(--s-3); }

/* ==========================================================
   03 CLIENTES
   ========================================================== */
.clients {
  border-block: 1px solid var(--line);
  padding-block: var(--s-6);
  --marquee-dur: 45s;
}
.clients__item {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  padding-right: var(--s-7);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.clients__item::after { content: "✦"; color: var(--accent); font-size: 0.7em; }

/* ==========================================================
   04 PORTFÓLIO
   ========================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}
.filter {
  position: relative;
  padding-block: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out);
}
.filter sup { font-family: var(--font-mono); font-size: 0.625rem; margin-left: 4px; }
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::after { transform: scaleX(1); }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8) var(--s-6);
}
.project { display: block; }
.project.is-hidden { display: none; }

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out);
}
.project:hover .project__media img,
.project:hover .project__placeholder { transform: scale(1.05); }

/* Capa em mockup (notebook + celular com fundo transparente): sem o quadro do card */
.project--mockup .project__media {
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.project--mockup .project__media img { object-fit: contain; object-position: center; }
.project--mockup:hover .project__media img { transform: scale(1.03); }
.project--mockup .project__overlay { background: none; }

/* Capa placeholder enquanto você não tem imagem */
.project__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: var(--s-6);
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at var(--px, 30%) var(--py, 20%), var(--pc, rgba(39,118,234,.45)) 0%, transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  transition: transform 0.8s var(--ease-out);
}

.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--s-5);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.project:hover .project__overlay,
.project:focus-visible .project__overlay { opacity: 1; }
.project__cta {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(8px) rotate(-45deg);
  transition: transform var(--dur-med) var(--ease-out);
}
.project:hover .project__cta { transform: translateY(0) rotate(-45deg); }

.project__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
.project__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease-out);
}
.project:hover .project__title { color: var(--accent); }
.project__year { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-faint); }
.project__type { font-size: var(--fs-sm); color: var(--accent-hover); margin-top: 2px; }
.project__desc {
  margin-top: var(--s-2);
  max-width: 56ch;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
}
.project--static .project__title { transition: none; }
.project--static:hover .project__title { color: var(--text); }
.project__more {
  display: inline-flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

/* Janela do case: o <dialog> ocupa a tela e rola; o painel é o conteúdo */
html:has(.case[open]) { overflow: hidden; }
.case {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: clamp(16px, 4vw, 48px);
  border: 0;
  background: transparent;
  color: var(--text);
  overflow-y: auto;
}
.case::backdrop { background: rgba(5, 7, 10, 0.82); backdrop-filter: blur(6px); }
.case__panel {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.case__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.75);
  border: 1px solid var(--line-strong);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.case__close:hover { border-color: var(--accent); color: var(--accent-hover); }
.case__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case__body { display: grid; gap: var(--s-5); padding: clamp(20px, 4vw, 40px); }
.case__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.tag--warn { background: rgba(245, 165, 36, 0.14); color: #f5a524; }
.case__title {
  margin-top: calc(-1 * var(--s-3));
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); }
.case__body section { display: grid; gap: var(--s-2); align-content: start; }
.case__body p, .case__body li { color: var(--text-muted); font-size: 0.9375rem; }
.case__body .label { color: var(--text-faint); }
.case__body .label--accent { color: var(--accent-hover); }
.case__solution {
  padding: var(--s-5);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
}
.case__solution p { color: var(--text); }
.case__body ul { display: grid; gap: var(--s-2); }
.case__body li { position: relative; padding-left: var(--s-5); }
.case__body li::before { content: "→"; position: absolute; left: 0; color: var(--accent-hover); }
.case__note { font-size: 0.8125rem !important; color: var(--text-faint) !important; }
.case__body .btn { justify-self: start; }

.projects__more { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-9); }
.btn[hidden] { display: none; }

/* ==========================================================
   05 SERVIÇOS
   ========================================================== */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-6);
  text-align: left;
}
.service__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-faint); }
.service__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.service__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast);
}
.service__head:hover .service__name,
.service.is-open .service__name { color: var(--text); transform: translateX(8px); }
.service.is-open .service__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }

.service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__body > div { overflow: hidden; }
.service__content {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-7);
}
.service__desc { color: var(--text-muted); max-width: 48ch; grid-column: 2; }
.service__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); align-content: flex-start; }

.service__extra {
  grid-column: 2 / -1;
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-3);
  padding: var(--s-5) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
}
.service__extra-intro { color: var(--text); font-weight: 500; }
.service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3) var(--s-6);
}
.service__list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d8bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.service__note {
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

/* ==========================================================
   06 PROCESSO
   ========================================================== */
.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--s-2);
}
.steps::-webkit-scrollbar { display: none; }
.step {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 300px;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.step:hover { border-color: var(--accent); background: var(--surface-2); }
.step__title { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; line-height: 1.2; font-weight: 600; text-transform: uppercase; }
.step__sub { display: flex; align-items: center; gap: var(--s-2); color: var(--accent); font-weight: 500; margin-top: auto; }
.step__desc { color: var(--text-muted); font-size: var(--fs-sm); }

.steps-nav { display: flex; gap: var(--s-2); }
.steps-nav button {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.steps-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================
   07 SOBRE
   ========================================================== */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(39,118,234,.35), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: grayscale(0.25) contrast(1.05) brightness(0.9);
}
/* Escurece e puxa a foto pro azul da marca, integrando ao fundo escuro */
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 7, 10, 0.9) 0%, rgba(5, 7, 10, 0) 45%),
    linear-gradient(160deg, rgba(39, 118, 234, 0.18), rgba(5, 7, 10, 0.25));
  pointer-events: none;
}
.about__photo-label { z-index: 1; }
.about__photo-label { position: absolute; left: var(--s-4); bottom: var(--s-4); }
.about__photo-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: var(--tracking-label); color: var(--text-faint); text-transform: uppercase;
}
.about__role { margin-bottom: var(--s-4); }
.about__name { margin-bottom: var(--s-6); }
.about__bio { display: grid; gap: var(--s-4); color: var(--text-muted); max-width: 56ch; }
.about__bio strong { color: var(--text); font-weight: 500; }
.about__tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }

/* ==========================================================
   08 CONTATO
   ========================================================== */
.contact { text-align: center; overflow: hidden; }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-block: var(--s-6) var(--s-7);
}
.contact__title em { font-style: normal; color: var(--accent); }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.contact__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(39,118,234,.16) 0%, transparent 60%);
  pointer-events: none;
}
.contact .container { position: relative; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-7); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__links a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.footer__links a:hover { color: var(--accent); }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; }
/* O copyright tem vários spans: sem o gap do .label, as palavras não se separam */
.footer .label { display: block; line-height: 1.8; }

/* ==========================================================
   WHATSAPP FLUTUANTE
   ========================================================== */
.wpp-float {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 30;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.wpp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: wpp-ring 2.4s ease-out infinite;
}
@keyframes wpp-ring {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wpp-float:hover { transform: scale(1.08); background: #1ebe5b; }
.menu-open .wpp-float { opacity: 0; pointer-events: none; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .service__content { grid-template-columns: 1fr; padding-left: 0; }
  .service__desc { grid-column: auto; }
  .service__extra { grid-column: auto; padding: var(--s-5); }
  .service__list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .projects { grid-template-columns: 1fr; gap: var(--s-7); }
  .case__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding-bottom: var(--s-5); }
  .service__head { grid-template-columns: 36px 1fr auto; gap: var(--s-3); }
  .service__icon { width: 40px; height: 40px; }
  .hero__scroll, .hero__meta { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter { white-space: nowrap; }
  .tag { font-size: 0.6875rem; height: 28px; }
  .wpp-float { width: 52px; height: 52px; }
  .wpp-float svg { width: 26px; height: 26px; }
  .footer { padding-bottom: calc(var(--s-7) + 64px); } /* espaço pro botão do WhatsApp */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .footer__links { gap: var(--s-2) var(--s-5); }
}

@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; }
  .reveal { opacity: 1; transform: none; }
}
