/* ============ Tokens ============ */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .18);
  /* COR DE DESTAQUE — troque só esta linha para mudar todo o amarelo do site.
     Atual: amarelo #F2D91E. Testado e descartado: alaranjado do "BALLET" 250, 180, 17 (#FAB411). */
  --accent-rgb: 242, 217, 30;
  --accent: rgb(var(--accent-rgb));
  --band-h: clamp(300px, 78vh, 920px);   /* mínimo menor: cabe em celular deitado */
  --gutter: clamp(16px, 3vw, 40px);
  /* textura quadriculada fina (retícula) usada sobre as imagens e vídeos.
     É um ladrilho de 3×3px repetido (cópias exatas), sem o acúmulo de erro
     que gradientes repetidos têm em áreas grandes. */
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v1H1v2H0z' fill='%23000' fill-opacity='.32'/%3E%3C/svg%3E");
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; }

/* ============ Moldura esfumaçada ============
   Sombra preta bem suave e transparente nas bordas da tela, fixa durante a rolagem,
   para dar destaque ao conteúdo. Fica abaixo do menu, etiquetas e player. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 15;
  pointer-events: none;
  box-shadow:
    inset 0 0 clamp(60px, 9vw, 140px) clamp(10px, 1.6vw, 24px) rgba(0, 0, 0, .35),
    inset 0 0 22px rgba(0, 0, 0, .2);
}

/* ============ Topbar ============ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: transparent;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);   /* legível sobre qualquer imagem */
  transition: opacity .5s ease;
}
body.player-open .topbar { opacity: 0; pointer-events: none; }
.topbar { animation: top-in 1.2s var(--ease-out) .2s both; }
@keyframes top-in { from { opacity: 0; translate: 0 -16px; } }
.logo {
  position: relative; display: inline-flex; align-items: baseline;
  font-weight: 900; font-stretch: 115%; font-size: 26px; line-height: 1; letter-spacing: -.01em;
}
/* Logo animada: o espaço abre e as letras que faltam saem de trás do "N" e do "A",
   deslizando da esquerda para a direita, uma após a outra, com rastro de movimento
   (motion blur). O movimento das letras é feito no main.js (Web Animations),
   para acelerar e desacelerar de forma orgânica e poder inverter no meio do caminho. */
.logo__k { position: relative; z-index: 1; }
.logo__x {
  display: inline-grid; grid-template-columns: 0fr;
  transition: grid-template-columns .9s cubic-bezier(.45, 0, .15, 1) .4s;   /* fechar: espera as letras recolherem */
}
.logo__x > span { min-width: 0; overflow: hidden; white-space: pre; display: inline-flex; padding: .2em 0; margin: -.2em 0; }
.logo.is-open .logo__x { grid-template-columns: 1fr; transition: grid-template-columns 1s cubic-bezier(.45, 0, .15, 1); }
/* "NANDO" fica amarelo no hover; "ASSIS." continua branco */
.logo__k, .logo .lc { transition: color .6s ease; }
.logo.is-open .logo__k:first-child,
.logo.is-open .logo__k:first-child + .logo__x .lc { color: var(--accent); }
.logo .lc {
  display: inline-block;
  opacity: 0;
  transform: translate3d(var(--x, -1em), 0, 0);   /* repouso: escondida atrás da letra anterior */
}
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--accent); }

/* ============ Faixas ============ */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* desacelera bem no fim: orgânico */
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);  /* cortina: arranca e pousa suave */
}
.bands { display: flex; flex-direction: column; }

.band {
  position: relative; display: block; width: 100%;
  height: var(--band-h);
  overflow: hidden; cursor: pointer; background: #000;
  isolation: isolate;
}
#trabalhos .band:first-child { height: 100vh; height: 100svh; min-height: 320px; }   /* svh: não corta atrás da barra do navegador no celular */

/* Camada 1: parallax (--py) + ênfase pela rolagem (--focus, 1 = imagem principal).
   As vizinhas não somem: ficam até 35% mais apagadas, num degradê contínuo. */
.band__media {
  position: absolute; inset: -9% 0; z-index: -2;
  transform: translate3d(0, var(--py, 0px), 0);
  opacity: calc(.65 + .35 * var(--focus, 0));
  will-change: transform, opacity;
}
/* Fade de entrada só na primeira vez que a imagem aparece */
.band__zoom { opacity: 0; }
.band.is-seen .band__zoom { opacity: 1; }
/* Camada 2: zoom (entrada + hover) */
.band__zoom {
  position: absolute; inset: 0;
  transform: scale(1.16);
  filter: saturate(.85) brightness(.55);
  transition: transform 3s var(--ease-out), filter .8s ease, opacity 2.2s cubic-bezier(.4, 0, .2, 1);
}
.band__zoom img,
.band__zoom video { width: 100%; height: 100%; object-fit: cover; }
.band__zoom video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }

.band.is-in .band__zoom  { transform: scale(1.08); }

.band::after {               /* textura quadriculada (a mesma do "Sobre") + vinheta para o texto respirar */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    var(--grid),
    radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  background-size: 3px 3px, auto;
  background-position: 0 var(--gy, 0px), 0 0;   /* --gy: alinha a retícula aos pixels da tela (JS) */
}

.band__text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
  pointer-events: none;
}

/* Título: só contorno; preenche (--f de 0 a 1) conforme o mouse chega perto (no celular: no centro da tela) */
.band__title {
  font-weight: 900; font-stretch: 112%;
  font-size: calc(clamp(44px, 9.4vw, 176px) * var(--scale, 1));   /* --scale: tamanho extra por filme (main.js) */
  line-height: .9; letter-spacing: -.01em; text-transform: uppercase;
  max-width: 14ch;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .92);
}
.band__title .c {
  color: rgba(var(--accent-rgb), var(--f, 0));
  /* contorno: branco → amarelo conforme o mouse chega perto (--stroke, calculado no JS) */
  -webkit-text-stroke-color: var(--stroke, rgba(255, 255, 255, .92));
}
#trabalhos .band:first-child .band__title { font-size: clamp(44px, 8.4vw, 160px); max-width: 16ch; }

/* Letras e palavras (geradas no JS) */
.w { display: inline-block; white-space: nowrap; }
.c {
  display: inline-block;
  opacity: 0; filter: blur(10px);
  transform: translate3d(0, .45em, 0) rotate(4deg);
  transition: opacity .6s ease, transform .8s ease, filter .6s ease;   /* saída */
}
.is-in .c {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 1.5s var(--ease-out), transform 2s var(--ease-out), filter 1.5s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i) * 60ms);               /* entrada, letra a letra */
}

.band__client {
  margin-top: clamp(6px, .8vw, 12px);
  font-size: clamp(14px, 1.5vw, 22px); font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
}
.band__cat {
  margin-top: clamp(8px, 1vw, 16px);
  font-size: clamp(11px, 1vw, 14px); font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}

/* Hover na faixa (desktop) / faixa no centro da tela (celular) */
.band.is-active .band__zoom { transform: scale(1); filter: saturate(1) brightness(.72); }
.band__zoom video.is-ready { opacity: 1; }   /* loop visível enquanto a faixa está na tela */
html.touch .band__title .c { transition-property: opacity, transform, filter, color, -webkit-text-stroke-color; }
html.touch .band.is-active .band__title .c { --f: 1; --stroke: var(--accent); }

.band:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ============ Surgimento ao rolar ============
   Imagem: fade suave (2s) enquanto o zoom assenta (3s).
   Texto: entra depois, letra por letra, e as linhas pequenas por último.
   Ao sair da tela tudo some, e volta a se montar quando reaparece
   (rolando para baixo ou para cima). */
.reveal {
  opacity: 0; filter: blur(8px);
  transform: translate3d(0, 28px, 0);
  transition: opacity .6s ease, transform .8s ease, filter .6s ease;   /* saída */
}
.is-in .reveal, .reveal.is-in {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out), filter 1.4s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* Linha que se desenha (bordas de seção) */
.rule {
  height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease-curtain);
}
.rule.is-in { transform: scaleX(1); }

/* ============ Sobre ============ */
.about { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 14vw, 200px) var(--gutter); }
/* no computador, as etiquetas ficam na borda direita: o texto mantém distância delas (e a mesma margem à esquerda) */
@media (min-width: 761px) { .about { padding-inline: max(var(--gutter), 76px); } }
/* Vídeo de fundo do "Sobre" (opcional, configurado em ABOUT_VIDEO no main.js) */
.about__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 2s ease; }
.about__bg.is-ready { opacity: 1; }
.about__bg video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55) contrast(1.05); }
.about__bg::after {   /* escurece mais nas bordas e atrás do texto, para o amarelo continuar legível */
  content: ""; position: absolute; inset: 0;
  background:
    var(--grid),
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,.12) 16%, rgba(0,0,0,.12) 84%, #000 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,.05), rgba(0,0,0,.4));
  background-size: 3px 3px, auto, auto;
  background-position: 0 var(--gy, 0px), 0 0, 0 0;
}
.about__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); }   /* coluna de texto mais larga */
.about__lead {
  color: var(--accent);
  font-weight: 900; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 96px); line-height: .92;
}
/* Botões dos dois mundos: abaixo do texto, centralizados na tela */
.worlds {
  display: flex; justify-content: center; gap: clamp(16px, 4vw, 64px);
  margin: clamp(56px, 7vw, 104px) auto 0; max-width: 1180px;
}
.worlds > div { width: min(260px, 50%); }
.world {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 20px 24px; border-radius: 0;
  color: var(--accent);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), transform .7s var(--ease-out), box-shadow .7s var(--ease-out), backdrop-filter .5s ease, -webkit-backdrop-filter .5s ease;
}
.world__icon { width: 66px; height: 66px; margin-bottom: 16px; transition: transform .6s var(--ease-out); }

/* ---- Ícones vivos (loop suave) ---- */
.world__icon svg { overflow: visible; }            /* a haste da claquete pode sair da caixa ao abrir */
.world__icon svg * { transform-box: view-box; }

/* Claquete: flutua girando em 3D; prepara, abre, segura e BATE, com rebote e linhas de impacto */
.ico-clap { animation: clap-turn 10s ease-in-out infinite; }
.clap-arm  { transform-origin: 3px 9px; animation: clap-hit 4.6s infinite; }
.clap-body { transform-origin: 12px 20.5px; animation: clap-bump 4.6s infinite; }
.clap-fx   { transform-origin: 21px 7.4px; opacity: 0; animation: clap-fx 4.6s infinite; }
@keyframes clap-turn {
  0%, 100% { transform: perspective(240px) rotateY(-20deg) rotateX(6deg) translateY(0); }
  25%      { transform: perspective(240px) rotateY(0deg)   rotateX(0deg) translateY(-1.5px); }
  50%      { transform: perspective(240px) rotateY(20deg)  rotateX(-4deg) translateY(0); }
  75%      { transform: perspective(240px) rotateY(0deg)   rotateX(2deg) translateY(-1px); }
}
@keyframes clap-hit {
  0%, 26%   { transform: rotate(0); animation-timing-function: ease-in-out; }
  30%       { transform: rotate(2deg); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }    /* antecipação */
  44%, 55%  { transform: rotate(-30deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); } /* abre e segura */
  60%       { transform: rotate(0); animation-timing-function: cubic-bezier(.2, .8, .4, 1); }       /* bate */
  64%       { transform: rotate(-7deg); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }   /* rebote */
  68%       { transform: rotate(0); animation-timing-function: ease-out; }
  71%       { transform: rotate(-1.5deg); }
  74%, 100% { transform: rotate(0); }
}
@keyframes clap-bump {
  0%, 59.5%, 72%, 100% { transform: none; }
  61%                  { transform: scale(1.04, .94); }
  65%                  { transform: scale(.99, 1.02); }
}
@keyframes clap-fx {
  0%, 59.5% { opacity: 0; transform: scale(.4); }
  61%       { opacity: 1; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.35) translateX(1px); }
}

/* Olho: movimentos rápidos (sacadas) com pausas, pupila que dilata,
   e pálpebra superior que desce de verdade ao piscar (às vezes duas vezes) */
.eye-iris   { animation: eye-look 8s infinite; }
.eye-pupil  { transform-origin: 12px 12px; animation: eye-pupil 8s ease-in-out infinite; }
.eye-lidtop { animation: eye-blink 8s infinite; transform: translateY(-15px); }
.eye-lidbot { animation: eye-blink-bot 8s infinite; transform: translateY(8px); }
@keyframes eye-look {
  0%, 10%   { transform: translate(0, 0); animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  13%, 27%  { transform: translate(-3.4px, -.6px); animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  30%, 36%  { transform: translate(-1.2px, .8px); animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  40%, 56%  { transform: translate(3.4px, -.3px); animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  59%, 66%  { transform: translate(2.2px, 1px); animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  70%, 100% { transform: translate(0, 0); }
}
@keyframes eye-pupil {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.35); }
  75%      { transform: scale(.85); }
}
@keyframes eye-blink {
  /* aberto = pálpebra recolhida acima; fechado = 0 (encontra a de baixo) */
  0%, 7%, 9.6%, 38%, 40.6%, 77%, 79.4%, 80.4%, 82.8%, 100% { transform: translateY(-15px); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  8.2%, 39.2%, 78.3%, 81.6% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
}
@keyframes eye-blink-bot {
  0%, 7%, 9.6%, 38%, 40.6%, 77%, 79.4%, 80.4%, 82.8%, 100% { transform: translateY(8px); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  8.2%, 39.2%, 78.3%, 81.6% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .ico-clap, .clap-arm, .clap-body, .clap-fx, .eye-iris, .eye-pupil, .eye-lidtop, .eye-lidbot { animation: none !important; }
}
.world__icon svg { width: 100%; height: 100%; }
.world__reel { font-size: 11px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; opacity: .75; margin-right: -.42em; }
.world__title { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; }
.world__sub { font-size: 13px; font-weight: 300; opacity: .8; line-height: 1.35; }
/* hover: quadrado preto de vidro jateado (60% de transparência + desfoque do fundo),
   letras e ícone brancos, e o botão cresce suavemente */
.world:hover {
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.world:hover .world__icon { transform: scale(1.08) rotate(-4deg); }
.world:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.about__text, .about__lead { text-shadow: 0 1px 18px rgba(0,0,0,.65); }   /* garante leitura sobre o vídeo */
.about__text p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--accent); font-weight: 300; }
.about__text p + p { margin-top: 1.1em; }
.about__text p { text-align: justify; hyphens: none; -webkit-hyphens: none; }   /* justificado, sem quebrar palavras com hífen no fim da linha */
/* em telas menores a coluna é estreita e o justificado sem hífen abre buracos entre as palavras: alinha à esquerda */
@media (max-width: 1199px) { .about__text p { text-align: left; } }
.about__sign { font-weight: 600 !important; }
.about__method { font-weight: 700; letter-spacing: .04em; }   /* "ENGENHARIA HUMANA" em destaque no texto */

/* ============ Contato ============ */
.contact {
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  text-align: center;
  background: var(--accent);   /* página de contato amarela, texto preto */
  min-height: 44vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.contact__hook {
  color: #000;
  font-weight: 900; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(16px, 2vw, 32px); line-height: 1; letter-spacing: .01em;
  margin-bottom: clamp(14px, 1.8vw, 26px);
}
.contact__mail {
  display: inline-block;
  font-weight: 900; font-stretch: 105%; text-transform: uppercase;
  font-size: clamp(28px, 6.4vw, 120px); line-height: 1;
  color: #000;
  overflow-wrap: anywhere;
}
/* e-mail: só o contorno preto; preenche conforme o mouse se aproxima (--f, no JS) */
.contact__mail .c {
  color: rgba(0, 0, 0, var(--f, 0));
  -webkit-text-stroke: 1.5px #000;
}
/* celular: preenche quando o e-mail chega ao centro da tela */
html.touch .contact__mail .c { transition: opacity .6s ease, transform .8s ease, filter .6s ease, color .6s ease; }
html.touch .contact.is-active .contact__mail .c { --f: 1; }

/* Sobre o amarelo do contato: menu e logo viram preto para continuar legíveis */
.topbar, .logo__k, .logo .lc, .nav a { transition: color .5s ease, opacity .5s ease; }
body.on-yellow .topbar { text-shadow: none; }
body.on-yellow .logo, body.on-yellow .logo__k, body.on-yellow .logo .lc,
body.on-yellow .nav a, body.on-yellow .nav a.is-active { color: #000 !important; }

/* ============ Etiquetas flutuantes (Instagram / Vimeo) ============ */
/* Cada etiqueta tem 12px "escondidos" além da borda da tela (--tuck). No hover,
   só a etiqueta apontada desliza para a esquerda, puxando essa sobra junto, de modo
   que ela continua colada na borda; a outra fica parada. */
.social {
  --tag: 48px; --tuck: 12px;
  position: fixed; right: calc(var(--tuck) * -1); top: 50%; z-index: 30;     /* centralizado na altura da tela */
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end;
  transition: opacity .5s ease;
  animation: tag-in 1s var(--ease-out) 1.6s both;
}
@keyframes tag-in { from { opacity: 0; translate: 60px 0; } }
.social__tag {
  width: calc(var(--tag) + var(--tuck)); height: var(--tag);
  padding-right: var(--tuck);
  display: grid; place-items: center;
  color: #fff;
  background: rgba(225, 37, 27, .4);                 /* vermelho 40% */
  -webkit-backdrop-filter: blur(14px) saturate(160%); /* efeito vidro fosco */
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: 6px 0 0 0;
  transition: transform .6s var(--ease-out), background .4s ease, border-radius .4s ease, box-shadow .6s ease;
}
.social__tag--vimeo { background: rgba(26, 183, 234, .4); border-radius: 0 0 0 6px; }  /* azul Vimeo 40% */
.social__tag:hover {
  transform: translateX(-9px);
  border-radius: 6px 0 0 6px;
  background: rgba(225, 37, 27, .62);
  box-shadow: -6px 4px 18px rgba(0, 0, 0, .35);
}
.social__tag--vimeo:hover { background: rgba(26, 183, 234, .62); }
.social__tag svg { width: 21px; height: 21px; }
body.player-open .social { opacity: 0; pointer-events: none; }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ============ Player ============ */
/* Abre: fundo escurece (80% de preto) em fade, depois o vídeo surge em fade.
   Fecha: tudo some junto em fade out e a página volta ao normal. */
.player {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--gutter) 40px;
  background: rgba(0,0,0,.8);                 /* 80% de preto: esconde o movimento do site por trás */
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease .15s, visibility 0s linear 1.35s;   /* fecha: vídeo some, depois o fundo */
}
.player.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 1.1s ease, visibility 0s;
}
.player__frame,
.player__caption,
.player__close {
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.player.is-open .player__frame,
.player.is-open .player__caption,
.player.is-open .player__close {
  opacity: 1; transform: none;
  transition: opacity 1.3s ease, transform 1.6s var(--ease-out);
  transition-delay: .5s;    /* o vídeo entra depois do escurecimento */
}
.player__frame { width: min(100%, calc((100vh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 120px rgba(0,0,0,.6); }
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__caption { margin-top: 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.player__close {
  position: absolute; top: 8px; right: calc(var(--gutter) - 14px); padding: 14px;
  background: none; border: 0; color: var(--fg); cursor: pointer;
  font: 500 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.player__close:hover { color: var(--accent); }

/* ============ Responsivo ============ */
/* telas baixas (celular deitado): player com margens menores para o vídeo ficar maior */
@media (max-height: 500px) {
  .player { padding: 40px var(--gutter) 12px; }
  .player__frame { width: min(100%, calc((100vh - 84px) * 16 / 9)); }
  .player__caption { margin-top: 8px; font-size: 11px; }
  .player__close { top: 0; }
}
@media (max-width: 760px) {
  :root { --band-h: 72vh; }
  .topbar { gap: 16px; }
  .logo { font-size: 22px; }
  .social { top: auto; bottom: 64px; transform: none; }
  .social { --tag: 42px; }
  .social__tag svg { width: 18px; height: 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: 10px; letter-spacing: .06em; }
  .band__title,
  #trabalhos .band:first-child .band__title {
    font-stretch: 100%; font-size: calc(clamp(30px, 10.5vw, 64px) * var(--scale, 1));
    -webkit-text-stroke-width: 1px; overflow-wrap: anywhere;
  }
  .about__inner { grid-template-columns: 1fr; }
  .worlds { gap: 8px; }
  .worlds > div { width: calc(50% - 4px); }
  .contact__mail { font-size: clamp(20px, 6.2vw, 40px); }
  .contact__mail .c { -webkit-text-stroke-width: 1px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__media, .band__zoom, .c, .reveal, .rule, .band::after, .topbar, .social {
    transition: none !important; animation: none !important;
    clip-path: none !important; filter: none; transform: none !important; opacity: 1 !important;
  }
  .band__zoom { filter: saturate(.85) brightness(.55); }
}
