/* =========================================================
   ISAAC ALEXANDRE — Creative Copywriter · v4
   Cores: azul elétrico #0811F4 (identidade), branco #FAFAFA, preto #171827.
   Tipografia (2 famílias):
     · Archivo  — leitura (largura normal) e impacto (condensada, pesada)
     · Silkscreen — etiquetas, navegação, menus, indicadores, títulos da vitrine
   ========================================================= */

:root {
  --bg: #FAFAFA;
  --surface: #EFEFF1;
  --ink: #171827;
  --text: #171827;
  --muted: #4E4F5A;      /* 7.9:1 sobre #FAFAFA */
  --faint: #66676E;      /* 5.4:1 sobre #FAFAFA */
  --line: #DEDEE3;
  --blue: #0811F4;
  --blue-soft: #9EA3FF;
  --on-blue: #FAFAFA;
  --on-blue-2: rgba(250, 250, 250, .86);  /* 6:1 sobre o azul */
  --on-blue-line: rgba(250, 250, 250, .3);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;

  --r: 10px;
  --r-sm: 6px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* estrela de 6 pontas (✶) desenhada em geometria — a mesma do favicon */
  --star: polygon(50% 0, 60.42% 31.96%, 93.3% 25%, 70.83% 50%, 93.3% 75%, 60.42% 68.04%, 50% 100%, 39.58% 68.04%, 6.7% 75%, 29.17% 50%, 6.7% 25%, 39.58% 31.96%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: light; }
html:has(body.home), html:has(body.sobre) { background: var(--blue); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.home main :focus-visible, .sobre main :focus-visible, .site-footer :focus-visible, .p-next :focus-visible,
.project .p-hero :focus-visible, .lb :focus-visible { outline-color: var(--on-blue); }
.sobre .cv-band :focus-visible { outline-color: var(--blue); }
::selection { background: var(--ink); color: var(--on-blue); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* idiomas: PT padrão, EN via html[data-lang="en"] */
html:not([data-lang="en"]) [data-l="en"],
html[data-lang="en"] [data-l="pt"] { display: none !important; }

.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tipografia de sistema */
.label, .px {
  font-family: var(--pixel); font-weight: 400; font-size: 11px;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1.25;
}
.display {
  font-family: var(--sans); font-weight: 800; font-variation-settings: "wdth" 70;
  text-transform: uppercase; line-height: .9; letter-spacing: -.005em;
  margin: 0; color: var(--ink);
}
.star-shape { display: inline-block; width: 1em; height: 1em; background: currentColor; clip-path: var(--star); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm);
}
.skip:focus { top: 8px; }

/* ---------- header (pílula flutuante) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .45s var(--ease);
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .wrap { pointer-events: auto; }
.site-header .bar {
  height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 9px 0 22px;
  background: rgba(250, 250, 250, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: box-shadow .3s;
}
.site-header.is-scrolled .bar { box-shadow: 0 10px 30px -18px rgba(23, 24, 39, .45); }

/* assinatura: Isaac Alexandre → Creative Copywriter (pixel) */
.brand {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  font-family: var(--pixel); font-size: 11px; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.brand .b-role { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.brand .b-arrow { color: var(--blue); display: inline-block; transition: transform .4s var(--ease); }
.brand:hover .b-arrow { transform: translateX(3px); }

.nav-inline { display: flex; align-items: center; gap: 24px; color: var(--muted); }
.nav-inline a { position: relative; padding: 4px 0; transition: color .25s; }
.nav-inline a:hover, .nav-inline a[aria-current="page"] { color: var(--ink); }
.nav-inline a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-inline a:hover::after, .nav-inline a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; gap: 2px; color: var(--muted); }
.lang button { padding: 6px 8px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.lang button[aria-pressed="true"] { color: var(--blue); background: var(--surface); }
.lang button:hover { color: var(--ink); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transition: background .3s;
}
.menu-btn:hover { background: var(--blue); }
.menu-btn .bars { width: 14px; height: 8px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 6px; }
body.menu-open .menu-btn .bars::before { top: 3px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars::after { top: 3px; transform: rotate(-45deg); }

/* ---------- menu (todas as páginas) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg); color: var(--ink);
  padding-top: var(--header-h);
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0 round 0 0 24px 24px);
  visibility: hidden;
  transition: clip-path .65s var(--ease), visibility 0s linear .65s;
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { clip-path: inset(0 0 0 0 round 0); visibility: visible; transition: clip-path .65s var(--ease), visibility 0s; }
.menu .wrap { flex: 1; display: grid; grid-template-columns: 1fr minmax(240px, 32%); gap: 48px; padding-top: 20px; padding-bottom: 28px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 11px 0 9px;
  font-family: var(--pixel); font-weight: 400; text-transform: uppercase; letter-spacing: 0;
  font-size: clamp(20px, 3.2vw, 40px); line-height: 1.05;
  color: var(--ink);
  transform: translateY(105%);
  transition: transform .7s var(--ease), color .25s, padding .4s var(--ease);
}
.menu-list a .n { font-size: 11px; color: var(--blue); min-width: 24px; }
.menu-list a .ext { font-size: .55em; color: var(--faint); }
.menu-list a:hover { padding-left: 14px; color: var(--blue); }
.menu-list a[aria-current="page"] { color: var(--faint); }
body.menu-open .menu-list a { transform: none; }
body.menu-open .menu-list li:nth-child(2) a { transition-delay: .03s; }
body.menu-open .menu-list li:nth-child(3) a { transition-delay: .06s; }
body.menu-open .menu-list li:nth-child(4) a { transition-delay: .09s; }
body.menu-open .menu-list li:nth-child(5) a { transition-delay: .12s; }
body.menu-open .menu-list li:nth-child(6) a { transition-delay: .15s; }
body.menu-open .menu-list li:nth-child(7) a { transition-delay: .18s; }
body.menu-open .menu-list li:nth-child(8) a { transition-delay: .21s; }
.menu-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.menu-preview { aspect-ratio: 16/10; background: var(--surface); overflow: hidden; border-radius: var(--r); position: relative; }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.menu-preview img.on { opacity: 1; }
.menu-contact { display: grid; gap: 6px; color: var(--muted); }
.menu-contact a:hover { color: var(--blue); }

/* ---------- animações ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }

.line { display: block; overflow: hidden; padding: .12em 0 .04em; margin-top: -.12em; }
.line > span { display: block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .08s; }
@keyframes lineUp { to { transform: none; } }
@keyframes nudge { 50% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { transform: scale(1.3) rotate(25deg); opacity: .6; } }
@keyframes rec { 50% { opacity: .2; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .25s ease both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 999px; border: 1px solid currentColor;
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; line-height: 1;
  transition: background .3s, color .3s, border-color .3s;
}

/* =========================================================
   HOME — fundo azul, assinatura tipográfica, vitrine
   ========================================================= */
body.home { background: var(--blue); color: var(--on-blue); }

.intro { padding: clamp(8px, 2vw, 28px) 0 clamp(18px, 3vw, 36px); }
.intro .wrap { container-type: inline-size; }
/* linha de apresentação: portfólio · cidade · onde trabalha */
.intro-meta {
  list-style: none; margin: 0 0 clamp(8px, 1.2vw, 14px); padding: 0 0 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 24px; align-items: baseline;
  color: var(--on-blue-2); border-bottom: 1px solid var(--on-blue-line);
}
.intro-meta li:nth-child(2) { text-align: center; }
.intro-meta li:nth-child(3) { text-align: right; }
.intro-meta .tw { display: inline-block; animation: twinkle 2.6s ease-in-out infinite; }
/* o nome é o protagonista: ISAAC à esquerda (com a estrela fechando a linha),
   ALEXANDRE encostado na margem direita */
.intro-name {
  --r: 4.314;             /* largura de "ALEXANDRE" em em (medida no navegador) */
  margin: 0;
  font-family: var(--sans); font-weight: 900; font-variation-settings: "wdth" 62;
  text-transform: uppercase; letter-spacing: -.012em; line-height: .82;
  font-size: calc(90cqw / var(--r));
  color: var(--on-blue);
}
.intro-name .in-2 { margin-left: 10cqw; }
.in-star {
  width: .42em; height: .42em; margin-left: .12em;
  vertical-align: top; margin-top: .06em;
  animation: spin 12s linear infinite;
}
.intro-role {
  display: flex; align-items: center; gap: .55em;
  margin: clamp(10px, 1.4vw, 18px) 0 0;
  font-size: clamp(15px, 2.1vw, 28px); line-height: 1;
}
.intro-role .px { font-size: inherit; letter-spacing: .01em; }
.intro-arrow { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }

/* vitrine: mais compacta */
.work { padding: 0 0 clamp(22px, 3.4vw, 40px); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 28px) clamp(10px, 1.4vw, 18px); }
.card { display: block; position: relative; -webkit-tap-highlight-color: transparent; }
.card-media {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 16 / 9;
  background: rgba(250, 250, 250, .08);
  transform: translateZ(0);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .anim { z-index: 1; }
.card-body { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding-top: 8px; }
.card-body > div { display: contents; }
.card-title {
  margin: 0; font-family: var(--pixel); font-weight: 400;
  font-size: clamp(14px, 1.3vw, 18px); line-height: 1.1; letter-spacing: 0;
  text-transform: uppercase; color: var(--on-blue);
}
.card-sub { margin: 0; color: var(--on-blue-2); font-size: 10px; }
.card:focus-visible { outline-offset: 6px; border-radius: var(--r); }

/* faixa animada: loop contínuo (o JS completa cópias e anda exatamente 1 grupo) */
.marquee {
  position: relative; overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--on-blue-line);
  padding: 5px 0;
  margin-bottom: 14px;
  color: rgba(250, 250, 250, .82);
}
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--blue), rgba(8, 17, 244, 0)); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--blue), rgba(8, 17, 244, 0)); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; will-change: transform; }
.marquee-group { display: flex; flex: none; }
.marquee span {
  display: inline-flex; align-items: center;
  font-family: var(--pixel); font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em;
  padding-right: 1.1em;
  animation: lit 4.8s linear infinite;
}
.marquee span:nth-child(2) { animation-delay: .8s; }
.marquee span:nth-child(3) { animation-delay: 1.6s; }
.marquee span:nth-child(4) { animation-delay: 2.4s; }
.marquee span:nth-child(5) { animation-delay: 3.2s; }
.marquee span:nth-child(6) { animation-delay: 4s; }
.marquee span i { font-style: normal; margin-left: 1.1em; }
@keyframes lit { 0%, 20% { color: var(--on-blue); } 28%, 100% { color: rgba(250, 250, 250, .82); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--shift, 50%))); } }

/* ---------- rodapé (azul em todas as páginas) ---------- */
.site-footer { padding: 0 0 18px; background: var(--blue); color: var(--on-blue-2); }
.footer-mini {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  padding-top: 12px; border-top: 1px solid var(--on-blue-line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a, .footer-mini .to-top { transition: color .25s, background .25s, border-color .25s; }
.footer-links a:hover { color: var(--on-blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-mini .to-top { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(250, 250, 250, .45); display: grid; place-items: center; font-size: 13px; }
.footer-mini .to-top:hover { background: var(--on-blue); color: var(--blue); border-color: var(--on-blue); }
.project .site-footer { padding-top: 0; }

/* =========================================================
   PROJETOS — abertura em azul, mídia sobre branco, fechamento azul
   ========================================================= */
.p-hero { padding: clamp(14px, 2.8vw, 36px) 0 clamp(18px, 2.6vw, 32px); }
.project .p-hero {
  background: var(--blue); color: var(--on-blue);
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(12px, 2.4vw, 30px));
  padding-bottom: clamp(26px, 3.6vw, 48px);
  margin-bottom: clamp(18px, 2.6vw, 32px);
}
.p-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.p-kicker .label:first-child { color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.p-kicker .label:first-child::before { content: ""; width: 9px; height: 9px; background: currentColor; }
.project .p-hero .p-kicker, .sobre .p-kicker { color: var(--on-blue-2); }
.project .p-hero .p-kicker .label:first-child, .sobre .p-kicker .label:first-child { color: var(--on-blue); }
.p-title { font-size: clamp(42px, 6.4vw, 108px); line-height: .88; }
.project .p-hero .p-title { color: var(--on-blue); }
.p-title::after, .sub-title::after { content: ""; display: block; width: .55em; height: .09em; min-height: 4px; margin-top: .14em; background: var(--blue); }
.project .p-hero .p-title::after { background: var(--on-blue); }
.hero-quote { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.38; margin: 14px 0 0; max-width: 620px; color: var(--muted); }
.project .p-hero .hero-quote { color: var(--on-blue-2); }

.p-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 72px); align-items: start; }
.tab-panel > .p-head { padding-top: clamp(2px, .8vw, 10px); padding-bottom: clamp(18px, 2.8vw, 34px); }
.p-text p { margin: 0 0 .7em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.42; color: var(--muted); text-align: justify; hyphens: auto; }
.p-text p:last-child { margin-bottom: 0; }
.p-text p.lead {
  font-size: clamp(20px, 1.9vw, 28px); line-height: 1.12; color: var(--ink); font-weight: 500; letter-spacing: -.015em; text-align: left;
  margin-bottom: .55em; padding-left: .55em; border-left: 3px solid var(--blue);
}
.project .p-hero .p-text p { color: var(--on-blue-2); }
.project .p-hero .p-text p.lead { color: var(--on-blue); border-left-color: var(--on-blue); }
.sub-title { font-size: clamp(32px, 4.4vw, 68px); margin: 0; }

/* ficha técnica */
.p-credits { padding: clamp(22px, 3.2vw, 38px) 0 clamp(22px, 3vw, 34px); }
.p-credits-title { color: var(--blue); margin: 0 0 8px; }
.credits {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 clamp(18px, 3vw, 36px); color: var(--faint);
  border-top: 1px solid var(--blue);
}
.credits div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.credits dt { display: block; margin-bottom: 3px; font-size: 10px; }
.credits dt::before { content: "↘ "; color: var(--blue); }
.credits dd { margin: 0; color: var(--text); text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: .02em; line-height: 1.3; }
.credits dd::before { content: "→ "; color: var(--blue); }
.credits .role dd { color: var(--ink); font-weight: 800; }
.credits .role dt::before { content: "✦ "; }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1vw, 14px); }
.gallery > * { grid-column: span 12; }
.gallery .c6 { grid-column: span 6; }
.gallery .c4 { grid-column: span 4; }
.gallery .c8 { grid-column: span 8; }
.gallery .c5 { grid-column: span 5; }
.gallery .c7 { grid-column: span 7; }
.gallery .center { grid-column: 3 / span 8; }
.gallery .stack { display: grid; gap: inherit; align-content: start; }
.gallery .duo { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
.gallery .s3 { grid-column-start: 3; }
.gallery figure { margin: 0; }
.project .gallery { max-width: 1920px; margin: 0 auto; padding: 0 clamp(8px, 1.2vw, 18px); }
.zoom { display: block; width: 100%; overflow: hidden; border-radius: var(--r); cursor: zoom-in; background: var(--surface); }
.zoom img { width: 100%; }
.project .zoom, .project .yt, .project .carousel-track { border-radius: 0; }
.project .zoom { background: transparent; }
.gif-frame img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fill { height: 100%; }
.fill .zoom, .fill .zoom img { height: 100%; object-fit: cover; }

/* vídeo (carrega só no clique) */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r); background: #000; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); display: grid; place-items: center;
  transition: background .25s;
}
.yt:hover .play, .yt:focus-visible .play { background: var(--ink); }
.yt .play svg { width: 32%; margin-left: 8%; }
.yt .yt-label { position: absolute; left: 10px; bottom: 10px; color: #fff; background: rgba(23, 24, 39, .72); padding: 5px 10px; border-radius: 999px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt:focus-visible { outline-offset: -4px; outline-color: var(--on-blue); }

/* carrossel */
.carousel { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r); scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-track .zoom { border-radius: 0; }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.project .gallery .carousel-ui { padding: 0 2px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button { width: 18px; height: 3px; background: var(--ink); opacity: .25; border-radius: 2px; transition: opacity .3s, width .3s, background .3s; }
.carousel-dots button[aria-current="true"] { opacity: 1; width: 32px; background: var(--blue); }
.carousel-btns { display: flex; gap: 6px; }
.carousel-btns button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); transition: background .25s, color .25s, border-color .25s; }
.carousel-btns button:hover { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }

/* abas */
.tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 6px; margin-bottom: clamp(14px, 2.4vw, 24px);
  background: rgba(239, 239, 241, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; width: max-content; max-width: 100%;
  transition: top .45s var(--ease);
}
.site-header.is-hidden ~ main .tabs { top: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 9px 15px; border-radius: 999px;
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; line-height: 1.1; color: var(--muted);
  transition: background .3s, color .3s;
}
.tab:hover { color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); color: var(--on-blue); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panelIn .5s var(--ease); scroll-margin-top: calc(var(--header-h) + 70px); }
@keyframes panelIn { from { opacity: 0; } }

/* anterior / próximo: discreto, em pixel, fechando a página em azul */
.p-next { background: var(--blue); color: var(--on-blue-2); }
.p-next .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.p-next a { display: block; min-height: 44px; padding: 10px 0 9px; }
.p-next a + a { text-align: right; border-left: 1px solid var(--on-blue-line); padding-left: 16px; }
.p-next a:first-child { padding-right: 16px; }
.p-next .label { font-size: 10px; color: var(--on-blue-2); }
.p-next .display { font-family: var(--pixel); font-weight: 400; font-variation-settings: normal; font-size: 12px; line-height: 1.1; margin-top: 4px; color: var(--on-blue); transition: opacity .25s; }
.p-next a:hover .display, .p-next a:focus-visible .display { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   SOBRE — azul, com faixa clara para Experiência/Educação
   ========================================================= */
body.sobre { background: var(--blue); color: var(--on-blue); }
.about-hero { padding: clamp(10px, 1.8vw, 22px) 0 clamp(8px, 1.2vw, 14px); }
.about-hero .p-kicker { margin: 0; }
.about-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: clamp(16px, 2.4vw, 28px) 0 clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--on-blue-line);
}
/* a foto acompanha a altura do bloco de texto ao lado (o carrossel não "empurra" a linha) */
.about-photo { grid-column: 1 / span 4; position: relative; min-height: 300px; }
.about-photo .carousel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.about-photo .carousel-track { flex: 1; min-height: 0; }
.about-photo .carousel-track > *, .about-photo .carousel-track img { height: 100%; }
.about-photo .carousel-track img { width: 100%; object-fit: cover; object-position: 50% 30%; }
.about-photo .carousel-dots button { background: var(--on-blue); opacity: .4; }
.about-photo .carousel-dots button[aria-current="true"] { opacity: 1; background: var(--on-blue); }
.about-photo .carousel-btns button { color: var(--on-blue); border-color: var(--on-blue-line); }
.about-photo .carousel-btns button:hover { background: var(--on-blue); color: var(--blue); border-color: var(--on-blue); }
.about-text { grid-column: 6 / span 7; }
.about-text p { margin: 0 0 .75em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.4; color: var(--on-blue-2); }
.about-text .aside { color: var(--on-blue); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; }
.about-text .aside em { font-style: italic; opacity: .85; }
/* "bora trocar uma ideia?…" ~13% menor que na v3 */
.about-text .big { font-size: clamp(21px, 2.25vw, 33px); line-height: 1.14; color: var(--on-blue); font-weight: 500; letter-spacing: -.025em; margin: .55em 0 0; max-width: 24ch; }
.about-text .big a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.about-text .big a:hover { text-decoration-thickness: 3px; }

/* experiência e educação: faixa clara, editorial, sem caixas */
.cv-band { background: var(--bg); color: var(--text); padding: clamp(28px, 4vw, 52px) 0; }
.cv-panel { border-top: 1px solid var(--ink); }
.cv {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 7vw, 112px); row-gap: 32px;
  padding: clamp(14px, 2.2vw, 24px) 0 0;
}
.cv-block h2 { font-family: var(--pixel); font-weight: 400; font-size: 12px; text-transform: uppercase; line-height: 1.2; color: var(--blue); margin: 0 0 10px; }
.cv-block h2::before { content: "↘ "; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 24px;
  padding: 11px 0; border-top: 1px solid var(--line); line-height: 1.3;
}
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-list strong { display: block; margin-bottom: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.cv-list strong::before { content: "→ "; color: var(--blue); }
.cv-list span { color: var(--muted); }
.cv-list .when { text-align: right; white-space: nowrap; font-size: 10px; }
.cv-list .now { color: var(--text); }
.cv-list .now::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: middle; animation: rec 1.6s steps(2) infinite; }
.cv-list .star { color: var(--blue); margin-left: 6px; display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
.cv-list li.highlight strong { color: var(--ink); }

/* Letterboxd: atividade recente, compacta, nas cores da plataforma */
.lb-section {
  padding-top: clamp(32px, 4.6vw, 60px); padding-bottom: clamp(32px, 4.6vw, 60px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(20px, 4vw, 64px); align-items: start;
}
.lb-caption { margin: 0; display: grid; gap: 8px; color: var(--on-blue); font-size: 12px; }
.lb-caption-sub { color: var(--on-blue-2); font-size: 10px; }
.lb-star { width: 22px; height: 22px; animation: spin 14s linear infinite; }
.lbx {
  justify-self: end; width: 100%;
  --lb-bg: #14181C; --lb-text: #99AABB; --lb-white: #FFFFFF;
  --lb-orange: #FF8000; --lb-green: #00E054; --lb-sky: #40BCF4;
  max-width: 600px;
  background: var(--lb-bg); color: var(--lb-text);
  border-radius: var(--r-sm);
  padding: 14px 14px 12px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
}
.lbx-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; border-bottom: 1px solid #2C3440; }
.lbx-dots { display: inline-flex; flex: none; }
.lbx-dots i { width: 12px; height: 12px; border-radius: 50%; margin-right: -3px; mix-blend-mode: screen; }
.lbx-dots i:nth-child(1) { background: var(--lb-orange); }
.lbx-dots i:nth-child(2) { background: var(--lb-green); }
.lbx-dots i:nth-child(3) { background: var(--lb-sky); margin-right: 0; }
.lbx-title { margin: 0; flex: 1; min-width: 0; font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--lb-white); line-height: 1.1; }
.lbx-sub { font-family: var(--pixel); font-weight: 400; font-size: 10px; letter-spacing: .02em; text-transform: uppercase; color: var(--lb-text); margin-left: 6px; }
.lbx-profile { color: var(--lb-text); font-size: 10px; transition: color .2s; }
.lbx-profile:hover { color: var(--lb-white); }
.lbx-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lbx-list a { position: relative; display: block; color: var(--lb-text); }
.lbx-poster {
  display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px;
  background: #2C3440; box-shadow: inset 0 0 0 1px rgba(221, 238, 255, .25);
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s;
}
.lbx-poster img { width: 100%; height: 100%; object-fit: cover; }
.lbx-list a:hover .lbx-poster, .lbx-list a:focus-visible .lbx-poster { outline-color: var(--lb-green); }
.lbx-list a:focus-visible { outline: none; }
.lbx-rate { display: flex; align-items: center; gap: 5px; margin-top: 6px; min-height: 13px; font-size: 12px; line-height: 1; }
.lbx-stars { color: var(--lb-green); letter-spacing: -.5px; }
.lbx-like { color: var(--lb-orange); }
.lbx-re { color: var(--lb-text); font-size: 11px; }
.lbx-name { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--lb-white); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbx-date { display: block; margin-top: 2px; font-family: var(--pixel); font-size: 9px; text-transform: uppercase; color: var(--lb-text); }
.lbx-empty { grid-column: 1 / -1; font-size: 13px; }

/* contato: encerramento editorial sobre o azul, sem caixa */
.contact {
  padding: clamp(10px, 2vw, 24px) 0 clamp(36px, 5vw, 64px);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end;
}
.contact-grid::before {  /* divisória que abre a seção */
  content: ""; grid-column: 1 / -1; height: 1px; background: var(--on-blue-line);
}
.contact-kicker { color: var(--on-blue-2); margin: 0 0 10px; }
.contact-title { position: relative; display: inline-block; color: var(--on-blue); font-size: clamp(36px, 5vw, 72px); line-height: .9; padding-right: .55em; }
.ct-star { position: absolute; right: 0; top: .02em; width: .4em; height: .4em; animation: spin 14s linear infinite; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-blue); }
.contact-list a {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--on-blue-line);
  color: var(--on-blue); transition: padding .35s var(--ease);
}
.contact-list .label { font-size: 10px; color: var(--on-blue-2); }
.cl-val { font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; overflow-wrap: anywhere; line-height: 1.25; }
.cl-arr { transition: transform .35s var(--ease); }
.contact-list a:hover { padding-left: 8px; }
.contact-list a:hover .cl-arr { transform: translate(3px, -3px); }
.contact-list a:hover .cl-val { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(23, 24, 39, .95);
  display: grid; place-items: center; padding: 56px 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
}
.lb.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb img { max-width: min(1400px, 100%); max-height: calc(100svh - 112px); width: auto; object-fit: contain; border-radius: var(--r-sm); }
.lb button { position: absolute; color: var(--bg); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); font-size: 18px; transition: background .25s, color .25s; }
.lb button:hover { background: var(--bg); color: var(--ink); }
.lb .lb-close { top: 14px; right: 14px; }
.lb .lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb .lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb .lb-count { position: absolute; top: 26px; left: 20px; color: #C9C7D1; }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .nav-inline { gap: 18px; }
  .menu .wrap { grid-template-columns: 1fr; }
  .menu-preview { display: none; }
  .about-photo { grid-column: 1 / span 5; }
  .about-text { grid-column: 6 / span 7; }
}

@media (max-width: 860px) {
  .nav-inline { display: none; }
  .p-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lb-section { grid-template-columns: minmax(0, 1fr); }
  .lb-caption { grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; }
  .lbx { justify-self: stretch; max-width: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .site-header .bar { height: 50px; padding: 0 6px 0 16px; gap: 8px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 10px; }
  .brand .b-role { gap: 5px; font-size: 9px; }
  .lang button { padding: 5px 6px; }

  /* apresentação: portfólio e cidade na mesma linha, Trilha embaixo */
  .intro-meta { grid-template-columns: 1fr auto; }
  .intro-meta li:nth-child(2) { text-align: right; }
  .intro-meta li:nth-child(3) { grid-column: 1 / -1; text-align: left; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-media .anim { display: none; }   /* no celular as capas ficam estáticas (e o GIF nem é baixado) */

  .p-text p { text-align: left; }
  .credits { grid-template-columns: 1fr; }

  .gallery .c6, .gallery .c4, .gallery .c8, .gallery .c5, .gallery .c7, .gallery .center { grid-column: span 12; }
  .gallery .m6 { grid-column: span 6 !important; }
  .gallery .m4 { grid-column: span 4 !important; }
  .gallery .s3 { grid-column-start: auto; }
  .fill, .fill .zoom, .fill .zoom img { height: auto; }
  .tabs { width: 100%; }

  .about-photo { grid-column: 1 / -1; min-height: 0; max-width: 340px; }
  .about-photo .carousel { position: static; }
  .about-photo .carousel-track > *, .about-photo .carousel-track img { height: auto; }
  .about-photo .carousel-track img { aspect-ratio: 4 / 5; }
  .about-text { grid-column: 1 / -1; }
  .cv { grid-template-columns: minmax(0, 1fr); }
  .cv-list li { grid-template-columns: 1fr; }
  .cv-list .when { text-align: left; }

  .lbx-list { gap: 8px; }
  .lbx-name { font-size: 11px; }
  .contact-list a { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .footer-mini { justify-content: flex-start; }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 14px; translate: none; }
}

@media (max-width: 420px) {
  .header-tools { gap: 4px; }
  .menu-btn { width: 36px; padding: 0; gap: 0; justify-content: center; font-size: 0; }   /* só o ícone; o nome acessível continua "Menu" */
  .lbx-sub { display: none; }
}

@media (max-width: 360px) {
  .site-header .bar { padding-left: 12px; }
  .brand { font-size: 9px; }
  .brand .b-role { font-size: 8px; }
  .lang button { padding: 4px; }
}

/* "reduzir movimento" no sistema: sem GIFs, sem troca automática de fotos,
   sem as entradas grandes; a faixa e os detalhes seguem, mais devagar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .line > span { animation: none; transform: none; }
  .rv { transform: none; }
  .marquee-track { animation-duration: calc(var(--dur, 40s) * 2); }
  .card-media .anim { display: none; }
}
