/* ==========================================================================
   DevGenius — folha de estilos

   Direção de arte
   - A marca nasce do logotipo: "DEVGENIUS" + um ponto final azul e quadrado.
     Esse ponto (.mark) é o único elemento gráfico recorrente do site.
   - Tipografia como imagem: Archivo variável (largura e peso) em títulos
     grandes e condensados; JetBrains Mono só para dados técnicos.
   - Cantos retos, linhas finas de 1px e azul chapado, sem gradientes de cor.
   - Ritmo por faixas: escuro (hero) → claro (sobre) → escuro (soluções,
     projetos, parceiros) → azul (contato) → escuro (rodapé).

   Sumário
   1. Tokens   2. Base   3. Componentes   4. Navegação   5. Hero
   6. Sobre    7. Soluções   8. Projetos e diálogo   9. Parceiros
   10. Contato   11. Rodapé   12. Animações   13. Responsividade
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  color-scheme: dark;
  /* Fundo e texto (trocam entre temas escuros e claros) */
  --ink: #07090E;
  --ink-2: #0D1220;
  --ink-3: #121828;
  --ink-alt: #0A0D16;
  --text: #FFFFFF;
  --muted: #A4A9B8;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  /* Faixa de contraste da seção "Sobre" */
  --paper: #EDEFF2;
  --paper-ink: #0A0D14;
  --paper-muted: #4A5060;
  --paper-line: rgba(10, 13, 20, .16);
  /* Cor de destaque (azul ou verde). --blue é o preenchimento;
     --accent-text e --blue-ink são versões legíveis como texto. */
  --blue: #438CFF;
  --accent-text: #438CFF;
  --blue-ink: #2D6AE0;
  --on-accent: #07090E;
  --tag-text: #8CB9FF;
  --img-filter: contrast(1);
  --cyan: #00C8FF;
  --danger: #FF7A85;
  --logo-green: #A9FA0B;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1280px;
  --gutter: max(5vw, 16px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}


/* Temas: "<cor>-<fundo>". O padrão (azul e preto) está em :root. */
:root[data-theme$="-light"] {
  color-scheme: light;
  --ink: #FFFFFF;
  --ink-2: #F1F3F6;
  --ink-3: #E7EBF0;
  --ink-alt: #F6F7F9;
  --text: #07090E;
  --muted: #4A5060;
  --line: rgba(7, 9, 14, .12);
  --line-2: rgba(7, 9, 14, .24);
  --paper: #0D1220;
  --paper-ink: #FFFFFF;
  --paper-muted: #A4A9B8;
  --paper-line: rgba(255, 255, 255, .16);
  --danger: #C8323F;
}
:root[data-theme="blue-light"] { --accent-text: #2D6AE0; --blue-ink: #6FA6FF; --tag-text: #2D6AE0; }
:root[data-theme^="green"] {
  --blue: #A9FA0B;
  --accent-text: #A9FA0B;
  --blue-ink: #4B7A00;
  --tag-text: #C8FF5C;
  --img-filter: url(#f-green);
  --cyan: #D6FF3D;
}
:root[data-theme="green-dark"] {
  --ink: #031817;
  --ink-2: #072321;
  --ink-3: #0B2D2A;
  --ink-alt: #041D1B;
  --scene-base: #072321;
}
:root[data-theme="green-light"] { --accent-text: #4B7A00; --blue-ink: #A9FA0B; --tag-text: #4B7A00; }

/* Os logotipos dos parceiros são brancos: a faixa continua escura nos temas claros. */
:root[data-theme$="-light"] .partners {
  --ink: #07090E;
  --ink-2: #0D1220;
  --text: #FFFFFF;
  --muted: #A4A9B8;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --accent-text: var(--blue);
  color: var(--text);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-variation-settings: "wdth" 100;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
html.is-theming, html.is-theming *, html.is-theming *::before, html.is-theming *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; line-height: 1; }

::selection { background: var(--blue); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero__title:focus { outline: none; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }

/* 3. Componentes -------------------------------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.05em; height: 1.05em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: fixed;
  top: -80px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* O ponto do logotipo, usado como marcador da marca */
.mark { display: inline-block; width: .5em; height: .5em; background: var(--blue); flex: none; }

.section { position: relative; padding-block: clamp(96px, 12vw, 176px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.section-label .mark { font-size: 18px; }

.section-title {
  font-size: clamp(40px, 6.2vw, 96px);
  font-weight: 760;
  font-variation-settings: "wdth" 84;
  line-height: .94;
  letter-spacing: -.035em;
}
.section-intro { color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 46ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 0 22px 0 24px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn .icon { transition: transform .45s var(--ease); }
.btn:hover .icon { transform: translateX(5px); }
.btn--primary { background: var(--blue); color: var(--on-accent); }
.btn--primary:hover { background: var(--text); color: var(--ink); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { color: var(--accent-text); background-size: 0 1px; background-position: 100% 100%; }
.link-arrow .icon { transition: transform .45s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--muted);
  font: 500 12px/1.2 var(--mono);
  white-space: nowrap;
}
.tag--real { border-color: var(--blue); color: var(--tag-text); }

.tech-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-list li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font: 400 12.5px/1.3 var(--mono); }

.note { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.note .icon { margin-top: 3px; color: var(--accent-text); }
.note strong { color: var(--text); font-weight: 600; }

/* 4. Navegação ---------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 20px;
  font-weight: 850;
  font-variation-settings: "wdth" 118;
  letter-spacing: .02em;
  white-space: nowrap;
}
.logo { align-items: center; gap: 12px; }
.logo__mark { width: 34px; height: 34px; border-radius: 6px; flex: none; }
.logo__text { line-height: 1; }

.nav__menu { position: relative; margin-left: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__indicator {
  position: absolute;
  left: 0; bottom: 2px;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
  pointer-events: none;
}
.nav__indicator.is-visible { opacity: 1; }

.nav__cta {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav__cta:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px) max(var(--gutter), 20px) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: block;
  padding: 12px 0;
  font-size: clamp(34px, 10vw, 56px);
  font-weight: 760;
  font-variation-settings: "wdth" 84;
  letter-spacing: -.03em;
  line-height: 1;
  transform: translateY(105%);
  transition: transform .7s var(--ease), color .3s;
}
.mobile-menu li a:hover, .mobile-menu li a.is-active { color: var(--accent-text); }
.mobile-menu.is-open li a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--muted); font-size: 15px; }
.mobile-menu__footer a { color: var(--text); }

/* 5. Hero --------------------------------------------------------------- */
.hero {
  --h1: clamp(52px, 9.2vw, 150px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(min(100svh, 1000px), 680px);
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 28px);
  padding-bottom: 36px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 45% 55% at 78% 52%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%),
    var(--ink);
}
.hero__stage { position: relative; flex: 1; display: flex; flex-direction: column; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.hero__kicker .mark { font-size: 16px; }

.hero__title {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  font-size: var(--h1);
  font-weight: 800;
  font-variation-settings: "wdth" 82;
  line-height: .9;
  letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__title .line > span { display: inline-block; }
.hero__accent { color: var(--accent-text); }

/* Objeto 3D posicionado na altura da 2ª linha, entrelaçado com o título */
.hero__visual {
  position: absolute;
  z-index: 0;
  right: calc(var(--h1) * -.35);
  bottom: calc(var(--h1) * -.1);
  width: calc(var(--h1) * 4.6);
  max-width: 62vw;
  aspect-ratio: 1;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__visual { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hero__visual.is-dragging { cursor: grabbing; }
.hero__visual:focus-visible { outline: 2px dashed var(--blue); outline-offset: -12%; border-radius: 50%; }
/* O título passa por cima do objeto: só as palavras recebem clique. */
.hero__title, .hero__title .line { pointer-events: none; }
.hero__title .line > span { pointer-events: auto; }
.hero__hint {
  position: absolute;
  left: 50%; bottom: 14%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__hint::before { content: "↔"; color: var(--accent-text); }
.hero__visual.was-dragged .hero__hint { opacity: 0; transform: translate(-50%, 8px); }
.js .hero__hint { opacity: 0; }
.js.is-ready .hero__visual:not(.was-dragged) .hero__hint { opacity: 1; transition-delay: 1.6s; }
.hero__fallback { display: none; }
.hero__visual.no-webgl .hero__fallback {
  display: block;
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EAF2FF, #8FB5F0 25%, #2B5FC4 60%, #0A1430 85%);
}
.hero__visual.no-webgl .hero__fallback span {
  position: absolute;
  inset: -20% -45%;
  border-radius: 50%;
  border: 18px solid #C8D7EE;
  border-bottom-color: #2F5EB8;
  transform: rotate(-18deg) scaleY(.35);
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-top: 40px;
}
.hero__foot::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: 4px;
  background: var(--line);
}
.hero__subtitle { max-width: 42ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* 6. Sobre (faixa clara) ------------------------------------------------ */
.about { background: var(--paper); color: var(--paper-ink); }
.about .section-label { border-top-color: var(--paper-line); color: var(--paper-muted); }
.about__headline {
  max-width: 17ch;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 760;
  font-variation-settings: "wdth" 84;
  line-height: .96;
  letter-spacing: -.035em;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 104px);
}
.about__story { display: grid; gap: 40px; }
.about__lead {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  line-height: 1.28;
  letter-spacing: -.012em;
  max-width: 30ch;
}
.about__columns { columns: 2 280px; column-gap: 40px; color: var(--paper-muted); font-size: 16.5px; line-height: 1.65; }
.about__columns p { break-inside: avoid; margin-bottom: 1em; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--paper-ink); }
.values__item { padding: 20px 20px 0 0; }
.values__item + .values__item { padding-left: 20px; border-left: 1px solid var(--paper-line); }
.values dt { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; font-variation-settings: "wdth" 88; letter-spacing: -.02em; }
.values dd { margin-top: 8px; color: var(--paper-muted); font-size: 15px; line-height: 1.5; }

/* Visual de evolução: camadas 3D sobre uma placa escura */
.evolution { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.evolution__scene {
  --rx: 0deg; --ry: 0deg; --explode: .4;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, color-mix(in srgb, var(--blue) 18%, var(--scene-base, #0D1220)), var(--scene-base, #0D1220) 70%);
  perspective: 1400px;
  overflow: hidden;
}
.evolution__stack {
  position: absolute;
  left: 50%; top: 56%;
  width: 58%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(calc(58deg + var(--rx))) rotateZ(calc(-40deg + var(--ry)));
  transition: transform .8s var(--ease);
}
.layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent);
  background: rgba(13, 20, 38, .82);
  box-shadow: -16px 16px 32px -12px rgba(0, 0, 0, .55);
  transform: translateZ(calc(var(--i) * 70px * var(--explode) - 80px));
  transition: transform .9s var(--ease), opacity .6s var(--ease);
  color: color-mix(in srgb, var(--blue) 70%, #FFFFFF);
}
.layer svg { width: 82%; height: 82%; }
.layer__tag { position: absolute; top: 10px; left: 12px; color: #FFFFFF; font: 500 12px/1 var(--mono); opacity: .8; }
.layer--idea { background: rgba(10, 14, 26, .6); border-style: dashed; }
.layer--product { border-color: var(--blue); background: var(--blue); color: var(--on-accent); }
.layer--product .layer__tag { color: var(--on-accent); }
.layer__ui { position: absolute; inset: 16% 10% 10%; display: grid; grid-template-rows: auto 1fr auto; gap: 8%; }
.layer__ui-bar { height: 10px; width: 55%; background: var(--on-accent); }
.layer__ui-hero { background: rgba(7, 9, 14, .2); border: 1px solid rgba(7, 9, 14, .5); }
.layer__ui-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; height: 34px; }
.layer__ui-row i { background: var(--on-accent); opacity: .85; }
.evolution__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.layer .c-ac { stroke: var(--blue); }
.evolution__step {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 0 0;
  border-top: 2px solid var(--paper-line);
  color: var(--paper-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: color .3s, border-color .3s;
}
.evolution__step:hover { border-top-color: var(--paper-ink); }
.evolution__step[aria-pressed="true"] { border-top-color: var(--blue-ink); color: var(--blue-ink); }
.evolution__desc { min-height: 3em; color: var(--paper-muted); font-size: 14px; line-height: 1.5; }
/* Etapa em destaque: a camada se afasta da pilha e as outras se apagam. */
.evolution__scene[data-focus] { --explode: 1.25 !important; }
.evolution__scene[data-focus] .layer { opacity: .18; }
.evolution__scene[data-focus="0"] .layer--idea,
.evolution__scene[data-focus="1"] .layer--design,
.evolution__scene[data-focus="2"] .layer--code,
.evolution__scene[data-focus="3"] .layer--product {
  opacity: 1;
  transform: translateZ(calc(var(--i) * 70px * var(--explode) - 80px + 56px));
}

.statement {
  margin-top: clamp(96px, 11vw, 168px);
  padding-top: 32px;
  border-top: 1px solid var(--paper-ink);
  font-size: clamp(40px, 7.4vw, 120px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  line-height: .92;
  letter-spacing: -.045em;
}
.statement__brand { display: block; color: var(--blue-ink); }

/* 7. Soluções ----------------------------------------------------------- */
.solutions { background: var(--ink); }
.solutions__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 36px; }
.solutions__head .section-title { grid-column: 1 / 10; }
.solutions__head .section-intro { grid-column: 7 / 13; }

.solutions__body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 112px);
}
.service-list { border-bottom: 1px solid var(--line); }
.service { display: grid; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); cursor: default; }
.service__text { display: grid; gap: 12px; }
.service__name {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 740;
  font-variation-settings: "wdth" 86;
  letter-spacing: -.035em;
  color: color-mix(in srgb, var(--text) 38%, transparent);
  transition: color .45s var(--ease);
}
.service__name::before {
  content: "";
  width: .26em; height: .26em;
  background: var(--blue);
  transform: scale(0);
  transition: transform .45s var(--ease);
}
.service.is-active .service__name { color: var(--text); }
.service.is-active .service__name::before { transform: scale(1); }
.service__desc { max-width: 44ch; padding-left: calc(.26em + 16px); color: var(--muted); font-size: 16px; }
.service__img, .service-preview__frame img, .project__frame img, .device__screen img { filter: var(--img-filter); }
.service__img { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); }

.service-preview { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.service-preview__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  overflow: hidden;
}
.service-preview__frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.service-preview__frame img.is-active { opacity: 1; transform: none; }
.service-preview__caption { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font: 400 13px/1.4 var(--mono); }

/* 8. Projetos ----------------------------------------------------------- */
.projects { background: var(--ink-alt); }
.projects__head { display: grid; gap: 28px; }
.projects__head .section-title { max-width: 15ch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin: clamp(48px, 6vw, 80px) 0 48px;
  border-bottom: 1px solid var(--line);
}
.filter {
  position: relative;
  min-height: 48px;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color .3s;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::after { transform: none; }
.filters__count { margin-left: auto; color: var(--muted); font: 400 13px/1 var(--mono); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(56px, 6vw, 88px);
  margin-bottom: 64px;
}
.project { grid-column: span 6; animation: cardIn .7s var(--ease) both; }
.project--offset { margin-top: clamp(0px, 8vw, 120px); }
.project--featured { grid-column: 1 / -1; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }

.project__card { display: grid; gap: 20px; width: 100%; text-align: left; }
.project__frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  overflow: hidden;
}
.project__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project__card:hover .project__frame img { transform: scale(1.035); }
.project__caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.project__title {
  display: block;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.project__go {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color .35s, color .35s, border-color .35s, transform .45s var(--ease);
}
.project__card:hover .project__go { background: var(--blue); border-color: var(--blue); color: var(--on-accent); transform: rotate(-45deg); }

/* Projeto em destaque: tela em notebook sobre campo azul + ficha técnica */
.project--featured .project__card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.project__stage {
  display: grid;
  place-items: center;
  padding: 9% 10% 8%;
  border-radius: 4px;
  background: var(--blue);
  overflow: hidden;
}
.project__stage .device { transition: transform .9s var(--ease); }
.project:not(.project--featured) .project__card:hover .project__stage .device { transform: translateY(-6px); }

/* Notebook 3D do projeto em destaque: abre uma vez ao aparecer (script.js, initNotebook). */
.project--featured .project__stage {
  --nb-light: #4285FF;
  position: relative;
  perspective: 2400px;
  perspective-origin: 50% 84%;
}
:root[data-theme^="green"] .project--featured .project__stage { --nb-light: var(--blue); }
.project--featured .project__stage::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 5%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 9, 14, .5), transparent);
  transform: scaleY(calc(1 + var(--cam, 0) * 2.4));
  filter: blur(6px);
  pointer-events: none;
}
.project--featured .project__stage .device {
  transform-style: preserve-3d;
  transform-origin: 50% 94%;
  transform: translateY(var(--lift, 0px)) translateY(calc(var(--cam, 0) * -30%)) scale(calc(1 - var(--cam, 0) * .24)) rotateX(calc(var(--cam, 0) * -34deg));
  transition: transform .9s var(--ease);
}
.project--featured .project__card:hover .project__stage .device { --lift: -6px; }
.project--featured .project__stage.is-opening .device { transition: none; }
.project--featured .device__screen {
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: rotateX(var(--lid, 15deg));
  backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 30px 50px -24px rgba(7, 9, 14, calc(.7 * var(--lit, 1))),
    0 0 calc(70px * var(--lit, 1)) calc(-6px + 10px * var(--lit, 1)) color-mix(in srgb, var(--nb-light) calc(55% * var(--lit, 1)), transparent);
  will-change: transform;
}
.project--featured .device__screen img {
  backface-visibility: hidden;
  filter: var(--img-filter) brightness(calc(.04 + .96 * var(--lit, 1))) saturate(calc(.4 + .6 * var(--lit, 1)));
}
.device__glare, .device__lid, .device__deck { display: none; }
.project--featured .device__glare {
  display: block;
  position: absolute;
  inset: 2.2%;
  border-radius: 2px;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 44%, rgba(255, 255, 255, .02) 52%, transparent 60%) no-repeat;
  background-size: 260% 100%;
  background-position: calc(100% - var(--lit, 1) * 70%) 0;
  backface-visibility: hidden;
  pointer-events: none;
}
.project--featured .device__screen::after {
  content: "";
  position: absolute;
  inset: 2.2%;
  border-radius: 2px;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--nb-light) 26%, transparent), transparent 70%);
  opacity: calc(var(--lit, 1) * (1 - var(--lit, 1)) * 4);
  backface-visibility: hidden;
  pointer-events: none;
}
/* Parte de trás da tampa (vista enquanto está fechada) */
.project--featured .device__lid {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 10px 10px 3px 3px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .22) 0 3.2%, transparent 3.6%),
    linear-gradient(160deg, #C9CFDA, #8C94A5 55%, #6B7385);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transform: rotateY(180deg) translateZ(1px);
  backface-visibility: hidden;
}
.project--featured .device__base { transform-style: preserve-3d; background: none; }
.project--featured .device__base::before { content: none; }
/* Teclado: plano deitado que sai da dobradiça em direção a quem olha */
.project--featured .device__deck {
  display: block;
  position: absolute;
  top: 0; left: 6.14%; right: 6.14%;
  aspect-ratio: 16 / 9.4;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #A8AFBC, #C3C9D3 60%, #B3BAC6);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
}
.project--featured .device__keys {
  position: absolute;
  left: 8%; right: 8%; top: 7%; height: 42%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6.4%, rgba(30, 36, 48, .55) 6.4% 6.9%),
    repeating-linear-gradient(180deg, transparent 0 17%, rgba(30, 36, 48, .55) 17% 20%),
    #3A4150;
  box-shadow: 0 0 calc(40px * var(--lit, 1)) color-mix(in srgb, var(--nb-light) calc(60% * var(--lit, 1)), transparent);
}
.project--featured .device__keys::after {
  content: "";
  position: absolute;
  left: 34%; right: 34%; top: 118%;
  height: 70%;
  border-radius: 4px;
  background: rgba(30, 36, 48, .18);
}
.project--featured .device__lip {
  position: absolute;
  left: -2%; right: -2%; bottom: 0;
  height: 4.2%;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #D2D7E0, #8A91A1 70%, #5A6172);
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}
.project__body { display: grid; gap: 18px; align-content: center; }
.project--featured .project__title { font-size: clamp(30px, 3.4vw, 50px); font-variation-settings: "wdth" 84; letter-spacing: -.035em; line-height: 1; }
.project__summary { display: block; color: var(--muted); font-size: 17px; }
.spec { display: grid; border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec__row > span:first-child { color: var(--muted); }
.spec__row > span:last-child { font-family: var(--mono); font-size: 13px; }
.project__more { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.project__more .icon { transition: transform .45s var(--ease); }
.project__card:hover .project__more { color: var(--accent-text); }
.project__card:hover .project__more .icon { transform: translateX(5px); }
.projects__note { max-width: 760px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Notebook reutilizável */
.device, .device__screen, .device__base { display: block; }
.device { position: relative; width: 100%; }
.device__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 2.2%;
  border-radius: 10px 10px 3px 3px;
  background: #1A1F2B;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 30px 50px -24px rgba(7, 9, 14, .7);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: #07090E; }
.device__base {
  position: relative;
  height: 0;
  padding-bottom: 3.2%;
  margin-inline: -7%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #D2D7E0, #8A91A1 70%, #5A6172);
}
.device__base::before { content: ""; position: absolute; top: 0; left: 42%; right: 42%; height: 40%; border-radius: 0 0 6px 6px; background: rgba(0, 0, 0, .25); }

/* Diálogo de projeto */
.project-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--ink-2);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.project-dialog::backdrop { background: rgba(3, 5, 10, .82); }
.project-dialog[open] { animation: dialogIn .5s var(--ease); }
.project-dialog[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px); } }
@keyframes fadeIn { from { opacity: 0; } }
.project-dialog__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.project-dialog__media { display: grid; place-items: center; padding: 64px 9% 56px; background: var(--blue); }
.project-dialog__body { display: grid; align-content: start; gap: 14px; padding: 56px 40px 40px; }
.project-dialog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.project-dialog__body h3 { font-size: clamp(28px, 3vw, 40px); font-variation-settings: "wdth" 86; letter-spacing: -.03em; }
.project-dialog__body h4 { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.project-dialog__desc { color: var(--muted); }
.project-dialog__list { display: grid; gap: 8px; font-size: 15px; }
.project-dialog__list li { display: flex; gap: 12px; }
.project-dialog__list li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; flex: none; background: var(--blue); }
.project-dialog__actions { margin-top: 12px; }
.project-dialog__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-2);
  transition: transform .4s var(--ease);
}
.project-dialog__close:hover { transform: rotate(90deg); }

/* 9. Parceiros ---------------------------------------------------------- */
.partners { background: var(--ink); }
.partners__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; }
.partner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-row li + li { border-left: 1px solid var(--line); }
.partner {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 40px;
  height: 100%;
  min-height: 300px;
  padding: 48px clamp(20px, 3vw, 40px) 28px;
  transition: background-color .4s;
}
.partner:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.partner__logo { display: grid; place-items: center; height: 104px; }
.partner__logo img { width: auto; height: 100%; max-width: 78%; object-fit: contain; transition: transform .6s var(--ease); }
.partner:hover .partner__logo img { transform: scale(1.04); }
.partner__logo img[src*="malha"] { height: 82%; }
.partner__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.partner__name { font-size: 18px; font-weight: 650; }
.partner__url { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 400 13px/1 var(--mono); transition: color .3s; }
.partner__url .icon { transition: transform .45s var(--ease); }
.partner:hover .partner__url { color: var(--accent-text); }
.partner:hover .partner__url .icon { transform: translate(3px, -3px); }

/* 10. Contato (faixa azul) --------------------------------------------- */
.contact { background: var(--blue); color: var(--on-accent); }
.contact ::selection { background: var(--on-accent); color: var(--blue); }
.contact :focus-visible { outline-color: var(--on-accent); }
.section-label--ink { border-top-color: rgba(7, 9, 14, .3); color: var(--on-accent); }
.section-label--ink .mark { background: var(--on-accent); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title {
  max-width: 11ch;
  font-size: clamp(46px, 7vw, 112px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  line-height: .9;
  letter-spacing: -.045em;
}
.contact__intro { margin-top: 32px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; }
.channels { margin-top: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(7, 9, 14, .3); }
.channel { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid rgba(7, 9, 14, .3); }
.channel dt { font-size: 14px; font-weight: 600; opacity: .75; }
.channel dd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.channel__value { font-size: clamp(26px, 2.6vw, 36px); font-weight: 760; font-variation-settings: "wdth" 88; letter-spacing: -.025em; white-space: nowrap; }
.channel__link { display: inline-flex; align-items: center; gap: 10px; }
.channel__link .icon { width: .7em; height: .7em; transition: transform .45s var(--ease); }
.channel__link:hover .icon { transform: translate(4px, -4px); }
.channel__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--on-accent);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .3s, color .3s;
}
.channel__action:hover { background: var(--on-accent); color: var(--blue); }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: 4px;
  background: var(--ink);
  color: var(--text);
}
.form :focus-visible { outline-color: var(--blue); }
.form ::selection { background: var(--blue); color: var(--on-accent); }
.form__head { display: grid; gap: 6px; margin-bottom: 8px; }
.form__head h3 { font-size: 26px; font-variation-settings: "wdth" 90; letter-spacing: -.02em; }
.form__head p { color: var(--muted); font-size: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--ink-2);
  font-size: 16px;
  transition: border-color .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 144px; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--ink-3); box-shadow: inset 0 -2px 0 var(--blue); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; }
.field__error:empty { display: none; }
.form__status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn .4s ease;
}
.form__status:empty { display: none; }
.form__status .icon { margin-top: 2px; }
.form__status > span { display: grid; justify-items: start; }
.form__status--error { border-left-color: var(--danger); }
.form__status--error .icon { color: var(--danger); }
.form__status--info .icon { color: var(--accent-text); }
.form__status a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.form__status__link { margin-top: 12px; min-height: 44px; font-size: 14px; }
.form__config { color: var(--muted); font-size: 13px; }

/* 11. Rodapé ------------------------------------------------------------ */
.footer { background: var(--ink); padding-top: clamp(72px, 9vw, 120px); padding-bottom: env(safe-area-inset-bottom, 0px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
.footer__tagline { max-width: 18ch; font-size: clamp(24px, 2.4vw, 34px); font-weight: 650; font-variation-settings: "wdth" 88; letter-spacing: -.025em; line-height: 1.1; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.footer__nav a, .footer__contact a, .footer__contact span { color: var(--muted); font-size: 15px; transition: color .3s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--text); }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__wordmark {
  margin-top: clamp(56px, 8vw, 112px);
  font-size: min(12.2vw, 196px);
  font-weight: 900;
  font-variation-settings: "wdth" 108;
  line-height: .8;
  letter-spacing: -.03em;
  white-space: nowrap;
  user-select: none;
}
.footer__wordmark span { color: var(--accent-text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer__totop { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.footer__replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .3s, color .3s, border-color .3s;
}
.footer__replay .icon { transition: transform .6s var(--ease); }
.footer__replay:hover { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.footer__replay:hover .icon { transform: rotate(-200deg); }
.footer__replay[aria-disabled="true"] { opacity: .5; pointer-events: none; }


/* Tela de carregamento --------------------------------------------------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--text);
  clip-path: inset(0);
  transition: clip-path .9s var(--ease-io), visibility 0s;
  /* Segurança: se o script falhar, a tela some sozinha. */
  animation: loaderFailsafe 0s 9s forwards;
}
.js .loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease-io), visibility 0s .9s; }
/* Reabertura pelo rodapé: a cortina desce de cima. */
.js .loader.is-entering { clip-path: inset(0 0 100% 0); transition: none; }
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__logo { width: 112px; height: 112px; border-radius: 16px; animation: loaderLogo 1.6s var(--ease) both; }
@keyframes loaderLogo { from { opacity: 0; transform: scale(.82) rotate(-90deg); } }
.loader__name {
  font-size: 20px;
  font-weight: 850;
  font-variation-settings: "wdth" 118;
  letter-spacing: .32em;
  margin-right: -.32em;
  animation: fadeIn 1s ease .4s both;
}
.loader__bar { position: relative; width: min(320px, 70vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; }
.loader__count { color: var(--muted); font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; }

/* Seletor de cores (ao lado da logo) ------------------------------------ */
.themes {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 1px solid var(--line-2);
}
.logo, .themes, .burger, .nav__cta { flex: none; }
.theme-opt {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.theme-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.theme-opt__swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-bg) 50%, var(--sw-ac) 50%);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  pointer-events: none;
}
.theme-opt:hover .theme-opt__swatch { transform: scale(1.12); }
.theme-opt.is-checked .theme-opt__swatch,
.theme-opt:has(input:checked) .theme-opt__swatch { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--text); }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 12. Animações --------------------------------------------------------- */
.js [data-intro] { opacity: 0; transform: translateY(24px); }
.js .hero__title [data-intro] { opacity: 1; transform: translateY(102%); }
.js.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js.is-ready [data-intro="2"] { transition-delay: .08s; }
.js.is-ready [data-intro="3"] { transition-delay: .16s; }
.js.is-ready [data-intro="4"] { transition-delay: .24s; }
.js.is-ready [data-intro="5"] { transition-delay: .45s; }
.js .hero__visual { opacity: 0; }
.js.is-ready .hero__visual { opacity: 1; transition: opacity 1.6s var(--ease) .3s; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; }
.js [data-split].is-split .split-word > span { transform: translateY(105%); }
.js [data-split].is-visible .split-word > span { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--w) * 35ms); }

/* 13. Responsividade ---------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__cta { display: none; }
  .nav__link { padding: 10px 9px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__menu { display: none; }
  .burger { display: block; }

  .hero { --h1: clamp(46px, 13.6vw, 104px); min-height: auto; padding-bottom: 32px; }
  .hero__kicker { margin-bottom: 0; }
  .hero__visual { position: relative; right: auto; bottom: auto; width: min(100%, 520px); max-width: none; margin: 8px auto -12%; }
  .hero__title { margin-top: 0; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }

  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .evolution { position: relative; top: 0; max-width: 520px; }
  .evolution__scene { aspect-ratio: 1; }
  .evolution__stack { width: 50%; top: 60%; }
  .evolution__scene[data-focus] { --explode: .9 !important; }

  .solutions__head .section-title, .solutions__head .section-intro { grid-column: 1 / -1; }
  .solutions__body { grid-template-columns: minmax(0, 1fr); }
  .service-preview { display: none; }
  .service__img { display: block; }
  .service__name { color: var(--text); }
  .service__name::before { transform: scale(1); }

  .project--featured .project__card { grid-template-columns: minmax(0, 1fr); }
  .project--offset { margin-top: 0; }
  .partners__head { grid-template-columns: minmax(0, 1fr); }
  .partner-row { grid-template-columns: minmax(0, 1fr); }
  .partner-row li + li { border-left: 0; border-top: 1px solid var(--line); }
  .partner { min-height: 0; padding: 36px 4px 24px; gap: 28px; }
  .partner__logo { height: 84px; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__tagline { grid-column: 1 / -1; }

  .project-dialog__inner { grid-template-columns: minmax(0, 1fr); }
  .project-dialog__body { padding: 28px 22px 32px; }
  .project-dialog__media { padding: 64px 10% 36px; }
}

@media (max-width: 640px) {
  .nav__inner { gap: 12px; }
  .logo { font-size: 16px; gap: 10px; }
  .logo__mark { width: 30px; height: 30px; }
  .themes { padding-left: 10px; gap: 2px; }
  .theme-opt { width: 26px; height: 26px; }
  .theme-opt__swatch { width: 18px; height: 18px; }
  .project { grid-column: 1 / -1; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .values__item, .values__item + .values__item { padding: 16px 0; border-left: 0; border-top: 1px solid var(--paper-line); }
  .values__item:first-child { border-top: 0; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .filters { gap: 0 20px; }
  .filters__count { width: 100%; margin: 0 0 12px; }
  .spec__row { grid-template-columns: 96px minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 374px) {
  .nav__inner { gap: 8px; }
  .logo { font-size: 14px; gap: 8px; }
  .logo__mark { width: 28px; height: 28px; }
  .themes { padding-left: 8px; gap: 0; }
}
@media (max-width: 339px) {
  .logo__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-intro], .js [data-reveal], .js .hero__visual, .js [data-split] .split-word > span { opacity: 1 !important; transform: none !important; }
}
