:root {
  --red: #ca0013;
  --cream: #eeebe3;
  --teal: #7bc5c3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--red);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* Photo */
.photo-wrap {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  background: var(--teal);
  box-shadow:
    0 30px 70px -45px rgba(202, 0, 19, 0.35),
    0 12px 28px -18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: 0.05s;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.photo-wrap:hover {
  transform: translateY(-4px) scale(1);
  box-shadow:
    0 50px 110px -50px rgba(202, 0, 19, 0.45),
    0 24px 50px -25px rgba(0, 0, 0, 0.22);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 1.4s var(--ease);
}

.photo-wrap:hover .photo {
  transform: scale(1.04);
}

/* Status dot — small live indicator */
.status-dot {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(238, 235, 227, 0.85);
  opacity: 0;
  animation:
    fadeIn 0.6s var(--ease) 1.1s forwards,
    pulse 2.6s ease-in-out 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(238, 235, 227, 0.85), 0 0 0 0 rgba(123, 197, 195, 0.55); }
  50% { box-shadow: 0 0 0 4px rgba(238, 235, 227, 0.85), 0 0 0 8px rgba(123, 197, 195, 0); }
}

/* Bio */
.bio {
  font-size: clamp(1.15rem, 1.4vw + 0.7rem, 1.45rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--red);
  margin-bottom: 2.25rem;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bio-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.95s var(--ease) forwards;
}

.bio-line:nth-child(1) { animation-delay: 0.32s; }
.bio-line:nth-child(2) { animation-delay: 0.42s; }
.bio-line:nth-child(3) { animation-delay: 0.52s; }

.bio-link {
  color: var(--red);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.14em;
  padding: 0 0.04em 0.04em;
  transition: background-size 0.45s var(--ease), color 0.3s ease;
}

.bio-link:hover {
  background-size: 100% 100%;
  color: var(--red);
}

/* Links list */
.links {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Top line of the list — draws in first */
.links::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  animation: lineDraw 1s var(--ease) 0.45s forwards;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  color: var(--red);
  font-size: clamp(0.95rem, 0.8vw + 0.7rem, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
  transition: padding-left 0.5s var(--ease);
}

/* Each link's bottom line — draws in from the right */
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  animation: lineDraw 1s var(--ease) forwards;
}

.link:nth-of-type(1) { animation-delay: 0.6s; }
.link:nth-of-type(2) { animation-delay: 0.78s; }
.link:nth-of-type(3) { animation-delay: 0.96s; }

.link:nth-of-type(1)::after { animation-delay: 0.7s; }
.link:nth-of-type(2)::after { animation-delay: 0.88s; }
.link:nth-of-type(3)::after { animation-delay: 1.06s; }

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}

.link-label {
  flex-grow: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease), color 0.35s ease;
}

.link:hover {
  padding-left: 0.6rem;
}

.link:hover .link-arrow {
  color: var(--teal);
  transform: translateX(0.5rem);
}

.link:hover .link-icon {
  transform: scale(1.1);
}

@keyframes lineDraw {
  to { transform: scaleX(1); }
}

.link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

.bio-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Animations */
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 520px) {
  body { padding: 1.5rem 1.25rem 2rem; }
  .photo-wrap {
    width: min(100%, 240px);
    border-radius: 20px;
    margin-bottom: 1.5rem;
  }
  .bio { margin-bottom: 1.5rem; }
  .link { padding: 0.85rem 0.15rem; }
}

@media (max-height: 720px) {
  body { padding: 1.5rem 1.5rem; }
  .photo-wrap {
    width: min(100%, 220px);
    margin-bottom: 1.25rem;
  }
  .bio { margin-bottom: 1.5rem; }
  .link { padding: 0.8rem 0.25rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .photo-wrap,
  .bio,
  .bio-line,
  .link,
  .status-dot {
    opacity: 1 !important;
    transform: none !important;
  }
  .links::before,
  .link::after {
    transform: scaleX(1) !important;
  }
}
