/* ==========================================================================
   WRO — estilos do site
   Layout "vitrine": barra fina, tipografia grande e centralizada, blocos de
   produto em tela cheia com a cor de cada projeto, prateleiras horizontais.
   Tokens no topo; tema claro/escuro automático (ou forçado por data-theme).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #101114;
  --muted: #6b6e76;
  --line: #e3e3e6;
  --accent: #5b3df5;
  --device: #101114;
  --shadow: 0 2px 4px rgba(16, 17, 20, .05), 0 24px 48px -20px rgba(16, 17, 20, .28);

  --saas: #0e8f9a;
  --apps: #5b3df5;
  --games: #e8590c;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 3vw, 28px);
  --nav-h: 52px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #000000;
    --bg-alt: #0d0d10;
    --surface: #17171b;
    --ink: #f5f5f7;
    --muted: #8e9099;
    --line: #26262c;
    --accent: #a394ff;
    --device: #050506;
    --shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
    --saas: #3cc4cf;
    --apps: #a394ff;
    --games: #ff8a4c;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #000000;
  --bg-alt: #0d0d10;
  --surface: #17171b;
  --ink: #f5f5f7;
  --muted: #8e9099;
  --line: #26262c;
  --accent: #a394ff;
  --device: #050506;
  --shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
  --saas: #3cc4cf;
  --apps: #a394ff;
  --games: #ff8a4c;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font-body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--muted)); }
[data-cat='saas'] { --c: var(--saas); }
[data-cat='apps'] { --c: var(--apps); }
[data-cat='games'] { --c: var(--games); }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; justify-self: start; color: var(--ink); }
.brand svg { height: 20px; width: auto; max-width: none; flex: none; }
@media (max-width: 520px) {
  .nav .wrap { grid-template-columns: auto 1fr auto; }
  .nav-links { justify-content: center; }
}
.brand .dot { fill: var(--accent); }
.nav-links { display: flex; gap: clamp(2px, 2vw, 22px); }
.nav-links a { padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a[aria-current='page'] { font-weight: 600; }
.theme-toggle {
  justify-self: end; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); display: grid; place-items: center; transition: color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--bg-alt); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  font: 500 16px/1 var(--font-body); border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .2s var(--ease), opacity .2s;
}
.btn:hover { transform: scale(1.03); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.textlink { color: var(--accent); font-weight: 500; }
.textlink::after { content: ' ›'; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; overflow: clip; }
.hero-mark { width: 68px; height: 68px; margin: 0 auto 28px; border-radius: 16px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(46px, 9vw, 112px); }
.hero h1 .swap { display: inline-block; color: var(--accent); transition: opacity .35s, transform .35s var(--ease); }
.hero h1 .swap.out { opacity: 0; transform: translateY(.18em); }
.hero .lead { font-size: clamp(19px, 2.2vw, 26px); color: var(--muted); max-width: 26em; margin: 22px auto 30px; line-height: 1.35; }
.hero .btn-row { justify-content: center; align-items: center; gap: 22px; }

/* leque de aparelhos: abre conforme a página rola (--p vai de 0 a 1) */
.fan {
  --p: .35; --dw: clamp(150px, 19vw, 250px);
  position: relative; height: calc(var(--dw) * 1.62); margin-top: clamp(44px, 6vw, 80px);
}
.fan .device {
  position: absolute; left: 50%; top: calc(var(--dw) * .16); width: var(--dw); z-index: calc(5 - var(--a));
  transform:
    translateX(-50%)
    translateX(calc(var(--i) * var(--dw) * (.5 + .46 * var(--p))))
    translateY(calc(var(--a) * var(--a) * var(--dw) * (.03 + .035 * var(--p))))
    rotate(calc(var(--i) * (2.5deg + 4deg * var(--p))))
    scale(calc(1 - var(--a) * .05));
  transform-origin: 50% 100%;
  will-change: transform;
}

/* --------------------------------------------------------------- devices */
/* moldura de Android topo de linha: aro de titânio, borda fina, cantos mais retos,
   câmera em furo central e botões só do lado direito */
.device {
  --bezel: 3px; --ring: 2px; --r: 17px;
  position: relative; padding: calc(var(--bezel) + var(--ring)); border-radius: var(--r);
  background:
    linear-gradient(#050506, #050506) content-box,
    linear-gradient(135deg, #8d8f97, #3b3c42 30%, #1c1c20 50%, #55565e 72%, #9a9ca4);
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow), inset 0 0 0 var(--ring) rgba(255, 255, 255, .08), inset 0 0 0 calc(var(--ring) + 1px) #000;
}
.device::after {            /* borda preta entre o aro e a tela */
  content: ''; position: absolute; inset: var(--ring); border-radius: calc(var(--r) - var(--ring));
  box-shadow: inset 0 0 0 var(--bezel) #050506; pointer-events: none;
}
.device::before {           /* botões à direita: volume (longo) e liga/desliga */
  content: ''; position: absolute; top: 20%; bottom: 52%; right: -2px; width: 3px; z-index: -1; border-radius: 2px;
  background:
    linear-gradient(#55565e, #55565e) 0 0 / 100% 56% no-repeat,
    linear-gradient(#55565e, #55565e) 0 100% / 100% 30% no-repeat;
}
.device img {
  position: relative; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #222;
  border-radius: calc(var(--r) - var(--bezel) - var(--ring));
}
/* capturas de tela cheia: a imagem já traz no topo a faixa da barra de status (412×951) */
.device.tall img { aspect-ratio: 412 / 951; }
.device { container-type: inline-size; }
.device .bar {              /* hora à esquerda, bateria à direita; a cor se inverte conforme o fundo */
  position: absolute; z-index: 2; top: calc(var(--bezel) + var(--ring)); left: calc(var(--bezel) + var(--ring)); right: calc(var(--bezel) + var(--ring));
  display: flex; align-items: center; justify-content: space-between; aspect-ratio: 412 / 36;
  padding: 0 7cqw; font: 600 3.4cqw/1 var(--font-body); font-style: normal; color: #fff; mix-blend-mode: difference;
}
.device .bar::before { content: '9:30'; }
.device .bar::after { content: ''; width: 6cqw; height: 2.8cqw; border-radius: .8cqw; background: currentColor; opacity: .85; }
.device .cam {              /* câmera frontal em furo */
  position: absolute; z-index: 2; top: calc(var(--bezel) + var(--ring) + 1.7cqw); left: 50%; width: 5.4cqw; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.device.lg { --bezel: 5px; --ring: 3px; --r: 28px; }
/* aparelho deitado (jogos em paisagem): câmera na lateral esquerda, botões na borda de cima */
.device.land img { aspect-ratio: 915 / 412; }
.device.land .cam { top: 50%; left: calc(var(--bezel) + var(--ring) + 1cqw); width: 2.4cqw; transform: translateY(-50%); }
.device.land::before {
  top: -2px; bottom: auto; left: 20%; right: 52%; width: auto; height: 3px;
  background:
    linear-gradient(#55565e, #55565e) 0 0 / 56% 100% no-repeat,
    linear-gradient(#55565e, #55565e) 100% 0 / 30% 100% no-repeat;
}
.screen { background: var(--device); border-radius: 14px; padding: 22px 6px 6px; position: relative; box-shadow: var(--shadow); }
.screen::before {
  content: ''; position: absolute; top: 8px; left: 12px; width: 6px; height: 6px; border-radius: 50%;
  background: #5a5d66; box-shadow: 11px 0 0 #5a5d66, 22px 0 0 #5a5d66;
}
.screen img { width: 100%; border-radius: 8px; background: #222; }

/* ----------------------------------------------------------------- tiles */
/* bloco de produto: fundo na cor do projeto, texto no topo, aparelho subindo de baixo */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 14px; max-width: 1680px; margin: 0 auto; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); height: clamp(500px, 46vw, 640px);
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; isolation: isolate;
  background:
    radial-gradient(90% 60% at 50% 100%, color-mix(in oklab, var(--tint) 85%, #fff 15%), transparent 70%),
    linear-gradient(180deg, color-mix(in oklab, var(--tint) 42%, #06060a), color-mix(in oklab, var(--tint) 78%, #06060a));
}
.tile.wide { grid-column: 1 / -1; height: clamp(540px, 52vw, 720px); }
.tile-text { padding: clamp(32px, 4vw, 52px) 24px 0; max-width: 34em; }
.tile-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .72; display: inline-flex; gap: 8px; align-items: center; }
.tile-eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.tile h3 { font-size: clamp(30px, 3.6vw, 52px); margin: 10px 0 8px; }
.tile.wide h3 { font-size: clamp(36px, 5.4vw, 72px); }
.tile p { font-size: clamp(16px, 1.5vw, 20px); opacity: .82; line-height: 1.35; }
.tile-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pill {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; background: #fff; color: #101114; transition: transform .2s var(--ease);
}
.pill.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.pill:hover { transform: scale(1.05); }
.tile-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile-media {
  flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-start;
  padding-top: clamp(22px, 3vw, 40px); transition: transform .7s var(--ease);
}
.tile:hover .tile-media { transform: translateY(-10px); }
.tile-media .device { width: clamp(170px, 17vw, 230px); flex: none; }
.tile.wide .tile-media .device { width: clamp(170px, 19vw, 260px); }
.tile-media .device:nth-child(2) { order: -1; transform: translate(18%, 12%) rotate(-7deg) scale(.9); }
.tile-media .device:nth-child(1) { z-index: 2; }
.tile-media .device:nth-child(3) { transform: translate(-18%, 12%) rotate(7deg) scale(.9); }
.tile-media .screen { width: min(86%, 760px); }
.tile-media img.cover { width: min(80%, 560px); border-radius: 26px 26px 0 0; box-shadow: var(--shadow); }
.tile.wide .tile-media img.cover { width: min(70%, 620px); }
.tile-media .mono {
  font: 800 clamp(160px, 22vw, 320px)/.9 var(--font-display); letter-spacing: -.06em; color: #fff; opacity: .16; align-self: center;
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .tile, .tile.wide { height: 540px; }
  .tile.wide .tile-media .device:nth-child(n+2) { display: none; }
}

/* ---------------------------------------------------------------- seções */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }
.headline { font-size: clamp(34px, 5.4vw, 68px); }
.headline span { color: var(--muted); }
.sub { font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); max-width: 30em; margin-top: 14px; line-height: 1.4; }
.center .sub { margin-inline: auto; }

/* ---------------------------------------------------- prateleira (shelf) */
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.shelf-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.shelf-head h2 span { color: var(--muted); }
.shelf-nav { display: flex; gap: 8px; flex: none; }
.shelf-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px; line-height: 1;
  background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); transition: background .2s, opacity .2s;
}
.shelf-nav button:hover { background: color-mix(in srgb, var(--ink) 17%, transparent); }
.shelf-nav button:disabled { opacity: .3; cursor: default; }
.shelf {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 26px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.shelf::-webkit-scrollbar { display: none; }
.shelf + .shelf-more { margin-top: 4px; }
.card {
  flex: none; width: clamp(240px, 26vw, 310px); scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 46%, #06060a), color-mix(in oklab, var(--tint) 82%, #06060a));
}
.card-media .device { position: absolute; top: 13%; left: 50%; width: 46%; transform: translateX(-50%); transition: transform .5s var(--ease); }
.card:hover .card-media .device { transform: translateX(-50%) translateY(-5%); }
.card-media .screen { width: 84%; }
.card-media > img.cover { width: 100%; height: 100%; object-fit: cover; }
.card-media .mono { font: 800 120px/1 var(--font-display); letter-spacing: -.05em; color: #fff; opacity: .2; }
.card-body { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 20px; }
.card-body h3 { font: 600 17px/1.25 var(--font-body); letter-spacing: -.01em; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 3px; }
.card-status { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.card-status.live { color: #16a34a; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.app-icon.fallback { display: grid; place-items: center; font: 800 18px/1 var(--font-display); color: #fff; background: var(--tint); box-shadow: none; }

/* ------------------------------------------------------ página categoria */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.page-head h1 { font-size: clamp(48px, 9vw, 112px); margin: 14px 0 0; }
.page-head .sub { margin-inline: auto; }
.tabs {
  display: inline-flex; gap: 4px; margin-top: 34px; padding: 4px; border-radius: 999px; background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tabs a { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { background: var(--ink); color: var(--bg); }
.tabs a small { font-size: 12px; opacity: .6; margin-left: 4px; }
.empty { margin: 14px; padding: 80px 24px; text-align: center; border-radius: var(--radius); background: var(--bg-alt); color: var(--muted); }

/* -------------------------------------------------------- página projeto */
.localbar {
  position: sticky; top: var(--nav-h); z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
}
.localbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 54px; }
.localbar .name { font: 700 19px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.localbar .right { display: flex; align-items: center; gap: 16px; flex: none; }
.localbar .back { font-size: 13px; color: var(--muted); }
.localbar .back:hover { color: var(--ink); }
@media (max-width: 520px) { .localbar .back { display: none; } }

.project-head { padding: clamp(48px, 7vw, 96px) 0 0; text-align: center; }
.project-head .app-icon { width: 96px; height: 96px; border-radius: 23px; margin: 0 auto 26px; font-size: 40px; box-shadow: var(--shadow); }
.project-head h1 { font-size: clamp(44px, 8vw, 104px); margin-top: 12px; }
.project-head .tagline { font-size: clamp(20px, 2.4vw, 28px); color: var(--muted); max-width: 24em; margin: 20px auto 30px; line-height: 1.3; }

.stage {
  margin: clamp(40px, 6vw, 72px) 14px 0; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 100%, color-mix(in oklab, var(--tint) 85%, #fff 15%), transparent 70%),
    linear-gradient(180deg, color-mix(in oklab, var(--tint) 42%, #06060a), color-mix(in oklab, var(--tint) 78%, #06060a));
}
.gallery { display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 64px); scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: none; scroll-snap-align: center; }
.gallery > :first-child { margin-left: auto; }
.gallery > :last-child { margin-right: auto; }
.gallery .device { width: min(260px, 62vw); }
.gallery .screen { width: min(720px, 82vw); align-self: center; }
.gallery img.plain { height: min(560px, 68vh); width: auto; border-radius: 22px; box-shadow: var(--shadow); }
.stage .mono { display: block; text-align: center; padding: 60px 0; font: 800 clamp(160px, 26vw, 340px)/1 var(--font-display); letter-spacing: -.06em; color: #fff; opacity: .16; }

.about { font: 600 clamp(24px, 3.4vw, 44px)/1.2 var(--font-display); letter-spacing: -.02em; max-width: 22em; margin: 0 auto; text-align: center; text-wrap: balance; }
.specs { display: flex; justify-content: center; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.specs div { flex: 1 1 180px; padding: 26px 20px; text-align: center; }
.specs div + div { border-left: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.specs dd { margin: 0; font: 700 20px/1.25 var(--font-display); letter-spacing: -.01em; }
@media (max-width: 620px) { .specs div + div { border-left: 0; border-top: 1px solid var(--line); } .specs div { flex-basis: 100%; } }

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 40px; }
.bento li {
  list-style: none; min-height: 170px; padding: 26px; border-radius: 24px; background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  font: 700 clamp(22px, 2.2vw, 28px)/1.12 var(--font-display); letter-spacing: -.02em;
}
.bento { padding: 0; }
.bento li::before { content: counter(b, decimal-leading-zero); counter-increment: b; font: 600 13px/1 var(--font-body); letter-spacing: .08em; color: var(--tint-ink, var(--accent)); }
.bento { counter-reset: b; }
.bento li:first-child { background: var(--ink); color: var(--bg); }
.bento li:first-child::before { color: inherit; opacity: .6; }

/* --------------------------------------------------------------- contato */
.contact { padding: 14px; }
.contact-in {
  border-radius: var(--radius); padding: clamp(56px, 9vw, 128px) 24px; text-align: center; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(70% 90% at 50% 110%, #5b3df5, transparent 70%), #0b0b10;
}
.contact h2 { font-size: clamp(38px, 7vw, 92px); max-width: 11em; margin: 0 auto; }
.contact p { font-size: clamp(18px, 1.8vw, 22px); opacity: .75; max-width: 26em; margin: 20px auto 32px; }
.contact .btn { background: #fff; color: #101114; border-color: #fff; }

.site-footer { padding: 28px 0 36px; font-size: 12px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.site-footer .left { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 24px; height: 24px; border-radius: 6px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------- animações */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .hero > .wrap > * { animation: rise .9s var(--ease) both; }
  .hero > .wrap > :nth-child(2) { animation-delay: .08s; }
  .hero > .wrap > :nth-child(3) { animation-delay: .16s; }
  .hero > .wrap > :nth-child(4) { animation-delay: .24s; }
  .fan { animation: rise 1.1s .3s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------- contato (formulários) */
.btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.contact .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.contact-forms { padding: 0 var(--gutter) clamp(56px, 8vw, 104px); }
.form-card {
  max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border-radius: var(--radius);
  background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 600; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 400 16px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field .err { font-size: 13px; color: #dc2626; min-height: 0; }
.field .err:empty { display: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span {
  display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip-radio span:hover { border-color: var(--ink); }
.chip-radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px;
  background: color-mix(in srgb, #dc2626 12%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, #dc2626 45%, transparent); }
.form-foot { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: 13px; flex: 1 1 220px; }
.form-foot .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-done { text-align: center; padding: clamp(24px, 5vw, 56px) 0; }
.form-done .check { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; color: #fff; background: #16a34a; }
.form-done h2 { font-size: clamp(30px, 4vw, 44px); }
.form-done p { color: var(--muted); margin: 12px 0 26px; }
.form-alt { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.tabs a { cursor: pointer; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }

/* menu no celular: cabe marca + 4 links + botão de tema */
@media (max-width: 520px) {
  .nav .wrap { gap: 6px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 7px; }
}

/* ------------------------- galeria do projeto: setas, pontos e arraste */
.stage { position: relative; }
.stage.scrollable .gallery { cursor: grab; padding-bottom: clamp(52px, 7vw, 92px); }
.stage.scrollable .gallery > :first-child { margin-left: 0; }
.stage.scrollable .gallery > :last-child { margin-right: 0; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery.dragging * { pointer-events: none; }
.gal-btn {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: #101114; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .2s var(--ease), opacity .2s;
}
.gal-btn[hidden] { display: none; }
.gal-btn.prev { left: clamp(10px, 2vw, 24px); }
.gal-btn.next { right: clamp(10px, 2vw, 24px); }
.gal-btn:hover { transform: translateY(-50%) scale(1.08); }
.gal-btn:disabled { opacity: 0; pointer-events: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: clamp(18px, 2.6vw, 34px); display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.gal-dots[hidden] { display: none; }
.gal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .35; transition: opacity .25s, width .25s; }
.gal-dots i.on { opacity: 1; width: 22px; border-radius: 999px; }
@media (max-width: 620px) { .gal-btn { width: 42px; height: 42px; font-size: 22px; } }

/* esteira sem fim: o encaixe é feito pela animação do site.js */
.stage.loop .gallery { scroll-snap-type: none; }

/* capas alinhadas: o site.js mede o maior texto e todos os blocos lado a lado usam essa altura */
@media (min-width: 761px) { .tile:not(.wide) .tile-text { min-height: var(--tile-text, 0); } }

/* capa com três aparelhos em bloco normal (coverShots: 3): aparelhos um pouco menores para caber */
.tile-media.trio .device { width: clamp(132px, 12.6vw, 196px); }
@media (max-width: 760px) { .tile-media.trio .device:nth-child(n+2) { display: none; } }

/* aparelho deitado nos blocos, cartões e galeria */
.tile-media .device.land, .tile.wide .tile-media .device.land { width: min(88%, 640px); align-self: center; }
.card-media .device.land { position: relative; top: auto; left: auto; width: 86%; transform: none; }
.card:hover .card-media .device.land { transform: translateY(-4%); }
.gallery .device.land { width: min(620px, 84vw); align-self: center; }

/* texto de apresentação no fim das páginas de área */
.prose { max-width: 44em; margin: 28px auto 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; text-align: center; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.headline.mid { text-align: center; }
