/* ============ TOKENS ============ */
:root {
  --ink: #0a0a0a;
  --ink-2: #232323;
  --paper: #ffffff;
  --paper-2: #f3f3f3;
  --muted: #5d5d5d;
  --border: #e6e6e6;
  --accent: #588157; /* cor de destaque — troque aqui */

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --radius: 24px;
  --gutter: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
html.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
section[id], footer[id] { scroll-margin-top: 84px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
}

/* ============ TAG ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.tag-light { background: var(--paper); color: var(--ink); }
.tag-dark { background: var(--ink-2); color: var(--paper); }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-light { background: var(--paper); color: var(--ink); }
/* botões brancos ficam verdes com texto branco ao passar o mouse */
.btn-light:hover, .btn-light:focus-visible { background: var(--accent); color: var(--paper); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-lg { padding: 20px 30px; font-size: clamp(16px, 1.6vw, 20px); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn-roll { display: grid; overflow: hidden; height: 1.2em; }
.btn-roll span { grid-area: 1 / 1; transition: transform .45s var(--ease); }
.btn-roll span:last-child { transform: translateY(110%); }
.btn:hover .btn-roll span:first-child { transform: translateY(-110%); }
.btn:hover .btn-roll span:last-child { transform: none; }

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.link-underline sup { font-family: var(--mono); font-size: 11px; font-weight: 400; }
.link-underline::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 8px 8px auto 8px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(14px, 2.4vw, 36px);
  border-radius: var(--radius);
  color: var(--paper);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.04em;
}
.logo-mark {
  flex: none;
  width: auto;
  height: 1.25em;
  animation: mark-in .9s var(--ease) .15s backwards;
  transition: transform .6s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
@keyframes mark-in { from { transform: scale(.4) rotate(-40deg); opacity: 0; } }
.logo-text { display: inline-flex; overflow: hidden; padding: .3em 0; margin: -.3em 0; }
.logo-text span {
  display: inline-block;
  animation: letter-in .8s var(--ease) calc(var(--i) * 45ms + 250ms) backwards;
}
.logo:hover .logo-text span {
  animation:
    letter-in .8s var(--ease) calc(var(--i) * 45ms + 250ms) backwards,
    letter-hop .55s var(--ease) calc(var(--i) * 35ms);
}
@keyframes letter-in { from { transform: translateY(120%); } }
@keyframes letter-hop { 40% { translate: 0 -5px; color: var(--accent); } }

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.03em;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--accent); }
.nav-cta { padding: 12px 18px; }

/* idioma: botão PT | EN e a página escondida por um instante enquanto traduz */
.traduzindo body { visibility: hidden; }
.nav-acoes { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 500 12px/1 var(--mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .3s;
}
.lang:hover { border-color: rgba(255, 255, 255, .7); }
.lang span { padding: 8px 10px; border-radius: 999px; opacity: .65; transition: background .3s, color .3s, opacity .3s; }
.lang span.is-on { background: var(--paper); color: var(--ink); opacity: 1; }
.menu-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(40px, 8vh, 96px);
  min-height: calc(100svh - 16px);
  margin: 8px;
  padding: 120px clamp(16px, 2.4vw, 36px) clamp(20px, 2.4vw, 36px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}
.hero::after { /* escurece a base para o texto */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 10, .8), rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, .3));
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero-sub { font-size: clamp(16px, 1.3vw, 18px); letter-spacing: -.02em; opacity: .9; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
}
.hero-aside { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.hero-aside p { font-size: 20px; line-height: 1.3; letter-spacing: -.03em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ CLIENTES ============ */
.clients {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.clients-label {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { flex: none; margin: 0 clamp(22px, 2.6vw, 40px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SOBRE ============ */
.about-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
}
.about-head .h2 { max-width: 16ch; }

.strip { margin: clamp(48px, 6vw, 88px) 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.strip.is-dragging { cursor: grabbing; }
.strip .thumb { cursor: pointer; }
.strip.is-dragging .thumb { cursor: grabbing; }
.strip .thumb img, .strip .thumb video { transition: transform .9s var(--ease); }
.strip .thumb:hover img, .strip .thumb:hover video { transform: scale(1.04); }
.strip .foco-direita:hover video { transform: scale(1.36); }
.strip-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.strip img, .strip video { pointer-events: none; -webkit-user-drag: none; }
.strip .thumb { width: clamp(240px, 30vw, 460px); aspect-ratio: 4 / 5; }
.strip-track > :last-child { margin-right: 16px; }
/* aproxima o vídeo pela direita, cortando o texto da esquerda (ex.: sachê Melitta) */
.strip .foco-direita video { transform: scale(1.3); transform-origin: 100% 50%; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: 28px;
}
.stat-num {
  padding-bottom: 12px;
  border-bottom: 1px dashed #b5b5b5;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.stat h3 { margin-top: 20px; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.stat p { margin-top: 6px; max-width: 28ch; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ============ THUMBS (placeholders animados) ============ */
.thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c1);
  isolation: isolate;
}
.thumb::before, .thumb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}
.thumb::before { width: 80%; aspect-ratio: 1; left: -20%; top: -10%; background: var(--c2); animation: float1 12s ease-in-out infinite alternate; }
.thumb::after { width: 65%; aspect-ratio: 1; right: -15%; bottom: -15%; background: var(--c3); animation: float2 14s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(45%, 40%) scale(1.2); } }
@keyframes float2 { to { transform: translate(-50%, -45%) scale(.8); } }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.t1 { --c1: #e8a413; --c2: #7b2d12; --c3: #f6d68a; }
.t2 { --c1: #c81e1e; --c2: #ffb4a2; --c3: #2a0a0a; }
.t3 { --c1: #6fa8dc; --c2: #de322d; --c3: #f4c7b8; }
.t4 { --c1: #f2a7b5; --c2: #5b7fd6; --c3: #ff6a3d; }
.t5 { --c1: #4b5a2a; --c2: #c9d48a; --c3: #1b2410; }

/* ============ SERVIÇOS ============ */
.services {
  margin: 0 8px;
  padding: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 44px) clamp(24px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.services-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.services-intro p { max-width: 380px; font-size: 18px; letter-spacing: -.02em; color: #a8a8a8; }

.service-list { padding-top: clamp(24px, 4vw, 56px); }
.service {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: center;
  gap: 32px;
  padding: clamp(14px, 1.6vw, 22px) clamp(0px, 1.4vw, 20px);
  border-radius: 16px;
  color: #5c5c5c;
  cursor: default;
  transition: color .35s, background .35s;
}
.service h3 {
  font-size: clamp(34px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
  transition: transform .5s var(--ease);
}
.service h3 sup {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: top;
  color: var(--paper);
}
.service-detail {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s, transform .5s var(--ease);
}
.service-detail .mono { color: var(--accent); }
.service-detail p { margin-top: 8px; color: #cfcfcf; }
.service:hover, .service:focus-visible { color: var(--paper); background: rgba(255, 255, 255, .04); }
.service:hover h3, .service:focus-visible h3 { transform: translateX(12px); }
.service:hover .service-detail, .service:focus-visible .service-detail { opacity: 1; transform: none; }

/* ============ TRABALHOS ============ */
.center-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 88px);
  text-align: center;
}
.center-head p { max-width: 46ch; color: var(--muted); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(340px, auto) auto auto;
  gap: 10px;
}
.bento-intro {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.bento-intro .h2 { margin-top: 24px; }
.h-arrow {
  position: relative;
  display: inline-block;
  width: clamp(48px, 7vw, 110px);
  height: 2px;
  margin-left: .2em;
  vertical-align: middle;
  background: currentColor;
  transition: width .5s var(--ease);
}
.h-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(-50%) rotate(45deg);
}
.bento-intro:hover .h-arrow { width: clamp(64px, 10vw, 160px); }
.bento-intro-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bento-intro-foot p { max-width: 34ch; color: var(--muted); }

.card { display: block; color: var(--paper); transition: border-radius .8s var(--ease); }
.card:hover, .card:focus-visible { border-radius: 44px; }
.card-feature { grid-column: 7 / span 6; grid-row: 1 / span 2; min-height: 520px; }
.card-sm-a { grid-column: 1 / span 3; aspect-ratio: 1; }
.card-sm-b { grid-column: 4 / span 3; aspect-ratio: 1; }
.card-wide { grid-column: 1 / span 7; min-height: clamp(280px, 30vw, 420px); }
.card-mid { grid-column: 8 / span 5; }
.card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 1.6vw, 24px);
  background: linear-gradient(to top, rgba(10, 10, 10, .6), rgba(10, 10, 10, 0) 55%);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-top .card-go:only-child { margin-left: auto; }
.card-tag {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: translate(-8px, 8px) scale(.7);
  transition: opacity .3s, transform .45s var(--ease), background .3s, color .3s;
}
.card:hover .card-go, .card:focus-visible .card-go { opacity: 1; transform: none; background: var(--accent); color: var(--paper); }
.card h3 { font-size: clamp(20px, 2vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.card-info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-count { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.card > img, .card > video { transition: transform .9s var(--ease); }
.card:hover > img, .card:hover > video, .card:focus-visible > img, .card:focus-visible > video { transform: scale(1.05); }
.card-feature h3 { font-size: clamp(28px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.04em; }
.card-badge {
  position: absolute;
  right: 14%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.card-feature:hover .card-badge { transform: scale(1.12); background: var(--paper); color: var(--ink); }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.faq-grid .h2 { margin: 24px 0 16px; }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--paper); }
details p { max-width: 60ch; padding-bottom: 24px; color: var(--muted); }

/* ============ RODAPÉ ============ */
.footer {
  margin: 0 8px 8px;
  padding: clamp(56px, 8vw, 120px) clamp(16px, 2.4vw, 44px) 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer-cta h2 {
  font-size: clamp(40px, 7.4vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(56px, 8vw, 120px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { font-weight: 500; letter-spacing: -.02em; transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom .mono { color: #8a8a8a; }
.footer-bottom .to-top { display: inline-flex; gap: 8px; color: var(--paper); transition: color .25s; }
.to-top span { transition: transform .45s var(--ease); }
.to-top:hover { color: var(--accent); }
.to-top:hover span { transform: translateY(-3px); }

/* ============ PÁGINA DE TEMA ============ */
.hero-tema { min-height: min(68svh, 640px); }
.sub-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; background: var(--c1); opacity: .55; }
/* no Safari do iPhone, as manchas desfocadas (filter: blur) "vazavam" pelos cantos arredondados:
   o recorte explícito garante as bordas redondas */
.hero { clip-path: inset(0 round var(--radius)); }
.sub-media::before, .sub-media::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.sub-media::before { width: 60%; aspect-ratio: 1; left: -10%; top: -30%; background: var(--c2); animation: float1 14s ease-in-out infinite alternate; }
.sub-media::after { width: 45%; aspect-ratio: 1; right: -8%; bottom: -40%; background: var(--c3); animation: float2 16s ease-in-out infinite alternate; }
.back-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
  transition: opacity .25s, color .25s;
}
.back-link:hover { opacity: 1; }
.hero-sub-text { max-width: 52ch; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.02em; opacity: .9; }

.galeria {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(260px, 28vw, 420px);
  gap: 10px;
}
.galeria .card { grid-column: span 4; }
.galeria .card:nth-child(7n + 1), .galeria .card:nth-child(7n) { grid-column: span 7; }
.galeria .card:nth-child(7n + 2), .galeria .card:nth-child(7n + 6) { grid-column: span 5; }
.galeria .card:only-child { grid-column: 1 / -1; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.filtro {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 500 16px/1.2 var(--sans);
  letter-spacing: -.02em;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.filtro sup { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); transition: color .3s; }
.filtro:hover { border-color: var(--ink); }
.filtro[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filtro[aria-pressed="true"] sup { color: var(--paper); }

.grade-fotos { columns: 3 300px; column-gap: 10px; }
.grade-item {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  break-inside: avoid;
}
.grade-item img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.grade-item:hover img { transform: scale(1.03); }
.grade-uniforme { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; columns: auto; }
.grade-uniforme .grade-item { margin: 0; aspect-ratio: 4 / 5; }
.grade-uniforme .grade-item img { height: 100%; object-fit: cover; }

.next { padding-bottom: clamp(72px, 10vw, 140px); }
.next-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-radius .8s var(--ease);
}
.next-link:hover { border-radius: 44px; }
.next-name { font-size: clamp(34px, 6vw, 88px); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.next-link:hover .h-arrow { width: clamp(64px, 10vw, 160px); }

/* ============ GALERIA DE FOTOS ============ */
button.card { width: 100%; padding: 0; border: 0; font: inherit; text-align: left; cursor: pointer; }
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 10, .96);
  color: var(--paper);
}
.lightbox[open] { display: flex; flex-direction: column; animation: lightbox-in .3s var(--ease); }
.lightbox::backdrop { background: var(--ink); }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 2.4vw, 36px); }
.lightbox-info { display: flex; align-items: baseline; gap: 16px; }
.lightbox-title { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.lightbox-count { opacity: .7; }
.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 6vw, 96px) clamp(16px, 2.4vw, 36px);
}
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.lightbox { overflow: hidden; }
/* galeria de fotos: três slides lado a lado; o trilho anda junto com o dedo */
.lightbox-pista { position: relative; align-self: stretch; flex: 1; min-height: 0; width: 100%; touch-action: pan-y pinch-zoom; }
.lightbox-trilho { position: absolute; inset: 0; will-change: transform; }
.lightbox-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(calc(var(--lado) * 100vw)); /* vizinhas uma tela inteira ao lado: ficam escondidas até o deslize */
}
.lightbox-slide img:not([src]) { display: none; }
.lightbox-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1 var(--sans);
  cursor: pointer;
  transition: background .3s, color .3s;
}
.lightbox-btn:hover { background: var(--accent); color: var(--paper); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); }
.lightbox-prev { left: clamp(8px, 1.6vw, 28px); }
.lightbox-next { right: clamp(8px, 1.6vw, 28px); }

/* ============ FORMULÁRIO DE CONTATO ============ */
.btn-dark { justify-content: center; border: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); cursor: pointer; }
.btn-dark:hover { background: var(--accent); }
.btn-dark:disabled { opacity: .5; cursor: default; }
.contato {
  width: min(560px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.contato[open] { animation: contato-in .4s var(--ease); }
.contato::backdrop { background: rgba(10, 10, 10, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes contato-in { from { opacity: 0; transform: translateY(24px); } }
.contato-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 4vw, 36px); }
.contato-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contato-top h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.contato-fechar { background: var(--paper-2); }
.contato-intro { color: var(--muted); }
.contato label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contato input, .contato textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
  transition: border-color .25s, background .25s;
}
.contato ::placeholder { color: #9a9a9a; }
.contato input:focus, .contato textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.contato-isca { position: absolute; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.contato-status { min-height: 1.6em; font-size: 14px; color: var(--accent); }
.contato-status.is-erro { color: #b3261e; }
.contato-status a { text-decoration: underline; }

/* ============ PÁGINA SOBRE ============ */
.bio { display: flex; flex-direction: column; gap: 20px; }
.bio p { max-width: 62ch; font-size: 18px; color: var(--muted); }
.bio .bio-lead { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: clamp(24px, 4vw, 56px); }
.chips li {
  padding: .35em .7em;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: clamp(18px, 2.3vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
  transition: background .3s, color .3s, border-color .3s;
}
.chips li:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ============ REVEAL ============ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* cards que também entram com reveal: mantém a transição do arredondamento (sem o atraso da entrada) */
.js .card.reveal {
  transition: opacity .8s var(--ease), transform .9s var(--ease), border-radius .8s var(--ease);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
}
/* o mesmo para botões com reveal: a troca de cor no hover continua suave */
.js .btn.reveal {
  transition: opacity .8s var(--ease), transform .9s var(--ease), background .4s var(--ease), color .4s var(--ease);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}

/* ============ RESPONSIVO ============ */
@media (min-width: 961px) {
  .hero-media { /* desloca a foto para a direita; a máscara esconde a emenda à esquerda */
    transform: translateX(10%);
    mask-image: linear-gradient(to right, transparent, #000 22%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
  }
}
@media (max-width: 960px) {
  .nav-cta { display: none; }
  .menu-toggle {
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
    z-index: 2;
  }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .logo { position: relative; z-index: 2; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a { align-self: flex-start; font-size: clamp(36px, 11vw, 44px); letter-spacing: -.04em; line-height: 1.15; }
  /* com o menu aberto a barra perde o desfoque: o filtro faria o menu (fixo) caber só dentro dela */
  /* ao rolar, a barra encolhe: menos respiro, logo e botão menores */
  .logo { transition: font-size .4s var(--ease); }
  .menu-toggle { transition: width .4s var(--ease), height .4s var(--ease); }
  .nav.is-scrolled { padding-block: 8px; padding-inline: 14px 8px; }
  .nav.is-scrolled .logo { font-size: 18px; }
  .nav.is-scrolled .menu-toggle { width: 38px; height: 38px; }
  .nav-acoes { gap: 8px; }
  .lang span { padding: 7px 8px; }
  .nav.is-scrolled .lang span { padding: 6px 7px; }
  .nav.menu-open { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
  .nav-links { overscroll-behavior: contain; }

  .hero-media {
    height: 56%;
    object-position: 64% 50%;
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }
  .hero-bottom, .about-head, .services-intro { flex-direction: column; align-items: flex-start; }
  .hero-meta { order: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }

  .service { grid-template-columns: 1fr; gap: 10px; color: var(--paper); }
  .service-detail { opacity: 1; transform: none; }
  .service-detail .mono { display: none; }
  .service:hover h3 { transform: none; }

  .galeria { grid-auto-rows: auto; }
  .galeria .card:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .bento { grid-template-rows: none; }
  .card-sm-a .card-count, .card-sm-b .card-count { display: none; }
  .bento-intro, .card-feature, .card-wide, .card-mid { grid-column: 1 / -1; grid-row: auto; }
  .card-sm-a { grid-column: 1 / span 6; }
  .card-sm-b { grid-column: 7 / span 6; }
  .card-feature { min-height: 0; aspect-ratio: 4 / 5; }
  .card-wide, .card-mid { min-height: 0; aspect-ratio: 4 / 3; }
  .bento-intro-foot { flex-direction: column; align-items: flex-start; }
  .card-go { opacity: 1; transform: none; }
  .card-badge { display: none; } /* selo de hover: no celular cobre a foto e repete a seta do canto */

  /* filtros numa linha só, rolando de lado, encostando nas bordas da tela */
  .filtros {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: none; scroll-snap-align: start; }

  .grade-fotos { columns: 2; column-gap: 8px; }
  .grade-item { margin-bottom: 8px; border-radius: 12px; }
  .grade-uniforme { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* galeria em tela cheia: setas embaixo da foto, sem cobrir a imagem */
  .lightbox-stage { flex-direction: column; padding: 0 8px 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
  .lightbox-title { font-size: 18px; }
}
@media (max-width: 560px) {
  .clients { flex-direction: column; align-items: flex-start; gap: 16px; }
  .clients-label br { display: none; }
  .marquee { width: 100%; }
  .stats { gap: 32px 16px; }
  .stat-num { font-size: clamp(40px, 13vw, 56px); }
  .stat h3 { margin-top: 14px; font-size: 17px; line-height: 1.25; }
  .stat p { font-size: 13px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-aside p { font-size: 18px; }

  /* página inicial: foto com o rosto no centro, presa no alto e medida pela largura da tela;
     o espaço de cima é reservado para o texto sempre começar abaixo do queixo */
  /* altura menor que a tela: a faixa de marcas logo abaixo já aparece na primeira tela */
  #inicio { min-height: calc(100svh - 132px); gap: 20px; padding-top: calc(56vw + 4px); padding-bottom: 18px; }
  .clients { gap: 10px; padding-block: 16px 18px; }
  #inicio .hero-media {
    top: -16px;
    height: 88vw;
    object-position: 74% 50%;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  #inicio::after { background: linear-gradient(to top, rgba(10, 10, 10, .85), rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, .25)); }
  #inicio .hero-content { gap: 14px; }
  #inicio h1 { font-size: clamp(34px, 10.4vw, 46px); }
  #inicio .hero-bottom { gap: 18px; padding-top: 18px; }
  #inicio .hero-aside { display: none; } /* no celular o topo fica só com título, subtítulo e as três linhas */
  .service h3 { font-size: clamp(30px, 9vw, 34px); }
  .footer-cta .btn-lg { max-width: 100%; padding: 18px 22px; font-size: 15px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 32px; }
}
@media (hover: none) {
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  .card:hover { border-radius: var(--radius); } /* sem "grudar" o efeito de hover depois do toque */
  .card:hover > img, .card:hover > video { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 360px) {
  /* celulares bem estreitos: logo um pouco menor para caber o PT | EN e o menu */
  .logo { font-size: 19px; }
  .nav-acoes { gap: 6px; }
}
