/* Premium profile card — public frontend */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.profile-page {
  overflow-x: hidden;
}

.profile-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 2;
}

/* Bat layer sits behind card */
.bat-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bat-sprite {
  position: absolute;
  width: 24px;
  height: 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.35;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
  will-change: transform;
}

/* Profile card */
.profile-card {
  position: relative;
  width: min(920px, 100%);
  background: var(--card-color);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 25px 80px rgba(0,0,0,0.65),
    0 0 120px rgba(196, 30, 58, 0.08);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.profile-card__inner {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 0;
}

.profile-card__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 1.25rem 0 0 1.25rem;
  background: #0d0d0d;
}

.profile-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.profile-card:hover .profile-card__image {
  transform: scale(1.02);
}

.profile-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 5rem;
  color: var(--accent-color);
  opacity: 0.6;
}

.profile-card__body {
  padding: 2.5rem 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-card__name {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-color);
}

.profile-card__title {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  line-height: 1.5;
}

.profile-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.72);
  max-width: 42ch;
}

.profile-card__desc p {
  margin: 0 0 0.65rem;
}

.profile-card__desc p:last-child {
  margin-bottom: 0;
}

.profile-card__desc strong,
.profile-card__desc b {
  font-weight: 600;
  color: var(--text-color);
}

.profile-card__desc a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 30, 58, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.profile-card__desc a:hover {
  border-bottom-color: var(--accent-color);
}

.profile-card__desc h2 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.profile-card__desc h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.profile-card__desc ul,
.profile-card__desc ol {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.25rem;
}

.profile-card__desc li {
  margin-bottom: 0.25rem;
}

.profile-contact {
  margin: auto 0 0;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-contact__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.profile-contact__row dt {
  margin: 0;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.45);
  letter-spacing: 0.04em;
}

.profile-contact__row dt::after {
  content: " :";
  color: rgba(245, 245, 245, 0.25);
}

.profile-contact__row dd {
  margin: 0;
}

.profile-contact__row a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.profile-contact__row a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.25rem;
}

.profile-social__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.profile-social__link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Mobile: stack image on top */
@media (max-width: 768px) {
  .profile-card__inner {
    grid-template-columns: 1fr;
  }

  .profile-card__media {
    min-height: 320px;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .profile-card__placeholder {
    min-height: 320px;
  }

  .profile-card__body {
    padding: 1.75rem 1.5rem 2rem;
  }

  .profile-contact__row {
    grid-template-columns: 4.5rem 1fr;
  }
}

@media (max-width: 480px) {
  .profile-stage {
    padding: 1rem;
  }
}
