/* =========================================================
   João Grecco — portfolio
   ========================================================= */

/* ---------- fontes ---------- */
/* nome / títulos: PP Right Serif — Tight Medium (serve para qualquer peso pedido, sem negrito falso) */
@font-face { font-family: "Right Serif Tight"; src: url("../fonts/PPRightSerif-TightMedium.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

@font-face { font-family: "Neue Montreal"; src: url("../fonts/PPNeueMontreal-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/PPNeueMontreal-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/PPNeueMontreal-Regular.woff2") format("woff2"); font-weight: 450; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/PPNeueMontreal-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/PPNeueMontreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/PPNeueMontreal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

@font-face { font-family: "Neue Machina"; src: url("../fonts/PPNeueMachina-PlainLight.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Neue Machina"; src: url("../fonts/PPNeueMachina-PlainRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Machina"; src: url("../fonts/PPNeueMachina-PlainRegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Machina"; src: url("../fonts/PPNeueMachina-PlainMedium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* a Machina não tem "Bold": o Ultrabold faz o papel do Bold (700) da Montreal */
@font-face { font-family: "Neue Machina"; src: url("../fonts/PPNeueMachina-PlainUltrabold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

/* PP Mori — Regular 400, SemiBold no lugar do Medium (500), ExtraBold no lugar do Bold (700) */
@font-face { font-family: "Mori"; src: url("../fonts/PPMori-Book.woff2") format("woff2"); font-weight: 300 350; font-display: swap; }
@font-face { font-family: "Mori"; src: url("../fonts/PPMori-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mori"; src: url("../fonts/PPMori-RegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mori"; src: url("../fonts/PPMori-SemiBold.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Mori"; src: url("../fonts/PPMori-ExtraBold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --ink: #111;
  --ink-2: #4a4a4a;      /* nome do projeto na legenda */
  --muted: #8a8a8a;      /* categoria, texto em inglês, datas */
  --line: #e6e6e6;
  --red: #d42a20;
  --paper: #fff;

  --serif: "Right Serif Tight", "Times New Roman", serif;
  --sans: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 1.2vw, 24px);   /* margem lateral */
  --gap: clamp(12px, 1.15vw, 22px);  /* espaço entre colunas */
  --radius: 8px;
  --fs: clamp(14px, 0.9vw, 18px);    /* texto base */
  --fs-sm: clamp(12.5px, 0.78vw, 15.5px);
  /* peso do menu do topo (work, about, graphic designer…): 400 = Book, 450 = Regular, 500 = Medium */
  --nav-weight: 500;
  /* peso dos textos corridos (descrições dos projetos e about) */
  --text-weight: 500;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html.font-mori     { --sans: "Mori", "Helvetica Neue", Arial, sans-serif; }
html.font-machina  { --sans: "Neue Machina", "Helvetica Neue", Arial, sans-serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs); line-height: 1.25;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { color: var(--red); }   /* todos os links do site ficam vermelhos no hover */
p { margin: 0 0 .9em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header (home) ---------- */
/* espaço entre o header e os projetos (antes havia uma fileira de setas aqui, ~120px no total) */
.hero { padding: clamp(14px, 1.2vw, 24px) var(--pad) clamp(28px, 3.6vw, 70px); }
.hero__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; }
.hero__name {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(64px, 11.2vw, 260px); line-height: .82; letter-spacing: -.01em;
  white-space: nowrap;
}
.hero__nav { display: grid; grid-template-columns: 1fr .5fr .5fr auto; gap: var(--gap); padding-bottom: .9em; }
/* no computador o menu usa as mesmas 2 colunas dos cards Quelas Vibes | Brasil logo abaixo:
   "work" começa na borda esquerda do Brasil e "about" fica no centro dele */
@media (min-width: 761px) {
  .hero__nav { grid-template-columns: 1fr 1fr; }
  .hero__nav > * { grid-row: 1; }
  .hero__nav .role { grid-column: 1; }
  .hero__nav a[href="#work"] { grid-column: 2; justify-self: start; }
  .hero__nav a[href="/about/"] { grid-column: 2; justify-self: center; }
  .hero__nav .dot { grid-column: 2; justify-self: end; }
}
/* "João Grecco" (home) e "about" (página about) ficam vermelhos no hover, como os links */
.hero__name, .about__title { transition: color .2s; width: fit-content; justify-self: start; }   /* hover só sobre as letras, não na linha inteira */
.hero__name:hover, .about__title:hover { color: var(--red); }

/* "graphic designer": no hover, surgem duas linhas acima */
.role { position: relative; cursor: default; outline: none; }
.role__more {
  position: absolute; left: 0; bottom: 100%; display: flex; flex-direction: column; gap: .55em;
  padding-bottom: .55em; color: #c3c3c3; pointer-events: none;
}
.role__more > span { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.role__more > span:first-child { transition-delay: .06s; }           /* a de cima aparece por último */
.role:hover .role__more > span, .role:focus-visible .role__more > span, .role.is-open .role__more > span { opacity: 1; transform: none; }
.role:hover .role__more > span:first-child, .role:focus-visible .role__more > span:first-child { transition-delay: .06s; }
.role:not(:hover):not(:focus-visible):not(.is-open) .role__more > span { transition-delay: 0s; }
.role:focus-visible .role__main { outline: 2px solid var(--red); outline-offset: 3px; }
.hero__nav, .topbar__left a:not(.topbar__name) { font-weight: var(--nav-weight); }
.project__info p, .about__body p, .about__body li, .about__body .contact a { font-weight: var(--text-weight); }
.dot { display: inline-block; width: 5px; height: 5px; background: var(--ink); justify-self: end; align-self: center; }

/* ---------- header (páginas internas) ---------- */
.topbar {
  display: grid; grid-template-columns: minmax(max-content, 1fr) 3fr; gap: var(--gap);
  padding: clamp(14px, 1.2vw, 24px) var(--pad) 0; align-items: start;
  min-height: clamp(70px, 6vw, 112px);
}
.topbar__left { display: flex; align-items: baseline; gap: clamp(20px, 4.4vw, 84px); }
.topbar__left a, .hero__nav > * { white-space: nowrap; }
.topbar__name { font-family: var(--serif); font-size: clamp(30px, 2.5vw, 48px); letter-spacing: 0; line-height: 1; }
.topbar__right { display: flex; justify-content: flex-end; align-items: flex-start; gap: var(--gap); }
.topbar__right--spread { justify-content: space-between; padding-left: 13%; }
/* selo do BDA: fica fixo no canto superior direito enquanto a página rola (como no site antigo) */
.topbar__badge { position: fixed; top: 0; right: var(--pad); z-index: 50; width: clamp(64px, 5.5vw, 106px); }
.minma-cover { aspect-ratio: 748 / 529; }
.topbar__tag { width: clamp(60px, 5.4vw, 104px); }
.topbar__chair { width: clamp(30px, 3.8vw, 74px); }

/* ---------- home: mosaico ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--pad); align-items: start; }
.half { display: flex; flex-direction: column; gap: var(--gap); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--gap); }

.card { display: block; color: inherit; }
.card:hover { color: inherit; }
/* área clicável = só a imagem e o texto da legenda (o vazio ao lado do texto não clica) */
.card { pointer-events: none; }
.card .card__media, .card .cap > span { pointer-events: auto; }
/* hover no projeto (imagem ou texto): a legenda fica vermelha */
.cap, .cap b { transition: color .2s; }
.card:hover .cap, .card:hover .cap b, .card:focus-visible .cap, .card:focus-visible .cap b { color: var(--red); }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #f2f2f2;
}
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
/* hover nas imagens clicáveis (só com mouse). Na home a legenda também fica vermelha (regra acima). */
@media (hover: hover) and (pointer: fine) {
  /* todas as imagens clicáveis (thumbs da home e imagens com zoom nos projetos):
     baixam suavemente para 90% de opacidade e crescem 0,5% — sem sombra */
  .card__media, .gallery .zoom img { transition: opacity .45s var(--ease), scale .45s var(--ease); }
  .mosaic .card:hover .card__media,
  .gallery .zoom:hover img { opacity: .9; scale: 1.005; }
}
.card__media--black { background: #000; }
.card__media--outline { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.card__media--outline video { mix-blend-mode: multiply; }

.cap {
  display: flex; justify-content: space-between; gap: 1em; margin-top: .55em;
  font-size: var(--fs); color: var(--muted); line-height: 1.2;   /* mesmo tamanho do menu do topo */
}
.cap b { font-weight: 500; color: var(--ink-2); }
.cap__award { color: var(--red); white-space: nowrap; }
.cap__award b { color: var(--red); font-weight: 700; }

.filler { pointer-events: none; padding: 4% 6%; }
.filler img { width: 100%; height: auto; }
.filler--end { display: none; }   /* versão "fim da página" da formiga: só no celular */

/* proporções dos cards */
.r-mestres { aspect-ratio: 1440 / 1000; }   /* = proporção do vídeo do Mestres, sem corte */
.r-square  { aspect-ratio: 1 / 1; }
.r-jg      { aspect-ratio: 450 / 292; }
.r-poster  { aspect-ratio: 4 / 5; }
.r-tall    { aspect-ratio: 454 / 638; }
.r-tim     { aspect-ratio: 16 / 9; }

/* ---------- rodapé ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: clamp(40px, 4vw, 80px) var(--pad) clamp(14px, 1.2vw, 24px);
  font-size: var(--fs);
}
.footer__top { font-size: 1.1em; line-height: 1; padding: 4px 8px; }
.footer__sign { justify-self: end; width: clamp(38px, 2.5vw, 48px); }
.footer__sign img, .about__sign img { width: 100%; mix-blend-mode: multiply; }
.about__sign { display: none; }

/* ---------- páginas de projeto ---------- */
.project { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gap); padding: clamp(14px, 1.6vw, 32px) var(--pad) 0; align-items: start; }
.project__info { position: sticky; top: clamp(14px, 1.2vw, 24px); padding-right: 2%; }
.project__logo { height: auto; margin-bottom: clamp(20px, 2.2vw, 42px); }
.project__info p { font-size: var(--fs); line-height: 1.2; }
.project__info .en { color: var(--muted); font-size: var(--fs-sm); line-height: 1.3; }
.project__info .en:first-of-type, .project__info p.en-start { margin-top: 2em; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gallery--loose { row-gap: clamp(40px, 3.5vw, 68px); }
.gallery .full { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery .zoom { cursor: zoom-in; }
.gallery .contain img { object-fit: contain; border-radius: 0; }
.gallery .span-2 { grid-row: span 2; }
.video-embed { aspect-ratio: 16 / 9; width: 70%; margin: clamp(40px, 6vw, 110px) auto 0; grid-column: 1 / -1; }
.video-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--pad); }
.about__photo { align-self: end; }
/* retrato inteiro (sem corte na base): proporcional e nunca mais alto que a tela */
.about__photo img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - clamp(90px, 9vw, 150px)); margin: 0 auto; }
.about__title {
  font-family: var(--serif); font-weight: 400; margin: calc(-1 * clamp(60px, 5.8vw, 112px)) 0 clamp(60px, 7vw, 140px);
  font-size: clamp(96px, 11vw, 220px); line-height: .8; letter-spacing: -.01em;
}
.about__body { max-width: 620px; }
.about__home { display: none; font-weight: var(--nav-weight); }   /* só aparece no celular */
.about h2 { font-size: calc(var(--fs) * 1.08); font-weight: 400; color: var(--red); margin: 1.6em 0 .35em; }
.about h2 b { font-weight: 700; }
.about h2:first-of-type { margin-top: 0; }
.about p { margin: 0; }
.about .en { color: var(--muted); font-size: var(--fs-sm); margin-top: .9em; line-height: 1.3; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 1em; line-height: 1.25; }
.rows time, .rows span.when { color: #b7b7b7; white-space: nowrap; }
.contact { margin-top: clamp(40px, 3vw, 60px); }
.contact a { display: block; width: fit-content; }

/* about no computador: tudo cabe numa tela, sem rolar */
@media (min-width: 761px) {
  .page-about { position: relative; min-height: 100vh; }
  .page-about {
    --title-fs: min(11vw, 21vh);
    --name-fs: clamp(30px, 2.5vw, 48px);       /* = .topbar__name */
    --bar-pad: clamp(14px, 1.2vw, 24px);       /* = padding do .topbar */
    --bar-h: clamp(70px, 6vw, 112px);          /* = altura do .topbar */
  }
  /* topo das letras de "about" (b, t) na mesma altura do topo de "João Grecco" no header.
     Right Serif: ascendente 0,898 · descendente 0,244 · topo de b/J 0,6875 (em relação ao corpo)
     → no nome (entrelinha 1) o topo fica a 0,1395 × corpo; no título (entrelinha 0,8), a 0,0395 × corpo */
  .page-about .about__title {
    font-size: var(--title-fs);
    margin-top: calc(var(--bar-pad) + .1395 * var(--name-fs) - var(--bar-h) - .0395 * var(--title-fs));
    margin-bottom: clamp(20px, 4vh, 56px);
  }
  .page-about .about h2 { margin-top: 1.05em; }
  .page-about .contact { margin-top: 1.5em; }
  .page-about .about__photo img { max-height: calc(100vh - var(--bar-h) - 2 * var(--pad)); }
  .page-about .about { padding-bottom: var(--pad); }
}
/* about (computador e celular): assinatura alinhada à direita e à base do bloco de texto; o rodapé some */
.page-about .footer { display: none; }
.page-about .about__body { position: relative; }
.page-about .about__sign { display: block; position: absolute; right: 0; bottom: 0; width: clamp(38px, 2.5vw, 48px); }
@media (max-width: 760px) { .page-about .about { padding-bottom: 40px; } }

/* ---------- cursor personalizado (só com mouse; no celular não existe) ----------
   Seta (desenhada à mão): para navegar. Asterisco: sobre tudo que é clicável.
   Os dois usam o efeito "diferença". Nele o preto some, por isso são pintados de BRANCO:
   sobre o fundo branco ele aparece preto; sobre imagens, mostra o contrário do que está atrás.
   Os desenhos vêm dos SVGs em assets/img/cursor e são usados como máscara (a cor vem do CSS). */
:root {
  --cursor-arrow: 25px;   /* tamanho da seta */
  --cursor-star: 25px;    /* asterisco: mesmo tamanho da seta */
}
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none;
  opacity: 0; transition: opacity .15s, transform .2s var(--ease);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.cursor--arrow {
  width: var(--cursor-arrow); height: var(--cursor-arrow); background: #fff; mix-blend-mode: difference;
  /* a ponta da seta fica a 18,5% da esquerda e 16,2% do topo do desenho: é ali que o clique acontece */
  margin: calc(var(--cursor-arrow) * -.162) 0 0 calc(var(--cursor-arrow) * -.185);
  -webkit-mask-image: url("../img/cursor/seta.svg"); mask-image: url("../img/cursor/seta.svg");
}
.cursor--star {
  width: var(--cursor-star); height: var(--cursor-star); background: #fff; mix-blend-mode: difference;
  margin: calc(var(--cursor-star) / -2) 0 0 calc(var(--cursor-star) / -2);   /* centro do asterisco */
  -webkit-mask-image: url("../img/cursor/asterisco.svg"); mask-image: url("../img/cursor/asterisco.svg");
}
.cursor.is-visible { opacity: 1; }

/* ---------- entrada no scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card__media img, .card__media video { transition: none; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10, 10, 10, .92);
      opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__stage { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); display: grid; place-items: center; }
.lb__stage img, .lb__stage video { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 14px; line-height: 1; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb__close { top: 10px; right: 12px; font-size: 26px; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb__prev { left: 10px; } .lb__next { right: 10px; }
.lb__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: var(--fs-sm); }
body.lb-lock { overflow: hidden; }

/* =========================================================
   responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .project { grid-template-columns: 1fr 2fr; }
  .topbar { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 760px) {
  :root { --fs: 15px; --fs-sm: 13px; --gap: 12px; --pad: 16px; }

  /* home header */
  .hero__row { grid-template-columns: 1fr; container-type: inline-size; }
  /* o nome ocupa a largura toda: a largura de "João Grecco" ≈ 2,82 × o tamanho da fonte */
  .hero__name { font-size: calc(100cqw / 2.82); }
  .hero__nav { grid-template-columns: 53% 1fr auto; padding: .9em 0 0; }
  .hero__nav .dot { display: none; }
  /* no celular as duas linhas extras ficam lado a lado, numa linha só ABAIXO do menu:
     "brasileiro" termina onde termina o título; "são paulo, br" começa alinhado com o "work" */
  .role { justify-self: start; }   /* largura = texto, para "brasileiro" terminar junto com o título */
  .role__more { display: block; width: 100%; height: 1.2em; padding: 0; bottom: auto; top: calc(100% + .55em); }
  .role__more > span { transform: translateY(-6px); }   /* surgem descendo, em vez de subindo */
  .role__more > span { position: absolute; top: 0; white-space: nowrap; }
  .role__more > span:first-child { right: 0; }
  .role__more > span:last-child { left: calc(100cqw * .53 + var(--gap)); }
  .hero { padding-bottom: 0; }   /* no celular o espaço vem do mosaico (onde aparecem as linhas do hover) */

  /* mosaico: vira uma coluna com sub-colunas, na ordem do celular */
  .mosaic { display: flex; flex-direction: column; gap: var(--gap); padding-top: 40px; }   /* espaço para as linhas do hover */
  .half { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; }
  /* com as colunas equilibradas (main.js), os blocos originais ficam vazios e somem */
  .is-masonry .cols.o4:not(.m-masonry), .is-masonry .cols.o5 { display: none; }
  /* no celular, nada de desenhos entre os projetos: só a formiga, no fim */
  .mosaic .filler:not(.filler--end) { display: none; }
  .filler--end { display: block; order: 6; padding: 24px 4% 0; }
  .r-jg { aspect-ratio: 4 / 3; }

  /* páginas de projeto no celular (composição do site antigo) */
  /* cabeçalho: nome grande (~62% da largura), "work" e "about" embaixo dele; símbolo do projeto à direita */
  .topbar { grid-template-columns: 1fr auto; min-height: 0; padding-bottom: 0; container-type: inline-size; }
  .topbar__left { display: grid; grid-template-columns: 43% auto 1fr; width: fit-content; row-gap: .7em; align-items: baseline; }
  .topbar__name { grid-column: 1 / -1; font-size: calc(100cqw * .62 / 2.82); line-height: .82; letter-spacing: -.01em; }
  .topbar__left a:nth-child(2) { grid-column: 2; }
  .topbar__left a:nth-child(3) { grid-column: 3; justify-self: end; padding-left: 1em; }
  .topbar__right--spread { padding-left: 0; }
  .topbar__right--spread .topbar__chair:not(:last-child) { display: none; }
  .topbar__chair { width: 66px; }
  .topbar__tag { width: 66px; margin-top: 10px; }
  .topbar__badge { width: 74px; }
  /* mais respiro entre o cabeçalho e o logo do projeto */
  .project { grid-template-columns: 1fr; padding-top: 56px; }
  .project__info { position: static; }
  .project__logo { margin-bottom: 34px; }
  img.project__logo[alt="Mestres da Vila"] { width: 48% !important; }
  img.project__logo[alt="MiNMa"] { width: 48% !important; }
  img.project__logo[alt="PIXO"] { width: 28% !important; }
  .gallery { grid-template-columns: 1fr; margin-top: 12px; }
  .gallery .span-2 { grid-row: auto; }
  .gallery--loose { row-gap: 30px; }
  .gallery .contain img { width: 62% !important; }
  .minma-cover { aspect-ratio: 4 / 5; }           /* MiNMa: cartaz vertical no celular */
  /* Mestres: os pares de cartazes formam um bloco preto contínuo, com cantos arredondados só nas pontas */
  .gallery--stack { row-gap: 0; }
  .gallery--stack > a img { border-radius: 0; }
  .gallery--stack > a { margin-bottom: -1px; }                 /* sem fresta entre os pares */
  .gallery--stack > a.reveal { transform: none; }              /* entrada só com fade, para o bloco não "abrir" */
  .gallery--stack > a:first-child img { border-radius: var(--radius) var(--radius) 0 0; }
  .gallery--stack > a:nth-last-child(2) img { border-radius: 0 0 var(--radius) var(--radius); }
  .gallery--stack .video-embed { margin-top: 48px; }
  /* PIXO: o primeiro grupo continua em duas colunas (lambe e ecobag | totem); o resto, uma coluna */
  .gallery--pixo { grid-template-columns: 1fr 1fr; }
  .gallery--pixo > :not(.pair) { grid-column: 1 / -1; margin-top: 14px !important; }   /* ~26px entre as imagens */
  .gallery--pixo .totem { grid-row: span 2; }
  .video-embed { width: 100%; }
  .footer { padding-top: 48px; }

  /* about */
  .about { grid-template-columns: 1fr; }
  .about__title { margin: 24px 0 36px; font-size: 30vw; }
  /* about no celular: sem cabeçalho, só "↙ home" ao lado do título;
     ordem: título + home → foto → informações */
  .topbar--hide-mobile { display: none; }
  /* "about" com o mesmo corpo, entrelinha e posição do "João Grecco" da home no celular */
  .about { grid-template-columns: 1fr auto; padding-top: clamp(14px, 1.2vw, 24px); container-type: inline-size; }
  .about__text { display: contents; }
  .about__title { order: 1; grid-column: 1; margin: 0 0 36px; font-size: calc(100cqw / 2.82); line-height: .82; }
  /* "home" na mesma linha de base de "about" (alinhamento por baseline, vale em qualquer largura) */
  .about__title, .about__home { align-self: last baseline; }
  .about__home { display: block; order: 1; grid-column: 2; }
  .about__photo { order: 2; grid-column: 1 / -1; margin: 0 auto 40px; width: 82%; }
  .about__body { order: 3; grid-column: 1 / -1; }

  .lb__stage, .lb__stage img, .lb__stage video { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; }
}
