/* ============================================================
   HAUNT Studios — dark, minimalista, fotográfico
   A estrutura do estúdio é o argumento. O texto só rotula.
   ============================================================ */

:root {
  --bg: #000;
  --fg: #ededed;
  --dim: rgba(237, 237, 237, .5);
  --faint: rgba(237, 237, 237, .16);
  --red: #e8192c;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --dock-h: 5.5rem;
  --hero-player-h: 5.75rem;
  /* altura da barra fixa que estiver no rodapé da tela; 0 quando não há nenhuma */
  --bottom-bar: 0px;
}

/* só uma barra ocupa o rodapé por vez: a do clipe, ou a dock de áudio, que a
   substitui. A regra da dock vem depois porque ela tem precedência. */
html:has(body.clip-docked) { --bottom-bar: var(--hero-player-h); }
html:has(body.docked) { --bottom-bar: var(--dock-h); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  /* o rodapé usa scroll-snap-align: end. Sem recuar o snapport, o snap encosta
     a borda de baixo dele no fim da tela e a barra fixa o encobre — nem o
     padding do body nem margem no .ft resolvem, porque ficam fora do snap. */
  scroll-padding-bottom: var(--bottom-bar);
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* cada bloco encaixa como uma nova tela durante a rolagem */
main > .frame,
#estrutura > .frame,
main > .plain {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 60;
  background: var(--fg); color: #000; padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; }

/* rótulos técnicos: pequeno, espaçado, discreto */
.tag, .idx, .nav a, .link-cta, .ext a, .ft p, .player-btn-note, .specs dt {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem var(--pad);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.hdr.stuck {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--faint);
}
.mark { display: block; line-height: 0; }
.mark img { width: clamp(88px, 9vw, 124px); height: auto; }
/* na abertura o wordmark já aparece em grande; o do topo só entra depois */
.mark { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.hdr.stuck .mark { opacity: 1; pointer-events: auto; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--dim); transition: color .25s; }
.nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav a:not(:last-child) { display: none; } }

/* ---------- frames fotográficos ---------- */
.frame {
  position: relative;
  height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.frame-media { position: absolute; inset: 0; }
.frame-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72) saturate(.85) contrast(1.05);
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(.16, 1, .3, 1);
}
.frame.seen .frame-media img { transform: scale(1); }
/* legibilidade do texto sobre a foto */
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .12) 18%, transparent 34%),
    linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 34%, rgba(0, 0, 0, .08) 64%);
}

.frame-body {
  position: relative; z-index: 2;
  padding: var(--pad);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 46rem;
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity .9s ease .1s, transform .9s cubic-bezier(.16, 1, .3, 1) .1s;
}
.frame.seen .frame-body { opacity: 1; transform: none; }

.idx, .tag { color: var(--dim); margin-bottom: 1.1rem; }

.frame-body h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 4.4vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.01em;
}

/* especificações: fatos curtos, sem prosa */
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--faint);
}
@media (max-width: 600px) { .specs { grid-template-columns: 1fr; gap: 1.1rem; } }
.specs dt { color: var(--dim); margin-bottom: .35rem; }
.specs dd { font-size: .92rem; }

/* abertura */
.frame-hero .frame-body {
  padding-bottom: calc(var(--hero-player-h) + clamp(1.75rem, 4vh, 2.5rem));
}
/* ---------- clipe em tela cheia ---------- */
/* o iframe é 16:9; esticamos até cobrir a tela e o excesso é cortado */
.yt-stage {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; /* o clique é dos nossos controles, não do YouTube */
  opacity: 0; transition: opacity 1s ease;
  /* clipes variam muito de exposição; sem isto o wordmark branco some.
     O escurecimento pesado saiu daqui e foi para os gradientes de
     .frame-hero::after, que protegem só onde o texto está. */
  filter: brightness(.62) saturate(.85) contrast(1.02);
}
.yt-stage.ready { opacity: 1; }
.yt-stage iframe {
  position: absolute; top: 50%; left: 50%;
  /* cover exato para vídeo 16:9: preenche o viewport sem bordas e sem zoom extra */
  transform: translate(-50%, -50%);
  width: max(100vw, 177.78svh);
  height: max(56.25vw, 100svh);
  border: 0;
}
.frame-hero::after { z-index: 1; }

/* ---------- barra de reprodução do clipe ---------- */
.vctl {
  position: fixed; z-index: 55; inset: auto 0 0;
  min-height: var(--hero-player-h);
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(22rem, 1.5fr) minmax(12rem, 1fr);
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: .8rem var(--pad);
  background: rgba(8, 8, 8, .88);
  border-top: 1px solid rgba(237, 237, 237, .18);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.vctl-meta { min-width: 0; display: grid; }
.vctl-eyebrow {
  color: var(--dim); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: .12rem;
}
.vctl-title {
  font-family: var(--serif); font-size: .98rem; line-height: 1.15; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vctl-artist {
  color: var(--dim); font-size: .61rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem;
}
.vctl-center { min-width: 0; display: grid; gap: .35rem; }
.vctl-transport { display: flex; justify-content: center; align-items: center; gap: .55rem; }
.vctl-icon {
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  color: var(--dim); background: none; border: 0; border-radius: 50%; cursor: pointer;
  transition: color .2s, transform .2s, background .2s;
}
.vctl-icon:hover { color: var(--fg); }
.vctl-icon svg { width: .68rem; height: .68rem; fill: currentColor; }
.vctl-play {
  width: 2.25rem; height: 2.25rem; color: #000; background: var(--fg);
}
.vctl-play:hover { color: #000; background: #fff; transform: scale(1.05); }
.vctl-play svg { width: .72rem; height: .72rem; }
.vctl-progress { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.vctl-time { color: var(--dim); font-size: .59rem; font-variant-numeric: tabular-nums; flex: none; }
.vctl-range {
  --progress: 0%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; background: none; cursor: pointer;
}
.vctl-range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 99px;
  background: linear-gradient(to right, var(--fg) var(--progress), rgba(237, 237, 237, .24) var(--progress));
}
.vctl-range::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(237, 237, 237, .24); }
.vctl-range::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--fg); }
.vctl-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px; margin-top: -3.5px; border-radius: 50%;
  background: var(--fg); opacity: 0; transition: opacity .2s;
}
.vctl-range::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--fg); }
.vctl-range:hover::-webkit-slider-thumb, .vctl-range:focus-visible::-webkit-slider-thumb { opacity: 1; }
.vctl-actions { display: flex; justify-content: flex-end; align-items: center; gap: .7rem; }
.vctl-action {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.25rem; padding: .4rem .6rem;
  color: var(--dim); background: none; border: 0; cursor: pointer; font: inherit;
  transition: color .2s;
}
.vctl-action:hover { color: var(--fg); }
.vctl-action svg { width: .9rem; height: .8rem; fill: currentColor; flex: none; }
.vctl-label { font-size: .59rem; letter-spacing: .16em; text-transform: uppercase; }

/* com som ligado some o X; mudo some a onda */
.vctl-sound .wave { display: none; }
.vctl-sound.on .wave { display: block; }
.vctl-sound.on .mute { display: none; }

/* mudo por bloqueio do navegador: o botão chama atenção até ser clicado */
.vctl-sound.blocked {
  color: var(--red);
  animation: pulsa 2.2s ease-in-out infinite;
}
@keyframes pulsa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 25, 44, .55); }
  50% { box-shadow: 0 0 0 .55rem rgba(232, 25, 44, 0); }
}

@media (max-width: 900px) {
  :root { --hero-player-h: 7.5rem; }
  .vctl {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .4rem 1rem; padding-top: .65rem; padding-bottom: .7rem;
  }
  .vctl-meta { grid-column: 1; grid-row: 1; }
  .vctl-eyebrow { display: none; }
  .vctl-actions { grid-column: 2; grid-row: 1; }
  .vctl-center { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; }
  .vctl-transport { justify-content: flex-start; }
  .vctl-progress { gap: .45rem; }
  .vctl-out .vctl-label, .vctl-sound .vctl-label { display: none; }
  .vctl-action { width: 2rem; padding: 0; justify-content: center; }
}
.hero-mark { line-height: 0; }
.hero-mark img { width: min(100%, 34rem); height: auto; }
.hero-tag {
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  color: var(--fg);
}
.hero-body .link-cta { margin-top: clamp(2rem, 5vh, 3rem); }
.frame-hero .frame-media img { filter: brightness(.68) saturate(.85) contrast(1.02); }
/* A máscara escurece onde o texto está — base e canto esquerdo — e abre no
   meio, para o clipe aparecer. Os passos intermediários existem para a queda
   ser suave: com dois stops a transição vira uma faixa visível. */
.frame-hero::after {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .28) 12%, rgba(0, 0, 0, .08) 26%, transparent 42%),
    linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .66) 18%, rgba(0, 0, 0, .4) 38%, rgba(0, 0, 0, .16) 60%, transparent 80%),
    linear-gradient(to right, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .22) 25%, rgba(0, 0, 0, .06) 50%, transparent 68%);
}

/* ---------- filtro por estilo ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pill {
  font: inherit; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); background: none; cursor: pointer;
  border: 1px solid var(--faint); border-radius: 99px;
  padding: .55rem 1.05rem;
  transition: color .25s, border-color .25s, background .25s;
}
.pill:hover { color: var(--fg); border-color: rgba(237, 237, 237, .45); }
.pill[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }

/* ---------- lista de faixas ---------- */
.tracks { list-style: none; counter-reset: faixa; }
.tracks li { border-top: 1px solid var(--faint); }
.tracks li:last-child { border-bottom: 1px solid var(--faint); }
.track {
  width: 100%; background: none; border: 0; cursor: pointer; color: var(--fg);
  font: inherit; text-align: left;
  display: grid; grid-template-columns: 2rem 3.25rem 1fr auto auto;
  align-items: center; gap: 1.25rem;
  padding: .85rem 0;
  transition: padding-left .3s cubic-bezier(.16, 1, .3, 1), background .25s;
}
.track:hover { padding-left: .85rem; background: rgba(237, 237, 237, .035); }
.track-n {
  color: var(--dim); font-size: .7rem; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.track-cover { width: 3.25rem; height: 3.25rem; object-fit: cover; filter: saturate(.9); }
.track-meta { min-width: 0; }
.track-title {
  display: block;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-artist {
  display: block;
  color: var(--dim); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .2rem;
}
.track-style {
  color: var(--dim); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--faint); border-radius: 99px; padding: .3rem .7rem;
}
.track-dur { color: var(--dim); font-size: .72rem; font-variant-numeric: tabular-nums; }

/* faixa tocando: barra vermelha e título em destaque */
.tracks li[aria-current="true"] .track { background: rgba(237, 237, 237, .05); padding-left: .85rem; }
.tracks li[aria-current="true"] .track-n { color: var(--red); }
.tracks li[aria-current="true"] .track-title { font-style: italic; }

.tracks-note { color: var(--dim); font-size: .78rem; margin-top: 1.5rem; }
.tracks-note a { border-bottom: 1px solid var(--faint); padding-bottom: .1rem; }
.tracks-note a:hover { color: var(--fg); border-color: var(--fg); }

@media (max-width: 720px) {
  .track { grid-template-columns: 1.5rem 2.75rem 1fr auto; gap: .9rem; }
  .track-cover { width: 2.75rem; height: 2.75rem; }
  .track-style { display: none; }
}

/* ---------- dock: barra de reprodução ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--faint);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.dock.up { transform: none; }
.dock-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.4fr) auto auto;
  align-items: center; gap: 1.25rem;
  padding: .85rem var(--pad);
}
.dock-cover { width: 3rem; height: 3rem; object-fit: cover; flex: none; }
.dock-meta { min-width: 0; }
.dock-title {
  font-family: var(--serif); font-size: 1rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock-artist {
  color: var(--dim); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .2rem;
}
.dock-controls { display: flex; align-items: center; gap: .5rem; }
.dock-btn {
  background: none; border: 0; color: var(--dim); cursor: pointer;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  transition: color .2s;
}
.dock-btn:hover { color: var(--fg); }
.dock-btn svg { width: .7rem; height: .7rem; fill: currentColor; }
.dock-play {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--fg); color: var(--fg);
}
.dock-play:hover { background: var(--fg); color: #000; }
.dock-play svg { width: .8rem; height: .8rem; }

.dock-seek { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.dock-time { color: var(--dim); font-size: .66rem; font-variant-numeric: tabular-nums; flex: none; }
.dock-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 12px; background: none; cursor: pointer;
}
.dock-range::-webkit-slider-runnable-track {
  height: 2px; background: var(--faint);
}
.dock-range::-moz-range-track { height: 2px; background: var(--faint); }
.dock-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  margin-top: -3.5px;
}
.dock-range::-moz-range-thumb {
  width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--red);
}
.dock-range::-moz-range-progress { height: 2px; background: var(--red); }

.dock-out {
  color: var(--dim); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--faint); padding-bottom: .15rem; transition: color .2s, border-color .2s;
}
.dock-out:hover { color: var(--fg); border-color: var(--fg); }
.dock-close {
  background: none; border: 0; color: var(--dim); cursor: pointer;
  width: 2rem; height: 2rem; display: grid; place-items: center; transition: color .2s;
}
.dock-close:hover { color: var(--fg); }
.dock-close svg { width: .6rem; height: .6rem; fill: currentColor; }

/* a barra fixa não pode cobrir o fim da página nem as legendas das fotos.
   O padding cria o espaço rolável que o scroll-padding-bottom do html precisa
   para conseguir parar com o rodapé acima da barra. */
body { padding-bottom: var(--bottom-bar); }
body.docked .frame-body { padding-bottom: calc(clamp(2.5rem, 8vh, 5rem) + var(--dock-h)); }
body.docked .frame-hero .frame-body { padding-bottom: calc(var(--hero-player-h) + var(--dock-h) + 1.5rem); }
body.docked .cue { display: none; }

@media (max-width: 900px) {
  .dock-inner { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .9rem; }
  .dock-seek, .dock-out { display: none; }
}
@media (max-width: 520px) {
  .dock-controls .dock-btn:not(.dock-play) { display: none; }
}

.cue {
  position: absolute; z-index: 2; left: 50%; bottom: 2.25rem;
  width: 1px; height: 3.5rem;
  background: linear-gradient(to bottom, transparent, var(--dim));
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0; transform: translateY(-40%); }
  50% { opacity: 1; transform: translateY(0); }
}

/* em telas estreitas o recorte precisa buscar o assunto de cada foto */
@media (max-width: 720px) {
  .cue { display: none; }
  .frame-media img { object-position: 55% 62%; }
  .frame-hero .frame-media img { object-position: 50% 45%; }
}

/* ---------- link CTA ---------- */
.link-cta {
  display: inline-block;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--fg);
  transition: color .25s, border-color .25s, padding-right .25s;
}
.link-cta:hover { color: var(--red); border-color: var(--red); padding-right: .75rem; }

/* ---------- seções sem foto ---------- */
.plain {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
  border-top: 1px solid var(--faint);
}
.plain > * {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.plain.seen > * { opacity: 1; transform: none; }
.plain.seen > :nth-child(2) { transition-delay: .08s; }
.plain.seen > :nth-child(3) { transition-delay: .16s; }
.plain.seen > :nth-child(4) { transition-delay: .24s; }
.plain > .idx { margin-bottom: clamp(2rem, 5vh, 3.25rem); }

/* a lista de trabalhos pode crescer além de uma tela sem cortar conteúdo */
#trabalhos { justify-content: flex-start; }

/* serviços: lista nua */
.svc { list-style: none; }
.svc li { border-top: 1px solid var(--faint); }
.svc li:last-child { border-bottom: 1px solid var(--faint); }
.svc a {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  transition: padding-left .3s cubic-bezier(.16, 1, .3, 1), color .25s;
}
.svc i {
  width: 2.25rem; height: 1px; background: var(--faint); flex: none;
  transition: background .25s, width .3s cubic-bezier(.16, 1, .3, 1);
}
.svc a:hover { padding-left: 1rem; }
.svc a:hover i { background: var(--red); width: 3.5rem; }

/* contato */
.plain-end { text-align: left; padding-bottom: clamp(6rem, 16vh, 10rem); }
.end-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -.015em;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.ext { list-style: none; display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: clamp(3rem, 8vh, 5rem); }
.ext a { color: var(--dim); transition: color .25s; }
.ext a:hover { color: var(--fg); }

/* ---------- footer ---------- */
.ft {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--faint);
  color: var(--dim);
  scroll-snap-align: end;
}
.ft-symbol { width: 22px; height: auto; opacity: .45; flex: none; }
.ft p:first-of-type { margin-right: auto; }
.ft-credit {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-left: .5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--faint);
  color: var(--dim);
  white-space: nowrap;
  transition: color .25s;
}
.ft-credit:hover { color: var(--fg); }
.ft-credit span {
  font-size: .54rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ft-credit img { width: 1.35rem; height: 1.35rem; opacity: .72; transition: opacity .25s; }
.ft-credit strong {
  color: var(--fg);
  font-size: .67rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ft-credit:hover img { opacity: 1; }

/* ============================================================
   RESPONSIVIDADE — celulares, tablets e notebooks
   ============================================================ */

/* respeita notch, ilha dinâmica e barras gestuais sem alterar o grid base */
.hdr,
.frame-body,
.plain,
.ft,
.vctl,
.dock-inner {
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
.vctl { padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
.dock-inner { padding-bottom: max(.85rem, env(safe-area-inset-bottom)); }

/* trabalhos em duas colunas: cabe em uma tela de tablet/MacBook sem comprimir texto */
@media (min-width: 700px) {
  #trabalhos { justify-content: center; }
  .tracks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.75rem, 4vw, 4rem);
  }
  .tracks li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--faint); }
  .tracks .track {
    grid-template-columns: 1.5rem 2.75rem minmax(0, 1fr) auto;
    gap: .8rem;
  }
  .tracks .track-cover { width: 2.75rem; height: 2.75rem; }
  .tracks .track-style { display: none; }
}

/* telas menos altas: preserva o efeito fullscreen com mais densidade */
@media (min-width: 700px) and (max-height: 900px) {
  .plain { padding-top: clamp(3.75rem, 8vh, 5.25rem); padding-bottom: clamp(3.75rem, 8vh, 5.25rem); }
  .plain > .idx { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
  .pills { margin-bottom: 1.25rem; }
  .track { padding-top: .5rem; padding-bottom: .5rem; }
  .tracks-note { margin-top: 1rem; }
  .svc a { padding-top: 1.2rem; padding-bottom: 1.2rem; }
}

/* tablets: barra da hero em duas linhas e navegação mais compacta */
@media (max-width: 900px) {
  .nav { gap: clamp(1rem, 3vw, 1.5rem); }
  .frame-body { max-width: min(44rem, 100%); }
  .hero-mark img { width: min(76vw, 31rem); }
  .specs { gap: 1.25rem 1.75rem; }
}

/* celulares: navegação completa, tipografia e espaçamento pensados para toque */
@media (max-width: 720px) {
  .hdr {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: 1rem;
  }
  .mark { display: none !important; }
  .nav { width: 100%; justify-content: space-between; gap: clamp(.55rem, 3vw, 1rem); }
  .nav a,
  .nav a:not(:last-child) {
    display: block;
    padding: .3rem 0;
    font-size: clamp(.5rem, 2.25vw, .59rem);
    letter-spacing: clamp(.08em, .35vw, .14em);
  }
  .hero-mark img { width: min(70vw, 18rem); }
  .frame-body h2 { font-size: clamp(1.65rem, 8vw, 2.35rem); }
  .specs { margin-top: 1.5rem; padding-top: 1.15rem; gap: .85rem; }
  .specs dt { margin-bottom: .18rem; }
  .specs dd { font-size: .84rem; }
  .plain { padding-top: clamp(4.5rem, 11vh, 6rem); padding-bottom: clamp(4.5rem, 11vh, 6rem); }
  .plain > .idx { margin-bottom: clamp(1.5rem, 4vh, 2.25rem); }
  .svc a { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .ext { gap: 1.25rem 1.75rem; }
  .ft-credit {
    width: 100%;
    margin: .35rem 0 0;
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--faint);
  }
}

/* no celular, Trabalhos continua fullscreen e só a lista rola internamente */
@media (max-width: 699px) {
  #trabalhos {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    padding-top: max(4.75rem, calc(env(safe-area-inset-top) + 4rem));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  #trabalhos .tracks {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: .35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(237, 237, 237, .28) transparent;
    -webkit-overflow-scrolling: touch;
  }
  #trabalhos .tracks::-webkit-scrollbar { width: 3px; }
  #trabalhos .tracks::-webkit-scrollbar-track { background: transparent; }
  #trabalhos .tracks::-webkit-scrollbar-thumb { background: rgba(237, 237, 237, .28); border-radius: 99px; }
  #trabalhos .tracks-note { flex: none; margin-top: 1rem; }
  body.docked #trabalhos { padding-bottom: calc(max(2rem, env(safe-area-inset-bottom)) + var(--dock-h)); }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .hero-mark img { width: min(70vw, 16.5rem); }
  .hero-tag {
    max-width: 19rem;
    font-size: .61rem;
    line-height: 1.7;
    letter-spacing: .14em;
  }
  .hero-body .link-cta { margin-top: clamp(1.4rem, 4vh, 2rem); }
  .frame:not(.frame-hero) .frame-body { padding-bottom: clamp(1.75rem, 5vh, 2.5rem); }
  .vctl-progress { gap: .35rem; }
  .vctl-time { font-size: .54rem; }
  .pills { gap: .4rem; margin-bottom: 1.35rem; }
  .pill { padding-left: .85rem; padding-right: .85rem; }
  .track { gap: .7rem; }
  .track-title { font-size: .98rem; }
  .dock-inner { gap: .7rem; }
  .dock-cover { width: 2.7rem; height: 2.7rem; }
  .dock-title { font-size: .92rem; }
  .ft {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  .ft p:first-of-type { margin-right: 0; }
  .ft p:last-of-type { grid-column: 1 / -1; }
  .ft-credit {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    margin: .35rem 0 0;
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--faint);
  }
}

/* celulares em modo paisagem: uma barra baixa e conteúdo mais enxuto */
@media (max-height: 560px) and (orientation: landscape) {
  :root { --hero-player-h: 4.4rem; }
  .hdr { padding-top: .7rem; padding-bottom: .7rem; }
  .hero-mark img { width: min(42vw, 22rem); }
  .hero-tag { margin-top: .7rem; }
  .hero-body .link-cta { margin-top: .9rem; }
  .frame-hero .frame-body { padding-bottom: calc(var(--hero-player-h) + .8rem); }
  .vctl {
    grid-template-columns: minmax(8rem, 1fr) minmax(15rem, 1.4fr) auto;
    min-height: var(--hero-player-h);
    gap: 1rem;
    padding-top: .4rem;
    padding-bottom: max(.4rem, env(safe-area-inset-bottom));
  }
  .vctl-meta,
  .vctl-center,
  .vctl-actions { grid-column: auto; grid-row: auto; }
  .vctl-eyebrow, .vctl-artist, .vctl-actions .vctl-label { display: none; }
  .vctl-center { display: grid; grid-template-columns: 1fr; gap: .12rem; }
  .vctl-title { font-size: .86rem; }
  .vctl-transport { min-height: 1.8rem; }
  .vctl-progress { gap: .35rem; }
  .vctl-actions { gap: .15rem; }
  .frame:not(.frame-hero) .frame-body { padding-bottom: 1.25rem; }
  .frame-body h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
  .idx { margin-bottom: .55rem; }
  .specs { margin-top: .8rem; padding-top: .75rem; gap: .75rem 1.25rem; }
  .plain { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .plain > .idx { margin-bottom: 1rem; }
  .svc a { padding-top: .7rem; padding-bottom: .7rem; }
  .cue { display: none; }
}

/* alvos confortáveis em telas touch, sem aumentar a interface com mouse */
@media (pointer: coarse) {
  .pill, .vctl-icon, .vctl-action, .dock-btn, .dock-close { min-width: 44px; min-height: 44px; }
  .track { min-height: 64px; }
}

/* o player dos clipes acompanha o visitante pelo site inteiro */
body.docked .vctl {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
body.clip-docked:not(.docked) .frame:not(.frame-hero) .frame-body {
  padding-bottom: calc(clamp(2.5rem, 8vh, 5rem) + var(--hero-player-h));
}
@media (max-width: 699px) {
  body.clip-docked:not(.docked) #trabalhos {
    padding-bottom: calc(max(2rem, env(safe-area-inset-bottom)) + var(--hero-player-h));
  }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame-media img { transform: none; }
  .frame-body { opacity: 1; transform: none; }
  .plain > * { opacity: 1; transform: none; }
  .cue { animation: none; opacity: .5; }
  * { transition-duration: .01ms !important; }
}
