:root {
  --navy: #0b1f3a;
  --navy-2: #143258;
  --gold: #c6a15b;
  --gold-2: #e4d0a1;
  --ivory: #f7f3ea;
  --ink: #1c2430;
  --muted: #5c6570;
  --page: #071422;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.35), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 18s ease-in-out infinite;
}

body::before { top: -80px; left: -60px; }
body::after { right: -80px; bottom: -40px; animation-delay: -9s; }

.card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 24px));
  margin: 24px auto;
  background: var(--ivory);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  line-height: 0;
}

.cover {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  animation: kenburns 1.6s ease both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 31, 58, 0) 55%, rgba(11, 31, 58, 0.45) 100%);
  pointer-events: none;
}

.identity {
  padding: 0 22px 8px;
  text-align: center;
}

.portrait-wrap {
  width: 120px;
  height: 120px;
  margin: -64px auto 14px;
  position: relative;
}

.ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(198, 161, 91, 0) 0 68%, var(--gold) 82%, var(--gold-2) 92%, rgba(198, 161, 91, 0) 100%);
  animation: spin 14s linear infinite;
}

.portrait {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 3px solid var(--ivory);
  background: var(--navy);
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

h1 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  color: var(--navy);
}

.title {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chip {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--navy-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.bio {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.actions { padding: 18px 22px 8px; }

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-line {
  margin: 10px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.btn {
  min-height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font: 600 15px/1 "Outfit", system-ui, sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn svg { display: block; flex: 0 0 auto; }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-quiet { background: #fff; color: var(--navy); border-color: rgba(11, 31, 58, 0.12); }

.btn-save {
  width: 100%;
  margin-top: 10px;
  background: var(--navy);
  color: var(--ivory);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(11, 31, 58, 0.12);
  }
}

.btn:active { transform: scale(0.98); }

.qr-block {
  margin: 18px 22px 0;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(198, 161, 91, 0.45);
}

.qr-block canvas { width: 180px; height: 180px; }

.qr-block p,
.card-foot p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-foot { padding: 14px 22px 22px; text-align: center; }

.rise { animation: fadeUp 0.7s ease both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.4s; }
.d6 { animation-delay: 0.48s; }
.d7 { animation-delay: 0.56s; }
.d8 { animation-delay: 0.64s; }
.d9 { animation-delay: 0.72s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(24px, 18px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .cover,
  .ring,
  body::before,
  body::after,
  .btn {
    animation: none !important;
    transition: none !important;
  }
  .rise { opacity: 1; transform: none; }
}
