/* ==========================================================================
   HIVE — Site (home e páginas internas)
   Sistema visual: roxo HIVE (#451F55) como cor principal, superfícies
   escuras em #22162B, papel levemente lavanda nas seções claras.
   Amarelo (#F8C630) só em detalhes pontuais.
   ========================================================================== */

:root {
  /* Paleta da marca */
  --ink: #22162B;
  --plum: #451F55;
  --plum-deep: #34173F;
  --lavender: #724E91;
  --honey: #F8C630;
  --coral: #E54F6D;

  /* Superfícies e texto */
  --paper: #F7F4F9;
  --paper-2: #EEE8F2;
  --white: #FFFFFF;
  --text: #22162B;
  --text-muted: #5E5169;
  --text-on-dark: #F4EEF8;
  --muted-on-dark: rgba(244, 238, 248, 0.72);
  --line: rgba(34, 22, 43, 0.12);
  --line-on-dark: rgba(244, 238, 248, 0.16);

  /* Tipografia */
  --font-display: "Sora", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-h2: clamp(2.25rem, 1.35rem + 3.4vw, 4.5rem);
  --fs-h1: clamp(2.75rem, 1.2rem + 5.8vw, 7rem);

  /* Espaçamento e forma */
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: clamp(24px, 3vw, 40px);
  --header-h: 84px;

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

::selection { background: var(--plum); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.hero :focus-visible,
.stats :focus-visible,
.method :focus-visible,
.works :focus-visible,
.cta :focus-visible,
.page-hero :focus-visible,
.pillar--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--honey); }

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

.section { padding-block: var(--section); }

/* Mantém palavras juntas na mesma linha (ex.: evitar "de" sozinho no fim da linha) */
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px;
  background: var(--white); color: var(--plum);
  border-radius: 999px; font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografia ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--honey);
  transform: rotate(45deg);
}

.lead { font-size: var(--fs-lead); line-height: 1.55; }

.prose p + p { margin-top: 1em; }
.prose { color: var(--text-muted); max-width: 58ch; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--plum);
  --btn-fg: var(--white);
  --btn-icon-bg: rgba(255, 255, 255, 0.14);
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--btn-icon-bg);
  overflow: hidden;
  flex: none;
}
.btn__icon svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }

@media (hover: hover) {
  .btn:hover .btn__icon svg { transform: translate(2px, -2px) rotate(45deg); }
}

.btn--primary:hover { --btn-bg: var(--plum-deep); }

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--plum);
  --btn-icon-bg: var(--plum);
}
.btn--light .btn__icon { color: var(--white); }
@media (hover: hover) {
  .btn--light:hover { --btn-bg: var(--paper-2); }
}

.btn--lg { min-height: 60px; padding-left: 28px; font-size: 1rem; }
.btn--lg .btn__icon { width: 48px; height: 48px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--plum);
  padding-block: 8px;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(4px); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--text-on-dark);
  transition: transform 420ms var(--ease-out);
}
/* Fundo do header: aparece aos poucos nos primeiros pixels de rolagem (--header-fill, de 0 a 1,
   atualizado pelo main.js), para o menu não se misturar com o texto do topo. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(34, 22, 43, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-on-dark);
  opacity: var(--header-fill, 0);
  pointer-events: none;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
/* Sem JS não há como saber onde termina o topo escuro: o header fica sempre sólido */
.no-js .site-header,
.site-header.is-solid { --header-fill: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.logo { width: 100%; height: auto; aspect-ratio: 435 / 155; }
.site-header__logo { width: 148px; flex: none; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.site-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
/* inline-block: todos os itens com a mesma caixa, inclusive o "Serviços", que fica num flex com a seta */
.site-nav__list > li > a {
  display: inline-block;
  position: relative;
  font-size: 0.9375rem;
  font-weight: 400;
  padding-block: 8px;
  color: var(--muted-on-dark);
  transition: color var(--dur) var(--ease-out);
}
.site-nav__list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav__list > li > a[aria-current="page"] { color: var(--white); }
.site-nav__list > li > a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .site-nav__list > li > a:hover { color: var(--white); }
  .site-nav__list > li > a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.site-nav__cta { min-height: 46px; font-size: 0.875rem; padding-left: 20px; }
.site-nav__cta .btn__icon { width: 34px; height: 34px; }

/* Submenu de Serviços: abre no hover do mouse ou pelo botão da seta (toque e teclado). */
.site-nav__group { position: relative; display: flex; align-items: center; gap: 2px; }
.site-nav__toggle {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  margin-right: -8px;
  border-radius: 50%;
  color: var(--muted-on-dark);
  transition: color var(--dur) var(--ease-out);
}
.site-nav__toggle svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.site-nav__sub {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 260px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-on-dark), 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
/* Ponte invisível para o mouse não perder o hover entre o link e o painel */
.site-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.site-nav__group.is-open .site-nav__sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.site-nav__group.is-open .site-nav__toggle svg { transform: rotate(180deg); }
.site-nav__sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .site-nav__toggle:hover { color: var(--white); }
  .site-nav__sub a:hover { background: rgba(244, 238, 248, 0.08); color: var(--white); }
}
@media (hover: hover) and (min-width: 961px) {
  .site-nav__group:hover .site-nav__sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  }
  .site-nav__group:hover .site-nav__toggle svg { transform: rotate(180deg); }
}

.menu-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header__logo { width: 124px; position: relative; z-index: 2; }

  .menu-toggle {
    display: grid; place-items: center;
    position: relative; z-index: 2;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
  }
  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    content: ""; display: block;
    width: 20px; height: 1.5px; border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before { position: absolute; top: -6px; }
  .menu-toggle__bars::after { position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0;
    flex-direction: column; align-items: flex-start; gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) max(40px, env(safe-area-inset-bottom));
    background: var(--ink);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease-out); }
  /* Empurra o menu para baixo sem cortar o topo quando falta altura */
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: auto; }
  .site-nav__list > li > a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-on-dark);
    line-height: 1.25;
  }
  .site-nav__list > li > a::after { display: none; }

  /* No menu de tela cheia, os serviços aparecem abertos embaixo do item */
  .site-nav__group { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav__toggle { display: none; }
  .site-nav__sub {
    position: static;
    display: flex; flex-wrap: wrap; gap: 0 20px;
    min-width: 0;
    padding: 2px 0 10px;
    background: none; box-shadow: none;
    /* inherit: continua escondido enquanto o menu está fechado */
    opacity: 1; visibility: inherit; transform: none;
  }
  .site-nav__sub::before { display: none; }
  .site-nav__sub a { padding: 6px 0; font-size: 1rem; }
  .site-nav__cta { min-height: 56px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--text-on-dark);
  background: var(--ink);
  isolation: isolate;
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster,
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 22, 43, 0.55) 0%, rgba(34, 22, 43, 0) 30%),
    linear-gradient(0deg, rgba(34, 22, 43, 0.96) 0%, rgba(34, 22, 43, 0.55) 45%, rgba(69, 31, 85, 0.35) 100%),
    rgba(69, 31, 85, 0.45);
}

.hero__inner {
  align-self: end;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero__title { font-weight: inherit; }
.hero__kicker {
  display: block;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.625rem);
  font-weight: 300;
  color: var(--muted-on-dark);
}
.hero__headline {
  display: block;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--white);
  text-wrap: balance;
}
.hero__actions { margin-top: clamp(32px, 4vw, 48px); }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative;
  padding-block: 22px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.hero__foot span[aria-hidden] { color: var(--honey); margin-inline: 4px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll-line {
  position: relative;
  width: 1px; height: 28px;
  background: var(--line-on-dark);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--white);
  transform: translateY(-100%);
  animation: scroll-hint 2.2s var(--ease-out) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 640px) {
  .hero__foot p:nth-child(2),
  .hero__scroll { display: none; }
  .hero__foot { font-size: 0.75rem; white-space: nowrap; }
}

/* ---------- Sobre ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.about__text .h2 { margin-bottom: clamp(24px, 3vw, 36px); max-width: 15ch; }
.about__text .prose { margin-bottom: 40px; }

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.about__media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 22, 43, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 4.4; }
}

/* ---------- Números ---------- */
.stats {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--plum);
  color: var(--text-on-dark);
}
.stats__title {
  max-width: 18ch;
  margin-bottom: clamp(48px, 6vw, 80px);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-on-dark);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 32px) 0 0;
}
.stat + .stat { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-on-dark); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 3.2vw, 4.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.stat__label { color: var(--muted-on-dark); max-width: 18ch; line-height: 1.4; }

@media (max-width: 860px) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-bottom: 28px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-on-dark); }
}

/* ---------- Método 360° ---------- */
.method { padding-bottom: calc(var(--section) * 0.5); }
.method__card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
.method__media { position: relative; min-height: 100%; overflow: hidden; }
.method__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.method__text {
  position: relative;
  padding: clamp(40px, 6vw, 96px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.method__text .h2 { margin-bottom: 28px; }
.method__text .lead { color: var(--muted-on-dark); margin-bottom: 44px; max-width: 52ch; }

.method__badge {
  position: relative;
  width: clamp(112px, 11vw, 148px);
  aspect-ratio: 1;
  margin-bottom: clamp(32px, 4vw, 56px);
  display: grid; place-items: center;
}
.method__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.method__badge text {
  fill: var(--muted-on-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.method__badge span {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--honey);
}

@media (max-width: 900px) {
  .method__card { grid-template-columns: 1fr; }
  .method__media { aspect-ratio: 4 / 3.4; }
  .method__media img { object-position: 50% 8%; }
}

/* ---------- Serviços ---------- */
.services { padding-block: calc(var(--section) * 0.5) var(--section); }
.services__pin { overflow: hidden; }
.services__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.services__progress { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 16px; padding-bottom: 12px; color: var(--text-muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.services__bar { position: relative; width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.services__bar span { position: absolute; inset: 0; background: var(--plum); transform: scaleX(0.111); transform-origin: left; }

.services__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.services__viewport::-webkit-scrollbar { display: none; }
.services__track {
  display: flex; gap: clamp(16px, 1.6vw, 24px);
  width: max-content;
  padding-right: var(--gutter);
}
@media (min-width: 1360px) {
  .services__viewport { padding-left: calc((100vw - 1360px) / 2 + var(--gutter)); }
}

.service {
  position: relative;
  width: clamp(272px, 27vw, 400px);
  scroll-snap-align: start;
}
.service__link { display: block; border-radius: var(--radius); -webkit-tap-highlight-color: transparent; }
.service__media {
  position: relative;
  aspect-ratio: 600 / 528;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 20px;
}
.service__media img,
.service__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
/* Os vídeos trazem o título impresso no topo; o corte por baixo o esconde, como nas imagens */
.service__media video { object-position: 50% 100%; }
@media (hover: hover) { .service:hover .service__media img, .service:hover .service__media video { transform: scale(1.04); } }
/* Seta que indica o link para a página de Serviços */
.service__go {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--plum);
  opacity: 0; transform: scale(0.8);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.service__go svg { width: 18px; height: 18px; }
.service__link:hover .service__go,
.service__link:focus-visible .service__go { opacity: 1; transform: none; }
@media (hover: none) { .service__go { opacity: 0.92; transform: scale(0.86); } }
.service__n {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lavender);
  font-variant-numeric: tabular-nums;
}
.service__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.services__nav { display: flex; align-items: center; gap: 24px; }
.services__arrows { display: flex; gap: 8px; }
.services__arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--plum);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.services__arrow svg { width: 20px; height: 20px; }
.services__arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .services__arrow:not(:disabled):hover { background: var(--plum); color: var(--white); border-color: var(--plum); }
}
/* Arrastar com o mouse (fora do modo fixo do desktop) */
.services__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.services__viewport.is-dragging img, .services__viewport.is-dragging video { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .services:not(.is-pinned) .services__viewport { cursor: grab; } }
/* No modo fixo do desktop a rolagem já controla os cards */
.services.is-pinned .services__arrows { display: none; }

@media (max-width: 640px) {
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services__nav { width: 100%; justify-content: space-between; }
  .services__progress { padding-bottom: 0; }
}

/* Com o pin horizontal (desktop), a rolagem nativa é desligada pelo JS. */
.services.is-pinned .services__viewport { overflow: visible; scroll-snap-type: none; }

/* ---------- Clientes ---------- */
.clients { background: var(--white); }
.clients__title { margin-bottom: clamp(40px, 5vw, 72px); max-width: 12ch; }
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 16px) 0;
}
.clients__grid li {
  display: grid; place-items: center;
  width: 20%;
  aspect-ratio: 16 / 8;
  padding: clamp(12px, 2vw, 28px);
}
.clients__grid img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: 0.62;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
/* Logos em cores claras precisam escurecer para ter contraste no cinza */
.clients__grid img.is-light { filter: grayscale(1) brightness(0.55) contrast(1.3); }
@media (hover: hover) {
  .clients__grid li:hover img { filter: none; opacity: 1; }
}
@media (max-width: 900px) {
  .clients__grid li { width: 33.333%; }
  /* Sem hover no toque: logos na cor original */
  .clients__grid img,
  .clients__grid img.is-light { filter: none; opacity: 1; }
}
@media (max-width: 560px) {
  .clients__grid li { aspect-ratio: 4 / 3; padding: 10px 12px; }
  .clients__grid img { max-height: 40px; }
}

/* ---------- Trabalhos ---------- */
.works {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--ink);
  overflow: hidden;
}
.works__rows { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.works__row {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  width: max-content;
  margin-left: -6vw;
}
.works__row:nth-child(2) { margin-left: -14vw; }
.works__row li {
  width: clamp(200px, 24vw, 360px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}
.works__row img { width: 100%; height: 100%; object-fit: cover; }
.works__cta { display: flex; justify-content: center; margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Blog ---------- */
.blog { background: var(--paper); }
.blog__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.blog__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.post-card { height: 100%; }
.post-card__link {
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(34, 22, 43, 0.04);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .post-card__link:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 18px 40px -20px rgba(69, 31, 85, 0.35); }
  .post-card__link:hover img { transform: scale(1.04); }
}
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-card__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2vw, 28px); }
.post-card__meta { font-size: 0.875rem; color: var(--text-muted); }
.post-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
@media (max-width: 900px) {
  .blog__list { grid-template-columns: 1fr; max-width: 560px; }
  .blog__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- CTA final ---------- */
.cta {
  padding-block: clamp(96px, 13vw, 200px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(114, 78, 145, 0.55) 0%, rgba(114, 78, 145, 0) 60%),
    var(--plum);
  color: var(--text-on-dark);
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  max-width: 12ch;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
  text-wrap: balance;
}
.cta__title em { font-style: normal; color: var(--honey); }
.cta .lead { max-width: 46ch; color: var(--muted-on-dark); margin-bottom: 44px; }

/* ---------- Rodapé ---------- */
.site-footer {
  padding-top: clamp(64px, 7vw, 96px);
  background: var(--ink);
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.site-footer__logo { width: 200px; color: var(--text-on-dark); }
.site-footer__contact { display: grid; gap: 14px; }
.site-footer__contact a { display: flex; gap: 12px; line-height: 1.5; transition: color var(--dur) var(--ease-out); }
.site-footer__contact svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--lavender); }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.site-footer__social svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .site-footer__contact a:hover { color: var(--white); }
  .site-footer__social a:hover { background: var(--white); color: var(--plum); border-color: var(--white); }
}
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px;
  position: relative;
  padding-block: 24px max(24px, env(safe-area-inset-bottom));
  padding-right: calc(var(--gutter) + 72px);
  font-size: 0.8125rem;
}
/* Linha divisória alinhada ao conteúdo, sem invadir a margem do container */
.hero__foot::before,
.site-footer__bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line-on-dark);
}
.site-footer__bottom a:hover { color: var(--white); }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
/* Aparece depois do hero, para não disputar com o CTA principal */
.js .whatsapp-float:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.js .whatsapp-float.is-visible { transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (hover: hover) { .whatsapp-float:hover { transform: scale(1.06); } }
.whatsapp-float:active { transform: scale(0.95); }

/* ==========================================================================
   Páginas internas
   ========================================================================== */

/* ---------- Topo ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 112px));
  padding-bottom: clamp(56px, 7vw, 104px);
}
/* Vidro canelado atrás do conteúdo (shader do main.js). Sem JS ou sem WebGL, fica a imagem estática. */
.page-hero__glass { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero__glass canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease-out); }
.page-hero__glass.is-ready canvas { opacity: 1; }
.page-hero__glass.is-static canvas { display: none; }
.no-js .page-hero__glass,
.page-hero__glass.is-static { background: url("/assets/img/servicos/vidro-canelado.webp") center top / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { .page-hero__glass canvas { transition: none; } }
.page-hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-hero__title { font-weight: inherit; }
.page-hero__badge { flex: none; width: clamp(120px, 12vw, 172px); margin: 0 0 6px; }
.page-hero__badge span { color: var(--white); }
@media (max-width: 760px) { .page-hero__badge { display: none; } }
/* Mesmo estilo dos rótulos das frentes ("01 Marketing"): um só sistema de rótulo na página */
.page-hero__kicker {
  display: block;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.page-hero__headline {
  display: block;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.1rem + 5vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--white);
  text-wrap: balance;
}

/* Índice das 3 frentes */
.pillar-index { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.pillar-index ol { border-top: 1px solid var(--line-on-dark); }
.pillar-index li a {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 8px clamp(16px, 3vw, 48px);
  padding-block: clamp(20px, 2.4vw, 32px);
}
/* Linhas com --draw: o JS anima de 0 a 1 na entrada; sem JS ficam inteiras */
.pillar-index li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line-on-dark);
  transform: scaleX(var(--draw, 1)); transform-origin: left;
}
.pillar-index__n {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
  font-variant-numeric: tabular-nums;
}
.pillar-index__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.pillar-index__desc { color: var(--muted-on-dark); }
/* Frente em destaque: nome em amarelo no hover do mouse e no foco do teclado */
.pillar-index li a:focus-visible .pillar-index__name { color: var(--honey); }
.pillar-index li a:focus-visible .pillar-index__arrow { background: var(--honey); color: var(--plum); border-color: var(--honey); }
.pillar-index__arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  color: var(--white);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.pillar-index__arrow svg { width: 20px; height: 20px; }
.pillar-index__extra {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding-block: 8px;
  font-weight: 700;
  color: var(--muted-on-dark);
  transition: color var(--dur) var(--ease-out);
}
.pillar-index__extra svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .pillar-index li a:hover .pillar-index__name { color: var(--honey); transform: translateX(8px); }
  .pillar-index li a:hover .pillar-index__arrow { background: var(--honey); color: var(--plum); border-color: var(--honey); }
  .pillar-index__extra:hover { color: var(--white); }
  .pillar-index__extra:hover svg { transform: translateX(4px); }
}
@media (max-width: 760px) {
  .pillar-index li a { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
  .pillar-index__desc { grid-column: 2; grid-row: 2; font-size: 0.9375rem; line-height: 1.45; }
  .pillar-index__arrow { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
}

/* ---------- Frentes (Marketing, Mídias, Vendas) ---------- */
.pillar { padding-block: var(--section); }
.pillar--dark { background: var(--ink); color: var(--text-on-dark); }

.pillar__label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
}
.pillar__label::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line);
  transform: scaleX(var(--draw, 1)); transform-origin: left;
}
.pillar__label span { font-variant-numeric: tabular-nums; }
.pillar--dark .pillar__label { color: var(--muted-on-dark); }
.pillar--dark .pillar__label::after { background: var(--line-on-dark); }

.pillar__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px clamp(40px, 6vw, 112px);
  align-items: end;
}
.pillar__title {
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.15rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pillar__intro { max-width: 54ch; }
.pillar--dark .pillar__title { color: var(--white); }
.pillar--dark .prose,
.pillar--dark .lead,
.pillar--dark .feature p { color: var(--muted-on-dark); }

.pillar__media {
  margin-top: clamp(48px, 6vw, 88px);
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
}
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar__media--wide { aspect-ratio: 16 / 9; }

.pillar__block { margin-top: clamp(72px, 9vw, 136px); }
.pillar__head + .pillar__block { margin-top: clamp(48px, 6vw, 88px); }
.pillar__subtitle {
  max-width: 24ch;
  margin-bottom: clamp(32px, 4vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.375rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pillar--dark .pillar__subtitle { color: var(--white); }
.pillar__subtitle:has(+ .pillar__note) { margin-bottom: 12px; }
.pillar__note { margin-bottom: clamp(32px, 4vw, 56px); color: var(--text-muted); }

/* Tópicos em destaque: ícone, linha e texto */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); }
.topics:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.topic svg { width: 32px; height: 32px; margin-bottom: 20px; color: var(--lavender); }
.topic p {
  position: relative;
  padding-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.topic p::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line);
  transform: scaleX(var(--draw, 1)); transform-origin: left;
}
@media (max-width: 1100px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topics,
  .topics:has(> :nth-child(5)) { grid-template-columns: 1fr; gap: 0; }
  .topic {
    display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start;
    padding-block: 18px;
    border-top: 1px solid var(--line);
  }
  .topic svg { width: 26px; height: 26px; margin: 0; }
  .topic p { padding: 0; }
  .topic p::before { display: none; }
}

/* Bloco de argumento de cada frente (benefícios, por que investir, problemas): título fixo à
   esquerda e conteúdo à direita, nas mesmas colunas do cabeçalho, para alinhar com a introdução */
.pillar__block--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px clamp(40px, 6vw, 112px);
  align-items: start;
}
.pillar__block--split > :first-child { position: sticky; top: calc(var(--header-h) + 24px); }
.pillar__block--split .pillar__subtitle,
.pillar__block--split .pillar__note { margin-bottom: 0; }
.pillar__block--split .pillar__subtitle:has(+ .pillar__note) { margin-bottom: 12px; }
.pillar__block--split .lead { max-width: 52ch; }
.pillar--dark .pillar__note { color: var(--muted-on-dark); }
/* Itens de lista no tamanho de texto de destaque: abaixo dos títulos, acima do texto corrido */
.topics.topics--lead { display: flex; flex-direction: column; gap: 0; }
.topics--lead .topic {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: center;
  padding-block: clamp(18px, 1.8vw, 24px);
  border-top: 0;
}
.topics--lead .topic::before,
.topics--lead .topic:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line);
  transform: scaleX(var(--draw, 1)); transform-origin: left;
}
.topics--lead .topic:last-child::after { top: auto; bottom: 0; }
.topics--lead .topic svg { width: 28px; height: 28px; margin: 0; }
.topics--lead .topic p { padding: 0; }
.topics--lead .topic p::before { display: none; }
@media (max-width: 900px) {
  .pillar__block--split { grid-template-columns: 1fr; }
  .pillar__block--split > :first-child { position: static; }
  .pillar__block--split .pillar__subtitle { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .topics--lead .topic { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 18px; }
  .topics--lead .topic svg { width: 26px; height: 26px; }
}

/* Serviços de cada frente */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(20px, 2.4vw, 32px); }
.feature__media {
  aspect-ratio: 900 / 792;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.pillar--dark .feature__media { background: rgba(244, 238, 248, 0.06); }
.feature__media img,
.feature__media video { width: 100%; height: 100%; object-fit: cover; }
/* Os vídeos trazem o título impresso no topo; o corte por baixo o esconde */
.feature__media video { object-position: 50% 100%; }
.feature__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pillar--dark .feature__title { color: var(--white); }
.feature p { max-width: 60ch; color: var(--text-muted); }
.feature__media--wide { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feature--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 96px);
  align-items: center;
}
.feature--split .feature__media { margin-bottom: 0; }
.feature__body p + p { margin-top: 1em; }
@media (max-width: 900px) { .feature--split { grid-template-columns: 1fr; } }

.pillar__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
/* A pergunta fica abaixo dos títulos (H3) e o botão grande, para a ação pesar mais que a frase */
.pillar__cta p {
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pillar--dark .pillar__cta { border-color: var(--line-on-dark); }
.pillar--dark .pillar__cta p { color: var(--white); }

@media (max-width: 900px) {
  .pillar__head { grid-template-columns: 1fr; }
  .pillar__media { aspect-ratio: 4 / 3; }
  .pillar__media--wide { aspect-ratio: 3 / 2; }
}

/* ---------- Sites e Identidade Visual ---------- */
/* Seção roxa na largura toda, para não parecer parte de Vendas. Textura de favo de mel (a
   "colmeia" da marca) em linhas finas, mais visível no alto à direita e sumindo para baixo.
   2 painéis de imagem inteira: no desktop, o painel em hover ou com foco se abre e o outro
   recua; no toque e no celular, os dois ficam abertos. */
.projects {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(114, 78, 145, 0.55) 0%, rgba(114, 78, 145, 0) 65%),
    radial-gradient(60% 60% at 0% 100%, rgba(34, 22, 43, 0.6) 0%, rgba(34, 22, 43, 0) 70%),
    linear-gradient(180deg, var(--plum-deep) 0%, var(--ink) 100%);
  color: var(--text-on-dark);
}
.projects::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.64 60'%3E%3Cpath d='M0 10 17.32 0 34.64 10V30L17.32 40 0 30ZM17.32 40V60' fill='none' stroke='%23F4EEF8' stroke-width='.35'/%3E%3C/svg%3E") 0 0 / 55.4px 96px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(75% 85% at 85% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(75% 85% at 85% 0%, #000 0%, transparent 75%);
}
.projects :focus-visible { outline-color: var(--honey); }

.projects__label { color: var(--muted-on-dark); }
.projects__label::after { background: var(--line-on-dark); }
.projects__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px clamp(40px, 6vw, 112px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.projects__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.15rem + 3vw, 4rem); /* mesmo nível do H2 das frentes */
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}
.projects__head .prose { max-width: 40ch; color: var(--muted-on-dark); font-size: var(--fs-lead); }

/* Quando o CTA final vem logo depois (página de Serviços), ele continua a partir do ink em que
   Projetos termina, em vez de começar num plum claro e marcar uma linha entre as duas seções */
.projects + .cta {
  background:
    radial-gradient(70% 55% at 50% 60%, rgba(114, 78, 145, 0.5) 0%, rgba(114, 78, 145, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--plum) 100%);
}

/* Painéis */
.showcase { display: flex; gap: clamp(12px, 1.4vw, 20px); height: clamp(480px, 44vw, 640px); }
.showcase__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum-deep);
  transition: flex-grow 900ms var(--ease-out);
}
.showcase__media { position: absolute; inset: 0; }
.showcase__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1200ms var(--ease-out), filter 900ms var(--ease-out);
}
/* Sombra de baixo para cima: o texto branco mantém o contraste sobre qualquer foto */
.showcase__panel::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(34, 22, 43, 0.96) 0%, rgba(34, 22, 43, 0.7) 38%, rgba(34, 22, 43, 0.1) 70%),
    rgba(69, 31, 85, 0.18);
  pointer-events: none;
}
.showcase__body {
  position: absolute; inset: auto 0 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(22px, 2.6vw, 40px);
}
.showcase__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.375rem); /* mesmo nível dos subtítulos (H3) */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}
.showcase__more p { max-width: 40ch; margin: 16px 0 28px; color: var(--muted-on-dark); }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.showcase .link-arrow { color: var(--white); }

/* Desktop com mouse: o painel ativo se abre e mostra o texto; o outro recua e escurece */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .showcase__more {
    display: grid; grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 700ms var(--ease-out), opacity 500ms var(--ease-out);
  }
  .showcase__more > * { min-height: 0; justify-self: start; }
  .showcase__more { overflow: hidden; }
  .showcase__more .btn { margin-bottom: 4px; }
  .showcase__panel:is(:hover, :focus-within, .is-active) { flex-grow: 1.7; }
  .showcase__panel:is(:hover, :focus-within, .is-active) .showcase__more { grid-template-rows: 1fr; opacity: 1; }
  .showcase__panel:is(:hover, :focus-within, .is-active) .showcase__media img { transform: scale(1); }
  .showcase:has(.showcase__panel:is(:hover, :focus-within)) .showcase__panel:not(:hover, :focus-within) { flex-grow: 1; }
  .showcase:has(.showcase__panel:is(:hover, :focus-within)) .showcase__panel:not(:hover, :focus-within) .showcase__more { grid-template-rows: 0fr; opacity: 0; }
  .showcase:has(.showcase__panel:is(:hover, :focus-within)) .showcase__panel:not(:hover, :focus-within) .showcase__media img { transform: scale(1.06); filter: grayscale(0.6) brightness(0.7); }
}

@media (max-width: 1100px) {
  .projects__head { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .showcase { flex-direction: column; height: auto; }
  .showcase__panel { min-height: min(560px, 130vw); }
  .showcase__media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase__panel, .showcase__media img, .showcase__more { transition: none; }
}

/* ---------- Sites e Landing Pages ---------- */
/* Topo: texto curto e botão à direita do título, no lugar do selo 360° */
.page-hero__aside {
  flex: 0 1 34ch;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
  margin-bottom: 6px;
  color: var(--muted-on-dark);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .page-hero__top { flex-direction: column; align-items: flex-start; gap: 36px; }
  .page-hero__aside { flex-basis: auto; max-width: 40ch; }
}

/* Faixa de projetos no pé do topo. No desktop com movimento, desliza para a esquerda com a
   rolagem (main.js, .is-drifting); no toque, com reduced motion ou sem JS, rola na horizontal. */
.reel {
  margin-top: clamp(56px, 7vw, 112px);
  overflow-x: auto;
  /* alinha o primeiro projeto com o container */
  --reel-pad: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter)));
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--reel-pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-drifting { overflow: hidden; scroll-snap-type: none; }
.reel__track {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  width: max-content;
  padding-inline: var(--reel-pad);
}
.reel__track > li { scroll-snap-align: start; }
.reel__item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 16px; align-items: baseline;
  width: clamp(280px, 26vw, 400px);
}
.reel__media {
  grid-column: 1 / -1;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--plum-deep);
  box-shadow: 0 0 0 1px var(--line-on-dark);
}
.reel__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 900ms var(--ease-out); }
.reel__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.reel__type { font-size: 0.8125rem; color: var(--muted-on-dark); }
@media (hover: hover) {
  .reel__item:hover .reel__media img { transform: scale(1.04); }
}
@media (max-width: 900px) { .reel__item { width: 72vw; } }

/* Por que investir: lista editorial, sem ícones */
.reasons__intro { margin-top: clamp(20px, 2.4vw, 32px); max-width: 34ch; font-size: var(--fs-lead); }
.reasons .topic { display: block; padding-block: clamp(24px, 2.6vw, 36px); }
.reasons__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.reasons .topic p,
.steps .topic p {
  max-width: 52ch;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text-muted);
}
.reasons .topic p { margin-top: 12px; }
@media (max-width: 560px) { .reasons .topic { display: block; } }

/* Etapas (Como funciona): número no lugar do ícone */
.topic__title {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.steps .topic { align-items: start; }
.steps__n {
  min-width: 2.25rem;
  padding-top: 0.2em;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lavender);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) { .steps .topic { grid-template-columns: 2.25rem minmax(0, 1fr); } }

.bridge__link { margin-top: 28px; }

/* Portfólio: índice fixo e projetos empilhados (inspirado em matteofabbiani.com, "Recent successful projects") */
.cases {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0 clamp(40px, 5vw, 96px);
  align-items: start;
}
.cases-nav {
  position: sticky; top: calc(var(--header-h) + 40px);
  display: flex; flex-direction: column;
}
.cases-nav__group {
  padding: 24px 12px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 248, 0.5);
}
.cases-nav__group:first-of-type { padding-top: 0; }
.cases-nav__link {
  position: relative; z-index: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
  transition: color var(--dur) var(--ease-out);
}
.cases-nav__link[aria-current="true"] { color: var(--white); }
@media (hover: hover) { .cases-nav__link:hover { color: var(--white); } }
/* Pílula do projeto ativo: desliza entre os itens e se enche conforme o projeto é visto (--progress) */
.cases-nav__indicator {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--h, 0px);
  border-radius: 10px;
  background: rgba(244, 238, 248, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(var(--y, 0px));
  transition: transform 520ms var(--ease-out), height 520ms var(--ease-out), opacity var(--dur) var(--ease-out);
  pointer-events: none;
}
.cases-nav__indicator.is-ready { opacity: 1; }
.cases-nav__indicator::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: calc(var(--progress, 0) * 100%);
  background: rgba(114, 78, 145, 0.5);
}

.cases__list,
.cases__group { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 128px); }

/* Janela do navegador: barra com o domínio (texto real) e o vídeo da página */
.case__window {
  border-radius: var(--radius);
  overflow: hidden;
  background: #2B1D35;
  box-shadow: 0 0 0 1px var(--line-on-dark), 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.case__bar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 36px;
}
.case__dots,
.case__dots::before,
.case__dots::after {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(244, 238, 248, 0.18);
}
.case__dots { position: absolute; left: 16px; top: 14px; }
.case__dots::before,
.case__dots::after { content: ""; position: absolute; top: 0; }
.case__dots::before { left: 14px; }
.case__dots::after { left: 28px; }
.case__url { font-size: 0.75rem; letter-spacing: 0.02em; color: rgba(244, 238, 248, 0.55); }
.case__media { aspect-ratio: 3 / 2; background: var(--white); }
.case__media video { width: 100%; height: 100%; object-fit: cover; }

.case__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 32px;
  align-items: end;
  padding-top: clamp(20px, 2.2vw, 28px);
}
.case__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.375rem); /* mesmo nível dos subtítulos (H3) */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}
.case__info { grid-column: 1; grid-row: 2; color: var(--muted-on-dark); }
.case__info span:first-child { color: var(--white); }
.case__info span:first-child::after { content: " ·"; color: var(--muted-on-dark); }
.case__link {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding-block: 8px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid var(--line-on-dark);
  transition: border-color var(--dur) var(--ease-out);
}
.case__link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .case__link:hover { border-color: var(--white); }
  .case__link:hover svg { transform: translate(2px, -2px); }
}

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .cases-nav { display: none; }
}
@media (max-width: 560px) {
  .case__bar { height: 28px; }
  .case__dots { top: 10px; left: 12px; }
  .case__meta { grid-template-columns: 1fr; }
  .case__link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
}

/* ---------- Estados iniciais das animações ----------
   Só escondem conteúdo quando o JS está ativo e o usuário aceita movimento.
   O fallback (.motion-fallback) mostra tudo se o GSAP não carregar. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.motion-fallback):not(.motion-ready) [data-hero-kicker],
  .js:not(.motion-fallback):not(.motion-ready) [data-hero-headline],
  .js:not(.motion-fallback):not(.motion-ready) [data-hero-actions],
  .js:not(.motion-fallback):not(.motion-ready) [data-hero-foot],
  .js:not(.motion-fallback):not(.motion-ready) [data-intro],
  .js:not(.motion-fallback):not(.motion-ready) [data-intro-title] { visibility: hidden; }
  /* Só a home anima a entrada do header; nas páginas internas ele já nasce visível e usável */
  .js:not(.motion-fallback):not(.motion-ready):has(.hero) .site-header { visibility: hidden; }
}

/* Linhas do SplitText com máscara */
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after { animation: none; }
  .hero__video { display: none; }
}
