/* ===========================
   RESET & TOKENS
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:            #000000;
  --text:          #ECECEC;
  --text-muted:    #666666;
  --accent:        #FFFFFF;
  --border:        rgba(255, 255, 255, 0.07);
  --font:          'Space Grotesk', sans-serif;

  /* Logo sizes */
  --logo-home-w:   min(480px, 40vw);
  --logo-page-w:   110px;

  /* Logo page position */
  --logo-page-top: 36px;
  --logo-page-left: 40px;

  /* Nav */
  --nav-right: 48px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.72s;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ===========================
   BACKGROUND LAYER
   (cor / gradiente / imagem / vídeo)
=========================== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #000;
  overflow: hidden;
}

.site-bg-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.site-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.site-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ===========================
   LOGO — HOME (grande, centro)
=========================== */
.logo-home {
  position: fixed;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 32vw;
  max-width: 460px;
  min-width: 260px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.logo-home.hidden {
  opacity: 0;
}

.logo-home video,
.logo-home img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================
   LOGO — PAGE (pequeno, canto)
=========================== */
.logo-page {
  position: fixed;
  top: var(--logo-page-top);
  left: var(--logo-page-left);
  z-index: 100;
  width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.logo-page.visible {
  opacity: 1;
  pointer-events: auto;
}

.logo-page a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.logo-page video,
.logo-page img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================
   NAVIGATION
=========================== */
.main-nav {
  position: fixed;
  right: var(--nav-right);
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

/* ===========================
   LANGUAGE SWITCHER
=========================== */
.lang-switcher {
  position: fixed;
  top: 40px;
  right: var(--nav-right);
  z-index: 111;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.4;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.3s ease;
  line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--accent);
}

.lang-wa {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.4;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.lang-wa:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.lang-wa img {
  display: block;
  width: var(--wa-size, 18px);
  height: var(--wa-size, 18px);
}

/* ===========================
   MAIN CONTENT
=========================== */
#mainContent {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===========================
   PAGE SECTIONS
=========================== */
.page-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease 0.1s, visibility 0.45s ease 0.1s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
}

.page-section.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.section-inner {
  /* left padding to clear the logo at top-left, right for the nav */
  padding: 100px calc(var(--nav-right) + 140px) 80px 40px;
  padding-left: max(40px, calc(var(--logo-page-left) + var(--logo-page-w) + 40px));
  width: 100%;
  max-width: 1000px;
  /* Todo título começa no topo (uniforme entre as páginas); conteúdo alto rola
     a partir do topo. Sem centralização vertical. */
  margin-top: 0;
  margin-bottom: auto;
}

.section-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 48px;
}

/* ===========================
   BLOCK ELEMENTS
=========================== */
.section-inner p,
.section-inner .block-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 580px;
  line-height: 1.9;
}

.section-inner blockquote {
  margin-top: 48px;
  margin-bottom: 40px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  max-width: 540px;
}

/* Tagline logo abaixo do título: sem o gap duplo (48px do h1 + 48px do quote) */
.section-inner h1 + blockquote {
  margin-top: -16px;
}

.section-inner h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
  margin-top: 32px;
}

.section-inner h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 12px;
  margin-top: 24px;
}

.section-inner figure {
  margin: 24px 0;
}

.section-inner figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===========================
   SERVIÇOS
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.service-card h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.service-card li:first-child {
  border-top: 1px solid var(--border);
}

/* ===========================
   EQUIPE
=========================== */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.team-member h2 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 6px;
}

.team-member p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Faixas de retrato (layout atual, content.equipe) ──
   Colunas P&B lado a lado; no hover/clique a faixa se expande, a foto ganha
   cor (mesma linguagem do Banco de Vozes) e nome/função/bio sobem de baixo.
   No mobile (bloco lá embaixo) viram bandas horizontais que abrem no toque. */
.section-inner.team-inner {
  max-width: 1340px;
  padding-right: calc(var(--nav-right) + 120px);
}

.team-strip {
  position: relative; /* âncora da ficha do destaque (.tm-detail) */
  display: flex;
  gap: 10px;
  height: clamp(380px, 58vh, 540px);
}

.tm-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b0b0b;
  /* é um <button>: sem isto, tirar o background no mobile faz o iOS pintar o
     visual padrão de botão (painel cinza) + flash de toque */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  /* transform: o JS (tmLayoutOpen) leva o retrato até o último slot do grupo —
     mesma duração/curva do flex, larguras e viagem se movem como uma coisa só */
  transition: flex 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.45s ease;
  z-index: 1;
}

/* O destaque LEVITA por cima dos outros na viagem: camada de cima + sombra
   leve. .tm-lift mantém a elevação na viagem de VOLTA (o JS tira ao pousar). */
.tm-card.tm-lift {
  z-index: 2;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
}

.tm-card.open {
  z-index: 3;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
}

/* Sem anel de foco azul do navegador no clique; teclado ganha um anel sutil */
.tm-card:focus { outline: none; }
.tm-card:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.35); outline-offset: 2px; }

/* Janela que recorta foto+véu (mobile anima a altura dela; desktop = card) */
.tm-media {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.tm-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s ease, transform 1.1s var(--ease);
}

/* Véu inferior pro texto respirar sobre a foto */
.tm-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0) 70%);
  transition: opacity 0.5s ease;
}

/* Nome na vertical (lendo de baixo pra cima) enquanto a faixa está fechada */
.tm-vert {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: opacity 0.35s ease;
}

/* Bloco de texto da faixa aberta. Largura fixa: o texto não reflui durante a
   expansão — vai sendo revelado pelo overflow do card. */
.tm-info {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 300px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.65s var(--ease);
}

.tm-name {
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.25;
}

.tm-role {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.tm-bio {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* Convite discreto no fim do trecho — o clique no card abre o destaque */
.tm-more {
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tm-card:hover .tm-more { color: var(--accent); border-color: rgba(255, 255, 255, 0.6); }

/* Bio completa (filha do card): só existe no MOBILE, colapsando pra baixo da
   foto — no desktop a bio inteira vive na ficha lateral (.tm-detail) */
.tm-bio-full { display: none; }

.tm-card.open .tm-bio-short { display: none; }

/* Um frame sem transição pra soltar o flex inline do fechamento — larguras
   idênticas, troca invisível (com transição dava um tranquinho no fim) */
.team-strip.tm-notrans .tm-card { transition: none; }

/* Ficha do destaque (desktop): filha do STRIP, solta no fundo preto — fora
   da caixinha de qualquer card, no espaço à direita das fotos (left vem do
   JS). Vai de topo a base: texto curto fica centralizado na vertical (margin
   auto do .tm-detail-scroll), texto grande ROLA dentro deste espaço.
   No mobile fica display:none (lá o destaque é o .tm-info com a bio embaixo). */
.tm-detail {
  position: absolute;
  top: 4px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.65s var(--ease);
}

.tm-detail.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto; /* rolagem e seleção do texto */
  transition-delay: 0.22s; /* entra depois que os cards assentaram */
}

.tm-detail-scroll {
  margin: auto 0; /* centraliza quando curto; some quando o texto enche */
  padding: 4px 12px 4px 0;
}

.tm-detail-name {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.2;
}

.tm-detail .tm-role { margin-top: 8px; }

.tm-detail-bio {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

/* Aberto = hover (só onde há mouse) ou .open (clique/toque fixa) */
@media (hover: hover) {
  .tm-card:hover,
  .tm-card:focus-visible { flex: 2.3 1 0; }
  .tm-card:hover .tm-photo,
  .tm-card:focus-visible .tm-photo { filter: grayscale(0); transform: scale(1.02); }
  .tm-card:hover .tm-vert,
  .tm-card:focus-visible .tm-vert { opacity: 0; }
  .tm-card:hover .tm-info,
  .tm-card:focus-visible .tm-info { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }

  /* Card recém-fechado com o mouse ainda em cima (.no-hover, tirado no
     mouseleave): ignora o hover e assenta junto com os outros — sem inchar */
  .tm-card.no-hover:hover { flex: 1 1 0; }
  .tm-card.no-hover:hover .tm-photo { filter: grayscale(1) contrast(1.05); transform: none; }
  .tm-card.no-hover:hover .tm-vert { opacity: 1; }
  .tm-card.no-hover:hover .tm-info { opacity: 0; transform: translateY(18px); transition-delay: 0s; }
}

.tm-card.open .tm-photo { filter: grayscale(0); transform: scale(1.02); }
.tm-card.open .tm-vert { opacity: 0; }

/* Destaque no desktop (strip ganha .has-open): os outros viram lâminas finas
   fixas (nome vertical continua visível; hover não expande, só colore), o
   escolhido vira retrato com largura --tm-selw (calculada no JS) e todos são
   deslocados por translateX. Depois do bloco de hover de propósito:
   estas regras vencem o :hover. */
@media (min-width: 769px) {
  .team-strip.has-open .tm-card:not(.open),
  .team-strip.has-open .tm-card:not(.open):hover,
  .team-strip.has-open .tm-card:not(.open):focus-visible { flex: 0 0 76px; }

  .team-strip.has-open .tm-card.open,
  .team-strip.has-open .tm-card.open:hover,
  .team-strip.has-open .tm-card.open:focus-visible { flex: 0 0 var(--tm-selw, 38%); }

  /* Lâmina fechada com hover: nada de resumo (não cabe), nome vertical fica */
  .team-strip.has-open .tm-card:not(.open):hover .tm-info,
  .team-strip.has-open .tm-card:not(.open):focus-visible .tm-info { opacity: 0; transition-delay: 0s; }
  .team-strip.has-open .tm-card:not(.open):hover .tm-vert,
  .team-strip.has-open .tm-card:not(.open):focus-visible .tm-vert { opacity: 1; }

  /* Retrato em destaque: limpo — sem véu e sem o resumo do hover */
  .tm-card.open .tm-shade { opacity: 0; }
  .tm-card.open .tm-info { opacity: 0; transform: translateY(8px); transition-delay: 0s; }
}

/* ===========================
   CONTATO
=========================== */
.contact-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-style: italic;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  width: fit-content;
}

.contact-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-item:hover::after {
  width: 100%;
}

/* ===========================
   BANCO DE VOZES (página não listada — /#vozes)
=========================== */
/* Grid flexível de retratos: no hover o card cresce e empurra os vizinhos,
   revelando o nome inteiro ao lado da foto (nunca cortado) */
.vox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 16px;
  align-items: flex-start;
}

.vox-card {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 999px;
  /* No desktop o nome é absoluto e os vizinhos são empurrados via transform
     (JS, voxPushRow) — o flex nunca reflui, então ninguém quebra de linha */
  position: relative;
  transition: transform 0.55s var(--ease);
}

.vox-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
  background: #111;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.45s ease, transform 0.4s var(--ease);
}

/* Nome ao lado: fechado tem largura 0; abre deslizando ao lado da foto.
   É position:absolute (fora do fluxo): quem "empurra" os vizinhos é o JS,
   com translateX na mesma medida (--nmw) → mesma cara, zero reflow. */
.vox-name {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: max-width 0.55s var(--ease), opacity 0.4s ease, padding 0.55s var(--ease), color 0.3s ease;
}

/* Hover só onde existe mouse — em touch ele "gruda" e parece seleção presa.
   No desktop o nome surge ao lado; no mobile (abaixo) fica sempre visível. */
@media (hover: hover) {
  .vox-card:hover .vox-photo,
  .vox-card:focus-visible .vox-photo {
    filter: grayscale(0);
  }
  .vox-card:hover .vox-name,
  .vox-card:focus-visible .vox-name {
    /* --nmw = largura real do nome (medida pelo JS) → a revelação do nome e o
       empurrão dos vizinhos percorrem a MESMA distância, em sincronia */
    max-width: var(--nmw, 480px);
    opacity: 1;
    padding: 0 8px 0 16px;
  }
}

/* Card cuja ficha está aberta: a foto do grid some (a "voadora" assume) */
.vox-card.open .vox-photo { opacity: 0; }

/* Foto que voa entre o grid e o destaque (fora de qualquer clip) */
.vox-flyer {
  position: fixed;
  z-index: 200;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 16px 50px rgba(0, 0, 0, 0.55);
}
.vox-flyer[hidden] { display: none; }

/* Painel da ficha: ocupa a linha inteira (flex-basis 100%), colapsável.
   Fechado é display:none — senão criaria uma linha vazia no grid. */
.vox-panel {
  display: none;
  flex-basis: 100%;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.45s ease;
}

.vox-panel.shown { display: block; }

.vox-panel.open {
  max-height: 1600px;
  opacity: 1;
}

/* Estado de medição: aberto e sem transição pra medir o destino da foto */
.vox-panel.measuring {
  display: block;
  max-height: none;
  opacity: 0;
  transition: none;
}

.vox-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 4px 34px;
}

/* Foto em destaque + nome inteiro (topo da ficha) */
.vox-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  margin-bottom: 8px;
}

.vox-feature-photo {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 16px 50px rgba(0, 0, 0, 0.55);
}

.vox-feature-name {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
  max-width: 90%;
}

.vox-playlist {
  width: 100%;
  max-width: 640px;
  margin-top: 24px;
}

/* Volume do player: discreto, acima da playlist, alinhado à direita */
.vox-vol {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: -14px; /* encosta na playlist sem empurrar o resto */
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.vox-vol:hover { opacity: 1; }

.vox-vol-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
}

.vox-vol-icon svg { width: 17px; height: 17px; fill: currentColor; }

/* Sliders: o input é transparente e ALTO (área de toque decente no celular —
   com 2px ninguém acertava); o trilho fino é desenhado no pseudo-elemento e
   o preenchimento vem da var --vv (pintada pelo JS). */
.vox-vol-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 24px;
  background: transparent;
  cursor: pointer;
  outline: none;
  touch-action: none; /* arrastar mexe no slider, não rola a página */
}

.vox-vol-bar::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8) var(--vv, 100%), rgba(255, 255, 255, 0.15) var(--vv, 100%));
}

.vox-vol-bar::-moz-range-track {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8) var(--vv, 100%), rgba(255, 255, 255, 0.15) var(--vv, 100%));
}

.vox-vol-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px; /* centra o pino no trilho de 2px */
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.vox-vol-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.vox-sample {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.vox-sample:first-of-type {
  border-top: 1px solid var(--border);
}

.vs-play {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 2px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.vs-play:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.vox-sample.playing .vs-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  padding-left: 0;
}

.vs-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 240px;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barra de progresso arrastável (mesmo esquema: input alto, trilho fino) */
.vs-bar {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 24px;
  background: transparent;
  cursor: pointer;
  outline: none;
  touch-action: none;
}

.vs-bar::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, #fff var(--vv, 0%), rgba(255, 255, 255, 0.15) var(--vv, 0%));
}

.vs-bar::-moz-range-track {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, #fff var(--vv, 0%), rgba(255, 255, 255, 0.15) var(--vv, 0%));
}

.vs-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vs-bar::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vox-sample:hover .vs-bar::-webkit-slider-thumb,
.vox-sample.playing .vs-bar::-webkit-slider-thumb { opacity: 1; }
.vox-sample:hover .vs-bar::-moz-range-thumb,
.vox-sample.playing .vs-bar::-moz-range-thumb { opacity: 1; }

.vs-time {
  flex: none;
  width: 84px;
  text-align: right;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ===========================
   PULL-TO-REFRESH (mobile)
=========================== */
/* Indicador do arrasto: seta desce acompanhando o dedo e gira até apontar
   pra cima (pronto pra soltar); ao soltar, gira em loop até recarregar */
.ptr {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -44px);
  z-index: 300;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  pointer-events: none;
}

.ptr svg { width: 16px; height: 16px; }

.ptr.ready { color: #fff; }

.ptr.spin svg { animation: ptrSpin 0.7s linear infinite; }

@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ===========================
   MOBILE
=========================== */
/* Véu superior: só existe no mobile */
.edge-veil { display: none; }

@media (max-width: 768px) {
  :root {
    --logo-home-w: 160px;
    --logo-page-w: 84px;
    --logo-page-top: 22px;
    --logo-page-left: 20px;
    --nav-right: 20px;
  }

  /* Logo central um pouco maior em telas pequenas */
  .logo-home {
    width: 64vw;
    min-width: 230px;
  }

  /* Logo do canto obedece às variáveis (o JS não aplica inline no mobile) */
  .logo-page {
    width: var(--logo-page-w);
  }

  /* Véu superior: vidro fosco que esmaece — o conteúdo rola por baixo
     do PT/EN/ES e do logo de canto sem embaralhar */
  .edge-veil {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    z-index: 90; /* abaixo do logo (100) e do seletor de idiomas (111) */
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
  }

  /* Nav vira barra inferior centralizada, sobre vidro fosco que esmaece
     (o blur fica num ::before mascarado pra não borrar os próprios links) */
  .main-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 30px 16px calc(20px + env(safe-area-inset-bottom));
    pointer-events: none;
  }

  .main-nav::before {
    content: '';
    position: absolute;
    inset: -26px 0 0 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
    mask-image: linear-gradient(to top, #000 55%, transparent);
  }

  .nav-item {
    pointer-events: auto;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    padding: 6px 0; /* área de toque maior */
  }

  .nav-item::after {
    bottom: 2px;
  }

  .lang-switcher {
    top: 26px;
    right: 20px;
  }

  .section-inner {
    padding: 108px 22px 130px;
    max-width: none;
  }

  .section-inner h1 {
    margin-bottom: 32px;
  }

  .section-inner h1 + blockquote {
    margin-top: -8px;
  }

  .section-inner blockquote {
    margin-top: 32px;
    margin-bottom: 32px;
    padding-left: 18px;
    font-size: 0.98rem;
  }

  .section-inner p,
  .section-inner .block-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-item {
    font-size: 1rem;
    padding: 4px 0; /* área de toque */
  }

  /* Banco de Vozes no celular: sem hover, o nome fica sempre abaixo da foto
     (inteiro, quebrando linha se preciso — nunca cortado) */
  .vox-grid {
    gap: 22px 14px;
    justify-content: flex-start;
  }

  .vox-card {
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 76px;
  }

  .vox-photo { width: 76px; height: 76px; }

  .vox-name {
    position: static;   /* volta ao fluxo: nome embaixo da foto */
    transform: none;
    max-width: 84px;
    opacity: 0.62;
    padding: 0;
    overflow: visible;
    white-space: normal;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  .vox-card.open .vox-name { opacity: 0; } /* nome fica no destaque */

  .vox-feature-photo { width: 124px; height: 124px; }
  .vox-feature-name { font-size: 1.2rem; }
  .vox-panel-inner { padding: 24px 2px 26px; }

  .vox-sample {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  /* 1ª linha: play + nome (nome ocupa o resto, sem ser comido);
     2ª linha: barra + tempo */
  .vs-name {
    flex: 1 1 calc(100% - 60px);
    max-width: none;
  }
  .vs-bar { flex: 1 1 140px; min-width: 0; }
  .vs-time { width: auto; }

  /* Equipe no celular: bandas horizontais empilhadas (108px — dá pra ver o
     rosto). Toque abre uma por vez: a FOTO cresce pra 330px com nome/função
     no canto esquerdo inferior DENTRO dela, e a bio colapsa pra BAIXO, fora
     da foto (altura do card vem do JS: foto + bio; bio grande rola). */
  .team-strip {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }

  /* Sem caixinha no celular: o card é invisível (sem fundo/borda) — a foto
     é o card, e a bio fica solta no preto da página, como no desktop */
  .tm-card {
    flex: none;
    height: 108px;
    background: none;
    border: none;
    transition: height 0.65s var(--ease);
  }

  /* A JANELA (.tm-media) anima a altura do recorte (108↔330). Dentro dela a
     foto fica fixa em 330px e só desliza (transform, GPU — redimensionar a
     imagem a cada frame era o que travava no celular), e o véu estica com a
     janela: o degradê escuro fica GRUDADO na borda de baixo visível na ida E
     na volta (antes, no fechar, o recorte passava pelo véu e o escuro sumia
     antes da foto terminar de subir). */
  .tm-media {
    bottom: auto;
    height: 108px;
    transition: height 0.65s var(--ease);
  }

  .tm-card.open .tm-media { height: 330px; }

  /* Fechada, -49px reproduz o enquadramento do rosto do crop de 108px */
  .tm-photo {
    bottom: auto;
    height: 330px;
    transform: translateY(-49px);
    object-position: center 22%;
    transition: filter 0.6s ease, transform 0.65s var(--ease);
  }

  /* desce pro lugar (sem o scale(1.02) do desktop, que vazava listra) */
  .tm-card.open .tm-photo { transform: none; }

  /* Véu = inset 0 da janela, gradiente proporcional fundido no preto:
     a borda visível de baixo é sempre escura, em qualquer altura.
     Fechado fica bem leve (só assenta o pé da banda — 100% comia metade da
     foto); abre pra opacidade cheia junto com a expansão (transition da base) */
  .tm-shade {
    opacity: 0.4;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.82) 16%, rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0) 72%);
  }

  .tm-card.open .tm-shade { opacity: 1; }

  /* Nome da banda fechada: sombra própria pra ler sobre a foto */
  .tm-vert { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }

  /* Sombra de elevação é coisa do desktop */
  .tm-card.open { box-shadow: none; }

  /* Nome deitado (banda fechada), à esquerda */
  .tm-vert {
    writing-mode: horizontal-tb;
    left: 20px;
    right: auto;
    bottom: auto;
    top: 54px;
    transform: translateY(-50%);
    letter-spacing: 0.14em;
  }

  /* Aberto: nome + função no canto esquerdo inferior, DENTRO da foto */
  .tm-info {
    left: 18px;
    right: 18px;
    bottom: auto;
    top: 314px;
    transform: translateY(-100%);
    width: auto;
  }

  .tm-card.open .tm-info { opacity: 1; transition-delay: 0.25s; }

  /* Trecho de bio com "Ler mais" é coisa do hover do desktop — no celular
     nunca aparece (condicionado ao .open, ele piscava no fade do fechar) */
  .tm-info .tm-bio,
  .tm-info .tm-bio-short { display: none; }

  /* A ficha lateral do desktop não existe aqui */
  .tm-detail { display: none; }

  /* Bio embaixo da foto, solta no preto da página: respiro maior da foto e
     largura própria (não segue as margens internas dela); grande = rola */
  .tm-bio-full {
    display: block;
    position: absolute;
    top: 358px;
    left: 2px;
    right: 2px;
    bottom: 12px;
    padding-right: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.86rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .tm-card.open .tm-bio-full { opacity: 1; transition-delay: 0.3s; }

  .tm-name { font-size: 1.25rem; }
}
