/* ══════════════════════════════════════════════════════════════════════════
   PROHALL CONNECT — página de bio (link na bio)
   Tokens → reset → marquee → perfil → cards → divisores → linha → redes → rodapé
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Cores ── */
  --ph-bg:            #000000;
  --ph-surface:       #0b0b0b;
  --ph-surface-alt:   #0c0c0c;
  --ph-line:          #1f1f1f;
  --ph-line-soft:     #232323;
  --ph-line-strong:   #3d3d3d;
  --ph-line-hover:    #6a6a6a;
  --ph-text:          #f5f5f5;
  --ph-gold:          #f7c948;
  --ph-icon:          #a3a3a3;
  --ph-muted:         #9b9b9b;
  --ph-muted-alt:     #8f8f8f;
  --ph-dim:           #6e6e6e;
  --ph-faint:         #4a4a4a;

  /* ── Tipografia: uma família só, escala de 2 em 2px ── */
  --ph-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ph-fs-2xs: 10px;
  --ph-fs-xs:  12px;
  --ph-fs-sm:  14px;
  --ph-fs-md:  16px;
  --ph-fs-lg:  18px;
  --ph-fs-xl:  20px;
  --ph-fs-2xl: 22px;
  --ph-fs-3xl: 24px;

  --ph-w-regular:  400;
  --ph-w-semibold: 600;

  /* ── Métricas ── */
  --ph-shell:  600px;
  --ph-radius: 22px;
  --ph-ease:   260ms cubic-bezier(0.22, 0.9, 0.3, 1);
  --ph-ease-zoom: 620ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ══════════════ RESET ══════════════ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--ph-font);
  font-size: var(--ph-fs-sm);
  font-weight: var(--ph-w-regular);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

h1, h2 { margin: 0; font-size: inherit; font-weight: inherit; }

/* ══════════════ MARQUEE ══════════════ */

.ph-marquee {
  background: var(--ph-surface-alt);
  border-bottom: 1px solid var(--ph-line);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ph-marquee--bottom {
  margin-top: 28px;
  border-top: 1px solid var(--ph-line);
}

.ph-marquee__track {
  display: inline-flex;
  will-change: transform;
  animation: ph-marquee 28s linear infinite;
}

.ph-marquee--bottom .ph-marquee__track {
  animation-name: ph-marquee-rev;
  animation-duration: 32s;
}

/* Os dois grupos são idênticos; o padding-right substitui o gap final para
   que translateX(-50%) caia exatamente no início da cópia (loop sem salto). */
.ph-marquee__group {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.ph-marquee__item {
  font-size: var(--ph-fs-xs);
  font-weight: var(--ph-w-semibold);
  letter-spacing: 0.16em;
  color: var(--ph-muted-alt);
}

.ph-marquee__item--pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--ph-text);
  color: #000000;
}

@keyframes ph-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes ph-marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ══════════════ SHELL ══════════════ */

.ph-shell {
  max-width: var(--ph-shell);
  margin: 0 auto;
  padding: 34px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* ══════════════ PERFIL ══════════════ */

.ph-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
}

.ph-profile__avatar { position: relative; padding: 2px; }

.ph-profile__glow {
  position: absolute;
  inset: -26px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 245, 245, 0.12) 0%, rgba(245, 245, 245, 0) 68%);
  pointer-events: none;
}

.ph-profile__disc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: var(--ph-bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.ph-profile__logo { width: 70px; height: auto; object-fit: contain; }

/* Canvas quadrado: a arte ocupa só a faixa central, então precisa de mais
   largura para ler dentro do disco. Ver .ph-footer__logo--square. */
.ph-profile__logo--square { width: 84px; }

.ph-profile__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ph-profile__handle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--ph-fs-3xl);
  font-weight: var(--ph-w-semibold);
  letter-spacing: -0.015em;
}

.ph-profile__verified { color: var(--ph-gold); display: inline-flex; }

.ph-profile__bio {
  margin: 0;
  max-width: 400px;
  font-size: var(--ph-fs-md);
  line-height: 1.6;
  color: var(--ph-muted);
  text-align: center;
  text-wrap: pretty;
}

.ph-scroll-hint {
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
  color: var(--ph-faint);
}

/* ══════════════ CARD ══════════════ */

.ph-card {
  position: relative;
  display: block;
  min-height: 230px;
  border-radius: var(--ph-radius);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
  overflow: hidden;
  transition: border-color var(--ph-ease), transform var(--ph-ease), box-shadow var(--ph-ease);
}

.ph-card--featured { border-color: var(--ph-line-strong); }

/* Enquadramento da foto: --img-x/--img-y deslocam em % do card e --img-s
   aproxima, replicando o recorte definido no design. */
.ph-card__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #151515 0%, #080808 100%);
}

.ph-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--img-x, 0), var(--img-y, 0)) scale(var(--img-s, 1));
  transition: transform var(--ph-ease-zoom);
}

/* Marca d'água nos cards que ainda não têm foto. */
.ph-card__ghost {
  position: absolute;
  right: -16px;
  bottom: -22px;
  width: 158px;
  height: 158px;
  color: var(--ph-text);
  opacity: 0.05;
  transition: transform var(--ph-ease-zoom), opacity var(--ph-ease);
}

.ph-card__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 28%,
    rgba(0, 0, 0, 0.16) 52%,
    rgba(0, 0, 0, 0.62) 80%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.ph-card__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 26px;
  max-width: 80%;
  pointer-events: none;
}

.ph-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: var(--ph-fs-2xs);
  font-weight: var(--ph-w-semibold);
  letter-spacing: 0.18em;
  color: var(--ph-icon);
  white-space: nowrap;
}

.ph-card--featured .ph-card__badge {
  color: var(--ph-text);
  border-color: rgba(245, 245, 245, 0.45);
}

.ph-card__title {
  font-size: var(--ph-fs-2xl);
  font-weight: var(--ph-w-semibold);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ph-text);
  text-wrap: balance;
}

.ph-card__cta {
  position: absolute;
  left: 26px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ph-text);
  color: #000000;
  font-size: var(--ph-fs-sm);
  font-weight: var(--ph-w-semibold);
  white-space: nowrap;
  transition: box-shadow var(--ph-ease);
}

.ph-card__cta svg { transition: transform var(--ph-ease); }

/* ══════════════ DIVISOR ══════════════ */

.ph-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px 8px;
}

.ph-divider--wide { padding: 22px 4px 10px; }

.ph-divider__line { flex: 1; height: 1px; background: var(--ph-line); }

.ph-divider__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ph-fs-xs);
  font-weight: var(--ph-w-semibold);
  letter-spacing: 0.22em;
  color: var(--ph-dim);
  white-space: nowrap;
}

/* ══════════════ LINHA (card horizontal) ══════════════ */

.ph-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--ph-radius);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
  overflow: hidden;
  transition: border-color var(--ph-ease), transform var(--ph-ease), box-shadow var(--ph-ease);
}

.ph-row__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--ph-line-soft);
  background: #141414;
  color: var(--ph-icon);
  transition: color var(--ph-ease), border-color var(--ph-ease), transform var(--ph-ease);
}

.ph-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ph-row__kicker {
  font-size: var(--ph-fs-2xs);
  font-weight: var(--ph-w-semibold);
  letter-spacing: 0.2em;
  color: var(--ph-dim);
}

.ph-row__title {
  font-size: var(--ph-fs-xl);
  font-weight: var(--ph-w-semibold);
  letter-spacing: -0.02em;
  color: var(--ph-text);
}

.ph-row__text {
  font-size: var(--ph-fs-xs);
  line-height: 1.5;
  color: var(--ph-muted-alt);
}

.ph-row__arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--ph-text);
  color: #000000;
  transition: transform var(--ph-ease);
}

/* ══════════════ REDES SOCIAIS ══════════════ */

.ph-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
}

.ph-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
  color: var(--ph-muted-alt);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

/* ══════════════ INTERAÇÃO ══════════════
   Hover só onde existe ponteiro de verdade: em touch o :hover "gruda" depois
   do toque e o card ficaria travado no estado ampliado. O feedback de toque
   fica por conta do :active, mais abaixo. */

@media (hover: hover) and (pointer: fine) {

  /* ── Card: sobe, cresce e a foto dá zoom por dentro ── */
  .ph-card:hover {
    border-color: var(--ph-line-hover);
    z-index: 2;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.7);
  }

  .ph-card:hover .ph-card__img {
    transform: translate(var(--img-x, 0), var(--img-y, 0)) scale(calc(var(--img-s, 1) * 1.09));
  }

  .ph-card:hover .ph-card__ghost {
    transform: scale(1.1) rotate(-4deg);
    opacity: 0.09;
  }

  .ph-card:hover .ph-card__cta {
    box-shadow: 0 0 0 5px rgba(245, 245, 245, 0.12);
  }

  .ph-card:hover .ph-card__cta svg { transform: translateX(4px); }

  /* ── Linha do blog ── */
  .ph-row:hover {
    border-color: var(--ph-line-hover);
    z-index: 2;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.7);
  }

  .ph-row:hover .ph-row__icon {
    color: var(--ph-text);
    border-color: var(--ph-line-strong);
    transform: scale(1.08);
  }

  .ph-row:hover .ph-row__arrow { transform: translateX(4px) scale(1.08); }

  /* ── Redes sociais ── */
  .ph-social__link:hover {
    color: #000000;
    background: var(--ph-text);
    border-color: var(--ph-text);
    transform: translateY(-4px) scale(1.1);
  }
}

/* Feedback de toque — vale em qualquer dispositivo. */
.ph-card:active,
.ph-row:active { transform: scale(0.985); transition-duration: 90ms; }

.ph-social__link:active { transform: scale(0.92); transition-duration: 90ms; }

/* ══════════════ RODAPÉ ══════════════ */

.ph-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 24px;
  text-align: center;
}

.ph-footer__logo { width: 124px; height: auto; object-fit: contain; }

/* Logo entregue em canvas quadrado com margem transparente: sem isso o rodapé
   viraria um bloco de 124×124 com o wordmark perdido no meio. O `cover` recorta
   a faixa central — a arte é centralizada na vertical, então o corte é simétrico. */
.ph-footer__logo--square { width: 190px; height: 52px; object-fit: cover; }

.ph-footer__copy { font-size: var(--ph-fs-xs); color: var(--ph-faint); }

/* ══════════════ REVEAL (ativado por prohall-bio.js) ══════════════ */

.ph-js .ph-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.ph-js .ph-reveal.is-visible { opacity: 1; transform: none; }

/* ══════════════ RESPONSIVO ══════════════ */

@media (max-width: 480px) {
  .ph-shell { padding-top: 28px; }
  .ph-profile__disc { width: 92px; height: 92px; }
  .ph-profile__logo { width: 62px; }
  .ph-profile__logo--square { width: 74px; }
  .ph-profile__handle { font-size: var(--ph-fs-2xl); }
  .ph-profile__bio { font-size: var(--ph-fs-sm); }
  .ph-card { min-height: 214px; }
  .ph-card__head { padding: 18px 20px; max-width: 88%; }
  .ph-card__title { font-size: var(--ph-fs-xl); }
  .ph-card__cta { left: 20px; bottom: 16px; padding: 12px 18px; font-size: var(--ph-fs-xs); }
  .ph-row { gap: 14px; padding: 18px; }
  .ph-row__icon { width: 46px; height: 46px; }
  .ph-row__title { font-size: var(--ph-fs-lg); }
  .ph-row__arrow { width: 40px; height: 40px; }
  .ph-social__link { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-marquee__track { animation: none; }

  .ph-card, .ph-row, .ph-social__link,
  .ph-card__img, .ph-card__ghost, .ph-card__cta, .ph-card__cta svg,
  .ph-row__icon, .ph-row__arrow { transition: none; }

  /* Mantém só a resposta de cor/sombra; nada se move. */
  .ph-card:hover, .ph-row:hover, .ph-social__link:hover,
  .ph-card:active, .ph-row:active, .ph-social__link:active,
  .ph-card:hover .ph-card__ghost, .ph-card:hover .ph-card__cta svg,
  .ph-row:hover .ph-row__icon, .ph-row:hover .ph-row__arrow { transform: none; }

  .ph-card:hover .ph-card__img {
    transform: translate(var(--img-x, 0), var(--img-y, 0)) scale(var(--img-s, 1));
  }

  .ph-js .ph-reveal { opacity: 1; transform: none; transition: none; }
}
