/* ===== Identidade =====
   Grafite em degradê, texto branco com brilho e uma janela com barra metálica na abertura.
   Duas letras bem diferentes: Archivo (sem serifa, peso normal) para quase tudo e Bodoni Moda Italic
   (serifada, de alto contraste) só em poucos lugares: o fim do título, os nomes dos trabalhos e das áreas.
   O dourado entra só como sinal: o foco do teclado e a seleção de texto. */
/* As duas fontes são servidas daqui mesmo (licença OFL). De onde vieram: ver fonts/LEIAME.txt. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/bodoni-moda-italic-latin.woff2) format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #141414;                          /* o fundo da página */
  --bg-top: #2b2b2b;                      /* a luz no topo do degradê */
  --ink: #f3f2ef;                         /* texto principal */
  --soft: #bdbcb8;                        /* texto corrido */
  --muted: #84837f;                       /* texto secundário */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --gold: #f0b24a;                        /* só para o foco do teclado e a seleção */
  /* o brilho dos títulos grandes */
  --glow: 0 0 1px rgba(255, 255, 255, 0.45), 0 0 18px rgba(255, 255, 255, 0.26), 0 0 46px rgba(255, 255, 255, 0.12);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --serif-text: "opsz" 16;                /* tamanho óptico da serifada nos títulos médios: traços finos mais firmes que no título grande */
  --gutter: clamp(16px, 4vw, 56px);
  --page: 1180px;                         /* largura máxima do conteúdo */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 88px;                          /* altura da barra do topo */
  /* setas (usadas como máscara, pegam a cor do texto): para fora do site e para baixo na página */
  --i-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5l7-7M4 2.5h5.5V8' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  --i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v17M5.5 13.5L12 20l6.5-6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 1.5l5 5M6.5 1.5l-5 5' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 4h6' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 4h6M4 1v6' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  --i-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 13.5l.8-3.4 7.6-7.6 2.6 2.6-7.6 7.6zM9.3 4.1l2.6 2.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");   /* lápis do botão do dono */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--soft); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #000; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }   /* os links internos rolam suave */

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: background .2s, color .2s, box-shadow .25s;
}
.btn--solid { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.3); }
.btn--solid:hover { background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.32); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn:active { transform: translateY(1px); }
/* seta de quem abre outra aba */
.btn[target="_blank"]::after, .out::after, .note__link::after {
  content: ""; flex: none; width: 11px; height: 11px; background: currentColor; transition: transform .25s var(--ease);
  -webkit-mask: var(--i-out) center / contain no-repeat; mask: var(--i-out) center / contain no-repeat;
}
.btn[target="_blank"]:hover::after, .out:hover::after, .note__link:hover::after { transform: translate(2px, -2px); }

/* ===== Barra do topo: nome, abas e Discord ===== */
.bar {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; min-height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
}
/* o fundo da barra fica num pseudo-elemento: um "backdrop-filter" na própria barra prenderia as abas a ela no celular */
.bar::before { content: ""; position: absolute; z-index: -1; inset: 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.scrolled .bar::before { background: rgba(20, 20, 20, 0.78); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { justify-self: start; display: grid; line-height: 1.25; }
.brand__name { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.brand__role { font-size: 13px; color: var(--muted); }
/* as abas: uma pílula com as quatro seções; a luz em cima marca a da vez (js/home.js) */
.tabs {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.tabs a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--soft); transition: color .2s, background .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.tabs__glow {
  position: absolute; top: -1px; left: 0; width: 22px; height: 2px; margin-left: -11px; border-radius: 2px; background: #fff;
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.8), 0 0 22px 4px rgba(255, 255, 255, 0.22);
  transform: translateX(-100px); transition: transform .45s var(--ease);
}
html:not(.js) .tabs__glow { display: none; }
@media (prefers-reduced-motion: reduce) { .tabs__glow { transition: none; } }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 20px; }
.out { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--ink); }
/* Idioma: discreto. O ativo fica claro e sublinhado. */
.lang { display: flex; align-items: center; }
.lang button { padding: 6px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); transition: color .2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Botão do dono: leva ao painel (admin/). js/page.js só o cria no navegador em que o dono já entrou no painel;
   nenhum outro visitante o vê. Fica logo abaixo da barra, no canto. */
.dev {
  position: fixed; z-index: 31; top: calc(var(--bar-h) + 12px); right: max(var(--gutter), env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 50%; background: rgba(20, 20, 20, 0.8); box-shadow: inset 0 0 0 1px var(--gold);
  transition: background .2s;
}
.dev::before {
  content: ""; position: absolute; inset: 0; background: var(--gold); transition: background .2s;
  -webkit-mask: var(--i-edit) center / 18px no-repeat; mask: var(--i-edit) center / 18px no-repeat;
}
.dev:hover { background: var(--gold); }
.dev:hover::before { background: #000; }

/* ===== Abertura: a janela ===== */
/* Uma tela só, que rola normalmente. Na primeira visita da sessão a janela liga com uma pequena apresentação
   (js/show.js); no primeiro movimento de rolagem o título é riscado, vira pó e a segunda frase se forma (js/title.js). */
.hero { position: relative; }
/* o degradê de luz fica só no palco e termina no cinza do fundo antes do fim dele: o esmaecido de baixo emenda sem faixa */
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; padding: calc(var(--bar-h) + 20px) var(--gutter) 0;
  background: radial-gradient(110% 900px at 50% -160px, var(--bg-top) 0%, #1c1c1c 42%, var(--bg) 78%) no-repeat, var(--bg);
}
/* a parte de baixo da janela some no fundo da página, borda e sombra (o palco corta o que passa dele) */
.hero__stage::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(rgba(20, 20, 20, 0), var(--bg) 82%); pointer-events: none; }
/* telas muito baixas (celular deitado): a janela cresce com o conteúdo */
@media (max-height: 539px) {
  .hero__stage { height: auto; min-height: 0; padding-bottom: 60px; }
  .window { height: auto !important; }
}
.window {
  position: relative; display: flex; flex-direction: column; height: calc(100% + 16px); max-width: 1080px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1e1e1e, #161616 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.11), 0 40px 100px -30px rgba(0, 0, 0, 0.9);    /* borda fina e a sombra */
  transition: max-width .7s var(--ease), margin .7s var(--ease), border-radius .7s var(--ease);
}
/* o botão verde: a janela ocupa a largura toda da tela */
.window--wide { max-width: 100vw; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; }
/* a barra metálica, com o endereço do site no lugar da barra de endereço */
.window__bar {
  flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 36px; padding: 0 14px;
  background: linear-gradient(90deg, #555 0%, #8c8c8c 22%, #c9c9c9 52%, #a2a2a2 76%, #666 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.window__dots { display: flex; gap: 8px; }
.window__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.3); }
.window__dot--min { background: #febc2e; }
.window__dot--max { background: #28c840; }
.window__dot::before { content: ""; position: absolute; inset: -6px -4px; }      /* área de clique maior que a bolinha */
/* com o cursor em cima, cada bolinha mostra o seu sinal (x, −, +), como nas janelas de verdade */
.window__dot::after { content: ""; position: absolute; inset: 2.5px; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity .15s; -webkit-mask: var(--i-x) center / contain no-repeat; mask: var(--i-x) center / contain no-repeat; }
.window__dot--min::after { -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.window__dot--max::after { -webkit-mask-image: var(--i-plus); mask-image: var(--i-plus); }
.window__dots:hover .window__dot::after, .window__dot:focus-visible::after { opacity: 1; }
.window__address { min-width: 15ch; padding: 2px 16px; border-radius: 6px; background: rgba(255, 255, 255, 0.24); text-align: center; font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, 0.62); }
/* o cursor que pisca enquanto o endereço é digitado na apresentação */
.typing .window__address::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -1px; background: rgba(0, 0, 0, 0.7); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.window__plus { justify-self: end; position: relative; width: 22px; height: 22px; margin-right: -5px; border-radius: 5px; transition: background .2s; }
.window__plus::before { content: ""; position: absolute; inset: 5px; background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) center / 100% 1.5px no-repeat, linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) center / 1.5px 100% no-repeat; }
.window__plus:hover { background: rgba(255, 255, 255, 0.3); }
/* a linha de carregamento que corre logo abaixo da barra */
.window__load { position: absolute; z-index: 3; left: 0; right: 0; top: 36px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%, rgba(255, 255, 255, 0.5)); box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); transform-origin: left center; transform: scaleX(0); opacity: 0; pointer-events: none; }
.window__view {
  position: relative; flex: 1; display: flex; min-height: 0;
  background: radial-gradient(70% 60% at 28% 0%, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 70%), radial-gradient(50% 45% at 85% 70%, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 70%);
}
/* o título no alto à esquerda; a nota embaixo à direita; a parte de baixo fica para a seta e o esmaecido.
   O tamanho do título acompanha a largura da janela (cqi), para as frases caberem em duas linhas no computador. */
.window__copy { container-type: inline-size; flex: 1; display: flex; flex-direction: column; padding: clamp(40px, 9vh, 120px) clamp(24px, 8%, 96px) 170px; }
.headline { font-weight: 400; font-size: clamp(38px, 6vw, 80px); font-size: clamp(38px, 8.6cqi, 80px); line-height: 0.98; letter-spacing: -0.045em; color: var(--ink); text-shadow: var(--glow); }
.headline__line { display: block; width: fit-content; }
/* as duas frases ocupam o mesmo lugar: a segunda se forma onde a primeira estava */
.say { display: grid; margin-bottom: 40px; }
.say > .headline { grid-area: 1 / 1; }
.headline--first { position: relative; }
.headline--next { opacity: 0; }
html:not(.js) .headline--next { display: none; }
/* o risco: uma linha de luz por linha do título, do jeito que ele quebrou na tela (posições calculadas em js/title.js) */
.strike { position: absolute; height: 0.05em; margin-top: -0.025em; border-radius: 0.03em; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.4); transform-origin: left center; transform: scaleX(0); pointer-events: none; }
.headline em {
  font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.025em; padding-right: 0.08em;
  background: linear-gradient(100deg, #fff 0%, #e4e4e4 38%, #8d8d8d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22));
}
.note { align-self: flex-end; width: min(100%, 36ch); margin-top: auto; margin-right: 4%; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; letter-spacing: -0.01em; }
.note__lead { color: var(--ink); font-weight: 500; }
.note__more { color: var(--muted); }
.note__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 0; font-size: 15px; color: var(--soft); border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.note__link:hover { color: var(--ink); border-color: var(--ink); }
.window__down {
  position: absolute; z-index: 3; left: 50%; bottom: 104px; width: 44px; height: 44px; margin-left: -22px; background: var(--muted); transition: background .2s;
  -webkit-mask: var(--i-down) center / 26px no-repeat; mask: var(--i-down) center / 26px no-repeat;
}
.window__down:hover { background: var(--ink); }
/* o recado do botão vermelho, no meio do palco enquanto a janela se reconstrói */
.window-toast {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: min(90vw, 26ch); transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; color: var(--ink); text-shadow: var(--glow);
}
/* o botão de pular a apresentação, no canto de baixo enquanto ela passa */
.skip { position: absolute; z-index: 5; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 28px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(20, 20, 20, 0.6); transition: color .2s, box-shadow .2s; }
.skip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* quando a apresentação não roda (visitas seguintes da sessão): a janela sobe e o título acende */
@media (prefers-reduced-motion: no-preference) {
  .js .window { animation: rise 1.1s var(--ease) backwards; }
  .js .say { animation: light 1.8s .3s var(--ease) backwards; }
  .js .note, .js .window__down { animation: show 1s .9s var(--ease) backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px) scale(.985); } }
@keyframes light { from { opacity: 0; filter: blur(8px); text-shadow: none; } }
@keyframes show { from { opacity: 0; } }
/* durante a apresentação, js/show.js comanda tudo: até ela começar, nada disso aparece. Se o script não rodar, o
   que estiver escondido aparece sozinho depois de 5 segundos. */
.intro .window, .intro .headline--first, .intro .note, .intro .window__down, .intro .bar { opacity: 0; animation: safety .6s 5s forwards; }
.intro .say { animation: none; }
@keyframes safety { to { opacity: 1; } }
/* depois do show, as animações de entrada normais não rodam (elas recomeçariam ao tirar a classe "intro") */
.intro-done .window, .intro-done .say, .intro-done .note, .intro-done .window__down { animation: none; }

/* ===== Virar cinza ao clicar numa aba (js/ash.js) =====
   Os filtros SVG ficam num <svg> sem tamanho; o pó é desenhado num <canvas> por cima da página, abaixo da barra.
   Depois do salto, a página reaparece aos poucos na seção escolhida. */
.ash-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ash-dust { position: fixed; z-index: 25; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arriving main, .arriving .contact { animation: arrive .65s var(--ease) both; }
@keyframes arrive { from { opacity: 0; } }

/* ===== Seções ===== */
.section { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(104px, 12vw, 168px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.hero + .section { padding-top: clamp(24px, 4vw, 56px); }
.section__head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__head h2 { font-weight: 400; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.section__lead { margin: 16px auto 0; max-width: 48ch; color: var(--muted); text-wrap: balance; }
.no-work .work__lead, html:not(.js) .work__lead { display: none; }      /* sem itens: quem fala é o estado vazio */

/* Trabalhos: cartões altos, três por fileira (dois no tablet, um no celular); a última fileira fica no centro */
.media { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.media > li { position: relative; flex: 0 0 calc((100% - 48px) / 3); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #1d1d1d; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
@media (max-width: 960px) { .media > li { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .media { gap: 16px; } .media > li { flex-basis: 100%; aspect-ratio: 1 / 1.1; } }
.item__open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.item__open:focus-visible { outline-offset: -5px; }       /* por dentro: o cartão corta o que passa da borda */
.item__open img, .item__open video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.item__open:hover img, .item__open:hover video { transform: scale(1.03); }
/* no pé do cartão: o nome do trabalho em itálico e, embaixo, o tipo */
.item__cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 6px; padding: 72px 20px 24px; text-align: center; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82)); }
.item__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.item__kind { font-size: 13px; font-weight: 500; color: var(--soft); }
/* quantas fotos o trabalho tem */
.item__count { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); font-size: 12px; font-weight: 600; color: var(--ink); pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* vídeo: botão redondo de tocar no meio */
.item--video .item__open::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(0, 0, 0, 0.35); transition: background .2s; }
.item--video .item__open::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; margin: -9px 0 0 -5px; border-left: 16px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.item--video .item__open:hover::after { background: rgba(0, 0, 0, 0.6); }

/* Sem trabalhos ainda: três espaços vazios que somem para baixo e o convite por cima.
   Aparece enquanto portfolio.json não tem itens (a classe no-work vem de js/page.js). */
.js:not(.no-work) .empty { display: none; }
.empty__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); -webkit-mask: linear-gradient(#000 15%, transparent 90%); mask: linear-gradient(#000 15%, transparent 90%); }
.empty__slots span { aspect-ratio: 4 / 5; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%); }
.empty__body { position: relative; max-width: 540px; margin: -15% auto 0; text-align: center; }
.empty__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.empty__text { max-width: 44ch; margin: 14px auto 0; color: var(--soft); text-wrap: pretty; }
.empty .btn { margin-top: 28px; }

/* Áreas: três frentes lado a lado, cada uma com uma mini janela (como a da abertura) e o título em itálico.
   A de IA é o diferencial: a linha e o título brilham. */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.area h3 { margin-top: 26px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 3vw, 42px); line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.area > p { max-width: 36ch; margin-top: 14px; color: var(--soft); text-wrap: pretty; }
.area--ai h3 { text-shadow: 0 0 20px rgba(255, 255, 255, 0.35); }
/* a mini janela */
.mini { overflow: hidden; border-radius: 10px; background: #181818; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.area--ai .mini { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 40px -10px rgba(255, 255, 255, 0.18), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.mini__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: linear-gradient(90deg, #4a4a4a, #8a8a8a 50%, #5a5a5a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.mini__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.mini__bar i:nth-child(2) { background: #febc2e; }
.mini__bar i:nth-child(3) { background: #28c840; }
.mini__bar span { margin-left: auto; margin-right: auto; padding-right: 40px; font-size: 11px; font-weight: 500; color: rgba(0, 0, 0, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__view { position: relative; height: 176px; margin: 0; overflow: hidden; }
/* Mundos: uma baseplate em perspectiva, com três peças (uma dourada) */
.mini__view--world { background: radial-gradient(80% 70% at 50% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%); }
.plate {
  position: absolute; left: 50%; top: 58%; width: 210px; aspect-ratio: 1; margin-left: -105px; margin-top: -105px; border: 1px solid var(--line-strong);
  background: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 12.5% 12.5%, linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 12.5% 12.5%;
  transform: perspective(700px) rotateX(60deg) rotateZ(32deg);
}
.plate b { position: absolute; background: #d9d7d2; box-shadow: 0 0 18px rgba(255, 255, 255, 0.25); }
.plate b:nth-child(1) { left: 25%; top: 25%; width: 25%; height: 12.5%; }
.plate b:nth-child(2) { left: 62.5%; top: 50%; width: 12.5%; height: 25%; background: var(--gold); box-shadow: 0 0 26px rgba(240, 178, 74, 0.55); }
.plate b:nth-child(3) { left: 37.5%; top: 62.5%; width: 12.5%; height: 12.5%; background: #9c9a95; }
/* Sistemas: um trecho de Luau de verdade (palavras-chave claras, textos em cinza quente) */
.mini__view--code { padding: 16px 16px 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.6; color: #a9a7a2; white-space: pre; }
.mini__view--code b { font-weight: 600; color: var(--ink); }
.mini__view--code s { text-decoration: none; color: #d6b47a; }
.mini__view--code::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(24, 24, 24, 0), #181818); }
/* IA: o pedido e o Studio montando as peças */
.mini__view--ai { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 20px; background: radial-gradient(70% 70% at 30% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%); }
.ask { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: rgba(255, 255, 255, 0.09); font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.work-on { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.blocks { display: inline-flex; gap: 3px; }
.blocks b { width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
/* as peças acendem uma por uma, em laço, só enquanto a área está na tela (classe "on", de js/page.js) */
@media (prefers-reduced-motion: no-preference) {
  .area--ai.on .blocks b { animation: build 2.4s infinite; }
  .area--ai.on .blocks b:nth-child(2) { animation-delay: .25s; }
  .area--ai.on .blocks b:nth-child(3) { animation-delay: .5s; }
  .area--ai.on .blocks b:nth-child(4) { animation-delay: .75s; }
  .area--ai.on .blocks b:nth-child(5) { animation-delay: 1s; }
}
@keyframes build { 0%, 100% { background: rgba(255, 255, 255, 0.14); box-shadow: none; } 30%, 60% { background: var(--ink); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); } }
@media (max-width: 860px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* Loja: um painel com a marca e o texto */
.store__panel {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 64px);
  border-radius: 16px; background: linear-gradient(rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); box-shadow: inset 0 0 0 1px var(--line);
}
.store__brand { display: flex; align-items: center; gap: 24px; }
.store__mono { width: clamp(72px, 8vw, 112px); flex: none; }
.store__words { display: grid; gap: 8px; width: clamp(170px, 22vw, 300px); }
.store__text { max-width: 40ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.store__join { margin-top: 24px; }
@media (max-width: 860px) { .store__panel { grid-template-columns: minmax(0, 1fr); } }

/* ===== Contato e rodapé ===== */
.contact { padding: clamp(128px, 15vw, 200px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); text-align: center; }
.contact__title { max-width: 14ch; margin: 0 auto; font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; color: var(--ink); text-shadow: var(--glow); text-wrap: balance; }
.contact__text { max-width: 44ch; margin: 22px auto 0; font-size: 18px; color: var(--muted); }
.contact__ways { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 40px; }
/* o e-mail: o endereço e o botão de copiar numa pílula só */
.mail { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 48px; padding: 0 5px 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.mail__link { min-width: 0; overflow-wrap: anywhere; padding: 12px 0; font-size: 15px; color: var(--ink); }
.mail__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.mail__copy { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 14px; font-weight: 600; color: var(--soft); transition: background .2s, color .2s; }
.mail__copy:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.mail__copy.is-done { background: var(--ink); color: var(--bg); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: var(--page); margin: clamp(112px, 12vw, 168px) auto 0;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: left;
}
.foot a { padding: 12px 0; margin: -12px 0; transition: color .2s; }      /* área de toque de 44px sem mexer na altura do rodapé */
.foot a:hover { color: var(--ink); }

/* ===== Visualizador de imagem e vídeo =====
   A mídia em cima; embaixo, uma barra com número, título e os botões (nada fica por cima da mídia).
   100dvh: a altura visível de verdade no celular (100vh inclui a área atrás da barra do navegador). */
.lightbox { --lb-bar: 84px; --safe-b: env(safe-area-inset-bottom, 0px); border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; overscroll-behavior: contain; }
html:has(.lightbox[open]) { overflow: hidden; }   /* a página de trás não rola com o visualizador aberto */
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) calc(var(--lb-bar) + var(--safe-b)); }
.lightbox::backdrop { background: rgba(12, 12, 12, 0.95); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding-top: 16px; }
.lightbox__stage img, .lightbox__stage video { max-width: calc(100vw - 32px); max-height: calc(100vh - var(--lb-bar) - 16px); max-height: calc(100dvh - var(--lb-bar) - var(--safe-b) - 16px); object-fit: contain; border-radius: 4px; }
/* player do YouTube: 16:9, o maior que couber acima da barra */
.lightbox__stage iframe { border: 0; aspect-ratio: 16 / 9; width: min(calc(100vw - 32px), calc((100vh - var(--lb-bar) - 16px) * 16 / 9)); width: min(calc(100vw - 32px), calc((100dvh - var(--lb-bar) - var(--safe-b) - 16px) * 16 / 9)); background: #000; }
.lightbox__bar { display: flex; align-items: center; gap: 16px; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) var(--safe-b) max(var(--gutter), env(safe-area-inset-left, 0px)); }
.lightbox__count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: pre; }
.lightbox__text { flex: 1; min-width: 0; }
.lightbox__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; color: var(--ink); }
.lightbox__desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); }
.lightbox__desc:empty { display: none; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__nav button { min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 600; color: var(--ink); transition: box-shadow .2s; }
.lightbox__nav button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }

/* a serifada nos títulos médios (áreas, trabalhos, estado vazio, visualizador) usa um tamanho óptico menor */
.area h3, .item__title, .empty__title, .lightbox__title { font-optical-sizing: none; font-variation-settings: var(--serif-text); }

/* ===== Telas menores ===== */
@media (max-width: 860px) {
  .window__copy { padding-left: 28px; padding-right: 28px; }
  .note { align-self: flex-start; margin-right: 0; }
}
/* Celular: as abas descem para o pé da tela, ao alcance do polegar; a barra de cima fica com o nome, o Discord e o idioma */
@media (max-width: 760px) {
  :root { --bar-h: 72px; }
  body { font-size: 16px; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
  .tabs { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(32, 32, 32, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .tabs a { padding: 10px 15px; }
  .hero__stage { padding-left: 12px; padding-right: 12px; }
  .window--wide { margin-left: -12px; margin-right: -12px; }
  .window__copy { padding: 40px 22px 160px; }
  .window__address { padding: 2px 10px; font-size: 11px; }
  .lightbox { --lb-bar: 116px; }
  .lightbox__bar { flex-wrap: wrap; align-content: center; row-gap: 10px; }
  .lightbox__nav { width: 100%; }
  .lightbox__nav button { flex: 1; }
  .store__brand { gap: 16px; }
  .contact__ways { flex-direction: column; }
  .contact__ways .btn { width: 100%; max-width: 380px; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }    /* espaço para as abas do pé da tela */
}
@media (max-width: 400px) {
  .bar__end { gap: 12px; }
  .tabs a { padding: 10px 12px; font-size: 13px; }
}

/* ===== Dedos: alvos de toque com pelo menos 44px ===== */
@media (pointer: coarse) {
  .lang button { min-width: 44px; min-height: 44px; }
  .tabs a { min-height: 44px; display: inline-flex; align-items: center; }
  .out { min-height: 44px; }
  .foot { align-items: center; }
  .foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .mail__copy { min-height: 44px; }
}
