:root {
  --green: #20C878;
  --green-dark: #0B8F55;
  --navy: #101C2C;
  --navy-2: #16263A;
  --navy-3: #1D3048;
  --off: #F5F7F4;
  --paper: #FCFDFB;
  --green-ink: #0A7A48; /* verde-escuro um tom abaixo, pra texto pequeno passar de 4.5:1 no fundo claro */
  --hero-bg: #FAF8F4; /* mesma cor do fundo do vídeo, pra ele não parecer um retângulo colado */
  --ink: #101C2C;
  --muted: #56627A;
  --muted-dark: #A7B3C6;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 76px;
  --font-display: 'Sora', 'Manrope', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--navy); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 12px 18px; border-radius: 10px; background: var(--navy); color: var(--off);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

/* Tudo que é conteúdo fica acima da camada do besourinho; os fundos das seções ficam abaixo.
   Assim ele anda "por trás" de cards e textos, mas continua visível nos espaços vazios. */
.section, .hero, .site-footer { position: relative; }
/* Os cards esperam a entrada fora do lugar, de lado: sem isto o celular dá zoom pra caber */
.section { overflow-x: clip; }
.section > .container, .site-footer > .container, .scroll-hint { position: relative; z-index: 2; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  border-radius: 999px;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-green { background: var(--green); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(32, 200, 120, .8); }
.btn-green:hover { background: #2fd887; box-shadow: 0 14px 30px -12px rgba(32, 200, 120, .9); }
.btn-ghost { color: var(--navy); border: 2px solid rgba(16, 28, 44, .14); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--off); }
.btn-navy:hover { background: #1b2d45; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--off); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s;
}
.site-header.scrolled {
  background: var(--off);
  box-shadow: 0 1px 0 rgba(16, 28, 44, .08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 42px; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--navy); }
.brand-name b { color: var(--green-dark); font-weight: 800; }
.brand-light .brand-name { color: var(--off); }
.brand-light .brand-name b { color: var(--green); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: 15px; color: var(--navy); position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  min-height: min(100vh, 1000px); min-height: min(100dvh, 1000px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); width: min(var(--container), 100% - 48px); }
.hero-copy { max-width: 520px; position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--green); }
.hero h1 { font-size: clamp(40px, 4.4vw, 66px); font-weight: 800; letter-spacing: -.035em; }
.hl { color: var(--green-dark); position: relative; white-space: nowrap; }
.hl::after {
  content: ''; position: absolute; left: -2px; right: -4px; bottom: .06em; height: .26em; z-index: -1;
  background: var(--green); opacity: .28; border-radius: 6px;
  transform: scaleX(0); transform-origin: left; animation: hl-in .9s .5s var(--ease) forwards;
}
@keyframes hl-in { to { transform: scaleX(1); } }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); margin-top: 22px; max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-media {
  position: absolute; z-index: 2;
  right: 0; top: 50%;
  width: min(64vw, 1240px);
  transform: translateY(-44%);
}
.hero-frame {
  position: relative; aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(0deg, transparent 0, #000 14%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(0deg, transparent 0, #000 14%, #000 92%, transparent);
  mask-composite: intersect;
}
.hero-video, .hero-eyes { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { background: var(--hero-bg) url('../assets/img/hero-poster.webp') center / cover no-repeat; }
.hero-eyes { pointer-events: none; }
.eye { transition: opacity .07s linear; }
.eye.is-hidden { opacity: 0; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(16, 28, 44, .25);
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green-dark); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- Seções ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section.dark { background: var(--navy); color: var(--off); }
.section.light { background: var(--off); }
.section-head { max-width: 680px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head h2, .about-copy h2 { font-size: clamp(32px, 3.9vw, 52px); font-weight: 700; }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--muted); }
.dark .section-sub { color: var(--muted-dark); }
.dark .eyebrow { color: var(--green); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
  border-radius: var(--radius); padding: 30px 28px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, background-color .4s;
}
.card h3 { font-size: 21px; font-weight: 700; margin: 22px 0 10px; }
.card p { font-size: 16px; }
.card-dark { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .06); }
.card-dark p { color: var(--muted-dark); }
.card-dark:hover { transform: translateY(-6px); border-color: rgba(32, 200, 120, .45); box-shadow: 0 24px 50px -24px rgba(32, 200, 120, .45); }
.card-light { background: var(--paper); border: 1px solid rgba(16, 28, 44, .07); box-shadow: 0 2px 0 rgba(16, 28, 44, .02); }
.card-light p { color: var(--muted); }
.card-light:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(16, 28, 44, .35); border-color: rgba(32, 200, 120, .5); }

.icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(32, 200, 120, .12); color: var(--green);
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-light { background: rgba(32, 200, 120, .14); color: var(--green-dark); }
.card:hover .icon { transform: rotate(-8deg) scale(1.08); background: var(--green); color: var(--navy); }

/* ---------- Revelação ao rolar ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(var(--rx, 0), var(--ry, 36px), 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal].is-in.card { transition: opacity .9s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; transition-delay: var(--rd, 0s), 0s, 0s, 0s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Catálogo ---------- */
.catalog-section { overflow: hidden; }
.catalog {
  padding: 28px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.catalog-wrap { position: relative; z-index: 2; }
.catalog { touch-action: pan-y; cursor: grab; }
.catalog.is-dragging { cursor: grabbing; }
.catalog-track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.cat-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-2); color: var(--green);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.cat-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cat-arrow:hover { background: var(--green); color: var(--navy); transform: translateY(-50%) scale(1.08); }
.cat-arrow:active { transform: translateY(-50%) scale(.94); }
.cat-prev { left: clamp(10px, 2.5vw, 36px); }
.cat-next { right: clamp(10px, 2.5vw, 36px); }
.cat-prev:hover svg { animation: nudge-l .6s var(--ease); }
.cat-next:hover svg { animation: nudge-r .6s var(--ease); }
@keyframes nudge-l { 40% { transform: translateX(-4px); } }
@keyframes nudge-r { 40% { transform: translateX(4px); } }

.tile {
  position: relative; flex: none;
  width: clamp(250px, 25vw, 360px); aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--navy-3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  text-align: left;
}
.tile:hover, .tile:focus-visible { transform: scale(1.07); z-index: 2; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 2px var(--green); }
.tile img, .tile .gen-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile-info {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(8, 14, 24, .92), transparent);
  transform: translateY(8px); opacity: .0; transition: opacity .35s, transform .35s var(--ease);
}
.tile:hover .tile-info, .tile:focus-visible .tile-info { opacity: 1; transform: none; }
.tile-info strong { display: block; font-family: var(--font-display); font-size: 18px; color: #fff; }
.tile-info span { font-size: 13px; color: var(--green); font-weight: 600; letter-spacing: .04em; }

/* Capa gerada pra projetos que ainda não têm imagem */
.gen-cover {
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 55%, #0b1320) 100%);
  color: #fff; overflow: hidden;
}
.gen-cover .gc-bar { display: flex; gap: 5px; padding: 10px 12px; background: rgba(0, 0, 0, .18); }
.gen-cover .gc-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.gen-cover .gc-body { flex: 1; padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; position: relative; }
.gen-cover .gc-kicker { font-size: .72em; letter-spacing: .16em; text-transform: uppercase; color: var(--c2); font-weight: 600; }
.gen-cover .gc-title { font-family: var(--font-display); font-weight: 800; font-size: 2.1em; line-height: 1; letter-spacing: -.03em; margin-top: .25em; }
.gen-cover .gc-lines { margin-top: 1em; display: grid; gap: .45em; width: 55%; }
.gen-cover .gc-lines i { height: .42em; border-radius: 1em; background: rgba(255, 255, 255, .28); }
.gen-cover .gc-lines i:last-child { width: 60%; }
.gen-cover .gc-flag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: rgba(8, 14, 24, .55); color: rgba(255, 255, 255, .85);
}
.viewer-cover .gen-cover .gc-flag { font-size: 13px; left: 16px; bottom: auto; top: 16px; }
.gen-cover { position: relative; }
.gen-cover .gc-orb { position: absolute; right: -8%; bottom: -22%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); opacity: .9; }
.gen-cover .gc-orb::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: .5em solid rgba(255, 255, 255, .35); }
.tile .gen-cover { font-size: clamp(11px, 1.05vw, 15px); }

/* ---------- Capa expandida ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.viewer[hidden] { display: none; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(6, 11, 19, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-card {
  position: relative; width: min(900px, 100%, max(340px, calc((100vh - 320px) * 1.6))); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--navy-2); color: var(--off);
  border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
  transform-origin: top left;
}
.viewer-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-3); }
.viewer-cover img, .viewer-cover .gen-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.viewer-cover .gen-cover { font-size: clamp(14px, 2.4vw, 28px); }
.viewer-cover::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, var(--navy-2), transparent); }
.viewer-body { padding: 4px 36px 36px; margin-top: -48px; position: relative; }
.viewer-tag { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.viewer-body h3 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 8px 0 12px; }
.viewer-body p:not(.viewer-tag) { color: var(--muted-dark); max-width: 600px; margin-bottom: 26px; }
.viewer-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 28, 44, .72); color: #fff; transition: background-color .2s, transform .3s var(--ease);
}
.viewer-x:hover { background: var(--green); color: var(--navy); transform: rotate(90deg); }
.viewer-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.viewer-body > *, .viewer-x { transition: opacity .3s; }
.viewer.is-morphing .viewer-body > *, .viewer.is-morphing .viewer-x { opacity: 0; }
body.lock { overflow: hidden; }

/* ---------- Sobre ---------- */
.about-grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-slot { aspect-ratio: 1; width: 100%; }
.about-blob {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 30% 25%, #6CF0B0, var(--green) 55%, var(--green-dark));
  display: grid; place-items: center; align-content: center; gap: 18px;
  animation: blob 12s ease-in-out infinite alternate;
  box-shadow: 0 40px 80px -40px rgba(11, 143, 85, .7);
  container-type: size;
  cursor: pointer;
}
/* A bolha só vira cortina quando o JS está ativo; sem ele, fica no lugar e o texto aparece */
.no-js .about-blob { position: static; aspect-ratio: 1; grid-column: 1; grid-row: 1; }
.about-grid.is-animated .about-blob {
  transition: left 1s cubic-bezier(.55, -.25, .2, 1.2), top 1s cubic-bezier(.55, -.25, .2, 1.2),
    width 1s cubic-bezier(.55, -.25, .2, 1.2), height 1s cubic-bezier(.55, -.25, .2, 1.2), box-shadow .6s;
}
.about-blob:hover { box-shadow: 0 50px 90px -40px rgba(11, 143, 85, .9); }
@keyframes blob { to { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; } }
.about-mark { width: auto; height: 240px; height: min(56cqmin, 300px); aspect-ratio: 100 / 112; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(16, 28, 44, .25)); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
.about-hint {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy);
  padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .55);
  transition: opacity .3s, transform .4s var(--ease);
  animation: hint-pulse 2.2s ease-in-out infinite;
}
@keyframes hint-pulse { 50% { transform: scale(1.06); } }
.about-grid.is-open .about-hint { opacity: 0; transform: scale(.8); animation: none; position: absolute; }
.about-grid:not(.is-open) .about-blob:active { transform: scale(.985); }
.about-copy { transition: opacity .6s .45s, transform .8s .45s var(--ease); }
.about-grid.js-ready:not(.is-open) .about-copy { opacity: 0; transform: translateX(40px); transition: opacity .25s, transform .25s; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about-copy p:not(.eyebrow) { color: var(--muted); margin-top: 20px; font-size: 18px; }
.traits { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.traits li {
  padding: 8px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  background: var(--paper); border: 1px solid rgba(16, 28, 44, .1); transition: background-color .25s, color .25s, transform .3s var(--ease);
}
.traits li:hover { background: var(--navy); color: var(--green); transform: translateY(-3px) rotate(-2deg); }

/* ---------- CTA ---------- */
.cta-section { background: var(--off); padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--navy);
  border-radius: 32px; padding: clamp(40px, 6vw, 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-card::before {
  content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .16); pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; }
.cta-card p { margin-top: 14px; font-size: 18px; max-width: 520px; color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-dark); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: start; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: var(--green); }
.footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; font-variant-numeric: tabular-nums; }
.footer-contact a { color: var(--off); font-weight: 500; transition: color .2s; }
.footer-contact a:hover { color: var(--green); }
.footer-note { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }

/* ---------- Besourinho andarilho ---------- */
.bug-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; }
.wander-bug { position: absolute; left: 0; top: 0; width: 20px; height: 24px; margin: -12px 0 0 -10px; will-change: transform; opacity: 0; transition: opacity .6s; }
.wander-bug.on { opacity: 1; }
.wander-bug svg { width: 100%; height: 100%; overflow: visible; }
.wander-bug .legs-a, .wander-bug .legs-b { transform-origin: 10px 13px; }
.wander-bug.walking .legs-a { animation: legs var(--step, .22s) ease-in-out infinite alternate; }
.wander-bug.walking .legs-b { animation: legs var(--step, .22s) ease-in-out infinite alternate-reverse; }
@keyframes legs { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.wander-bug .antenna { transform-origin: 10px 6px; animation: antenna 1.6s ease-in-out infinite alternate; }
@keyframes antenna { to { transform: rotate(6deg); } }
/* Assustado: antenas deitam pra trás e o corpo dá uma encolhida */
.wander-bug svg { transition: transform .2s; }
.wander-bug.scared svg { transform: scale(.9, 1.08); }
.wander-bug.scared .antenna { animation: none; transform: scaleY(.55) translateY(4px); transition: transform .15s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { width: 72vw; transform: translateY(-40%); }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--off); padding: 8px 24px 24px;
    box-shadow: 0 20px 40px -20px rgba(16, 28, 44, .25);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .nav a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(16, 28, 44, .07); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; min-height: 52px; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--off); }
  .nav-toggle { display: block; }

  .hero { display: block; min-height: 0; padding: calc(var(--header-h) + 28px) 0 0; }
  .hero-copy { max-width: none; }
  .hero-media { position: relative; right: auto; top: auto; width: 100%; transform: none; margin-top: 8px; }
  .hero-frame {
    aspect-ratio: 1 / 1; max-width: 620px; margin-inline: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent);
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent);
  }
  .hero-video { background-image: url('../assets/img/hero-poster-sq.webp'); }
  .scroll-hint { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 320px; width: 100%; }
  .about-hint { font-size: 15px; }
  .cat-arrow { width: 46px; height: 46px; }
  .cat-arrow svg { width: 22px; height: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .viewer-body { padding: 0 22px 26px; margin-top: -30px; }
}
@media (max-width: 560px) {
  .container, .hero-grid { width: calc(100% - 32px); }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .card { padding: 26px 22px 28px; }
  .tile { width: 72vw; }
  .viewer { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .bug-layer { display: none; }
}
