/* Rafael Magosso — site pessoal
   Couro das cabines, âmbar do logo, papel do setlist. */

/* Fontes locais: os mesmos woff2 do Google Fonts (subconjunto latin), sem o CSS de outra origem
   bloqueando a primeira pintura. Newsreader normal é variável (opsz + wght 400–600: 400, 500, 600);
   a itálica só existe em 400 (única usada), com opsz. */
@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/league-gothic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Reserva com as medidas da Newsreader (Georgia ajustada): enquanto a Newsreader baixa (4G lento), o
   texto já ocupa quase o mesmo espaço e não muda de quebra de linha na troca. size-adjust medido com o
   texto da página (Newsreader ÷ Georgia, nos tamanhos usados); ascent/descent = 1470/530 de 2000 ÷ size-adjust. */
@font-face {
  font-family: "Newsreader Fallback";
  font-style: normal;
  font-weight: 400 500;
  src: local("Georgia");
  size-adjust: 92.5%;
  ascent-override: 79.5%;
  descent-override: 28.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback";
  font-style: normal;
  font-weight: 600 700;
  src: local("Georgia Bold"), local("Georgia-Bold");
  size-adjust: 84%;
  ascent-override: 87.5%;
  descent-override: 31.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback";
  font-style: italic;
  font-weight: 400 700;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 87%;
  ascent-override: 84.5%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/permanent-marker-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --couro: #1A100C;
  --couro-2: #24170F;
  --couro-3: #342218;
  --osso: #F1E6D6;
  --osso-2: #C9B9A3;
  --osso-3: #988672; /* era #8E7C68: 4,34:1 sobre --couro-2; agora 4,97:1 (AA) */
  --ambar: #E2963A;
  --ambar-2: #F2B566;
  --neon: #C45BFF;
  --papel: #ECE9E2;
  --tinta: #151313;
  --placa: #0E0A08;
  --placa-texto: #D9D0C2;
  --linha: rgba(241, 230, 214, .14);

  --f-display: "League Gothic", "Impact", "Haettenschweiler", "Arial Narrow", sans-serif;
  --f-texto: "Newsreader", "Newsreader Fallback", "Iowan Old Style", "Georgia", serif;
  --f-mao: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 76rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--couro);
  color: var(--osso);
  font-family: var(--f-texto);
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Grão de filme, fixo e barato: um único pseudo-elemento. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--ambar);
  color: var(--tinta);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Tipos recorrentes ---------- */

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 2rem + 6vw, 7rem);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--osso);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.lede {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.4;
  color: var(--osso);
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

p + p { margin-top: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  font-family: var(--f-texto);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn--solid { background: var(--ambar); color: var(--tinta); }
.btn--solid:hover { background: var(--ambar-2); }
.btn--ghost { border: 1px solid rgba(241, 230, 214, .45); color: var(--osso); }
.btn--ghost:hover { border-color: var(--osso); background: rgba(241, 230, 214, .08); }
.btn:active { transform: scale(.97); }

/* Plaquinha de memorabilia: a legenda de toda foto. */
.plaque {
  display: grid;
  gap: .2rem;
  padding: .7rem .9rem .8rem;
  background: linear-gradient(180deg, #16100D, var(--placa));
  border: 1px solid #3A2C23;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .45);
  color: var(--placa-texto);
  text-align: center;
}
.plaque__name {
  font-variant: small-caps;
  letter-spacing: .09em;
  font-size: 1.05rem;
  font-weight: 500;
  color: #EFE7DA;
}
.plaque__text { font-size: .86rem; line-height: 1.45; color: #B9AE9F; }
.plaque--inline { margin-top: .75rem; max-width: 34rem; margin-inline: auto; }

/* ---------- Navegação ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem var(--gutter); /* altura da barra sólida; no topo o conteúdo desce .3rem (abaixo) */
}
/* Barra alta no topo (.85rem) → compacta ao ficar sólida (.55rem). Antes era transição de padding:
   layout a cada quadro e deslocamento de layout durante a rolagem. Agora só translate (compositor). */
.nav > .nav__brand, .nav > .nav__toggle { translate: 0 .3rem; transition: translate .35s var(--ease-out); }
.nav.is-solid > .nav__brand, .nav.is-solid > .nav__toggle { translate: none; }
/* O fundo translúcido fica num pseudo-elemento: backdrop-filter no próprio .nav vira bloco de contenção
   do menu mobile (position: fixed) e o menu aberto ficava preso na altura da barra. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  background: rgba(26, 16, 12, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linha);
  transition: opacity .35s;
  pointer-events: none;
}
.nav.is-solid::before { opacity: 1; }
.nav__brand {
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--osso);
}
.nav__toggle {
  appearance: none;
  border: 1px solid rgba(241, 230, 214, .4);
  background: transparent;
  color: var(--osso);
  font: 600 .95rem/1 var(--f-texto);
  padding: .6rem 1rem;
  border-radius: 999px;
  min-height: 2.75rem;
  cursor: pointer;
}
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center; /* celular deitado: sem "safe", os primeiros links sumiam acima da tela */
  overflow-y: auto;
  gap: .4rem;
  padding: 5rem var(--gutter) 2rem;
  background: var(--couro);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.nav.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s;
}
.nav__menu a {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, min(11vw, 8svh), 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--osso);
}
.nav__menu a:hover { color: var(--ambar); }

@media (min-width: 62em) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(.9rem, 1.6vw, 1.8rem);
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav > .nav__menu { translate: 0 .3rem; transition: translate .35s var(--ease-out); }
  .nav.is-solid > .nav__menu { translate: none; }
  .nav__menu a {
    font-family: var(--f-texto);
    font-size: 1rem;
    text-transform: none;
    color: var(--osso-2);
  }
  .nav__menu a:hover, .nav__menu a.is-current { color: var(--osso); }
  .nav__menu .nav__cta {
    padding: .45rem 1rem;
    border: 1px solid rgba(241, 230, 214, .45);
    border-radius: 999px;
    color: var(--osso);
  }
}

/* ---------- Hero: capa de revista ----------
   RAFAEL em âmbar, MAGOSSO gigante atrás, o Rafa recortado na frente sob uma luz de palco.
   Mesma conta do desenho no OpenPencil (design/abertura_responsiva.py):
   - MAGOSSO vai de margem a margem: em League Gothic a palavra tem 2,553× o tamanho da fonte
     de largura de tinta, com recuo de 0,04× à esquerda; a maiúscula mede 0,743× a fonte.
   - Com line-height .88 o topo da maiúscula fica a .067× (MAGOSSO) / .075× (RAFAEL) do topo da caixa.
   - A cabeça do Rafa (a 14% do topo da foto) começa a 60% da altura das letras, então ela
     cobre só a parte de baixo do nome e MAGOSSO continua legível.
   Tela deitada: 1u = 14,4 px no desenho de 1440 × 900 (1vw = 1,6svh). */

.hero {
  --palco: #0D0806;
  --u: min(1vw, 1.6svh);
  --f-primeiro: calc(var(--u) * 8.33);                  /* RAFAEL: 120 px */
  --topo-rafael: max(6rem, calc(var(--u) * 6.94));     /* topo da maiúscula de RAFAEL: 100 px */
  --topo-nome: calc(var(--topo-rafael) + var(--f-primeiro) * .89);
  --rodape: 13rem;                                      /* espaço reservado para texto + botões */
  /* MAGOSSO: largura da tela menos as margens; em tela larga e baixa, limitado pela altura
     para não encostar no texto de baixo (aí fica centrado). 520 px no desenho de 1440. */
  --f-nome: min(calc((100vw - 2 * var(--gutter)) / 2.553),
                calc((100svh - var(--topo-nome) - var(--rodape)) / .743));
  --cabeca: calc(var(--topo-nome) + var(--f-nome) * .446); /* cabeça a 60% da altura das letras */
  --h: max(calc(var(--u) * 59.7), calc((100svh - var(--cabeca)) / .86 + 1.25rem)); /* recorte: 860 px */
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--palco);
  /* A nav fixa mora dentro do hero; sem z-index aqui, o contexto de empilhamento do hero ficava
     abaixo de tudo que vem depois com transform/sticky (setlist, discos) e a nav era coberta. */
  z-index: 10;
}
.hero__light {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * -4);
  width: calc(var(--u) * 56);
  height: calc(var(--u) * 62);
  margin-left: calc(var(--u) * -28);
  z-index: 0;
  pointer-events: none;
}
/* O foco de luz fica num pseudo-elemento: o acendimento (light-on) anima o .hero__light e a
   respiração (breathe) anima o ::before. Na mesma propriedade do mesmo elemento as duas não
   compunham e a respiração rodava na thread principal (60 recálculos de estilo/s, para sempre). */
.hero__light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(106, 58, 30, .82), rgba(42, 22, 12, .42) 55%, rgba(13, 8, 6, 0));
}
.hero::after { /* fade da base: o corpo some no palco e o texto fica legível */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: max(26%, 13rem);
  z-index: 3;
  background: linear-gradient(180deg, rgba(13, 8, 6, 0) 0%, rgba(13, 8, 6, .78) 50%, var(--palco) 92%);
  pointer-events: none;
}

.hero__name {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .88;
  white-space: nowrap;
}
.hero__first, .hero__last { position: absolute; display: block; }
.hero__first {
  top: calc(var(--topo-rafael) - var(--f-primeiro) * .075);
  left: calc(50% - var(--f-nome) * 1.2765 - var(--f-primeiro) * .04); /* alinhado à tinta do M */
  z-index: 1;
  font-size: var(--f-primeiro);
  letter-spacing: .05em;
  color: var(--ambar);
}
.hero__last {
  top: calc(var(--topo-nome) - var(--f-nome) * .067);
  left: calc(50% - var(--f-nome) * 1.3165);
  z-index: 1;
  font-size: var(--f-nome);
  color: var(--osso);
}
.hero__cut {
  position: absolute;
  top: calc(var(--cabeca) - var(--h) * .14);
  left: 0;
  right: 0;
  margin-inline: auto;
  height: var(--h);
  aspect-ratio: 2 / 3;
  z-index: 2;
}
.hero__cut img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

.hero__inner {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 7rem var(--gutter) clamp(2rem, 6vh, 4.5rem); /* mesma margem do M de MAGOSSO */
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.hero__kicker {
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--osso-2); /* sobre o logo laranja da camiseta, --osso-3 ficava abaixo de 4,5:1 */
  text-shadow: 0 1px 12px rgba(0, 0, 0, .85);
}
.hero__kicker i { font-style: normal; padding-inline: .35em; }
.hero__lede {
  margin-top: .55rem;
  max-width: 30ch;
  font-size: clamp(1.1rem, .95rem + .6vw, 1.5rem);
  line-height: 1.38;
  color: var(--osso);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Tela em pé (celular, tablet na vertical): o Rafa ocupa mais altura, o nome encosta na
   largura da tela e o texto desce para baixo dele. 1v = 3,9 px num celular de 390 px. */
@media (max-aspect-ratio: 1 / 1), (max-width: 40em) {
  .hero {
    --v: min(1vw, .55svh);
    --f-primeiro: calc(var(--v) * 13.5);
    --topo-rafael: 5.5rem;
    --rodape: 16rem;
    --f-nome: min(calc((100vw - 2 * var(--gutter)) / 2.553),
                  calc((max(100svh, 36rem) - var(--topo-nome) - var(--rodape)) / .743));
    --h: max(calc(var(--v) * 185), calc((max(100svh, 36rem) - var(--cabeca)) / .86 + 1.25rem));
    min-height: max(100svh, 36rem);
  }
  .hero__light { bottom: 8%; width: calc(var(--v) * 130); height: calc(var(--v) * 150); margin-left: calc(var(--v) * -65); }
  /* O fade acompanha o texto: começa 6rem acima do kicker, então em tela baixa (375 × 667)
     o texto não fica sobre o logo da camiseta sem sombra, e em tela alta o peito continua à vista. */
  .hero::after { display: none; }
  .hero__inner { flex-direction: column; align-items: flex-start; padding-top: 0; }
  .hero__inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -6rem;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: linear-gradient(180deg, rgba(13, 8, 6, 0) 0, rgba(13, 8, 6, .8) 6rem, var(--palco) 88%);
    pointer-events: none;
  }
}
/* Celular deitado (844 × 390): a capa encolhe um pouco para RAFAEL não encostar na barra, e texto +
   botões ficam numa linha só, na faixa abaixo de MAGOSSO (antes o texto caía em cima do nome). */
@media (min-aspect-ratio: 1 / 1) and (max-height: 32em) and (min-width: 40.01em) {
  .hero { --u: min(1vw, 1.45svh); --topo-rafael: 4.5rem; --rodape: 8.5rem; }
  .hero__inner { flex-wrap: nowrap; gap: 1.25rem; padding-bottom: 1rem; }
  .hero__kicker { font-size: .8rem; }
  .hero__lede { font-size: 1rem; max-width: 28ch; }
  .hero__actions { flex-direction: column; flex-shrink: 0; gap: .6rem; } /* coluna: sobra largura para o texto */
}
@media (max-width: 22em) { /* telas bem estreitas: botões em coluna, cheios */
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { justify-content: center; }
}

/* ---------- Sobre ---------- */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.about__text { max-width: 38rem; }
.about__text > p:not(.lede) { color: var(--osso-2); }

.relic { justify-self: center; width: min(100%, 22rem); }
.relic__frame {
  position: relative;
  padding: clamp(.9rem, 2.4vw, 1.3rem);
  background:
    linear-gradient(135deg, #2B1D15, #120B08 45%, #2A1C14 60%, #0E0907);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 170, .08),
    inset 0 0 0 7px #0C0806,
    inset 0 0 0 8px rgba(255, 220, 170, .06),
    0 30px 60px rgba(0, 0, 0, .55);
}
.relic__frame img {
  width: 100%;
  aspect-ratio: 573 / 860;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 2px 12px rgba(0, 0, 0, .6);
}
.relic .plaque { margin: 1rem auto 0; width: 88%; }

@media (min-width: 52em) {
  .about { grid-template-columns: minmax(16rem, 22rem) 1fr; align-items: center; }
  .relic { justify-self: start; }
}

/* ---------- Escalação (cartaz de show) ---------- */

.lineup {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(226, 150, 58, .16), transparent 70%),
    var(--couro-2);
  border-block: 1px solid var(--linha);
  overflow: hidden;
}
.lineup__presents {
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
  color: var(--ambar-2);
}
.lineup__acts {
  display: grid;
  gap: clamp(.35rem, 1vw, .7rem);
  max-width: 64rem;
  margin: clamp(1.2rem, 3vw, 2rem) auto;
}
.act {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: .92;
  color: var(--osso);
  text-wrap: balance;
}
.act--headliner { font-size: clamp(3rem, 1rem + 8.5vw, 8.4rem); color: var(--ambar); }
.act--2 { font-size: clamp(2.3rem, 1rem + 5.5vw, 5.6rem); }
.act--3 { font-size: clamp(2rem, 1rem + 4.2vw, 4.3rem); }
.act--4 { font-size: clamp(1.5rem, .9rem + 2.6vw, 2.9rem); color: var(--osso-2); }
.act--5 { font-size: clamp(1.5rem, .9rem + 2.6vw, 2.9rem); color: var(--osso-2); }
.lineup__venue { font-size: .98rem; color: var(--osso-3); }

/* ---------- Trajetória: setlist + notas ---------- */

.career {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  /* A folha girada (-2°) + fitas giradas passavam 3 px da tela em 375 (6 px em 360) e o navegador
     do celular alargava a página. clip (não hidden) não cria rolagem e não quebra o sticky. */
  overflow-x: clip;
}
.career__setlist { display: grid; gap: 2.5rem; align-content: start; }

.setlist {
  position: relative;
  justify-self: center;
  width: min(100%, 21rem);
  padding: 2.4rem 1.6rem 2rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 2.05rem, rgba(21, 19, 19, .06) 2.05rem calc(2.05rem + 1px)),
    var(--papel);
  color: var(--tinta);
  transform: rotate(-2deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 18px 40px rgba(0, 0, 0, .5);
}
/* Fita crepe nos cantos */
.setlist::before, .setlist::after {
  content: "";
  position: absolute;
  top: -.8rem;
  width: 5.2rem;
  height: 1.7rem;
  background: rgba(214, 196, 158, .82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.setlist::before { left: -1.2rem; transform: rotate(-32deg); }
.setlist::after { right: -1.2rem; transform: rotate(28deg); }
/* Em telas estreitas a fita da direita passava 1 px da viewport. */
@media (max-width: 30em) {
  .setlist::before { left: -.8rem; }
  .setlist::after { right: -.8rem; }
}

.setlist__head {
  font-family: var(--f-mao);
  font-size: 1.1rem;
  text-align: center;
  color: #6B6560;
  margin-bottom: 1rem;
}
.setlist__songs { counter-reset: song; }
.setlist__songs li {
  position: relative;
  counter-increment: song;
  font-family: var(--f-mao);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  line-height: 1.35;
  padding-left: 2.2rem;
}
/* Com JS a linha fica dentro de .ink__in (ver "4. Setlist"); o número vai junto para ser "escrito" com ela. */
.setlist__songs li:not(.is-inked)::before,
.setlist__songs .ink__in::before {
  content: counter(song);
  position: absolute;
  left: 0;
  width: 1.6rem;
  text-align: right;
  color: #6E665E; /* 4,6:1 sobre o papel */
  font-size: .8em;
  top: .15em;
}
/* Risco de marcador quando a música "já foi tocada" (JS marca com .is-played). */
.setlist__songs li::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: -.3rem;
  top: 55%;
  height: .2rem;
  border-radius: 2px;
  background: #C0392B;
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left center;
  transition: transform .55s var(--ease-in-out);
}
.setlist__songs li.is-played::after { transform: scaleX(1) rotate(-2deg); }
.setlist__songs li.is-playing { color: #B8321F; }

.setlist__encore {
  margin-top: 1.1rem;
  font-family: var(--f-mao);
  font-size: 1.35rem;
  text-align: right;
  color: #B8321F;
  transform: rotate(-4deg);
}

.career__photo { justify-self: center; width: min(100%, 30rem); }
.career__photo img { width: 100%; aspect-ratio: 670 / 447; object-fit: cover; }

.career__notes { max-width: 40rem; }
.timeline { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.timeline li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  column-gap: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linha);
}
.timeline__year {
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: .85;
  color: var(--ambar);
}
.timeline h3 {
  font-family: var(--f-texto);
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: .35rem;
}
.timeline li p:last-child { color: var(--osso-2); }

@media (min-width: 58em) {
  .career { grid-template-columns: minmax(18rem, 24rem) 1fr; align-items: start; }
  .career__setlist { position: sticky; top: 6rem; }
}
@media (min-width: 58em) and (max-height: 58em) {
  .career__setlist .career__photo { display: none; }
}

/* ---------- A casa ---------- */

.house {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.house__wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.house__body {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.house__intro > p:not(.lede) { color: var(--osso-2); max-width: 38rem; }

.specs { display: grid; align-content: start; }
.specs > div {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 1.3fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--linha);
}
.specs dt { color: var(--osso-3); }
.specs dd { color: var(--osso); }

.house__pair {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.house__pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 56em) {
  .house__body { grid-template-columns: 1.1fr 1fr; }
  .house__pair { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Ideias ---------- */

.ideas {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  border-top: 1px solid var(--linha);
}
.ideas__quote {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.ideas__quote p {
  font-style: italic;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 1.18;
  color: var(--osso);
  text-wrap: balance;
}
.ideas__list {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
}
.ideas__list li { padding-top: 1rem; border-top: 2px solid var(--ambar); max-width: 30rem; }
.ideas__list h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  line-height: .95;
  margin-bottom: .5rem;
}
.ideas__list p { color: var(--osso-2); }

@media (min-width: 48em) { .ideas__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .ideas__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Prêmios: discos de ouro ---------- */

.awards {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--couro-2);
  border-block: 1px solid var(--linha);
}
.awards__inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.awards__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
@media (min-width: 64em) { .awards__grid { grid-template-columns: repeat(5, 1fr); } } /* os 5 discos numa linha, sem 4+1 */
.award {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  gap: 1.1rem;
  padding: 1.6rem 1.2rem 1.4rem;
  background: linear-gradient(160deg, #2E1F17, #1A110C);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 6px #120B08,
    inset 0 0 0 7px rgba(255, 220, 170, .08),
    0 18px 40px rgba(0, 0, 0, .45);
}
.award__disc {
  width: min(100%, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1A100C 0 7%, #D7B25A 7.5% 17%, #7C5B1E 17.5% 18.5%, transparent 19%),
    repeating-radial-gradient(circle at 50% 50%, #C9A24A 0 1px, #E3C36F 1.5px 2.5px),
    #C9A24A;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .5);
  position: relative;
  overflow: hidden;
}
/* Reflexo de luz sobre o vinil dourado */
.award__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255, 250, 225, .5) 55deg, transparent 75deg 220deg, rgba(255, 250, 225, .35) 235deg, transparent 255deg);
  mix-blend-mode: soft-light;
}
.award .plaque { width: 100%; align-self: stretch; align-content: center; }
.award__year { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--ambar); }

/* ---------- Palestras ---------- */

.talks {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.talks__photo { justify-self: center; width: min(100%, 30rem); }
.talks__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.talks__body > p:not(.lede) { color: var(--osso-2); max-width: 38rem; }
.talks__topics { display: grid; gap: .1rem; margin: 1.5rem 0 2rem; }
.talks__topics li {
  position: relative;
  padding: .75rem 0 .75rem 1.9rem;
  border-bottom: 1px solid var(--linha);
  font-size: 1.1rem;
}
.talks__topics li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.25rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 0 3px rgba(226, 150, 58, .2);
}

@media (min-width: 56em) {
  .talks { grid-template-columns: minmax(18rem, 28rem) 1fr; align-items: center; }
}

/* ---------- Mídia ---------- */

.press {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  border-top: 1px solid var(--linha);
}
.press__videos {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.video__facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .video__facade:hover img { opacity: 1; transform: scale(1.03); }
}
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.video__play::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 1.35rem;
  border-left: 1.35rem solid var(--tinta);
  border-top: .9rem solid transparent;
  border-bottom: .9rem solid transparent;
}
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video__title { margin-top: .6rem; font-weight: 600; }

.clips { border-top: 1px solid var(--linha); }
.clips a {
  display: grid;
  gap: .15rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--linha);
  text-decoration: none;
  transition: color .2s;
}
/* O recuo do hover era padding animado (layout + reflow do título a cada quadro); agora é translate. */
.clips a > span { transition: transform .3s var(--ease-out); }
.clips a:hover { color: var(--ambar-2); }
@media (hover: hover) and (pointer: fine) {
  .clips a:hover > span { transform: translateX(.5rem); }
}
.clips__outlet { font-size: .92rem; color: var(--ambar); }
.clips__title { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.35; }

@media (min-width: 48em) {
  .press__videos { grid-template-columns: 1fr 1fr; }
  .clips a { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
}

/* ---------- Causas ---------- */

.causes {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  border-top: 1px solid var(--linha);
}
.causes__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.causes__poster { justify-self: center; width: min(100%, 22rem); }
.causes__poster img { width: 100%; }
.causes__quote {
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--ambar);
}
.causes__quote p { font-style: italic; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.35; }
.causes__quote footer { margin-top: .6rem; font-size: .92rem; color: var(--osso-3); }
.causes__list { display: grid; gap: 1.5rem; }
.causes__list li { padding-top: 1rem; border-top: 1px solid var(--linha); }
.causes__list h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; margin-bottom: .3rem; }
.causes__list p { color: var(--osso-2); }

@media (min-width: 56em) {
  .causes__grid { grid-template-columns: minmax(16rem, 22rem) 1fr; align-items: start; }
}

/* ---------- Contato ---------- */

.contact {
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(196, 91, 255, .18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(226, 150, 58, .2), transparent 70%),
    var(--couro);
  border-top: 1px solid var(--linha);
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 1.5rem + 7vw, 8rem);
  line-height: .88;
  max-width: 14ch;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}
.contact__text { max-width: 36rem; margin: 0 auto 2rem; color: var(--osso-2); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.contact__mail {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  font-style: italic;
  color: var(--ambar-2);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.contact__address { margin-top: 2.5rem; font-style: normal; color: var(--osso-3); font-size: .95rem; }

/* ---------- Rodapé ---------- */

.footer {
  display: grid;
  gap: .4rem;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--linha);
  font-size: .88rem;
  color: var(--osso-3);
  text-align: center;
}

/* Ecossistema: três frentes lado a lado */
.eco {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.eco__item {
  display: grid;
  align-content: start;
  gap: .6rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--couro-2);
  border-top: 3px solid var(--ambar);
}
.eco__item:nth-child(3) { border-top-color: var(--neon); }
.eco__item h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  line-height: .95;
}
.eco__item p { color: var(--osso-2); }
.eco__item a { color: var(--ambar-2); text-underline-offset: .2em; justify-self: start; }
@media (min-width: 56em) { .eco { grid-template-columns: repeat(3, 1fr); } }

.ideas__list li p { font-style: italic; font-size: 1.15rem; color: var(--osso); }
.ideas__source { margin-top: 2.5rem; font-size: .92rem; color: var(--osso-3); }
.video__meta { font-size: .92rem; color: var(--osso-3); }
.talks__cta { margin-top: 1.75rem; }

/* ================================================================
   Animações (ativadas só quando o JS está rodando: html.js)
   Tudo em transform/opacity/clip-path: compositor, sem reflow.
   ================================================================ */

/* 1. Abertura da capa: a luz acende, MAGOSSO sobe, o Rafa entra, RAFAEL pisca como letreiro. */
.js .hero__light { opacity: 0; transform: scale(.85); }
.js.is-loaded .hero__light { animation: light-on 1.8s var(--ease-out) .1s forwards; }
.js.is-loaded .hero__light::before { animation: breathe 6s ease-in-out 2.2s infinite alternate; } /* 1 × (1→.72) = mesmo brilho de antes */
@keyframes light-on { to { opacity: 1; transform: none; } }
@keyframes breathe { from { opacity: 1; } to { opacity: .72; } }

/* .01 e não 0: o Chrome ignora para o LCP o que pinta pela 1ª vez com opacidade 0 exata e não
   reconsidera depois. Como a foto é o maior elemento, nenhum LCP era reportado. 1% sobre o palco
   escuro é invisível (~2/255). */
.js .hero__cut { opacity: .01; transform: translateY(7%); }
.js.is-loaded .hero__cut.is-ready { animation: fade-up 1.3s var(--ease-out) .75s forwards; } /* .is-ready: foto decodificada (main.js) */

.js .hero__first .ch { opacity: 0; }
.js.is-loaded .hero__first .ch { animation: neon-on 1s steps(1, end) forwards; animation-delay: calc(1.1s + var(--i) * 90ms); }
@keyframes neon-on {
  0% { opacity: 0; }
  10% { opacity: .7; }
  18% { opacity: .1; }
  30% { opacity: .9; }
  38% { opacity: .3; }
  50%, 100% { opacity: 1; }
}

/* Fora da tela, nada roda. */
.hero.is-off .hero__light, .hero.is-off .hero__light::before { animation-play-state: paused; }

/* 2. MAGOSSO subindo, letra a letra */
.js .hero__last .ch {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
}
.js .hero__last { overflow: hidden; padding-bottom: .04em; }
.js .hero__first .ch { display: inline-block; }
.js.is-loaded .hero__last .ch {
  animation: rise .9s var(--ease-out) forwards;
  animation-delay: calc(.3s + var(--i) * 45ms); /* --i conta a partir de 0 em cada linha */
}
@keyframes rise { to { transform: none; opacity: 1; } }

.js .hero__kicker, .js .hero__lede, .js .hero__actions { opacity: 0; transform: translateY(12px); }
/* A nav só esmaece: qualquer transform que sobre nela (mesmo translateY(0) do fill da animação)
   vira bloco de contenção do menu mobile fixo, que ficava com 112 px de altura. */
.js .nav { opacity: 0; }
.js.is-loaded .hero__kicker { animation: fade-up .8s var(--ease-out) 1.35s forwards; }
.js.is-loaded .hero__lede { animation: fade-up .8s var(--ease-out) 1.45s forwards; }
.js.is-loaded .hero__actions { animation: fade-up .8s var(--ease-out) 1.6s forwards; }
.js.is-loaded .nav { animation: fade-in .8s var(--ease-out) 1.7s forwards; }
.js .nav:focus-within { animation: none; opacity: 1; } /* teclado: o menu aparece na hora, sem links invisíveis */
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* 3. Escalação do cartaz: cada linha entra como luz de palco */
.js .lineup .act {
  opacity: 0;
  transform: translateY(.3em) scale(.97);
  filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .lineup.is-in .act { opacity: 1; transform: none; filter: none; }

/* 4. Setlist: o marcador escreve cada linha.
   Antes: clip-path inset(0 100% 0 0) → inset(0 -5% 0 0), não composto (travava a 1ª rolagem).
   Agora: janela .ink (recorta) sai de -100% e o conteúdo .ink__in sai de +100%; os dois chegam a 0
   juntos, então o texto fica parado e é descoberto da esquerda para a direita, como antes. A janela
   passa 1rem da direita (a folga de -5% do recorte antigo, para a tinta do último traço). */
.js .setlist .ink, .js .setlist .ink__in {
  display: block;
  transition: transform .7s var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.js .setlist .ink { margin-right: -1rem; overflow: hidden; overflow: clip; transform: translateX(-100%); }
.js .setlist .ink__in { padding-right: 1rem; transform: translateX(100%); }
.js .setlist__songs li.is-inked .ink { margin-left: -2.2rem; } /* a janela começa na borda do li (o número) */
.js .setlist__songs .ink__in { position: relative; padding-left: 2.2rem; }
.js .setlist.is-in .ink, .js .setlist.is-in .ink__in { transform: none; }

/* 5. Fotos revelando como cortina (de cima para baixo), com a mesma técnica de janela: .reveal é
   criada pelo JS em volta da <img>. Nada é pintado por cima, então vale para o PNG com transparência. */
.js .reveal { display: block; overflow: hidden; overflow: clip; transform: translateY(-100%); pointer-events: none; }
.js .reveal > picture { display: block; } /* transform não vale em elemento inline */
.js .reveal > * { transform: translateY(100%); }
.js .reveal, .js .reveal > * { transition: transform 1.1s var(--ease-in-out); }
.js .reveal.is-in { pointer-events: auto; }
.js .reveal.is-in, .js .reveal.is-in > * { transform: none; }

/* 6. Discos de ouro girando quando aparecem e no hover */
.js .award__disc { transform: rotate(-120deg); transition: transform 2.2s var(--ease-out); }
.js .award.is-in .award__disc { transform: rotate(0deg); }
/* Só com mouse: no toque o :hover "gruda" e o disco girava sem parar. */
@media (hover: hover) and (pointer: fine) {
  .award:hover .award__disc { animation: spin 1.8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Movimento reduzido (e impressão): tudo no estado final, sem animação nenhuma. */
@media (prefers-reduced-motion: reduce), print {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .hero__light, .js .hero__cut, .js .hero__first .ch, .js .hero__last .ch,
  .js .hero__kicker, .js .hero__lede, .js .hero__actions, .js .nav,
  .js .lineup .act { opacity: 1; transform: none; filter: none; }
  .js .reveal, .js .reveal > *, .js .setlist .ink, .js .setlist .ink__in { transform: none; }
  .js .reveal { pointer-events: auto; }
  .js .reveal, .js .setlist .ink { overflow: visible; } /* antes: clip-path none aqui */
  /* Sem animação na capa: antes a duração ia a .01ms, mas os atrasos (até 1,7 s) continuavam e o
     letreiro podia "piscar" um quadro no estado inicial ao disparar. */
  .js .hero__light, .js .hero__light::before, .js .hero__cut, .js .hero__first .ch, .js .hero__last .ch,
  .js .hero__kicker, .js .hero__lede, .js .hero__actions, .js .nav, .award__disc { animation: none !important; }
  .js .award__disc { transform: none; } /* o disco ficava a -120° e "pulava" para 0° ao entrar na tela */
}
