/* ==========================================================================
   Paganini Engenharia — folha de estilo
   Tokens · base · componentes · seções · responsivo · movimento
   ========================================================================== */

:root {
  /* Cor */
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #232326;
  --ink-2: #5F5F67;
  --ink-3: #9A9AA2;
  --line: #E4E2DD;
  --line-strong: #CFCDC7;
  --accent: #FF8830;
  --accent-deep: #C75A0F;
  --accent-soft: #FFF1E6;

  /* Tipografia */
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Escala */
  --text-xs: 0.75rem;
  --text-sm: 0.9rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --h2: clamp(2rem, 1.2rem + 3.4vw, 3.8rem);
  --h1: clamp(2.75rem, 1.4rem + 6.6vw, 6.8rem);

  /* Ritmo */
  --container: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(80px, 6vw + 40px, 150px);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, p, h1, h2, h3 { margin: 0; }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; font-size: var(--text-sm);
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

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

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: var(--h2); }
h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow__dot {
  width: 7px; height: 7px; background: var(--accent); flex: none;
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.lead { font-size: var(--text-lg); color: var(--ink-2); line-height: 1.5; }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.section-head__note { max-width: 32ch; color: var(--ink-2); font-size: var(--text-sm); padding-bottom: 6px; }

/* ---------- Botões e links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: 0.01em; white-space: nowrap;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #1a1a1c; }

.link {
  position: relative; display: inline-flex; align-items: center;
  font-weight: 500; font-size: var(--text-sm); color: var(--ink);
  padding-bottom: 3px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link:hover::after { transform: scaleX(0); transform-origin: left; }

/* ---------- Navegação ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s;
}
.nav.is-solid { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(35,35,38,.18); }
.nav__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: 84px; display: flex; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__logo { height: 48px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: var(--text-sm); font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 40px; height: 40px; position: relative; margin-left: -8px;
}
.nav__toggle span {
  position: absolute; left: 10px; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  margin-top: 85px;
  min-height: calc(100vh - 85px); min-height: calc(100svh - 85px);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero__img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  object-fit: cover; object-position: center 35%;
  filter: contrast(1.14) saturate(1.12) brightness(.98);
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18,18,20,.78) 0%, rgba(18,18,20,.42) 42%, rgba(18,18,20,.08) 72%, rgba(18,18,20,0) 100%),
    linear-gradient(to right, rgba(18,18,20,.45), rgba(18,18,20,.1) 50%, rgba(18,18,20,0) 70%);
}
.hero__content {
  position: relative; z-index: 2;
  padding-bottom: clamp(72px, 10vh, 120px);
  padding-top: clamp(64px, 12vh, 140px);
}
.hero__eyebrow { color: rgba(255,255,255,.78); margin-bottom: 28px; }
.hero__title {
  font-size: var(--h1);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 13ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; }
.hero__sub {
  display: grid; grid-template-columns: minmax(0, 52ch) auto; align-items: end; gap: 28px 64px;
  margin-top: clamp(28px, 4vw, 44px);
}
.hero__sub p { font-size: var(--text-lg); color: rgba(255,255,255,.86); line-height: 1.5; }
.hero__cta { display: flex; align-items: center; gap: 28px; }
.hero .btn--primary { background: var(--accent); border-color: var(--accent); color: #1a1a1c; }
.hero .btn--primary:hover { background: #fff; border-color: #fff; }
.link--light { color: #fff; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.hero__scroll svg { width: 12px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s var(--ease-io) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Manifesto ---------- */

.manifesto {
  background: var(--surface);
  padding-block: clamp(96px, 8vw + 40px, 180px);
}
.manifesto__text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1.22;
  max-width: 28ch;
}
.manifesto__text .w { display: inline-block; opacity: .16; transition: opacity .25s linear; }
.manifesto__text .w.is-lit { opacity: 1; }

/* ---------- Serviços ---------- */

.services { padding-block: var(--section); }
.services__pin { position: relative; }
.services__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
  min-height: calc(100vh - 84px);
  min-height: calc(100svh - 84px);
  padding-block: 24px;
}
.services__list { display: flex; flex-direction: column; }
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__btn {
  width: 100%; display: flex; align-items: baseline; gap: 20px;
  padding: 18px 0; text-align: left;
}
.service__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: .08em; transition: color .4s; }
.service__title {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); line-height: 1.15;
  color: var(--ink-3); transition: color .5s var(--ease-out);
}
.service.is-active .service__title { color: var(--ink); }
.service.is-active .service__num { color: var(--accent-deep); }
.service__body {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows .6s var(--ease-io);
}
.service__body > * { min-height: 0; }
.service__body p { color: var(--ink-2); padding-left: 44px; max-width: 46ch; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); }
.service.is-active .service__body { grid-template-rows: 1fr; }
.service.is-active .service__body p { opacity: 1; transform: none; transition-delay: .2s; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 24px 44px; opacity: 0; transition: opacity .5s .3s; }
.service.is-active .tags { opacity: 1; }
.tags li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .06em; color: var(--ink-2); padding: 5px 10px; border: 1px solid var(--line-strong); }

.services__media { position: relative; }
.services__frame {
  position: relative; overflow: hidden; background: var(--line);
  height: min(calc(100svh - 180px), 700px);
}
.services__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .9s var(--ease-io), transform 1.4s var(--ease-out);
}
.services__img.is-active { opacity: 1; transform: scale(1); }
.services__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.25);
}
.services__progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Números ---------- */

.stats { padding-bottom: var(--section); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 36px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: 14px; }
.stat dd {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.04em;
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.stat dd sup { font-size: .45em; color: var(--accent-deep); line-height: 1; align-self: flex-start; margin-top: .2em; }
.stat dd small { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; color: var(--ink-2); }

/* ---------- Projetos ---------- */

.projects { overflow: hidden; padding-bottom: var(--section); }
.projects__pin { position: relative; }
.projects__track {
  display: flex; gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
  padding-block: 8px;
  will-change: transform;
  align-items: flex-end;
}
.project { flex: none; width: min(62vw, 720px); }
.project--tall { width: min(38vw, 440px); }
.project__figure { overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.project--tall .project__figure { aspect-ratio: 3 / 4; }
.project__figure img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.2s var(--ease-out);
}
.project:hover .project__figure img { transform: scale(1.06); }
.project__zoom {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.project__zoom::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(35, 35, 38, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.project__zoom:hover::after, .project__zoom:focus-visible::after { opacity: 1; transform: none; }
.project__zoom:focus-visible { outline-offset: -2px; }

/* Visualizador de fotos */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 20, 22, .94); color: #fff;
  display: none; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.lightbox[open] { display: flex; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.lightbox__img {
  display: block; max-width: min(88vw, 1600px); max-height: calc(100dvh - 160px);
  width: auto; height: auto; object-fit: contain;
  transform: scale(.96); transition: transform .45s var(--ease-out);
}
.lightbox.is-visible .lightbox__img { transform: none; }
.lightbox__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px; text-align: center; padding-inline: 16px; }
.lightbox__title { font-family: var(--font-display); font-size: 1.1rem; }
.lightbox__caption .mono { color: rgba(255, 255, 255, .66); }
.lightbox__close, .lightbox__nav {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 1; }
html.has-lightbox { overflow: hidden; }
.project__meta { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.project__meta h3 { font-size: 1.15rem; }
.project--cta {
  width: min(44vw, 460px); aspect-ratio: 3 / 4; align-self: stretch;
  display: flex; background: var(--ink); color: #fff;
  transition: background .5s var(--ease-out);
}
.project--cta:hover { background: var(--accent); color: var(--ink); }
.project--cta__inner { display: flex; flex-direction: column; justify-content: space-between; padding: 32px; width: 100%; }
.project--cta .eyebrow { color: inherit; opacity: .7; }
.project--cta__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 2rem + 4vw, 6rem); letter-spacing: -0.04em; line-height: 1; }
.project--cta .link { color: inherit; }

/* ---------- Método ---------- */

/* ---------- Parceiros e clientes ---------- */

.clients { padding-block: var(--section); border-top: 1px solid var(--line); }
.clients__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px); align-items: start;
}
.clients__intro { position: sticky; top: 132px; }
.clients__intro .eyebrow { margin-bottom: 20px; }
.clients__intro h2 { max-width: 13ch; margin-bottom: 24px; }
.clients__text { color: var(--ink-2); max-width: 44ch; margin: 0; }
.clients__sectors { margin: 40px 0 0; border-top: 1px solid var(--line-strong); }
.clients__sectors div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.clients__sectors dt { font-size: var(--text-sm); color: var(--ink); }
.clients__sectors dd {
  margin: 0; font-family: var(--font-mono); font-size: var(--text-sm);
  color: var(--accent-deep); font-variant-numeric: tabular-nums;
}

.clients__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line);
}
.client {
  position: relative; display: grid; place-items: center;
  min-height: clamp(180px, 16vw, 224px); padding: 40px 24px 64px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent; overflow: hidden;
  transition: background .5s var(--ease-out);
}
/* Marca de canto: traço laranja que cresce no hover */
.client::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 2px;
  background: var(--accent); transition: width .6s var(--ease-out);
}
.client__num { position: absolute; top: 14px; left: 16px; color: var(--ink-3); transition: color .4s var(--ease-out); }
.client__logo {
  display: block; height: var(--h, 60px); width: auto; max-width: 78%; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .55;
  transition: filter .5s var(--ease-out), opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.client__info {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.client__name { font-size: var(--text-sm); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client__info .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Logos em selo (fundo cheio) pesam mais em cinza: atenuados um pouco mais */
.client--badge .client__logo { opacity: .4; }
.client:hover { background: var(--surface); }
.client:hover::before { width: calc(100% + 1px); }
.client:hover .client__num { color: var(--accent-deep); }
.client:hover .client__logo { filter: none; opacity: 1; transform: translateY(-6px); }
.client:hover .client__info { opacity: 1; transform: none; }
/* Telas de toque não têm hover: logos em cor e nomes sempre visíveis */
@media (hover: none) {
  .client__logo, .client--badge .client__logo { filter: none; opacity: 1; }
  .client__info { opacity: 1; transform: none; }
}

.method { background: var(--surface); padding-block: var(--section); }
.method__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 120px); align-items: start;
}
.method__intro { position: sticky; top: 132px; }
.method__intro .eyebrow { margin-bottom: 20px; }
.method__intro h2 { max-width: 12ch; margin-bottom: 24px; }
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.steps::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: top;
}
.step {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px;
  padding: 36px 0 36px 32px;
}
.step + .step { border-top: 1px solid var(--line); }
.step__num { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; color: var(--ink-3); padding-top: 6px; }
.step h3 { font-size: clamp(1.4rem, 1rem + 1.3vw, 2.1rem); margin-bottom: 12px; }
.step p { color: var(--ink-2); max-width: 48ch; }

/* ---------- Sobre ---------- */

.about { padding-block: var(--section); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px); align-items: center;
}
.about__figure { overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.about__figure img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; will-change: transform; }
.about__text .eyebrow { margin-bottom: 20px; }
.about__text h2 { margin-bottom: 24px; max-width: 16ch; }
.about__text > p { color: var(--ink-2); max-width: 52ch; }
.values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
  margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line);
}
.values li { display: flex; gap: 16px; align-items: flex-start; }
.values svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--accent-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.values h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 4px; }
.values p { font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Contato ---------- */

.contact { background: var(--surface); padding-block: var(--section); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px); align-items: start;
}
.contact__text .eyebrow { margin-bottom: 20px; }
.contact__text h2 { margin-bottom: 24px; max-width: 14ch; }
.contact__text > p { color: var(--ink-2); max-width: 44ch; }
.contact__info { margin-top: 40px; display: grid; gap: 18px; }
.contact__info dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact__info dd a { position: relative; }
.contact__info dd a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--line-strong); transition: background .3s; }
.contact__info dd a:hover::after { background: var(--ink); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; transition: border-color .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23232326' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: var(--surface);
}
.form .btn { justify-self: start; }
.form__note { font-size: var(--text-xs); color: var(--ink-3); }

/* ---------- Rodapé ---------- */

.footer { padding: 64px 0 32px; }
.footer__brand img { width: 210px; height: auto; }
.footer__grid {
  display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: start;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: var(--text-sm); font-weight: 500; justify-content: center; padding-top: 8px; }
.footer__links a { color: var(--ink-2); transition: color .3s; }
.footer__links a:hover { color: var(--ink); }
.footer__social { display: flex; justify-content: flex-end; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-2); transition: color .3s, border-color .3s, background .3s;
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social:hover { color: var(--ink); border-color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; color: var(--ink-3); }

/* ---------- Elementos só do celular/tablet ---------- */

.projects__progress, .fab, .client--clone { display: none; }

/* ---------- Revelação genérica ---------- */

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Estado inicial do hero (animado no load) */
.hero__title .line > span { transform: translateY(110%); }
.hero__eyebrow, .hero__sub, .hero__scroll { opacity: 0; transform: translateY(16px); }
.hero__img { opacity: 0; }
body.is-ready .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
body.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
body.is-ready .hero__eyebrow { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) .1s, transform .8s var(--ease-out) .1s; }
body.is-ready .hero__sub { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .5s, transform .9s var(--ease-out) .5s; }
body.is-ready .hero__scroll { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) 1s, transform .9s var(--ease-out) 1s; }
body.is-ready .hero__img { opacity: 1; transition: opacity 1.4s var(--ease-out); }

/* ---------- Responsivo ---------- */

/* Tablet e abaixo: sem seções fixas — tudo vira interação por toque */
@media (max-width: 1024px) {
  .hero__sub { grid-template-columns: 1fr; }

  /* Serviços: imagem no topo + acordeão (um aberto por vez) */
  .services__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 0; gap: 28px; }
  .services__media { order: -1; }
  .services__frame { height: auto; aspect-ratio: 16 / 9; }
  .services__progress { display: none; }
  .service__btn { align-items: center; }
  .service__btn::after {
    content: ""; margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line-strong);
    background:
      linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat,
      linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat;
    transition: transform .5s var(--ease-out), background-color .4s, border-color .4s;
  }
  .service.is-active .service__btn::after { transform: rotate(135deg); background-color: var(--accent); border-color: var(--accent); }
  .service .service__title { color: var(--ink-2); }

  /* Projetos: galeria em scroll nativo com snap (a fixa é só no desktop) */
  .projects__track {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scroll-padding-inline: var(--gutter); scrollbar-width: none; align-items: flex-start;
    overscroll-behavior-x: contain;
  }
  .projects__track::-webkit-scrollbar { display: none; }
  .project, .project--tall { width: min(64vw, 560px); scroll-snap-align: start; }
  .project--tall .project__figure { aspect-ratio: 3 / 2; }
  .project--cta { width: min(52vw, 420px); aspect-ratio: auto; align-self: stretch; min-height: 280px; }
  .projects__progress {
    display: flex; align-items: center; gap: 16px; margin-top: 28px;
  }
  .projects__progress b { font-weight: 500; color: var(--ink); }
  .projects__bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); overflow: hidden; }
  .projects__bar span {
    position: absolute; inset: 0; background: var(--accent);
    transform: scaleX(.04); transform-origin: left; transition: transform .25s linear;
  }
  .projects__hint { display: inline-flex; align-items: center; gap: 8px; }
  .projects__hint::after { content: "→"; animation: swipe 2s var(--ease-io) infinite; }

  .method__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .method__intro { position: static; }
  .clients__grid { grid-template-columns: 1fr; }
  .clients__intro { position: static; }
  .clients__sectors { max-width: 520px; }
  .about__figure { aspect-ratio: 16 / 10; order: -1; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .footer__social { justify-content: flex-start; }
}
@keyframes swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* Celular */
@media (max-width: 768px) {
  :root {
    --section: 72px;
    --h2: clamp(1.85rem, 1.2rem + 3.2vw, 2.4rem);
    --h1: clamp(2.6rem, 1.6rem + 6vw, 3.6rem);
  }
  .hide-sm { display: none; }
  .section-head { margin-bottom: 32px; }
  .section-head .eyebrow, .clients__intro .eyebrow, .method__intro .eyebrow,
  .about__text .eyebrow, .contact__text .eyebrow { margin-bottom: 14px; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head__note { max-width: none; padding-bottom: 0; }

  /* Navegação */
  .nav__links, .nav__inner > .btn--sm { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { height: 64px; gap: 16px; }
  .brand__logo { height: 36px; }
  .nav.is-open { box-shadow: none; }

  /* Menu em tela cheia, escuro, com cortina de cima para baixo */
  .mobile-menu {
    position: fixed; left: 0; right: 0; top: 65px; height: calc(100dvh - 65px);
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--ink); color: #fff; overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
  }
  .nav.is-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-io); }
  .mobile-menu__links { display: flex; flex-direction: column; }
  .mobile-menu__links a {
    display: flex; align-items: baseline; gap: 18px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
    font-family: var(--font-display); font-weight: 300; letter-spacing: -0.03em;
    font-size: clamp(1.9rem, 1.2rem + 4vw, 2.6rem); line-height: 1.1;
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .3s;
  }
  .mobile-menu__links a span { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; color: var(--accent); }
  .mobile-menu__links a:active { color: var(--accent); }
  .mobile-menu__foot {
    display: grid; gap: 20px;
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  }
  .mobile-menu__foot .btn { justify-content: center; background: var(--accent); border-color: var(--accent); color: var(--ink); }
  .mobile-menu__info { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.6); }
  .mobile-menu__info a { color: #fff; }
  .nav.is-open .mobile-menu__links a, .nav.is-open .mobile-menu__foot { opacity: 1; transform: none; }
  .nav.is-open .mobile-menu__links a:nth-child(1) { transition-delay: .18s; }
  .nav.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .22s; }
  .nav.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .26s; }
  .nav.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .30s; }
  .nav.is-open .mobile-menu__links a:nth-child(5) { transition-delay: .34s; }
  .nav.is-open .mobile-menu__links a:nth-child(6) { transition-delay: .38s; }
  .nav.is-open .mobile-menu__foot { transition-delay: .44s; }
  html.has-menu { overflow: hidden; }

  /* Hero: altura do conteúdo + faixa de foto (sem céu vazio acima do título) */
  .hero { margin-top: 65px; min-height: 0; }
  .hero__content { padding-top: clamp(170px, 28svh, 250px); padding-bottom: 44px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__title { max-width: none; }
  /* Foto reenquadrada: sobe e aproxima para o rosto ocupar o topo, sem céu vazio */
  .hero__img { inset: auto 0; top: -26%; height: 140%; object-position: 70% 50%; }
  .hero__shade {
    background:
      linear-gradient(to top, rgba(18,18,20,.88) 0%, rgba(18,18,20,.6) 42%, rgba(18,18,20,.16) 70%, rgba(18,18,20,0) 100%);
  }
  .hero__sub { margin-top: 18px; gap: 28px; }
  .hero__sub p { font-size: 1rem; line-height: 1.55; max-width: 30ch; }
  .hero__cta .link { display: none; }
  .hero__scroll { display: none; }

  /* Manifesto */
  .manifesto { padding-block: 64px; }
  .manifesto__text { font-size: clamp(1.35rem, 1rem + 2.2vw, 1.7rem); line-height: 1.3; }

  /* Serviços */
  .service__btn { padding: 16px 0; gap: 14px; }
  .service__title { font-size: 1.3rem; }
  .service__body p { padding-left: 0; font-size: .95rem; }
  .tags { padding: 14px 0 20px; }
  .services__frame { aspect-ratio: 4 / 3; }

  /* Números: 2 × 2 compacto */
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 12px 18px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat dt { font-size: var(--text-xs); margin-bottom: 8px; }
  .stat dd { font-size: clamp(2.2rem, 1.4rem + 4vw, 2.8rem); }

  /* Projetos */
  .project, .project--tall { width: 84vw; }
  .project__figure, .project--tall .project__figure { aspect-ratio: 4 / 3; }
  .project__meta { padding-top: 12px; gap: 4px; }
  .project__meta h3 { font-size: 1.05rem; }
  .project--cta { width: 70vw; min-height: 0; }
  .project--cta__inner { padding: 24px; }
  .project--cta__title { font-size: 3rem; }
  .projects__progress { margin-top: 20px; }

  /* Clientes: setores em linha + faixa de logos em movimento */
  .clients { overflow: hidden; }
  .clients__grid { gap: 36px; }
  .clients__text { font-size: .95rem; }
  .clients__sectors { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 0; }
  .clients__sectors div {
    flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 4px;
    padding: 14px 12px 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong);
  }
  .clients__sectors div + div { padding-left: 12px; border-left: 1px solid var(--line); }
  .clients__sectors dt { font-size: var(--text-xs); line-height: 1.3; color: var(--ink-2); }
  .clients__sectors dd { font-family: var(--font-display); font-weight: 300; font-size: 2rem; letter-spacing: -0.04em; line-height: 1; }
  .clients__rail {
    margin-inline: calc(-1 * var(--gutter)); overflow: hidden;
    border-block: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }
  .clients__list {
    display: flex; width: max-content; border: 0;
    animation: marquee 38s linear infinite;
  }
  .clients__rail:active .clients__list { animation-play-state: paused; }
  .client, .client--clone { display: grid; }
  .client {
    width: 176px; min-height: 148px; padding: 30px 18px 48px;
    border-right: 1px solid var(--line); border-bottom: 0;
  }
  .client::before { display: none; }
  .clients__rail [data-reveal] { opacity: 1; transform: none; }
  .client__logo, .client--badge .client__logo { height: calc(var(--h, 60px) * .72); max-width: 82%; filter: none; opacity: 1; }
  .client__info { opacity: 1; transform: none; left: 14px; right: 14px; bottom: 12px; }
  .client__name { font-size: .8rem; }
  .client__info .mono { font-size: .62rem; }
  .client__num { top: 10px; left: 14px; }

  /* Popup das fotos */
  .project__zoom::after { opacity: 1; transform: none; width: 34px; height: 34px; top: 10px; right: 10px; background-size: 16px; }
  .lightbox { gap: 0; }
  .lightbox__img { max-width: 100vw; max-height: calc(100dvh - 190px); }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }

  /* Método: linha do tempo compacta com marcadores */
  .method__grid { gap: 32px; }
  .method__intro .lead { font-size: 1rem; }
  .method__intro h2 { margin-bottom: 14px; }
  .steps::before, .steps::after { left: 5px; }
  .step { grid-template-columns: 1fr; gap: 4px; padding: 20px 0 20px 32px; position: relative; }
  .step::before {
    content: ""; position: absolute; left: 0; top: 26px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--surface); border: 1.5px solid var(--accent); z-index: 1;
  }
  .step + .step { border-top: 0; }
  .step__num { padding-top: 0; color: var(--accent-deep); }
  .step h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .step p { font-size: .95rem; }

  /* Sobre: valores em cartões 2 × 2 */
  .about__figure { aspect-ratio: 4 / 3; }
  .about__grid { gap: 32px; }
  .about__text h2 { margin-bottom: 16px; }
  .about__text > p { font-size: .98rem; }
  .values { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; padding-top: 0; border-top: 0; }
  .values li { flex-direction: column; gap: 12px; padding: 16px 14px; background: var(--surface); border: 1px solid var(--line); }
  .values svg { margin-top: 0; }
  .values h3 { font-size: .95rem; line-height: 1.25; }
  .values p { font-size: .8rem; line-height: 1.45; }

  /* Contato */
  .contact__grid { gap: 36px; }
  .contact__text h2 { margin-bottom: 16px; }
  .contact__info { margin-top: 28px; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .contact__info div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .contact__info dd { font-size: 1.05rem; }
  .field-row { grid-template-columns: 1fr; }
  .form { gap: 18px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* evita zoom no iOS */
  .form .btn { justify-self: stretch; justify-content: center; }

  /* Rodapé: composição centralizada — marca, links em duas linhas, Instagram, créditos */
  .footer { padding: 52px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding-bottom: 36px; }
  .footer__brand img { width: 168px; }
  .footer__links {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: center;
    gap: 12px 0; padding-top: 0; font-size: .95rem;
  }
  .footer__links a { display: inline-flex; align-items: center; }
  .footer__links a:not(:nth-child(3n + 1))::before {
    content: ""; width: 3px; height: 3px; margin-inline: 14px; border-radius: 50%; background: var(--accent);
  }
  .footer__social { justify-content: center; }
  .social { width: 44px; height: 44px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 6px; padding-top: 22px; text-align: center; }

  /* Atalho flutuante de contato */
  .fab {
    position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 22px; border-radius: 999px;
    background: var(--ink); color: #fff; font-weight: 500; font-size: var(--text-sm);
    box-shadow: 0 12px 32px -12px rgba(18,18,20,.55);
    opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none;
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background .3s;
  }
  .fab svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .fab:active { background: var(--accent); color: var(--ink); }
  .fab:active svg { stroke: var(--ink); }
  html.has-menu .fab, html.has-lightbox .fab { opacity: 0; pointer-events: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Celulares pequenos */
@media (max-width: 380px) {
  .values { grid-template-columns: 1fr; }
  .clients__sectors dt { font-size: .62rem; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal], .hero__eyebrow, .hero__sub, .hero__scroll, .hero__img { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .manifesto__text .w { opacity: 1; }
  /* Faixa de logos parada: vira rolagem manual, sem as cópias */
  .clients__list { animation: none !important; }
  .clients__rail { overflow-x: auto; }
  .client--clone { display: none !important; }
}
