:root {
  --navy: #07131f;
  --navy-soft: #102333;
  --amber: #f1ad45;
  --cream: #f5f1e8;
  --ink: #111820;
  --muted: #68717a;
  --line: rgba(7, 19, 31, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(241, 173, 69, .22), transparent 32%),
    linear-gradient(135deg, #f8f5ee 0%, #ece8de 100%);
  font-family: "DM Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: inherit; }

.card-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.back-link {
  display: inline-flex;
  margin: 0 0 18px;
  color: #44515d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.back-link:hover { color: var(--navy); }

.digital-card {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) 1.18fr;
  overflow: hidden;
  min-height: 600px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 80px rgba(7, 19, 31, .18);
}

.identity-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: 34px;
  overflow: hidden;
  background: var(--navy);
}

.identity-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -180px;
  right: -180px;
  border: 1px solid rgba(241, 173, 69, .45);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(241, 173, 69, .05), 0 0 0 120px rgba(241, 173, 69, .03);
}

.monogram {
  position: absolute;
  top: 30px;
  left: 32px;
  z-index: 2;
  color: var(--amber);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .16em;
}

.portrait-frame {
  position: absolute;
  inset: 0;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 31, .05) 25%, rgba(7, 19, 31, .96) 100%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(241, 173, 69, .16);
}

.details-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #8d5d15;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  letter-spacing: -.045em;
}

h1 {
  max-width: 560px;
  font-size: clamp(48px, 7vw, 78px);
  line-height: .94;
}

.role {
  max-width: 520px;
  margin: 26px 0 8px;
  color: #263644;
  font-size: clamp(18px, 2.3vw, 23px);
  font-weight: 600;
  line-height: 1.4;
}

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

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 164px;
  padding: 15px 18px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); }
.button-secondary { color: var(--navy); background: white; }
.button-secondary:hover { background: #f7f4ed; }

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-row div { min-width: 0; }

.label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-row a {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.copy-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: #f7f4ed;
  cursor: pointer;
  font: 700 11px "DM Sans", sans-serif;
  text-transform: uppercase;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 22px;
}

.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.profile-links strong { color: var(--navy); font-weight: 700; }
.profile-links a:hover strong { color: #9a6413; }

.share-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  margin-top: 20px;
  padding: 30px 34px;
  border-radius: 20px;
  color: white;
  background: var(--navy);
}

.share-panel .eyebrow { color: var(--amber); margin-bottom: 10px; }
.share-panel h2 { color: white; font-size: clamp(30px, 4vw, 45px); }
.share-panel p:not(.eyebrow) { max-width: 560px; margin: 12px 0 0; color: #b8c2cb; line-height: 1.65; }

.badge-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge-downloads a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.badge-downloads a:hover { border-color: var(--amber); color: var(--amber); }

.qr-wrap {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 13px;
  background: white;
}

.qr-wrap img { display: block; border-radius: 4px; }
.copy-status { min-height: 20px; margin: 14px 4px 0; color: #58636d; font-size: 12px; }

@media (max-width: 760px) {
  .card-shell { width: min(100% - 20px, 560px); padding-top: 18px; }
  .digital-card { grid-template-columns: 1fr; border-radius: 20px; }
  .identity-panel { min-height: 410px; padding: 24px; }
  .monogram { top: 22px; left: 22px; }
  .details-panel { padding: 36px 24px 32px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .profile-links { grid-template-columns: 1fr; gap: 2px; }
  .share-panel { grid-template-columns: 1fr; justify-items: start; padding: 28px 24px; }
}

@media (max-width: 420px) {
  .identity-panel { min-height: 360px; }
  .primary-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .contact-row { align-items: flex-start; }
}
