/* ════════════════════════════════════════════
   CERCONDE — Design System
   Dark cinematográfico + âmbar quente
   ════════════════════════════════════════════ */

:root {
  /* Cores */
  --bg: #0C0A09;
  --surface: #161310;
  --surface-2: #1F1B17;
  --text: #EFE7DB;
  --text-muted: #A89F93;
  --accent: #D9A05B;
  --accent-bright: #EFC98A;
  --border: rgba(217, 160, 91, 0.14);
  --border-soft: rgba(239, 231, 219, 0.08);

  /* Tipografia */
  --font-display: "Cormorant", Georgia, serif;
  --font-body: "Montserrat", -apple-system, sans-serif;

  /* Escala fluida */
  --fs-hero: clamp(2.75rem, 7.5vw, 6.5rem);
  --fs-h2: clamp(2.25rem, 5.5vw, 4.5rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.8125rem;

  /* Layout */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-gap: clamp(6rem, 14vh, 11rem);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

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

html { scroll-behavior: smooth; }

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

body.is-loading { overflow: hidden; }

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a332b; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visível para teclado */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ════════════════════ PRELOADER ════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preloader__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
}

.preloader__brand sup { font-size: 0.35em; color: var(--accent); }

.preloader__counter {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--accent);
}

/* ════════════════════ CURSOR ════════════════════ */
.cursor { display: none; }

@media (pointer: fine) {
  .cursor { display: block; }

  .cursor__dot, .cursor__ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor__dot {
    width: 6px; height: 6px;
    background: var(--accent);
  }

  .cursor__ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(217, 160, 91, 0.5);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                background-color 0.3s, border-color 0.3s;
  }

  .cursor--active .cursor__ring {
    width: 64px; height: 64px;
    background: rgba(217, 160, 91, 0.08);
    border-color: var(--accent);
  }
}

/* ════════════════════ NAVEGAÇÃO ════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--gutter);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav--hidden { transform: translateY(-110%); }

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav__logo sup { font-size: 0.45em; color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur);
  padding: 0.5rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px; height: 48px;
  align-items: center;
}

.nav__burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ════════════════════ MENU MOBILE ════════════════════ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 10, 9, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  visibility: hidden;
  opacity: 0;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 500;
  line-height: 1.25;
  padding: 0.25rem 0;
  transition: color var(--dur);
}

.menu__links a:hover { color: var(--accent); }

.menu__links em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent);
  vertical-align: super;
  margin-right: 0.75rem;
  letter-spacing: 0.1em;
}

.menu__footer {
  position: absolute;
  bottom: 2rem; left: var(--gutter); right: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ════════════════════ BOTÕES ════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  min-height: 48px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--dur), background-color var(--dur),
              border-color var(--dur), transform var(--dur);
}

.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

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

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.btn--small { padding: 0.7rem 1.5rem; min-height: 44px; }
.btn--large { padding: 1.3rem 2.75rem; font-size: 0.9rem; }

/* ════════════════════ TIPOGRAFIA DE SEÇÃO ════════════════════ */
.section-label {
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-title em,
.hero__title em,
.about__quote em,
.cta__title em,
.manifesto__text em {
  font-style: italic;
  color: var(--accent-bright);
}

/* ════════════════════ HERO ════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 15vh, 9rem) var(--gutter) 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 70% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,10,9,0.93) 0%, rgba(12,10,9,0.72) 32%, rgba(12,10,9,0.18) 62%, rgba(12,10,9,0.05) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(12,10,9,0) 22%),
    linear-gradient(to bottom, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0) 18%);
}

.hero__dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero__eyebrow-line {
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}

.hero__profit {
  position: relative;
  display: inline-block;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(217, 160, 91, 0.35);
  transform-origin: left bottom;
  white-space: nowrap;
}

/* Pop de "Nova venda" que sobe do contador a cada incremento */
.hero__pop {
  position: absolute;
  top: 85%;
  right: -0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  background: rgba(46, 70, 54, 0.78);
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.45),
              0 0 10px rgba(74, 222, 128, 0.08);
  color: #4ADE80;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.07em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: none;
}

.hero__pop svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #4ADE80;
}

.hero__sub {
  max-width: 460px;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__footer {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.hero__meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll svg { width: 14px; height: 14px; }

/* ════════════════════ MARQUEE ════════════════════ */
.marquee {
  overflow: hidden;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  will-change: transform;
}

.marquee__group {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-right: 1rem;
}

.marquee__group i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.6em;
  vertical-align: middle;
  margin: 0 0.9rem;
}

/* ════════════════════ MANIFESTO ════════════════════ */
.manifesto {
  padding: var(--section-gap) var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
}

.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.3;
}

.manifesto__text .word { opacity: 0.12; }

/* ════════════════════ SERVIÇOS ════════════════════ */
.services {
  padding: var(--section-gap) var(--gutter);
}

.services__header { margin-bottom: clamp(3rem, 7vh, 5.5rem); }

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

.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vh, 3rem) clamp(0.5rem, 2vw, 2rem);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  cursor: pointer;
  transition: background-color 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(217,160,91,0.07), rgba(217,160,91,0.015));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.service:hover::before { opacity: 1; }
.service:hover { padding-left: clamp(1rem, 3vw, 3rem); }

.service__index {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent);
  align-self: start;
  padding-top: 0.6rem;
}

.service__body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  transition: color var(--dur);
}

.service:hover .service__body h3 { color: var(--accent-bright); }

.service__body p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service__tags li {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  transition: border-color var(--dur), color var(--dur);
}

.service:hover .service__tags li {
  border-color: var(--border);
  color: var(--text);
}

.service__arrow {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  transition: background-color var(--dur), border-color var(--dur),
              transform 0.5s var(--ease-out);
}

.service__arrow svg {
  width: 22px; height: 22px;
  transition: transform 0.4s var(--ease-out), stroke var(--dur);
}

.service:hover .service__arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg) scale(1.05);
}

.service:hover .service__arrow svg { stroke: var(--bg); }

/* ════════════════════ PROJETOS ════════════════════ */
.works {
  padding: var(--section-gap) var(--gutter);
}

.works__header { margin-bottom: clamp(3rem, 7vh, 5.5rem); }

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  max-width: 1300px;
  margin: 0 auto;
}

.work { display: block; }

.work__preview {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--dur), transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}

.work:hover .work__preview {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

/* Barra de navegador */
.work__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}

.work__chrome span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(239, 231, 219, 0.18);
}

.work__chrome span:first-child { background: rgba(217, 160, 91, 0.5); }

.work__chrome i {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(12, 10, 9, 0.5);
  border-radius: 100px;
  padding: 0.2rem 0.9rem;
  margin-left: 0.75rem;
}

/* Mockup wireframe do site (substituível por <img> de print real) */
.work__mock {
  aspect-ratio: 16 / 10;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.6s var(--ease-out);
}

.work:hover .work__mock { transform: scale(1.04); }

.mk { display: block; border-radius: 6px; }

.mk-nav {
  height: 10px;
  width: 100%;
  background: linear-gradient(90deg, rgba(217,160,91,0.35) 0 18%, transparent 18% 60%, rgba(239,231,219,0.1) 60% 72%, transparent 72% 74%, rgba(239,231,219,0.1) 74% 86%, transparent 86% 88%, rgba(217,160,91,0.25) 88%);
}

.mk-hero {
  flex: 1;
  background:
    radial-gradient(circle at 75% 30%, rgba(239, 201, 138, 0.35), transparent 55%),
    linear-gradient(125deg, rgba(217, 160, 91, 0.28), rgba(31, 27, 23, 0.9) 70%);
}

.mk-line {
  height: 8px;
  background: rgba(239, 231, 219, 0.14);
}

.mk-title {
  height: 16px;
  border-radius: 8px;
  background: rgba(239, 231, 219, 0.22);
}

.mk-w40 { width: 40%; } .mk-w45 { width: 45%; } .mk-w50 { width: 50%; }
.mk-w55 { width: 55%; } .mk-w60 { width: 60%; } .mk-w70 { width: 70%; }
.mk-w80 { width: 80%; } .mk-w90 { width: 90%; }

.mk-btn {
  width: 88px; height: 24px;
  border-radius: 100px;
  background: var(--accent);
  opacity: 0.85;
}

.mk-btn--big { width: 132px; height: 30px; }

.mk-badge {
  width: 64px; height: 12px;
  border-radius: 100px;
  border: 1px solid rgba(217, 160, 91, 0.5);
}

/* v2: página de vendas — centralizada */
.work--v2 .work__mock { align-items: center; justify-content: center; }

/* v3: split duas colunas */
.work__mock--split { flex-direction: row; align-items: stretch; gap: 1.25rem; }

.mk-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.mk-side {
  flex: 1;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 70%, rgba(239, 201, 138, 0.3), transparent 60%),
    linear-gradient(160deg, rgba(31, 27, 23, 0.9), rgba(217, 160, 91, 0.22));
}

/* v4: e-commerce — grade de produtos */
.mk-products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.mk-product {
  display: block;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(239, 231, 219, 0.1), rgba(217, 160, 91, 0.18));
}

/* Overlay de hover */
.work__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 10, 9, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.work:hover .work__overlay,
.work:focus-visible .work__overlay { opacity: 1; }

.work__visit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.9rem;
  border-radius: 100px;
  background: var(--accent);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}

.work:hover .work__visit { transform: translateY(0); }
.work__visit svg { width: 15px; height: 15px; }

.work__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem 0;
}

.work__info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  transition: color var(--dur);
}

.work:hover .work__info h3 { color: var(--accent-bright); }

.work__info p {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}

/* ════════════════════ PROCESSO ════════════════════ */
.process { position: relative; }

.process__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.5rem, 6vh, 4.5rem);
  padding: clamp(4rem, 10vh, 6rem) 0;
  overflow: hidden;
}

.process__header { padding: 0 var(--gutter); }

.process__track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding: 0 var(--gutter);
  width: max-content;
}

.process__card {
  width: clamp(300px, 38vw, 460px);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--dur), transform var(--dur);
}

.process__card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
}

.process__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

.process__card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.process__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ════════════════════ NÚMEROS ════════════════════ */
.stats {
  padding: var(--section-gap) var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat { text-align: center; }

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: var(--fs-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ════════════════════ SOBRE ════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: var(--section-gap) var(--gutter);
  max-width: 1300px;
  margin: 0 auto;
}

.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

.about__content p {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.about__signature {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--accent);
  margin-top: 1.5rem;
}

.about__signature sup { font-size: 0.4em; }

/* ════════════════════ CTA ════════════════════ */
.cta {
  padding: var(--section-gap) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217,160,91,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.cta__sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.cta__actions { display: flex; justify-content: center; }

/* ════════════════════ FOOTER ════════════════════ */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 5rem var(--gutter) 2rem;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 220px));
  gap: 2rem;
  margin-bottom: 5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__heading {
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer__col a {
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.15rem 0;
  transition: color var(--dur), transform var(--dur);
}

.footer__col a:hover { color: var(--accent-bright); transform: translateX(4px); }

.footer__muted { color: var(--text-muted); font-size: 0.95rem; opacity: 0.7; }

.footer__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  line-height: 0.85;
}

.footer__brand span {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16.5vw, 15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 160, 91, 0.35);
  white-space: nowrap;
  transition: color 0.8s var(--ease-out);
}

.footer__brand span:hover { color: rgba(217, 160, 91, 0.12); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer__top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur);
}

.footer__top-btn:hover { color: var(--accent-bright); }
.footer__top-btn svg { width: 14px; height: 14px; }

/* ════════════════════ GRAIN ════════════════════ */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -5%); }
  30% { transform: translate(4%, 2%); }
  50% { transform: translate(-2%, 6%); }
  70% { transform: translate(5%, -3%); }
  90% { transform: translate(-4%, 4%); }
}

/* ════════════════════ ESTADOS DE REVEAL (JS) ════════════════════ */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-hero-fade] { opacity: 0; }

/* ════════════════════ RESPONSIVO ════════════════════ */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__bg img { object-position: 72% center; }

  .hero__overlay {
    background:
      linear-gradient(rgba(12,10,9,0.78), rgba(12,10,9,0.78)),
      linear-gradient(to top, var(--bg) 0%, rgba(12,10,9,0) 30%);
  }

  .hero__footer { justify-content: center; }
  .hero__meta { display: none; }

  .service {
    grid-template-columns: auto 1fr;
  }

  /* Processo: vertical no mobile (scroll horizontal só no desktop) */
  .process__pin { min-height: auto; }
  .process__track { flex-direction: column; width: 100%; }
  .process__card { width: 100%; }

  .works__grid { grid-template-columns: 1fr; }

  .service__arrow {
    grid-column: 2;
    justify-self: start;
    width: 48px; height: 48px;
  }

  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .footer__top { grid-template-columns: 1fr; }
  .btn--large { padding: 1.1rem 2rem; }
}

/* ════════════════════ REDUCED MOTION ════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grain { animation: none; }
  .hero__dust { display: none; }

  .js [data-reveal], .js [data-hero-fade] {
    opacity: 1;
    transform: none;
  }

  .manifesto__text .word { opacity: 1; }
}
