:root {
  --marble-1: #f8f3ee;
  --marble-2: #efe4dc;
  --vein: #d9b9ae;
  --blush-1: #f3d9d2;
  --blush-2: #e9c3ba;
  --rose-gold: #b9836a;
  --rose-gold-light: #d9ac93;
  --espresso: #2c2220;
  --espresso-2: #3a2c29;
  --ivory-text: #f3e8de;
  --muted: #8a6f63;
  --line: rgba(185, 131, 106, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, var(--blush-1), transparent 55%),
    radial-gradient(circle at 85% 15%, var(--blush-2), transparent 50%),
    radial-gradient(circle at 50% 100%, var(--blush-2), transparent 60%),
    var(--blush-1);
  font-family: 'Jost', sans-serif;
  color: var(--espresso);
  display: flex;
  justify-content: center;
  padding: 64px 20px 40px;
  position: relative;
  overflow-x: hidden;
}

/* Subtle marble grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Medallion / Avatar */
.medallion {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 26px;
  opacity: 0;
  animation: riseIn 0.8s ease forwards;
}

.medallion-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rose-gold-light), var(--marble-1) 30%, var(--rose-gold) 55%, var(--marble-1) 80%, var(--rose-gold-light));
  animation: rotateRing 9s linear infinite;
}

.medallion-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blush-1);
}

.medallion img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--marble-1);
  box-shadow: 0 6px 18px rgba(60, 30, 20, 0.18);
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.3rem;
  letter-spacing: 0.04em;
  color: var(--espresso-2);
  margin: 0 0 8px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.1s forwards;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--rose-gold);
  margin: 0 0 20px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.2s forwards;
}

.divider {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 240px;
  margin-bottom: 20px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.3s forwards;
}

.divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rose-gold), transparent);
}

.divider svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--rose-gold);
}

.positioning {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--espresso-2);
  text-align: center;
  max-width: 400px;
  margin: 22px auto 28px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.4s forwards;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  opacity: 0;
  animation: riseIn 0.8s ease 0.5s forwards;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--espresso-2), var(--espresso));
  color: var(--ivory-text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid rgba(217, 172, 147, 0.25);
  box-shadow: 0 4px 14px rgba(30, 15, 10, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.link-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 15, 10, 0.26);
  background: linear-gradient(180deg, #3f302c, #241b19);
}

.link-btn:active {
  transform: translateY(0);
}

.link-btn:focus-visible {
  outline: 2px solid var(--rose-gold-light);
  outline-offset: 3px;
}

.link-btn.primary {
  background: linear-gradient(120deg, var(--rose-gold), #a06f57, var(--rose-gold-light), #a06f57);
  background-size: 300% 100%;
  color: #fff8f3;
  border-color: rgba(255, 255, 255, 0.25);
  animation: breathe 4s ease-in-out infinite, colorDrift 6s ease-in-out infinite;
}

.link-btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

.link-btn.primary svg {
  animation: iconFloat 4s ease-in-out infinite;
}

.link-btn.primary:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(30, 15, 10, 0.36);
  background: linear-gradient(180deg, #c4936f, #96604a);
}

.link-btn.primary:hover svg {
  animation-play-state: paused;
}

.link-btn.primary:active {
  animation-play-state: paused;
  transform: scale(0.98);
}

/* Ripple feedback effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(30, 15, 10, 0.18);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 12px 28px rgba(30, 15, 10, 0.34);
  }
}

@keyframes colorDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shine {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0;
  animation: riseIn 0.8s ease 0.65s forwards;
}

.trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.trust svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.55s forwards;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 34, 32, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso-2);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: var(--rose-gold);
  color: #fff8f3;
  transform: translateY(-2px);
}

.socials svg {
  width: 18px;
  height: 18px;
}

footer {
  margin-top: 44px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: riseIn 0.8s ease 0.75s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .link-btn.primary {
    animation: none;
    background: linear-gradient(180deg, var(--rose-gold), #a06f57);
  }
  .link-btn.primary::after {
    display: none;
  }
  .link-btn.primary svg {
    animation: none;
  }
}

/* Mobile Breakpoints */
@media (max-width: 380px) {
  .medallion { width: 128px; height: 128px; }
  .brand-name { font-size: 1.95rem; }
  .positioning { max-width: 300px; }
  body { padding-top: 48px; }
}

@media (max-width: 340px) {
  body { padding-left: 16px; padding-right: 16px; }
  .medallion { width: 112px; height: 112px; }
  .brand-name { font-size: 1.75rem; }
  .link-btn { padding: 14px 18px; font-size: 0.94rem; }
  .trust { font-size: 0.72rem; gap: 8px 12px; }
}

@media (min-width: 480px) {
  .page { max-width: 440px; }
}