/* Adam Oliveira — BIO PRIME
   Conceito: a página é uma diluição de tinta. Começa no papel claro do estúdio e
   escurece a cada cena, como o cinza que vira preto na pele, até a tinta pura do fim.
   Ouro (do ⚜️ e do monograma dele) só aparece na ação. */

:root {
  /* diluição: papel → tinta */
  --papel: #E7E6E1;
  --d1: #CFCDC6;
  --d3: #5E5D59;
  --d4: #2A2A28;
  --tinta: #000000;

  --texto-2: #4A4945;      /* secundário sobre papel e d1 */
  --texto-claro: #E7E6E1;  /* sobre d3, d4 e tinta */
  --texto-claro-2: #B4B2AB;/* secundário sobre d4 e tinta */

  --ouro: #C9A24B;
  --ouro-press: #B08A38;
  --ouro-escuro: #7A5C17;  /* ouro legível sobre papel */
  --pele: #ECE2DA;

  --f-display: 'Grenze Gotisch', 'Times New Roman', serif;
  --f-texto: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --raio: 4px;
  --gutter: 16px;
  --maxw: 560px;

  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 450ms;
  --motion-signature: 700ms;

  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);

  --shift: 12px;
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift: 0px;
    --press-scale: 1;
    --motion-scene: 200ms;
    --motion-signature: 0ms;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--d4);
}

body {
  margin: 0;
  background: var(--d4);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video { display: block; max-width: 100%; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

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

.pular {
  position: absolute;
  top: calc(8px + var(--safe-top));
  left: 8px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 700;
  border-radius: var(--raio);
  translate: 0 -200%;
}
.pular:focus { translate: 0 0; }

.marco-scroll {
  position: absolute;
  top: 160px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pagina {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--papel);
  overflow: clip;
}

.titulo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(34px, 10vw, 40px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* ── botões ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--raio);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: scale(var(--press-scale)); }

.btn-principal {
  background: var(--ouro);
  color: var(--tinta);
  min-height: 56px;
  font-size: 17px;
}
.btn-principal:active { background: var(--ouro-press); }
.btn-principal i { font-size: 22px; }

.btn-linha {
  border: 1.5px solid currentColor;
  background: transparent;
}
.btn-linha:active { background: rgb(231 230 225 / 0.1); }

@media (hover: hover) and (pointer: fine) {
  .btn-principal:hover { background: #D6B15C; }
  .btn-linha:hover { background: rgb(231 230 225 / 0.08); }
}

/* ── CENA 1 · abertura (papel) ───────────────────── */
.abertura {
  position: relative;
  padding-bottom: 40px;
}

.abertura-media {
  position: relative;
  height: 76vh;
  height: 76svh;
  min-height: 460px;
  max-height: 780px;
  overflow: hidden;
  background: var(--d1);
}

.abertura-poster,
.cena-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.cena-video {
  opacity: 0;
  transition: opacity var(--motion-scene) var(--ease-standard);
}
.cena-video.is-tocando { opacity: 1; }

/* a foto dissolve no papel, como a sombra acaba na pele */
.abertura-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(231 230 225 / 0) 46%,
    rgb(231 230 225 / 0.55) 70%,
    rgb(231 230 225 / 0.92) 86%,
    var(--papel) 98%
  );
  pointer-events: none;
}

.abertura-perfil {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: var(--gutter);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: rgb(231 230 225 / 0.92);
  color: var(--tinta);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.abertura-perfil:active { transform: scale(var(--press-scale)); }
.abertura-perfil img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.video-pausa {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: var(--gutter);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(231 230 225 / 0.92);
  color: var(--tinta);
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.video-pausa:active { transform: scale(0.94); }

.abertura-conteudo {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(96px, 30vw, 150px));
  padding: 0 var(--gutter);
}

.nome {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(58px, 19vw, 92px);
  line-height: 0.84;
  letter-spacing: -0.01em;
}
.nome-linha { display: block; }

.abertura-oficio {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--texto-2);
  font-size: 18px;
  line-height: 1.45;
}

.ancora {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  -webkit-tap-highlight-color: transparent;
}
.ancora i {
  font-size: 14px;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.ancora:active i { transform: translateY(4px); }

/* entrada: o nome assina por linha, a foto já está lá desde o primeiro paint */
@keyframes assina {
  from { opacity: 0; transform: translateY(0.28em); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .nome-linha {
    animation: assina var(--motion-scene) var(--ease-enter) both;
    animation-delay: 120ms;
  }
  .js .nome-linha + .nome-linha { animation-delay: 200ms; }
  .js .abertura-oficio,
  .js .ancora {
    animation: assina var(--motion-scene) var(--ease-enter) 300ms both;
  }
}

/* ── CENA 2 · ficha (papel) ──────────────────────── */
.ficha {
  padding: 24px var(--gutter) 56px;
}

.ficha-bio {
  max-width: 34ch;
  font-size: 20px;
  line-height: 1.45;
}

.estilos {
  margin-top: 36px;
  padding-left: 16px;
  border-left: 3px solid var(--ouro-escuro);
}
.estilos-intro {
  color: var(--texto-2);
  font-size: 15px;
}
.estilos-lista {
  margin-top: 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.08;
}

.regua {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgb(0 0 0 / 0.2);
}
.regua dt {
  color: var(--texto-2);
  font-size: 13px;
  line-height: 1.3;
}
.regua dd {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

/* ── CENA 3 · trabalhos (diluição 1) ─────────────── */
.trabalhos {
  padding: 56px 0 40px;
  background: var(--d1);
}

.trabalhos-topo {
  padding: 0 var(--gutter);
}
.trabalhos-topo p {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--texto-2);
  font-size: 17px;
}

.trilho {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 66%;
  gap: 12px;
  margin-top: 28px;
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho > li { scroll-snap-align: start; }

.peca {
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.peca-img {
  display: block;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--d3);
  aspect-ratio: 9 / 16;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.peca-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.peca:active .peca-img { transform: scale(var(--press-scale)); }

.peca-texto {
  display: block;
  padding: 12px 2px 0;
}
.peca-titulo {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.05;
}
.peca-local {
  display: block;
  margin-top: 4px;
  color: var(--texto-2);
  font-size: 15px;
}

.trilho-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 0 var(--gutter);
}
.trilho-nav[hidden] { display: none; }

.contador {
  flex: none;
  min-width: 58px;
  color: var(--texto-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.contador b {
  color: var(--tinta);
  font-size: 17px;
}

/* a posição no trilho é a diluição: cada peça é um copinho de tinta mais escuro */
.diluicao {
  display: flex;
  flex: 1;
  gap: 5px;
  align-items: center;
}
.diluicao i {
  flex: 1;
  max-width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 0.28);
  opacity: 0.3;
  transition:
    opacity var(--motion-standard) var(--ease-standard),
    transform var(--motion-standard) var(--ease-emphasis);
}
.diluicao i:nth-child(1) { background: #E7E6E1; }
.diluicao i:nth-child(2) { background: #CAC9C5; }
.diluicao i:nth-child(3) { background: #ADADA9; }
.diluicao i:nth-child(4) { background: #90908D; }
.diluicao i:nth-child(5) { background: #747371; }
.diluicao i:nth-child(6) { background: #575654; }
.diluicao i:nth-child(7) { background: #3A3A38; }
.diluicao i:nth-child(8) { background: #1D1D1C; }
.diluicao i:nth-child(9) { background: #000000; }
.diluicao i.is-feito { opacity: 1; }
.diluicao i.is-atual {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 0 2px var(--d1), 0 0 0 3px var(--tinta);
}

.trilho-setas {
  display: flex;
  flex: none;
  gap: 8px;
}
.seta {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--tinta);
  border-radius: 50%;
  background: transparent;
  color: var(--tinta);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard);
}
.seta:active { transform: scale(0.94); }
.seta:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── CENA 4 · do traço à sombra (diluição 2) ─────── */
.traco {
  padding: 56px var(--gutter) 56px;
  background: var(--d3);
  color: var(--texto-claro);
}
.traco-texto p {
  max-width: 32ch;
  margin-top: 12px;
  font-size: 17px;
}

.traco-quadro { margin-top: 28px; }

.traco-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--raio);
  background: var(--pele);
}
.traco-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* a borda molhada da sombra: um véu escuro e curto que desce junto com o preenchimento */
.traco-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0) calc(100% - 28px), rgb(0 0 0 / 0.22) 100%);
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
}

.traco-sombra {
  clip-path: inset(0 0 0 0);
  transition: opacity var(--motion-standard) var(--ease-standard);
}

@keyframes sombra-desce {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes borda-desce {
  0% { transform: translateY(-100%); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

/* com scroll-driven: a sombra acompanha o dedo e volta se a pessoa sobe.
   Timeline nomeada no quadro: o overflow do .traco-media seria o scroller do view() da imagem. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .traco-quadro { view-timeline: --sombra block; }
    .traco-sombra,
    .traco-media::after {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --sombra;
      animation-range: cover 31% cover 51%;
    }
    .traco-sombra { animation-name: sombra-desce; }
    .traco-media::after { animation-name: borda-desce; }
  }
}

/* sem scroll-driven: a sombra desce uma vez quando metade do quadro aparece (JS) */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .traco-quadro .traco-sombra {
      clip-path: inset(0 0 100% 0);
      transition:
        clip-path var(--motion-signature) var(--ease-emphasis),
        opacity var(--motion-standard) var(--ease-standard);
    }
    .js .traco-quadro.is-sombra .traco-sombra { clip-path: inset(0 0 0 0); }
  }
}

/* "ver só o traço": a pessoa tira a sombra e compara */
.traco-quadro.is-traco .traco-sombra,
.traco-quadro.is-traco .traco-media::after {
  animation: none;
  opacity: 0;
}

.traco-legenda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 15px;
}

.traco-alterna {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(231 230 225 / 0.55);
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}
.traco-alterna:active { transform: scale(var(--press-scale)); }
.traco-alterna[aria-pressed="true"] {
  background: var(--texto-claro);
  color: var(--d3);
  border-color: var(--texto-claro);
}

.traco-ver {
  width: 100%;
  margin-top: 28px;
}

/* ── CENA 5 · ofício (diluição 3) ────────────────── */
.oficio {
  padding: 56px var(--gutter) 64px;
  background: var(--d4);
  color: var(--texto-claro);
}

.servicos {
  margin-top: 24px;
  border-top: 1px solid rgb(231 230 225 / 0.16);
}
.servicos a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  min-height: 76px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(231 230 225 / 0.16);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.servicos a:active { background: rgb(231 230 225 / 0.05); }
.servico-nome {
  grid-column: 1;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.05;
}
.servico-desc {
  grid-column: 1;
  margin-top: 4px;
  color: var(--texto-claro-2);
  font-size: 15px;
  line-height: 1.35;
}
.servico-ver {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(231 230 225 / 0.4);
  border-radius: 50%;
  font-size: 13px;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.servicos a:active .servico-ver { transform: scale(0.92); }

@media (hover: hover) and (pointer: fine) {
  .servicos a:hover .servico-ver { border-color: var(--ouro); color: var(--ouro); }
}

.pedido {
  margin-top: 44px;
  padding: 22px 20px;
  border: 1px solid rgb(231 230 225 / 0.22);
  border-radius: var(--raio);
}
.pedido-titulo {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.pedido-lista {
  margin-top: 12px;
}
.pedido-lista li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--texto-claro-2);
  font-size: 16px;
}
.pedido-lista li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--ouro);
  transform: rotate(45deg);
}

/* ── CENA 6 · tinta pura ─────────────────────────── */
.fim {
  padding: 72px var(--gutter) 40px;
  background: var(--tinta);
  color: var(--texto-claro);
}
.fim-titulo {
  max-width: 13ch;
  text-wrap: balance;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(42px, 13vw, 58px);
  line-height: 0.95;
}
.fim-apoio {
  max-width: 32ch;
  margin-top: 16px;
  color: var(--texto-claro-2);
  font-size: 17px;
}
.btn-final {
  width: 100%;
  margin-top: 28px;
}

.redes { margin-top: 20px; }
.redes a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 4px;
  border-top: 1px solid rgb(231 230 225 / 0.16);
  border-bottom: 1px solid rgb(231 230 225 / 0.16);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.redes a:active { background: rgb(231 230 225 / 0.06); }
.redes i { font-size: 22px; }
.redes-txt {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.3;
}
.redes-sub {
  color: var(--texto-claro-2);
  font-size: 14px;
  font-weight: 400;
}

/* ── rodapé ──────────────────────────────────────── */
.rodape {
  padding: 24px var(--gutter) calc(32px + var(--safe-bottom));
  background: var(--tinta);
  color: #9F9D97;
  font-size: 13px;
  text-align: center;
}

.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;
  color: var(--texto-claro);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--ouro);
  --seal-ring: 0.4 1.4;           /* pontilhado: o sombreado em pontos */
  --seal-font: var(--f-texto);
  flex: none;
  width: 72px;
  height: 72px;
  overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

.credito:active .selo-b2 { rotate: -10deg; }

.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

/* ── CTA flutuante (Regra do CTA) ────────────────── */
.cta-flutuante {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgb(201 162 75 / 0.6);
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.3);
  -webkit-tap-highlight-color: transparent;
  translate: -50% 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-standard) var(--ease-exit),
    translate var(--motion-standard) var(--ease-exit),
    transform var(--motion-fast) var(--ease-standard),
    visibility 0s linear var(--motion-standard);
}
.cta-flutuante i {
  color: var(--ouro);
  font-size: 21px;
}
.cta-flutuante.is-visivel {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--motion-emphasis) var(--ease-enter),
    translate var(--motion-emphasis) var(--ease-enter),
    transform var(--motion-fast) var(--ease-standard),
    visibility 0s;
}
.cta-flutuante:active { transform: scale(var(--press-scale)); }
.cta-flutuante:focus-visible { outline-color: var(--ouro); }

@media (prefers-reduced-motion: reduce) {
  .cta-flutuante,
  .cta-flutuante.is-visivel { translate: -50% 0; }
}

/* ── reveal ──────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--shift));
  transition:
    opacity var(--motion-scene) var(--ease-enter),
    transform var(--motion-scene) var(--ease-enter);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── player ──────────────────────────────────────── */
html:has(.player[open]) { overflow: hidden; }

.player {
  width: 100%;
  max-width: var(--maxw);
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: var(--tinta);
  color: var(--texto-claro);
  overscroll-behavior: contain;
}
.player::backdrop { background: rgb(0 0 0 / 0.86); }

@keyframes player-entra {
  from { opacity: 0; transform: scale(0.98); }
}
@keyframes player-sai {
  to { opacity: 0; transform: scale(0.98); }
}
@keyframes some { to { opacity: 0; } }
@keyframes surge { from { opacity: 0; } }

.player[open] { animation: player-entra var(--motion-emphasis) var(--ease-enter); }
.player[open]::backdrop { animation: surge var(--motion-emphasis) var(--ease-enter); }
.player.is-fechando { animation: player-sai var(--motion-standard) var(--ease-exit) forwards; }
.player.is-fechando::backdrop { animation: some var(--motion-standard) var(--ease-exit) forwards; }

@media (prefers-reduced-motion: reduce) {
  .player[open] { animation-name: surge; }
  .player.is-fechando { animation-name: some; }
}

.player-corpo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: calc(16px + var(--safe-bottom));
}

.player-tela {
  position: relative;
  height: min(62vh, 160vw);
  height: min(62svh, 160vw);
  background: #1C1C1B;
}
.player-video,
.player-foto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1C1C1B;
}
.player-foto[hidden] { display: none; }

.player-estado {
  position: absolute;
  left: 50%;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.72);
  font-size: 14px;
  text-align: center;
  translate: -50% 0;
  opacity: 0;
  transition: opacity var(--motion-standard) var(--ease-standard);
  pointer-events: none;
}
.player[data-estado="carregando"] .player-estado,
.player[data-estado="pausado"] .player-estado,
.player[data-estado="erro"] .player-estado { opacity: 1; }

.player-fechar {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--papel);
  color: var(--tinta);
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.player-fechar:active { transform: scale(0.94); }
.player-fechar:focus-visible { outline-color: var(--papel); }

.player-info {
  padding: 18px var(--gutter) 0;
}
.player-quando {
  color: var(--texto-claro-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.player-titulo {
  margin-top: 4px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}
.player-local {
  margin-top: 6px;
  color: var(--texto-claro-2);
  font-size: 15px;
}

.player-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.player-seta,
.player-som {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgb(231 230 225 / 0.35);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}
.player-seta {
  width: 48px;
  padding: 0;
  border-radius: 50%;
}
.player-som {
  flex: 1;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.player-som[aria-pressed="true"] {
  background: var(--texto-claro);
  color: var(--tinta);
}
.player-som[hidden] { display: none; }
.player-seta:active,
.player-som:active { transform: scale(0.95); }

.player-cta {
  width: 100%;
  margin-top: 14px;
}
.player-ig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 6px;
  color: var(--texto-claro-2);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── telas largas: a coluna vira uma folha sobre a mesa ── */
@media (min-width: 600px) {
  .pagina { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4); }
  .trilho { grid-auto-columns: 46%; }
}
