:root {
  --page-top: #c2e9fb;
  --page-bottom: #88bfff;
  --ink: #25344c;
  --button-border: #f1fbff;
  --panel-width: 680px;
  --content-width: 648px;
  --radius-lg: 32px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 10px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--page-top) 0%, var(--page-bottom) 100%);
  overflow-x: hidden;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 25rem),
    linear-gradient(180deg, var(--page-top) 0%, var(--page-bottom) 100%);
}

.bio-page {
  position: relative;
  width: min(100%, var(--panel-width));
  min-height: 100vh;
  margin: 4rem 0 0;
  padding: 1.6rem 1.6rem 4.8rem;
  background: linear-gradient(180deg, var(--page-top) 0%, var(--page-bottom) 100%);
  border-radius: 1.6rem 1.6rem 0 0;
  box-shadow: 0 2.4rem 8rem rgba(36, 110, 172, 0.22);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 0;
  text-align: center;
}

.profile-image {
  width: 9.6rem;
  height: 9.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.hero h1 {
  width: 100%;
  margin: 0.8rem 0;
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 3.6rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero p {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 2.4rem;
  font-weight: 400;
  letter-spacing: 0;
}

.content {
  display: grid;
  gap: 1.6rem;
  width: 100%;
  margin-top: 1.6rem;
}

.contact-link {
  position: relative;
  width: 100%;
  height: 6.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
  border: 2px solid var(--button-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  transform: translateZ(0);
  transform-origin: center;
  will-change: transform, box-shadow;
  animation: button-heartbeat 1.15s ease-in-out infinite;
}

.heartbeat-ring {
  position: absolute;
  inset: -0.45rem;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  opacity: var(--ring-opacity, 0);
  transform: scale(var(--ring-x, 0.985), var(--ring-y, 0.985));
  transform-origin: center;
  pointer-events: none;
  will-change: transform, opacity;
  animation: ring-burst 1.15s ease-out infinite;
}

.heartbeat-ring-one {
  animation-delay: 0s;
}

.heartbeat-ring-two {
  animation-delay: 0.28s;
}

.contact-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(var(--beat-scale, 1));
  transform-origin: center;
  animation: inner-heartbeat 1.15s ease-in-out infinite;
  will-change: transform;
}

.contact-link img {
  position: absolute;
  left: 0.4rem;
  top: 50%;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
  transform: translateY(-50%) scale(var(--icon-scale, 1));
  animation: icon-heartbeat 1.15s ease-in-out infinite;
  transform-origin: center;
}

.contact-label {
  display: block;
  padding: 0 6rem;
  letter-spacing: 0;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.heartbeat {
  animation: button-heartbeat 1.15s ease-in-out infinite;
}

.heartbeat-delay {
  animation-delay: 0.22s;
}

.image-card {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--button-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.18);
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  margin-top: 3.1rem;
}

.bitly-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  background: #e16535;
  border: 3px solid #ffffff;
  border-radius: 50%;
  font-family: "Lato", system-ui, sans-serif;
}

@keyframes button-heartbeat {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }

  12% {
    transform: scale(1.08);
    box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.42);
  }

  24% {
    transform: scale(0.965);
    box-shadow: 0 0 0 1.3rem rgba(255, 255, 255, 0);
  }

  40% {
    transform: scale(1.055);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.34);
  }

  58% {
    transform: scale(1);
    box-shadow: 0 0 0 1.4rem rgba(255, 255, 255, 0);
  }
}

@keyframes inner-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  12% {
    transform: scale(1.04);
  }

  24% {
    transform: scale(0.985);
  }

  40% {
    transform: scale(1.025);
  }
}

@keyframes ring-burst {
  0% {
    opacity: 0.86;
    transform: scale(0.96, 0.92);
  }

  62% {
    opacity: 0;
    transform: scale(1.1, 1.38);
  }

  100% {
    opacity: 0;
    transform: scale(1.1, 1.38);
  }
}

@keyframes icon-heartbeat {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  10% {
    transform: translateY(-50%) scale(1.18);
  }

  20% {
    transform: translateY(-50%) scale(0.94);
  }

  32% {
    transform: translateY(-50%) scale(1.12);
  }

  44% {
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 720px) {
  .page-shell {
    display: block;
  }

  .bio-page {
    width: 100%;
    margin: 0;
    padding: 1.6rem 1.6rem 4.8rem;
    border-radius: 0;
    box-shadow: none;
  }

  .content {
    margin-top: 1.6rem;
    gap: 1.6rem;
  }

  .contact-link {
    height: 6rem;
    font-size: 1.5rem;
  }
}
