/* ==========================================================================
   Guilherme Lima — Fullstack AI | AI Teacher
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-2: #0f100e;
  --bg-3: #161714;
  --bg-4: #20221d;
  --fg: #edede6;
  --fg-2: #a1a398;
  --fg-3: #5c5e56;
  --lime: #d2ff00;
  --lime-2: #a9cc00;
  --bar: #82a100; /* barras de gráfico: lime validado para a faixa de luminosidade do modo escuro */
  --ink: #0a0b07;

  --line: rgba(237, 237, 230, 0.09);
  --line-2: rgba(237, 237, 230, 0.16);
  --line-ink: rgba(10, 11, 7, 0.16);

  --f-sans: "Mona Sans", Arial, sans-serif;
  --f-display: "Bricolage Grotesque", "Mona Sans", Arial, sans-serif;

  --gutter: clamp(1rem, 1.6vw, 1.5rem);
  --nav-h: 5.25rem;
  --radius: 1.25rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* granulado de filme sobre tudo */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 500;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; font-weight: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.has-cursor,
.has-cursor * { cursor: none !important; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Tipografia --------------------------------------------------------------- */
.t-giant {
  font-size: clamp(4.5rem, 19vw, 21rem);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.t-impact {
  font-size: clamp(3rem, 8.6vw, 9rem);
  font-weight: 760;
  font-stretch: 88%;
  line-height: 0.83;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.t-title {
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  font-weight: 760;
  font-stretch: 90%;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.t-body-lg {
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.25;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.t-body {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.5;
  font-weight: 430;
}
.t-eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}
.alt {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lime { color: var(--lime); }
.muted { color: var(--fg-2); }

.dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 0.6em;
  vertical-align: 0.05em;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(210, 255, 0, 0.55); }
  70% { box-shadow: 0 0 0 0.6em rgba(210, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 255, 0, 0); }
}

/* Split de palavras / caracteres */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0 0.12em;
  margin: -0.08em 0 -0.12em;
}
.wi { display: inline-block; will-change: transform; }
.mask { display: block; overflow: hidden; padding-top: 0.06em; }
.ch { display: inline-block; will-change: transform; }

/* Palavras com marca-texto lime */
.hl .wi {
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 50% / 0% 100%;
  padding: 0.04em 0.08em 0;
  border-radius: 0.06em;
  transition: background-size 0.9s var(--ease-out), color 0.4s;
}
.hl.is-on .wi { background-size: 100% 100%; color: var(--ink); }

/* Texto que "rola" no hover */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.15;
}
.roll > span { display: block; transition: transform 0.6s var(--ease-out); }
.roll::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
  transition: transform 0.6s var(--ease-out);
}
a:hover .roll > span, button:hover .roll > span,
a:hover .roll::after, button:hover .roll::after { transform: translateY(-100%); }

/* Botões ------------------------------------------------------------------- */
.btn {
  --bg: var(--lime);
  --fg: var(--ink);
  --fill: var(--fg-hover-fill, #ffffff);
  --fg-hover: var(--ink);
  --ab: var(--ink);
  --ac: var(--lime);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  height: 3.1rem;
  padding: 0 0.45rem 0 1.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.8rem;
  font-weight: 680;
  font-stretch: 108%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover { color: var(--fg-hover); }
.btn:hover::before { transform: none; }
.btn__arrow {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ab);
  color: var(--ac);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.4s, color 0.4s;
}
.btn__arrow svg { width: 0.85rem; }
.btn:hover .btn__arrow svg,
.path:hover .path__arrow svg,
.repo:hover .repo__arrow svg { animation: arrow 0.7s var(--ease-out); }
@keyframes arrow {
  0% { transform: translateX(0); }
  45% { transform: translateX(180%); }
  46% { transform: translateX(-180%); }
  100% { transform: translateX(0); }
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--fg);
  --fill: var(--lime);
  --fg-hover: var(--ink);
  --ab: var(--bg-4);
  --ac: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { --ab: var(--ink); --ac: var(--lime); }
.btn--ink {
  --bg: var(--ink);
  --fg: var(--fg);
  --fill: var(--bg-4);
  --fg-hover: var(--fg);
  --ab: var(--lime);
  --ac: var(--ink);
}
.btn--lg { height: 3.8rem; font-size: 0.9rem; padding-left: 1.9rem; }
.btn--lg .btn__arrow { width: 2.8rem; height: 2.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Cursor ------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor__ring {
  position: absolute;
  width: 12px;
  height: 12px;
  left: -6px;
  top: -6px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), left 0.5s var(--ease-out),
    top 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s, transform 0.3s;
}
.cursor.is-dark .cursor__ring { background: var(--ink); }
.cursor.is-hover .cursor__ring {
  width: 48px; height: 48px; left: -24px; top: -24px;
  background: rgba(210, 255, 0, 0.12);
  border-color: var(--lime);
}
.cursor.is-dark.is-hover .cursor__ring { background: rgba(10, 11, 7, 0.06); border-color: var(--ink); }
.cursor.is-label .cursor__ring,
.cursor.is-dark.is-label .cursor__ring {
  width: 92px; height: 92px; left: -46px; top: -46px;
  background: var(--lime);
  border-color: var(--lime);
}
.cursor.is-down .cursor__ring { transform: scale(0.82); }
.cursor__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-label .cursor__label { opacity: 1; }

/* Preloader ---------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.loader__sig { width: min(72vw, 36rem); color: var(--lime); }
.loader__sig path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: 1.2rem;
  font-size: clamp(4rem, 14vw, 13rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.loader__label { position: absolute; left: var(--gutter); bottom: 1.6rem; color: var(--fg-2); }
.loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; }
.loader__bar span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* Transição entre páginas -------------------------------------------------- */
.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.pt.is-active { pointer-events: auto; }
.pt__layer {
  position: absolute;
  left: -5%;
  width: 110%;
  top: -12vh;
  height: 124vh;
  border-radius: 50% / 12vh;
  transform: translateY(105%);
}
.is-pt .pt__layer { transform: none; }
.pt__layer--lime { background: var(--lime); }
.pt__layer--dark { background: var(--bg-2); display: grid; place-items: center; }
.pt__logo { width: 4.5rem; color: var(--lime); opacity: 0; }
.is-pt .pt__logo { opacity: 1; }

/* Navegação ---------------------------------------------------------------- */
.nav {
  --nav-fg: var(--fg);
  --nav-pill: rgba(237, 237, 230, 0.05);
  --nav-line: var(--line-2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  color: var(--nav-fg);
  transition: transform 0.7s var(--ease-out), color 0.4s;
}
.nav[data-theme="on-light"] {
  --nav-fg: var(--ink);
  --nav-pill: rgba(10, 11, 7, 0.06);
  --nav-line: var(--line-ink);
}
.nav.is-hidden { transform: translateY(-115%); }
.nav__left { display: flex; align-items: center; gap: 1.1rem; }

/* Troca de idioma (bandeiras) */
.lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--nav-pill);
  border: 1px solid var(--nav-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lang__btn {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  opacity: 0.45;
  filter: saturate(0.35);
  transition: opacity 0.3s, filter 0.3s, transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.lang__flag { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.lang__flag svg { width: 100%; height: 100%; }
.lang__btn:hover,
.lang__btn:focus-visible { opacity: 0.9; filter: none; transform: scale(1.08); }
.lang__btn[aria-pressed="true"] { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--lime); }

/* em inglês, o conteúdo espera a tradução antes de aparecer (evita piscar o português) */
.i18n-wait #main { visibility: hidden; }
.nav__logo { display: flex; align-items: center; gap: 0.75rem; }
.logo { width: 2.6rem; height: auto; color: currentColor; }
.nav__logo .logo { transition: transform 0.8s var(--ease-out); }
.nav__logo:hover .logo { transform: rotate(-10deg) scale(1.06); }
.nav__brand {
  font-weight: 760;
  font-stretch: 90%;
  font-size: 0.82rem;
  line-height: 0.95;
  text-transform: uppercase;
}
.nav__status {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--nav-pill);
  border: 1px solid var(--nav-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.7rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.3s;
}
.nav__status:hover { border-color: var(--lime); }
.nav__status strong { font-weight: 780; }
.nav__sep { width: 1px; height: 0.9rem; background: var(--nav-line); }
.nav__clock { font-variant-numeric: tabular-nums; opacity: 0.7; }
.nav__right { display: flex; align-items: center; gap: 0.6rem; }
.burger {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out);
}
.burger:hover { transform: scale(0.92); }
.burger span:not(.sr) {
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  margin-left: -0.575rem;
  background: currentColor;
  transition: transform 0.6s var(--ease-out);
}
.burger span:nth-child(1) { top: calc(50% - 4px); }
.burger span:nth-child(2) { top: calc(50% + 2px); }
.menu-open .burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Menu em tela cheia ------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  background: var(--bg-2);
  color: var(--fg);
  clip-path: circle(var(--r, 0px) at var(--ox, 95%) var(--oy, 2.6rem));
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  padding: calc(var(--nav-h) + 5vh) var(--gutter) 1.6rem;
  overflow: hidden;
}
.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 80% 40%, rgba(210, 255, 0, 0.07), transparent 70%);
}
.menu__nav { align-self: end; }
.menu__nav li { border-top: 1px solid var(--line); }
.menu__nav li:last-child { border-bottom: 1px solid var(--line); }
.menu__nav a { display: flex; align-items: center; gap: 1.4rem; padding: 0.35rem 0; }
.menu__num { width: 2rem; color: var(--lime); }
.menu__line { display: block; overflow: hidden; }
.menu__in {
  display: block;
  font-size: clamp(3rem, 8.2vw, 8.6rem);
  font-weight: 780;
  font-stretch: 88%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color 0.4s;
}
.menu__in .roll { line-height: 1.12; margin: -0.1em 0 -0.06em; }
.menu__nav ul:hover a:not(:hover) .menu__in { color: var(--fg-3); }
.menu__nav a.is-current .menu__in { color: var(--lime); }
.menu__aside { display: flex; flex-direction: column; gap: 1.6rem; justify-content: flex-end; min-height: 0; }
.menu__media {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 5;
  margin: 0 0 auto auto;
}
.menu__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0;
  transform: scale(0.85) rotate(-6deg);
  transition: opacity 0.5s, transform 0.9s var(--ease-out);
}
.menu__media img.is-active { opacity: 1; transform: rotate(3deg); }
.menu__socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.menu__socials a {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.menu__socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.menu__mail { font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 700; font-stretch: 92%; overflow-wrap: anywhere; }
.menu__mail:hover { color: var(--lime); }
.menu__foot { display: flex; justify-content: space-between; color: var(--fg-2); }

/* Hero (home) -------------------------------------------------------------- */
.hero {
  /* tamanhos do nome: "GUILHERME" mede ~3,34× a fonte e "LIMA" ~1,70×; o limite em svh protege telas baixas */
  --n1: min(calc((100vw - 2 * var(--gutter)) / 3.42), 46svh);
  --n2: min(36vw, 56svh);
  --top: calc(var(--nav-h) + 3vh);
  position: relative;
  height: 100svh;
  min-height: 42rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 66% 66%, rgba(210, 255, 0, 0.12), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, var(--bg-4), transparent 70%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 66% 66%, transparent 0 6.5vw, rgba(237, 237, 230, 0.04) 6.5vw calc(6.5vw + 1px));
  mask-image: radial-gradient(60% 60% at 66% 66%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 66% 66%, #000, transparent);
}
.hero__name { position: absolute; inset: 0; pointer-events: none; }
.hero__line {
  position: absolute;
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__line--1 {
  left: calc(var(--gutter) - 0.03em);
  top: var(--top);
  font-size: var(--n1);
  color: var(--fg);
}
.hero__line--2 {
  right: var(--gutter);
  bottom: 4vh;
  font-size: var(--n2);
  font-weight: 800;
  font-stretch: 80%;
  color: var(--lime);
}
.hero__eyebrow {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--top) + var(--n1) * 0.84 + 1.4rem);
  z-index: 3;
  color: var(--fg-2);
}
.hero__eyebrow strong { display: block; color: var(--fg); font-weight: 720; font-size: 0.85rem; margin-bottom: 0.25rem; }
.hero-card {
  position: absolute;
  left: var(--gutter);
  bottom: 3vh;
  z-index: 4;
  display: grid;
  gap: 0.75rem;
  width: 19rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(15, 16, 14, 0.62);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.4s, translate 0.6s var(--ease-out);
}
.hero-card:hover { border-color: var(--lime); translate: 0 -4px; }
.hero-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--fg-2); }
.hero-card__big { display: flex; align-items: baseline; gap: 0.6rem; }
.hero-card__big b { font-size: 3.6rem; font-weight: 800; font-stretch: 80%; line-height: 0.85; letter-spacing: -0.04em; color: var(--lime); }
.hero-card__big span { font-size: 0.86rem; line-height: 1.2; color: var(--fg); max-width: 11.5rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.mini-stats > span {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.5rem 0.45rem;
  border-radius: 0.6rem;
  background: rgba(237, 237, 230, 0.05);
  text-align: center;
}
.mini-stats b { font-size: 1.05rem; font-weight: 760; font-stretch: 88%; line-height: 1; }
.mini-stats small { font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.hero__scroll {
  position: absolute;
  left: calc(var(--gutter) + 21rem);
  bottom: 2.2rem;
  width: 1.5rem;
  height: 2.4rem;
  border: 1.5px solid var(--line-2);
  border-radius: 1rem;
  z-index: 4;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--lime);
  animation: wheel 1.8s var(--ease-io) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(0.9rem); opacity: 0; }
}

/* Selo giratório */
.badge { position: absolute; right: 4%; bottom: 4%; z-index: 3; width: clamp(7rem, 11vw, 10rem); aspect-ratio: 1; color: var(--lime); }
.badge > svg { width: 100%; animation: spin 16s linear infinite; }
.badge text { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; fill: currentColor; }
.badge__core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.badge__core svg { width: 42%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquees ----------------------------------------------------------------- */
.marquees {
  position: relative;
  height: clamp(9rem, 17vw, 16rem);
  overflow: hidden;
  background: var(--bg);
}
.marquee {
  position: absolute;
  left: -5%;
  top: 50%;
  width: 110%;
  padding: 1.05rem 0;
  overflow: hidden;
}
.marquee--lime { background: var(--lime); color: var(--ink); transform: translateY(-50%) rotate(-3deg); z-index: 2; }
.marquee--dark { background: var(--bg-3); color: var(--fg-2); transform: translateY(-50%) rotate(2.4deg); box-shadow: inset 0 0 0 1px var(--line); }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__item {
  padding: 0 1.4rem;
  font-size: clamp(1.6rem, 3.4vw, 3.3rem);
  font-weight: 780;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__star { width: clamp(1.2rem, 2.3vw, 2.2rem); flex: none; fill: currentColor; }

/* Sobre / manifesto -------------------------------------------------------- */
.intro { padding: clamp(6rem, 18vh, 12rem) var(--gutter) clamp(5rem, 14vh, 10rem); background: var(--bg); }
.intro__eyebrow { margin-bottom: clamp(2rem, 4vw, 3.5rem); color: var(--fg-2); }
.intro__text { font-size: clamp(2.4rem, 6.2vw, 7rem); max-width: 16em; }
.intro__text .alt { color: var(--lime); }
.intro__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.intro__foot p { max-width: 38ch; color: var(--fg-2); }
.intro__foot p strong { color: var(--fg); font-weight: 600; }
.signature { width: min(100%, 26rem); justify-self: end; color: var(--lime); }
.signature path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.intro__media { position: relative; justify-self: end; width: min(100%, 21rem); margin: 0 4vw 0 0; }
.intro__media .frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  rotate: 3deg;
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-2);
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.intro__media .signature { position: absolute; left: -32%; bottom: -12%; width: 92%; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }

/* Galeria horizontal ------------------------------------------------------- */
.hs {
  --hs-bg: var(--bg);
  --hs-fg: var(--fg);
  position: relative;
  overflow: hidden;
  background: var(--hs-bg);
  color: var(--hs-fg);
}
.hs__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: max-content;
  height: 100svh;
  padding: 0 clamp(2rem, 8vw, 8rem);
  will-change: transform;
}
.hs-card { flex: none; display: flex; flex-direction: column; gap: 0.85rem; }
.hs-card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.hs-card__media img { width: 124%; max-width: none; height: 100%; margin-left: -12%; object-fit: cover; }
.hs-card figcaption { display: flex; justify-content: space-between; gap: 1rem; color: var(--fg-2); }
.hs-card--tall .hs-card__media { width: clamp(16rem, 23vw, 25rem); aspect-ratio: 4 / 5; }
.hs-card--wide .hs-card__media { width: clamp(20rem, 38vw, 42rem); aspect-ratio: 3 / 2; }
.hs-card--sq .hs-card__media { width: clamp(14rem, 22vw, 24rem); aspect-ratio: 1; }
.hs-card--studio .hs-card__media { width: clamp(16rem, 26vw, 28rem); aspect-ratio: 446 / 250; }
.hs-card--up { align-self: flex-start; margin-top: calc(var(--nav-h) + 4vh); }
.hs-card--down { align-self: flex-end; margin-bottom: 6vh; }
.hs-quote { flex: none; width: clamp(22rem, 54vw, 58rem); font-size: clamp(2.6rem, 5.6vw, 6.2rem); }
.hs-quote .alt { color: var(--lime); }
.hs-num { flex: none; width: clamp(16rem, 26vw, 28rem); display: grid; gap: 1.5rem; }
.hs-num .t-giant { color: transparent; -webkit-text-stroke: 2px var(--lime); }
.hs-num p { max-width: 28ch; color: var(--fg-2); }
.hs-text { flex: none; width: clamp(16rem, 26vw, 26rem); display: grid; gap: 1.4rem; }
.hs-text .t-eyebrow { color: var(--lime); }

/* Caminhos (links grandes) ------------------------------------------------- */
.paths { position: relative; background: var(--bg-2); padding: clamp(4rem, 10vh, 8rem) 0; overflow: hidden; }
.paths__head { display: flex; justify-content: space-between; padding: 0 var(--gutter) 1.4rem; color: var(--fg-2); }
.path {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(12rem, 22rem) 4.6rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.6vw, 2.4rem) var(--gutter);
  border-top: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.5s;
}
.path:last-of-type { border-bottom: 1px solid var(--line); }
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.75s var(--ease-out);
}
.path:hover { color: var(--ink); }
.path:hover::before { transform: scaleY(1); transform-origin: bottom; }
.path__idx { color: var(--fg-2); transition: color 0.5s; }
.path:hover .path__idx { color: var(--ink); }
.path__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em; font-size: clamp(3.2rem, 9.5vw, 10.5rem); }
.path__title .alt { color: var(--lime); transition: color 0.5s; }
.path:hover .path__title .alt { color: var(--ink); }
.path__desc { color: var(--fg-2); transition: color 0.5s; }
.path:hover .path__desc { color: var(--ink); }
.path__desc strong { color: var(--fg); font-weight: 700; transition: color 0.5s; }
.path:hover .path__desc strong { color: var(--ink); }
.path__arrow {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.5s, color 0.5s, rotate 0.6s var(--ease-out), border-color 0.5s;
}
.path__arrow svg { width: 1.3rem; }
.path:hover .path__arrow { background: var(--ink); color: var(--lime); border-color: var(--ink); rotate: -45deg; }
.preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: clamp(13rem, 19vw, 19rem);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  transform: scale(0);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.preview img.is-active { opacity: 1; }

/* GitHub em números -------------------------------------------------------- */
.gh { background: var(--bg); padding: clamp(5rem, 14vh, 10rem) 0; }
.gh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 0 var(--gutter) 1rem;
}
.gh__hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 24rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 80% at 15% 100%, rgba(210, 255, 0, 0.12), transparent 70%),
    var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gh__hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--fg-2); }
.gh__hero-top svg { width: 1.4rem; color: var(--lime); }
.gh__big {
  display: block;
  font-size: clamp(5rem, 13vw, 12.5rem);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: var(--lime);
}
.gh__hero p { max-width: 34ch; color: var(--fg-2); }
.gh__hero p strong { color: var(--fg); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 11.5rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.kpi__label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 560; color: var(--fg-2); }
.kpi__label svg { width: 1rem; color: var(--lime); }
.kpi b { display: block; font-size: clamp(2.6rem, 4.4vw, 4.2rem); font-weight: 800; font-stretch: 84%; line-height: 0.85; letter-spacing: -0.03em; }
.kpi small { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--fg-2); }
.gh__note { margin: 1rem var(--gutter) 0; color: var(--fg-3); }

/* Gráfico de barras (uma série) */
.ghchart {
  margin: 1rem var(--gutter) 0;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ghchart__head { margin-bottom: 1.4rem; }
.ghchart__head h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 760; font-stretch: 88%; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.02em; }
.ghchart__head p { margin-top: 0.4rem; color: var(--fg-2); }
.bars { display: grid; gap: 0.1rem; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(9rem, 17rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  transition: background 0.3s;
}
.bar-row:hover,
.bar-row:focus-visible { background: rgba(237, 237, 230, 0.04); }
.bar-row__label { font-size: 0.95rem; font-weight: 620; color: var(--fg-2); overflow-wrap: anywhere; transition: color 0.3s; }
.bar-row:hover .bar-row__label,
.bar-row:focus-visible .bar-row__label { color: var(--fg); }
.bar-row__plot { display: flex; align-items: center; gap: 0.7rem; min-height: 1.6rem; border-left: 1px solid var(--line-2); }
.bar-row__bar {
  flex: none;
  height: 18px;
  width: calc((100% - 4.5rem) * var(--p, 0));
  background: var(--bar);
  border-radius: 0 4px 4px 0;
  transition: background 0.25s;
}
.bar-row:hover .bar-row__bar,
.bar-row:focus-visible .bar-row__bar { background: var(--lime); }
.bar-row__val { font-size: 0.9rem; font-weight: 700; color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ghchart__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.ghchart__table summary { cursor: pointer; list-style: none; color: var(--fg-2); }
.ghchart__table summary::-webkit-details-marker { display: none; }
.ghchart__table summary::before { content: "+ "; color: var(--lime); }
.ghchart__table[open] summary::before { content: "– "; }
.ghchart__table table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.9rem; }
.ghchart__table th,
.ghchart__table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.ghchart__table th { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.ghchart__table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ghchart__table th:not(:first-child) { text-align: right; }
.ghchart__table th:last-child:not(:nth-child(2)) { text-align: left; }

/* Seletor de métrica (fica acima do gráfico que controla) */
.seg { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; border: 1px solid var(--line-2); }
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.3rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: background 0.3s, color 0.3s;
}
.seg button svg { width: 0.85rem; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 var(--gutter); }

/* Tooltip */
.gh-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 450;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.4rem;
  max-width: 18rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.gh-tip.is-on { opacity: 1; }
.gh-tip b { font-size: 1.35rem; font-weight: 760; color: var(--fg); }
.gh-tip span { font-size: 0.8rem; color: var(--fg-2); }
.gh-tip small { grid-column: 1 / -1; margin-top: 0.15rem; font-size: 0.74rem; color: var(--fg-2); }

/* Marcos */
.milestones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem var(--gutter) 0; }
.milestones li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font-size: 0.9rem;
}
.milestones b { font-size: 1.1rem; font-weight: 780; font-stretch: 88%; color: var(--fg); }

/* Cabeçalho de seção ------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  padding: 0 var(--gutter);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; max-width: 28rem; justify-self: end; color: var(--fg-2); }
.section-head .t-eyebrow { margin-bottom: 1.4rem; color: var(--fg-2); }
.section-head .alt { color: var(--lime); }

/* Stack (carrossel) -------------------------------------------------------- */
.stack { background: var(--bg); padding: clamp(5rem, 14vh, 10rem) 0 clamp(4rem, 10vh, 8rem); overflow: hidden; }
.drag { overflow: hidden; padding: 0 var(--gutter); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.drag__track { display: flex; gap: clamp(0.9rem, 1.5vw, 1.5rem); width: max-content; will-change: transform; }
.hcard { flex: none; width: clamp(15rem, 21vw, 21rem); }
.hcard__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-3);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hcard__stage::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-4);
  transform: scale(0.9);
  transition: transform 0.8s var(--ease-out), background 0.5s;
}
.hcard:hover .hcard__stage::before { background: var(--lime); transform: scale(1.12); }
.stack-mono {
  position: relative;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.6rem, 6.4vw, 6.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
  transition: color 0.5s, transform 0.9s var(--ease-out);
}
.hcard:hover .stack-mono { color: var(--ink); transform: rotate(-6deg) scale(1.06); }
.hcard__num { position: absolute; left: 1rem; top: 0.9rem; color: var(--fg-3); }
.hcard__meta { display: grid; gap: 0.25rem; margin-top: 0.9rem; }
.hcard__name { font-size: 1.1rem; font-weight: 760; font-stretch: 90%; text-transform: uppercase; }
.hcard__meta p { color: var(--fg-2); font-size: 0.9rem; }
.drag__ctrl { display: flex; align-items: center; gap: 0.6rem; padding: 0 var(--gutter); margin-top: 2.2rem; }
.round-btn {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.round-btn svg { width: 1rem; }
.round-btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.drag__bar { position: relative; flex: 1; height: 2px; margin-left: 1rem; background: var(--line); overflow: hidden; }
.drag__bar span { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(0.2); }

/* Destaque (colab) --------------------------------------------------------- */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
  background: var(--bg-2);
  overflow: hidden;
}
.feature__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1.8rem; }
.feature__copy .t-eyebrow { color: var(--fg-2); }
.feature__copy .alt { color: var(--lime); }
.feature__copy .t-body-lg { max-width: 32ch; color: var(--fg-2); }
.feature__copy .t-body-lg strong { color: var(--fg); font-weight: 600; }
.feature__visual { position: relative; aspect-ratio: 1; }
.feature__item { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); background: var(--bg-3); }
.feature__item img { width: 100%; height: 100%; object-fit: cover; }
.feature__item--a { width: 44%; aspect-ratio: 3 / 4; left: 2%; top: 2%; rotate: -5deg; }
.feature__item--b { width: 64%; aspect-ratio: 3 / 2; right: 0; bottom: 8%; rotate: 3deg; }
.feature .badge { top: 3%; right: 8%; bottom: auto; }

/* Onde já estive (grade) --------------------------------------------------- */
.places { background: var(--bg); padding: clamp(5rem, 14vh, 10rem) 0; }
.places__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 var(--gutter);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.places__grid li {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transition: color 0.5s;
}
.places__grid li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  clip-path: circle(0% at var(--hx, 50%) var(--hy, 50%));
  transition: clip-path 0.8s var(--ease-out);
}
.places__grid li:hover { color: var(--ink); }
.places__grid li:hover::before { clip-path: circle(150% at var(--hx, 50%) var(--hy, 50%)); }
.place__name {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 780;
  font-stretch: 86%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease-out);
}
.place__name.is-big { font-size: clamp(2.6rem, 4.6vw, 4.6rem); color: var(--lime); transition: color 0.5s, transform 0.7s var(--ease-out); }
.places__grid li:hover .place__name { transform: scale(1.05); }
.places__grid li:hover .place__name.is-big { color: var(--ink); }
.places__grid .t-eyebrow { position: absolute; left: 1rem; bottom: 0.9rem; color: var(--fg-2); transition: color 0.5s; }
.places__grid li:hover .t-eyebrow { color: var(--ink); }

/* Redes (oval) ------------------------------------------------------------- */
.socials { background: var(--bg); padding: 2rem 0 6rem; overflow: hidden; }
.oval {
  --ox: 24%;
  --oy: 30%;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 8rem var(--gutter);
  background:
    radial-gradient(50% 45% at 50% 30%, rgba(210, 255, 0, 0.1), transparent 70%),
    var(--bg-3);
  color: var(--fg);
  clip-path: ellipse(var(--ox) var(--oy) at 50% 50%);
}
.oval__inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; text-align: center; }
.oval .alt { color: var(--lime); }
.oval__inner > .t-body,
.oval__inner > .t-eyebrow { color: var(--fg-2); }
.social-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 13rem)); gap: 1rem; margin-top: 2.5rem; }
.social-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-4);
  transition: transform 0.7s var(--ease-out);
}
.social-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) brightness(0.6); transition: transform 0.9s var(--ease-out), filter 0.5s; }
.social-card:hover { transform: translateY(-1rem) rotate(-2deg); }
.social-cards li:nth-child(even) .social-card:hover { transform: translateY(-1rem) rotate(2deg); }
.social-card:hover img { transform: scale(1.08); filter: none; }
.social-card__count {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.social-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 2.5rem 0.9rem 0.9rem;
  text-align: left;
  background: linear-gradient(transparent, rgba(9, 9, 11, 0.92));
}
.social-card__icon {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.social-card__icon svg { width: 1rem; }
.social-card__name { display: block; font-weight: 760; font-stretch: 90%; text-transform: uppercase; }
.social-card .t-eyebrow { font-size: 0.58rem; color: var(--fg-2); }

/* Rodapé ------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  color: var(--fg);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) 1.4rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.footer__col .t-eyebrow,
.footer__cta .t-eyebrow { color: var(--fg-2); }
.footer__col ul { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.2rem; }
.footer__col a {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 760;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--lime); }
.footer__cta { display: flex; flex-direction: column; gap: 1.2rem; max-width: 34rem; justify-self: end; width: 100%; }
.footer__tag { margin: 1rem 0 clamp(2rem, 5vw, 4rem); font-size: clamp(3.6rem, 13.5vw, 15rem); color: var(--fg); }
.footer__tag .alt { color: var(--lime); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
}
.footer__bottom nav { display: flex; gap: 1.4rem; }
.footer__bottom a:hover { color: var(--lime); }
.to-top {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.to-top svg { width: 1rem; }
.to-top:hover svg { animation: up 0.7s var(--ease-out); }
@keyframes up {
  0% { transform: translateY(0); }
  45% { transform: translateY(-180%); }
  46% { transform: translateY(180%); }
  100% { transform: translateY(0); }
}

/* Páginas internas --------------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  gap: 1.5rem 2rem;
  min-height: 92svh;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 2.5rem;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(45% 55% at 74% 38%, rgba(210, 255, 0, 0.1), transparent 70%);
}
.page-hero__eyebrow { grid-column: 1 / -1; color: var(--fg-2); }
.page-hero__title { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 2; }
.page-hero__title .alt { color: var(--lime); }
.page-hero__body { grid-row: 4; max-width: 34ch; color: var(--fg-2); }
.page-hero__meta { grid-row: 4; justify-self: end; align-self: end; display: flex; gap: 2.5rem; }
.page-hero__meta div { display: grid; gap: 0.3rem; }
.page-hero__meta b { font-size: 1.6rem; font-weight: 760; font-stretch: 88%; text-transform: uppercase; line-height: 1; }
.page-hero__meta span { color: var(--fg-2); }
.page-hero__media {
  position: absolute;
  right: calc(var(--gutter) + 2vw);
  top: calc(var(--nav-h) + 5vh);
  z-index: -1;
  width: min(30vw, 26rem);
}
.page-hero__media .frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  rotate: 4deg;
  box-shadow: 0 60px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-2);
}
.page-hero__media.is-wide { width: min(34vw, 28rem); }
.page-hero__media.is-wide .frame { aspect-ratio: 446 / 250; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg); border-top: 1px solid var(--line); }
.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 17rem;
  padding: 2.2rem var(--gutter);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: clamp(3rem, 5.6vw, 5.8rem);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.stat--hero .stat__num { font-size: clamp(3.8rem, 8vw, 8.4rem); color: var(--lime); }
.stat__label { display: flex; align-items: center; gap: 0.5rem; }
.stat__label svg { width: 0.95rem; color: var(--lime); }
.stat p { color: var(--fg-2); max-width: 22ch; }

.block { background: var(--bg-2); color: var(--fg); padding: clamp(5rem, 12vh, 9rem) 0; }
.block.is-alt { background: var(--bg); }

/* Lista de repositórios */
.repos { margin: 0 var(--gutter); }
.repo {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 8rem minmax(0, 1fr) minmax(0, 1.2fr) 4.5rem 4.5rem 2.6rem;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.8rem;
  border-top: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.4s;
}
.repos li:last-child .repo { border-bottom: 1px solid var(--line); }
.repo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.repo:hover { color: var(--ink); }
.repo:hover::before { transform: scaleY(1); transform-origin: bottom; }
.repo__idx { color: var(--fg-3); transition: color 0.4s; }
.repo__lang {
  justify-self: start;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: border-color 0.4s;
}
.repo__name { font-size: clamp(1.3rem, 2.4vw, 2.3rem); font-weight: 760; font-stretch: 88%; line-height: 0.95; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.repo__desc { color: var(--fg-2); transition: color 0.4s; }
.repo__stars, .repo__forks { justify-self: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.repo__stars svg, .repo__forks svg { display: inline-block; width: 0.8rem; vertical-align: -0.05em; margin-right: 0.3rem; color: var(--lime); transition: color 0.4s; }
.repo__forks { color: var(--fg-2); transition: color 0.4s; }
.repo:hover .repo__forks, .repo:hover .repo__forks svg { color: var(--ink); }
.repo__arrow { justify-self: end; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; overflow: hidden; }
.repo__arrow svg { width: 0.85rem; rotate: -45deg; }
.repo:hover .repo__idx,
.repo:hover .repo__desc,
.repo:hover .repo__stars svg { color: var(--ink); }
.repo:hover .repo__lang { border-color: var(--line-ink); }

/* Filtros + cards */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 var(--gutter) 2.5rem; }
.chip {
  height: 2.6rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--fg-2); }
.chip.is-active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1rem; margin: 0 var(--gutter); }
.ccard { display: block; }
.ccard.is-hidden { display: none; }
.ccard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 70% at var(--gx, 30%) var(--gy, 20%), rgba(210, 255, 0, 0.16), transparent 70%),
    var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ccard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(237, 237, 230, 0.035) 39px 40px);
}
.ccard__mono {
  position: relative;
  z-index: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(4rem, 8vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
  transition: transform 1.1s var(--ease-out);
}
.ccard:hover .ccard__mono { transform: scale(1.12) rotate(-4deg); }
.ccard__tag { position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--fg); color: var(--ink); }
.ccard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.ccard__title { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 760; font-stretch: 90%; text-transform: uppercase; line-height: 0.95; }
.ccard p { margin-top: 0.5rem; color: var(--fg-2); max-width: 36ch; }

/* Princípios */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 var(--gutter); }
.principle {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 20rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.5s, color 0.5s, translate 0.6s var(--ease-out);
}
.principle:hover { background: var(--lime); color: var(--ink); translate: 0 -6px; }
.principle__num { font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 800; font-stretch: 80%; line-height: 0.8; color: var(--lime); transition: color 0.5s; }
.principle:hover .principle__num { color: var(--ink); }
.principle h3 { margin-top: auto; font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 760; font-stretch: 88%; text-transform: uppercase; line-height: 0.92; }
.principle p { color: var(--fg-2); transition: color 0.5s; }
.principle:hover p { color: var(--ink); }

/* Palestras (acordeão) */
.talks { margin: 0 var(--gutter); }
.talk { border-top: 1px solid var(--line); }
.talk:last-child { border-bottom: 1px solid var(--line); }
.talk__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 6.5rem minmax(0, 1fr) minmax(0, 14rem) 8rem 3rem;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0.8rem;
  text-align: left;
  isolation: isolate;
  transition: color 0.4s;
}
.talk__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.talk__row:hover { color: var(--ink); }
.talk__row:hover::before { transform: scaleY(1); transform-origin: bottom; }
.talk.is-featured .talk__name { color: var(--lime); }
.talk__row:hover .talk__name { color: var(--ink); }
.talk__idx, .talk__date, .talk__org { color: var(--fg-2); transition: color 0.4s; }
.talk__row:hover .talk__idx,
.talk__row:hover .talk__date,
.talk__row:hover .talk__org { color: var(--ink); }
.talk__name { font-size: clamp(1.4rem, 3vw, 2.8rem); font-weight: 760; font-stretch: 88%; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.03em; transition: color 0.4s; }
.talk__type { justify-self: start; padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid currentColor; }
.talk__toggle { justify-self: end; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: rotate 0.5s var(--ease-out); }
.talk__toggle svg { width: 0.9rem; }
.talk.is-open .talk__toggle { rotate: 45deg; }
.talk__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.talk.is-open .talk__detail { grid-template-rows: 1fr; }
.talk__detail > div { overflow: hidden; }
.talk__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.5rem 0.8rem 2.5rem; }
.talk__photo { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.talk__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease-out); }
.talk.is-open .talk__photo img { transform: none; }
.talk__photo.is-mono { display: grid; place-items: center; background: radial-gradient(60% 70% at 30% 20%, rgba(210, 255, 0, 0.16), transparent 70%), var(--bg-3); }
.talk__photo.is-mono span { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 4.5rem; color: var(--lime); }
.talk__inner dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.5rem; }
.talk__inner dt { color: var(--fg-2); }
.talk__inner dd { font-weight: 700; }
.talk__text { display: grid; gap: 1.2rem; justify-items: start; color: var(--fg-2); }

.cta-card { display: grid; gap: 1rem; justify-self: end; align-self: end; grid-row: 4; width: min(100%, 24rem); }
.cta-card .t-body { color: var(--fg-2); }

/* Faixa "próxima página" */
.next {
  position: relative;
  display: block;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s;
}
.next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-3);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s var(--ease-out);
}
.next:hover { color: var(--lime); }
.next:hover::before { transform: scaleY(1); transform-origin: bottom; }
.next__top { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.next__title { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.next__title svg { width: clamp(3rem, 9vw, 9rem); flex: none; transition: transform 0.8s var(--ease-out); }
.next:hover .next__title svg { transform: translateX(1.5rem) rotate(-45deg); }

/* Responsivo --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__status-label, .nav__sep { display: none; }
  .social-cards { grid-template-columns: repeat(2, minmax(0, 12rem)); }
  .repo { grid-template-columns: 2.5rem 7rem minmax(0, 1fr) 4.5rem 4.5rem 2.4rem; }
  .repo__desc { display: none; }
  .gh__grid { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  :root { --nav-h: 4.5rem; }
  .nav__status, .nav__cta { display: none; }
  .menu { grid-template-columns: 1fr; align-content: space-between; }
  .menu__media { display: none; }
  .menu__nav { align-self: start; }
  /* no celular o nome empilha à esquerda: GUILHERME, LIMA e o texto logo abaixo */
  .hero { --n2: calc((100vw - 2 * var(--gutter)) / 1.78); --top: calc(var(--nav-h) + 2.5vh); }
  .hero__line--2 { left: calc(var(--gutter) - 0.03em); right: auto; bottom: auto; top: calc(var(--top) + var(--n1) * 0.84 + 0.4rem); }
  .hero__eyebrow { top: calc(var(--top) + var(--n1) * 0.84 + var(--n2) * 0.84 + 1.6rem); }
  .hero-card { left: var(--gutter); right: var(--gutter); width: auto; }
  .hero__scroll { display: none; }
  .intro__foot { grid-template-columns: 1fr; }
  .signature { justify-self: start; }
  .intro__media { justify-self: center; width: 72%; margin: 1.5rem 0 2.5rem; }
  .intro__media .signature { left: -10%; bottom: -14%; width: 78%; }
  .hs__track { flex-direction: column; align-items: stretch; width: auto; height: auto; padding: 5rem var(--gutter); }
  .hs-card--up, .hs-card--down { align-self: stretch; margin: 0; }
  .hs-card .hs-card__media { width: 100%; }
  .hs-card__media img { width: 100%; margin-left: 0; }
  .hs-quote, .hs-num, .hs-text { width: auto; }
  .path { grid-template-columns: minmax(0, 1fr) 3.4rem; gap: 1rem; }
  .path__idx, .path__desc { display: none; }
  .path__arrow { width: 3.4rem; height: 3.4rem; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__aside { justify-self: start; }
  .feature { grid-template-columns: 1fr; }
  .places__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oval { --ox: 70% !important; --oy: 80% !important; clip-path: ellipse(var(--ox) var(--oy) at 50% 50%); }
  .social-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cta { grid-column: 1 / -1; justify-self: start; }
  .page-hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto auto; }
  .page-hero__media, .page-hero__media.is-wide { width: 56vw; right: var(--gutter); opacity: 0.55; }
  .page-hero__body { grid-row: 4; }
  .page-hero__meta, .cta-card { grid-row: 5; justify-self: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); min-height: 12rem; }
  .repo { grid-template-columns: minmax(0, 1fr) auto auto 2.4rem; }
  .repo__idx, .repo__lang { display: none; }
  .gh__hero { min-height: 18rem; }
  .bar-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 14rem; }
  .talk__row { grid-template-columns: 2.5rem minmax(0, 1fr) 2.4rem; }
  .talk__date, .talk__org, .talk__type { display: none; }
  .talk__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav__brand { display: none; }
  .places__grid, .cgrid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .mini-stats b { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  body::after { animation: none; }
}
