/* =========================================================
   Gardê Studio · site.css
   Base de largura do Readymag: 1024 px no desktop, 320 px no celular.
   Medidas originais anotadas nos comentários (ex.: "rm y716").
   ========================================================= */

/* ---------- Fontes (auto-hospedadas) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #212121;
  --ink: #212121;
  --white: #ffffff;
  --green: #B4E3A1;        /* destaque claro */
  --green-dark: #1D410E;   /* texto dos botões brancos */
  --sage: #51735C;         /* botão "Ver portfólio completo" */
  --cyan: #00CCCC;         /* checklist */
  --muted: rgba(255, 255, 255, .5);
  --line-dim: #3d3d3d;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --track-display: -0.06em; /* espaçamento -60 da marca */
  --track-text: -0.01em;

  --wrap: 1024px;
  --space-section: clamp(72px, 9vw, 112px); /* entre blocos grandes (CTA final, fim de página) */
  --space-block: clamp(44px, 5.5vw, 64px);    /* entre seções de uma página */
  --radius: 10px;                             /* imagens, cards e vídeos */
  --mono-size: 12px;                          /* textos entre colchetes */
  --gutter: clamp(16px, 3.5vw, 36px);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-both: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: var(--track-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--radius); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 90px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 16px; }
.center { display: flex; justify-content: center; }

/* ---------- Botões (pílula, raio 90) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 30px;
  border-radius: 90px; border: 2px solid transparent;
  font: 500 16px/1 var(--sans); letter-spacing: var(--track-text);
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-both);
}
.btn:hover { transform: scale(1.01); }
.btn--white { background: var(--white); color: var(--green-dark); }
.btn--white:hover { background: var(--green); color: var(--ink); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--green); color: #000; border-color: var(--green); }
.btn--white-alt { background: var(--white); color: var(--green-dark); font-weight: 400; }
.btn--white-alt:hover { background: var(--green-dark); color: var(--white); border-color: var(--green); }
.btn--green { background: var(--green-dark); color: var(--green); }
.btn--green:hover { background: var(--green); color: var(--green-dark); }
.btn--sage { background: var(--sage); color: var(--white); font-weight: 400; }
.btn--sage:hover { color: #000; border-color: #000; }
.btn--sm { min-height: 32px; padding: 0 18px; font-size: 13px; }

/* ---------- Hero (rm 0–600 / celular 0–540) ---------- */
.hero {
  position: relative;
  min-height: 600px;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.hero-slides {
  position: absolute; inset: 0; z-index: -1;
  opacity: .3;                                 /* rm: slideshow 100 → 30 em 0.5 s */
}
.js .hero-slides { animation: dim .5s var(--ease-both) both; }
@keyframes dim { from { opacity: 1; } to { opacity: .3; } }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; } /* crossfade 2 s */
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--white);
  opacity: .6; transition: opacity .2s;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow--prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.hero-arrow--next { right: max(8px, env(safe-area-inset-right, 0px)); }

.site-header {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 32px;
}
.logo img { width: 89px; height: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 16px; line-height: 20px; color: var(--white);
  text-decoration: none; opacity: .9; transition: opacity .2s, color .2s;
}
.nav a:hover { color: var(--green); opacity: 1; }

.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 56px; padding-bottom: 140px;   /* rm h1 y156, botões y420 */
}
.eyebrow {
  font-family: var(--mono); font-size: var(--mono-size); line-height: 1.4; letter-spacing: 0;
  color: var(--green); margin-bottom: 22px; text-wrap: balance;
}
.hero-title {
  max-width: 10.2em;
  font-size: clamp(32px, 6.15vw, 63px);
  line-height: .97;
  font-weight: 400;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.hero-sub { margin-top: 26px; font-size: 16px; max-width: 460px; }
.hero-actions { margin-top: 52px; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.hero-actions .btn { min-width: 220px; }

/* ---------- Como começar (rm y634–884) ---------- */
.steps { padding-top: 34px; padding-bottom: 58px; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; }
.step-icon { height: 53px; width: auto; object-fit: contain; object-position: left bottom; margin-bottom: 26px; }
.step h3 { font-size: 19px; line-height: 30px; font-weight: 500; color: var(--green); padding-bottom: 18px; letter-spacing: var(--track-text); }
.step p { font-size: 16px; line-height: 20px; font-weight: 300; }

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

/* ---------- Foco no resultado (rm y1006–1694) ---------- */
.focus { padding-top: 64px; }
.display {
  font-size: clamp(44px, 8.3vw, 85px);
  line-height: .94;
  font-weight: 800;
  letter-spacing: var(--track-display);
  text-align: center;
  text-wrap: balance;
}
.display--dark { color: var(--ink); font-weight: 700; }
.focus-text {
  max-width: 460px; margin: 40px auto 0;
  display: flex; flex-direction: column; gap: 22px;
  text-align: center; font-size: 14px; line-height: 22px;
}

/* Painel de métricas: o celular percorre a faixa de prints conforme o scroll (rm dx 829, velocidade 2) */
.metrics {
  --h: 246px;
  position: relative;
  max-width: var(--wrap); height: var(--h);
  margin: 40px auto 0;
  overflow: hidden;
}
.metrics-phone {
  position: absolute; top: 0; left: 0;
  height: 100%; aspect-ratio: 360 / 722;
  will-change: transform;
}
.metrics-screen {
  position: absolute;
  top: 3.2%; bottom: 3.2%; left: 6.9%; right: 6.7%;
  border-radius: 11% / 5.5%;
  background-color: #111;
  background-image: url("../img/metricas.webp");
  background-repeat: no-repeat;
}
.metrics-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.focus-after {
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  padding-top: 24px; padding-bottom: 62px;
  text-align: center; font-size: 14px; line-height: 22px;
}
.focus-after p { max-width: 460px; }

/* ---------- Seção clara (rm y1756–2980) ---------- */
.light { background: var(--white); color: var(--ink); }
.services-block { padding-top: 48px; padding-bottom: 80px; }
.services-block .display { max-width: 688px; margin-inline: auto; }

.services {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  grid-auto-flow: column;
  column-gap: 32px;
}
.svc { display: contents; }
.svc > * { transition: transform .3s var(--ease-both); transform-origin: left top; }
.svc:hover > * { transform: scale(1.01); }
.svc h3 { font-size: 24px; line-height: 30px; font-weight: 800; color: var(--green-dark); padding-bottom: 18px; letter-spacing: -0.03em; }
.svc p { font-size: 14px; line-height: 18px; padding-bottom: 26px; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  position: relative; padding-left: 30px;
  font-size: 12px; line-height: 16px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 15'%3E%3Cpath d='M1.5 7.5l5.5 5.5L19.5 1.5' fill='none' stroke='%2300CCCC' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.services-block .center { margin-top: 56px; }

/* Projetos (rm y2560–2852) */
.projects {
  padding-top: 40px; padding-bottom: 128px;
  display: grid;
  grid-template-columns: minmax(0, 569fr) minmax(0, 296fr);
  grid-template-areas: "grid intro" "grid more";
  grid-template-rows: auto 1fr;
  column-gap: 15px; row-gap: 20px;
  align-items: start;
}
.projects-intro { grid-area: intro; padding-left: 40px; }
.projects-intro h2 {
  font-size: 35px; line-height: 45px; font-weight: 900; color: #000;
  letter-spacing: var(--track-display); margin-bottom: 14px;
}
.projects-intro p { font-size: 14px; line-height: 21px; color: #000; }
.projects-intro p + p { margin-top: 21px; }
.projects-more { grid-area: more; padding-left: 40px; align-self: end; }

.projects-grid {
  grid-area: grid;
  display: grid; grid-template-columns: minmax(0, 165fr) minmax(0, 187fr) minmax(0, 187fr); gap: 15px;
}
.testimonial {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000;
}
.testimonial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-both); }
.testimonial:hover img { transform: scale(1.03); }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play svg { width: 56px; height: 56px; fill: var(--white); filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }

.cards-col { display: flex; flex-direction: column; gap: 12px; }
.cards-col .card { aspect-ratio: 187 / 140; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: #000; color: var(--white); text-decoration: none;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease-both); }
.card-info {
  position: absolute; inset: 0; padding: 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .5s var(--ease-both);
}
.card-info h3 { font-size: 14px; line-height: 15px; font-weight: 700; }
.card-info p { font-size: 11px; line-height: 14px; }
.card:hover img, .card:focus-visible img { transform: scale(1.01); }
.card:hover .card-info, .card:focus-visible .card-info, .card:focus-within .card-info { opacity: 1; }
@media (hover: none) {
  .card-info {
    opacity: 1; justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%);
  }
  .card-info p { display: none; }
}

/* ---------- CTA final ---------- */
.final-cta {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  padding-top: var(--space-section); padding-bottom: var(--space-section); text-align: center;
}
.final-cta h2 {
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1; font-weight: 700;
  letter-spacing: var(--track-display); max-width: 14ch; text-wrap: balance;
}

/* ---------- Rodapé ---------- */
.site-footer { padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.footer-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-top: 28px;
}
.footer-row p { font-size: 13px; color: var(--muted); }
.footer-about { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.footer-row .entity { font-size: 12px; line-height: 1.5; }
.social { display: flex; gap: 18px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--white); opacity: .8; transition: opacity .2s, color .2s; }
.social a:hover { opacity: 1; color: var(--green); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.social svg .dot, .social svg .fill { fill: currentColor; stroke: none; }

/* ---------- Botão fixo (rm: aparece após 500 px, some perto de 2000 px) ---------- */
.float-cta {
  position: fixed; z-index: 50;
  right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none; translate: 0 8px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out), background-color .3s, color .3s;
}
.float-cta.is-visible { opacity: 1; pointer-events: auto; translate: 0 0; }

/* ---------- Animações (só com JS ativo) ---------- */
.js [data-anim="fade-load"] {
  opacity: 0;
  animation: fadeIn var(--dur, 1.6s) var(--ease-out) var(--delay, 0s) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.js [data-anim="fade-scroll"],
.js [data-anim="fade-view"] { opacity: 0; transition: opacity .9s var(--ease-both) var(--delay, 0s); }
.js [data-anim="fade-scroll-soft"] { opacity: .6; transition: opacity .9s var(--ease-both); }
.js [data-anim="rise-view"] { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease-both) var(--delay, 0s), translate .8s var(--ease-both) var(--delay, 0s); }
.js [data-anim].is-in { opacity: 1; translate: 0 0; }

/* Cards da home aparecem só quando entram na tela */
.js .projects [data-anim="fade-load"] { animation-play-state: paused; }
.js .projects [data-anim="fade-load"].is-in { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1 !important; translate: none !important; animation: none !important; transition: none !important; }
  .js .hero-slides { animation: none; }
  .slide { transition: none; }
  .btn, .card img, .svc > *, .testimonial img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "grid" "more";
    grid-template-rows: auto;
    row-gap: 28px;
  }
  .projects-intro, .projects-more { padding-left: 0; }
  .projects-intro { max-width: 460px; }
}

/* ---------- Celular (rm 320 px) ---------- */
@media (max-width: 699px) {
  .hero { min-height: 540px; }
  .site-header { flex-direction: column-reverse; gap: 14px; padding-top: 10px; }
  .nav { gap: 0; justify-content: space-between; width: 100%; max-width: 360px; }
  .nav a { font-size: 14px; padding-block: 10px; } /* área de toque maior no celular */
  .hero-content { padding-top: 40px; padding-bottom: 72px; }
  .eyebrow { font-size: 11px; margin-bottom: 14px; max-width: 260px; }
  .hero-title { line-height: 1.03; max-width: 11ch; }
  .hero-sub { margin-top: 12px; max-width: 250px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }

  .steps { padding-top: 20px; }
  .steps-list { grid-template-columns: 1fr; gap: 40px; }
  .step-icon { margin-bottom: 18px; }

  .focus { padding-top: 44px; }
  .focus-text { margin-top: 24px; text-align: left; }
  .metrics { --h: 200px; margin-top: 32px; }
  .focus-after { text-align: left; align-items: stretch; }

  .services-block { padding-top: 28px; }
  .services-block .display { text-align: left; }
  .services { display: flex; flex-direction: column; gap: 44px; margin-top: 32px; }
  .svc { display: block; }
  .svc p { padding-bottom: 18px; }

  .projects-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .testimonial { aspect-ratio: 165 / 292; }
  .cards-col .card { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
  .card--tall { grid-column: 1 / -1; aspect-ratio: 288 / 185; }
  .projects-more { display: flex; justify-content: center; }

}

/* =========================================================
   Páginas internas (portfólio, cases, sobre, perguntas)
   Fundo branco e texto escuro, como no Readymag original.
   A faixa final (CTA + rodapé) volta ao escuro da home.
   ========================================================= */
body.inner {
  --ink-soft: rgba(33, 33, 33, .68); /* contraste mínimo 4,5:1 (WCAG AA) */
  --line-light: #e4e4e1;
  background: var(--white); color: var(--ink);
  color-scheme: light;
}
.inner .site-header--bar { padding-top: 32px; padding-bottom: 8px; }
/* Desktop: o menu fica fixo no topo e passa por cima do conteúdo, com um degradê branco atrás */
@media (min-width: 700px) {
  .inner .site-header--bar {
    position: sticky; top: 0; z-index: 40;
    padding-top: max(28px, env(safe-area-inset-top, 0px)); padding-bottom: 44px; margin-bottom: -36px;
    background: linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 68%, rgba(255,255,255,0) 100%);
  }
  /* Portfólio: menu do tamanho do texto da página e ocupando exatamente a largura da coluna de imagens */
  .site-header--wide .nav { width: calc(42.58 * var(--u)); justify-content: space-between; gap: 16px; }
  .site-header--wide .nav a { font-size: clamp(16px, calc(1.5625 * var(--u)), 26px); line-height: 1.2; }
  .site-header--wide .logo img { width: clamp(89px, calc(8.69 * var(--u)), 160px); }
}
.inner .nav a { color: var(--ink); opacity: 1; }
.inner .nav a:hover { color: var(--green-dark); }
.inner .nav a[aria-current="page"] { color: var(--green-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.inner .eyebrow { text-align: left; color: var(--green-dark); }
.inner :focus-visible { outline-color: var(--green-dark); }
.inner .final-cta h2 { color: var(--ink); font-weight: 500; letter-spacing: -0.04em; max-width: 18ch; }
.rule--soft { background: var(--line-light); }
.inner .site-footer .rule--dim { background: var(--line-light); }
.inner .footer-row p { color: var(--ink-soft); }
.inner .footer-links a { color: var(--ink); opacity: .75; }
.inner .footer-links a:hover { color: var(--green-dark); opacity: 1; }
.inner .social a { color: var(--ink); }
.inner .social a:hover { color: var(--green-dark); }

.label {
  font-family: var(--mono); font-size: var(--mono-size); font-weight: 400; letter-spacing: 0;
  color: var(--green-dark); margin: 0;
}
.prose { max-width: 640px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.6; }
.prose strong { font-weight: 600; }
.prose a { color: var(--green-dark); text-underline-offset: 3px; }
.prose--lead { font-size: 20px; line-height: 1.5; max-width: 720px; }

/* Grade das páginas internas: coluna de rótulo + coluna de texto (rm x60 / x294) */
.two-col { display: grid; grid-template-columns: minmax(0, 202fr) minmax(0, 670fr); column-gap: 32px; }
.two-col > * { min-width: 0; }

.page { padding-top: var(--space-block); padding-bottom: var(--space-block); }
.page-title {
  font-size: clamp(40px, 6vw, 60px); line-height: .95; font-weight: 500;
  letter-spacing: -0.04em; max-width: 16ch; text-wrap: balance; margin-bottom: 20px;
}
.page-lead { font-size: 18px; line-height: 1.5; max-width: 560px; color: var(--ink-soft); }
.page-section { margin-top: var(--space-block); }
.page-section > .label { margin-bottom: 16px; }
.page--404 { min-height: 50vh; }
.hero-actions--left { justify-content: flex-start; margin-top: 36px; }
.inner .page--404 .btn--outline { color: var(--ink); border-color: var(--ink); }

/* Portfólio em lista: título grande à esquerda, imagem à direita (rm) */
.plist { margin-top: var(--space-block); display: flex; flex-direction: column; }
/* Portfólio: mesma proporção do Readymag, que escala o canvas de 1024 px com a tela.
   Margens de 60 px, título de 60 px, texto de 16 px e imagem de 436 px, tudo em vw.
   Imagens empilhadas encostando uma na outra, sem cantos arredondados. */
/* --u: 1% da largura da tela, travado no valor de uma tela Full HD (1920 px). Em ultrawide a página para de crescer e fica centralizada. */
.page--portfolio, .site-header--wide { --u: min(1vw, 19.2px); max-width: 1920px; margin-inline: auto; }
.page--portfolio {
  padding-top: clamp(24px, calc(2.5 * var(--u)), 48px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc(5.86 * var(--u)));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc(5.86 * var(--u)));
}
.plist { display: flex; flex-direction: column; }
.site-header--wide {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc(5.86 * var(--u)));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc(5.86 * var(--u)));
}
.prow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(42.58 * var(--u))); column-gap: calc(4 * var(--u));
  color: var(--ink); text-decoration: none; align-items: start;
}
.prow h2 {
  font-size: clamp(40px, calc(5.86 * var(--u)), 120px); line-height: .92; font-weight: 500; letter-spacing: -0.045em;
  margin-bottom: clamp(14px, calc(1.6 * var(--u)), 32px); text-wrap: balance;
  transition: transform .1s ease-in; transform-origin: left center;
}
.prow p { font-size: clamp(15px, calc(1.5625 * var(--u)), 30px); line-height: 1.3; color: var(--ink-soft); max-width: calc(41.4 * var(--u)); padding-bottom: calc(2 * var(--u)); }
.prow-img { overflow: hidden; aspect-ratio: 436 / 280; background: #eee; }
.prow-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease-out); }
.prow:hover .prow-img img, .prow:focus-visible .prow-img img { opacity: .5; }   /* rm: hover deixa a imagem a 50% */
.prow:hover h2 { transform: scale(1.01); }

/* Case */
.case-hero { height: clamp(220px, 30vw, 303px); overflow: hidden; background: #ddd; }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-head { padding-top: 32px; }
.case-head .eyebrow { margin-bottom: 10px; }
.case-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
.case-lead { margin-top: 14px; font-size: 18px; line-height: 1.45; max-width: 640px; color: var(--ink-soft); }
.case-meta {
  margin: var(--space-block) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 202fr)) minmax(0, 270fr); column-gap: 32px; row-gap: 20px;
  border-top: 1px solid var(--line-light); padding-top: 20px;
}
.case-meta--wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: var(--space-block); }
.case-meta dt { font-family: var(--mono); font-size: var(--mono-size); color: var(--green-dark); margin-bottom: 6px; letter-spacing: 0; }
.case-meta dd { margin: 0; font-size: 13px; line-height: 1.5; }
.case-body { padding-top: 0; padding-bottom: var(--space-block); }
.case-section { margin-top: var(--space-block); }
.case-section > .label { padding-top: 6px; }
.case-figure { margin: var(--space-block) 0 0; border-radius: var(--radius); overflow: hidden; }
.case-figure img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.stats {
  margin: var(--space-block) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); padding-block: 28px;
}
.stats dt { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.05em; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.stats dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.quote { margin: 0; max-width: 640px; }
.case-note { margin-top: var(--space-block); }
.quote p { font-size: clamp(19px, 2.2vw, 21px); line-height: 1.45; letter-spacing: -0.02em; }
.quote footer { margin-top: 12px; font-family: var(--mono); font-size: var(--mono-size); color: var(--green-dark); letter-spacing: 0; }
.case-videos { margin-top: var(--space-block); }
.case-videos > .label { margin-bottom: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #000; color: var(--white); text-align: left; font: inherit;
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .3s var(--ease-both), opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt .play svg { width: 48px; height: 48px; }
.yt-title { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 13px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Sobre */
.steps-ol { list-style: decimal; padding-left: 30px; display: flex; flex-direction: column; gap: 10px; }
.steps-ol li::marker { font-family: var(--mono); color: var(--green-dark); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 900px; }
.people h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 8px; }
.people p { font-size: 16px; line-height: 1.6; }

/* Perguntas frequentes */
.faq { max-width: 760px; border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-family: var(--mono); font-size: 20px; color: var(--green-dark); transition: rotate .2s;
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item summary h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.faq-item p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: rgba(33,33,33,.8); max-width: 680px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover { color: var(--green); }

@media (max-width: 699px) {
  .inner .site-header--bar { padding-top: 10px; }
  .two-col { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .case-meta { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 1fr; row-gap: 18px; padding-bottom: 44px; }
  .prow-img { order: -1; }
  .prow p { max-width: none; padding-bottom: 0; }
  .people { grid-template-columns: 1fr; }
}

/* =========================================================
   Formulário de contato (janela sobre a página)
   ========================================================= */
html.form-open { overflow: hidden; }
.form-dialog {
  border: 0; padding: 0; margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: auto; color-scheme: light;
}
.form-dialog::backdrop { background: rgba(20, 20, 20, .72); }
.form-panel { position: relative; padding: clamp(24px, 4vw, 44px); }
.form-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.form-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.form-eyebrow { font-family: var(--mono); font-size: var(--mono-size); color: var(--green-dark); letter-spacing: 0; margin-bottom: 10px; }
.form-title { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; max-width: 18ch; text-wrap: balance; }
.form-lead { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(33, 33, 33, .7); max-width: 46ch; }
.form { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full, .form-error, .form-actions, .form-privacy { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; }
.field .opt { font-weight: 400; color: rgba(33, 33, 33, .66); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #f4f4f2;
  border: 1px solid transparent; border-radius: 8px; padding: 12px 14px; min-height: 46px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-dark); background: var(--white); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: #b3261e; }
.form-error a { color: inherit; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.form-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-wa { font-size: 14px; color: var(--green-dark); text-underline-offset: 3px; }
.form-privacy { font-size: 12px; color: rgba(33, 33, 33, .66); }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px; }
@media (max-width: 699px) {
  .form-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .form { grid-template-columns: 1fr; }
  .form-panel { padding-top: 56px; padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   Banner de cookies (LGPD)
   ========================================================= */
.cookie-banner {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  max-width: 720px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius);
  background: #2b2b2b; color: var(--white); box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  font-size: 14px; line-height: 1.45;
}
.cookie-banner p { flex: 1 1 280px; }
.cookie-banner a { color: var(--green); text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.form-privacy a { color: inherit; text-underline-offset: 2px; }
.footer-links button { all: unset; cursor: pointer; }

/* =========================================================
   Páginas de serviço (entrada pelo Google)
   ========================================================= */
.page-title--svc { max-width: 18ch; }
.page-lead--svc { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); max-width: 640px; }
.svc-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.svc-list li::marker { color: var(--green-dark); }
.checklist--svc { gap: 12px; }
.checklist--svc li { font-size: 16px; line-height: 1.45; }
.checklist--svc li::before { top: 4px; }
.svc-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 760px; }
.svc-case {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line-light); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease-both);
}
.svc-case b { font-size: 17px; letter-spacing: -0.02em; }
.svc-case span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.svc-case em { margin-top: auto; font-style: normal; font-family: var(--mono); font-size: var(--mono-size); color: var(--green-dark); }
.svc-case:hover { border-color: var(--green-dark); transform: translateY(-2px); }
.svc-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.faq-item p a, .prose a { color: var(--green-dark); }
