/* =============================================================
   Gangoorra — Portfolio site
   Imports tokens + Nexa typeface from the design system root.
   ============================================================= */

@import url("tokens.css?v=20260804h");

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Com o scroll suavizado por JS ativo, o smooth nativo dobraria a animação e
   deixaria a rolagem arrastada. scrollIntoView({behavior:'smooth'}) continua valendo. */
html.has-smooth-scroll { scroll-behavior: auto; }
html, body {
  background: var(--gg-bg);
  color: var(--gg-fg);
  font-family: var(--gg-font-body);
  font-size: var(--gg-fs-body);
  line-height: var(--gg-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--gg-coral); color: var(--gg-paper); }

/* ---------- Container ---------- */
/* Coluna mais larga e sangria menor: com a barra lateral comendo 64px, 1280 deixava
   o conteúdo espremido no meio da tela. */
.container { max-width: 1560px; margin: 0 auto; padding: 0 clamp(20px, 2vw, 28px); }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark img { display: block; }
.wordmark__text {
  font: 700 14px/1 var(--gg-font-display);
  letter-spacing: 0.18em;
}

/* ---------- Header ---------- */
.gg-header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: rgba(22,22,22,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gg-line);
  transition: border-color 260ms var(--gg-ease), background 260ms var(--gg-ease);
}
.gg-header.scrolled { background: rgba(22,22,22,.92); }
.gg-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.gg-brand { display: inline-flex; }

.gg-nav {
  display: flex; align-items: center; gap: 32px;
  margin-left: auto; margin-right: 24px;
}
.gg-nav a {
  font: 500 13px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-fg-1);
  padding: 8px 0;
  position: relative;
  transition: color 260ms var(--gg-ease);
}
.gg-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gg-coral);
  transition: width 260ms var(--gg-ease);
}
.gg-nav a:hover { color: var(--gg-fg); }
.gg-nav a:hover::after { width: 100%; }
.gg-nav a.is-active { color: var(--gg-coral); }
.gg-nav a.is-active::after { width: 100%; }

/* hamburger menu button */
.gg-menu-btn {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--gg-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 260ms var(--gg-ease);
}
.gg-menu-btn:hover { border-color: var(--gg-coral); background: rgba(255,74,84,.06); }
.gg-menu-btn span { display: block; width: 20px; height: 2px; background: var(--gg-fg); border-radius: 1px; }
.gg-menu-btn:hover span { background: var(--gg-coral); }

/* ---------- Side menu drawer ---------- */
.gg-side-menu { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.gg-side-menu.open { pointer-events: auto; }

.gg-side-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,15,.6);
  opacity: 0;
  transition: opacity 420ms var(--gg-ease);
}
.gg-side-menu.open .gg-side-menu__backdrop { opacity: 1; }

.gg-side-menu__panel {
  position: absolute; top: 0; bottom: 0;
  right: -400px;
  width: 380px; max-width: 90vw;
  background: var(--gg-bg);
  border-left: 1px solid var(--gg-line);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: right 420ms var(--gg-ease);
  will-change: right;
}
.gg-side-menu.open .gg-side-menu__panel { right: 0; }

.gg-side-menu__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px;
}
.gg-side-menu__lang { display: flex; flex-direction: column; gap: 4px; }
.gg-side-menu__lang button {
  background: none; border: none; color: var(--gg-fg-2);
  font: 400 14px/1.6 var(--gg-font-body); text-align: left; cursor: pointer;
  transition: color 200ms;
  padding: 0;
}
.gg-side-menu__lang button.active { color: var(--gg-coral); }
.gg-side-menu__lang button:hover { color: var(--gg-fg); }

.gg-side-menu__close {
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--gg-line);
  border-radius: 8px; color: var(--gg-fg); font-size: 14px; cursor: pointer;
  transition: all 200ms;
}
.gg-side-menu__close:hover { border-color: var(--gg-coral); color: var(--gg-coral); }

.gg-side-menu__nav { display: flex; flex-direction: column; gap: 5px; }
.gg-side-menu__nav a {
  font: 500 24px/1.2 var(--gg-font-display);
  color: var(--gg-fg-1);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 200ms;
  display: inline-flex;
  align-items: center;
  width: max-content;
  /* Este é o menu do celular: 29px de altura de linha deixava o alvo de toque
     abaixo do mínimo. O padding entra no lugar de parte do gap, então o ritmo
     visual quase não muda e a área clicável passa de 29 para 43px. */
  min-height: 43px;
  padding: 4px 0;
}
.gg-side-menu__nav a:hover { color: var(--gg-fg); }
.gg-side-menu__nav a.active { color: var(--gg-coral); }
.gg-side-menu__wa {
  margin-top: 12px;
  color: #4CB782 !important;
}

.gg-side-menu__foot {
  margin-top: auto;
  display: flex; justify-content: space-between;
  font: 400 11px/1 var(--gg-font-mono);
  letter-spacing: 0.12em;
  color: var(--gg-fg-3);
  border-top: 1px solid var(--gg-line);
  padding-top: 18px;
}

/* ---------- Buttons ---------- */
.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* asymmetric horizontal padding compensates for the arrow's visual weight on the right */
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  font: 500 13px/1 var(--gg-font-body);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  transition: all 260ms var(--gg-ease);
}
.gg-btn > span:first-child {
  /* keep the label visually centered with the arrow */
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.gg-btn.primary { background: var(--gg-coral); color: #fff; }
.gg-btn.primary:hover {
  background: var(--gg-coral-soft);
  box-shadow: 0 0 32px -4px rgba(255,74,84,.55);
  transform: translateY(-1px);
}
.gg-btn.ghost { color: var(--gg-fg); border-color: var(--gg-line-strong); }
.gg-btn.ghost:hover {
  background: var(--gg-paper); color: var(--gg-ink); border-color: var(--gg-paper);
}
.gg-btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font: 700 11px/1 var(--gg-font-mono);
  flex-shrink: 0;
  transition: transform 260ms var(--gg-ease);
}
.gg-btn.ghost .arrow { background: rgba(245,245,245,.12); }
.gg-btn:hover .arrow { transform: rotate(45deg); }

/* ---------- Eyebrow / morse strip ---------- */
.gg-eyebrow {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.24em;
  color: var(--gg-fg-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.gg-eyebrow .glyphs { display: inline-flex; gap: 4px; align-items: center; }
.gg-eyebrow .dash { display: inline-block; width: 16px; height: 3px; background: var(--gg-coral); }
.gg-eyebrow .dot  { display: inline-block; width: 3px;  height: 3px; background: var(--gg-coral); border-radius: 50%; }

/* ---------- Reveal animation (refined easing + mask sweep) ----------
   Easing escolhido para imitar o feel de portfolios premium tipo
   Thiago Designer / Awwwards: curva mais lenta no início e snap final.
   Duração ampliada para 720ms para sensação de "deliberate motion". */
.reveal {
  opacity: 0;
  /* Direção por variável: o padrão sobe, mas qualquer bloco pode entrar da esquerda,
     da direita ou com escala só setando --rev-x / --rev-y / --rev-s no elemento. */
  transform: translate3d(var(--rev-x, 0), var(--rev-y, 36px), 0) scale(var(--rev-s, 1));
  transition:
    opacity 1s var(--gg-ease),
    transform 1s var(--gg-ease),
    clip-path 1s var(--gg-ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Imagem entra com um leve zoom-out por cima do reveal do container. */
.reveal-img img,
.reveal-img .ph,
.reveal-img video {
  transform: scale(1.08);
  transition: transform 1.2s var(--gg-ease);
}
.reveal-img.in img,
.reveal-img.in .ph,
.reveal-img.in video { transform: scale(1); }

/* Variante "sweep" para imagens — clip-path desce como cortina */
.reveal-sweep {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1100ms cubic-bezier(.7,0,.3,1);
}
.reveal-sweep.in {
  clip-path: inset(0 0 0 0);
}

/* Variante "split" para textos grandes (hero titles) — cada letra sobe
   com pequeno stagger. Aplicado via classe; o JS divide o texto. */
.reveal-split { display: inline-block; overflow: hidden; }
.reveal-split .ch {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 900ms var(--gg-ease),
              opacity   900ms var(--gg-ease);
  transition-delay: calc(var(--i, 0) * 28ms);
}
.reveal-split.in .ch { transform: translateY(0); opacity: 1; }
.reveal-split .ch--space { width: 0.28em; }

/* Reduce motion: kill the choreography */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-sweep, .reveal-split .ch,
  .reveal-img img, .reveal-img .ph, .reveal-img video {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* ---------- Hero ---------- */
.hero-v2 {
  position: relative;
  /* Tela cheia de verdade: svh usa a altura com a barra do navegador visível, então
     nada da seção seguinte aparece antes de rolar. vh fica de reserva pra browser antigo. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #0a0a0a;
}
/* Hero image as full-width background of the section */
.hero-v2__bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Dark tint overlay for text legibility — sem coral, apenas escurecimento neutro */
.hero-v2__bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,.45) 0%, rgba(15,15,15,.25) 40%, rgba(15,15,15,.7) 100%);
}

.hero-v2__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 32px 48px;
  width: 100%;
  gap: 14px;
}
.hero-v2__top { display: flex; justify-content: flex-start; padding-top: 4px; }
/* Card sits no canto superior direito, junto da linha do morse,
   sem esticar e sem deixar o espaço enorme acima.                  */
.hero-v2__center {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0;
}
.hero-v2__card-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.hero-v2__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 3;
}
.hero-v2__eyebrow {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.24em;
  color: var(--gg-coral);
  margin-bottom: 12px;
}
.hero-v2__name {
  font: 400 clamp(28px, 3.6vw, 42px)/1.05 var(--gg-font-display);
  letter-spacing: -0.01em;
  color: var(--gg-fg);
}
.hero-v2__name span { font-weight: 700; }
.hero-v2__socials { display: flex; gap: 14px; margin-top: 22px; }
.hero-v2__socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gg-line-strong);
  border-radius: 50%;
  color: var(--gg-fg-1);
  text-decoration: none;
  transition: color 260ms var(--gg-ease),
              border-color 260ms var(--gg-ease),
              background 260ms var(--gg-ease),
              transform 260ms var(--gg-ease),
              box-shadow 260ms var(--gg-ease);
}
.hero-v2__socials a svg {
  width: 14px; height: 14px;
  display: block;
}
.hero-v2__socials a:hover {
  color: var(--gg-coral);
  border-color: var(--gg-coral);
  background: rgba(255,74,84,.06);
  transform: translateY(-2px);
  box-shadow: 0 0 24px -6px rgba(255,74,84,.5);
}
.hero-v2__year {
  font: 400 20px/1 var(--gg-font-mono);
  letter-spacing: 0.1em;
  color: var(--gg-gold);
  opacity: 0.85;
  align-self: flex-end;
  position: relative;
}
.hero-v2__year::before {
  content: "";
  display: inline-block;
  width: 12px; height: 2px;
  background: var(--gg-gold);
  margin-right: 10px;
  vertical-align: middle;
  opacity: 0.6;
}

/* Generalista card — fundo opaco para não depender do backdrop-filter
   (que aplica tarde e gera flash visual). Visual fica consistente já
   no primeiro paint, e o blur só refina sutilmente em browsers que suportam. */
.gen-card {
  width: min(380px, 100%);
  align-self: flex-start;            /* não estica em altura no flex parent */
  background: rgba(15,15,15,.88);    /* quase opaco, look sólido */
  border: 1px solid var(--gg-line);
  border-radius: 14px;
  padding: 24px 24px 20px;
  position: relative;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gen-card__head { display: flex; align-items: center; justify-content: space-between; }
.gen-card h3 {
  font: 400 26px/1 var(--gg-font-display);
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--gg-fg);
}
.gen-card__info {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gg-line-strong);
  background: transparent;
  color: var(--gg-fg);
  font: 400 14px/1 var(--gg-font-body);
  font-style: italic;
  cursor: pointer;
  transition: all 200ms;
}
.gen-card__info:hover { border-color: var(--gg-coral); color: var(--gg-coral); }
.gen-card__phon {
  font: 400 11px/1 var(--gg-font-mono);
  color: var(--gg-gold);
  letter-spacing: 0.1em;
  margin-top: 6px;
  opacity: 0.75;
}
.gen-card__def {
  font: 400 13px/1.55 var(--gg-font-body);
  color: var(--gg-fg-1);
  margin-top: 16px;
}
.gen-card__src {
  font: 400 11px/1.4 var(--gg-font-body);
  color: var(--gg-fg-3);
  letter-spacing: 0.04em;
  margin-top: 14px;
}
.gen-card__src em { color: var(--gg-fg-2); font-style: italic; }

/* ---------- Coral slash divider between sections ---------- */
.slash {
  height: 6px;
  background: var(--gg-coral);
  transform: skewY(-1.5deg);
  margin: 0;
  box-shadow: 0 0 40px -4px rgba(255,74,84,.45);
}

/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 56px; gap: 24px; flex-wrap: wrap;
}
.section-head h2 {
  font: 600 clamp(30px, 3.6vw, 52px)/1.0 var(--gg-font-display);
  letter-spacing: -0.02em;
}
.section-head .meta {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
  max-width: 360px;
}
.section-head .meta p {
  font: 400 15px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
}

/* ---------- Services list ---------- */
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--gg-line);
  cursor: pointer;
  transition: padding 260ms var(--gg-ease);
}
.svc-item:first-child { border-top: none; }
.svc-item:last-child { border-bottom: 1px solid var(--gg-line); }
.svc-item:hover { padding-left: 16px; }
.svc-item .num {
  font: 500 13px/1 var(--gg-font-mono);
  letter-spacing: 0.2em;
  color: var(--gg-gold);
  opacity: 0.7;
  transition: opacity 260ms var(--gg-ease);
}
.svc-item:hover .num { opacity: 1; }
.svc-item h3 {
  font: 600 clamp(22px, 2.4vw, 36px)/1.1 var(--gg-font-display);
  letter-spacing: -0.01em;
  transition: color 260ms var(--gg-ease);
}
.svc-item:hover h3 { color: var(--gg-coral); }
.svc-item .arrow-big {
  font-size: 32px; color: var(--gg-fg-2);
  transition: transform 260ms var(--gg-ease), color 260ms var(--gg-ease);
}
.svc-item:hover .arrow-big { color: var(--gg-coral); transform: rotate(-45deg); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: start;
  /* Sem max-width — o grid herda a largura do .container (1280px com
     32px de sangria), igual ao restante das seções da página.        */
}
.about-copy { display: flex; flex-direction: column; gap: 24px; }
.about-title {
  font: 600 clamp(24px, 2.8vw, 40px)/1.2 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.about-title .accent { color: var(--gg-coral); }
.about-title .accent-gold { color: var(--gg-gold); }
.about-copy p {
  font: 400 16px/1.7 var(--gg-font-body);
  color: var(--gg-fg-1);
  max-width: 54ch;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.about-stats .stat {
  border-top: 1px solid var(--gg-line);
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-stats .num {
  font: 600 clamp(36px, 3.6vw, 52px)/1 var(--gg-font-display);
  letter-spacing: -0.02em;
}
.about-stats .num .unit { color: var(--gg-coral); font-size: 0.55em; vertical-align: top; margin-left: 2px; }
.about-stats .lbl {
  font: 500 11px/1.3 var(--gg-font-mono);
  letter-spacing: 0.22em;
  color: var(--gg-fg-2);
}

/* ---------- Trabalhos em destaque — tira sanfonada ----------
   Referência: elephant-skin.com, seção "Projects People Want To Own".
   Mecânica: todas as fatias nascem iguais (flex:1) com a arte em `cover` e um
   leve scale(1.03), então em repouso cada peça aparece ENQUADRADA numa faixa
   vertical. No hover a fatia cresce, as irmãs encolhem e o scale volta a 1 —
   é isso que dá a sensação de "preencher" em vez de simplesmente ampliar.
   Transição no `flex`, não em width/transform, pra o texto reflowar junto. */
.folio-acc {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 72vh;
  min-height: 520px;
  /* o hover cresce a fatia pra fora da caixa de 6px; clip evita barra lateral */
  overflow: hidden;
  border-radius: var(--gg-r-3);
}
.folio-acc__card {
  position: relative;
  /* A fatia é o container de consulta: o rótulo mede a si mesmo contra a
     largura DELA, então cresce sozinho quando a sanfona abre. Sem isso,
     "Identidade visual" em 1.7vw estourava a fatia comprimida e sumia. */
  container-type: inline-size;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  isolation: isolate;
  transition: flex 600ms cubic-bezier(.7, 0, .2, 1),
              border-color 420ms var(--gg-ease);
}
.folio-acc__bg,
.folio-acc__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 900ms var(--gg-ease);
}
.folio-acc__vid { z-index: 0; pointer-events: none; }
.folio-acc__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Mais fundo que o da referência de propósito: metade do acervo é peça clara
     (camiseta em fundo branco, mockup de papel) e o rótulo sumia em cima delas. */
  background: linear-gradient(to top,
              rgba(6,6,6,.92) 0%, rgba(6,6,6,.5) 30%, transparent 58%);
}
.folio-acc__meta {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 26px 22px;
}
.folio-acc__idx {
  font: 500 12px/1 var(--gg-font-mono);
  letter-spacing: .22em;
  color: var(--gg-gold);
}
.folio-acc__meta h3 {
  margin-top: 10px;
  font: 600 clamp(15px, 8.5cqi, 28px)/1.08 var(--gg-font-display);
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
/* A tag só existe na fatia aberta: em repouso a largura não comporta duas
   linhas de rótulo sem virar sopa de letras cortada. */
.folio-acc__tag {
  display: block;
  margin-top: 10px;
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gg-coral);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 420ms var(--gg-ease),
              transform 420ms var(--gg-ease),
              max-height 420ms var(--gg-ease);
}
.folio-acc:hover .folio-acc__card { flex: 0.7 1 0; }
.folio-acc .folio-acc__card:hover,
.folio-acc .folio-acc__card:focus-visible {
  flex: 3.4 1 0;
  border-color: rgba(255,74,84,.5);
}
.folio-acc__card:hover .folio-acc__bg,
.folio-acc__card:hover .folio-acc__vid,
.folio-acc__card:focus-visible .folio-acc__bg,
.folio-acc__card:focus-visible .folio-acc__vid { transform: scale(1); }
.folio-acc__card:hover .folio-acc__tag,
.folio-acc__card:focus-visible .folio-acc__tag {
  opacity: 1;
  max-height: 40px;
  transform: none;
}

/* Sem hover (toque) a sanfona não tem gatilho: vira pilha, com a tag sempre
   visível porque não há mais nada que a revele. */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .folio-acc {
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 8px;
  }
  .folio-acc__card { flex: 0 0 auto !important; height: 210px; }
  .folio-acc__bg, .folio-acc__vid { transform: none; }
  .folio-acc__tag { opacity: 1; max-height: 40px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .folio-acc__card,
  .folio-acc__bg,
  .folio-acc__vid,
  .folio-acc__tag { transition: none; }
}

/* placeholder ph backgrounds */
.ph { position: relative; overflow: hidden; }
.ph-1 { background: linear-gradient(135deg, #3a1f1f, #1a0f0f); }
.ph-1::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 35% 55%, rgba(255,107,115,.45), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(228,176,5,.18), transparent 55%);
}
.ph-2 { background: #111; }
.ph-2::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,74,84,.3) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.ph-3 { background: linear-gradient(135deg, #2c2d2d, #1a1a1a); }
.ph-3::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(228,176,5,.55), transparent 60%);
  filter: blur(20px);
}
.ph-4 { background: linear-gradient(135deg, #1a1a1a, #2c2d2d); }
.ph-4::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(255,74,84,.4) 41%, rgba(255,74,84,.4) 43%, transparent 44%),
    linear-gradient(135deg, transparent 55%, rgba(245,245,245,.08) 56%, transparent 57%);
}
.ph-5 { background: var(--gg-coral); }
.ph-5::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.ph-6 { background: #0f0f0f; }
.ph-6::before {
  content: ""; position: absolute; inset: 20%;
  background: repeating-linear-gradient(45deg, rgba(245,245,245,.06) 0 2px, transparent 2px 14px);
  border-left: 1px solid rgba(255,74,84,.4);
}

/* ---------- Contact / Footer CTA ---------- */
.contact {
  padding: 144px 0;
  text-align: center;
  border-top: 1px solid var(--gg-line);
  border-bottom: 1px solid var(--gg-line);
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(255,74,84,.08) 0%, transparent 60%);
}
.contact .container { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.contact .email {
  display: block;
  font: 700 clamp(32px, 4.5vw, 64px)/1 var(--gg-font-display);
  letter-spacing: -0.02em;
  transition: color 260ms var(--gg-ease);
  text-transform: lowercase;
  transform: none !important; /* lock against any inherited transform */
}
.contact .email:hover { color: var(--gg-coral); }
.contact .email .at { color: var(--gg-coral); }
.contact-meta {
  display: flex; gap: 16px;
  font: 400 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-fg-3);
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--gg-line);
}
.footer .row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gg-line);
}
.footer .socials { display: flex; gap: 24px; flex-wrap: wrap; }
.footer .socials a {
  font: 500 12px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-fg-2);
  transition: color 200ms;
}
.footer .socials a:hover { color: var(--gg-coral); }
.footer-copy {
  text-align: center;
  font: 400 11px/1.5 var(--gg-font-mono);
  color: var(--gg-fg-3);
  letter-spacing: 0.1em;
  padding-top: 32px;
}
.footer-copy a { color: var(--gg-fg-2); text-decoration: none; transition: color 200ms; }
.footer-copy a:hover { color: var(--gg-coral); }

/* ---------- Services marquee (symmetric, baseline-aligned) ----------
   .marquee é o "trilho" — usa flex p/ centralizar verticalmente o
   track. Track e items compartilham o mesmo gap (40px) para que
   cada dot tenha exatamente a mesma distância da palavra antes e depois.
   O dot tem align-self:center + translateY(-1px) para alinhar com o
   centro ótico do texto Nexa (que tem ascenders altas).               */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  padding: 18px 0;
  border-top: 1px solid var(--gg-line);
  border-bottom: 1px solid var(--gg-line);
  display: flex;
  align-items: center;
}
.marquee .track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee .item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 0;
  font: 600 16px/1 var(--gg-font-display);
  color: var(--gg-fg-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 260ms var(--gg-ease);
}
.marquee .item:hover { color: var(--gg-fg); }
.marquee .item .sep {
  width: 6px; height: 6px;
  background: var(--gg-coral);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  align-self: center;
  margin: 0;
  transform: translateY(-1px);   /* alinha com o eixo x-height do glyph */
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Project overlay (category gallery) ---------- */
.proj-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 260ms var(--gg-ease-out);
}
.proj-overlay.open { display: flex; opacity: 1; }
.proj-overlay__close {
  position: fixed; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gg-line-strong);
  background: var(--gg-bg-1);
  color: var(--gg-fg);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
  z-index: 1;
}
.proj-overlay__close:hover { border-color: var(--gg-coral); color: var(--gg-coral); }
.proj-overlay__inner {
  max-width: 1280px;
  margin: auto;
  background: var(--gg-bg-1);
  border-radius: 18px;
  border: 1px solid var(--gg-line);
  overflow: hidden;
  width: 100%;
}
.proj-overlay__body { padding: 48px; }
.proj-overlay__head { margin-bottom: 40px; }
.proj-overlay__count {
  margin-left: 12px;
  color: var(--gg-gold);
  letter-spacing: 0.18em;
}
.proj-overlay__title {
  font: 600 clamp(28px, 3.4vw, 44px)/1.05 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.proj-overlay__sub {
  font: 400 15px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  margin-top: 14px;
  max-width: 54ch;
}
/* Categoria sem cliente cai aqui. Grid esticava toda célula até a altura da mais
   alta da linha, e o V2 mistura 4:5, 9:16, 16:9 e mockup 3:2 na mesma categoria.
   Masonry por colunas, igual à vista agrupada: cada peça mantém sua proporção. */
.proj-overlay__grid {
  columns: 4 220px;
  column-gap: 12px;
}
.proj-overlay__cell {
  background: var(--gg-bg-2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 260ms var(--gg-ease), box-shadow 260ms var(--gg-ease);
  border: 1px solid transparent;
  break-inside: avoid;
  margin-bottom: 12px;
  /* placeholder enquanto o lazy-load não hidrata (masonry precisa de altura) */
  min-height: 120px;
}
.proj-overlay__cell::before {
  content: "";
  position: absolute;
  inset: -18px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(.42) saturate(1.08);
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 260ms var(--gg-ease);
}
.proj-overlay__cell[data-kind="image"][data-loaded="1"]::before { opacity: 1; }
.proj-overlay__cell:hover {
  transform: translateY(-2px);
  border-color: var(--gg-coral);
  box-shadow: var(--gg-glow-coral);
}
.proj-overlay__cell img,
.proj-overlay__cell video {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}
.proj-overlay__cell img {
  object-fit: contain;
  background: transparent;
}
/* A proporção vem dos dados do vídeo; 16/9 é só a reserva se faltar a medida. */
.proj-overlay__cell video { aspect-ratio: var(--vid-ratio, 16/9); object-fit: cover; }
.proj-overlay__cell[data-loaded="1"] { min-height: 0; }
.proj-overlay__cell .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 50%);
  pointer-events: none;
}
.proj-overlay__cell .play::after {
  /* triângulo desenhado: a Nexa não tem U+25B6 e o fallback saía de outra fonte */
  content: "";
  width: 0; height: 0;
  border-left: 15px solid rgba(255,255,255,.92);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

/* ---------- Overlay — Grouped (per-client) view ---------- */
.proj-overlay__grid.is-grouped {
  display: block;
  columns: auto;
  column-gap: 0;
}

/* Quick-jump chips bar */
.proj-overlay__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  margin-bottom: 32px;
  background: var(--gg-bg-2);
  border: 1px solid var(--gg-line);
  border-radius: 14px;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.proj-overlay__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--gg-line-strong);
  border-radius: 999px;
  font: 500 12px/1 var(--gg-font-body);
  letter-spacing: 0.02em;
  color: var(--gg-fg-1);
  text-decoration: none;
  background: var(--gg-bg-1);
  transition: color 180ms, border-color 180ms, transform 180ms;
}
.proj-overlay__chip .ct {
  font: 500 10px/1 var(--gg-font-mono, var(--gg-font-body));
  letter-spacing: 0.12em;
  color: var(--gg-gold);
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--gg-line);
}
.proj-overlay__chip:hover {
  color: var(--gg-fg);
  border-color: var(--gg-coral);
  transform: translateY(-1px);
}

/* Each client section */
.proj-overlay__section {
  padding-top: 8px;
  margin-bottom: 56px;
  scroll-margin-top: 88px;
}
.proj-overlay__section:last-child { margin-bottom: 12px; }

.proj-overlay__section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gg-line);
}
.proj-overlay__section-head .num {
  font: 500 11px/1 var(--gg-font-mono, var(--gg-font-body));
  letter-spacing: 0.22em;
  color: var(--gg-gold);
  padding-top: 4px;
}
.proj-overlay__section-head .name {
  font: 600 clamp(20px, 2.1vw, 26px)/1.15 var(--gg-font-display);
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
  text-transform: none;
  color: var(--gg-fg);
}
.proj-overlay__section-head .count {
  font: 500 11px/1 var(--gg-font-mono, var(--gg-font-body));
  letter-spacing: 0.18em;
  color: var(--gg-fg-1);
  white-space: nowrap;
}

/* Masonry por colunas: cada peça mantém a própria proporção, zero corte. */
.proj-overlay__section-grid {
  columns: 4 220px;
  column-gap: 12px;
}

/* =============================================================
   PORTFOLIO PAGE — folio-hero, folio-strip, folio-cats, folio-numbers
   ============================================================= */

/* ---------- Folio Hero ---------- */
.folio-hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.folio-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.folio-hero__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gg-line);
  box-shadow: var(--gg-shadow-lg);
}
.folio-hero__frame {
  position: absolute; inset: 0;
}
.folio-hero__frame::before {
  content: ""; position: absolute; inset: -24px;
  background-image: var(--cover);
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(.45);
  transform: scale(1.12);
}
.folio-hero__frame img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.folio-hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.55), transparent 45%),
    linear-gradient(135deg, rgba(255,74,84,.10), transparent 50%);
  pointer-events: none;
}
.folio-hero__badge {
  position: absolute;
  top: 20px; left: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22,22,22,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-fg-1);
}
.folio-hero__badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CB782;
  box-shadow: 0 0 12px rgba(76,183,130,.7);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.folio-hero__content {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.folio-hero__greet {
  font: 500 13px/1 var(--gg-font-mono);
  letter-spacing: 0.24em;
  color: var(--gg-coral);
}
.folio-hero__title {
  font: 700 clamp(56px, 8vw, 124px)/0.92 var(--gg-font-display);
  letter-spacing: -0.03em;
  color: var(--gg-fg);
}
.folio-hero__title .hl {
  color: var(--gg-coral);
}
.folio-hero__sub {
  font: 400 16px/1.65 var(--gg-font-body);
  color: var(--gg-fg-1);
  max-width: 52ch;
}
.folio-hero__sub strong {
  color: var(--gg-fg);
  font-weight: 600;
}
.folio-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.folio-hero__services {
  /* Uma linha só: cada item vira número + rótulo lado a lado e a fonte encolhe
     junto com a coluna, em vez de o grid quebrar em duas fileiras. */
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: clamp(8px, 1.4cqi, 22px);
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--gg-line);
  list-style: none;
}
.folio-hero__services li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.folio-hero__services .num {
  font: 500 clamp(8px, 1.55cqi, 11px)/1 var(--gg-font-mono);
  letter-spacing: 0.22em;
  color: var(--gg-gold);
  opacity: 0.85;
}
.folio-hero__services .lbl {
  font: 600 clamp(10px, 1.95cqi, 14px)/1.25 var(--gg-font-display);
  letter-spacing: -0.01em;
  color: var(--gg-fg);
}
.folio-hero__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 72ch;
  margin: -10px 0 0;
  font: 400 12px/1.5 var(--gg-font-body);
  color: var(--gg-fg-2);
  text-wrap: pretty;
}
.folio-hero__note-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--gg-coral);
  border-radius: 50%;
  color: var(--gg-coral);
  font: 700 11px/1 var(--gg-font-mono);
}

/* ---------- Folio Strip (tilted horizontal scroll) ---------- */
.folio-strip {
  padding: 64px 0 96px;
  border-top: 1px solid var(--gg-line);
  overflow: hidden;
  position: relative;
}
/* Fade nas bordas do trilho — entrada/saída suave */
.folio-strip::before,
.folio-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 12vw;
  max-width: 180px;
  pointer-events: none;
  z-index: 2;
}
.folio-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--gg-bg-0) 0%, transparent 100%);
}
.folio-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--gg-bg-0) 0%, transparent 100%);
}
.folio-strip__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.folio-strip__title {
  font: 600 clamp(28px, 3.4vw, 48px)/1 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.folio-strip__copy {
  font: 400 14px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  max-width: 38ch;
}
.folio-strip {
  /* Pula render fora do viewport — economiza paint e composite */
  content-visibility: auto;
  contain-intrinsic-size: 480px;
  contain: layout style paint;
}
.folio-strip__rail {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding: 20px 0;
  animation: scrollX 60s linear infinite;
  /* will-change apenas enquanto animando; quando pausado, libera GPU */
}
.folio-strip__rail.is-paused,
.folio-strip:hover .folio-strip__rail {
  animation-play-state: paused;
  will-change: auto;
}
.folio-strip__rail:not(.is-paused) {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .folio-strip__rail {
    animation: none !important;
    will-change: auto;
  }
}
.folio-strip__rail .thumb {
  width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gg-bg-1);
  border: 1px solid var(--gg-line);
  flex-shrink: 0;
  position: relative;
  display: block;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.7);
  transition: transform 420ms var(--gg-ease), border-color 220ms, box-shadow 220ms;
}
.folio-strip__rail .thumb::before {
  content: "";
  position: absolute;
  inset: -18px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(.42) saturate(1.08);
  transform: scale(1.12);
}
/* Micro-stagger vertical pra dar ritmo sem sobrepor */
.folio-strip__rail .thumb:nth-child(3n)   { transform: translateY(-14px); }
.folio-strip__rail .thumb:nth-child(3n+1) { transform: translateY(8px); }
.folio-strip__rail .thumb:nth-child(3n+2) { transform: translateY(-4px); }
.folio-strip__rail .thumb:hover {
  transform: translateY(-10px);
  border-color: var(--gg-coral);
  box-shadow: var(--gg-glow-coral);
  z-index: 1;
}
.folio-strip__rail .thumb img,
.folio-strip__rail .thumb video {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Folio Categories (alternating deep-dive) ---------- */
.folio-cats {
  padding: 96px 0;
  border-top: 1px solid var(--gg-line);
}
.folio-cats__head {
  margin-bottom: 80px;
}
.folio-cats__head .gg-eyebrow,
.folio-cats__head .folio-cats__title,
.folio-cats__head .folio-cats__copy {
  display: block;
  max-width: 720px;
}
.folio-cats__title {
  font: 600 clamp(36px, 4.5vw, 64px)/1 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.folio-cats__copy {
  font: 400 15px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  margin-top: 20px;
  max-width: 54ch;
}
/* Grade fechada, mesma anatomia do card de destaque: arte preenchendo, véu por
   cima e o texto montado sobre ela. Antes eram 11 blocos de duas colunas
   alternadas com 80px entre eles, ou seja quase 4000px de página só de espaço
   morto. Aqui a leitura acontece na grade e o detalhe entra no hover. */
.folio-cats__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.folio-cat { display: block; min-width: 0; }
.folio-cat__card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--gg-line);
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
  /* container de consulta: título e blurb medem contra a largura do card, não
     contra a viewport, então a grade cai pra 2 e 1 coluna sem tocar em nada. */
  container-type: inline-size;
  transition: border-color 420ms var(--gg-ease), box-shadow 420ms var(--gg-ease);
}
.folio-cat__media {
  position: absolute;
  inset: 0;
  display: block;
  opacity: .68;
  transition: opacity 520ms var(--gg-ease);
}
.folio-cat__media img,
.folio-cat__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 900ms var(--gg-ease);
}
.folio-cat__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
              rgba(6,6,6,.94) 0%, rgba(6,6,6,.55) 34%, rgba(6,6,6,.06) 62%);
}
.folio-cat__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: block;
  padding: 20px 18px;
}
.folio-cat__title {
  display: block;
  font: 600 clamp(17px, 7cqi, 26px)/1.1 var(--gg-font-display);
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.folio-cat__counts {
  display: block;
  margin-top: 8px;
  font: 500 10px/1.4 var(--gg-font-mono);
  letter-spacing: .18em;
  color: var(--gg-gold);
}
/* Some em repouso pra grade respirar; volta no hover, onde já existe intenção
   de ler. No toque não há hover, então lá fica sempre visível. */
.folio-cat__desc {
  display: block;
  margin-top: 0;
  font: 400 13px/1.55 var(--gg-font-body);
  color: rgba(245,245,245,.78);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity 420ms var(--gg-ease),
              transform 420ms var(--gg-ease),
              max-height 420ms var(--gg-ease),
              margin-top 420ms var(--gg-ease);
}
.folio-cat__card:hover,
.folio-cat__card:focus-visible {
  border-color: var(--gg-coral);
  box-shadow: var(--gg-glow-coral);
}
.folio-cat__card:hover .folio-cat__media img,
.folio-cat__card:hover .folio-cat__media video,
.folio-cat__card:focus-visible .folio-cat__media img,
.folio-cat__card:focus-visible .folio-cat__media video { transform: scale(1); }
.folio-cat__card:hover .folio-cat__media,
.folio-cat__card:focus-visible .folio-cat__media { opacity: 1; }

/* Capas verticais: o conteúdo relevante começa no topo da apresentação. */
.folio-cat[data-slug="identidade-visual"] .folio-cat__media img,
.folio-cat[data-slug="website"] .folio-cat__media img {
  object-position: center top;
}
.folio-cat[data-slug="identidade-visual"] .folio-cat__card,
.folio-cat[data-slug="website"] .folio-cat__card {
  background-position: center top;
}
.folio-cat__card:hover .folio-cat__desc,
.folio-cat__card:focus-visible .folio-cat__desc {
  opacity: 1;
  max-height: 8em;
  margin-top: 12px;
  transform: none;
}

@media (max-width: 1180px) {
  .folio-cats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .folio-cats__list { grid-template-columns: 1fr; gap: 12px; }
  .folio-cat__card { aspect-ratio: 5 / 4; }
}
@media (hover: none), (pointer: coarse) {
  .folio-cat__desc {
    opacity: 1;
    max-height: 8em;
    margin-top: 12px;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .folio-cat__card,
  .folio-cat__media,
  .folio-cat__media img,
  .folio-cat__media video,
  .folio-cat__desc { transition: none; }
}

/* ---------- Folio Numbers (timeline + stats) ---------- */
.folio-numbers {
  padding: 96px 0;
  border-top: 1px solid var(--gg-line);
  background:
    radial-gradient(ellipse at center, rgba(228,176,5,.04) 0%, transparent 60%);
}
/* Duas colunas: o título segura a esquerda enquanto a linha do tempo corre à
   direita. Antes tudo ficava empilhado num terço da largura, sobrando metade da
   tela vazia. */
.folio-numbers .container {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.folio-numbers__head {
  max-width: none;
  margin-bottom: 0;
  position: sticky;
  top: 96px;
}
.folio-numbers__title {
  font: 600 clamp(28px, 3.6vw, 48px)/1.2 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin-top: 16px;
}

/* ---------- Vertical timeline ----------
   Linha vertical contínua à esquerda + dot gold em cada marco.
   Year / título / meta empilhados verticalmente à direita do rail.    */
.folio-numbers__list {
  list-style: none;
  margin: 0;
  position: relative;
  padding-left: 36px;
  max-width: none;
}
.folio-numbers__list::before {
  /* trilho vertical */
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--gg-line-strong);
}
.folio-numbers__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border: none;
}
.folio-numbers__list li::before {
  /* dot dourado sobre o trilho — halo do bg "corta" o trilho atrás */
  content: "";
  position: absolute;
  left: -35px;
  top: 28px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gg-gold);
  box-shadow: 0 0 0 4px var(--gg-bg);
}
.folio-numbers__list .year {
  font: 600 16px/1 var(--gg-font-mono);
  letter-spacing: 0.12em;
  color: var(--gg-gold);
}
.folio-numbers__list .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.folio-numbers__list h3 {
  font: 500 22px/1.25 var(--gg-font-display);
  letter-spacing: -0.01em;
  color: var(--gg-fg);
}
.folio-numbers__list .meta {
  font: 400 13px/1.5 var(--gg-font-mono);
  letter-spacing: 0.04em;
  color: var(--gg-fg-2);
}

/* (stats block removed — timeline only) */

/* =============================================================
   SOBRE PAGE — currículo
   ============================================================= */

.sobre-section { padding: 96px 0; border-top: 1px solid var(--gg-line); }
.sobre-section__head { margin-bottom: 56px; }
.sobre-section__head > * { max-width: 720px; }
.sobre-section__title {
  font: 600 clamp(32px, 4vw, 56px)/1.05 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.sobre-section__title--sm {
  font-size: clamp(22px, 2.4vw, 32px);
}
.sobre-section__copy {
  font: 400 15px/1.65 var(--gg-font-body);
  color: var(--gg-fg-1);
  margin-top: 18px;
  max-width: 52ch;
}

/* ---------- Sobre Hero ---------- */
.sobre-hero {
  min-height: min(920px, 100svh);
  padding: clamp(24px, 4vw, 56px) 0;
  position: relative;
  display: grid;
  align-items: center;
}
.sobre-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: stretch;
  min-height: min(820px, calc(100svh - 96px));
}
.sobre-hero__mark {
  position: relative;
  display: block;
  min-height: min(820px, calc(100svh - 96px));
}
.sobre-hero__mark-frame {
  position: relative;
  height: 100%;
  min-height: 620px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gg-line);
  background: var(--gg-bg-2);
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
}
.sobre-hero__mark-frame img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.sobre-hero__mark-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.sobre-hero__mark-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(18px, 2.5vw, 34px);
  padding-top: 0;
}
.sobre-hero__mark-loc {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--gg-line);
}
.sobre-hero__mark-loc:last-child { border-bottom: 1px solid var(--gg-line); }
.sobre-hero__mark-loc .lbl {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-gold);
}
.sobre-hero__mark-loc .val {
  font: 500 13px/1 var(--gg-font-display);
  color: var(--gg-fg);
}

.sobre-hero__content {
  container-type: normal;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(12px, 2vw, 32px) 0;
}
.sobre-hero__eyebrow { margin-bottom: -8px; }   /* aproxima do título logo abaixo */
.sobre-hero__title {
  /* Nome em uma linha: a medida vem da largura da coluna, não da viewport, senão
     quebra em duas assim que a coluna encolhe. */
  /* 9cqi é o teto que ainda cabe: o nome mede ~9.97x o tamanho da fonte, então
     acima disso ele estoura a coluna e o overflow-x:clip do mobile corta em silêncio. */
  min-width: 0;
  font: 400 clamp(30px, 3.2vw, 58px)/1.05 var(--gg-font-display);
  letter-spacing: -0.03em;
  color: var(--gg-fg);
  white-space: normal;
}
.sobre-hero__title span.accent {
  font-weight: 700;
  color: var(--gg-fg);
  background: none;
  -webkit-text-fill-color: var(--gg-coral);
  color: var(--gg-coral);
}
.sobre-hero__role {
  font: 500 clamp(12px, 1.1cqi, 16px)/1.2 var(--gg-font-mono);
  letter-spacing: 0.12em;
  color: var(--gg-gold);
}
.sobre-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  max-width: 54ch;
}
.sobre-hero__intro p {
  font: 400 clamp(13px, 1.15cqi, 17px)/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
}
.sobre-hero__intro em {
  color: var(--gg-coral);
  font-style: normal;
  font-weight: 600;
}
.sobre-hero__intro .hl-coral { color: var(--gg-coral); font-weight: 600; }
.sobre-hero__intro .hl-gold  { color: var(--gg-gold);  font-weight: 600; }
.sobre-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ---------- Experiência — vertical timeline ---------- */
.exp-timeline {
  list-style: none;
  position: relative;
  padding-left: 200px;        /* deixa espaço para o "period" à esquerda do rail */
  max-width: 980px;
}
.exp-timeline::before {
  content: "";
  position: absolute;
  /* Eixo único: o ponto tem 11px e nasce em (200 - 36) = 164px, logo seu centro
     é 169.5px. O trilho de 1px começa em 169px pra dividir exatamente o mesmo eixo. */
  left: 169px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--gg-line-strong);
}
.exp-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
}
.exp-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 36px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gg-gold);
  box-shadow: 0 0 0 4px var(--gg-bg), 0 0 0 5px var(--gg-line);
  transition: background 420ms var(--gg-ease), box-shadow 420ms var(--gg-ease);
}
.exp-item.reveal.in::before {
  /* dot "acende" quando o item revela */
  background: var(--gg-coral);
  box-shadow: 0 0 0 4px var(--gg-bg), 0 0 0 5px var(--gg-coral);
}
.exp-item__period {
  position: absolute;
  left: -200px;
  top: 28px;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-item__period .years {
  font: 600 16px/1 var(--gg-font-mono);
  letter-spacing: 0.06em;
  color: var(--gg-gold);
}
.exp-item__period .months {
  font: 400 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-fg-3);
}
.exp-item__role {
  font: 600 22px/1.25 var(--gg-font-display);
  letter-spacing: -0.01em;
  color: var(--gg-fg);
}
.exp-item__co {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 var(--gg-font-mono);
  letter-spacing: 0.06em;
  color: var(--gg-coral);
  margin-top: 2px;
}
.exp-item__co .sep { color: var(--gg-fg-3); }
.exp-item__co .mode { color: var(--gg-fg-2); }
.exp-item__desc {
  font: 400 14px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  margin-top: 10px;
  max-width: 54ch;
}

/* ---------- Habilidades ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1120px;
  align-items: start;
}
.skills-col__note {
  font: 400 13px/1.6 var(--gg-font-body);
  color: var(--gg-fg-2);
  margin: -6px 0 22px;
  max-width: 34ch;
}

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.skills-col__title {
  font: 500 12px/1 var(--gg-font-mono);
  letter-spacing: 0.22em;
  color: var(--gg-fg-2);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gg-line);
}
.skill {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}
.skill__lbl {
  font: 500 14px/1 var(--gg-font-display);
  color: var(--gg-fg);
  letter-spacing: -0.005em;
}
.skill__lbl small {
  font: 400 11px/1 var(--gg-font-mono);
  letter-spacing: 0.1em;
  color: var(--gg-fg-2);
  margin-left: 4px;
}
.skill__bar {
  height: 4px;
  background: var(--gg-line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.skill__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gg-gold);
  border-radius: 2px;
  transition: width 1200ms cubic-bezier(.22,.61,.36,1);
}
.skill.is-in .skill__fill { /* set via JS using --w */
  width: var(--w, 0%);
}

/* ---------- Educação + Idiomas (lado a lado) ---------- */
.sobre-edu-lang__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.edu-item {
  padding: 20px 0;
  border-top: 1px solid var(--gg-line);
  border-bottom: 1px solid var(--gg-line);
}
.edu-item h3 {
  font: 500 18px/1.3 var(--gg-font-display);
  color: var(--gg-fg);
}
.edu-item p {
  margin-top: 4px;
  font: 400 13px/1.4 var(--gg-font-mono);
  letter-spacing: 0.04em;
  color: var(--gg-fg-2);
}

/* ---------- Referências ---------- */
/* 2 colunas alinhadas à esquerda — com 5 cards: 2 + 2 + 1 (último solto à esquerda) */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
  justify-content: start;
  gap: 16px;
}
.ref-card {
  background: var(--gg-bg-1);
  border: 1px solid var(--gg-line);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 260ms var(--gg-ease), background 260ms var(--gg-ease), transform 260ms var(--gg-ease);
}
.ref-card:hover {
  border-color: var(--gg-coral);
  background: var(--gg-bg-2);
  transform: translateY(-2px);
}
.ref-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ref-card__head .num {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-gold);
  padding: 4px 8px;
  border: 1px solid var(--gg-line);
  border-radius: 999px;
}
.ref-card__head h3 {
  font: 600 17px/1.2 var(--gg-font-display);
  color: var(--gg-fg);
  letter-spacing: -0.01em;
}
.ref-card__role {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--gg-line);
  padding-top: 12px;
}
.ref-card__role .lbl {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
  color: var(--gg-fg-2);
}
.ref-card__role .co {
  font: 500 14px/1.3 var(--gg-font-display);
  color: var(--gg-coral);
}
.ref-card__tel {
  font: 500 14px/1 var(--gg-font-mono);
  letter-spacing: 0.06em;
  color: var(--gg-fg);
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gg-line);
  transition: color 200ms;
}
.ref-card__tel:hover { color: var(--gg-coral); }

/* ---------- Sobre — contact grid ---------- */
.sobre-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gg-line);
  width: 100%;
  max-width: 880px;
}
.sobre-contact-grid .kv {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.sobre-contact-grid .kv__lbl {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.22em;
  color: var(--gg-fg-2);
}
.sobre-contact-grid .kv__val {
  font: 500 14px/1.4 var(--gg-font-display);
  color: var(--gg-fg);
  text-decoration: none;
  transition: color 200ms;
}
a.sobre-contact-grid__val:hover,
.sobre-contact-grid a.kv__val:hover { color: var(--gg-coral); }

/* Responsive */
@media (max-width: 1024px) {
  .sobre-hero {
    min-height: auto;
    padding: 32px 0 64px;
  }
  .sobre-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
  }
  .sobre-hero__mark { position: static; }
  .sobre-hero__mark { min-height: 0; }
  .sobre-hero__mark-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .sobre-hero__content { padding: 0; }
  .sobre-hero__title { white-space: normal; }
  .exp-timeline { padding-left: 36px; }
  .exp-timeline::before { left: 5px; }
  .exp-item::before { left: -36px; }
  .exp-item__period {
    position: static;
    left: auto; top: auto; width: auto;
    margin-bottom: 4px;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
  .sobre-edu-lang__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(8,8,8,.95);
  display: none;
  padding: 32px;
  opacity: 0;
  transition: opacity 220ms var(--gg-ease-out);
}
.lightbox.open { display: flex; opacity: 1; align-items: center; justify-content: center; }
.lightbox__close {
  position: fixed; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gg-line-strong);
  background: var(--gg-bg-1);
  color: var(--gg-fg);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.lightbox__close:hover { border-color: var(--gg-coral); color: var(--gg-coral); }
.lightbox__inner {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__inner img,
.lightbox__inner video {
  max-width: 92vw;
  max-height: 88vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* ---------- Left side navigation (fluinto-style, Gangoorra tokens) ---------- */
.side-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  /* Recolhida por padrão; abre no hover. A largura é a única coisa que anima,
     e o padding-left do body segue a largura recolhida pra nada saltar. */
  width: var(--side-nav-w, 64px);
  transition: width 420ms var(--gg-ease), background 420ms var(--gg-ease);
  overflow: hidden;
  z-index: 60;
  background: rgba(17,17,17,.85);
  border-right: 1px solid var(--gg-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 32px 14px 28px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
}
.side-nav__brand {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto;
  border: 1px solid var(--gg-line);
  border-radius: 12px;
  position: relative;
  transition: border-color 260ms var(--gg-ease), background 260ms var(--gg-ease);
}
.side-nav__brand::after {
  content: "";
  position: absolute;
  right: -2px; bottom: -2px;
  width: 8px; height: 8px;
  border-right: 1px solid var(--gg-gold);
  border-bottom: 1px solid var(--gg-gold);
  border-radius: 0 0 12px 0;
  opacity: 0.7;
  transition: opacity 260ms var(--gg-ease);
}
.side-nav__brand:hover {
  border-color: var(--gg-coral);
  background: rgba(255,74,84,.06);
}
.side-nav__brand:hover::after { opacity: 1; }
.side-nav__brand img { display: block; }

.side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto 0;
}
.side-nav__list a {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  padding: 12px 8px 12px 16px;
  border-radius: 8px;
  color: var(--gg-fg-2);
  text-decoration: none;
  transition: color 260ms var(--gg-ease), background 260ms var(--gg-ease), padding 260ms var(--gg-ease);
}
.side-nav__list a .num {
  font: 500 9px/1 var(--gg-font-mono);
  letter-spacing: 0.22em;
  color: var(--gg-gold);
  opacity: 0.55;
  transition: color 260ms var(--gg-ease), opacity 260ms var(--gg-ease);
}
.side-nav__list a:hover .num { opacity: 1; }
.side-nav__list a .lbl {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: 0.18em;
}
.side-nav__list a::before {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 3px; height: 22px;
  background: var(--gg-coral);
  border-radius: 2px;
  transition: transform 260ms var(--gg-ease);
}
.side-nav__list a:hover {
  color: var(--gg-fg);
  background: rgba(255,255,255,.03);
}
.side-nav__list a:hover .num { color: var(--gg-fg-2); }
.side-nav__list a[data-active="1"] {
  color: var(--gg-coral);
  background: rgba(255,74,84,.05);
}
.side-nav__list a[data-active="1"] .num { color: var(--gg-coral); }
.side-nav__list a[data-active="1"]::before { transform: translateY(-50%) scaleY(1); }

/* Keep .is-active selector working too (for the top header nav and parity) */
.side-nav__list a.is-active {
  color: var(--gg-coral);
  background: rgba(255,74,84,.05);
}
.side-nav__list a.is-active .num { color: var(--gg-coral); }
.side-nav__list a.is-active::before { transform: translateY(-50%) scaleY(1); }

.side-nav__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--gg-line);
}
.side-nav__socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  place-items: center;
}
.side-nav__socials a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--gg-fg-2);
  text-decoration: none;
  border-radius: 8px;
  transition: color 260ms var(--gg-ease), background 260ms var(--gg-ease), transform 260ms var(--gg-ease);
}
.side-nav__socials a svg {
  width: 17px; height: 17px;
  display: block;
}
.side-nav__socials a:hover {
  color: var(--gg-coral);
  background: rgba(255,74,84,.06);
  transform: translateY(-1px);
}
.side-nav__foot .morse {
  margin-top: 2px;
  font: 400 10px/1 var(--gg-font-mono);
  letter-spacing: 0.3em;
  color: var(--gg-gold);
}

/* ---------- Custom cursor — ring IS the cursor ---------- */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  pointer-events: none;
  z-index: 9999;
  border: 1px solid rgba(245,245,245,.8);
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 260ms var(--gg-ease),
              width 260ms var(--gg-ease),
              height 260ms var(--gg-ease),
              margin 260ms var(--gg-ease),
              border-color 260ms var(--gg-ease),
              border-width 260ms var(--gg-ease),
              background 260ms var(--gg-ease);
}
.cursor-active .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-color: var(--gg-coral);
  border-width: 1.5px;
  background: rgba(255,74,84,.05);
  mix-blend-mode: normal;
}
.cursor-ring.is-press {
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring { display: none !important; }
}

/* Hide native cursor entirely when custom cursor is on */
html.cursor-active,
html.cursor-active body,
html.cursor-active *,
html.cursor-active a,
html.cursor-active button,
html.cursor-active [data-magnetic] {
  cursor: none !important;
}

/* ---------- Rotator (hero rotating word, Digidop-style) ---------- */
/* Inline-grid + grid-template-areas: all words share the same cell,
   so the container auto-sizes to the WIDEST word — no min-width hack
   and nothing gets cropped. vertical-align: baseline keeps the rotator
   sitting on the same line as "Eu faço" naturally.                  */
/* Stack all words in the same grid cell; the column is forced to
   max-content so the container always sizes to the WIDEST word.
   vertical-align: baseline keeps the rotator on the same baseline
   as "Eu faço".                                                     */
.rotator {
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-areas: "stack";
  position: relative;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
  white-space: nowrap;
}
.rotator__word {
  grid-area: stack;
  align-self: baseline;
  display: inline-block;
  color: var(--gg-coral);
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 420ms var(--gg-ease), transform 520ms var(--gg-ease-out);
}
.rotator__word.is-active {
  opacity: 1;
  transform: translateY(0);
}
.rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

/* ---------- Counter pre-anim state ---------- */
.counter { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }

/* ---------- Magnetic CTA helper (JS-driven) ---------- */
[data-magnetic] {
  display: inline-flex;
  will-change: transform;
  transition: transform 260ms var(--gg-ease);
}

/* ---------- Responsive ---------- */
@media (min-width: 1025px) {
  /* Show left sidebar, hide the top header */
  .side-nav { display: flex; }
  .gg-header { display: none; }
  /* Segue a largura recolhida: a expansão do hover flutua por cima,
     senão a página inteira deslocaria a cada passada de mouse. */
  body { padding-left: 64px; }
  /* Cursor follower stays in viewport coords — no offset needed */
}

@media (max-width: 1024px) {
  .gg-nav { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 1024px) {
  .folio-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .folio-hero__media { aspect-ratio: 16 / 11; max-height: 60vh; }
  .folio-strip__head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  html,
  body { overflow-x: clip; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-v2 {
    min-height: 100svh;
    overflow-x: clip;
  }
  .hero-v2__inner {
    grid-template-rows: auto 1fr auto;
    padding: 18px 20px 48px;
    gap: 18px;
  }
  .hero-v2__top .gg-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: .08em;
  }
  .hero-v2__top .gg-eyebrow > span:last-child {
    flex: 1 1 220px;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero-v2__center {
    justify-content: flex-start;
  }
  .hero-v2__card-wrap,
  .gen-card {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
  .gen-card {
    padding: 22px 20px 18px;
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
  }
  .gen-card__head { gap: 12px; }
  .gen-card__def {
    font-size: 12px;
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero-v2__eyebrow { letter-spacing: .18em; }
  .hero-v2__name {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    font-size: clamp(31px, 8.4vw, 36px);
    line-height: 1;
  }
  .hero-v2__name span { display: block; }
  .folio-hero { padding: 56px 0 64px; }
  .folio-hero__inner {
    width: 100%;
    max-width: 100%;
    gap: 32px;
  }
  .folio-hero__media,
  .folio-hero__content,
  .folio-hero__services {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
  .folio-hero__title {
    font-size: clamp(52px, 18vw, 70px);
    line-height: .94;
  }
  .folio-hero__sub {
    max-width: min(100%, 34ch);
    font-size: 14px;
    line-height: 1.6;
  }
  .folio-hero__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .folio-hero__services li { min-width: 0; }
  .folio-hero__services .lbl { overflow-wrap: anywhere; }
  .folio-cats { padding: 64px 0; }
  .folio-cats__head { margin-bottom: 48px; }
  .folio-numbers { padding: 64px 0; }
  .folio-numbers__list li { grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 0; }
  .folio-numbers__list h3 { font-size: 16px; }
  .folio-numbers__stats { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 36px; }
  .folio-strip__rail .thumb { width: 170px; }
  .folio-strip__rail { gap: 14px; padding: 14px 0; }
  .folio-strip::before,
  .folio-strip::after { width: 18vw; }
  .folio-acc__card { height: 180px; }
  .folio-acc__meta { padding: 18px 16px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-v2__bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-v2__year { align-self: flex-end; }
  .svc-item { grid-template-columns: 60px 1fr auto; padding: 24px 0; gap: 16px; }
  .proj-overlay { padding: 16px; }
  .proj-overlay__body { padding: 28px; }
  .proj-overlay__grid { columns: 2 140px; column-gap: 8px; }
  .proj-overlay__section-grid { columns: 2 140px; column-gap: 8px; }
  .proj-overlay__chips { padding: 12px; gap: 6px; margin-bottom: 24px; }
  .proj-overlay__chip { padding: 6px 10px; font-size: 11px; }
  .proj-overlay__section { margin-bottom: 40px; scroll-margin-top: 72px; }
  .proj-overlay__section-head { gap: 10px; margin-bottom: 14px; }
  .contact { padding: 96px 0; }
  .marquee .item { font-size: 18px; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Conversion and self-contained additions ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--gg-bg);
  transition: opacity 420ms var(--gg-ease), visibility 420ms var(--gg-ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__slot { display: grid; place-items: center; width: 96px; height: 96px; border: 1px solid var(--gg-line); border-radius: var(--gg-r-3); }
.preloader__morse { display: flex; align-items: center; gap: 7px; }
.preloader__morse i { display: block; height: 5px; border-radius: var(--gg-pill); background: var(--gg-coral); animation: ggPulse 900ms var(--gg-ease) infinite; }
.preloader__morse .dash { width: 24px; }
.preloader__morse .dot { width: 7px; animation-delay: 160ms; }
@keyframes ggPulse { 0%, 100% { opacity: .32; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

.to-top {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 60;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gg-line-strong);
  background: rgba(22,22,22,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gg-fg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms var(--gg-ease), transform 260ms var(--gg-ease),
              border-color 260ms var(--gg-ease), color 260ms var(--gg-ease);
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { border-color: var(--gg-coral); color: var(--gg-coral); }
.to-top svg { width: 19px; height: 19px; display: block; }

.svc-list--conversion { gap: 0; }
.svc-item--conversion {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 28px 0;
  color: var(--gg-fg);
}
.svc-item__main p {
  max-width: 54ch;
  margin: 8px 0 0;
  color: var(--gg-fg-1);
  font-size: var(--gg-fs-small);
  line-height: 1.55;
}
.svc-item__actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.svc-link,
.svc-wa {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* compensação óptica: uppercase da Nexa senta alto na caixa da linha */
  padding: 0 16px;
  border-radius: var(--gg-pill);
  text-decoration: none;
  font: 700 12px/1 var(--gg-font-body);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.svc-link { color: var(--gg-fg); border: 1px solid var(--gg-line-strong); }
.svc-wa { color: var(--gg-paper); background: var(--gg-coral); border: 1px solid var(--gg-coral); }
.svc-link:hover,
.svc-wa:hover { transform: translateY(-1px); }

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--gg-pill);
  border: 1px solid rgba(255,74,84,.38);
  color: var(--gg-coral);
  font: 700 10px/1 var(--gg-font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.placeholder-badge { padding: 7px 9px; margin-bottom: 18px; color: var(--gg-gold); border-color: rgba(228,176,5,.45); }

.folio-filters {
  display: grid;
  gap: 14px;
  margin: -24px 0 56px;
  padding: 18px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-r-3);
  background: var(--gg-bg-1);
}
.folio-filters__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.folio-filters__group > span {
  min-width: 78px;
  color: var(--gg-fg-2);
  font: 700 11px/1 var(--gg-font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.folio-filters button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--gg-pill);
  border: 1px solid var(--gg-line-strong);
  background: transparent;
  color: var(--gg-fg-1);
  font: 700 11px/1 var(--gg-font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.folio-filters button.active,
.folio-filters button:hover { border-color: var(--gg-coral); color: var(--gg-coral); }
.folio-cat[hidden] { display: none; }

@media (max-width: 760px) {
  .svc-item--conversion { grid-template-columns: 1fr; gap: 14px; }
  .svc-item__actions { justify-content: flex-start; }
  .folio-filters { margin-top: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__morse i { animation: none; }
}

/* =============================================================
   V2 — Refino premium: hero CTA, clientes, processo, trajetória,
   FAQ e bloco de contato com briefing.
   Tokens do design system; coral segue como pontuação.
   ============================================================= */

/* ---------- Barra de progresso de leitura ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 300;
  background: rgba(245,245,245,.06);
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gg-coral), var(--gg-gold));
}

/* ---------- Hero: lede + ações ---------- */
.hero-v2__lede {
  max-width: 52ch;
  margin-top: 18px;
  font: 400 clamp(14px, 1.15vw, 17px)/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

/* Lede na MESMA largura do H1. A coluna do grid nasce do max-content do maior
   item; o lede declara width:0 pra não participar dessa medida e depois volta
   a 100% da coluna já resolvida. Assim a medida acompanha o clamp do nome
   sozinha, sem JS e sem número mágico.
   Fora do desktop o nome quebra em duas linhas (span vira block), então a
   coluna encolheria demais: abaixo de 721px o lede volta a ser fluido. */
@media (min-width: 721px) {
  .hero-v2__name-block {
    display: grid;
    justify-items: start;
    max-width: 100%;
  }
  .hero-v2__lede {
    width: 0;
    min-width: 100%;
    max-width: none;
  }
}

.hero-v2__socials { margin-top: 26px; }

/* ---------- Clientes ---------- */
.clients { padding: 56px 0 0; }
.clients__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px;
}
.clients__head p {
  font: 400 13px/1.5 var(--gg-font-body);
  color: var(--gg-fg-2);
  max-width: 46ch;
}
.marquee--clients .item {
  font: 500 clamp(18px, 2vw, 26px)/1 var(--gg-font-display);
  letter-spacing: -0.01em;
  color: var(--gg-fg-1);
  white-space: nowrap;
}
.marquee--clients .sep {
  background: var(--gg-gold);
  opacity: .8;
}

/* ---------- Serviços: chips de entregável ---------- */
.svc-item__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none;
  margin: 16px 0 0; padding: 0;
}
.svc-item__chips li {
  padding: 6px 11px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-pill);
  background: var(--gg-bg-1);
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gg-fg-2);
  transition: border-color 260ms var(--gg-ease), color 260ms var(--gg-ease);
}
.svc-item--conversion:hover .svc-item__chips li {
  border-color: var(--gg-line-strong);
  color: var(--gg-fg-1);
}

/* ---------- Processo ---------- */
.process { border-top: 1px solid var(--gg-line); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}
.process-step {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-r-3);
  background: var(--gg-bg-1);
  overflow: hidden;
  transition: border-color 420ms var(--gg-ease), box-shadow 420ms var(--gg-ease), transform 420ms var(--gg-ease);
}
.process-step::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gg-coral);
  transform: scaleY(0); transform-origin: top;
  transition: transform 420ms var(--gg-ease);
}
.process-step:hover {
  border-color: var(--gg-coral);
  box-shadow: var(--gg-glow-coral);
  transform: translateY(-2px);
}
.process-step:hover::after { transform: scaleY(1); }
.process-step__num {
  display: block;
  font: 500 12px/1 var(--gg-font-mono);
  letter-spacing: .22em;
  color: var(--gg-gold);
  margin-bottom: 18px;
}
.process-step h3 {
  font: 600 22px/1.15 var(--gg-font-display);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.process-step p {
  font: 400 14px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
}
.process-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 40px;
  padding: 26px 28px;
  border: 1px solid var(--gg-line);
  border-left: 2px solid var(--gg-coral);
  border-radius: var(--gg-r-3);
  background: var(--gg-bg-1);
}
.process-cta p {
  font: 400 15px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  max-width: 54ch;
}

/* ---------- Sobre: CTA ---------- */
.about-copy__cta { align-self: flex-start; margin-top: 8px; }

/* ---------- Trajetória (currículo resumido) ---------- */
.career-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: start;
}
.career-list {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.career-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--gg-line);
  transition: transform 260ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.career-item:first-child { border-top: none; }
.career-item:last-child { border-bottom: 1px solid var(--gg-line); }
.career-item:hover { transform: translate3d(8px, 0, 0); }
.career-item__years {
  font: 500 12px/1.4 var(--gg-font-mono);
  letter-spacing: .18em;
  color: var(--gg-gold);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.career-item__body h3 {
  font: 600 20px/1.2 var(--gg-font-display);
  letter-spacing: -0.01em;
  transition: color 260ms var(--gg-ease);
}
.career-item:hover .career-item__body h3 { color: var(--gg-coral); }
.career-item__co {
  display: block;
  margin: 7px 0 10px;
  font: 500 11px/1.3 var(--gg-font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gg-fg-2);
}
.career-item__body p {
  font: 400 14px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  max-width: 54ch;
}

.career-side { display: flex; flex-direction: column; gap: 20px; }
.career-panel {
  padding: 26px 24px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-r-3);
  background: var(--gg-bg-1);
}
.career-panel__title {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gg-fg-2);
  margin-bottom: 18px;
}
.chip-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.chip-list li {
  padding: 8px 12px;
  border: 1px solid var(--gg-line-strong);
  border-radius: var(--gg-pill);
  font: 500 12px/1 var(--gg-font-body);
  color: var(--gg-fg-1);
}
.chip-list--gold li { border-color: rgba(228,176,5,.35); color: var(--gg-gold); }
.career-panel--refs p {
  font: 400 14px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
  margin-bottom: 16px;
}
.career-panel__link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--gg-font-body);
  color: var(--gg-coral);
  transition: gap 260ms var(--gg-ease);
}
.career-panel__link::after { content: "\2197"; font-size: 12px; }
.career-panel__link:hover { gap: 13px; }

/* ---------- FAQ (details/summary nativo) ---------- */
.faq { border-top: 1px solid var(--gg-line); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--gg-line); }
.faq-item:first-child { border-top: none; }
.faq-item:last-child { border-bottom: 1px solid var(--gg-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font: 500 clamp(17px, 1.7vw, 22px)/1.3 var(--gg-font-display);
  letter-spacing: -0.01em;
  color: var(--gg-fg);
  transition: color 260ms var(--gg-ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--gg-coral), var(--gg-coral)) center/13px 1.5px no-repeat,
    linear-gradient(var(--gg-coral), var(--gg-coral)) center/1.5px 13px no-repeat;
  transition: transform 420ms var(--gg-ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--gg-coral); }
.faq-item summary:focus-visible { outline: 2px solid var(--gg-focus); outline-offset: 4px; }
.faq-item__body {
  padding: 0 4px 26px;
  max-width: 60ch;
}
.faq-item__body p {
  font: 400 15px/1.7 var(--gg-font-body);
  color: var(--gg-fg-1);
}

/* ---------- Contato V2 ---------- */
.contact--v2 {
  padding: 112px 0;
  text-align: left;
}
.contact--v2 .container {
  display: block;
  align-items: stretch;
}
.contact__head { max-width: 720px; margin-bottom: 56px; }
.contact__title {
  font: 600 clamp(34px, 4.4vw, 62px)/1.02 var(--gg-font-display);
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.contact__lede {
  font: 400 16px/1.65 var(--gg-font-body);
  color: var(--gg-fg-1);
  max-width: 54ch;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

/* Formulário de briefing */
.brief {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 30px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-r-3);
  background: var(--gg-bg-1);
}
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief__field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.brief__field > span {
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gg-fg-2);
}
.brief input,
.brief select,
.brief textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--gg-line-strong);
  border-radius: var(--gg-r-2);
  background: var(--gg-bg);
  color: var(--gg-fg);
  font: 400 15px/1.4 var(--gg-font-body);
  transition: border-color 260ms var(--gg-ease), box-shadow 260ms var(--gg-ease);
}
.brief textarea { resize: vertical; min-height: 108px; }
.brief select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gg-fg-2) 50%),
                    linear-gradient(135deg, var(--gg-fg-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.brief input::placeholder,
.brief textarea::placeholder { color: var(--gg-fg-3); }
.brief input:focus,
.brief select:focus,
.brief textarea:focus {
  outline: none;
  border-color: var(--gg-coral);
  box-shadow: 0 0 0 3px rgba(255,74,84,.15);
}
.brief input[aria-invalid="true"] { border-color: var(--gg-coral); }
.brief__foot {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.brief__foot .gg-btn { min-height: 46px; }
.brief__note {
  font: 400 12px/1.5 var(--gg-font-body);
  color: var(--gg-fg-2);
  max-width: 34ch;
}
.brief__note.is-error { color: var(--gg-coral); }

/* Cartão de contato direto */
.contact__card {
  display: flex; flex-direction: column; gap: 26px;
  padding: 32px 30px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-r-3);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,74,84,.10), transparent 62%),
    var(--gg-bg-1);
}
.contact__email {
  display: block;
  font: 600 clamp(20px, 2.1vw, 27px)/1.15 var(--gg-font-display);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 260ms var(--gg-ease);
}
.contact__email .at { color: var(--gg-coral); }
.contact__email:hover { color: var(--gg-coral); }
.contact__meta { list-style: none; margin: 0; padding: 0; }
.contact__meta li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gg-line);
}
.contact__meta li:last-child { border-bottom: 1px solid var(--gg-line); }
.contact__meta .lbl {
  font: 500 10px/1.4 var(--gg-font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gg-fg-2);
  padding-top: 3px;
}
.contact__meta .val {
  font: 400 14px/1.45 var(--gg-font-body);
  color: var(--gg-fg);
}
.contact__meta a.val:hover { color: var(--gg-coral); }
.contact__social { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__social a { color: var(--gg-fg-1); transition: color 260ms var(--gg-ease); }
.contact__social a:hover { color: var(--gg-coral); }
.contact__ps {
  font: 400 13px/1.6 var(--gg-font-body);
  color: var(--gg-fg-2);
  margin-top: auto;
}
.contact__ps a { color: var(--gg-coral); }
.contact__ps a:hover { text-decoration: underline; }

/* ---------- Responsivo V2 ---------- */
@media (max-width: 1180px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .career-grid { grid-template-columns: 1fr; gap: 48px; }
  .career-side { flex-direction: row; flex-wrap: wrap; }
  .career-panel { flex: 1 1 260px; }
}

@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .clients { padding-top: 40px; }
  .clients__head { padding-bottom: 18px; }
  .hero-v2__lede { font-size: 14px; max-width: none; }
  
  
  .process-grid { grid-template-columns: 1fr; }
  .process-cta { padding: 22px 20px; }
  .career-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .career-item__years { padding-top: 0; }
  .career-side { flex-direction: column; }
  .faq-item summary { padding: 20px 2px; gap: 16px; }
  .contact--v2 { padding: 80px 0; }
  .contact__head { margin-bottom: 36px; }
  .brief, .contact__card { padding: 24px 20px; }
  .brief__row { grid-template-columns: 1fr; }
  .brief__foot .gg-btn { width: 100%; justify-content: space-between; }
  .brief__note { max-width: none; }
  .contact__meta li { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  
  .process-step::after { transition: none; }
  /* faixa rolando para: movimento infinito e o pior caso pra quem pede menos motion */
  .marquee .track { animation: none; }
}

/* ---------- Sobre: currículo traduzido em valor ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-r-3);
  background: var(--gg-bg-1);
  transition: border-color 420ms var(--gg-ease), box-shadow 420ms var(--gg-ease), transform 420ms var(--gg-ease);
}
.value-card:hover {
  border-color: var(--gg-coral);
  box-shadow: var(--gg-glow-coral);
  transform: translateY(-2px);
}
.value-card__num {
  display: block;
  font: 500 12px/1 var(--gg-font-mono);
  letter-spacing: .22em;
  color: var(--gg-gold);
  margin-bottom: 18px;
}
.value-card h3 {
  font: 600 20px/1.2 var(--gg-font-display);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.value-card p {
  font: 400 14px/1.65 var(--gg-font-body);
  color: var(--gg-fg-1);
}

/* ---------- Contato simples: ações ---------- */
.contact-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.contact .contact-meta { justify-content: center; }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .contact-actions { width: 100%; }
  .contact-actions .gg-btn { flex: 1 1 100%; justify-content: space-between; }
  .sobre-hero__cta { flex-wrap: wrap; }
  .sobre-hero__cta .gg-btn { flex: 1 1 100%; justify-content: space-between; }
}

/* =============================================================
   V3 — Grupos de peça: carrossel, deck de PDF e bastidor de
   manipulação. A capa entra na grade, o resto abre no lightbox.
   ============================================================= */

/* Selo na célula. Vai por atributo porque o observer troca o innerHTML
   da célula ao hidratar e apagaria um elemento filho. */
.proj-overlay__cell[data-group-badge]::after {
  content: attr(data-group-badge);
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: var(--gg-pill);
  border: 1px solid rgba(255,74,84,.45);
  background: rgba(22,22,22,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font: 700 9px/1 var(--gg-font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gg-coral);
  pointer-events: none;
}

/* ---------- Navegação de grupo dentro do lightbox ---------- */
.lightbox__nav {
  position: absolute;
  left: 50%; bottom: clamp(12px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(94vw, 900px);
  padding: 10px 12px;
  border-radius: var(--gg-pill);
  border: 1px solid var(--gg-line-strong);
  background: rgba(22,22,22,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox__nav[hidden] { display: none; }

/* Com a barra no rodapé, a peça precisa ceder altura ou fica embaixo dela. */
.lightbox:has(.lightbox__nav:not([hidden])) .lightbox__inner { max-height: 72vh; }

.lightbox__arrow {
  flex: none;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gg-line-strong);
  background: transparent;
  color: var(--gg-fg);
  font: 400 20px/1 var(--gg-font-display);
  cursor: pointer;
  transition: color 260ms var(--gg-ease), border-color 260ms var(--gg-ease);
}
.lightbox__arrow:hover { color: var(--gg-coral); border-color: var(--gg-coral); }

.lightbox__steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lightbox__steps::-webkit-scrollbar { display: none; }

.lightbox__step {
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--gg-pill);
  border: 1px solid var(--gg-line);
  background: var(--gg-bg-1);
  color: var(--gg-fg-2);
  font: 500 11px/1 var(--gg-font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: color 260ms var(--gg-ease), border-color 260ms var(--gg-ease),
              background 260ms var(--gg-ease);
}
.lightbox__step:hover { color: var(--gg-fg); border-color: var(--gg-line-strong); }
.lightbox__step.is-current {
  color: var(--gg-paper);
  background: var(--gg-coral);
  border-color: var(--gg-coral);
}

.lightbox__counter {
  flex: none;
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: .14em;
  color: var(--gg-fg-2);
  font-variant-numeric: tabular-nums;
}

/* Carrossel tem muito slide e rótulo numérico: os botões viram pontos e o
   contador assume. Processo tem 2 ou 3 etapas com nome, então mantém o texto. */
.lightbox__nav[data-kind="carrossel"] .lightbox__step {
  width: 30px; padding: 0;
  text-align: center;
}

/* Barra do filtro cresceu de 5 para 12 botões; só precisa respirar. */
.folio-filters__group { row-gap: 8px; }

@media (max-width: 720px) {
  .lightbox__nav {
    left: 12px; right: 12px;
    transform: none;
    max-width: none;
    padding: 8px;
    gap: 6px;
  }
  .lightbox__counter { display: none; }
  .proj-overlay__cell[data-group-badge]::after { font-size: 8px; padding: 4px 7px; }
}

/* Fechar: desenhado em CSS porque a Nexa não tem o glifo e o fallback destoava. */
.x-mark {
  position: relative;
  display: block;
  width: 13px; height: 13px;
}
.x-mark::before,
.x-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.x-mark::before { transform: translateY(-50%) rotate(45deg); }
.x-mark::after  { transform: translateY(-50%) rotate(-45deg); }

/* Botões: garante que rótulo e seta sentem no mesmo eixo, independente do glifo. */
.gg-btn { line-height: 1; }
.gg-btn > span:first-child { line-height: 1; padding-top: 1px; }
.gg-btn .arrow { line-height: 1; font-size: 12px; }

/* Fechar de overlay e lightbox agora centram um elemento, não um caractere. */
.gg-side-menu__close,
.proj-overlay__close,
.lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* =============================================================
   Barra lateral retrátil: recolhida mostra só marca, números e
   ícones; no hover abre e revela os rótulos.
   ============================================================= */
@media (min-width: 1025px) {
  .side-nav { padding-left: 10px; padding-right: 10px; transition: width 420ms var(--gg-ease), padding 420ms var(--gg-ease), background 420ms var(--gg-ease); }
  .side-nav:hover,
  .side-nav:focus-within {
    width: 168px;
    padding-left: 20px; padding-right: 20px;
    background: rgba(17,17,17,.95);
  }

  .side-nav__brand {
    width: 40px; height: 40px;
    transition: width 420ms var(--gg-ease), height 420ms var(--gg-ease);
  }
  .side-nav:hover .side-nav__brand,
  .side-nav:focus-within .side-nav__brand { width: 52px; height: 52px; }
  .side-nav__brand img { width: 26px; height: 26px; transition: width 420ms var(--gg-ease), height 420ms var(--gg-ease); }
  .side-nav:hover .side-nav__brand img,
  .side-nav:focus-within .side-nav__brand img { width: 34px; height: 34px; }

  .side-nav__list a { padding: 12px 6px; justify-items: center; }
  .side-nav:hover .side-nav__list a,
  .side-nav:focus-within .side-nav__list a { padding: 12px 8px 12px 16px; justify-items: start; }

  /* O rótulo some por altura+opacidade: display:none mataria a transição. */
  .side-nav__list a .lbl {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-height 260ms var(--gg-ease), opacity 260ms var(--gg-ease);
  }
  .side-nav:hover .side-nav__list a .lbl,
  .side-nav:focus-within .side-nav__list a .lbl { max-height: 20px; opacity: 1; }

  /* É grid de 3 colunas, não flex: recolhida vira coluna única pra os três
     ícones caberem em 64px em vez de dois saírem pela borda. */
  .side-nav__socials {
    grid-template-columns: 1fr;
    gap: 6px;
    transition: gap 420ms var(--gg-ease);
  }
  .side-nav:hover .side-nav__socials,
  .side-nav:focus-within .side-nav__socials { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .side-nav__foot .morse {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 260ms var(--gg-ease), opacity 260ms var(--gg-ease);
  }
  .side-nav:hover .side-nav__foot .morse,
  .side-nav:focus-within .side-nav__foot .morse { max-height: 18px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .side-nav,
  .side-nav__brand,
  .side-nav__brand img,
  .side-nav__list a,
  .side-nav__list a .lbl,
  .side-nav__socials,
  .side-nav__foot .morse { transition: none; }
}


/* =============================================================
   Quebra de linha do corpo de texto.
   `pretty` impede a última linha ficar com uma palavra órfã e evita
   quebra em ponto ruim; `balance` distribui título curto em linhas
   de tamanho parecido em vez de deixar uma sobra minúscula.
   Navegador sem suporte simplesmente ignora e mantém o comportamento antigo.
   ============================================================= */
p,
li,
figcaption,
blockquote,
.section-head .meta p,
.svc-item__main p,
.faq-item__body p,
.about-copy p,
.career-item__body p,
.process-step p,
.value-card p,
.sobre-hero__intro p,
.exp-item__desc,
.sobre-section__copy,
.clients__head p,
.contact__lede,
.contact__ps,
.brief__note,
.skills-col__note,
.folio-cat__desc,
.folio-strip__desc,
.folio-hero__sub,
.hero-v2__lede {
  text-wrap: pretty;
}

h1, h2, h3, h4,
.section-head h2,
.sobre-section__title,
.about-title,
.contact__title,
.process-step h3,
.value-card h3,
.career-item__body h3,
.exp-item__role,
.folio-cat__title,
.faq-item summary {
  text-wrap: balance;
}

/* O nome do hero quebra em duas linhas de propósito no mobile, e o do currículo já
   tem white-space: nowrap próprio. Aqui só se desliga o balance, sem forçar nowrap. */
.hero-v2__name,
.sobre-hero__title,
.folio-hero__title { text-wrap: wrap; }


/* =============================================================
   Antes e depois automático nas peças de manipulação.
   A capa é o resultado final; a base entra e sai em looping pra
   mostrar que existe uma variação por trás, sem precisar clicar.
   ============================================================= */
.proj-overlay__cell.has-before { position: relative; }
.proj-overlay__cell .cell-before {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  animation: ggAntesDepois 7s var(--gg-ease) infinite;
}
@keyframes ggAntesDepois {
  0%, 40%   { opacity: 0; }
  50%, 78%  { opacity: 1; }
  88%, 100% { opacity: 0; }
}
/* O selo fica acima da imagem que alterna. */
.proj-overlay__cell[data-group-badge]::after { z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .proj-overlay__cell .cell-before { animation: none; opacity: 0; }
  .folio-cat__media video { display: none; }
}


@media (max-width: 1024px) {
  /* Uma coluna de novo: com pouca largura, título fixo ao lado só rouba espaço. */
  .folio-numbers .container { grid-template-columns: 1fr; gap: 40px; }
  .folio-numbers__head { position: static; margin-bottom: 8px; }
}

/* =============================================================
   REFINO DE REFERÊNCIA — trionn.com + heynesh.com
   trionn:  camada técnica (hairline + crosshair), tipografia grande
            na faixa, e desfoque na entrada dos títulos.
   heynesh: vidro fosco nos painéis e linha do tempo que se desenha
            conforme o scroll avança.
   ============================================================= */

/* ---------- trionn: título entra saindo de foco ----------
   Eles animam `filter` junto de transform/opacity, e é isso que dá o peso
   da entrada. Escopo restrito ao TÍTULO (não ao bloco inteiro): filtro em
   container vira camada composta permanente e cobra caro num site cheio
   de imagem grande. Título é texto, o custo é irrelevante. */
.reveal h2,
.reveal .about-title,
.reveal .sobre-section__title,
.reveal .gg-eyebrow {
  filter: blur(7px);
  transition: filter 1s var(--gg-ease);
}
.reveal .gg-eyebrow { filter: blur(4px); }
.reveal.in h2,
.reveal.in .about-title,
.reveal.in .sobre-section__title,
.reveal.in .gg-eyebrow { filter: blur(0); }

/* ---------- trionn: hairline com crosshair no fim do cabeçalho ----------
   O `+` monta em cima da régua (line-height 0 centra o glifo no eixo dela),
   que é exatamente como eles marcam cruzamento de linha. */
.section-head,
.sobre-section__head {
  position: relative;
  padding-bottom: 26px;
  margin-bottom: 44px;
}
.section-head::before,
.section-head::after,
.sobre-section__head::before,
.sobre-section__head::after {
  content: "+";
  position: absolute;
  bottom: 0;
  font: 400 13px/0 var(--gg-font-mono);
  color: var(--gg-fg-3);
}
.section-head::before,
.sobre-section__head::before { left: 0; }
.section-head::after,
.sobre-section__head::after {
  left: 0; right: 0;
  border-top: 1px solid var(--gg-line);
  text-align: right;
}

/* ---------- Faixa de funções compacta ----------
   A faixa continua sendo um marcador editorial, mas sem dominar a dobra.
   A altura fica próxima de uma linha de navegação e preserva a leitura. */
.marquee--functions {
  padding: 6px 0;
}
.marquee--functions .item {
  font: 600 clamp(16px, 1.7vw, 26px)/1 var(--gg-font-display);
  letter-spacing: -0.02em;
  color: var(--gg-fg-1);
}
/* Especificidade casada com `.marquee .item .sep`, senão o dot de 6px continua
   valendo e o "+" sai desenhado por cima dele. */
.marquee--functions .item .sep {
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  transform: none;
  color: var(--gg-coral);
  font: 400 clamp(12px, 1vw, 16px)/1 var(--gg-font-mono);
  opacity: .75;
}
.marquee--functions .item .sep::before { content: "+"; }
.marquee--functions .track,
.marquee--functions .item { gap: clamp(12px, 1.35vw, 22px); }

/* ---------- trionn: link com seta que desliza ---------- */
.svc-link::after {
  content: "↗";
  font-size: 11px;
  margin-left: 8px;
  transition: transform 260ms var(--gg-ease);
}
.svc-link:hover::after { transform: translate(2px, -2px); }

/* ---------- heynesh: vidro fosco nos painéis ----------
   Receita medida no site deles: blur 10 a 20px, fundo do próprio tom da
   página em alpha baixo e borda branca translúcida de 1px. */
.career-panel,
.gen-card {
  background: rgba(20, 20, 20, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}
.career-panel { border-radius: var(--gg-r-3); }

/* ---------- heynesh: a linha do tempo se desenha com o scroll ----------
   Duas camadas sobre o mesmo eixo: o trilho cinza inteiro (::before, que já
   existia) e por cima o traço em cor, escalado em Y pelo progresso que o JS
   escreve em --rail. */
.exp-timeline::after,
.folio-numbers__list::after {
  content: "";
  position: absolute;
  /* 2px sobre o trilho cinza de 1px: em 1px o traço em cor some no meio da
     linha que ele deveria estar cobrindo. O meio pixel de recuo mantém o
     mesmo eixo do ponto (centro em 169.5 / 5.5). */
  width: 2px;
  background: linear-gradient(180deg, var(--gg-coral), var(--gg-gold));
  transform: scaleY(var(--rail, 0));
  transform-origin: top center;
  transition: transform 140ms linear;
  pointer-events: none;
}
.exp-timeline::after { left: 168.5px; top: 12px; bottom: 12px; }
.folio-numbers__list::after { left: 4.5px; top: 24px; bottom: 24px; }

@media (max-width: 1024px) {
  .exp-timeline::after { left: 4.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .exp-timeline::after,
  .folio-numbers__list::after { transition: none; }
  .reveal h2, .reveal .about-title,
  .reveal .sobre-section__title, .reveal .gg-eyebrow {
    filter: none !important;
    transition: none;
  }
}

/* ---------- Experiências: reveal curto, sem blur ou stagger herdado ----------
   O bloco usa uma timeline própria no JS. A entrada é deliberada, mas curta;
   a saída é mais leve e não carrega o atraso da entrada. */
.career .reveal,
.career .reveal-split {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  filter: none;
  clip-path: none;
  transition:
    opacity 360ms cubic-bezier(.22,.61,.36,1),
    transform 460ms cubic-bezier(.22,.61,.36,1);
  transition-delay: 0ms;
}
.career .reveal.is-entering,
.career .reveal.is-exiting { will-change: opacity, transform; }
.career .reveal.is-entering {
  transition-delay: var(--career-delay, 0ms);
}
.career .reveal.in,
.career .reveal-split.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0ms;
}
.career .reveal.is-entering.in { transition-delay: var(--career-delay, 0ms); }
.career .reveal:not(.in) {
  transition-delay: 0ms;
}
.career .reveal.is-exiting {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition-duration: 220ms;
  transition-delay: 0ms;
}
.career .reveal h2,
.career .reveal .about-title,
.career .reveal .sobre-section__title,
.career .reveal .gg-eyebrow {
  filter: none;
  transition: none;
}
.career .career-item.reveal.in:hover {
  transform: translate3d(8px, 0, 0);
  transition-delay: 0ms;
}
.career .career-item.reveal.is-entering:hover { transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .career .reveal,
  .career .reveal.in,
  .career .reveal.is-entering,
  .career .reveal.is-exiting {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
    transition-delay: 0ms !important;
  }
  .career .career-item.reveal.in:hover { transform: none; }
}

/* =============================================================
   Experiência (sobre) em duas colunas: título segura a esquerda,
   linha do tempo corre à direita. Mesmo arranjo já usado em
   "Em números", agora padronizado entre as duas páginas.
   ============================================================= */
@media (min-width: 1025px) {
  .sobre-exp .container {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }
  .sobre-exp .sobre-section__head {
    position: sticky;
    top: 104px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  /* A régua com crosshair marca fim de cabeçalho de largura cheia. Grudada
     numa coluna estreita ela vira um traço solto no meio da página. */
  .sobre-exp .sobre-section__head::before,
  .sobre-exp .sobre-section__head::after { content: none; }

  /* Na coluna da direita não sobra largura pro período em coluna própria:
     ele entra em cima do cargo e o trilho volta pra margem. */
  .sobre-exp .exp-timeline { padding-left: 36px; max-width: none; }
  .sobre-exp .exp-timeline::before { left: 5px; }
  .sobre-exp .exp-timeline::after  { left: 4.5px; }
  .sobre-exp .exp-item::before { left: -36px; }
  .sobre-exp .exp-item__period {
    position: static;
    left: auto; top: auto; width: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
  }
}

/* =============================================================
   Serviços: entrada por partes, não por retângulo.
   Uma linha de 1360px subindo inteira lê como caixa deslizando. A
   régua desenha da esquerda pra direita e o conteúdo sobe por dentro,
   herdando o escalonamento do bloco por --rev-delay.
   ============================================================= */
.svc-item.reveal {
  position: relative;
  opacity: 1;
  transform: none;
  border-top-color: transparent;
}
.svc-item.reveal::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--gg-line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--gg-ease);
  transition-delay: var(--rev-delay, 0s);
}
.svc-item.reveal.in::before { transform: scaleX(1); }
.svc-item.reveal:first-child::before { content: none; }

.svc-item.reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--gg-ease), transform 900ms var(--gg-ease);
  transition-delay: var(--rev-delay, 0s);
}
.svc-item.reveal.in > * { opacity: 1; transform: none; }
.svc-item.reveal.in > *:nth-child(2) { transition-delay: calc(var(--rev-delay, 0s) + 90ms); }
.svc-item.reveal.in > *:nth-child(3) { transition-delay: calc(var(--rev-delay, 0s) + 170ms); }

@media (prefers-reduced-motion: reduce) {
  .svc-item.reveal::before { transform: scaleX(1); transition: none; }
  .svc-item.reveal > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* ---------- Portfolio hero imersivo ----------
   O banner é uma composição atmosférica: ocupa a seção inteira e o conteúdo
   editorial repousa sobre a área escura à esquerda, sem moldura ou card. */
.folio-hero--immersive {
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  background: #171717;
}
.folio-hero--immersive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,12,12,.36) 0%, rgba(12,12,12,.18) 48%, rgba(12,12,12,.04) 78%, rgba(12,12,12,.3) 100%),
    linear-gradient(0deg, rgba(10,10,10,.66) 0%, transparent 34%, rgba(10,10,10,.2) 100%);
}
.folio-hero--immersive .folio-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  width: 100%;
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(54px, 10vh, 120px);
}
.folio-hero--immersive .folio-hero__media {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -2;
  width: calc(100vw - 64px);
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-50%);
}
.folio-hero--immersive .folio-hero__frame::before { display: none; }
.folio-hero--immersive .folio-hero__frame img {
  object-fit: cover;
  object-position: center;
}
.folio-hero--immersive .folio-hero__content {
  width: min(960px, 72vw);
  max-width: 960px;
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: auto;
}
.folio-hero--immersive .folio-hero__greet {
  font-size: clamp(12px, 1vw, 16px);
}
.folio-hero--immersive .folio-hero__title {
  font-size: clamp(64px, 8vw, 124px);
}
.folio-hero--immersive .folio-hero__sub {
  max-width: 58ch;
  font-size: clamp(15px, 1.15vw, 18px);
  text-wrap: pretty;
}
.folio-hero--immersive .folio-hero__services {
  width: 100%;
  margin-top: clamp(8px, 1vw, 16px);
  padding-top: clamp(14px, 2vw, 24px);
}

@media (max-width: 720px) {
  .folio-hero--immersive .folio-hero__inner {
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 42px;
  }
  .folio-hero--immersive .folio-hero__media {
    aspect-ratio: auto;
    width: 100vw;
  }
  .folio-hero--immersive .folio-hero__frame img {
    object-position: 54% center;
  }
  .folio-hero--immersive .folio-hero__content {
    width: 100%;
    max-width: none;
    gap: 12px;
  }
  .folio-hero--immersive .folio-hero__title {
    font-size: clamp(54px, 17vw, 76px);
  }
  .folio-hero--immersive .folio-hero__sub {
    max-width: 34ch;
    font-size: 14px;
  }
  .folio-hero--immersive .folio-hero__services {
    margin-top: 4px;
    padding-top: 10px;
    gap: 12px 16px;
  }
}

/* ---------- Sobre hero imersivo ----------
   Mantém a narrativa da página Sobre, mas usa o mesmo tratamento editorial do
   Portfólio: a fotografia sangra pela esquerda e o currículo respira numa
   coluna independente à direita. */
.sobre-hero--immersive {
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  background: var(--gg-bg);
}
.sobre-hero--immersive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,.04) 0%, rgba(10,10,10,.08) 36%, rgba(10,10,10,.62) 62%, var(--gg-bg) 88%),
    linear-gradient(0deg, rgba(10,10,10,.58) 0%, transparent 36%, rgba(10,10,10,.18) 100%);
}
.sobre-hero--immersive .sobre-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100svh;
  width: 100%;
  padding-top: clamp(88px, 12vh, 132px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.sobre-hero--immersive .sobre-hero__mark {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -2;
  width: min(62vw, 980px);
  min-height: 100%;
}
.sobre-hero--immersive .sobre-hero__mark-frame {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.sobre-hero--immersive .sobre-hero__mark-frame img {
  box-shadow: none;
}
.sobre-hero--immersive .sobre-hero__mark-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: lighten;
  filter: grayscale(1) contrast(1.04);
}
.sobre-hero--immersive .sobre-hero__mark-frame::after {
  background:
    linear-gradient(90deg, transparent 35%, rgba(22,22,22,.12) 54%, var(--gg-bg) 98%),
    linear-gradient(0deg, rgba(10,10,10,.48) 0%, transparent 38%, rgba(10,10,10,.12) 100%);
}
.sobre-hero--immersive .sobre-hero__content {
  width: min(650px, 46vw);
  max-width: 650px;
  margin-left: auto;
  padding: 0;
  gap: clamp(16px, 2vw, 24px);
}
.sobre-hero--immersive .sobre-hero__cta,
.sobre-hero--immersive .sobre-hero__mark-meta {
  width: fit-content;
  max-width: 100%;
}
.sobre-hero--immersive .sobre-hero__intro {
  max-width: 52ch;
}
.sobre-hero--immersive .sobre-hero__mark-meta {
  margin-top: clamp(12px, 1.6vw, 24px);
}

@media (max-width: 1024px) {
  .sobre-hero--immersive {
    min-height: auto;
    overflow: visible;
  }
  .sobre-hero--immersive::before { display: none; }
  .sobre-hero--immersive .sobre-hero__inner {
    display: grid;
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 64px;
  }
  .sobre-hero--immersive .sobre-hero__mark {
    position: static;
    width: 100%;
    min-height: 0;
  }
  .sobre-hero--immersive .sobre-hero__mark-frame {
    height: auto;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--gg-line);
    border-radius: 10px;
    box-shadow: none;
  }
  .sobre-hero--immersive .sobre-hero__mark-frame img {
    object-position: center center;
  }
  .sobre-hero--immersive .sobre-hero__content {
    width: 100%;
    max-width: 680px;
    margin-left: 0;
    padding: 0;
  }
  .sobre-hero--immersive .sobre-hero__cta,
  .sobre-hero--immersive .sobre-hero__mark-meta {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .sobre-hero--immersive .sobre-hero__inner {
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 52px;
  }
  .sobre-hero--immersive .sobre-hero__mark-frame {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }
  .sobre-hero--immersive .sobre-hero__content {
    gap: 12px;
  }
}

/* ---------- Sobre hero: composição final em painel ----------
   A referência usa uma única superfície contida: retrato à esquerda, currículo
   à direita e uma moldura externa fina, sem sombra ou card solto. */
@media (min-width: 1025px) {
  .sobre-hero--immersive {
    min-height: 100svh;
    margin: 0;
    border: 0;
    background: #121212;
  }
  .sobre-hero--immersive::before { display: none; }
  .sobre-hero--immersive .sobre-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
    gap: 0;
    min-height: 100svh;
    max-width: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
  }
  .sobre-hero--immersive .sobre-hero__mark {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    z-index: 0;
  }
  .sobre-hero--immersive .sobre-hero__mark-frame {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #121212;
    box-shadow: none;
  }
  .sobre-hero--immersive .sobre-hero__mark-frame img {
    object-position: center center;
    mix-blend-mode: lighten;
  }
  .sobre-hero--immersive .sobre-hero__mark-frame::after {
    background: linear-gradient(90deg, transparent 68%, rgba(18,18,18,.68) 94%, #121212 100%);
  }
  .sobre-hero--immersive .sobre-hero__content {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: clamp(32px, 5vw, 76px) clamp(24px, 4.4vw, 68px);
    background: #121212;
    justify-content: center;
    gap: clamp(12px, 1.45vw, 22px);
  }
  .sobre-hero--immersive .sobre-hero__title {
    font-size: clamp(25px, 2.45vw, 43px);
    letter-spacing: -0.04em;
    white-space: nowrap;
  }
  .sobre-hero--immersive .sobre-hero__intro {
    max-width: 48ch;
    gap: clamp(10px, 1.2vw, 17px);
    margin-top: 4px;
  }
  .sobre-hero--immersive .sobre-hero__intro p {
    font-size: clamp(11px, 1.05cqi, 15px);
    line-height: 1.5;
  }
  .sobre-hero--immersive .sobre-hero__cta,
  .sobre-hero--immersive .sobre-hero__mark-meta {
    width: min(100%, 500px);
    max-width: 500px;
  }
  .sobre-hero--immersive .sobre-hero__cta {
    gap: 8px;
    margin-top: 8px;
    flex-wrap: nowrap;
  }
  .sobre-hero--immersive .sobre-hero__cta .gg-btn {
    padding-left: 16px;
    padding-right: 10px;
    font-size: 11px;
  }
  .sobre-hero--immersive .sobre-hero__mark-meta {
    margin-top: 8px;
  }
}

@media (max-width: 1024px) {
  .sobre-hero--immersive {
    margin: 0;
    border: 0;
  }
}

/* ---------- Live site experiences ---------- */
.folio-live {
  padding: clamp(72px, 9vw, 144px) 0;
  border-top: 1px solid var(--gg-line);
  background: var(--gg-bg-1);
}
.folio-live__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.folio-live__title {
  margin-top: 18px;
  font: 600 clamp(32px, 4.4vw, 64px)/.98 var(--gg-font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.folio-live__copy {
  margin-top: 20px;
  max-width: 48ch;
  font: 400 15px/1.65 var(--gg-font-body);
  color: var(--gg-fg-1);
}
.folio-live__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.folio-live__card {
  position: relative;
  min-height: 270px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  border: 1px solid var(--gg-line);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(228,176,5,.12), transparent 48%),
    linear-gradient(145deg, var(--gg-bg-2), var(--gg-bg));
  cursor: pointer;
  color: var(--gg-fg);
  isolation: isolate;
  transition: transform 420ms var(--gg-ease), border-color 260ms, box-shadow 420ms var(--gg-ease);
}
.folio-live__card-thumb,
.folio-live__card-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.folio-live__card-thumb { z-index: -3; opacity: .72; }
.folio-live__card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folio-live__card-shade {
  z-index: -2;
  background: linear-gradient(180deg, rgba(8,8,8,.12) 0%, rgba(8,8,8,.4) 42%, rgba(8,8,8,.95) 100%);
}
.folio-live__card::after {
  content: "";
  position: absolute;
  inset: auto -18% -40% 24%;
  height: 68%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255,74,84,.2), transparent 68%);
  filter: blur(20px);
  opacity: .5;
  transition: transform 520ms var(--gg-ease), opacity 260ms;
}
.folio-live__card:hover,
.folio-live__card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--gg-coral);
  box-shadow: 0 20px 50px -30px rgba(255,74,84,.8);
  outline: none;
}
.folio-live__card:hover::after,
.folio-live__card:focus-visible::after {
  transform: scale(1.25);
  opacity: .85;
}
.folio-live__card-index {
  position: absolute;
  top: 18px;
  left: 20px;
  font: 500 11px/1 var(--gg-font-mono);
  letter-spacing: .2em;
  color: var(--gg-gold);
}
.folio-live__card-name {
  display: block;
  font: 600 clamp(20px, 2vw, 30px)/1.05 var(--gg-font-display);
  letter-spacing: -.025em;
}
.folio-live__card-host {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 10px/1.4 var(--gg-font-mono);
  letter-spacing: .08em;
  color: var(--gg-fg-2);
}
.folio-live__card-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font: 600 11px/1 var(--gg-font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gg-coral);
}
.folio-live__card-action span {
  font-size: 16px;
  transition: transform 260ms var(--gg-ease);
}
.folio-live__card:hover .folio-live__card-action span,
.folio-live__card:focus-visible .folio-live__card-action span { transform: translate(3px, -3px); }

.proj-overlay__live {
  margin: 0 0 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gg-line);
}
.proj-overlay__live[hidden] { display: none; }
.proj-overlay__live-head { margin-bottom: 24px; }
.proj-overlay__live-head p {
  margin-top: 12px;
  max-width: 48ch;
  font: 400 14px/1.6 var(--gg-font-body);
  color: var(--gg-fg-1);
}
.proj-overlay__live .folio-live__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.live-preview {
  width: min(96vw, 1480px);
  height: min(94svh, 940px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--gg-line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--gg-bg-1);
  color: var(--gg-fg);
  box-shadow: 0 30px 100px rgba(0,0,0,.58);
}
.live-preview::backdrop { background: rgba(8,8,8,.82); backdrop-filter: blur(12px); }
.live-preview__shell { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.live-preview__bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 12px 22px;
  border-bottom: 1px solid var(--gg-line);
  background: rgba(31,31,31,.96);
}
.live-preview__heading { min-width: 0; }
.live-preview__eyebrow {
  display: block;
  margin-bottom: 5px;
  font: 500 10px/1 var(--gg-font-mono);
  letter-spacing: .2em;
  color: var(--gg-gold);
  text-transform: uppercase;
}
.live-preview__heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 clamp(18px, 2vw, 26px)/1 var(--gg-font-display);
}
.live-preview__actions { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.live-preview__external {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--gg-line-strong);
  border-radius: 999px;
  color: var(--gg-fg-1);
  font: 500 11px/1 var(--gg-font-mono);
  transition: border-color 220ms, color 220ms;
}
.live-preview__external:hover { border-color: var(--gg-coral); color: var(--gg-fg); }
.live-preview__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gg-line-strong);
  border-radius: 999px;
  color: var(--gg-fg);
  font-size: 23px;
  line-height: 1;
  transition: border-color 220ms, color 220ms, transform 220ms;
}
.live-preview__close:hover { border-color: var(--gg-coral); color: var(--gg-coral); transform: rotate(8deg); }
.live-preview__viewport { min-height: 0; background: #fff; }
.live-preview__viewport iframe { width: 100%; height: 100%; display: block; border: 0; background: #fff; }

@media (max-width: 1100px) {
  .folio-live__grid,
  .proj-overlay__live .folio-live__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .folio-live { padding: 64px 0 80px; }
  .folio-live__grid,
  .proj-overlay__live .folio-live__grid { grid-template-columns: 1fr; }
  .folio-live__card { min-height: 220px; }
  .live-preview { width: 100vw; height: 100svh; border: 0; border-radius: 0; }
  .live-preview__bar { padding-left: 16px; }
  .live-preview__external { display: none; }
}

/* =============================================================
   Mobile clean pass — conteúdo confortável, sem overflow e com
   controles tocáveis em todas as páginas.
   ============================================================= */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 11px 14px;
  border-radius: var(--gg-pill);
  background: var(--gg-coral);
  color: var(--gg-paper);
  font: 700 12px/1 var(--gg-font-mono);
  transform: translateY(-160%);
  transition: transform 180ms var(--gg-ease);
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--gg-fg); outline-offset: 3px; }

@media (max-width: 720px) {
  html { overflow-x: hidden; }
  body { min-width: 0; overflow-x: hidden; }
  .container { width: 100%; max-width: 100%; padding-inline: 16px; }
  .section { padding: 64px 0; }
  .section-head { display: block; padding-bottom: 20px; margin-bottom: 32px; }
  .section-head .meta { margin-top: 20px; max-width: 38ch; }

  .gg-header { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 10px; }
  .gg-header .inner { min-height: 44px; gap: 12px; }
  .gg-menu-btn { flex: 0 0 44px; min-width: 44px; min-height: 44px; }
  .gg-side-menu__panel { width: min(calc(100vw - 24px), 360px); max-width: none; padding: 24px 20px; }
  .gg-side-menu__top { margin-bottom: 28px; }
  .gg-side-menu__nav { gap: 4px; }
  .gg-side-menu__nav a { min-height: 44px; font-size: 22px; }
  .gg-btn { min-height: 44px; }

  .hero-v2__inner { min-height: min(100svh, 760px); padding: 16px 16px 40px; }
  .hero-v2__bg-img { object-position: 62% center; }
  .hero-v2__card-wrap, .gen-card { width: 100%; max-width: 100%; }
  .gen-card { padding: 20px 16px 16px; }
  .hero-v2__name { font-size: clamp(36px, 12vw, 58px); }
  .hero-v2__lede { max-width: 30ch; font-size: 14px; }
  .hero-v2__socials a { width: 44px; height: 44px; }

  .folio-hero--immersive .folio-hero__inner { min-height: min(100svh, 760px); padding-top: calc(78px + env(safe-area-inset-top)); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .folio-hero--immersive .folio-hero__content { width: 100%; max-width: 100%; gap: 12px; }
  .folio-hero--immersive .folio-hero__title { font-size: clamp(52px, 16vw, 76px); }
  .folio-hero--immersive .folio-hero__sub { max-width: 30ch; font-size: 14px; }
  .folio-hero__cta { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
  .folio-hero__cta .gg-btn { width: 100%; justify-content: space-between; }
  .folio-hero__services { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 14px; }
  .folio-hero__services li { flex: 0 0 auto; }
  .folio-hero__services .lbl { overflow-wrap: normal; }
  .folio-hero__note { max-width: 34ch; font-size: 11px; line-height: 1.45; }

  .folio-strip, .folio-cats, .folio-numbers { padding-top: 56px; padding-bottom: 64px; }
  .folio-strip__head, .folio-cats__head { margin-bottom: 28px; }
  .folio-strip__rail .thumb { width: 156px; }
  .folio-cats__list { grid-template-columns: 1fr; gap: 12px; }
  .folio-cat__card { aspect-ratio: 4 / 3; }
  .folio-filters { margin-top: -8px; padding: 14px; overflow-x: auto; scrollbar-width: none; }
  .folio-filters::-webkit-scrollbar { display: none; }
  .folio-filters__group { flex-wrap: nowrap; min-width: max-content; }
  .folio-filters button { min-height: 44px; }
  .folio-numbers .container { gap: 28px; }
  .folio-numbers__list li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }

  .sobre-hero__inner { gap: 30px; }
  .sobre-hero__mark-frame { min-height: 0; aspect-ratio: 4 / 5; box-shadow: none; }
  .sobre-hero__content { gap: 14px; }
  .sobre-hero__title { font-size: clamp(36px, 11vw, 56px); }
  .sobre-hero__intro { max-width: 34ch; gap: 14px; }
  .sobre-hero__cta { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .sobre-hero__cta .gg-btn { width: 100%; justify-content: space-between; }
  .sobre-hero__mark-meta { margin-top: 20px; }

  .career-grid { gap: 32px; }
  .career .career-item.reveal.in:hover { transform: none; }
  .career-panel { padding: 22px 18px; }
  .contact { padding: 72px 0; }
  .contact__grid { gap: 28px; }
  .contact__email { font-size: clamp(20px, 7vw, 29px); overflow-wrap: anywhere; }
  .contact__social { gap: 8px; }
  .contact__social a { min-height: 44px; display: inline-flex; align-items: center; }

  .proj-overlay { padding: 8px; }
  .proj-overlay__body { padding: 22px 16px; }
  .lightbox__close { top: 12px; right: 12px; }
  .live-preview__bar { gap: 8px; padding: 10px 12px; }
  .live-preview__heading h2 { font-size: 18px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 14px; }
  .hero-v2__inner { padding-inline: 14px; }
  .folio-hero__services .num { letter-spacing: .12em; }
  .folio-hero__services .lbl { font-size: 11px; }
  .folio-hero__note { max-width: 30ch; }
  .career-item__body h3 { font-size: 18px; }
  .contact__meta li { padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* =============================================================
   Mobile parity pass
   A versão desktop define a ordem e os destinos da navegação. No celular,
   a mesma sequência é mantida e os blocos recebem largura explícita para
   que nenhum conteúdo herde medidas de desktop ou crie overflow lateral.
   ============================================================= */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .gg-header .inner,
  .hero-v2__inner,
  .hero-v2__top,
  .hero-v2__center,
  .hero-v2__card-wrap,
  .hero-v2__bottom,
  .gen-card {
    min-width: 0;
    max-width: 100%;
  }

  .gg-header .inner { width: auto; }
  .hero-v2__inner { width: 100% !important; flex: 1 1 auto; }

  .hero-v2__top,
  .hero-v2__center,
  .hero-v2__card-wrap,
  .gen-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-v2__inner { overflow: clip; }
  .gg-header { overflow: clip; }
  .gg-header .inner { position: relative; padding-right: 70px; }
  .gg-menu-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 2;
    transform: translateY(-50%);
  }
  .gen-card { box-sizing: border-box; }
  .gen-card__head { min-width: 0; align-items: flex-start; }
  .gen-card h3,
  .gen-card__def,
  .gen-card__src {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero-v2__name,
  .hero-v2__lede { max-width: 100%; }
  .hero-v2__socials { flex-wrap: wrap; }

  .folio-hero--immersive .folio-hero__inner,
  .folio-hero--immersive .folio-hero__content,
  .folio-hero--immersive .folio-hero__cta,
  .folio-hero--immersive .folio-hero__services,
  .folio-hero--immersive .folio-hero__note,
  .sobre-hero--immersive .sobre-hero__inner,
  .sobre-hero--immersive .sobre-hero__mark,
  .sobre-hero--immersive .sobre-hero__content,
  .sobre-hero--immersive .sobre-hero__intro,
  .sobre-hero--immersive .sobre-hero__cta,
  .sobre-hero--immersive .sobre-hero__mark-meta {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .folio-hero--immersive .folio-hero__inner,
  .sobre-hero--immersive .sobre-hero__inner {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto;
  }

  .folio-hero--immersive .folio-hero__inner { justify-content: flex-start; }
  .folio-hero--immersive .folio-hero__content,
  .sobre-hero--immersive .sobre-hero__content {
    align-self: flex-start;
    margin-left: 0 !important;
    transform: none;
    text-align: left;
  }

  .folio-hero--immersive .folio-hero__services {
    flex-wrap: wrap;
    overflow: hidden;
  }
  .folio-hero--immersive .folio-hero__services li {
    white-space: normal;
    min-width: 0;
    max-width: 100%;
  }
  .folio-hero--immersive .folio-hero__services .lbl,
  .folio-hero--immersive .folio-hero__note,
  .sobre-hero--immersive .sobre-hero__intro p,
  .sobre-hero--immersive .sobre-hero__mark-loc .val {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gg-side-menu__panel {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
