/* ===========================================================
   Miguel Amm · MGTechy — estilos
   Fundo azul-marinho/preto · acentos verde e azul · vidro fosco
   =========================================================== */

/* =========================================================
   TOKENS
   Cores: azul-marinho/preto + acentos esmeralda e ciano
   Tipografia: DM Sans 300 (display) + System UI (texto) + mono (rótulos)
   ========================================================= */
:root {
  --bg: #03060d;
  --navy-950: #050b18;
  --navy-900: #081430;
  --navy-800: #0d1f45;

  --em-100: #d1fae5;
  --em-300: #6ee7b7;
  --em-400: #34d399;
  --em-500: #10b981;
  --em-950: #022c22;
  --cy-300: #67e8f9;
  --cy-400: #22d3ee;
  --sky-400: #38bdf8;
  --blue-500: #3b82f6;

  --t1: #ffffff;
  --t2: #a7b4c8;
  --t3: #6f7e95;

  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --line-hover: rgba(226, 232, 240, .22);

  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 16px;

  --font-display: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --grad-accent: linear-gradient(100deg, var(--em-300) 0%, var(--cy-400) 55%, var(--sky-400) 100%);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }
::selection { background: rgba(34, 211, 238, .3); color: #fff; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cy-400); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

/* =========================================================
   FUNDO: ambiente + camada de traços de luz (React)
   ========================================================= */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 760px at 12% -12%, rgba(13, 31, 69, .95), transparent 62%),
    radial-gradient(900px 700px at 105% 28%, rgba(8, 20, 48, .95), transparent 60%),
    radial-gradient(900px 620px at 40% 112%, rgba(5, 34, 52, .7), transparent 62%),
    var(--bg);
}
.ambient::before { /* grade técnica sutil */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
  opacity: .55;
}
.blob { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); }
.blob--a { width: 800px; height: 800px; left: -260px; top: calc(18% - 140px); --c: rgba(16, 185, 129, .10); }
.blob--b { width: 880px; height: 880px; right: -320px; top: calc(-8% - 140px); --c: rgba(34, 211, 238, .09); }
.blob--c { width: 840px; height: 840px; right: calc(10% - 140px); bottom: -360px; --c: rgba(59, 130, 246, .10); }

#trails-root { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
/* Traços de luz entram por último: esperam o hero terminar de montar e surgem
   num fade lento, com curva suave na entrada e na chegada (ease-in-out). */
.js #trails-root { opacity: 0; }
.js .is-ready #trails-root { opacity: 1; transition: opacity 2.6s cubic-bezier(.45, 0, .25, 1) 1.9s; }
.trails-canvas { display: block; width: 100%; height: 100%; }

.page { position: relative; z-index: 2; }

/* =========================================================
   VIDRO FOSCO: tudo que tem .glass desfoca os traços que passam por trás
   ========================================================= */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  /* O efeito fosco dos traços de luz é desenhado pelo light-trails.js.
     Sem backdrop-filter aqui: ele refazia o desfoque a cada quadro e travava a rolagem. */
  background:
    linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 100%),
    rgba(6, 12, 26, .28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 24px 60px -28px rgba(0,0,0,.75);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.glass::before { /* textura de pontos com máscara */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.95) 1px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: .07;
  -webkit-mask-image: linear-gradient(var(--mask-angle, 160deg), #000 0%, transparent 62%);
          mask-image: linear-gradient(var(--mask-angle, 160deg), #000 0%, transparent 62%);
}
.glass::after { /* brilho que segue o cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 211, 153, .13), rgba(34, 211, 238, .05) 40%, transparent 65%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.glass:hover { border-color: var(--line-hover); }
.glass:hover::after { opacity: 1; }

/* =========================================================
   TIPOGRAFIA
   ========================================================= */
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -.045em; line-height: .92; }
.h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  letter-spacing: -.035em; line-height: 1;
}
.h2 em, .grad {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: var(--t2); font-size: clamp(1rem, 1.35vw, 1.125rem); letter-spacing: .01em; line-height: 1.65; }
.eyebrow { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; color: var(--t3); }
.index-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--em-300);
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .26);
  padding: 7px 14px; border-radius: 999px;
}
.index-chip b { color: var(--t1); font-weight: 700; }
.index-chip i { width: 18px; height: 1px; background: currentColor; opacity: .6; }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.arrow-r { transform: translateX(3px); }
.btn:hover svg.arrow-d { transform: translateY(3px); }
.btn-primary {
  background: linear-gradient(90deg, var(--em-100), var(--em-400));
  color: var(--em-950);
  box-shadow: 0 12px 32px -10px rgba(16, 185, 129, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(16, 185, 129, .7); }
.btn-ghost {
  color: var(--t1);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--line-hover); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .85rem; }

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; }
.nav__bar {
  width: min(1180px, calc(100% - 24px)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; /* marca | idioma no centro | seções */
  padding: 7px 14px; border-radius: 999px;
  background: rgba(5, 11, 24, .8);
  border: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgba(3, 6, 13, .9); box-shadow: 0 16px 40px -20px rgba(0,0,0,.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: -.02em; }
.brand__name span {
  background: linear-gradient(90deg, var(--em-400), var(--cy-400) 55%, var(--sky-400));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Alternar idioma PT / EN (ao lado do nome) */
.nav__start .brand__name { white-space: nowrap; }
/* Barra: nome à esquerda · seções no centro exato da barra · PT/EN centralizado entre os dois */
.nav__start { display: flex; align-items: center; min-width: 0; justify-self: stretch; }
.nav__start .lang { margin-inline: auto; }
.nav__bar:has(.lang) { column-gap: 0; } /* sem folga extra: PT/EN fica com o mesmo espaço dos dois lados */
@media (min-width: 900px) and (max-width: 1099px) { /* telas médias: sem espaço para centralizar, distribui igual */
  .nav__bar { display: flex; justify-content: space-between; }
  .nav__start { display: contents; }
}
@media (max-width: 899px) {
  .nav__bar > nav { display: none; } /* celular: sem seções, PT/EN vai para a direita */
  .nav__bar { display: flex; }
  .nav__start { flex: 1; }
  .nav__start .lang { margin-right: 0; }
}
.lang {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110,231,183,.22), rgba(34,211,238,.22));
  box-shadow: inset 0 0 0 1px rgba(34,211,238,.35);
  transition: transform .35s var(--ease);
}
.lang:has([data-lang="en"][aria-pressed="true"])::before { transform: translateX(100%); }
.lang__btn {
  position: relative; z-index: 1; min-width: 36px; height: 28px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 .7rem/1 var(--font-mono); letter-spacing: .12em; color: var(--t3);
  transition: color .3s;
}
.lang__btn:hover { color: #fff; }
.lang__btn[aria-pressed="true"] { color: #fff; }
.lang__btn:focus-visible { outline: 2px solid var(--cy-400); outline-offset: 2px; }
@media (max-width: 380px) { .lang__btn { min-width: 32px; padding: 0 8px; } }
.nav__links { display: none; gap: 2px; }
.nav__links a {
  display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--t2);
  transition: color .3s, background .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255,255,255,.07); }
.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: #fff; cursor: pointer;
  display: inline-grid; place-items: center;
}
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.nav__toggle span + span { margin-top: 5px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav__toggle-inner { display: grid; }
.nav__menu {
  width: calc(100% - 24px); margin: 8px auto 0; padding: 8px;
  border-radius: 22px; display: grid; gap: 2px;
  background: rgba(3, 6, 13, .8);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.nav.is-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; }
.nav:not(:has(.nav__toggle)) .nav__menu { display: none; } /* sem botão ☰: o menu invisível não ocupa espaço nem recebe o Tab */
.nav__menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 14px; text-decoration: none;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--t2);
}
.nav__menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__menu a .mono { font-size: .7rem; color: var(--t3); letter-spacing: .1em; }
.nav__cta-label-long { display: none; }
@media (min-width: 420px) { .nav__cta-label-long { display: inline; } .nav__cta-label-short { display: none; } }
@media (min-width: 900px) {
  .nav { top: 16px; }
  .nav__links { display: flex; }
  .nav__toggle, .nav__menu { display: none; }
}

/* =========================================================
   INTRO (apresentação de entrada)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(600px 400px at 50% 50%, rgba(13, 31, 69, .55), transparent 70%), rgba(3, 6, 13, .86);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  transition: opacity .9s var(--ease), visibility .9s, transform 1.1s var(--ease);
  cursor: pointer;
}
.intro.is-out { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }
.no-js .intro { display: none; }
.intro__inner { display: grid; justify-items: center; gap: 22px; }
.intro__mark { width: 96px; height: 96px; overflow: visible; }
.intro__ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.15s var(--ease) .1s forwards; }
.intro__mg { font-family: var(--font-display); font-weight: 400; font-size: 40px; letter-spacing: -2px; fill: #fff; opacity: 0; animation: fadeIn .7s var(--ease) .55s forwards; }
.intro__word {
  font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; color: var(--t2);
  letter-spacing: .7em; padding-left: .7em; opacity: 0;
  animation: trackIn 1.1s var(--ease) .45s forwards;
}
.intro__bar { width: 140px; height: 1px; background: rgba(255,255,255,.1); overflow: hidden; border-radius: 2px; }
.intro__bar span { display: block; height: 100%; width: 100%; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; animation: bar 1.35s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes trackIn { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes bar { to { transform: scaleX(1); } }

/* =========================================================
   HERO
   ========================================================= */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 72px; position: relative; overflow-x: clip; }
.hero__grid { display: grid; justify-items: center; gap: clamp(48px, 7vw, 72px); }
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--t2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--em-400); flex: none; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--em-400); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero__name { font-size: clamp(3.8rem, 18vw, 10rem); margin-top: 26px; }
.hero__name .line { display: block; white-space: nowrap; }
.hero__role {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 30px; font-family: var(--font-mono); font-size: .82rem; color: var(--t3);
  text-transform: uppercase; letter-spacing: .14em;
}
.hero__role .bar { width: 28px; height: 1px; background: var(--t3); }
.rotator { color: var(--em-300); display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(-6px); filter: blur(4px); }
.hero__tagline { margin: 18px auto 0; max-width: 40ch; color: var(--t2); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; }
.hero__tagline strong { color: var(--t1); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
@media (max-width: 519px) {
  .hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 340px); }
}
/* Cartão de links (abaixo dos botões) */
.hero__visual { position: relative; width: 100%; display: grid; place-items: center; perspective: 1200px; }
.hero__visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.22), rgba(34,211,238,.10) 45%, transparent 70%);
  filter: blur(40px); z-index: -1;
}
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08); pointer-events: none; }
.orbit--1 { width: min(560px, 120%); aspect-ratio: 1; animation: spin 60s linear infinite; }
.orbit--2 { width: min(420px, 92%); aspect-ratio: 1; border-style: solid; border-color: rgba(52,211,153,.10); animation: spin 40s linear infinite reverse; }
.orbit--2::after { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--em-400); box-shadow: 0 0 14px var(--em-400); }
@keyframes spin { to { transform: rotate(360deg); } }

.idcard {
  width: 100%; max-width: 900px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
/* 4 cards separados, lado a lado (2×2 no celular) */
.idcard__list { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; }
@media (min-width: 720px) { .idcard__list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.idcard__btn {
  --mask-angle: 200deg;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 168px; padding: 26px 16px 22px; border-radius: 20px;
  text-align: center; text-decoration: none; color: var(--t1);
  transition: background .3s, border-color .3s, transform .35s var(--ease);
}
.idcard__btn:hover { border-color: rgba(52,211,153,.35); transform: translateY(-4px); }
.idcard__ico {
  width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); color: var(--em-300);
  margin-bottom: 14px;
}
.idcard__ico svg { width: 22px; height: 22px; }
.idcard__ico img { width: 44px; height: 44px; object-fit: contain; }
.idcard__ico:has(img) { background: none; border: 0; } /* logo oficial sem moldura */
.idcard__ico img + svg { display: none; } /* com ícone oficial, o genérico some */
.idcard__name { font-size: .98rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.idcard__desc {
  margin-top: 6px; max-width: 20ch;
  font-size: .74rem; line-height: 1.35; letter-spacing: -.005em;
  color: var(--t3);
}
.idcard__arrow { position: absolute; top: 14px; right: 14px; width: 15px; height: 15px; color: var(--t3); transition: transform .35s var(--ease), color .3s; }
.idcard__btn:hover .idcard__arrow { color: var(--em-300); transform: translate(2px, -2px); }
.idcard__btn--primary { background: linear-gradient(160deg, rgba(16,185,129,.18), rgba(34,211,238,.07)), rgba(6, 12, 26, .28); border-color: rgba(52,211,153,.35); color: var(--em-100); }
.idcard__btn--primary .idcard__ico { background: linear-gradient(135deg, var(--em-300), var(--em-500)); border-color: transparent; color: var(--em-950); }
.idcard__btn--primary .idcard__desc { color: rgba(209, 250, 229, .6); }
.idcard__btn--primary:hover { background: linear-gradient(160deg, rgba(16,185,129,.28), rgba(34,211,238,.12)), rgba(6, 12, 26, .28); border-color: rgba(52,211,153,.55); }
.idcard__btn--primary .idcard__arrow { color: var(--em-300); }
.idcard__btn--primary:hover .idcard__arrow { transform: translateY(2px); }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: clamp(84px, 12vw, 150px) 0; position: relative; }
.section__head { display: grid; gap: 22px; }
.section__head .lead { max-width: 46ch; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .section__head--split .lead { max-width: 38ch; }
}

/* Sobre */
.about__grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .about__grid { grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; } .about__intro { position: sticky; top: 120px; } }
.about__head { margin-top: 22px; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 24px); }
.about__head .avatar {
  width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(52,211,153,.25), rgba(34,211,238,.12));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 4px rgba(16,185,129,.08), 0 12px 30px -12px rgba(16,185,129,.45);
  font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); color: #fff; letter-spacing: -.02em;
}
.about__head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.about__head .avatar--photo {
  width: clamp(84px, 10vw, 116px); height: clamp(84px, 10vw, 116px); padding: 3px; border: 0;
  background: linear-gradient(140deg, rgba(52,211,153,.95), rgba(34,211,238,.55) 55%, rgba(16,185,129,.25));
  box-shadow: 0 0 0 6px rgba(16,185,129,.07), 0 16px 40px -14px rgba(16,185,129,.55);
}
.about__head .avatar--photo img { border-radius: 50%; object-position: 50% 30%; filter: saturate(.92) contrast(1.04); }
.card-label { margin-top: 30px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--t3); }
.card-label + .chips, .card-label + .quals { margin-top: 12px; }
.quals { display: grid; gap: 10px; }
@media (min-width: 560px) { .quals { grid-template-columns: 1fr 1fr; } }
.quals li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--t1); }
.q__ico { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: var(--em-300); }
.q__ico svg { width: 12px; height: 12px; }
.about__sign { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--t3); font-size: .85rem; }
.about__sign .avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(52,211,153,.25), rgba(34,211,238,.12));
  border: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-display); font-size: 1.05rem; color: #fff; letter-spacing: -.02em;
}
.about__sign strong { display: block; color: var(--t1); font-weight: 500; }
.about__card { padding: clamp(26px, 4vw, 44px); }
.about__text { margin-top: 28px; display: grid; gap: 18px; color: var(--t2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.75; }
.about__text strong { color: var(--t1); font-weight: 500; }
.facts { display: grid; gap: 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.fact .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); color: var(--em-300); }
.fact .ico svg { width: 18px; height: 18px; }
.fact dt { margin-top: 14px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--t3); }
.fact dd { margin-top: 4px; font-size: .95rem; color: var(--t1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { padding: 7px 13px; border-radius: 999px; font-size: .8rem; color: var(--t2); background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); transition: color .3s, border-color .3s; }
.chip:hover { color: #fff; border-color: rgba(52,211,153,.4); }

/* Experiência */
.exp__grid { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 980px) { .exp__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 24px 22px; --mask-angle: 140deg; }
.stat__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.2rem); letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.stat__num sup, .stat__num small { font-size: .5em; color: var(--em-400); top: 0; }
.stat__label { margin-top: 12px; font-size: .78rem; color: var(--t3); letter-spacing: .04em; line-height: 1.45; }
.stat--wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stat--wide p { color: var(--t2); font-size: .95rem; max-width: 30ch; }
.stat--wide .stat__num { font-size: clamp(2rem, 4vw, 2.6rem); }

.timeline { position: relative; display: grid; gap: 14px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--em-400), rgba(34,211,238,.4) 50%, transparent); }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: -30px; top: 28px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(52,211,153,.6); box-shadow: 0 0 0 4px rgba(16,185,129,.08);
}
.tl__card { padding: 24px; display: grid; gap: 10px; }
.tl__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tl__period { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--em-300); }
.tl__tag { font-size: .7rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--t3); }
.tl__role { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; }
.tl__role span { color: var(--t3); font-weight: 300; }
.tl__desc { color: var(--t2); font-size: .92rem; line-height: 1.65; }

/* Trabalhos */
.works { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 700px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work { display: flex; flex-direction: column; text-decoration: none; color: inherit; --mask-angle: 210deg; }
.work__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 38%, transparent), transparent 60%),
    radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--c2) 30%, transparent), transparent 60%),
    rgba(5, 11, 24, .4);
}
.work__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.mock {
  position: absolute; left: 12%; right: 12%; top: 20%; bottom: -12%;
  border-radius: 12px 12px 0 0;
  background: rgba(3, 6, 13, .55); border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  transition: transform .7s var(--ease);
}
.work:hover .mock { transform: translateY(-8px); }
.mock__bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
.work__cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.work:hover .work__cover { transform: scale(1.04); }
.work__media:has(.work__cover) .work__num { z-index: 2; color: #fff; padding: 3px 8px; border-radius: 6px; background: rgba(3, 6, 13, .55); }
.mock__body { padding: 14px; display: grid; gap: 8px; }
.mock__body span { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); }
.mock__body span:nth-child(1) { width: 46%; height: 10px; background: color-mix(in srgb, var(--c1) 70%, white 10%); opacity: .8; }
.mock__body span:nth-child(2) { width: 82%; }
.mock__body span:nth-child(3) { width: 64%; }
.mock__body .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; height: auto; background: none; }
.mock__body .row b { height: 30px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.work__num { position: absolute; top: 14px; left: 16px; font-size: .66rem; letter-spacing: .2em; color: rgba(255,255,255,.55); }
.work__body { padding: 22px 22px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.work__meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.work__title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.2; }
.work__desc { color: var(--t2); font-size: .92rem; line-height: 1.6; }
.work__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work__tags span { font-size: .7rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); color: var(--t2); }
.work__go { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--t2); transition: all .4s var(--ease); }
.work__go svg { width: 16px; height: 16px; }
.work:hover .work__go { background: var(--em-400); border-color: var(--em-400); color: var(--em-950); transform: rotate(-45deg); }

/* CTA final */
.cta { padding-bottom: clamp(64px, 9vw, 110px); }
.cta__panel {
  --mask-angle: 180deg;
  border-radius: 32px; text-align: center;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(16,185,129,.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
}
.cta__panel .index-chip { margin-inline: auto; }
.cta__title { margin: 26px auto 0; max-width: 15ch; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; letter-spacing: -.045em; }
.cta__text { margin: 22px auto 0; max-width: 46ch; }
.cta__actions { margin-top: 42px; display: flex; justify-content: center; }
.cta__meta { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.cta__meta span { display: inline-flex; align-items: center; gap: 8px; }
.cta__meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--em-400); }

/* Card de contato compacto (e-mail + WhatsApp) */
.cta__panel--compact { max-width: 760px; margin-inline: auto; padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 44px); }
.cta__panel--compact .cta__title { margin-top: 20px; font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 18ch; }
.cta__panel--compact .cta__text { margin-top: 14px; font-size: 1rem; }
.contact-btns { margin-top: 30px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: left; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  color: var(--t1); text-decoration: none;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-btn:hover { border-color: rgba(52,211,153,.45); transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(16,185,129,.55); }
.contact-btn__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(16,185,129,.14); color: var(--em-300); border: 1px solid rgba(52,211,153,.25);
}
.contact-btn__icon svg { width: 22px; height: 22px; }
.contact-btn--wa .contact-btn__icon { background: rgba(37,211,102,.14); color: #4ade80; border-color: rgba(74,222,128,.3); }
.contact-btn__txt { display: grid; gap: 3px; min-width: 0; }
.contact-btn__label { font-weight: 500; font-size: .98rem; }
.contact-btn__value { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--t2); overflow-wrap: anywhere; }

/* Formulário de contato (e-mail) */
.contact-form { margin: 44px auto 0; max-width: 720px; text-align: left; display: grid; gap: 16px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--t2); }
.field input, .field textarea {
  width: 100%; margin: 0;
  font: 400 1rem/1.5 var(--font-body); color: #fff;
  background: rgba(3, 7, 16, .55);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--t3); }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.18); }
.field input:focus, .field textarea:focus { border-color: rgba(52,211,153,.6); box-shadow: 0 0 0 4px rgba(16,185,129,.12); background: rgba(3,7,16,.75); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #07101f inset; transition: background-color 9999s; }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(248,113,113,.6); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.field__err { font-size: .78rem; color: #fca5a5; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form__note { font-size: .8rem; color: var(--t3); max-width: 34ch; }
.form__status { font-size: .9rem; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--em-300); }
.form__status.is-err { color: #fca5a5; }
button.btn-ring { border: 0; cursor: pointer; font: inherit; color: inherit; }
button.btn-ring:disabled { cursor: progress; opacity: .7; }
@media (max-width: 639px) {
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__foot .btn-ring { display: flex; }
  .form__foot .btn-ring__inner { width: 100%; justify-content: space-between; }
  .form__note { max-width: none; text-align: center; }
}
.cta__meta a { color: var(--t2); text-decoration: none; text-transform: none; letter-spacing: .04em; }
.cta__meta a:hover { color: var(--em-300); }

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-ring {
  position: relative; display: inline-flex; padding: 1.5px; border-radius: 999px; text-decoration: none;
  background: conic-gradient(from var(--ang), var(--em-400), var(--cy-400), var(--blue-500), rgba(255,255,255,.2), var(--em-400));
  animation: ring 4s linear infinite;
  transition: transform .4s var(--ease);
}
.btn-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: 0 0 28px 2px rgba(34, 211, 238, .28), 0 0 44px 6px rgba(16, 185, 129, .18);
  opacity: .8; transition: opacity .4s;
}
.btn-ring:hover { transform: translateY(-2px) scale(1.02); }
.btn-ring:hover::before { opacity: 1; }
.btn-ring__inner {
  display: inline-flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 12px 0 26px; border-radius: 999px;
  background: rgba(3, 7, 16, .9);
  font-weight: 600; font-size: 1.02rem; color: #fff; white-space: nowrap;
}
.btn-ring__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--em-300), var(--em-500)); color: var(--em-950); }
.btn-ring__icon svg { width: 20px; height: 20px; }
@keyframes ring { to { --ang: 360deg; } }

/* Rodapé */
.footer { padding: 0 0 36px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--t3); font-size: .82rem; }
.footer__row a { text-decoration: none; color: var(--t2); display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.footer__row a:hover { color: var(--em-300); }
.footer__row svg { width: 14px; height: 14px; }

/* =========================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================= */
/* Hero: começam após a intro (body.is-ready) */
.js .h-anim { opacity: 0; }
.js .is-ready .h-anim { animation: rise 1s var(--ease) var(--d, 0ms) both; }
.js .h-card { opacity: 0; }
.js .is-ready .h-card { opacity: 1; animation: cardIn 1.3s var(--ease) var(--d, 0ms) backwards; }
.split .ch { display: inline-block; will-change: transform, opacity; }
.js .split .ch { opacity: 0; }
.js .is-ready .split .ch { animation: chIn 1s var(--ease) both; animation-delay: calc(var(--d0, 0ms) + var(--i) * 42ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes chIn { from { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateX(14deg) scale(.96); } to { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); } }

/* Palavras em degradê (Amm, Miguel, prática, falam por mim, papel):
   o degradê anda sem parar, só dentro da palavra */
.brand__name span, .h2 em, .grad {
  background: linear-gradient(90deg, #6ee7b7 0%, #22d3ee 25%, #38bdf8 50%, #22d3ee 75%, #6ee7b7 100%);
  background-size: 200% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradFlow 6s linear infinite;
}
@keyframes gradFlow { from { background-position: 0 0; } to { background-position: -200% 0; } }

/* TECHY: degradê contínuo que anda da esquerda para a direita */
@property --flow { syntax: "<number>"; initial-value: 0; inherits: true; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .split[data-grad] { animation: techyFlow 6s linear infinite; }
  .split[data-grad] .ch {
    color: transparent !important;
    background-image: linear-gradient(90deg, #6ee7b7 0%, #22d3ee 25%, #38bdf8 50%, #22d3ee 75%, #6ee7b7 100%);
    background-size: calc(var(--w, 4em) * 2) 100%;
    background-repeat: repeat-x;
    background-position: calc(var(--flow) * var(--w, 4em) * 2 - var(--ox, 0px)) 0;
    -webkit-background-clip: text; background-clip: text;
    padding: .16em .14em; margin: -.16em -.14em; /* espaço para a perna do "y" não ser cortada (em cima, embaixo e nas laterais) */
  }
}
@keyframes techyFlow { to { --flow: 1; } }

/* Rolagem */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .glass[data-reveal].is-in { transition: opacity 1s var(--ease) var(--rd, 0ms), transform 1s var(--ease) var(--rd, 0ms), border-color .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .h-anim, .js .h-card, .js .split .ch, .js [data-reveal], .js #trails-root { opacity: 1 !important; transform: none !important; filter: none !important; }
}
