:root {
  --bg: #080706;
  --card: #12100d;
  --card-soft: #1b1712;
  --ink: #f7f0e5;
  --muted: #b6aa98;
  --gold: #c7a16a;
  --gold-2: #f2d7a0;
  --gold-deep: #8d6335;
  --silver: #ddd2c2;
  --line: rgba(213, 174, 111, .23);
  --shadow: 0 34px 90px rgba(0, 0, 0, .58), 0 8px 28px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px 12px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 161, 106, .14), transparent 24rem),
    radial-gradient(circle at 92% 90%, rgba(242, 215, 160, .055), transparent 24rem),
    linear-gradient(145deg, #030302 0%, #100d09 48%, #050504 100%);
}

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

.page-shell { width: min(100%, 450px); }

.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(213, 174, 111, .30);
  border-radius: 30px;
  padding: 24px 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .004)),
    linear-gradient(150deg, #19140f 0%, #0e0c09 62%, #15110c 100%);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(232, 199, 145, .04) 48%, transparent 58%),
    radial-gradient(circle at 50% -5%, rgba(242, 215, 160, .09), transparent 36%);
}

.gold-orbit {
  position: absolute;
  border: 1px solid rgba(213, 174, 111, .17);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.orbit-one { width: 250px; height: 250px; right: -165px; top: -110px; }
.orbit-two { width: 150px; height: 150px; left: -105px; bottom: 68px; border-color: rgba(238, 220, 187, .08); }

.brand-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 2px 3px 17px;
  position: relative;
}
.brand-zone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 92px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.logo {
  display: block;
  width: min(100%, 340px);
  max-height: 154px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(199, 161, 106, .12));
}

.identity { text-align: center; padding-top: 12px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff6e9;
  overflow-wrap: anywhere;
}
.role {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 9px auto 0;
  max-width: 340px;
  color: var(--silver);
  font-size: .76rem;
  line-height: 1.6;
  letter-spacing: .045em;
}
.brand-name { color: var(--gold-2); font-weight: 750; letter-spacing: .13em; }
.role-divider { color: var(--gold-deep); }

.primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.action {
  min-height: 47px;
  padding: 0 10px;
  border: 1px solid rgba(213, 174, 111, .20);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #f0e7da;
  font-size: .84rem;
  font-weight: 650;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.action:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 215, 160, .48);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}
.action-primary {
  color: #171009;
  border-color: rgba(255, 231, 186, .56);
  background: linear-gradient(135deg, #f4dfb2 0%, #c7a16a 52%, #e9c987 100%);
  box-shadow: 0 12px 28px rgba(166, 119, 52, .18), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.action-primary:hover { background: linear-gradient(135deg, #f8e7c4 0%, #d7b47b 52%, #f5dba0 100%); }
.action.disabled, .social-link.disabled { opacity: .32; pointer-events: none; cursor: default; }
.icon { width: 17px; height: 17px; display: inline-flex; flex: 0 0 17px; }
.icon svg, .social-link svg { width: 100%; height: 100%; fill: currentColor; }

.card-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}
.social { display: flex; gap: 7px; }
.social-link {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #eee0cb;
  border: 1px solid rgba(213, 174, 111, .19);
  background: rgba(255, 255, 255, .025);
  transition: border-color .18s ease, transform .18s ease;
}
.social-link:not(.disabled):hover { border-color: var(--gold); transform: translateY(-1px); }
.save-contact {
  min-height: 42px;
  border: 1px solid rgba(242, 215, 160, .40);
  border-radius: 13px;
  color: #171009;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  cursor: pointer;
  background: linear-gradient(135deg, #f2d7a0 0%, #c7a16a 55%, #e8c783 100%);
  box-shadow: 0 11px 22px rgba(166, 119, 52, .16), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .18s ease, filter .18s ease;
}
.save-contact:hover { filter: brightness(1.05); transform: translateY(-1px); }
.micro {
  margin: 12px 0 0;
  text-align: center;
  font-size: .57rem;
  letter-spacing: .19em;
  color: #9a8567;
}
.micro span { color: var(--gold-2); }

@media (max-width: 380px) {
  .card { padding: 20px 16px 16px; border-radius: 25px; }
  .brand-zone { min-height: 84px; }
  .primary-actions { grid-template-columns: 1fr 1fr; }
  .card-footer { grid-template-columns: 1fr; }
  .social { order: 2; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


.card-footer {
  grid-template-columns: 1fr !important;
}

.save-contact {
  width: 100% !important;
  grid-column: 1 / -1 !important;
}