/* ==========================================================================
   marco/™ — Sistema de design "ESCALA"
   Princípio: a marca é o fundo. A cor vem do trabalho.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Superfícies */
  --paper:        #FFFFFF;
  --paper-2:      #FAFAF8;
  --ink:          #0D0D0D;
  --ink-2:        #3D3D3D;
  --ink-3:        #6E6E6E;
  --line:         #E5E5E3;
  --line-strong:  #0D0D0D;

  /* Marca — usada com parcimônia: logo, link, foco, "/™" */
  --brand:        #FF4A1C;
  --brand-ink:    #C93509;

  /* A paleta dos clientes. É daqui que vem toda a cor do site. */
  --case-1: #2B5BFF;
  --case-2: #12B76A;
  --case-3: #F4B740;
  --case-4: #D92D20;
  --case-5: #7C3AED;
  --case-6: #0BA5EC;
  --case-ink: #1A1B1D;   /* fundo padrão das telas de site */

  /* Tipografia */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Ritmo */
  --gutter:       clamp(1.25rem, 4vw, 4rem);
  --section-y:    clamp(4.5rem, 11vw, 9.5rem);
  --maxw:         1440px;

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

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

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

::selection { background: var(--brand); color: #fff; }

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
/* Ritmo vertical: nem toda seção merece o mesmo respiro. */
.section--airy  { padding-block: calc(var(--section-y) * 1.35); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--tint { background: var(--paper-2); }
.section--ink  { background: var(--ink); color: var(--paper); }
.section--brand { background: var(--brand); color: var(--ink); }
.section--brand .eyebrow { color: rgb(13 13 13 / .62); }

/* Por que existimos: título e texto lado a lado, sem vazio na lateral. */
.why { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.why .lede { max-width: 48ch; }

.rule { height: 1px; background: var(--line); border: 0; }

/* --- Tipografia --------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.688rem, 1.4vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--brand { color: var(--brand); }

/* Frase longa de posicionamento — largura NORMAL, caixa baixa. */
.statement {
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: 'wdth' 100;
  font-size: clamp(2.125rem, 6vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* A palavra que carrega o argumento. Era itálico serifado; agora peso + cor. */
.statement em { font-style: normal; font-weight: 700; color: var(--brand); }

/* Título curto de seção — largura EXPANDIDA, caixa alta. */
.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(1.75rem, 4.6vw, 3.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.title--sm { font-size: clamp(1.375rem, 3vw, 2.25rem); }

/* O lede apoia o título — nunca compete com ele. */
.lede {
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

.body { color: var(--ink-2); max-width: 65ch; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.813rem;
  letter-spacing: 0.04em;
}

.brandmark { color: var(--brand); }

/* --- Header ------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.nav__links {
  display: none;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-items: center;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.25rem;
  transition: color .2s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brand);
  transition: right .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 0;
  padding: .5rem 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav__toggle svg { width: 20px; height: 14px; }

/* Menu mobile em tela cheia */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 96px var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__list { display: grid; gap: .25rem; }
.menu__list a {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(1.75rem, 9vw, 3rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.08;
  border-bottom: 1px solid var(--line);
  padding-block: .35rem;
  display: block;
}
.menu__list a:hover,
.menu__list a[aria-current="page"] { color: var(--brand); }
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-3);
}

/* --- Botões ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--brand); border-color: var(--brand); color: #fff; }
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--onink { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--onink:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
  transition: border-color .25s ease, color .2s ease;
}
.link-arrow svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(6.5rem, 12vw, 9.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line-strong);
  padding-top: .85rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Retratos em recorte: quem atende, de verdade ---------------------- */
.faces { display: flex; gap: .625rem; align-items: flex-start; }
.faces figure { flex: 1; min-width: 0; margin: 0; }
.faces figure:nth-child(2) { margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.faces img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  background: var(--paper-2);
}
.faces figcaption {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .55rem;
  line-height: 1.45;
}
.faces figcaption b { display: block; font-weight: 500; color: var(--ink); letter-spacing: .06em; }

/* --- Faixa de prova: números + selos ----------------------------------- */
.proof { border-top: 1px solid var(--line-strong); }
.proof__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-block: clamp(1.25rem, 2.6vw, 1.75rem);
}
.proof__claim { font-size: clamp(.9375rem, 1.2vw, 1.0625rem); color: var(--ink-2); max-width: 52ch; }
.proof__claim b { color: var(--ink); font-weight: 600; }
.proof__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.75rem; }
.proof__stat { display: flex; align-items: baseline; gap: .5rem; }
.proof__stat b {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
/* A frente integrada é o argumento principal — ganha corpo. */
.proof__stat--hero b { font-size: clamp(2.25rem, 5vw, 3.5rem); color: var(--brand); }
.proof__stat--hero span { color: var(--ink); font-size: .75rem; }
.proof__stat span {
  font-family: var(--font-mono);
  font-size: .688rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.selos { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); }
.selos img { height: clamp(20px, 2.6vw, 28px); width: auto; opacity: .68; filter: grayscale(1); }
.selos span {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Faixa de logos de clientes ---------------------------------------- */
.logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.logos div { background: var(--paper); display: grid; place-items: center; padding: clamp(.75rem, 1.6vw, 1.25rem); aspect-ratio: 3 / 2; }
.logos img {
  max-height: clamp(72px, 9.5vw, 124px);
  width: auto;
  max-width: 92%;
  opacity: .62;
  filter: grayscale(1);
  transition: opacity .25s ease;
}
.logos div:hover img { opacity: .9; }

/* --- Vitrine de trabalhos (aqui mora a cor) ----------------------------- */
.works {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.work {
  position: relative;
  display: block;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
/* Print de site inteiro carrega informação demais.
   A moldura reduz o print a um objeto e dá o contexto de "isto é um site". */
.works--wide .work__canvas {
  aspect-ratio: 16 / 10;
  /* Para dar a cor da marca a um case: style="--tone: #0B5C8A" no .work__canvas. */
  background: var(--tone, var(--paper-2));
  display: grid;
  align-content: end;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem) 0;
  overflow: hidden;
}
.browser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 32px rgb(13 13 13 / .10);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #D8D6D1; }
.browser__bar em {
  flex: 1;
  height: 7px;
  margin-left: 8px;
  border-radius: 4px;
  background: var(--paper-2);
  max-width: 45%;
}
.browser img {
  width: 100%;
  height: auto;
  display: block;
  object-position: top center;
}

/* Telas de site: largas. Capas de marca: quase quadradas. Cada uma no seu grid. */
.works--wide  { grid-template-columns: minmax(0, 1fr); }
.works--brand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works--brand .work__canvas { aspect-ratio: 4 / 3; }

.work__canvas {
  aspect-ratio: 16 / 10;
  background: var(--tone, var(--case-1));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .7s var(--ease);
}
.work:hover .work__canvas { transform: scale(1.03); }
/* Placeholder tipográfico enquanto a foto real do case não entra */
.work__canvas span {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding-inline: 1rem;
  line-height: 1;
}
.work__canvas img { width: 100%; height: 100%; object-fit: cover; }
.work__meta {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem var(--gutter) 1.4rem;
  min-width: 0;
}
@media (min-width: 560px) {
  .work__meta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
}
.work__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  letter-spacing: -0.02em;
}
.work__tag {
  font-family: var(--font-mono);
  font-size: .688rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-width: 0;
  text-align: right;
}


/* --- Serviços ----------------------------------------------------------- */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  gap: .75rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-inline .3s var(--ease);
  align-items: start;
}
.service:hover { background: var(--paper-2); }
.service__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(1.5rem, 3.8vw, 2.75rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  transition: color .25s ease;
}
.service:hover .service__name { color: var(--brand); }
.service__desc { color: var(--ink-2); max-width: 52ch; font-size: .9375rem; }
.service__list { display: grid; gap: .35rem; font-size: .938rem; color: var(--ink-3); }
.service__list li::before { content: '—'; margin-right: .5rem; color: var(--brand); }

.services--grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services--grid .service {
  display: grid;
  gap: .75rem;
  align-content: start;
  background: var(--paper);
  border: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.services--grid .service:hover { background: var(--paper-2); padding-inline: clamp(1.5rem, 3vw, 2.25rem); }
.services--grid .service__name { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
.services--grid .service__desc { font-size: .9375rem; max-width: none; }
.services--grid .service__more {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .25rem;
}
.services--grid .service:hover .service__more { color: var(--brand); }

/* --- Números / prova ---------------------------------------------------- */
.stats { display: grid; gap: 2rem; }
.stat { border-top: 1px solid currentColor; padding-top: 1rem; }
.stat__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(2.75rem, 8vw, 5rem);
  letter-spacing: -0.05em;
  line-height: .95;
}
.stat__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: .5rem; }

/* --- Logos de clientes -------------------------------------------------- */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client {
  background: var(--paper);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.875rem, 2vw, 1.0625rem);
  letter-spacing: -0.01em;
  color: var(--ink-3);
  text-align: center;
  transition: color .25s ease, background .25s ease;
}
.client:hover { color: var(--ink); background: var(--paper-2); }

/* --- Citação ------------------------------------------------------------ */
.quote { display: grid; gap: 1.5rem; }
.quote__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3.2vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.quote__by { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.depos { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.depo { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; }
.depo__stars { display: flex; gap: 2px; }
.depo__stars svg { width: 14px; height: 14px; fill: var(--brand); }
.depo__text { font-size: clamp(1rem, 1.3vw, 1.0625rem); line-height: 1.55; color: var(--ink); }
.depo__who { display: flex; align-items: center; gap: .625rem; margin-top: auto; padding-top: .25rem; }
.depo__who b { font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; }
.depo__who span { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* --- CTA final ---------------------------------------------------------- */
.cta { display: grid; gap: clamp(1.25rem, 2.6vw, 1.75rem); justify-items: center; text-align: center; }
.cta .statement { max-width: 16ch; }
.cta .lede { max-width: 60ch; }
.cta .hero__actions { justify-content: center; }

/* --- Footer ------------------------------------------------------------- */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.foot a { color: rgba(255,255,255,.72); transition: color .2s ease; }
.foot a:hover { color: var(--brand); }
.foot__grid { display: grid; gap: 2.5rem; }
.foot__head { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .9rem; }
.foot__list { display: grid; gap: .5rem; font-size: .938rem; }
.foot__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(2.5rem, 14vw, 10rem);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: .8;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .688rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-top: 1.5rem;
}

/* --- Formulário --------------------------------------------------------- */
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--font-mono); font-size: .688rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: .75rem 0;
  font-size: 1.0625rem;
  border-radius: 0;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--brand);
}
.field textarea { resize: vertical; min-height: 120px; }

/* --- Páginas internas: cabeçalho ---------------------------------------- */
.pagehead { padding-top: clamp(7rem, 15vw, 10rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; border-top: 1px solid var(--line-strong); padding-top: .85rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* --- Equipe ------------------------------------------------------------- */
.team { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.member { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: .75rem; }

/* --- Utilitários -------------------------------------------------------- */
.stack { display: grid; }
.stack > * { min-width: 0; }
.gap-sm { gap: .75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: clamp(2rem, 5vw, 3.5rem); }
.flow > * + * { margin-top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  transition: top .2s ease;
}
.skip:focus { top: 1rem; }

/* --- Trava anti-overflow ------------------------------------------------ */
.works, .clients, .team, .stats, .services, .form { min-width: 0; }
.works > *, .clients > *, .team > *, .stats > *, .form > * { min-width: 0; }

/* --- Reveal ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Entrada do hero no load */
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .eyebrow  { animation: heroIn .8s var(--ease) both; }
.hero .statement { animation: heroIn .9s var(--ease) .1s both; }
.hero .lede      { animation: heroIn .9s var(--ease) .22s both; }
.hero__actions   { animation: heroIn .9s var(--ease) .34s both; }
.hero__meta      { animation: heroIn .9s var(--ease) .44s both; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works--brand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .depos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services--grid .service { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr); align-items: start; }
  .clients { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .service { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; }
  .services--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services--grid .service { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .service:hover { padding-inline: 1.25rem; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
  .form--split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
  .form--split .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 1200px) {
  .works--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works--wide  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works--brand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Acessibilidade de movimento ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Impressão ---------------------------------------------------------- */
@media print {
  .nav, .menu, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}

/* --- Serviços sobre o laranja (home) ------------------------------------ */
.services__head { display: grid; gap: 1.25rem; }
.services__lede {
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  max-width: 38ch;
}
@media (min-width: 900px) {
  .services__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.section--brand .services--grid { background: rgb(13 13 13 / .18); border-color: rgb(13 13 13 / .18); }
.section--brand .services--grid .service { background: var(--brand); }
.section--brand .services--grid .service:hover { background: var(--ink); color: var(--paper); }
.section--brand .services--grid .service:hover .service__name,
.section--brand .services--grid .service:hover .service__more { color: var(--brand); }
.section--brand .service__desc { color: rgb(13 13 13 / .78); }
.section--brand .services--grid .service:hover .service__desc { color: rgb(255 255 255 / .78); }
.section--brand .services--grid .service__more { color: rgb(13 13 13 / .62); }

/* --- Contato: mapa ------------------------------------------------------ */
.map { border: 1px solid var(--line); background: var(--paper-2); height: clamp(340px, 52vw, 600px); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* --- Rodapé: redes em ícone, na cor da marca ---------------------------- */
.foot__social { display: flex; gap: .75rem; }
.foot__social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(255 74 28 / .45);
  border-radius: 50%;
  color: var(--brand);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.foot__social a:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.foot__social svg { width: 20px; height: 20px; }

/* --- Topo das páginas internas: texto de apoio alinhado à grade -------- */
.pagehead .lede {
  font-size: clamp(1.0625rem, 1.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
}
@media (min-width: 900px) {
  /* À esquerda e mais largo: menos linhas, alinhado ao título */
  .pagehead .lede { max-width: 82ch; }
}

/* --- Sobre: missão e visão lado a lado --------------------------------- */
.mv { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 760px) { .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); } }

/* --- Sobre: time com o texto ao lado ----------------------------------- */
.people { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: end; }
.people__text .lede { max-width: 36ch; }
.people__team { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.person { margin: 0; display: grid; gap: .85rem; }
.person img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.04);
  transition: filter .5s ease;
}
.person:hover img { filter: grayscale(0); }
.person figcaption { display: grid; gap: .2rem; border-top: 1px solid var(--line-strong); padding-top: .75rem; }
.person figcaption b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); letter-spacing: -0.02em; }
.person figcaption span { font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.person:nth-child(2) { margin-top: clamp(0rem, 6vw, 4.5rem); }
@media (min-width: 900px) {
  .people { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 6rem); }
  .people__text { align-self: start; position: sticky; top: 7rem; }
}

/* Sobre: missão e visão com o texto oficial (mais longo) */
.mv__text {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 34ch;
}

/* --- Marketing: cada entrega com foto e texto, em zigue-zague ---------- */
.features { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.feature { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: center; }
.feature__media {
  aspect-ratio: 4 / 3;
  background: var(--brand);
  display: grid; place-items: end start;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  overflow: hidden;
}
/* o número fica por baixo da foto: só aparece enquanto a foto não existe */
.feature__media span {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 125;
  font-size: clamp(4rem, 12vw, 9rem); line-height: .8; letter-spacing: -0.05em;
  color: rgb(13 13 13 / .9);
}
.feature__media { position: relative; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: grid; gap: .85rem; max-width: 46ch; }
.feature__title {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: 'wdth' 125;
  font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase;
}
.feature__text { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--ink-2); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); }
  .feature:nth-child(even) .feature__media { order: 2; }
}

/* --- Fotos da estrutura (P&B, como as fotos do time) ------------------- */
.photo-band { margin: 0; position: relative; }
.photo-band img {
  display: block; width: 100%;
  height: clamp(280px, 52vw, 640px); object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.photo-band figcaption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: .85rem; padding-bottom: .85rem;
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.photo-band--top img { height: clamp(260px, 42vw, 560px); }

.cta__photos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1.5vw, 1rem);
  width: 100%; max-width: 760px; margin-top: clamp(2.5rem, 6vw, 4rem);
}
.cta__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .9; }

.space__head { display: grid; gap: 1.25rem; }
.space__head .lede { max-width: 42ch; }
@media (min-width: 900px) {
  .space__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.mosaic { display: grid; gap: clamp(.5rem, 1.5vw, 1rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.mosaic__main { grid-column: 1 / -1; aspect-ratio: 16 / 9 !important; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .mosaic__main { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto !important; }
}

/* Títulos de etapas e valores: um tamanho só em todas as páginas */
.step__title {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: 'wdth' 125;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;
  margin-bottom: .5rem;
}

/* --- Tráfego: entregas em grade 2x2, sem foto -------------------------- */
/* Linhas feitas com borda de cada bloco (não com fundo escuro), para não aparecer
   um bloco preto enquanto os itens ainda estão surgindo na rolagem. */
.pillars { display: grid; border-top: 1px solid var(--line-strong); }
.pillar { border-bottom: 1px solid var(--line-strong); }
.pillar {
  display: grid; gap: .9rem; align-content: start;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(0rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3rem) 0;
  transition: background .3s ease;
}
.pillar__n {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 125;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: .8; letter-spacing: -0.05em;
  color: var(--brand);
}
.pillar__title {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: 'wdth' 125;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase;
  max-width: 18ch;
}
.pillar__text { font-size: clamp(1rem, 1.2vw, 1.0625rem); line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(odd) { border-right: 1px solid var(--line-strong); }
  .pillar:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 3.5rem); padding-right: 0; }
}

/* --- Faixa laranja intercalada (Tráfego) ------------------------------- */
.band { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.band .statement { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 4.25rem); }
.band__side { display: grid; gap: 1.25rem; align-content: end; }
.band__text { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; font-weight: 500; max-width: 38ch; }
/* Etiquetas em grade 2x2: mesma largura, espaçamento igual nas duas direções */
.band__tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-width: 30rem; }
.band__tags span {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgb(13 13 13 / .35); padding: .7rem .9rem; line-height: 1.2;
  display: flex; align-items: center;
}
@media (min-width: 900px) {
  .band { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: clamp(2.5rem, 6vw, 5rem); }
}

/* --- Portfólio lido de assets/data/portfolio.json ---------------------- */
.pf-filters { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.pf-filters button {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
  padding: .6rem .9rem; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pf-filters button sup { font-size: .625rem; opacity: .6; margin-left: .15rem; vertical-align: super; line-height: 0; }
.pf-filters button:hover { border-color: var(--brand); color: var(--brand); }
.pf-filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); padding-inline: var(--gutter); }
.pf-card { display: block; background: var(--paper); overflow: hidden; }
.pf-card__meta, .pf-card__desc { padding-inline: 1rem !important; }
.pf-card[hidden] { display: none; }
.pf-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pf-card:hover .pf-card__media img { transform: scale(1.04); }
.pf-card__meta { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem var(--gutter) .4rem; }
.pf-card__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 2vw, 1.375rem); letter-spacing: -0.02em; }
.pf-card__tag { font-family: var(--font-mono); font-size: .688rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pf-card:hover .pf-card__name { color: var(--brand); }
.pf-card__desc { padding: 0 var(--gutter) 1rem; font-size: .9375rem; color: var(--ink-2); }
.pf-card__meta:last-child { padding-bottom: 1.4rem; }
@media (min-width: 560px) {
  .pf-card__meta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
}
@media (min-width: 900px) {
  .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--maxw); margin-inline: auto; }
}

/* --- Página em laranja (Design e marca): topo chapado na cor da marca -- */
.theme-brand .pagehead { background: var(--brand); color: var(--ink); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.theme-brand .pagehead .eyebrow--brand { color: var(--ink); }
.theme-brand .pagehead .statement { font-size: clamp(2.5rem, 8vw, 7.5rem); }
.theme-brand .pagehead .statement em { color: var(--paper); }
.theme-brand .pagehead .lede { color: var(--ink); }
.theme-brand .pagehead__meta { border-top-color: var(--ink); }
.theme-brand .nav:not(.is-scrolled) .brandmark { color: var(--paper); }
.theme-brand .nav:not(.is-scrolled) .nav__links a { color: var(--ink); }
.theme-brand .nav:not(.is-scrolled) .nav__links a::after { background: var(--ink); }

/* --- Rodapé: selos de parceiro (vieram do topo da home) ---------------- */
.foot__proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: clamp(1.25rem, 2.6vw, 1.75rem);
  border-top: 1px solid rgba(255,255,255,.16);
}
.foot__proof p { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.foot__proof .selos img { filter: grayscale(1) brightness(0) invert(1); opacity: .7; }
.foot__proof + .foot__mark { margin-top: 0; }

/* --- Rodapé tom sobre tom ----------------------------------------------
   Continua escuro, mas um grafite um pouco mais claro que o bloco "Vamos conversar"
   (separa os dois) e a assinatura MARCO em relevo quase apagado, sem pesar. */
.foot { background: #171717; }
.foot__mark { color: rgba(255,255,255,.07); border-top-color: rgba(255,255,255,.08); }
.foot__mark .brandmark { color: var(--brand); opacity: .85; }
.foot__proof { border-top-color: rgba(255,255,255,.08); }
.foot__proof .selos img { opacity: .45; }
.foot__social a { border-color: rgba(255,74,28,.3); }
.foot__legal { color: rgba(255,255,255,.35); }

/* Rodapé: "/™" mais discreto, no mesmo tom sobre tom */
.foot__mark .brandmark { color: var(--brand); opacity: .35; }

/* --- Web: plataformas de e-commerce ------------------------------------
   Sem linha própria: a linha de baixo da grade de serviços já separa. */
.platforms { display: grid; gap: 1.25rem; align-items: center; }
.pillars + .platforms { margin-top: calc(-1 * clamp(0.5rem, 1.5vw, 1rem)); }
.platforms__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.platforms__logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.75rem, 4vw, 3.5rem); }
.platforms__logos img { width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s ease, opacity .3s ease; }
/* alturas ajustadas por logo, para todos terem o mesmo peso visual */
.platforms__logos img[alt="Shopify"]     { height: clamp(24px, 2.6vw, 32px); }
.platforms__logos img[alt="WooCommerce"] { height: clamp(20px, 2.2vw, 27px); }
.platforms__logos img[alt="Nuvemshop"]   { height: clamp(28px, 3vw, 38px); }
.platforms__logos img[alt="Tray"]        { height: clamp(26px, 2.8vw, 36px); }
.platforms__logos img:hover { filter: none; opacity: 1; }
@media (min-width: 900px) { .platforms { grid-template-columns: minmax(0, 1fr) auto; } }

/* --- Portfólio em formato de site (moldura de navegador) --------------- */
.pf-grid--site { grid-template-columns: minmax(0, 1fr); }
.pf-card__media--site {
  aspect-ratio: 16 / 10; display: grid; align-content: end;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) 0;
}
.pf-card__media--site img { height: auto; }
.pf-card:hover .pf-card__media--site img { transform: none; }
.pf-card:hover .pf-card__media--site .browser { transform: translateY(-6px); }
.pf-card__media--site .browser { transition: transform .5s var(--ease); }
@media (min-width: 760px) { .pf-grid--site { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pf-grid--site { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Âncoras não ficam escondidas atrás do menu fixo */
section[id] { scroll-margin-top: 72px; }

/* ==========================================================================
   Revisão mobile (21/09/2026)
   ========================================================================== */
/* Etiqueta dos projetos: à esquerda no celular, à direita só quando cabe ao lado do nome */
.work__tag { text-align: left; }
@media (min-width: 560px) { .work__tag { text-align: right; } }

/* Links do rodapé e "ver mais": área de toque confortável */
.foot__list { gap: .15rem; }
.foot__list a { display: inline-block; padding-block: .4rem; }
.link-arrow { padding-block: .6rem; }

@media (max-width: 559px) {
  /* Botões do topo e do "Vamos conversar": mesma largura, empilhados */
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero__actions .btn { width: 100%; }
  .cta .hero__actions { max-width: 22rem; }
  /* Linha final do rodapé empilhada */
  .foot__legal { flex-direction: column; gap: .35rem; }
  /* Topo das páginas internas */
  .pagehead { padding-top: 6.5rem; }
  .pagehead__meta { flex-direction: column; gap: .3rem; }
  /* Plataformas: logos em grade 2x2 */
  .platforms__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; justify-items: start; }
}

/* ==========================================================================
   Página em modo escuro (Web e experiência)
   Grafite frio de editor de código. Os tokens são trocados só nesta página,
   então todos os componentes se adaptam sozinhos. O laranja continua igual.
   ========================================================================== */
.theme-dark {
  --paper:       #0F1115;
  --paper-2:     #151821;
  --ink:         #ECEDEF;
  --ink-2:       #B4B8C0;
  --ink-3:       #8A909C;
  --line:        #252A34;
  --line-strong: #3A404C;
  color-scheme: dark;
}
/* Faixa laranja mantém texto escuro */
.theme-dark .section--brand {
  --ink: #0D0D0D; --ink-2: #3D3D3D; --ink-3: #6E6E6E;
  --line: rgb(13 13 13 / .2); --line-strong: #0D0D0D;
}
/* "Vamos conversar": um degrau mais escuro que a página */
.theme-dark .section--ink {
  --paper: #FFFFFF; --ink: #0D0D0D; --ink-2: #3D3D3D; --ink-3: #6E6E6E; --line: #E5E5E3;
  background: #08090C; color: #ECEDEF;
}
/* Menu fixo ao rolar */
.theme-dark .nav.is-scrolled { background: rgba(15,17,21,.86); box-shadow: 0 1px 0 var(--line); }
/* Detalhe de código: os rótulos pequenos ganham "//" como um comentário */
.theme-dark main .eyebrow::before { content: '// '; color: var(--brand); }
.theme-dark .section--brand .eyebrow::before { color: inherit; }
/* Logos das plataformas em branco sobre o escuro */
.theme-dark .platforms__logos img { filter: grayscale(1) brightness(0) invert(1); opacity: .55; }
.theme-dark .platforms__logos img:hover { filter: none; opacity: 1; }
/* Moldura de navegador em modo escuro */
.theme-dark .browser { box-shadow: 0 -4px 32px rgb(0 0 0 / .45); }
.theme-dark .browser__bar i { background: #3A404C; }
.theme-dark .foot { --paper: #FFFFFF; --ink: #0D0D0D; --line: #E5E5E3; background: #0B0D11; }

/* Rodapé: selos com o símbolo colorido e a escrita em branco (arquivos *-branco.png) */
.foot__proof .selos img { filter: none; opacity: .9; height: clamp(22px, 2.4vw, 28px); width: auto; }
.foot__proof .selos img[src*="meta"] { height: clamp(20px, 2.2vw, 26px); }

/* "Vamos conversar": texto de apoio sem palavra sozinha na última linha */
.cta .lede { text-wrap: pretty; }

/* Web: escuro até "Como funciona"; o portfólio volta a ser claro */
.theme-dark #projetos {
  --paper: #FFFFFF; --paper-2: #FAFAF8; --ink: #0D0D0D; --ink-2: #3D3D3D; --ink-3: #6E6E6E;
  --line: #E5E5E3; --line-strong: #0D0D0D;
  background: var(--paper-2); color: var(--ink); color-scheme: light;
}
.theme-dark #projetos .eyebrow::before { content: none; }
.theme-dark #projetos .browser { box-shadow: 0 -4px 32px rgb(13 13 13 / .10); }
.theme-dark #projetos .browser__bar i { background: #D8D6D1; }


/* --- Topo da home: foto da bandeira fincada (o marco) ------------------- */
.hero__photo { margin: 0; position: relative; }
.hero__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__photo figcaption {
  margin-top: .75rem;
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
@media (min-width: 900px) {
  .hero__grid { align-items: center; }
  .hero__photo img { max-height: min(72vh, 620px); }
}
@media (max-width: 559px) {
  .hero__photo img { aspect-ratio: 4 / 3; object-position: center 20%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: heroIn 1.1s var(--ease) .2s both; }
}

/* --- "Como funciona": linha do tempo de verdade ------------------------
   As etapas são uma sequência, então ficam ligadas por uma linha contínua
   com um ponto laranja em cada etapa. */
.steps { list-style: none; padding: 0; margin: 0; gap: 0; }
.steps .stat {
  position: relative; border-top: 0; border-left: 1px solid var(--line-strong);
  padding: 0 0 2.25rem 1.5rem;
}
.steps .stat:last-child { padding-bottom: 0; }
.steps .stat::before {
  content: ''; position: absolute; left: -5px; top: .15rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps .stat { border-left: 0; border-top: 1px solid var(--line-strong); padding: 1.5rem 2rem 0 0; }
  .steps .stat::before { left: 0; top: -5px; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Topo da home no tablet: foto mais baixa, não ocupa a tela inteira --- */
@media (min-width: 560px) and (max-width: 899px) {
  .hero__photo img { aspect-ratio: 16 / 10; object-position: center 25%; }
}
