@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&display=swap");

/* ============================================================
 * Paleta e tipografia (bloco único)
 * ============================================================ */
.bio-page {
  --bio-bg: #1b191d;
  --bio-bg-rgb: 27, 25, 29;
  --bio-bg-top: #3b3733;
  --bio-bg-mid: #161417;
  --bio-bg-deep: #0e0d0d;
  --bio-bg-deep-rgb: 14, 13, 13;
  --bio-gold: #bd933f;
  --bio-gold-rgb: 189, 147, 63;
  --bio-gold-light: #dfbf75;
  --bio-gold-light-rgb: 223, 191, 117;
  --bio-cream: #fff6e1;
  --bio-cream-rgb: 255, 246, 225;
  --bio-black-rgb: 0, 0, 0;

  --bio-gold-metal: linear-gradient(90deg, #a87c2e 0%, #dfbf75 30%, #f5e2ac 50%, #d6b061 70%, #a87c2e 100%);

  --bio-font: "Sora", var(--bs-font-sans-serif, system-ui, sans-serif);

  --bio-column: 620px;
  --bio-gap: clamp(1rem, 2.4vw, 1.5rem);
}

/* ============================================================
 * Base
 * ============================================================ */
.bio-page {
  /* Camadas: halo dourado atrás da foto, luzes laterais alternadas ao longo
     da página, vinheta nas bordas e base quente que escurece até o rodapé. */
  /* Granulado fino por cima: evita "degraus" visíveis em gradientes escuros. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 900px 520px at 50% 430px, rgba(var(--bio-gold-rgb), .12), rgba(var(--bio-gold-rgb), .04) 45%, transparent 72%),
    radial-gradient(ellipse 1100px 420px at 50% -60px, rgba(var(--bio-cream-rgb), .1), transparent 70%),
    radial-gradient(ellipse 55% 22% at 0% 34%, rgba(var(--bio-gold-rgb), .07), transparent 70%),
    radial-gradient(ellipse 55% 22% at 100% 58%, rgba(var(--bio-gold-rgb), .06), transparent 70%),
    radial-gradient(ellipse 55% 20% at 0% 82%, rgba(var(--bio-gold-rgb), .05), transparent 70%),
    radial-gradient(ellipse 140% 100% at 50% 40%, transparent 55%, rgba(var(--bio-black-rgb), .35) 100%),
    linear-gradient(180deg, var(--bio-bg-top) 0, var(--bio-bg) 640px, var(--bio-bg-mid) 70%, var(--bio-bg-deep) 100%);
  color: var(--bio-cream);
  font-family: var(--bio-font);
  font-weight: 300;
  min-height: 100vh;
  overflow: clip;
}

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

.bio-page img {
  display: block;
  height: auto;
  max-width: 100%;
}

.bio-page h1,
.bio-page h2,
.bio-page p {
  margin: 0;
}

/* ============================================================
 * Topo
 * ============================================================ */
.bio-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem) 16px 0;
  text-align: center;
}

.bio-hero__photo,
.bio-footer__photo {
  /* A arte tem um retângulo escuro atrás da foto: o fade nas 4 bordas o dissolve no fundo */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.bio-hero__photo {
  width: min(100%, 460px);
}

.bio-hero__text {
  margin-top: clamp(-5.5rem, -9vw, -3rem);
  position: relative;
}

.bio-page .bio-hero__name {
  display: flex;
  font-size: 2rem;
  justify-content: center;
  line-height: 1;
}

.bio-hero__name img {
  filter: drop-shadow(0 4px 14px rgba(var(--bio-black-rgb), .55));
  width: min(78vw, 340px);
}

.bio-page .bio-hero__role {
  color: rgba(var(--bio-cream-rgb), .82);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.4;
  margin-top: .9rem;
}

.bio-hero__role strong {
  color: var(--bio-cream);
  font-weight: 500;
}

/* ============================================================
 * Grupos de links
 * ============================================================ */
.bio-links {
  margin-inline: auto;
  max-width: calc(var(--bio-column) + 32px);
  padding: clamp(2.5rem, 6vw, 3.5rem) 16px clamp(3rem, 8vw, 5rem);
}

.bio-group + .bio-group {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.bio-group--continued {
  margin-top: var(--bio-gap) !important;
}

.bio-page .bio-group__title {
  color: var(--bio-gold);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.3;
  margin: 0 auto 1.25rem;
  max-width: 34ch;
  text-align: center;
  text-transform: uppercase;
}

.bio-group__items {
  display: grid;
  gap: var(--bio-gap);
}

.bio-group__items--grid {
  gap: clamp(.5rem, 2vw, 1rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* As artes já trazem a moldura dourada e o botão; o card só dá elevação e hover. */
.bio-card {
  border-radius: 18px;
  color: inherit;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(var(--bio-black-rgb), .35));
  text-decoration: none;
  transition: transform .35s ease, filter .35s ease;
}

.bio-card img {
  width: 100%;
}

.bio-card:hover,
.bio-card:focus-visible {
  filter: drop-shadow(0 16px 30px rgba(var(--bio-black-rgb), .5)) drop-shadow(0 0 18px rgba(var(--bio-gold-rgb), .18));
  transform: translateY(-6px) scale(1.02);
}

.bio-card:focus-visible {
  outline: 2px solid var(--bio-gold-light);
  outline-offset: 4px;
}

/* Fallback sem a arte: card de texto */
.bio-card--text {
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--bio-cream-rgb), .07), rgba(var(--bio-cream-rgb), .02));
  border: 1px solid transparent;
  display: flex;
  font-size: 1rem;
  font-weight: 400;
  gap: 1rem;
  justify-content: space-between;
  min-height: 88px;
  padding: 1.25rem 1.5rem;
}

.bio-card--text:hover {
  border-color: rgba(var(--bio-gold-rgb), .3);
  color: var(--bio-gold-light);
}

.bio-card--text i {
  color: var(--bio-gold);
}

/* ============================================================
 * Rodapé
 * ============================================================ */
.bio-footer {
  background:
    radial-gradient(ellipse 620px 460px at 50% 280px, rgba(var(--bio-gold-rgb), .11), transparent 70%),
    linear-gradient(180deg, transparent 0, rgba(var(--bio-bg-deep-rgb), .9) 260px, var(--bio-bg-deep) 100%);
}

.bio-footer__about {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  max-width: calc(var(--bio-column) + 32px);
  padding: clamp(2.5rem, 6vw, 4rem) 16px clamp(2.5rem, 6vw, 3.5rem);
}

.bio-footer__portrait {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.bio-footer__photo {
  width: min(70vw, 300px);
}

.bio-page .bio-footer__name {
  margin-top: clamp(-4rem, -10vw, -2.5rem);
  position: relative;
}

.bio-footer__name img {
  filter: drop-shadow(0 4px 14px rgba(var(--bio-black-rgb), .55));
  width: min(70vw, 280px);
}

.bio-footer__text {
  margin-top: 2rem;
  max-width: 600px;
}

.bio-page .bio-footer__text p {
  color: rgba(var(--bio-cream-rgb), .78);
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  line-height: 1.75;
}

.bio-page .bio-footer__text p + p {
  margin-top: 1rem;
}

.bio-footer__text strong {
  color: var(--bio-gold-light);
  font-weight: 500;
}

.bio-footer__social {
  display: flex;
  gap: .75rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.bio-footer__social a {
  align-items: center;
  background: rgba(var(--bio-gold-rgb), .1);
  border: 1px solid rgba(var(--bio-gold-rgb), .35);
  border-radius: 50%;
  color: var(--bio-gold-light);
  display: flex;
  font-size: 1.2rem;
  height: 48px;
  justify-content: center;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
  width: 48px;
}

.bio-footer__social a:hover,
.bio-footer__social a:focus-visible {
  background: var(--bio-gold);
  color: var(--bio-bg-deep);
  transform: translateY(-3px);
}

.bio-footer__bar {
  background: linear-gradient(180deg, var(--bio-bg-deep) 0%, #090808 100%);
  padding: 1.25rem 16px;
  text-align: center;
}

.bio-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  justify-content: center;
}

.bio-footer__legal a {
  align-items: center;
  color: var(--bio-gold-light);
  display: inline-flex;
  min-height: 44px;
  text-decoration: underline;
}

.bio-page .bio-footer__bar p {
  color: rgba(var(--bio-cream-rgb), .45);
  font-size: .75rem;
  letter-spacing: .04em;
  line-height: 1.6;
}

/* ============================================================
 * Reveal no scroll
 * ============================================================ */
.bio-page.is-ready [data-bio-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease, filter .35s ease;
}

.bio-page.is-ready [data-bio-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Depois do reveal, o hover do card volta a valer */
.bio-page.is-ready .bio-card.is-visible:hover,
.bio-page.is-ready .bio-card.is-visible:focus-visible {
  transform: translateY(-6px) scale(1.02);
  transition: transform .35s ease, filter .35s ease;
}

/* ============================================================
 * Telas maiores
 * ============================================================ */
@media (min-width: 992px) {
  .bio-hero__photo {
    width: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-page.is-ready [data-bio-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bio-card,
  .bio-footer__social a {
    transition: none;
  }

  .bio-card:hover,
  .bio-page.is-ready .bio-card.is-visible:hover {
    transform: none;
  }
}
