/* =========================================================
   GRAVA MAIS — Home
   Static site · no build · fiel ao layout de referência (Figma)
   ========================================================= */

/* ---------- Fonts ----------
   Oficiais: "Stack Sans Headline" / "Stack Sans Text".
   Coloque os .woff2 em /fonts e descomente o @font-face abaixo.
   Enquanto isso, "Hanken Grotesk" (CDN no index) é o fallback aprovado.
*/
/*
@font-face {
  font-family: "Stack Sans Headline";
  src: url("../fonts/StackSansHeadline.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Stack Sans Text";
  src: url("../fonts/StackSansText.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #020618;
  --gold: #D49224;
  --blue: #2688E3;
  --text: #F1F3F9;
  --light-section: #E1E7F4;

  --bg-soft: #060c22;
  --line: rgba(241, 243, 249, 0.10);
  --line-strong: rgba(241, 243, 249, 0.20);
  --muted: rgba(241, 243, 249, 0.62);
  --muted-dim: rgba(241, 243, 249, 0.40);
  --ink: #0a1024;               /* texto escuro sobre seção clara */
  --ink-muted: rgba(10, 16, 36, 0.62);

  --container: 1800px;
  --gutter: clamp(20px, 5vw, 80px);

  --r-sm: 4px;
  --r: 8px;

  --font-display: "Stack Sans Headline", "Hanken Grotesk", "Inter", sans-serif;
  --font-text: "Stack Sans Text", "Hanken Grotesk", "Inter", sans-serif;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (não hidden): 'hidden' torna o body um scroll-container e quebra o
     ScrollTrigger dos stacking cards / marquee. 'clip' corta sem esse efeito. */
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;   /* equilibra as linhas e evita palavras viúvas */
}
/* leads/parágrafos: evita palavra sozinha na última linha */
.lead, .hero-sub, .assembly-lead, .cta p, .services-head p, .partners-head p { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(72px, 10vw, 160px); }
.section--tight { padding-block: clamp(56px, 6vw, 100px); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--gold); color: var(--bg);
  padding: 10px 18px; border-radius: var(--r); font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- Gold corner frame ---------- */
.frame {
  --c: var(--gold); --s: 13px; --t: 1.5px;
  position: relative;
  background-image:
    linear-gradient(var(--c) 0 0), linear-gradient(var(--c) 0 0),
    linear-gradient(var(--c) 0 0), linear-gradient(var(--c) 0 0),
    linear-gradient(var(--c) 0 0), linear-gradient(var(--c) 0 0),
    linear-gradient(var(--c) 0 0), linear-gradient(var(--c) 0 0);
  background-repeat: no-repeat;
  background-size:
    var(--s) var(--t), var(--t) var(--s), var(--s) var(--t), var(--t) var(--s),
    var(--s) var(--t), var(--t) var(--s), var(--s) var(--t), var(--t) var(--s);
  background-position:
    0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  font-family: var(--font-text);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
/* espaçamento consistente entre eyebrow e a headline logo abaixo */
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3,
.eyebrow + .section-title, .eyebrow + .cta-title,
.eyebrow + .assembly-title, .eyebrow + .svc-hero-title {
  margin-top: clamp(18px, 2vw, 28px) !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: var(--r);
  font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .4s var(--ease), background-color .3s var(--ease),
    border-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* Todos os botões usam #2688E3 (cor de feedback de sucesso). */
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #3a97ee; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #3a97ee; }
/* Alternativos (outline): no hover preenchem com o mesmo azul */
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(241,243,249,.02); }
.btn--ghost:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.btn--onlight { border: 1px solid rgba(10,16,36,.22); color: var(--ink); }
.btn--onlight:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .05; mix-blend-mode: overlay;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: 20px;
  transition: padding-top .5s var(--ease);
}
.header-inner {
  max-width: 100%;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 12px 12px 20px;
  border: 1px solid transparent; border-radius: var(--r);
  transition: max-width .6s var(--ease), background-color .5s var(--ease),
    border-color .5s var(--ease), backdrop-filter .5s var(--ease), padding .5s var(--ease);
}
.site-header.is-compact { padding-top: 12px; }
.site-header.is-compact .header-inner {
  max-width: 900px;
  /* ao compactar, some com bg e stroke da barra — só as pills do nav/CTA ficam */
  background: transparent;
  border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav-pill {
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  border: 1px solid rgba(241,243,249,.14); border-radius: 999px;
  background: rgba(2,6,24,.30);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav-pill a {
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--muted); border-radius: 999px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-pill a:hover { color: var(--text); background: rgba(241,243,249,.06); }
.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--blue); border-radius: 999px;
  color: var(--text); font-size: 14px; font-weight: 600; flex-shrink: 0;
  background: rgba(2,6,24,.30);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.header-cta:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  position: relative; flex-shrink: 0;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { bottom: 18px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(2,6,24,.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 4px;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
/* abertura sofisticada: os itens sobem e aparecem em sequência (mesma suavidade do site) */
.mobile-menu > * { opacity: 0; }
body.menu-open .mobile-menu > * { animation: menuItemIn .6s var(--ease) both; }
@keyframes menuItemIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
body.menu-open .mobile-menu > *:nth-child(1) { animation-delay: .10s; }
body.menu-open .mobile-menu > *:nth-child(2) { animation-delay: .16s; }
body.menu-open .mobile-menu > *:nth-child(3) { animation-delay: .22s; }
body.menu-open .mobile-menu > *:nth-child(4) { animation-delay: .28s; }
body.menu-open .mobile-menu > *:nth-child(5) { animation-delay: .36s; }
body.menu-open .mobile-menu > *:nth-child(6) { animation-delay: .44s; }
body.menu-open .mobile-menu > *:nth-child(7) { animation-delay: .52s; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 48px);
  letter-spacing: -0.03em; padding: 12px 0; color: var(--text);
  transition: color .25s var(--ease);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn {
  margin-top: 32px; align-self: center;
  width: min(340px, 100%); justify-content: center;
  padding: 18px 28px; font-size: 16px;
}
.mobile-menu .btn .arrow { filter: brightness(0); width: 24px; height: 24px; }
.mobile-menu .menu-contact {
  margin-top: 34px; display: flex; gap: 14px; justify-content: center;
}
.mobile-menu .menu-contact a {
  width: 46px; height: 46px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r);
}
.mobile-menu .menu-contact img { width: 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 6vw, 90px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform; transform: scale(1.08);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 1%, rgba(2,6,24,.15) 42%, rgba(2,6,24,.55) 100%),
    radial-gradient(120% 90% at 15% 100%, rgba(2,6,24,.7), transparent 60%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-eyebrow { margin-bottom: 26px; }
.hero-title {
  font-size: clamp(34px, 5.4vw, 88px);
  line-height: 1.04; max-width: none; letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; white-space: nowrap; will-change: transform; }
.hero-title .accent { color: var(--gold); font-style: normal; }
.hero-bottom {
  margin-top: clamp(30px, 4vw, 52px);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.hero-sub { max-width: 52ch; color: var(--muted); font-size: clamp(15px, 1.1vw, 18px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   STATS
   ========================================================= */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 52px);
  align-items: stretch;               /* molduras com a mesma altura */
}
.stat {
  --c: rgba(241,243,249,.32); --s: 20px; --t: 1px;
  padding: clamp(22px, 2vw, 34px) clamp(24px, 2vw, 38px);
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;        /* textos começam no topo, mesma altura */
  text-align: center;                 /* tudo centralizado */
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 76px);
  line-height: 1; letter-spacing: -0.05em;
  display: flex; align-items: flex-start; justify-content: center; gap: 4px;
}
.stat-label { margin-inline: auto; }
.stat-number .suffix { color: var(--gold); font-size: .42em; margin-top: .3em; letter-spacing: 0; }
.stat--text .stat-number { color: var(--text); }
.stat-label { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 24ch; }

/* =========================================================
   INSTITUCIONAL (split)
   ========================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 100px); align-items: stretch;
}
.section-title { font-size: clamp(30px, 4vw, 64px); max-width: 18ch; letter-spacing: -0.04em; }
.section-title .accent { color: var(--gold); }
.lead { margin-top: 24px; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); max-width: 50ch; }

.inst-media { position: relative; height: 100%; min-height: 460px; }
.inst-media img {
  width: 100%; height: 100%; display: block;
  border-radius: var(--r);
  object-fit: cover;
}
/* Bolinha de referência (formato-foto-sec2.svg): círculo #FF3C02 sobre halo escuro */
.inst-dot {
  position: absolute; z-index: 2;
  left: 10.9%; top: 8.6%; transform: translate(-50%, -50%);
  width: 8%; aspect-ratio: 1; border-radius: 50%;
  background: #FF3C02;
  box-shadow: 0 0 0 9px rgba(2, 6, 24, 0.55), 0 0 26px rgba(255, 60, 2, 0.35);
}

.inst-list { margin-top: 34px; border-top: 1px solid var(--line); }
.inst-item {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 22px 24px; margin-inline: -24px;      /* bg do hover ocupa a coluna toda */
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.inst-item:hover { background: var(--gold); color: #1a1204; }
.inst-item h4 { font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.inst-item p { margin-top: 6px; color: var(--muted); font-size: 14.5px; max-width: 46ch; transition: color .35s var(--ease); }
.inst-item:hover h4 { color: #1a1204; }
.inst-item:hover p { color: rgba(26,18,4,.75); }
.inst-arrow {                                    /* sem outline ao redor da seta */
  flex-shrink: 0; display: grid; place-items: center;
}
.inst-arrow img { width: 24px; transition: filter .35s var(--ease); }
.inst-item:hover .inst-arrow img { filter: brightness(0) saturate(100%); }
.inst-cta { margin-top: 36px; }

/* =========================================================
   VALUES MARQUEE
   ========================================================= */
.values {
  position: relative;
  overflow: hidden;
}
/* Overlay nas laterais: mesma cor do fundo, dá a impressão que as pills vêm dos cantos */
.values::before, .values::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2;
  width: clamp(90px, 14vw, 260px); pointer-events: none;
}
.values::before { left: 0; background: linear-gradient(to right, var(--bg) 12%, transparent); }
.values::after { right: 0; background: linear-gradient(to left, var(--bg) 12%, transparent); }
.values-row { display: flex; gap: 20px; width: max-content; }
.values-row + .values-row { margin-top: 20px; }
.values-track { display: flex; gap: 20px; padding-right: 20px; }
.marquee-a .values-track { animation: marqueeL 38s linear infinite; }
.marquee-b .values-track { animation: marqueeR 38s linear infinite; }
@keyframes marqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.values:hover .values-track { animation-play-state: paused; }
.value-pill {
  padding: 20px 44px; flex-shrink: 0;
  background-color: rgba(241,243,249,.015);
  border: 1px solid rgba(212,146,36,.32); border-radius: var(--r);
  font-family: var(--font-display); font-size: clamp(24px, 2.3vw, 38px);
  letter-spacing: -0.02em; white-space: nowrap;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-head { text-align: center; max-width: 720px; margin: 0 auto clamp(44px, 5vw, 72px); }
.services-head .eyebrow { margin-bottom: 0; }
.services-head .section-title { max-width: none; margin-inline: auto; }
.services-head p { margin-top: 20px; color: var(--muted); }
.services-wrap { position: relative; }
.services-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; max-width: 1800px; height: auto; z-index: 0;
  opacity: .85; pointer-events: none;
}
.services-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
}
.service-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; min-height: clamp(300px, 30vw, 400px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 30px; isolation: isolate;
  transition: border-color .4s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); }
.service-media { position: absolute; inset: 0; z-index: -2; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }
/* escurece o topo (título) e a base (botão) */
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(2,6,24,.85) 0%, rgba(2,6,24,.12) 45%, rgba(2,6,24,.55) 100%);
}
/* brilho suave no canto superior esquerdo */
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 58%; height: 58%; z-index: 0;
  background: radial-gradient(circle at top left, rgba(230,240,255,.16), transparent 62%);
  pointer-events: none;
}
.service-top { position: relative; z-index: 1; }
.service-title {
  display: flex; align-items: stretch; gap: 14px;
  font-size: clamp(20px, 1.6vw, 26px);
}
.service-title .bar { flex: 0 0 3px; background: var(--blue); border-radius: 2px; }
.service-top p { margin-top: 12px; padding-left: 17px; font-size: 15px; color: var(--muted); }
.service-btn {
  position: absolute; left: 30px; bottom: 30px; z-index: 2;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.service-card:hover .service-btn,
.service-card:focus-within .service-btn { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================
   FEATURE
   ========================================================= */
/* bloco arredondado contido no grid de 1800px */
.feature {
  position: relative; overflow: hidden;
  border-radius: 40px;
  min-height: min(78vh, 760px);
  display: flex; align-items: center;
  padding: clamp(36px, 5vw, 80px);
}
.feature-bg { position: absolute; inset: 0; z-index: 0; }
.feature-bg video { width: 100%; height: 100%; object-fit: cover; }
/* gradiente preto nos arredores — favorece contraste e legibilidade */
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.82) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 26%, transparent 72%, rgba(0,0,0,.7) 100%);
}
.feature-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  column-gap: clamp(30px, 5vw, 80px); row-gap: 30px;
  align-items: start;
}
.feature-content { grid-column: 1; grid-row: 1; max-width: 620px; }
.feature-cta { grid-column: 1; grid-row: 2; justify-self: start; }
.feature-panel { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.feature-content .section-title { font-size: clamp(26px, 3.1vw, 50px); }
.feature-content .lead { max-width: 46ch; font-size: clamp(14px, 1.05vw, 17px); }
.feature-panel {
  width: clamp(300px, 30vw, 430px);
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: rgba(2,6,24,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: clamp(18px, 2vw, 30px);
}
.feature-b { display: flex; align-items: center; gap: 16px; }
.feature-b .ico {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--r); background: var(--blue);
  display: grid; place-items: center;
}
.feature-b .ico img { width: 24px; filter: brightness(0) invert(1); }
.feature-b h4 {
  font-family: var(--font-text); font-weight: 600;
  font-size: clamp(15px, 1.15vw, 18px); letter-spacing: -0.01em; line-height: 1.2;
}

/* =========================================================
   CTA (light section)
   ========================================================= */
.cta { background: var(--light-section); color: var(--ink); text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 50% 0%, rgba(38,136,227,.14), transparent 55%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta .eyebrow { color: var(--blue); --c: rgba(38,136,227,.4); }
.cta-title { font-size: clamp(34px, 5vw, 88px); max-width: 15ch; margin-inline: auto; color: var(--ink); }
.cta-title .accent { color: var(--blue); }
.cta p { margin: 26px auto 0; max-width: 50ch; color: var(--ink-muted); }
.cta-play {
  position: relative; margin-top: 44px;
  display: inline-flex; align-items: center;
  height: 72px; min-width: 340px;
  padding: 0 28px; border-radius: var(--r);
  background: rgba(38,136,227,.10);
  overflow: hidden;
  transition: background-color .45s var(--ease);
}
.cta-play .play-btn {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--blue); display: grid; place-items: center;
  transition: left .55s var(--ease), background-color .35s var(--ease);
}
.cta-play .play-btn img { width: 20px; margin-left: 2px; transition: filter .35s var(--ease); }
.cta-play .play-label {
  margin-left: 64px;
  font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em; color: var(--ink);
  transition: margin .55s var(--ease), color .35s var(--ease);
}
.cta-play:hover { background: var(--blue); }
.cta-play:hover .play-btn { left: calc(100% - 62px); background: #fff; }
.cta-play:hover .play-btn img { filter: brightness(0); }
.cta-play:hover .play-label { margin-left: 0; margin-right: 64px; color: #fff; }

/* Variante escura da CTA (usada na galeria) — fundo escuro, textos claros */
.cta--dark { background: var(--bg); color: var(--text); border-top: 1px solid var(--line); }
.cta--dark .cta-title { color: var(--text); }
.cta--dark p { color: var(--muted); }
.cta--dark .cta-play { background: rgba(38,136,227,.14); }
.cta--dark .cta-play .play-label { color: var(--text); }

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.deps { position: relative; overflow: hidden; }
/* Enquanto a seção fica "travada" (pin), ela ocupa a tela e centraliza o conteúdo */
@media (min-width: 901px) {
  .deps { min-height: 100vh; display: flex; align-items: center; padding-block: 0; }
  .deps > .container { width: 100%; }
}
.deps-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.deps-left { position: relative; }
.deps-left .section-title { font-size: clamp(28px, 3.4vw, 54px); }
.deps-arc {
  position: absolute; left: -30%; top: 50%; transform: translateY(-50%);
  width: 130%; max-width: 685px; opacity: .5; pointer-events: none;
}
.dep-nav { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.dep-nav button {
  text-align: left; font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 0.02em; color: var(--muted-dim);
  display: inline-flex; align-items: center; gap: 14px;
  transition: color .4s var(--ease);
}
.dep-nav button::before {
  content: ""; width: 22px; height: 1px; background: currentColor; transition: width .4s var(--ease);
}
.dep-nav button.is-active { color: var(--gold); }
.dep-nav button.is-active::before { width: 40px; }

.deps-list { display: flex; flex-direction: column; }
.dep {
  display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: flex-start;
  padding: clamp(22px, 2.2vw, 34px) 0; border-top: 1px solid var(--line);
  opacity: .4; transition: opacity .5s var(--ease);
}
.dep:last-child { border-bottom: 1px solid var(--line); }
.dep.is-active { opacity: 1; }
.dep-avatar {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  filter: grayscale(1); transition: filter .5s var(--ease), box-shadow .5s var(--ease);
}
.dep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dep.is-active .dep-avatar { filter: grayscale(0); box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(212,146,36,.25); }
.dep-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dep-name { font-weight: 600; font-size: 16px; }
.dep-role { color: var(--muted-dim); font-size: 13.5px; }
.dep-quote {
  margin-top: 14px; font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 27px); line-height: 1.28; letter-spacing: -0.02em;
  color: var(--muted); transition: color .5s var(--ease);
}
.dep.is-active .dep-quote { color: var(--text); }

/* =========================================================
   ASSEMBLEIAS (nova seção)
   ========================================================= */
.assembly {
  border-top: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, rgba(38,136,227,.07), transparent 55%);
}
/* Copy centralizada, com reveal de texto no scroll (headline + subhead) */
.assembly-inner { max-width: 1040px; margin-inline: auto; text-align: center; }
.assembly-inner .eyebrow { margin-bottom: 0; }
.assembly-title {
  font-size: clamp(30px, 4vw, 62px); max-width: 20ch; margin-inline: auto;
  letter-spacing: -0.035em;
}
.assembly-lead {
  margin: 28px auto 0; color: var(--muted);
  font-size: clamp(16px, 1.5vw, 24px); line-height: 1.5; max-width: 58ch;
}
/* letras reveladas pelo scroll (mantém a palavra inteira sem quebrar).
   Sem transition em opacity: o gsap/scrub controla a opacidade quadro a quadro. */
.rword { display: inline-block; white-space: nowrap; }
.assembly-actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Capabilities em linhas grandes, empilhadas, revelando no scroll */
.assembly-caps {
  margin: clamp(52px, 7vw, 96px) auto 0;
  max-width: 940px;
  display: flex; flex-direction: column;
  text-align: left;
}
.assembly-cap {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding: clamp(18px, 2.4vw, 34px) 4px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 54px);
  letter-spacing: -0.03em; line-height: 1.04;
  color: var(--text);
  transition: color .35s var(--ease);
}
.assembly-cap:last-child { border-bottom: 1px solid var(--line); }
.assembly-cap:hover { color: var(--gold); }
.assembly-cap .tick {
  width: clamp(32px, 3vw, 46px); height: clamp(32px, 3vw, 46px);
  flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--gold); display: grid; place-items: center;
}
.assembly-cap .tick::after {
  content: ""; width: 8px; height: 14px;
  border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { text-align: center; }
.partners-head { margin-bottom: clamp(40px, 5vw, 60px); }
.partners-head .section-title { max-width: none; margin-inline: auto; }
.partners-head p { margin: 20px auto 0; max-width: 46ch; color: var(--muted); }
.partners-logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(48px, 9vw, 150px); flex-wrap: wrap; margin-bottom: 40px;
}
.partners-logos img { height: clamp(40px, 4.6vw, 60px); width: auto; opacity: .92; transition: opacity .4s var(--ease); }
.partners-logos img:hover { opacity: 1; }
.partners-rule { width: 100%; max-width: 1191px; margin-inline: auto; opacity: .5; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { overflow: hidden; padding-bottom: clamp(80px, 10vw, 150px); }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 50px);
}
.gallery-hint {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted-dim); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.gallery-track {
  display: flex; gap: 0;
  cursor: grab; user-select: none; width: max-content;
  will-change: transform;
}
.gallery.dragging .gallery-track { cursor: grabbing; }
.gallery-item {
  width: clamp(320px, 33vw, 640px); flex-shrink: 0;
}
.gallery-media { aspect-ratio: 3 / 2; overflow: hidden; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease); }
.gallery-item:hover .gallery-media img { transform: scale(1.04); }
/* legenda ABAIXO da imagem (não sobreposta) */
/* imagem full-bleed, mas a legenda respeita o grid (mesma sarjeta do container 1800px) */
.gallery-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px var(--gutter); font-size: 15px;
}
.gallery-cap .desc { color: #fff; }
.gallery-cap .cta {
  background: none; color: #fff; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.gallery-cap .cta img { width: 16px; transition: transform .3s var(--ease); }
.gallery-cap .cta:hover img { transform: translate(2px, -2px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 4vw, 60px) 0 clamp(120px, 22vw, 340px);
}
/* detalhe ocupa todo o fundo */
.footer-detail {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: bottom;
  opacity: .6; pointer-events: none;
}
/* overlay com gradiente azul mais claro por cima */
.footer-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 130% at 50% 100%, rgba(38,136,227,.22), transparent 60%),
    linear-gradient(to bottom, rgba(2,6,24,.55) 0%, transparent 30%);
}
.site-footer .container { position: relative; z-index: 2; }
.footer-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer-address {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px;
}
.footer-address .pin { color: var(--gold); flex-shrink: 0; }
.footer-links {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 56px);
  font-size: 15px; font-weight: 500; padding-top: 12px;
}
.footer-links a { color: var(--text); transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: var(--text); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--text); border-radius: var(--r);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.footer-social a:hover { transform: translateY(-2px); background: var(--gold); }
.footer-social img { width: 20px; filter: brightness(0); }

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

/* =========================================================
   SERVICES PAGE (servicos.html)
   ========================================================= */
.svc-hero { position: relative; }
.svc-hero-inner {
  min-height: 90svh;
  padding-top: clamp(104px, 14vh, 168px);
  padding-bottom: clamp(34px, 5vh, 60px);
  display: grid;
  grid-template-columns: 1fr clamp(300px, 28vw, 384px);
  gap: clamp(30px, 4vw, 60px);
}
.svc-hero-main {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding-right: clamp(20px, 3vw, 60px);
}
.svc-hero-main .eyebrow { margin-bottom: 0; }
.svc-hero-title {
  font-size: clamp(42px, 7.6vw, 118px); line-height: 0.98; letter-spacing: -0.045em;
  max-width: 14ch;
}
/* coluna direita com a linha vertical divisória */
.svc-hero-side {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 2.6vw, 48px);
  display: grid; grid-template-rows: 1fr auto;
}
.svc-hero-tags {
  grid-row: 1; align-self: center;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start;
}
.svc-hero-tags a {
  padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted); text-align: left;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.svc-hero-tags a:hover { color: var(--text); border-color: var(--blue); background: rgba(38,136,227,.08); }
.svc-hero-scroll {
  grid-row: 2; align-self: end; justify-self: end;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  transition: color .25s var(--ease);
}
.svc-hero-scroll:hover { color: var(--gold); }
.svc-hero-arrows { position: relative; width: 14px; height: 20px; flex-shrink: 0; }
.svc-hero-arrows::before, .svc-hero-arrows::after {
  content: ""; position: absolute; left: 2px; width: 9px; height: 9px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}
.svc-hero-arrows::before { top: 1px; opacity: .45; }
.svc-hero-arrows::after { top: 8px; animation: svcArrow 1.5s var(--ease) infinite; }
@keyframes svcArrow {
  0%, 100% { opacity: .5; transform: rotate(45deg) translate(-1px, -1px); }
  50% { opacity: 1; transform: rotate(45deg) translate(1px, 1px); }
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.svc-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-media:hover img { transform: scale(1.04); }

.svc-num {
  display: inline-block; font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.04em; color: var(--gold); margin-bottom: 16px;
}
.svc-item .section-title { font-size: clamp(28px, 3.4vw, 50px); }
.svc-list { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.svc-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.svc-list li::before {
  content: ""; width: 7px; height: 7px; margin-top: 7px; border-radius: 2px;
  background: var(--gold); flex-shrink: 0;
}
.svc-cta { margin-top: 34px; }

/* Blocos de serviço — esqueleto "categoria + lista", tema escuro da Home */
.svc-block { border-top: 1px solid var(--line); }
.svc-block-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.svc-ghost {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 8vw, 120px); line-height: 0.92; letter-spacing: -0.045em;
  color: var(--text);
}
.svc-block-desc {
  flex: 0 1 clamp(260px, 26vw, 380px); padding-top: 16px;
  color: var(--muted); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5;
}
.svc-block-body {
  margin-top: clamp(28px, 3.5vw, 52px);
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 4vw, 72px); align-items: stretch;
}
.svc-block-media { border-radius: var(--r); overflow: hidden; height: 100%; min-height: 360px; }
/* bloco invertido (assembleias): imagem de um lado, texto do outro */
.svc-block--reverse .svc-block-body { direction: rtl; }
.svc-block--reverse .svc-block-body > * { direction: ltr; }
.svc-block-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-block-media:hover img { transform: scale(1.04); }

.svc-group-label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
  font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em;
}
.svc-group-ico {
  width: 30px; height: 30px; flex-shrink: 0; color: var(--gold);
  background-image: radial-gradient(currentColor 1.3px, transparent 1.4px);
  background-size: 7px 7px; opacity: .9;
}

.svc-rows { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 2vw, 24px) 4px; text-align: left;
  font-family: var(--font-text); font-size: clamp(15px, 1.15vw, 18px); font-weight: 500;
  color: var(--text); transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.svc-row-head:hover { color: var(--gold); padding-left: 10px; }
.svc-row.is-open .svc-row-head { color: var(--gold); }
.svc-row-arrow {
  width: 9px; height: 9px; flex-shrink: 0; margin-right: 6px; color: var(--gold);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .35s var(--ease);
}
.svc-row.is-open .svc-row-arrow { transform: rotate(45deg); }
.svc-row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.svc-row-panel > div { overflow: hidden; }
.svc-row.is-open .svc-row-panel { grid-template-rows: 1fr; }
.svc-row-panel p { padding: 0 4px 22px; color: var(--muted); font-size: 15px; max-width: 54ch; }
.svc-block-cta { margin-top: 32px; }

.svc-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: clamp(28px, 3.4vw, 52px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(80% 130% at 100% 0%, rgba(38,136,227,.08), transparent 55%);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.svc-callout:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc-callout .eyebrow { padding: 0; color: var(--gold); margin-bottom: 0; }
.svc-callout h3 { font-size: clamp(22px, 2.4vw, 34px); max-width: 24ch; }
.svc-callout p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 52ch; }
.svc-callout-arrow {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--gold); display: grid; place-items: center;
  transition: background-color .3s var(--ease);
}
.svc-callout-arrow img { width: 24px; transition: transform .3s var(--ease); }
.svc-callout:hover .svc-callout-arrow { background: var(--gold); }
.svc-callout:hover .svc-callout-arrow img { filter: brightness(0); transform: translate(3px, -3px); }

/* =========================================================
   WORK / GALLERY PAGE (galeria.html)
   ========================================================= */
.work-intro { padding-top: clamp(130px, 17vh, 220px); text-align: center; }
.work-filter-label {
  display: inline-block; font-family: var(--font-text); font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.work-filter-list {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4.4vw, 66px); line-height: 1.06; letter-spacing: -0.03em;
  max-width: 20ch; margin-inline: auto;
}
.work-filter-list button {
  font: inherit; letter-spacing: inherit; color: var(--muted-dim);
  padding: 0; transition: color .3s var(--ease);
}
.work-filter-list button:hover { color: var(--muted); }
.work-filter-list button.is-active { color: var(--text); }

.work { padding-bottom: clamp(80px, 10vw, 150px); }
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 0; row-gap: clamp(28px, 3.5vw, 56px);
}
.work-item { min-width: 0; }
.work-media { aspect-ratio: 4 / 3; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-item:hover .work-media img { transform: scale(1.04); }
.work-cap {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 14px; padding: 16px 20px 0;
  font-size: clamp(13px, 1vw, 15px);
}
.work-num { font-family: var(--font-display); color: var(--gold); }
.work-title { color: var(--text); font-weight: 600; }
.work-status {
  color: var(--text); font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s var(--ease);
}
.work-status img { width: 14px; transition: transform .3s var(--ease); }
.work-cap:hover .work-status { color: var(--gold); }
.work-cap:hover .work-status img { transform: translate(2px, -2px); }
.work-status.work-soon { color: var(--muted-dim); font-weight: 500; }

/* =========================================================
   ABOUT PAGE (sobre.html)
   ========================================================= */
.about-hero { padding-top: clamp(110px, 15vh, 175px); }
.about-video {
  position: relative; overflow: hidden; border-radius: 40px;
  height: clamp(480px, 82vh, 860px);
  display: grid; place-items: center;
}
.about-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.about-video-shade {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 130% at 50% 50%, rgba(2,6,24,.35), rgba(2,6,24,.72));
}
.about-video-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 62px));
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(38,136,227,.45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.about-video-play:hover { transform: translate(-50%, calc(-50% - 62px)) scale(1.07); }
.about-video-play img { width: 24px; margin-left: 3px; }
.about-headline {
  position: relative; z-index: 2; text-align: center;
  font-size: clamp(30px, 4.4vw, 64px); letter-spacing: -0.035em; line-height: 1.05;
  max-width: 20ch;
}

.about-story-inner { max-width: 1200px; margin-inline: auto; text-align: center; }
.about-line {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.04em;
  text-wrap: balance;
}
.about-sub {
  margin: clamp(32px, 4vw, 54px) auto 0; max-width: 58ch;
  color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6;
  text-wrap: pretty;
}

/* Valores em stacking cards — cada card ocupa a tela e empilha no scroll */
.about-stack { position: relative; }
.stack-card {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(90px, 12vh, 140px);
  background: var(--bg); color: var(--fg);
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  transform-origin: center top; will-change: transform;
}
.stack-inner { width: 100%; }
.stack-index {
  display: inline-block; font-family: var(--font-text); font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: clamp(20px, 3vw, 40px);
}
.stack-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 9vw, 150px); line-height: 0.92; letter-spacing: -0.04em;
  max-width: 100%; overflow-wrap: normal;
}
.stack-support {
  margin-top: clamp(24px, 3vw, 46px); max-width: 22ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 40px); line-height: 1.22; letter-spacing: -0.02em;
  color: var(--dim);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .split--reverse { direction: ltr; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-content, .feature-panel, .feature-cta { grid-column: 1; grid-row: auto; align-self: auto; }
  .feature-panel { width: 100%; }
  .deps-grid { grid-template-columns: 1fr; gap: 40px; }
  .deps-arc { display: none; }
  .dep-nav { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .footer-row { gap: 28px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-pill, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-compact .header-inner { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-line { display: none; }
  .inst-item { margin-inline: 0; padding-inline: 16px; }
  .assembly-caps { grid-template-columns: repeat(2, 1fr); }
  .feature { border-radius: 24px; padding: clamp(28px, 6vw, 44px); }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .svc-callout { flex-direction: column; align-items: flex-start; }
  .svc-block-body { grid-template-columns: 1fr; gap: 32px; }
  .svc-block--reverse .svc-block-body { direction: ltr; }
  .svc-block-media { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-video { border-radius: 24px; height: clamp(340px, 56vh, 520px); }
  /* banner de serviços empilha no tablet/mobile */
  .svc-hero-inner { display: flex; flex-direction: column; gap: 40px; min-height: auto; padding-bottom: clamp(44px, 8vh, 70px); }
  .svc-hero-main { justify-content: flex-start; padding-right: 0; }
  .svc-hero-side { border-left: 0; padding-left: 0; display: flex; flex-direction: column; gap: 26px; }
  .svc-hero-tags { max-width: 440px; }
  .svc-hero-scroll { justify-self: start; align-self: flex-start; }
  /* elementos que dependeriam de hover no desktop ficam sempre visíveis no mobile */
  .service-btn { position: static; opacity: 1; transform: none; pointer-events: auto; margin-top: auto; align-self: flex-start; }
  .cta-play, .cta--dark .cta-play { background: var(--blue); }
  .cta-play .play-btn { position: static; transform: none; left: auto; margin-right: 16px; background: #fff; }
  .cta-play .play-btn img { filter: brightness(0); }
  .cta-play .play-label { margin-left: 0; color: #fff; }
  /* banner centralizado no mobile */
  .hero { align-items: center; text-align: center; }
  .hero-title { margin-inline: auto; }
  .hero-bottom { flex-direction: column; align-items: center; gap: 26px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  /* headline pode quebrar naturalmente no mobile, sem corte */
  .hero-title { font-size: clamp(30px, 8.4vw, 46px); line-height: 1.06; }
  .hero-title .line { overflow: visible; }
  .hero-title .line > span { white-space: normal; }
  /* tamanhos de fonte ajustados no mobile */
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .assembly-title { font-size: clamp(26px, 7.4vw, 34px); }
  .assembly-cap { font-size: clamp(21px, 5.6vw, 26px); }
  .cta-title { font-size: clamp(30px, 8.6vw, 40px); }
  .cta-play .play-label { font-size: 20px; }
  .stat-number { font-size: clamp(32px, 11vw, 48px); }
  .feature-content .section-title { font-size: clamp(24px, 6.8vw, 30px); }
  .svc-hero-title { font-size: clamp(40px, 11vw, 60px); max-width: 100%; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-ghost { font-size: clamp(40px, 13vw, 60px); }
  .about-line { font-size: clamp(28px, 8vw, 42px); }
  .stack-value { font-size: clamp(30px, 8.4vw, 54px); }
  .stack-support { font-size: clamp(19px, 5.4vw, 28px); max-width: 18ch; }
  /* cards de valores menos altos e sem sensação de vazio no mobile */
  .stack-card { min-height: 62svh; padding-block: clamp(44px, 7vh, 72px); }
  .work-grid { grid-template-columns: 1fr; }
  .work-cap { padding-inline: 16px; }
  /* respiro geral mais compacto e proporcional no mobile */
  .section { padding-block: clamp(52px, 13vw, 88px); }
  .section--tight { padding-block: clamp(42px, 10vw, 64px); }
  .svc-block-desc { padding-top: 10px; }
  .stack-support { margin-top: 20px; }
  .about-sub { margin-top: 26px; }
  .lead { margin-top: 20px; }
}
@media (max-width: 560px) {
  /* footer como na ref: marca à esquerda, redes empilhadas à direita, links abaixo */
  .footer-row {
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "brand social" "links links";
    align-items: start; gap: 34px 16px;
  }
  .footer-brand { grid-area: brand; }
  .footer-social { grid-area: social; flex-direction: column; gap: 12px; }
  .footer-links { grid-area: links; flex-wrap: wrap; gap: 14px 22px; padding-top: 0; justify-content: flex-start; }
  .footer-address { align-items: flex-start; }
  .footer-address .pin { margin-top: 3px; }
  .site-footer { padding-bottom: clamp(160px, 55vw, 260px); }
  .dep { grid-template-columns: 48px 1fr; gap: 16px; }
  .dep-avatar { width: 48px; height: 48px; }
  .assembly-caps { grid-template-columns: 1fr; }
  .value-pill { font-size: 20px; padding: 14px 26px; }
  .cta-play { min-width: 0; width: 100%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { opacity: .03; }
  .hero-media video, .hero-media img { transform: none; }
  .marquee-a .values-track, .marquee-b .values-track { animation: none; }
  .about-video video { display: none; }
}

/* =========================================================
   PADRONIZAÇÃO COM O TEMA (fonte Inter + botões quadrados da home)
   Mantém o layout do zip, mas unifica tipografia e botões com o
   resto do site (a página que construímos primeiro).
   ========================================================= */
:root {
  --font-display: "Inter", -apple-system, sans-serif;
  --font-text: "Inter", -apple-system, sans-serif;
  --gold-border: rgba(212, 146, 36, 0.7);
}

/* Botões: quadrados, com o mesmo sheen sweep da home */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  font-weight: 500;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn--blue, .btn--primary { background: var(--blue); color: #fff; }
.btn--blue:hover, .btn--primary:hover { background: #1f74c9; }

/* CTA do header: outline-ouro quadrado, igual à home */
.header-cta {
  border-radius: 0;
  border-color: var(--gold-border);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 500;
}
.header-cta:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-2px);
}
