/* ============================================================
   JUBA® — v2
   Design com propósito, marcas com maestria.
   Tokens + base
   ============================================================ */

/* ---- Aspekta (fonte da v2) ---- */
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/aspekta/Aspekta-300.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 350; font-display: swap; src: url("../fonts/aspekta/Aspekta-350.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/aspekta/Aspekta-400.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 450; font-display: swap; src: url("../fonts/aspekta/Aspekta-450.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/aspekta/Aspekta-500.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 550; font-display: swap; src: url("../fonts/aspekta/Aspekta-550.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/aspekta/Aspekta-600.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 650; font-display: swap; src: url("../fonts/aspekta/Aspekta-650.woff2") format("woff2"); }
@font-face { font-family: "Aspekta"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/aspekta/Aspekta-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* ---- paleta clara (padrão da v2) ---- */
  --bg:         #ffffff;
  --surface:    #eeeeee;   /* cards grandes, faixa de CTA */
  --surface-2:  #f4f4f4;   /* cards de serviço */
  --ink:        #000000;
  --ink-2:      #4a4a4a;
  --ink-3:      #9b9b9b;
  --ink-4:      #d9d9d9;   /* títulos "fantasma" */
  --line:       rgba(0, 0, 0, .16);
  --line-soft:  rgba(0, 0, 0, .08);
  --panel:      #000000;
  --panel-ink:  #ffffff;
  --shadow:     0 24px 60px -34px rgba(0, 0, 0, .4);

  /* ---- tipografia ---- */
  --font: "Aspekta", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---- métrica ---- */
  --wrap: 1240px;
  --pad: clamp(20px, 4.4vw, 60px);
  --header-h: 74px;
  --radius: clamp(18px, 2.4vw, 30px);
  --radius-sm: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --ease-soft: cubic-bezier(.33, .06, .18, 1);    /* partida contida, chegada bem longa */
}

[data-theme="dark"] {
  --bg:        #0b0b0b;
  --surface:   #171717;
  --surface-2: #141414;
  --ink:       #ffffff;
  --ink-2:     #b0b0b0;
  --ink-3:     #6f6f6f;
  --ink-4:     #262626;
  --line:      rgba(255, 255, 255, .2);
  --line-soft: rgba(255, 255, 255, .1);
  --panel:     #ffffff;
  --panel-ink: #0b0b0b;
  --shadow:    0 24px 60px -34px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -.005em;
  overflow-x: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

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

.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;
}

/* ============================================================
   Tipografia utilitária
   ============================================================ */

.display {
  font-weight: 350;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
  text-transform: uppercase;
}

.h-xl { font-size: clamp(2.4rem, 8.8vw, 7.2rem); }
.h-lg { font-size: clamp(2.2rem, 7.6vw, 6rem); }
.h-md { font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.12; }

/* títulos em caixa-baixa (Marcas com Maestria©) */
.title {
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
}

.lead {
  font-size: clamp(.94rem, 1.1vw, 1rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
}

/* rótulo espaçado — "B R A N D I N G - T E C N O L O G I A" */
.mono-label {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink);
}

.trust {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .58rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
/* globo embutido no CSS: sem arquivo externo, não quebra no deploy */
.trust::before {
  --globe: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27%23000%27%20fill-rule=%27evenodd%27%3E%3Cpath%20d=%27M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20ZM11.6%204.2C10%204%208.2%204.3%206.9%205.1%206%205.7%205.5%206.5%205.9%207.1c.3.5%201.1.5%201.5%201%20.4.5-.2%201-.1%201.6.1.7%201%201.1%201.7%201.3.5.2.8.7%201.2%201.1.3.3.8.4%201-.1.2-.4-.1-1%20.1-1.5.2-.6.9-.8%201.1-1.4.2-.7-.4-1.3-.2-2%20.2-.8%201.2-1%201.2-1.7%200-.7-.9-1.3-1.8-1.4ZM12.2%2013.3c-.5.3-.6%201-.3%201.6.3.6%201.1.8%201.5%201.4.4.6.3%201.5.6%202.2.2.5.7.9%201.1.7.4-.2.4-.9.4-1.5%200-1.1.2-2.2.6-3.2.2-.6-.1-1.3-.7-1.4-1.1-.2-2.4-.2-3.2.2Z%27/%3E%3C/svg%3E");
  content: ""; width: 14px; height: 14px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--globe) center/100% 100% no-repeat;
          mask: var(--globe) center/100% 100% no-repeat;
  opacity: .6;
}

.text-center { text-align: center; }

/* ============================================================
   Barra de progresso + cursor
   ============================================================ */

.scroll-progress {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--ink);
  z-index: 120; pointer-events: none;
}

/* cursor: o triângulo da marca, em blend de diferença para
   ficar legível tanto sobre fundo claro quanto sobre os blocos pretos */
.cursor-tri {
  position: fixed; top: 0; left: 0;
  width: 20px; height: 18px;
  margin: -9px 0 0 -10px;
  pointer-events: none; z-index: 200;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s var(--ease), width .4s var(--ease),
              height .4s var(--ease), margin .4s var(--ease);
}
.cursor-tri svg {
  width: 100%; height: 100%; display: block;
  fill: #fff; stroke: #fff; stroke-width: 0; stroke-linejoin: round;
  transition: fill .35s var(--ease), stroke-width .35s var(--ease);
}
.cursor-tri .tri-spin {
  transform-origin: 50% 58%;
  animation: tri-spin 9s linear infinite;
}
@keyframes tri-spin { to { transform: rotate(360deg); } }

body.has-cursor .cursor-tri { opacity: 1; }

/* sobre links, botões e cards o triângulo cresce e acelera o giro */
/* ao crescer fica vazado, para não cobrir o rótulo que está sob ele */
body.cursor-hot .cursor-tri {
  width: 46px; height: 42px; margin: -21px 0 0 -23px;
}
body.cursor-hot .cursor-tri svg { fill: transparent; stroke-width: 7; }
body.cursor-hot .cursor-tri .tri-spin { animation-duration: 1.6s; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform .5s var(--ease), background-color .45s var(--ease);
}
.site-header.is-hidden { transform: translateY(-101%); }

/* header sobre imagem (capa de case / sobre) */
.site-header.is-over {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  color: #fff;
}
.site-header.is-over .logo { filter: invert(1) brightness(2); }
[data-theme="dark"] .site-header.is-over .logo { filter: invert(0) brightness(2); }
.site-header.is-over .icon-btn { border-color: rgba(255, 255, 255, .5); color: #fff; }
.site-header.is-over .burger span { background: #fff; }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--pad);
}

.brand { display: flex; align-items: flex-start; margin-right: auto; }
.brand .logo { width: 62px; height: auto; transition: filter .45s var(--ease), transform .45s var(--ease); }
.brand:hover .logo { transform: translateY(-1px); }

.nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }

.nav-link {
  position: relative;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 0;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .35s var(--ease);
}
.site-header.is-over .nav-link { color: rgba(255, 255, 255, .78); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.site-header.is-over .nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }
.site-header.is-over .nav-link.is-active { color: #fff; }
.nav-link.is-active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 8px; }

/* botões circulares do header */
.icon-btn {
  width: 26px; height: 26px; padding: 0; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.icon-btn:hover { transform: rotate(15deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.icon-btn .lang-code { font-size: .5rem; font-weight: 600; letter-spacing: .02em; }

/* hambúrguer */
.burger {
  display: none; width: 28px; height: 26px; padding: 0;
  border: 0; background: transparent; cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 3px; right: 3px; height: 1.4px; background: var(--ink);
  transition: transform .4s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { top: 8px; }
.burger span:nth-child(2) { top: 12.5px; }
.burger span:nth-child(3) { top: 17px; }
.nav-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============================================================
   Botões
   ============================================================ */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 13px 30px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: .8rem; font-weight: 500; letter-spacing: -.005em;
  cursor: pointer;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }

/* pílula preta — botão principal da v2 */
.btn--solid {
  background: var(--panel); color: var(--panel-ink); border-color: var(--panel);
}
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--ink); }

.btn--wide { min-width: 230px; }

/* ============================================================
   Animações de entrada
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease);
}
.js [data-reveal="up"]    { translate: 0 34px; }
.js [data-reveal="scale"] { scale: .96; }
.js [data-reveal="left"]  { translate: -36px 0; }
.js [data-reveal="right"] { translate: 36px 0; }
.js [data-reveal="curtain"] { opacity: 1; }
.js [data-reveal].is-in { opacity: 1; }
.js [data-reveal="up"].is-in,
.js [data-reveal="left"].is-in,
.js [data-reveal="right"].is-in { translate: none; }
.js [data-reveal="scale"].is-in { scale: none; }

.reveal-curtain { position: relative; }
.js .reveal-curtain::before {
  content: ""; position: absolute; inset: -1px; z-index: 3;
  background: var(--bg); transform-origin: 50% 100%;
  transition: transform 1.05s var(--ease);
  border-radius: inherit;
}
.js .reveal-curtain.is-in::before { transform: scaleY(0); }

.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; }
.js .mask-line > span {
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}
.js .is-in .mask-line > span,
.js .mask-line.is-in > span { transform: translateY(0); }

/* ============================================================
   Home — hero
   ============================================================ */

.hero {
  text-align: center;
  padding-block: clamp(56px, 10vw, 132px) clamp(48px, 7vw, 90px);
  display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 28px);
}
.hero .mono-label { margin-bottom: clamp(6px, 1vw, 12px); }
.hero-title { max-width: 15ch; }
.hero .lead { max-width: 58ch; }
.hero .btn { margin-top: 4px; }

/* ============================================================
   Home — cards de projeto
   ============================================================ */

.projects { display: grid; gap: clamp(12px, 1.6vw, 20px); padding-bottom: clamp(48px, 8vw, 96px); }

/* a imagem preenche o card; o texto vive por cima do véu */
.project {
  position: relative; isolation: isolate;
  display: grid; align-content: space-between;
  gap: clamp(26px, 5vw, 70px);
  min-height: clamp(340px, 38vw, 500px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
}
.project-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.45) contrast(1.04);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(102deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .52) 46%, rgba(0, 0, 0, .08) 84%),
    linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, .06) 58%, transparent 78%);
  transition: opacity .6s var(--ease);
}
.project:hover .project-bg { transform: scale(1.09); filter: grayscale(0) contrast(1.02); }
.project:hover::after { opacity: .86; }

.project-name {
  font-weight: 300;
  font-size: clamp(2rem, 6.2vw, 4.6rem);
  letter-spacing: -.04em; line-height: .98;
  text-transform: uppercase;
  margin: 0; max-width: 12ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.project-foot { max-width: 34ch; }
.project-foot p {
  margin: 0; font-size: .84rem; line-height: 1.5; color: rgba(255, 255, 255, .84);
}
.project-foot .tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: .68rem; font-weight: 550;
  letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .5);
  transition: border-color .35s var(--ease);
}
.project:hover .tag { border-color: #fff; }
.project-foot .tag svg { width: 11px; height: 11px; fill: currentColor; transition: transform .35s var(--ease); }
.project:hover .tag svg { transform: translate(3px, -3px); }

.projects-cta { display: flex; justify-content: center; padding-bottom: clamp(48px, 8vw, 100px); }

/* ============================================================
   Home — Marcas com Maestria + serviços
   ============================================================ */

.maestria { padding-block: clamp(40px, 7vw, 90px) clamp(28px, 4vw, 44px); }
.maestria-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 70px); align-items: start;
}
.maestria-aside p { margin: 0 0 22px; font-size: .86rem; line-height: 1.55; color: var(--ink-2); max-width: 42ch; }

.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating-faces { display: flex; align-items: center; }
.rating-faces img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; display: block;
  background: var(--ink-4); border: 2px solid var(--bg);
  margin-left: -9px;
}
.rating-faces img:first-child { margin-left: 0; }
.rating-copy { display: grid; gap: 2px; }

.services {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.service {
  position: relative; z-index: 0;
  display: flex; flex-direction: column;
  min-height: 280px; padding: clamp(18px, 1.7vw, 24px);
  background: var(--surface-2); border-radius: var(--radius-sm);
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  /* a saída é mais demorada que a entrada: o card "assenta" em vez de cortar.
     o z-index só volta ao normal depois que a escala termina */
  transition: transform 1.35s var(--ease-soft),
              box-shadow 1.35s var(--ease-soft),
              background-color 1.1s var(--ease-soft),
              z-index 0s linear 1.35s;
}
/* o card cresce sobre os vizinhos, sem trocar de cor */
.service:hover, .service:focus-within {
  z-index: 2;
  transform: translateY(-6px) scale(1.045);
  box-shadow: 0 30px 56px -30px rgba(0, 0, 0, .3);
  background: var(--surface);
  transition: transform 1.15s var(--ease-soft),
              box-shadow 1.15s var(--ease-soft),
              background-color .8s var(--ease-soft),
              z-index 0s linear 0s;
}
.service h3 {
  margin: 0 0 16px;
  font-size: .96rem; font-weight: 550; letter-spacing: -.02em; line-height: 1.2;
}
.service p { margin: 0; font-size: .74rem; line-height: 1.5; color: var(--ink-2); }
.service .service-icon {
  margin-top: auto; padding-top: 26px;
  width: 34px; height: auto; align-self: flex-start;
}
.service .service-icon img {
  width: 100%; height: auto;
  transition: transform 1.3s var(--ease-soft) .04s;
}
[data-theme="dark"] .service .service-icon img { filter: invert(1); }
.service:hover .service-icon img, .service:focus-within .service-icon img {
  transform: rotate(-6deg) scale(1.12);
  transition: transform 1.2s var(--ease-soft) .1s;
}

/* ícone entra em cena junto com o card */
.js .service[data-reveal].is-in .service-icon { animation: icon-pop .75s var(--ease) .15s both; }
@keyframes icon-pop {
  from { opacity: 0; transform: translateY(12px) rotate(-14deg) scale(.78); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Home — depoimentos
   ============================================================ */

.voices { --per-view: 3; padding-bottom: clamp(56px, 9vw, 110px); }
.voices-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.voices h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  font-weight: 400; letter-spacing: -.04em; line-height: 1;
  color: var(--ink-4);
}
.voices-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.voices-nav .icon-btn { width: 38px; height: 38px; }
.voices-nav .icon-btn:hover { transform: none; }
.voices-nav .icon-btn svg { width: 15px; height: 15px; stroke-width: 1.5; }

.voices-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc(100% / var(--per-view));
  border-top: 1px solid var(--line-soft);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.voices-track::-webkit-scrollbar { display: none; }
.voices-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.voice {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 26px;
  padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.2vw, 30px);
  border-left: 1px solid var(--line-soft);
}
.voice:first-child { border-left: 0; padding-left: 0; }
.voice blockquote { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.voice figcaption { margin-top: auto; }
.voice .who { display: block; font-size: 1.28rem; font-weight: 700; letter-spacing: -.03em; }
.voice .role { display: block; font-size: .66rem; color: var(--ink-3); margin-top: 2px; }

.voices-dots { display: flex; justify-content: center; gap: 8px; margin-top: clamp(22px, 3vw, 34px); }
.voices-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ink-4); cursor: pointer;
  transition: background-color .35s var(--ease), width .35s var(--ease);
}
.voices-dots button.is-on { background: var(--ink); width: 22px; border-radius: 999px; }

/* ============================================================
   Faixa de CTA (todas as páginas)
   ============================================================ */

.cta-band {
  background: var(--surface); border-radius: var(--radius);
  text-align: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 60px);
  margin-bottom: clamp(56px, 10vw, 120px);
}
.cta-band p {
  max-width: 24ch; margin: 0 auto clamp(22px, 3vw, 34px);
  font-size: clamp(1.15rem, 2.6vw, 1.95rem);
  font-weight: 400; letter-spacing: -.025em; line-height: 1.34;
}
.cta-band p u { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cta-band p strong { font-weight: 700; }

/* ============================================================
   Rodapé
   ============================================================ */

.site-footer { padding-bottom: clamp(34px, 5vw, 60px); }

.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 50px); align-items: start;
}
.footer-logo { width: 54px; margin-bottom: 14px; }
.footer-tagline {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 450;
  letter-spacing: -.025em; line-height: 1.28;
}

/* link sublinhado com seta (padrão da v2) */
.arrow-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-width: 86px; padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: .82rem;
}
.arrow-link svg { width: 10px; height: 10px; flex: 0 0 auto; fill: currentColor; transition: transform .35s var(--ease); }
.arrow-link:hover svg { transform: translate(3px, -3px); }
.arrow-link--strong { font-weight: 700; }

.footer-links { display: grid; gap: 12px; justify-items: start; }

.footer-legal {
  justify-self: end; align-self: end; text-align: right;
  font-size: .6rem; letter-spacing: .04em; color: var(--ink-3); margin: 0;
}

/* ============================================================
   Página: Trabalho (case)
   ============================================================ */

.case-hero {
  position: relative; margin-top: calc(var(--header-h) * -1);
  height: min(78vh, 680px); overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface);
}
.case-hero img { position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; }
.case-hero .case-logo {
  position: relative; z-index: 2;
  font-weight: 300; font-size: clamp(3rem, 10vw, 7rem); letter-spacing: .04em;
  color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
.case-hero .case-logo sup { font-size: .18em; vertical-align: super; }

.case-intro {
  padding-block: clamp(50px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px); align-items: start;
}
.case-intro h1 {
  margin: 0; font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 400; letter-spacing: -.04em; line-height: 1.04;
}
.case-intro .lead + .lead { margin-top: 18px; }

.case-block { padding-block: clamp(50px, 8vw, 110px); }
.case-block--dark { background: var(--panel); color: var(--panel-ink); }
.case-block--dark .mono-label { color: var(--panel-ink); }
.case-block--gray { background: var(--surface); }

.case-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(34px, 5vw, 60px);
}
.case-step figure { margin: 0; }
.case-step .frame {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  background: var(--panel-ink); color: var(--panel);
  border-radius: 6px; overflow: hidden;
  transition: transform .5s var(--ease);
}
.case-step:hover .frame { transform: translateY(-6px); }
.case-step figcaption { margin-top: 14px; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: inherit; opacity: .75; }

.ekod-mark { width: 62%; height: auto; }
.ekod-mark :is(path, line, polyline, polygon, rect, circle, ellipse) {
  fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linejoin: round; stroke-linecap: round;
}

.case-lockup { display: grid; place-items: center; }

.grid-proof {
  display: grid; grid-template-columns: 1fr 3fr 1fr; grid-template-rows: 1fr 2.2fr 1fr;
  width: min(560px, 100%); aspect-ratio: 3 / 2; margin: clamp(28px, 4vw, 46px) auto 0;
  border: 1px solid var(--line);
}
.grid-proof .cell {
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  font-size: .78rem; color: var(--ink-2);
}
.grid-proof .mark { background: var(--panel); color: var(--panel-ink); padding: 8%; }
.grid-proof .mark .ekod-mark { width: 100%; }

.lockup {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 46px); flex-wrap: wrap;
}
.lockup-mark {
  width: clamp(110px, 18vw, 190px); background: var(--panel); color: var(--panel-ink);
  padding: 14px; border-radius: 6px; display: grid; place-items: center;
}
.lockup-word {
  font-weight: 300; font-size: clamp(2rem, 7vw, 4.2rem);
  letter-spacing: .02em; text-transform: uppercase;
}
.lockup-word sup { font-size: .2em; vertical-align: super; }

.case-pieces {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(34px, 5vw, 60px);
}
.piece {
  aspect-ratio: 4 / 5; overflow: hidden; position: relative;
  background: var(--surface); border-radius: 10px;
}
.piece img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.piece:hover img { transform: scale(1.05); }
.piece--flat { display: grid; align-content: space-between; justify-items: start; text-align: left; padding: clamp(20px, 2.6vw, 32px); }
.piece--paper { background: #fbfbf8; color: #111; }
.piece--green { background: #1f9c66; color: #fff; }
.piece--blue  { background: #14509b; color: #fff; }
.paper-mark { font-weight: 300; font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: .05em; }
.paper-mark sup { font-size: .3em; vertical-align: super; }
.piece--flat .mono-label { color: inherit; }
.paper-foot { opacity: .8; font-size: .56rem; letter-spacing: .2em; }
.poster-text { font-weight: 400; font-size: clamp(1.1rem, 2.4vw, 1.55rem); line-height: 1.16; letter-spacing: -.025em; }
.piece .poster-cap {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  font-weight: 300; color: #fff; font-size: clamp(1.2rem, 3vw, 1.9rem); line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.more-projects { padding-block: clamp(56px, 9vw, 110px); }
.more-projects h2 {
  text-align: center; margin: 0 0 clamp(34px, 5vw, 62px);
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 550;
  letter-spacing: -.03em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px;
}
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 3vw, 34px); }
.project-card figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); border-radius: var(--radius-sm); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card .name {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 650; letter-spacing: -.01em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.project-card .name svg { width: 11px; height: 11px; fill: currentColor; transition: transform .35s var(--ease); }
.project-card:hover .name svg { transform: translate(3px, -3px); }

/* ------------------------------------------------------------
   Case: mídia em página inteira (full-width)
   ------------------------------------------------------------ */

/* capa do case — o motion/imagem de header ocupa toda a largura */
.case-cover {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}
.case-cover .case-media {
  width: 100%;
  height: clamp(56svh, 56.25vw, 92svh);
  object-fit: cover;
}

/* faixa de slides: cada peça sangra de ponta a ponta */
.case-slides { width: 100%; }
.case-slide {
  margin: 0;
  width: 100%;
  background: var(--surface);
}
.case-slide .case-media {
  width: 100%;
  height: auto;
}

/* peças de mesmo número (07 e 07(1)) dividem a mesma linha.
   A largura de cada uma sai da própria proporção do arquivo (--ar vira
   flex-grow), então o corte não cai no meio da tela: as duas apenas
   terminam exatamente na mesma altura. */
picture { display: contents; }

/* thumb minúsculo (24px, embutido em base64 no próprio HTML): pinta por baixo
   da imagem enquanto a definitiva não chega e some quando ela é desenhada.
   Como o <img> tem a mesma proporção do arquivo, o cover casa exatamente. */
.lqip {
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.case-slide--pair {
  display: flex;
  align-items: stretch;
}
.case-slide--pair > .case-media,
.case-slide--pair > picture > .case-media {
  flex-grow: var(--ar, 1);
  flex-shrink: 1;
  flex-basis: 0%;
  min-width: 0;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Case: a rolagem salta de peça em peça
   ------------------------------------------------------------ */

/* só nas páginas de case — o resto do site rola livre */
html:has(body.is-case) { scroll-snap-type: y mandatory; }

/* cada peça é uma parada obrigatória: um gesto de scroll = a próxima peça */
.is-case .case-cover,
.is-case .case-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* os blocos de texto também param, mas sem prender o gesto,
   e abaixo do header fixo */
.is-case .case-intro,
.is-case .more-projects,
.is-case .case-tail,
.is-case .site-footer {
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}

/* citação e créditos do case */
.case-quote {
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: clamp(.94rem, 1.1vw, 1rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.case-credit {
  margin: 26px 0 0;
  font-size: .8rem;
  color: var(--ink-2);
}
.case-credit strong { font-weight: 650; color: var(--ink); }

/* topo da página de listagem */
.work-hero {
  padding-block: clamp(56px, 10vw, 132px) clamp(28px, 4vw, 48px);
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  justify-items: start;
}
.work-hero .lead { max-width: 52ch; }

/* ============================================================
   Página: Sobre
   ============================================================ */

.about-hero {
  margin-top: calc(var(--header-h) * -1);
  height: min(64vh, 560px); overflow: hidden; background: var(--surface);
}
.about-hero img { width: 100%; height: 112%; object-fit: cover; object-position: center 42%; }

.about-intro {
  padding-block: clamp(50px, 8vw, 110px) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px); align-items: start;
}
.about-intro .lead + .lead { margin-top: 18px; }
.about-intro .lead strong { font-weight: 650; color: var(--ink); }

.accordion { padding-bottom: clamp(20px, 4vw, 40px); }
.acc-item { border-bottom: 1px solid var(--ink); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: clamp(14px, 2.4vw, 24px) 0;
  font-weight: 350; font-size: clamp(1.7rem, 5.2vw, 3.4rem);
  letter-spacing: -.035em; text-transform: uppercase; color: var(--ink);
  transition: padding-left .45s var(--ease);
}
.acc-head:hover { padding-left: 12px; }
.acc-head .chevron { width: 30px; height: 30px; flex: 0 0 auto; stroke: var(--ink); fill: none; stroke-width: 1.4; transition: transform .45s var(--ease); }
.acc-item.is-open .acc-head .chevron { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { max-width: 66ch; margin: 0 0 20px; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
/* primeira linha de cada item: a síntese do estágio */
.acc-panel .acc-lead { margin-bottom: 10px; color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.acc-tags span {
  font-size: .6rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--ink-2);
}

/* ============================================================
   Página: Contato
   ============================================================ */

.contact-hero {
  text-align: center;
  padding-block: clamp(48px, 8vw, 110px) clamp(30px, 5vw, 60px);
  display: grid; justify-items: center; gap: clamp(16px, 2.4vw, 26px);
}
.contact-hero h1 {
  margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 400; letter-spacing: -.03em; line-height: 1.24; max-width: 26ch;
}

.wordmark-strip { padding-bottom: clamp(24px, 4vw, 44px); overflow: hidden; }
.wordmark-strip .display {
  text-align: center;
  font-size: clamp(2.6rem, 12.6vw, 11rem);
  font-weight: 350; letter-spacing: -.045em; line-height: 1;
}
.wordmark-strip .r-mark { display: inline-block; transition: transform .9s var(--ease); }
.wordmark-strip:hover .r-mark { transform: rotate(360deg); }

.mosaic {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: clamp(8px, 1.4vw, 16px);
  padding-bottom: clamp(50px, 8vw, 100px);
}
.tile {
  position: relative; aspect-ratio: 1; overflow: hidden; margin: 0;
  background: var(--panel); border-radius: var(--radius-sm);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .28; filter: grayscale(1) contrast(1.15); transform: scale(1.1);
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .9s var(--ease);
}
.tile:hover img, .tile:focus-within img { opacity: 1; filter: none; transform: scale(1); }
.tile--alt-a img { object-position: 78% 40%; }
.tile--alt-b img { object-position: 18% 72%; }
.tile :is(figcaption, .tile-cap) {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 14px 16px;
  font-size: .58rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--panel-ink);
  transform: translateY(120%); transition: transform .5s var(--ease);
}
.tile:is(:hover, :focus-visible) :is(figcaption, .tile-cap) { transform: translateY(0); }
.tile:focus-visible img { opacity: 1; filter: none; transform: scale(1); }

/* feed do Instagram: 8 postagens em 4 colunas */
.mosaic--feed { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaic--feed .tile { display: block; }
.mosaic--feed .tile-cap { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* enquanto carrega (ou se a API falhar) o tile fica neutro e leva ao perfil */
.tile.is-empty { background: var(--surface); }
.tile.is-empty .tile-cap { color: var(--ink-3); }
/* selo de vídeo / carrossel */
.tile[data-type]:not([data-type="image"])::after {
  content: ""; position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 16px; height: 16px; background: var(--panel-ink); opacity: .9;
  -webkit-mask: var(--tile-badge) center/contain no-repeat;
          mask: var(--tile-badge) center/contain no-repeat;
}
.tile[data-type="video"] { --tile-badge: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M4%202.5v11l9-5.5z%27/%3E%3C/svg%3E"); }
.tile[data-type="carousel_album"] { --tile-badge: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Cpath%20d=%27M5%201h10v10H5zM1%205h2v8h8v2H1z%27/%3E%3C/svg%3E"); }

/* briefing por etapas */
/* uma etapa por vez: a altura fixa mantém cada pergunta no mesmo ponto da tela */
.step-flow {
  padding-bottom: clamp(50px, 8vw, 100px);
  display: grid; align-content: center;
  min-height: clamp(360px, 48vh, 520px);
}
.step { text-align: center; padding-block: clamp(28px, 5vw, 52px); }
.step h2 {
  margin: 0 0 26px;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem); font-weight: 400;
  letter-spacing: -.03em; line-height: 1.2;
}
.step-arrow { display: grid; place-items: center; padding-block: 6px; }
.step-arrow svg { width: 22px; height: 26px; fill: var(--ink); animation: bob 1.9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  padding: 10px 20px; font-size: .76rem; font-weight: 450;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.chip.is-on { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }

.field { max-width: 640px; margin: 0 auto 26px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 12px 4px; font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--ink);
  transition: border-color .35s var(--ease);
}
.field textarea { border: 1px solid var(--ink); border-radius: var(--radius-sm); min-height: 150px; resize: vertical; padding: 16px; font-size: 1rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--ink); }

.field-error { display: block; margin-top: 8px; min-height: 1.1em; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #c62d4a; }
[data-theme="dark"] .field-error { color: #ff8fa1; }

.note { font-size: .74rem; color: var(--ink-3); margin-top: 10px; }

.form-done {
  max-width: 640px; margin: 0 auto; padding: clamp(30px, 5vw, 52px);
  background: var(--surface); border-radius: var(--radius); text-align: center;
}
.form-done h2 { margin-top: 0; }
.form-done .lead { margin-inline: auto; }

/* linhas de contato do rodapé (e-mail / telefone) */
.contact-lines { display: grid; gap: 14px; justify-items: stretch; }
.contact-lines .arrow-link {
  min-width: 0; width: 100%;
  font-size: clamp(.95rem, 1.7vw, 1.2rem); font-weight: 450; letter-spacing: -.02em;
  padding-bottom: 8px;
}

/* ============================================================
   Intro / preloader
   ============================================================ */

.intro {
  position: fixed; inset: 0; z-index: 300;
  background: #000; color: #fff;
  display: grid; place-items: center;
  transition: transform .85s var(--ease-io);
}
.intro-inner { display: grid; justify-items: center; gap: 16px; }
.intro-logo { width: 138px; filter: invert(1); }
.intro .mono-label { color: currentColor; opacity: .7; }
body.intro-done .intro { transform: translateY(-100%); pointer-events: none; }

body.nav-open { overflow: hidden; }

/* logo em <img>: preto no claro, branco no escuro */
[data-theme="dark"] .logo { filter: invert(1); }

/* estado "concluído" do botão */
.btn.is-done { border-color: var(--line); color: var(--ink-3); pointer-events: none; background: transparent; }
.btn.is-done::before { transform: translateY(101%); }
.btn.is-done::after { content: "✓"; margin-left: 8px; position: relative; z-index: 1; color: var(--ink); }

/* etapa ainda não liberada some por completo; entra ao ser desbloqueada */
.step.is-locked, .step-arrow.is-locked { display: none; }
/* sem JS o briefing não funciona, mas o conteúdo continua legível */
html:not(.js) .step.is-locked { display: block; }
html:not(.js) .step-arrow.is-locked { display: grid; }
.step.is-revealed, .step-arrow.is-revealed { animation: step-in .7s var(--ease) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.form-done { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* SVGs que se desenham ao entrar em cena */
.js .draw-svg :is(path, line, polyline, circle, rect) { stroke-dasharray: 900; stroke-dashoffset: 900; }
.js [data-reveal].is-in .draw-svg :is(path, line, polyline, circle, rect) { animation: draw 1.5s var(--ease) forwards; }
.draw-svg :is(path, line, polyline, circle, rect):nth-child(2) { animation-delay: .12s !important; }
.draw-svg :is(path, line, polyline, circle, rect):nth-child(3) { animation-delay: .24s !important; }
.draw-svg :is(path, line, polyline, circle, rect):nth-child(4) { animation-delay: .36s !important; }
.draw-svg :is(path, line, polyline, circle, rect):nth-child(5) { animation-delay: .48s !important; }
.draw-svg :is(path, line, polyline, circle, rect):nth-child(6) { animation-delay: .6s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { min-height: 240px; }
}

@media (max-width: 900px) {
  .maestria-grid,
  .about-intro,
  .case-intro { grid-template-columns: 1fr; }
  .project { min-height: clamp(320px, 62vw, 440px); }
  .voices { --per-view: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px var(--pad) 28px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--ease);
  }
  .nav-open .nav { clip-path: inset(0 0 0 0); }
  .nav-link { font-size: 1.5rem; letter-spacing: -.03em; padding: 12px 0; color: var(--ink); }
  .nav-link::after { bottom: 8px; }
  .site-header.is-over .nav-link { color: var(--ink); }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices { --per-view: 1; }
  .voices-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .voice:first-child { padding-left: clamp(16px, 2.2vw, 30px); }
  .voice { border-left: 1px solid var(--line-soft); }
  .case-pieces { grid-template-columns: 1fr; }
  .mosaic { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .btn--wide { min-width: 100%; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .cursor-tri { display: none; }
  .tile :is(figcaption, .tile-cap) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; scale: none !important; }
  .js .mask-line > span { transform: none !important; }
  .js .reveal-curtain::before { transform: scaleY(0) !important; }
  .voices-track { scroll-behavior: auto; }
  .draw-svg :is(path, line, polyline, circle, rect) { stroke-dashoffset: 0 !important; }
  .step.is-revealed, .step-arrow.is-revealed { animation: none; }
}

/* alternância sol/lua do botão de tema */
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* faixa de CTA: linha final em destaque */
.cta-band p strong { display: block; margin-top: .12em; }

/* rótulo dentro da faixa de CTA */
.cta-band .mono-label { margin-bottom: 18px; }

/* linha de botões de cada etapa do briefing */
.step-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
}
.btn--ghost {
  min-height: 40px; padding: 10px 22px;
  border-color: var(--line); color: var(--ink-2);
  font-size: .74rem;
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--bg); }

/* card de projeto ainda sem arte publicada */
.project-card figure.is-empty {
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-3);
  font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}

/* no escuro a sombra precisa ser mais densa para aparecer */
[data-theme="dark"] .service:hover,
[data-theme="dark"] .service:focus-within { box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9); }

@media (prefers-reduced-motion: reduce) {
  .service { will-change: auto; }
}
