:root {
  --bg: #f3f0e8;
  --surface: #faf8f2;
  --surface-hover: #e9e4da;
  --line: #d8d3c9;
  --text: #191919;
  --muted: #6d6a63;
  --orange: #c85d36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
}

.bio-page {
  width: min(100% - 28px, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 64px 0 30px;
  display: flex;
  flex-direction: column;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 40px;
}

.profile-photo {
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.profile-copy {
  min-width: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
}

.profile h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 3.8vw, 1.28rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile h1 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: 0;
}

.profile-subheadline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}

.links {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
}

.profile-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 0 46px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.profile-socials a:hover {
  color: var(--orange);
}

.bio-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 109px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: background-color .14s ease, border-color .14s ease;
}

.bio-card:hover {
  background: var(--surface-hover);
  border-color: var(--muted);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-size: .74rem;
  font-weight: 800;
}

.card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-copy strong {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

.card-copy small {
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.45;
}

.card-arrow {
  color: var(--muted);
  font-size: 1.15rem;
  transition: color .14s ease, transform .14s ease;
}

.bio-card:first-child .card-copy strong,
.bio-card:first-child .card-arrow {
  color: var(--text);
}

.bio-card:hover .card-arrow {
  color: var(--text);
  transform: translateX(2px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-socials {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

.footer-meta small {
  color: var(--muted);
  font-size: .7rem;
}

/* Entrada discreta, sem deslocamento lateral. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

body.is-ready [data-reveal] {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .bio-page {
    width: min(100% - 20px, 500px);
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .profile {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 34px;
  }

  .profile-photo {
    width: 78px;
    height: 78px;
  }

  .profile h1 {
    font-size: 1.02rem;
  }

  .profile-subheadline {
    font-size: .88rem;
  }

  .links {
    gap: 10px;
    margin-bottom: 40px;
  }

  .bio-card {
    grid-template-columns: 34px 1fr auto;
    gap: 11px;
    min-height: 107px;
    padding: 13px 15px;
    border-radius: 9px;
  }

  .card-index {
    width: 34px;
    height: 34px;
    border-radius: 0;
  }

  .card-copy strong {
    font-size: .95rem;
  }

  .card-copy small {
    font-size: .75rem;
  }

  .footer-socials {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  body.is-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Garantia de contraste do tema escuro após os estilos de composição. */
body::before {
  background-image:
    linear-gradient(rgba(200, 93, 54, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 93, 54, .13) 1px, transparent 1px);
}

body::after {
  background: radial-gradient(circle, rgba(200, 93, 54, .2), rgba(200, 93, 54, .06) 38%, transparent 68%);
}

.profile-photo { background: var(--surface); }
.bio-card { background: rgba(33, 31, 29, .94); box-shadow: 0 9px 26px rgba(0, 0, 0, .2); }
.bio-card:first-child { background: #25211e; box-shadow: 0 13px 34px rgba(0, 0, 0, .28), inset 0 0 26px rgba(200, 93, 54, .045); }
.bio-card:hover { background: var(--surface-hover); box-shadow: 0 15px 36px rgba(0, 0, 0, .3); }
.bio-card:first-child:hover { box-shadow: 0 17px 40px rgba(0, 0, 0, .34), inset 0 0 28px rgba(200, 93, 54, .06); }
.card-index { background: rgba(25, 25, 25, .62); }
.bio-card:first-child .card-index { background: rgba(200, 93, 54, .11); }
.bio-card:first-child .card-arrow { background: rgba(200, 93, 54, .1); }
.profile-socials a { background: rgba(33, 31, 29, .86); }
.profile-socials a:hover { background: var(--surface-hover); }

/* Tema escuro METRIVA. */
:root {
  --bg: #191919;
  --surface: #211f1d;
  --surface-hover: #2a2724;
  --line: #403a35;
  --text: #f3f0e8;
  --muted: #aaa49b;
  --orange: #c85d36;
  color-scheme: dark;
}

body { background: var(--bg); }

body::before {
  background-image:
    linear-gradient(rgba(200, 93, 54, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 93, 54, .13) 1px, transparent 1px);
}

body::after {
  background: radial-gradient(circle, rgba(200, 93, 54, .2), rgba(200, 93, 54, .06) 38%, transparent 68%);
}

.profile-photo {
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(200, 93, 54, .09), 0 18px 44px rgba(0, 0, 0, .28);
}

.bio-card {
  background: rgba(33, 31, 29, .94);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .2);
}

.bio-card:first-child {
  background: #25211e;
  box-shadow: 0 13px 34px rgba(0, 0, 0, .28), inset 0 0 26px rgba(200, 93, 54, .045);
}

.bio-card:hover {
  background: var(--surface-hover);
  box-shadow: 0 15px 36px rgba(0, 0, 0, .3);
}

.bio-card:first-child:hover {
  box-shadow: 0 17px 40px rgba(0, 0, 0, .34), inset 0 0 28px rgba(200, 93, 54, .06);
}

.card-index { background: rgba(25, 25, 25, .62); }
.bio-card:first-child .card-index { background: rgba(200, 93, 54, .11); }
.bio-card:first-child .card-arrow { background: rgba(200, 93, 54, .1); }
.profile-socials a { background: rgba(33, 31, 29, .86); }
.profile-socials a:hover { background: var(--surface-hover); }

@media (max-width: 360px) {
  .profile {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
  }

  .profile-photo {
    width: 68px;
    height: 68px;
  }

  .profile h1 {
    font-size: .96rem;
  }

  .profile-subheadline {
    font-size: .8rem;
  }

  .bio-card {
    padding: 12px;
  }
}

/* Composição inspirada na referência, adaptada à identidade METRIVA. */
body {
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0 0 auto;
  height: 620px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 106, 99, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 106, 99, .09) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: -110px;
  left: 50%;
  width: min(760px, 130vw);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 93, 54, .15), rgba(200, 93, 54, .045) 38%, transparent 68%);
}

.bio-page {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 620px);
  padding-top: 72px;
}

.profile {
  gap: 16px;
  margin-bottom: 54px;
}

.profile-photo {
  width: 112px;
  height: 112px;
  padding: 3px;
  border-color: rgba(200, 93, 54, .7);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(200, 93, 54, .08), 0 16px 42px rgba(200, 93, 54, .18);
}

.profile h1 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
}

.profile h1 span {
  margin-top: 6px;
  font-size: .84rem;
}

.links {
  gap: 14px;
  margin-bottom: 36px;
}

.bio-card {
  grid-template-columns: 54px minmax(0, 1fr) 42px;
  gap: 16px;
  min-height: 116px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(250, 248, 242, .92);
  box-shadow: 0 8px 24px rgba(25, 25, 25, .035);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bio-card:first-child {
  border-color: rgba(200, 93, 54, .7);
  background: #faf6ef;
  box-shadow: 0 12px 34px rgba(200, 93, 54, .16), inset 0 0 24px rgba(200, 93, 54, .035);
}

.bio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 93, 54, .55);
  box-shadow: 0 14px 34px rgba(25, 25, 25, .08);
}

.bio-card:first-child:hover {
  box-shadow: 0 16px 38px rgba(200, 93, 54, .22), inset 0 0 24px rgba(200, 93, 54, .05);
}

.bio-card:active {
  transform: translateY(0) scale(.992);
}

.card-index {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(243, 240, 232, .78);
}

.bio-card:first-child .card-index {
  border-color: rgba(200, 93, 54, .45);
  background: rgba(200, 93, 54, .08);
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.08rem;
}

.bio-card:first-child .card-arrow {
  border-color: rgba(200, 93, 54, .48);
  color: var(--orange);
  background: rgba(200, 93, 54, .07);
}

.profile-socials {
  gap: 16px;
  margin-bottom: 52px;
}

.profile-socials a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(250, 248, 242, .78);
  color: var(--text);
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background-color .18s ease;
}

.profile-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 93, 54, .55);
  background: var(--surface);
  color: var(--orange);
}

footer {
  border-top-color: transparent;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

body.is-ready [data-reveal] {
  animation: metriva-enter .52s cubic-bezier(.2, .7, .2, 1) forwards;
}

body.is-ready .links .bio-card:nth-child(1) { animation-delay: .08s; }
body.is-ready .links .bio-card:nth-child(2) { animation-delay: .14s; }
body.is-ready .links .bio-card:nth-child(3) { animation-delay: .2s; }
body.is-ready .profile-socials { animation-delay: .26s; }
body.is-ready footer { animation-delay: .31s; }

@keyframes metriva-enter {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .bio-page {
    width: min(100% - 24px, 500px);
    padding-top: 48px;
  }

  .profile {
    gap: 13px;
    margin-bottom: 42px;
  }

  .profile-photo {
    width: 94px;
    height: 94px;
  }

  .profile h1 {
    font-size: 1.34rem;
  }

  .bio-card {
    grid-template-columns: 48px minmax(0, 1fr) 38px;
    gap: 13px;
    min-height: 108px;
    padding: 14px;
    border-radius: 15px;
  }

  .card-index {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .card-arrow {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  body.is-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Contraste final do tema escuro. */
body::before {
  background-image:
    linear-gradient(rgba(200, 93, 54, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 93, 54, .13) 1px, transparent 1px);
}
body::after { background: radial-gradient(circle, rgba(200, 93, 54, .2), rgba(200, 93, 54, .06) 38%, transparent 68%); }
.profile-photo { background: var(--surface); }
.bio-card { background: rgba(33, 31, 29, .94); box-shadow: 0 9px 26px rgba(0, 0, 0, .2); }
.bio-card:first-child { background: #25211e; box-shadow: 0 13px 34px rgba(0, 0, 0, .28), inset 0 0 26px rgba(200, 93, 54, .045); }
.bio-card:hover { background: var(--surface-hover); box-shadow: 0 15px 36px rgba(0, 0, 0, .3); }
.bio-card:first-child:hover { box-shadow: 0 17px 40px rgba(0, 0, 0, .34), inset 0 0 28px rgba(200, 93, 54, .06); }
.card-index { background: rgba(25, 25, 25, .62); }
.bio-card:first-child .card-index { background: rgba(200, 93, 54, .11); }
.bio-card:first-child .card-arrow { background: rgba(200, 93, 54, .1); }
.profile-socials a { background: rgba(33, 31, 29, .86); }
.profile-socials a:hover { background: var(--surface-hover); }
