:root {
  --magenta: #f1008b;
  --magenta-soft: #ff4fb8;
  --violet: #7b2cff;
  --ink: #000;
  --paper: #fff;
  --muted: rgba(255, 255, 255, .5);
  --pad-x: clamp(20px, 2.7vw, 44px);
  --s: clamp(190px, 42vmin, 380px);
  --half: calc(var(--s) / 2);
  --cx: 74%;  /* centro do cubo na tela */
  --cy: 52%;
  --header-h: 79px;   /* altura do cabeçalho fixo */
  --ease: cubic-bezier(.7, 0, .2, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--ink); color: var(--paper); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html { scroll-behavior: smooth; }
/* o topo fica parado e as seções deslizam por cima dele */
.hero {
  position: sticky; top: 0; z-index: 0; overflow: hidden;
  height: 100vh; height: 100dvh;
}
/* fundo preto no main: se sobrar qualquer fresta entre seções, aparece preto — nunca o topo */
body.home > main { position: relative; z-index: 1; background: var(--ink); }
/* passado o topo, ele sai de cena de vez (sticky sozinho não garante isso) */
body.passou-topo .hero { visibility: hidden; }
#sobre { border-top: 1px solid rgba(255, 255, 255, .12); }
a { color: inherit; }
::selection { background: var(--magenta); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px var(--pad-x);
  pointer-events: none;
  transition: background .35s, padding .35s, backdrop-filter .35s;
}
.is-scrolled .site-header {
  padding: 16px var(--pad-x);
  background: #000;
}
.site-header > * { pointer-events: auto; }
.logo { display: block; width: 106px; line-height: 0; }
.logo img { width: 100%; height: auto; }

.main-nav {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 50px;
}
.main-nav a {
  position: relative; padding: 6px 0;
  text-decoration: none; text-transform: uppercase;
  font-size: 18px; letter-spacing: .01em; transition: color .3s;
}
.main-nav a:hover { color: var(--magenta-soft); }
.main-nav a.is-active { color: var(--magenta); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 1px; bottom: -4px;
  width: 32px; height: 3px; background: currentColor;
}

/* botão hambúrguer — só aparece no mobile */
.burger { display: none; position: relative; width: 34px; height: 24px; background: none; border: 0; cursor: pointer; }
.burger span {
  position: absolute; right: 0; height: 2px; background: #fff;
  transition: transform .4s var(--ease), width .4s var(--ease), top .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 3px; width: 34px; }
.burger span:nth-child(2) { top: 11px; width: 26px; }
.burger span:nth-child(3) { top: 19px; width: 34px; }
.menu-aberto .burger span { top: 11px; width: 30px; }
.menu-aberto .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-aberto .burger span:nth-child(2) { opacity: 0; width: 0; }
.menu-aberto .burger span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Grid (canvas) ---------- */
#grid {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 30%, #000 70%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 4%, #000 30%, #000 70%, transparent 96%);
}

/* subpáginas: malha só numa faixa logo abaixo do cabeçalho, atrás do título */
.page { --band-top: 96px; --band-h: clamp(280px, 44vh, 460px); }
.page #grid {
  position: absolute; inset: auto 0 auto 0; top: var(--band-top); height: var(--band-h);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ---------- Frase ---------- */
.hero-title {
  position: absolute; z-index: 6; left: clamp(var(--pad-x), 9.5vw, 190px); top: 50%;
  transform: translateY(-50%);
  font-weight: 200; font-size: clamp(30px, 3.9vw, 80px);
  line-height: 1.06; letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
.hero-title em { font-style: normal; font-weight: 800; letter-spacing: -.045em; color: var(--magenta); }

/* ---------- Stage / cubo ---------- */
.stage {
  position: absolute; inset: 0; z-index: 5;
  cursor: grab; touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.is-dragging .stage { cursor: grabbing; }

.glow {
  position: absolute; left: var(--cx); top: var(--cy);
  width: calc(var(--s) * 3); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  /* queda em curva (ease-out) até zero antes da borda do elemento — sem aro visível */
  background: radial-gradient(circle closest-side,
    rgba(241, 0, 139, .30) 0%,
    rgba(241, 0, 139, .24) 12%,
    rgba(200, 10, 160, .17) 24%,
    rgba(160, 30, 200, .11) 36%,
    rgba(123, 44, 255, .065) 48%,
    rgba(123, 44, 255, .035) 60%,
    rgba(123, 44, 255, .015) 72%,
    rgba(123, 44, 255, .005) 84%,
    rgba(123, 44, 255, 0) 96%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .7; } }

.floor-shadow {
  position: absolute; left: var(--cx); top: calc(var(--cy) + var(--s) * 1.02);
  width: calc(var(--s) * 1.3); height: calc(var(--s) * .16);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(241, 0, 139, .45), transparent 70%);
  filter: blur(12px); pointer-events: none;
}

/* a cena é centrada em (--cx, --cy) pra perspectiva olhar o cubo de frente */
.scene {
  position: absolute; right: 0; bottom: 0;
  left: calc(var(--cx) * 2 - 100%);
  top: calc(var(--cy) * 2 - 100%);
  display: grid; place-items: center;
  perspective: 1400px;
}
.cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; will-change: transform; }

.face {
  --f: 1;
  position: absolute; inset: 0; overflow: hidden;
  display: grid; align-content: center;
  padding: calc(var(--s) * .065);
  color: #fff;
  transform: var(--rot) translateZ(var(--half));
  background: linear-gradient(140deg, rgba(241, 0, 139, .30) 0%, rgba(120, 0, 90, .12) 45%, rgba(123, 44, 255, .16) 100%);
  border: 1px solid rgba(255, 79, 184, .55);
  box-shadow: inset 0 0 calc(var(--s) * .2) rgba(241, 0, 139, .28);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.face.is-back { pointer-events: none; }
.face::before, .face::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--magenta-soft); pointer-events: none;
}
.face::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.face::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.face-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: calc(var(--s) / 6) calc(var(--s) / 6);
  background-position: -1px -1px;
  opacity: calc(.3 + var(--f) * .7);
}
.face-label {
  position: relative; width: max-content;
  font-weight: 800; font-size: var(--fs, calc(var(--s) * .15)); line-height: .9; letter-spacing: -.045em;
  text-transform: uppercase;
  opacity: calc(.1 + var(--f) * .9);
}

.face:hover {
  background: linear-gradient(140deg, rgba(241, 0, 139, .64), rgba(150, 0, 110, .32) 50%, rgba(123, 44, 255, .36));
  border-color: #ff8ad2;
  box-shadow: inset 0 0 calc(var(--s) * .26) rgba(255, 79, 184, .55);
}
.face:hover .face-label { animation: glitch .42s steps(2) 1; }
@keyframes glitch {
  0%   { text-shadow: 5px 0 var(--violet), -5px 0 var(--magenta-soft); transform: translateX(-3px); }
  35%  { text-shadow: -4px 0 var(--violet), 4px 0 var(--magenta-soft); transform: translateX(3px); }
  70%  { text-shadow: 2px 2px var(--violet), -2px -2px var(--magenta-soft); transform: none; }
  100% { text-shadow: none; }
}


/* ---------- Indicação de rolagem ---------- */
.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; z-index: 8;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; color: var(--muted);
  font: 400 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s, opacity .4s;
}
.scroll-hint:hover { color: #fff; }
.scroll-hint-track {
  position: relative; width: 1px; height: 54px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.scroll-hint-dot {
  position: absolute; left: -2px; top: 0; width: 5px; height: 5px;
  background: var(--magenta); border-radius: 50%;
  animation: scroll-dot 2.2s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(-8px); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(54px); opacity: 0; }
}
.is-scrolled .scroll-hint { opacity: 0; pointer-events: none; }

/* ---------- Seções claras ---------- */
/* as seções âncora ocupam a tela toda abaixo do cabeçalho e encaixam sem corte */
.section-light, .section-dark {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: center;
}
.section-light > .section-inner, .section-dark > .section-inner { width: 100%; }
#sobre, #cases, #fim { scroll-margin-top: var(--header-h); }

.section-light {
  position: relative;
  background: var(--paper); color: #0b0b0b;
  padding: clamp(84px, 13vh, 170px) var(--pad-x);
}
.section-light::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%);
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.section-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.section-eyebrow {
  font-weight: 800; font-size: clamp(26px, 2.6vw, 44px); line-height: 1;
  letter-spacing: -.02em; text-transform: uppercase;
  color: var(--magenta);
  margin: calc(clamp(20px, 3vw, 46px) * -1) 0 clamp(22px, 2.6vw, 38px);
}

.section-split {
  display: grid; gap: clamp(34px, 5vw, 90px); align-items: center;
  grid-template-columns: minmax(0, 1fr) max-content;   /* texto ocupa o resto; a frase pede o que precisa */
}
/* teto em ch: o limite acompanha o tamanho da fonte, não um número fixo de pixels */
.section-text { max-width: 70ch; }
.section-text p {
  margin-bottom: .45em;
  font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.6; color: #232323;
  text-wrap: pretty;   /* evita palavra sozinha na última linha */
}
.section-text p:last-child { margin-bottom: 0; }
.section-text .destaque { font-weight: 700; color: var(--magenta); }
.section-text em { font-style: italic; }

/* frase em destaque, com aspas decorativas */
.section-quote {
  position: relative; isolation: isolate;
  align-self: stretch;                      /* a coluna acompanha a altura do texto ao lado */
  display: grid; align-content: center;
  padding-left: clamp(0px, 2.6vw, 56px); margin-right: clamp(0px, 8vw, 168px);
  font-weight: 200; font-size: clamp(30px, 3.6vw, 66px);
  line-height: 1.16; letter-spacing: -.03em; color: #0b0b0b;
  white-space: nowrap;   /* a quebra é sempre a dos <br>, em qualquer largura */
}
/* aspas desenhadas (SVG): mesmo formato em qualquer aparelho */
.aspas {
  position: absolute; left: -.02em; top: -.06em; z-index: -1;
  width: 3.3em; height: auto;
  color: rgba(241, 0, 139, .18);
}
/* o texto começa alinhado ao centro da primeira perna das aspas */
.section-quote > span { margin-left: .42em; }
.section-quote strong { font-weight: 800; color: var(--magenta); }

/* cards que viram flash cards no clique */
.cards {
  list-style: none; display: grid; gap: clamp(14px, 1.5vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: clamp(48px, 7vh, 90px);
}
.card {
  display: block; width: 100%; min-height: 210px;
  padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 900px; font: inherit; color: inherit;
}
.card-inner {
  position: relative; display: block; width: 100%; min-height: 210px;
  transform-style: preserve-3d;
  transition: transform .65s var(--ease);
}
.card.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 26px 22px 34px; text-align: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card-flip {
  position: absolute; right: 16px; bottom: 16px;
  width: 30px; height: 30px; color: #fff;
  transition: transform .5s var(--ease);
}
.card:hover .card-flip { transform: rotate(-30deg) scale(1.06); }
.card-front {
  background: #fff; border: 1px solid var(--magenta); color: var(--magenta);
  font-weight: 800; font-size: clamp(16px, 1.35vw, 21px); letter-spacing: -.02em;
  line-height: 1.15;
  transition: box-shadow .3s;
}
.card-back {
  transform: rotateY(180deg);
  background: var(--magenta); color: #fff;
  font-weight: 400; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.35;
}
.card-front .card-flip { color: var(--magenta); }
.card:hover .card-front { box-shadow: inset 0 0 0 1px var(--magenta); }
.card:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; }

/* no desktop, passar o mouse já vira o card */
@media (hover: hover) and (pointer: fine) {
  .card { cursor: default; }
  .card:hover .card-inner,
  .card:focus-visible .card-inner { transform: rotateY(180deg); }
}

@media (max-width: 900px) { .section-split { grid-template-columns: 1fr; } }


/* ---------- Seção Produções (fundo preto) ---------- */
.section-dark {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(84px, 13vh, 170px) var(--pad-x);
}
/* mesma malha interativa da abertura, aqui ocupando a seção inteira */
.section-dark > .grid-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
}
.section-eyebrow--outline { color: #fff; }

/* galeria */
.gallery {
  position: relative; list-style: none;
  display: grid; gap: clamp(20px, 2.6vw, 44px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 5vh, 64px);
}
.proj-btn {
  --px: 0; --py: 0;
  display: block; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.proj-thumb {
  display: block; overflow: hidden; position: relative;
  aspect-ratio: 16 / 10; background: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28);
}
.proj-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s var(--ease);
}
.proj-title {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-weight: 500; font-size: clamp(16px, 1.45vw, 24px); letter-spacing: -.015em;
  transition: gap .4s var(--ease);
}
.proj-arrow { transition: transform .45s var(--ease); opacity: .75; }

/* o bloco inteiro flutua com o mouse (cada item num ritmo) */
.proj { will-change: transform; }
/* thumb com arte alternativa no hover */
.proj-thumb-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.proj-thumb.tem-hover::after { content: none; }   /* a arte já vem rosa, dispensa o filtro */

/* filtro rosa sobre a thumb no hover */
.proj-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--magenta); mix-blend-mode: color;
  opacity: 0; transition: opacity .4s;
}
.proj-title, .proj-arrow { transition: color .3s, gap .4s var(--ease), transform .45s var(--ease), opacity .3s; }
@media (hover: hover) and (pointer: fine) {
  .proj-btn:hover .proj-title { gap: 16px; color: var(--magenta); }
  .proj-btn:hover .proj-arrow { transform: translate(4px, -4px); opacity: 1; color: var(--magenta); }
  .proj-btn:hover .proj-thumb::after { opacity: .8; }
  .proj-btn:hover .proj-thumb-hover { opacity: 1; }
}
.proj-btn:focus-visible .proj-thumb { box-shadow: 0 0 0 3px var(--magenta); }
.proj-btn--estatico { cursor: default; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Modal do projeto ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.modal-box {
  position: relative; z-index: 1;
  width: min(1400px, 88vw);
  height: min(900px, 86vh); height: min(900px, 86dvh);
  display: flex; flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: modal-in .3s var(--ease);
}
@media (max-width: 700px) {
  .modal-box { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
}
@keyframes modal-in { from { opacity: 0; transform: scale(.97); } }

/* a moldura branca: barra fixa que nunca cobre o recurso embaixo */
.modal-topbar {
  flex: 0 0 auto; background: #fff;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 10px 12px;          /* respiro embaixo também: o botão cresce no hover */
}
.modal-stage { position: relative; flex: 1 1 auto; background: #000; }
.modal-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--magenta); color: #fff;
  transition: background .3s, transform .3s;
}
.modal-close:hover { background: var(--magenta-soft); transform: scale(1.06); }
.modal-x { font-size: 14px; line-height: 1; transition: transform .35s var(--ease); }
.modal-close:hover .modal-x { transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
@media (max-width: 700px) {
  .modal-topbar { padding: 6px 8px; }      /* botão mais perto do topo */
  .modal-close { width: 32px; height: 32px; }
  .modal-x { font-size: 13px; }
}

/* tela de carregamento do projeto */
.modal-loading {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 34px;
  background: #fff; color: var(--ink);
  transition: opacity .45s ease;
}
.modal-loading p {
  font-weight: 200; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: .01em;
}
.modal-loading.is-pronto { opacity: 0; pointer-events: none; }

.cubo-fio {
  --c: clamp(36px, 3.5vw, 53px);
  position: relative; width: var(--c); height: var(--c);
  transform-style: preserve-3d;
  animation: cubo-fio-gira 6s linear infinite;
}
.cubo-fio i { position: absolute; inset: 0; border: 1px solid var(--magenta); }
.cubo-fio i:nth-child(1) { transform: translateZ(calc(var(--c) / 2)); }
.cubo-fio i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--c) / 2)); }
.cubo-fio i:nth-child(3) { transform: rotateX(90deg) translateZ(calc(var(--c) / 2)); }
.cubo-fio i:nth-child(4) { transform: rotateY(180deg) translateZ(calc(var(--c) / 2)); }
.cubo-fio i:nth-child(5) { transform: rotateY(-90deg) translateZ(calc(var(--c) / 2)); }
.cubo-fio i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--c) / 2)); }
@keyframes cubo-fio-gira {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to   { transform: rotateX(-24deg) rotateY(360deg); }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
body.modal-aberto { overflow: hidden; }


/* ---------- Faixa de clientes ---------- */
.section-band {
  position: relative;
  background: var(--magenta); color: #fff;
  padding: clamp(59px, 9.1vh, 119px) var(--pad-x);
}
.section-eyebrow--light { color: #fff; }
/* aqui o título não sobe e fica em caixa baixa */
.section-band .section-eyebrow { margin-top: 0; text-transform: none; }
/* carrossel: os logos correm da direita para a esquerda, em loop */
.marquee {
  margin-top: clamp(38px, 5.2vh, 70px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clientes {
  list-style: none; display: flex; align-items: center; flex: 0 0 auto;
  gap: clamp(28px, 4.5vw, 72px); padding-right: clamp(28px, 4.5vw, 72px);
}
.clientes img {
  display: block; width: auto;
  height: clamp(26px, 3.2vw, 46px); max-width: 190px; object-fit: contain;
  opacity: .92; transition: opacity .3s, transform .4s var(--ease);
}
.clientes li:hover img { opacity: 1; transform: scale(1.06); }
/* a marca da Editora do Brasil é mais baixa que as outras: compensa no tamanho */
.clientes img[src*="editorabrasil"] { height: clamp(34px, 4.2vw, 60px); }


/* ---------- Bloco final: clientes + contato + rodapé numa tela só ---------- */
.bloco-final {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}
.bloco-final #clientes { padding-block: clamp(34px, 5vh, 62px); }
.bloco-final #contato {
  flex: 1; min-height: 0;
  padding-block: clamp(26px, 4vh, 56px);   /* igual em cima e embaixo: o bloco fica no centro */
}
/* o recuo negativo do rótulo serve às seções de tela cheia; aqui ele tiraria o contato do centro */
.bloco-final #contato .section-eyebrow { margin-top: 0; }

/* ---------- Contato ---------- */
.contato-split {
  display: grid; gap: clamp(36px, 5vw, 96px); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.contato-lead {
  font-weight: 200; font-size: clamp(26px, 3.1vw, 54px);
  line-height: 1.1; letter-spacing: -.03em; max-width: 14ch;
}
.contato-email {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(24px, 3vw, 44px);
  font-weight: 500; font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.02em;
  color: var(--magenta); text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color .3s;
}
.contato-email:hover { border-color: var(--magenta); }
.icone-email { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

.form { display: grid; gap: clamp(14px, 2.2vh, 24px); max-width: 520px; }
.campo { display: grid; gap: 8px; }
.campo label {
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
}
.campo input, .campo textarea {
  width: 100%; padding: 12px 0; resize: vertical;
  border: 0; border-bottom: 1px solid rgba(0, 0, 0, .25);
  background: none; color: #0b0b0b;
  font: 400 clamp(15px, 1.15vw, 18px)/1.5 var(--sans);
  transition: border-color .3s;
}
.campo input::placeholder, .campo textarea::placeholder { color: rgba(0, 0, 0, .3); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--magenta); }
.campo.erro input, .campo.erro textarea { border-color: #d40000; }
.form-enviar {
  justify-self: start;
  padding: 16px 40px; border: 1px solid #0b0b0b; background: none; cursor: pointer;
  font: 500 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6a6a6a;
  transition: background .3s, color .3s, border-color .3s;
}
.form-enviar { border-color: rgba(0, 0, 0, .35); }
.form-enviar:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.campo-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-enviar:disabled { opacity: .5; cursor: progress; }
.form-aviso { min-height: 1.2em; font: 400 13px/1.5 var(--sans); color: #444; }
.form-aviso.erro { color: #c40000; }

@media (max-width: 900px) { .contato-split { grid-template-columns: 1fr; } }


/* ---------- Rodapé ---------- */
.rodape { background: var(--ink); padding: 26px var(--pad-x); }
.rodape-creditos {
  max-width: 1240px; margin: 0 auto; text-align: center;
  font: 400 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Páginas internas ---------- */
.page-main {
  position: relative; z-index: 1;
  margin-top: var(--band-top); min-height: var(--band-h);
  display: grid; align-content: center; gap: 18px;
  padding: 0 var(--pad-x);
}
.eyebrow { font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.page-title {
  font-weight: 800; font-size: clamp(48px, 9vw, 150px); line-height: .84; letter-spacing: -.055em;
  text-transform: uppercase;
}
.page-title span { color: transparent; -webkit-text-stroke: 2px var(--magenta); }
.page-foot { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.page-sub { font: 400 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 32px; }
  .main-nav a { font-size: 15px; }
}

@media (max-width: 860px) {
  :root { --cx: 50%; --cy: 57%; --s: clamp(150px, 42vmin, 300px); }

  /* cabeçalho: logo à esquerda, menu no hambúrguer à direita */
  .site-header { padding: 18px var(--pad-x); justify-content: space-between; }
  .logo { width: 92px; }
  .burger { display: block; }

  .main-nav {
    position: fixed; inset: 0; transform: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    background: rgba(0, 0, 0, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .menu-aberto .main-nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  .main-nav a { font-size: 26px; letter-spacing: .02em; }
  .main-nav a.is-active::after { left: 50%; transform: translateX(-50%); width: 26px; }

  /* frase centralizada entre o cabeçalho e o cubo */
  .hero-title {
    left: var(--pad-x); right: var(--pad-x);
    top: 44px; bottom: 62%; transform: none;
    display: grid; align-content: center; justify-items: center; text-align: center;
  }
  .hero-title { font-size: clamp(24px, 8.8vw, 54px); }

  /* Sobre nós: frase e aspas maiores, cards em duas colunas */
  .section-quote { font-size: clamp(30px, 8.8vw, 40px); }
  .aspas { width: 3em; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card, .card-inner { min-height: 168px; }
  .card-front { font-size: clamp(14px, 4.2vw, 19px); }
  .card-back { font-size: clamp(12px, 3.5vw, 15px); }
  .card-face { padding: 18px 14px 32px; }
  .card-flip { width: 24px; height: 24px; right: 10px; bottom: 10px; }

  .page { --band-top: 64px; --band-h: clamp(240px, 34vh, 320px); }
}

@media (max-width: 420px) {
  .main-nav a:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .face:hover .face-label, .scroll-hint-dot, .marquee-track, .cubo-fio { animation: none; }
  html { scroll-behavior: auto; }
}
