/* Piercing Lari, link na bio
   Base preta com vermelho reservado às ações de marcar horário; o dourado vem das joias nas fotos.
   Movimento só responde a ações: toque, abrir e fechar a foto, barra de marcar horário e mapa.
   Nada se move sozinho. Durações e curvas saem dos tokens abaixo. */

:root {
  --gaze: #0a0a0a;
  --gaze-press: #1a1a1a;
  --tinta: #f5f5f5;
  --tinta-suave: #a3a3a3;
  --linha: rgba(255, 255, 255, 0.15);
  --linha-forte: rgba(255, 255, 255, 0.4);
  --marcador: #d90429;
  --marcador-press: #a60320;
  --marcador-veu: rgba(217, 4, 41, 0.15);
  --pele: #1a1214;
  --branco: #FFFFFF;

  --f-voz: "Spectral", Georgia, "Times New Roman", serif;
  --f-texto: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;

  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-marca: 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);
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  --maxw: 480px;
  --barra: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--gaze);
  color-scheme: dark;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, address { margin: 0; }
address { font-style: normal; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; }

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

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pular {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--tinta);
  color: var(--gaze);
  font-weight: 600;
}
.pular:focus { top: calc(12px + var(--safe-top)); }

.pagina {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ------------------------------------------------------------------ abertura */

.close {
  position: relative;
  overflow: hidden;
  background: var(--pele);
}

.close__foto {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}



.abertura__texto { padding: 20px var(--gutter) 0; }

.quem {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quem__foto {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pele);
}

.quem__nome {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

/* O toque ocupa 48 px de altura sem empurrar o texto ao redor. */
.quem__perfil {
  display: inline-block;
  margin: -14px 0;
  padding: 14px 0;
  color: var(--tinta-suave);
  font-size: 15px;
  line-height: 20px;
  touch-action: manipulation;
}

.frase {
  margin-top: 24px;
  font-family: var(--f-voz);
  font-size: clamp(32px, 9.8vw, 40px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.resumo {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--tinta-suave);
}

/* Sem JavaScript o status não existe; com ele, o espaço já está reservado para a linha não empurrar o botão. */
html:not(.js) .status { display: none; }

.status {
  min-height: 21px;
  margin-top: 20px;
  color: var(--tinta-suave);
  font-size: 15px;
  line-height: 21px;
}

.status strong { color: var(--tinta); }

/* ------------------------------------------------------------------ ações */

.acao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--marcador);
  color: var(--branco);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}

.acao .fa-whatsapp { font-size: 22px; }

.acao:active {
  transform: scale(var(--press-scale));
  background: var(--marcador-press);
}

.abertura .acao { margin-top: 12px; }
html:not(.js) .abertura .acao { margin-top: 24px; }

.acao-linha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--marcador);
  color: var(--marcador);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-instant) var(--ease-standard);
}

.acao-linha .fa-whatsapp { font-size: 21px; }

.acao-linha:active {
  transform: scale(var(--press-scale));
  background: var(--marcador-veu);
}

.link-local,
.link-mais {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.link-local {
  justify-content: center;
  margin-top: 6px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--linha-forte);
  text-underline-offset: 5px;
}

.link-mais {
  width: fit-content;
  margin-top: 8px;
}

.link-mais span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--linha-forte);
  text-underline-offset: 5px;
}

.link-mais .fa-instagram { font-size: 18px; }

.link-local:active,
.link-mais:active { opacity: 0.7; }

/* ------------------------------------------------------------------ cenas */

.cena {
  margin-top: 64px;
  padding-inline: var(--gutter);
}

.cena__titulo {
  font-family: var(--f-voz);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cena__texto {
  max-width: 34ch;
  margin-top: 8px;
  color: var(--tinta-suave);
}

/* Piercings: trilho nativo com snap. A próxima foto aparece pela metade para mostrar que continua. */
.trilho {
  margin: 20px calc(-1 * var(--gutter)) 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.trilho::-webkit-scrollbar { display: none; }
.trilho:focus-visible { outline-offset: -3px; }

.trilho__lista {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 var(--gutter) 4px;
}

.trilho__item {
  width: min(68vw, 300px);
  scroll-snap-align: start;
}

.trilho__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--foco, 50% 50%);
  border-radius: 4px;
  background: var(--pele);
}

.trilho__item figcaption {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* Furo humanizado: a temperatura da cor muda para quem chega com um bebê. */
.furo {
  padding-block: 40px;
  background: var(--pele);
}

.furo__corpo {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.furo__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 4px;
  background: var(--gaze);
}

.furo .cena__texto { margin-top: 0; }

/* Joias: par assimétrico, a peça maior primeiro. */
.joias__par {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 20px;
}

.joias__par img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--pele);
}

.joias__par img + img { margin-top: 36px; }

.joias .cena__texto { margin-top: 16px; }

/* ------------------------------------------------------------------ onde fica */

.endereco {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.4;
}

.referencia {
  margin-top: 4px;
  color: var(--tinta-suave);
}

.onde__acoes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 20px;
}

.botao-linha {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--tinta);
  color: var(--tinta);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-instant) var(--ease-standard);
}

.botao-linha[hidden] { display: none; }

.botao-linha:active {
  transform: scale(var(--press-scale));
  background: var(--gaze-press);
}

.mapa {
  position: relative;
  margin-top: 12px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--pele);
}

.mapa[hidden] { display: none; }

.mapa__aviso {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tinta-suave);
  font-size: 15px;
}

.mapa iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity var(--motion-standard) var(--ease-standard);
}

.mapa.is-carregado iframe { opacity: 1; }

.horas__titulo {
  margin-top: 40px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.horas {
  margin-top: 8px;
  border-top: 1px solid var(--linha);
}

.horas__linha {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--linha);
}

.horas dt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.horas dd {
  color: var(--tinta-suave);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.horas__linha.is-hoje dt,
.horas__linha.is-hoje dd {
  color: var(--tinta);
  font-weight: 600;
}

.hoje {
  padding: 0 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--tinta);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

/* ------------------------------------------------------------------ rodapé e barra */

.rodape {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) calc(28px + var(--safe-bottom));
  color: var(--tinta-suave);
  font-size: 14px;
}

/* Com a barra fixa, o fim da página sobe o suficiente para não ficar atrás dela. */
.js .rodape { padding-bottom: calc(28px + var(--barra) + var(--safe-bottom)); }

.barra {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px var(--gutter) calc(10px + var(--safe-bottom));
  background: var(--gaze);
  box-shadow: 0 -1px 0 var(--linha);
  visibility: hidden;
  transform: translateY(110%);
  transition:
    transform var(--motion-standard) var(--ease-exit),
    visibility 0s linear var(--motion-standard);
}

.barra.is-visivel {
  visibility: visible;
  transform: none;
  transition:
    transform var(--motion-emphasis) var(--ease-enter),
    visibility 0s;
}

.barra .acao {
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
}

/* ------------------------------------------------------------------ interação fina */

@media (hover: hover) and (pointer: fine) {
  .acao:hover { background: var(--marcador-press); }
  .acao-linha:hover { background: var(--marcador-veu); }
  .botao-linha:hover { background: var(--gaze-press); }
  .quem__perfil:hover { color: var(--tinta); }
  .link-local:hover,
  .link-mais:hover span { text-decoration-color: var(--tinta); }
  .trilho { scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent; }
  .trilho__lista { padding-bottom: 14px; }
}

/* ------------------------------------------------------------------ larguras */

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .furo__corpo { grid-template-columns: 1fr; }
  .furo__foto { width: 62%; }
}

@media (min-width: 520px) {
  .close {
    margin: calc(32px + var(--safe-top)) var(--gutter) 0;
    border-radius: 6px;
  }
  .trilho__item { width: 280px; }
}

/* ------------------------------------------------------------------ reduced motion
   A barra aparece em fade, sem deslizar. A foto ampliada surge em fade, sem crescer a partir do trilho.
   O toque muda a cor sem encolher. Nenhuma informação depende de movimento. */
@media (prefers-reduced-motion: reduce) {
  :root { --press-scale: 1; }



  .barra {
    opacity: 0;
    transform: none;
    transition:
      opacity var(--motion-standard) var(--ease-standard),
      visibility 0s linear var(--motion-standard);
  }

  .barra.is-visivel {
    opacity: 1;
    transform: none;
    transition:
      opacity var(--motion-standard) var(--ease-standard),
      visibility 0s;
  }

  .mapa iframe { transition: none; }
}

/* Atelier: base preta, vermelho só nas ações de marcar e fotos em arco. Sem brilho, sem autoplay, sem reveal. */
:root { --gaze: #000000; --marcador: #d90429; --marcador-press: #a60320; --maxw: 520px; }
html { scroll-padding-block: 24px 110px; }
body { background: #000000; color: var(--tinta); }
.pagina { background: #000000; }
.close { border-radius: 0 0 48% 8% / 0 0 9% 3%; }
.close::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -30px 40px -35px #000000; }
.abertura__texto { position: relative; padding-top: 24px; }
.quem__foto { width: 54px; height: 54px; padding: 3px; border: 1px solid #e0a6b1; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; color: var(--tinta-suave); margin-bottom: 10px; }
.abertura .eyebrow { margin-top: 26px; }
.frase { margin-top: 0; font-size: clamp(36px, 10vw, 48px); line-height: 1.05; }
.frase em { color: var(--marcador); font-weight: 400; }
.resumo { font-size: 16px; }

/* Um único botão sólido por contexto: abertura, barra e foto ampliada. Nas cenas, contorno com texto branco (21:1). */
.acao { box-shadow: inset 0 1px 0 #ffffff35; min-height: 58px; font-size: 16px; position: relative; overflow: hidden; }
.acao-linha { background: rgba(255, 255, 255, 0.05); color: var(--tinta); font-size: 16px; }
.acao-linha .fa-whatsapp { color: var(--marcador); }

.atalhos { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px var(--gutter) 0; }
.atalhos a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--linha); border-radius: 30px; font-size: 13px; background: rgba(255, 255, 255, 0.08); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-instant) var(--ease-standard); }
.atalhos a:active { transform: scale(var(--press-scale)); background: rgba(255, 255, 255, 0.16); }
.atalhos span { color: var(--marcador); }
.cena { margin-top: 60px; }
.cena__titulo { font-size: 34px; }

/* Trilho: foto em arco. O + mostra que a foto amplia; o zoom curto no toque antecipa a expansão. */
.trilho__item img { border-radius: 100px 100px 14px 14px; transition: transform var(--motion-fast) var(--ease-standard); }
.foto-abrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: 100px 100px 14px 14px; overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.foto-abrir::after { content: "+"; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: #fff; border-radius: 50%; font-size: 24px; line-height: 1; }
.foto-abrir:active img { transform: scale(1.035); }
.trilho__item figcaption { display: flex; justify-content: space-between; padding: 5px 4px; }
.galeria-controles { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.galeria-controles p { color: var(--tinta-suave); font-size: 14px; font-variant-numeric: tabular-nums; }
.galeria-controles button { width: 48px; height: 48px; border: 1px solid var(--linha); border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 18px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-instant) var(--ease-standard); }
.galeria-controles button:active { transform: scale(var(--press-scale)); background: rgba(255, 255, 255, 0.2); }
.galeria-controles button:disabled { opacity: .35; cursor: default; transform: none; }

.furo { border-radius: 32px 6px 32px 6px; background: linear-gradient(125deg, #1f1115, #140b0e); }
.furo__foto { border-radius: 60px 60px 10px 10px; }
.joias__par img { border-radius: 80px 80px 12px 12px; }
.onde { padding-top: 32px; border-top: 1px solid var(--linha); }
.barra { background: rgba(0, 0, 0, 0.96); padding-top: 12px; }

/* Sem JavaScript o mapa não carrega; a rota continua no botão acima. */
html:not(.js) .mapa { display: none; }

/* Foto ampliada. Com View Transitions, a foto tocada cresce até aqui; sem suporte, a caixa sobe um pouco em fade. */
.detalhe { border: 0; border-radius: 24px; padding: 0; background: var(--gaze); color: var(--tinta); width: calc(100% - 24px); max-width: 480px; max-height: 90vh; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain; }
.detalhe::backdrop { background: rgba(0, 0, 0, 0.85); }
.detalhe[open] { animation: detalhe-entra var(--motion-emphasis) var(--ease-enter) both; }
.detalhe[open]::backdrop { animation: detalhe-fade var(--motion-standard) var(--ease-standard) both; }
.is-expandindo .detalhe[open] { animation: none; }
.detalhe-foto { width: 100%; max-height: 57vh; max-height: 57svh; object-fit: contain; background: #111; }
.detalhe-fechar { position: sticky; top: 10px; float: right; margin: 10px 10px -56px 0; z-index: 1; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(20, 20, 20, 0.9); color: #fff; font-size: 28px; cursor: pointer; touch-action: manipulation; }
.detalhe-texto { padding: 24px; }
.detalhe-cta { margin-top: 20px; text-align: center; }
.detalhe-sair { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; border: 0; border-radius: 999px; background: transparent; color: var(--tinta); font-size: 16px; font-weight: 600; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color var(--motion-instant) var(--ease-standard); }
.detalhe-sair:active { background: var(--gaze-press); }
body:has(.detalhe[open]) { overflow: hidden; }
@keyframes detalhe-entra { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes detalhe-fade { from { opacity: 0; } }

/* Elemento compartilhado: miniatura em arco e foto ampliada têm proporções diferentes; o recorte acompanha a troca. */
::view-transition-group(foto-lari) { animation-duration: var(--motion-emphasis); animation-timing-function: var(--ease-emphasis); }
::view-transition-old(foto-lari),
::view-transition-new(foto-lari) { height: 100%; object-fit: cover; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: var(--motion-standard); }

@media (min-width: 520px) { .close { border-radius: 160px 160px 24px 24px; margin-top: 24px; } .pagina { box-shadow: 0 0 90px #37203908; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (hover: hover) and (pointer: fine) {
  .atalhos a:hover,
  .galeria-controles button:not(:disabled):hover { background: rgba(255, 255, 255, 0.16); }
  .detalhe-sair:hover { background: var(--gaze-press); }
}

/* Reduced motion das peças do Atelier: os estados continuam visíveis, sem deslocamento nem escala. */
@media (prefers-reduced-motion: reduce) {
  .foto-abrir:active img { transform: none; }
  .trilho__item img { transition: none; }
  .detalhe[open] { animation-name: detalhe-fade; animation-duration: var(--motion-standard); }
}
