/* ------------------------------------------------------------------
   viniciusbustamanti.space — folha de estilo unica do site.
   ------------------------------------------------------------------ */

/* ---------- Poppins (arquivos locais) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins/pxiGyp8kv8JHgFVrJJLucHtA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins/pxiGyp8kv8JHgFVrJJLufntAKPY.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmy15VF9eO.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmy15VGdeOcEg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+A720-A7FF; }

/* ---------- tokens ---------- */
/* ------------------------------------------------------------------
   Tokens — medidos no site publicado (container de 1140px, 1440 de tela)
   ------------------------------------------------------------------ */
:root {
  --bg:          #151312;
  --ink:         #ffffff;
  --body:        #998f8f;
  --head-muted:  rgba(182, 180, 189, .45);
  --orange:      #ff7755;
  --orange-deep: #f46c38;
  --lime:        #c5ff41;
  --card:        #ffffff;
  --card-ink:    #151312;

  --shell:    1140px;
  --col-left: 344px;
  --col-gap:  100px;
  --radius:   16px;
  --gutter:   20px;
}

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

/* overflow-x: clip, nao hidden: hidden cria um contexto de rolagem e
   quebraria o position: sticky do cartao de perfil. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 18px/1.55 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
.boot { padding: 160px var(--gutter); text-align: center; color: var(--body); }

/* ------------------------------------------------------------------
   Nav — pill fixo e centralizado: 238x48, raio 16, gap 18, padding 0 20
   ------------------------------------------------------------------ */
.nav {
  /* margin auto em vez de translateX(-50%): sem transform o icone nao cai em meio pixel e fica nitido */
  position: fixed; top: 30px; left: 0; right: 0; margin: 0 auto; width: fit-content;
  z-index: 60;
  display: flex; align-items: center; gap: 18px;
  height: 48px; padding: 0 20px;
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.nav a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #a3a3a3;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover              { color: var(--ink); background: rgba(255, 255, 255, .07); }
.nav a[aria-current=page] { color: var(--ink); background: rgba(255, 255, 255, .10); }
.nav svg { width: 20px; height: 20px; }
.nav .lang {
  width: auto; padding: 0 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
}
.nav-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------------
   Shell — 344 + 100 de gap + 696 = 1140
   ------------------------------------------------------------------ */
.shell {
  position: relative;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 140px 0 120px;
  display: grid;
  grid-template-columns: var(--col-left) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

/* ------------------------------------------------------------------
   Rabiscos da home.
   Cada um fica preso a secao em que aparece (top relativo ao titulo dela);
   left/right e largura por breakpoint, altura pela proporcao da imagem.
   z-index -1: ficam atras do texto e do cartao de perfil.
   ------------------------------------------------------------------ */
.decor {
  position: absolute; z-index: -1; height: auto; max-width: none;
  pointer-events: none; user-select: none;
  rotate: -13deg;
}
.decor.appear { opacity: 0; translate: 0 -20px; transition: opacity .6s ease, translate .6s ease; }
.decor.appear.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .decor.appear { opacity: 1; translate: none; transition: none; }
}
.content > section { position: relative; }

/* distancia da borda da janela ate a coluna de conteudo, para os dois
   rabiscos que no original ficam presos a borda esquerda da pagina */
:root { --content-x: calc(max(20px, (100vw - var(--shell)) / 2) + var(--col-left) + var(--col-gap)); }

/* >= 1440 */
.decor-bomb       { left: 525px; top: -123px; width: 297px; }
.decor-bomb-t     { display: none; }
.decor-featured   { left: 508px; top: 18px;   width: 192px; }
.decor-mentorship { left: 560px; top: 83px;   width: 111px; rotate: -1deg; }
.decor-contact    { left: 462px; top: -40px;  width: 208px; rotate: 5deg; }
.decor-sideLarge  { left: calc(56px - var(--content-x)); top: 412px; width: 411px; }
.decor-sideSmall  { left: calc(7px - var(--content-x));  top: 183px; width: 89px; }

/* ------------------------------------------------------------------
   Cartão de perfil — 344 de largura, ~633 de altura
   ------------------------------------------------------------------ */
.profile { position: relative; position: sticky; top: 40px; z-index: 1; }
/* O cartao tem ~652px de altura e comeca 140px abaixo do topo: em janelas
   baixas (notebook com escala 125-175% no Windows) a base ficava fora da
   tela. Nelas o topo sobe para 110px e o cartao encolhe por igual (largura
   fixa em 344 nas unidades dele, centralizado na coluna), em degraus que
   fazem 110 + 652 x zoom caber na menor altura de cada faixa. */
@media (min-width: 1080px) and (max-height: 800px) {
  .shell { padding-top: 110px; }
  .profile { width: 344px; justify-self: center; zoom: .92; }
}
@media (min-width: 1080px) and (max-height: 720px) { .profile { zoom: .8; } }
@media (min-width: 1080px) and (max-height: 640px) { .profile { zoom: .67; } }
@media (min-width: 1080px) and (max-height: 560px) { .profile { zoom: .55; } }

.profile-card {
  position: relative; overflow: hidden;
  background: var(--card); color: var(--card-ink);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
}
/* rabiscos claros por trás do conteúdo, recortados pelo cartão.
   Valores: posicao por left/bottom, opacidade
   .67 (o da palmeira .31) e rotacao propria — a mesma em todo breakpoint. */
.profile-doodle { position: absolute; pointer-events: none; user-select: none; z-index: 0; height: auto; max-width: none; }
.profile-doodle.a { left: -16px; bottom: 552px; width: 95px;  opacity: .67; rotate: -13deg; }
.profile-doodle.b { left: 256px; bottom: 569px; width: 116px; opacity: .67; }
.profile-doodle.c { left: 268px; bottom: 10px;  width: 124px; opacity: .67; rotate: 165deg; }
.profile-doodle.d { left: -23px; bottom: 71px;  width: 235px; opacity: .31; rotate: -13deg; }

.profile-card > *:not(.profile-doodle) { position: relative; z-index: 1; }

.profile-portrait {
  width: 240px; height: 284px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 12px;
  background: var(--orange-deep);
}
.profile-name {
  margin: 24px 0 0;
  font-size: 36px; line-height: 1.1; font-weight: 700;
  color: var(--card-ink); letter-spacing: -.01em;
}
.profile-tagline {
  margin: 24px auto 0; max-width: 300px;
  font-size: 18px; line-height: 1.35; font-weight: 500;
  color: var(--card-ink);
}
.profile-social { margin-top: 24px; display: flex; justify-content: center; gap: 16px; }
.profile-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--orange-deep); transition: transform .18s ease, color .18s ease;
}
.profile-social a:hover { color: var(--orange); transform: translateY(-2px); }
.profile-social svg { display: block; }

/* Cartao da /about: foto no lugar do avatar, sem o nome
   (ele vira o titulo da coluna ao lado) e com o balao de fala no canto.
   Mesma grade das outras paginas. */
.profile-note {
  position: absolute; top: 9px; right: 14px; width: 167px; z-index: 3;
  padding-bottom: 12px;
}
.profile-note p {
  position: relative; margin: 0;
  background: #fff; border: 1px solid var(--orange); border-radius: 18px;
  padding: 10px 12px;
  font-size: 14px; font-weight: 500; line-height: 1.3; color: #171312; text-align: left;
}
.profile-note p::after {
  content: ""; position: absolute; left: 24px; bottom: -7px; width: 12px; height: 12px;
  background: #fff; border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange);
  transform: rotate(45deg);
}


/* ------------------------------------------------------------------
   Coluna de conteúdo
   ------------------------------------------------------------------ */
/* isolation: os rabiscos (z-index -1) ficam presos a coluna, atras do texto,
   em vez de irem para o fundo da pagina — la, junto com o cartao sticky,
   o Chrome as vezes apagava o conteudo por um instante (flicker no desktop).
   O cartao fica por cima deles com z-index 1. */
.content { position: relative; min-width: 0; isolation: isolate; }
.content > section + section { margin-top: 60px; }

/* Títulos de duas cores: primeira linha branca, segunda cinza */
.display {
  margin: 0;
  font-weight: 700; color: var(--ink);
  line-height: 1; letter-spacing: -.02em;
  text-transform: uppercase;
}
.display span { display: block; color: var(--head-muted); }
.display.hero    { font-size: 110px; }
.display.section { font-size: 90px; }

/* Subtítulo laranja */
.h-orange {
  margin: 10px 0 0;
  font-size: 38px; line-height: 1.2; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
}

.lede { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--body); }
.lede + .lede { margin-top: 18px; }

/* ------------------------------------------------------------------
   Parceiros — quatro vagas (gap 35, linha de 200 de altura, 10 abaixo do
   titulo). Cada vaga alterna os seus logos: encolhe para 85% e some em
   .5s, o proximo cresce de 85% em .5s. A troca e feita em site.js.
   ------------------------------------------------------------------ */
.partner-row {
  margin-top: 10px; min-height: 200px;
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: 24px 35px;
}
.partner-slot { flex: none; display: flex; align-items: center; }
.partner-slot img {
  width: auto; max-width: none; object-fit: contain;
  transition: opacity .5s ease-in-out, scale .5s ease-in-out;
}
.partner-slot img.is-out { opacity: 0; scale: .85; }
.partner-slot img[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .partner-slot img { transition: opacity .5s ease-in-out; }
  .partner-slot img.is-out { scale: 1; }
}

/* Faixa de mentoria — ticker de 148x148 em vagas de 180 (medido no original) */
.marquee { margin-top: 24px; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 32px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { flex: none; }
.marquee img { width: 148px; height: 148px; object-fit: contain; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}


/* ------------------------------------------------------------------
   Grade de projetos — 2 colunas de 348, imagem 242x184
   ------------------------------------------------------------------ */
.project-grid {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.project-card {
  display: block; padding: 24px 16px 40px;
  border-radius: var(--radius);
  transition: background-color .2s ease;
}
.project-card:hover { background: rgba(255, 255, 255, .03); }
.project-card h3 {
  margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.project-card h3 svg { width: 18px; height: 18px; flex: none; color: var(--orange); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.project-card:hover h3 svg { opacity: 1; transform: translateX(0); }
.project-card .thumb { margin-top: 20px; border-radius: 12px; overflow: hidden; background: #202026; }
.project-card .thumb img { width: 100%; aspect-ratio: 242 / 184; object-fit: cover; }
.project-card p { margin: 18px 0 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.project-card .date { margin-top: 14px; font-size: 14px; color: #6f6767; }

/* ------------------------------------------------------------------
   Mentoria
   ------------------------------------------------------------------ */
.mentorship h3 { margin: 24px 0 0; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--orange); }
.mentorship p  { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--body); }
.mentorship-image { margin-top: 28px; width: 100%; border-radius: 12px; }

/* ------------------------------------------------------------------
   Contato — sem formulário: só redes e e-mail
   ------------------------------------------------------------------ */
.contact p { margin: 18px 0 0; max-width: 480px; }
.contact-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink); font-size: 16px; font-weight: 500;
  transition: background-color .18s ease, transform .18s ease;
}
.contact-links a:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.contact-links svg { height: 20px; width: auto; flex: none; color: var(--orange); }

/* ------------------------------------------------------------------
   Sobre
   ------------------------------------------------------------------ */
.about-block { margin-top: 44px; }
/* No original os titulos da /about sao brancos 50/700 em 60 de entrelinha,
   com a caixa que o texto tiver — nao laranja em maiusculas. */
.about-block h2 { margin: 0 0 16px; font-size: 50px; line-height: 60px; font-weight: 700; color: var(--ink); }
.about-block p  { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--body); }
/* /about: nome 50/700 em 60 de entrelinha, cargo 26/600 laranja — medidos no original */
.about-name { margin: 0; font-size: 50px; line-height: 60px; font-weight: 700; color: var(--ink); }
.eyebrow { margin-top: 0; font-size: 26px; line-height: 31px; font-weight: 600; text-transform: uppercase; color: var(--orange); }
.stack { display: grid; gap: 24px; }
.stack-item h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--ink); }
.stack-item p  { margin: 0; }
/* skills: grupos em duas colunas, lista com bolinhas */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; }
.skill-group h3 { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 20px; font-weight: 600; color: var(--ink); }
.skill-group ul { margin: 0; padding-left: 18px; }
.skill-group li { font-size: 18px; line-height: 1.6; color: var(--body); margin-bottom: 6px; }
.skill-group li::marker { color: var(--orange); }

/* timeline: linha vertical, bolinha por item, cargos atuais preenchidos */
.timeline { border-left: 1px solid rgba(255, 255, 255, .15); margin-left: 6px; padding-left: 26px; }
.tl-item { position: relative; padding: 18px 0; }
.tl-item + .tl-item { border-top: 1px solid rgba(255, 255, 255, .08); }
.tl-item::before { content: ''; position: absolute; left: -32px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 1px solid var(--orange); }
.tl-item.is-now::before { background: var(--orange); box-shadow: 0 0 10px rgba(255, 119, 85, .6); }
.tl-item h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tl-item .at { color: var(--orange); font-size: 16px; font-weight: 500; }
.tl-item p { margin: 0; }
.period { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }

/* ------------------------------------------------------------------
   Case study
   ------------------------------------------------------------------ */
.case-cover { margin-top: 28px; width: 100%; border-radius: var(--radius); }
.case-section { margin-top: 56px; }
.case-section > h2 {
  margin: 0 0 20px; font-size: 38px; line-height: 1.2; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
}
.case-section .num { color: var(--head-muted); margin-right: 10px; }
.case-section h3 { margin: 28px 0 10px; font-size: 24px; font-weight: 600; color: var(--ink); }
.case-section p  { margin: 0 0 16px; font-size: 18px; line-height: 1.65; color: var(--body); }
.case-section a  { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.case-section ul { margin: 0 0 16px; padding-left: 22px; }
.case-section li { margin-bottom: 10px; font-size: 18px; line-height: 1.6; color: var(--body); }
.case-section img { margin: 24px 0; width: 100%; border-radius: 12px; }
.case-embed { position: relative; margin: 24px 0; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #202026; }
.case-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-note {
  margin: 0 0 16px; padding: 14px 16px;
  border-left: 3px solid var(--lime);
  background: rgba(197, 255, 65, .06);
  font-size: 16px; line-height: 1.55; color: #d8d3d3;
}

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; color: var(--orange); font-weight: 500; }
.back-link svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------
   Blog vazio
   ------------------------------------------------------------------ */
.empty { margin-top: 24px; padding: 40px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: var(--radius); text-align: center; }

/* ------------------------------------------------------------------
   Rodapé
   ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); padding: 28px var(--gutter); text-align: center; font-size: 14px; color: #6f6767; }

/* ------------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------------ */
/* Pontos de quebra do original: 1440 / 1080 / 810.
   Abaixo de 1266 o gap entre as colunas cai de 100 para 50 (medido a 1200). */
/* Rabiscos entre 1080 e 1439: presos pela direita da coluna, que no
   original muda de largura nessa faixa. */
@media (max-width: 1439px) {
  .decor-bomb       { left: auto; right: -20px; top: -163px; width: 297px; }
  .decor-featured   { left: auto; right: 5px;   top: -12px;  width: 111px; }
  .decor-mentorship { left: auto; right: -66px; top: -40px;  width: 132px; }
  .decor-contact    { left: auto; right: 61px;  top: 30px;   width: 134px; }
  .decor-sideLarge  { left: calc(44px - var(--content-x)); top: 462px; width: 317px; }
  .decor-sideSmall  { left: calc(15px - var(--content-x)); top: 233px; width: 88px; }
}

@media (max-width: 1265px) {
  :root { --col-gap: 50px; }
  .display.hero    { font-size: 94px; }
  .display.section { font-size: 77px; }
}

/* Abaixo de 1080 o original vira uma coluna so: o cartao ocupa a largura
   inteira, para de grudar na rolagem e o container trava em 750. */
@media (max-width: 1079px) {
  .shell {
    width: min(750px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 100px 0 100px;
  }

  .profile { position: relative; top: auto; }

  /* Numa coluna so a bomba desce para o lado do "7 YEARS" e os dois
     rabiscos da borda esquerda somem. */
  .decor-bomb, .decor-sideLarge, .decor-sideSmall { display: none; }
  .decor-bomb-t     { display: block; left: auto; right: -4px; top: -21px; width: 173px; }
  .decor-featured   { display: none; } /* a bomba-t ja enfeita esta secao */
  .decor-mentorship { right: -28px; top: -60px;  width: 145px; }
  .decor-contact    { right: 21px;  top: 40px;   width: 160px; }
  .display.hero    { font-size: 86px; }
  .display.section { font-size: 70px; }
  .about-name, .about-block h2 { font-size: 44px; line-height: 1.2; }

  /* variante "tablet" do cartao (781 de largura): a e b mudam de
     lugar e de tamanho; b e c ficam presos pela direita */
  .profile-doodle.a { left: 52px; top: 0; bottom: auto; width: 109px; }
  .profile-doodle.b { left: auto; right: 0;   bottom: 316px; width: 260px; }
  .profile-doodle.c { left: auto; right: 6px; bottom: 14px; }
}

/* Abaixo de 810 (celular): container fluido, retrato mais largo e baixo,
   e os dois rabiscos claros trocam de canto — como no original. */
@media (max-width: 809px) {
  .shell { width: calc(100% - 40px); padding: 80px 0 90px; }
  .display.hero    { font-size: min(86px, calc(20vw - 8px)); }
  .hero .display.hero, .hero .h-orange { text-align: center; }
  .display.section { font-size: 70px; white-space: nowrap; text-align: center; }
  .contact .display.section { font-size: 56px; } /* nao encosta no rabisco */
  .h-orange        { font-size: 26px; }
  .about-name, .about-block h2 { font-size: 36px; line-height: 1.2; }
  .case-section > h2 { font-size: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { padding: 20px 0 32px; }
  /* logos numa linha so: escala tudo em vez de quebrar (quebrar mudava a
     altura da faixa a cada troca de logo e a pagina pulava) */
  .partner-row { min-height: 160px; gap: 28px; justify-content: space-between; zoom: .7; }

  .profile-portrait { width: 260px; height: 210px; }
  .profile-note { right: 0; }

  /* variante "celular" do cartao */
  .profile-doodle.a { left: 264px; right: auto; top: auto; bottom: -13px; width: 95px; }
  .profile-doodle.b { left: 244px; right: auto; bottom: 176px; width: 116px; }
  .profile-doodle.c { left: -22px; right: auto; bottom: 421px; }
  .profile-doodle.d { left: -63px; bottom: 38px; }

  /* no celular so o rabisco do contato continua */
  .decor-bomb-t, .decor-featured, .decor-mentorship { display: none; }
  .decor-contact { right: -12px; top: 10px; width: 99px; }
}

@media (max-width: 520px) { .partner-row { zoom: .5; } }
@media (max-width: 360px) { .partner-row { zoom: .44; } }

@media (max-width: 430px) {
  :root { --gutter: 16px; }
  .nav { gap: 8px; padding: 0 12px; height: 44px; }
  .nav a { width: 32px; height: 32px; }
  .nav .lang { padding: 0 6px; }
}

/* ------------------------------------------------------------------
   /projects — lista de uma coluna (medida no original: linha 696x175,
   miniatura 130x135 à esquerda, texto centralizado, seta à direita)
   ------------------------------------------------------------------ */
.project-list { margin-top: 24px; }
.project-row {
  position: relative;
  display: grid; grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px; align-items: center;
  padding: 20px 16px; border-radius: var(--radius);
  transition: background-color .2s ease;
}
.project-row:hover { background: rgba(255, 255, 255, .03); }
.project-row .thumb {
  width: 130px; height: 135px; border-radius: 12px;
  overflow: hidden; background: #202026;
}
.project-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-row h3 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.project-row p  { margin: 6px 0 0; max-width: 420px; font-size: 16px; line-height: 1.4; color: var(--body); }
.project-row .date { margin-top: 8px; font-size: 13px; color: #6f6767; }
.project-row .go {
  position: absolute; top: 32px; right: 16px;
  width: 28px; height: 28px; color: var(--orange-deep);
  transition: transform .2s ease;
}
.project-row:hover .go { transform: translate(3px, -3px); }

@media (max-width: 720px) {
  .project-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .project-row .thumb { width: 96px; height: 100px; }
  .project-row h3 { font-size: 20px; }
  .project-row .go { display: none; }
}

/* ------------------------------------------------------------------
   Transicao entre paginas — o conteudo sai em fade (classe posta pelo
   site.js ao clicar num link interno) e entra em fade. O nav fica parado.
   O "Loading" so aparece se a pagina demorar.
   ------------------------------------------------------------------ */
@keyframes page-in { from { opacity: 0; translate: 0 8px; } }
.shell { animation: page-in .6s cubic-bezier(.22, .61, .36, 1) backwards; transition: opacity .3s ease; }
body.is-leaving .shell { opacity: 0; }
.boot { animation: page-in .4s .8s both; }
@media (prefers-reduced-motion: reduce) {
  .shell, .boot { animation: none; transition: none; }
}

/* "See more +" no fim dos projetos da home */
.see-more {
  display: table; margin: 8px auto 0; padding: 12px 22px;
  border: 1px solid var(--orange); border-radius: 12px;
  color: var(--orange); font-size: 16px; font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.see-more:hover { background: var(--orange); color: var(--bg); }

/* Tags dos projetos: plataformas (contorno) e habilidades (preenchidas) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span {
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .02em;
}
.tags.is-platform span { border: 1px solid var(--orange); color: var(--orange); }
.tags.is-skill span    { background: rgba(255, 255, 255, .07); color: #c9c1c1; }
.project-row .tags { margin-top: 8px; }
