:root {
  --bg: #0b1322;
  --panel: #152138;
  --panel-edge: rgba(255, 255, 255, 0.06);
  --cream: #ece5dc;
  --ink: #2d313a;
  --gold: #b89968;
  --gold-soft: rgba(184, 153, 104, 0.35);
  --shadow: 0 36px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top center, rgba(32, 53, 89, 0.32), transparent 34%),
    linear-gradient(180deg, #0c1526 0%, #0a1220 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 44rem;
  height: 44rem;
  border: 1px solid rgba(184, 153, 104, 0.09);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -18rem;
  right: -10rem;
}

body::after {
  bottom: -20rem;
  left: -14rem;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.card-shell {
  width: min(100%, 360px);
  display: grid;
  gap: 18px;
  justify-items: center;
}

.card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--panel) 0 48%, var(--cream) 48% 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.01);
  transform: translateY(16px);
  opacity: 0;
  animation: rise 900ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero {
  position: relative;
  padding: 22px 22px 30px;
  display: grid;
  justify-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #121d32 0%, #101a2e 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
  mix-blend-mode: screen;
  pointer-events: none;
}

.logo {
  display: grid;
  justify-items: center;
  margin-bottom: 16px;
  text-align: center;
}

.logo img {
  display: block;
  width: min(124px, 48vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22));
}

.portrait-frame {
  width: 96px;
  height: 134px;
  border-radius: 48px 48px 12px 12px;
  border: 1px solid var(--gold-soft);
  padding: 10px;
  background: rgba(9, 16, 31, 0.42);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}

.portrait {
  width: 100%;
  height: 100%;
  border-radius: 40px 40px 8px 8px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #0f1a2f, #16233f);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.logo-fallback,
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(242, 238, 232, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.52rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.logo-fallback {
  position: static;
  font-size: 0.46rem;
  color: rgba(242, 238, 232, 0.68);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-align: center;
  color: #f2eee8;
}

.role {
  margin-top: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(233, 224, 211, 0.72);
  text-align: center;
}

.divider {
  width: 32px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.content {
  padding: 22px 18px 18px;
  color: var(--ink);
}

.list {
  display: grid;
  gap: 2px;
}

.item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(45, 49, 58, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, background-color 180ms ease;
}

.item:hover,
.item:focus-visible {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6c6f76;
  background: rgba(45, 49, 58, 0.07);
}

.icon svg {
  width: 13px;
  height: 13px;
}

.meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.label {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b2a694;
}

.value {
  font-size: 0.82rem;
  color: #60646f;
  overflow-wrap: anywhere;
}

.qr-section {
  padding: 18px 0 14px;
  margin: 16px 0 12px;
  border-top: 1px solid rgba(45, 49, 58, 0.14);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.qr-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #b6ac9d;
  text-align: center;
}

.qr {
  width: 94px;
  height: 94px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(90, 74, 42, 0.18);
}

.qr img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #15223a, #0f1a2f);
  color: #f2eee8;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(10, 18, 32, 0.28);
  outline: none;
}

.cta .star {
  color: var(--gold);
  letter-spacing: normal;
}

.footer {
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(155, 165, 183, 0.35);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .hero {
    padding-inline: 18px;
  }

  .content {
    padding-inline: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }
}
