:root {
  --bg: #0e100c;
  --text: #ebe4d8;
  --muted: rgba(235, 228, 216, 0.52);
  --faint: rgba(235, 228, 216, 0.09);
  --accent: #c9926a;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ---------- silk background ---------- */
#silk {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  background: radial-gradient(90% 70% at 50% 40%, #171a13, #0b0c09);
  opacity: 0; transition: opacity 2.4s ease;
}
.is-ready #silk { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(3%, 2%); }
}

/* ---------- layout ---------- */
.wrap {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  padding: 40px 16px;
}

.card {
  position: relative;
  width: 100%; max-width: 420px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(18, 20, 15, .55);
  border: 1px solid var(--faint);
  backdrop-filter: blur(20px) saturate(110%);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  box-shadow: 0 1px 0 rgba(235, 228, 216, .04) inset, 0 40px 80px -30px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.is-ready .card { opacity: 1; transform: none; }

/* thin light that travels along the card border */
.card-edge {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(201, 146, 106, .55) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge 9s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes edge { to { --a: 360deg; } }

/* ---------- identity ---------- */
.id { display: flex; align-items: center; gap: 14px; }
.mark {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--faint);
  background: rgba(235, 228, 216, .03);
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: var(--accent);
}
.name {
  margin: 0;
  font-size: 17px; font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.role {
  margin: 3px 0 0;
  font-size: 13px; color: var(--muted);
}
.role .sep { margin: 0 4px; opacity: .6; }
.num { font-family: var(--mono); font-size: 12.5px; color: var(--text); letter-spacing: .01em; }

/* ---------- links ---------- */
.links {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 6px;
}
.links li { position: relative; display: flex; align-items: center; }
.link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(235, 228, 216, .025);
  text-align: left; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.links li:first-child .link { padding-right: 52px; }
.link:hover { background: rgba(235, 228, 216, .055); border-color: var(--faint); }
.ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(235, 228, 216, .04);
  color: var(--muted);
  transition: color .3s;
}
.link:hover .ico { color: var(--accent); }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.txt { display: flex; flex-direction: column; min-width: 0; }
.lbl { font-size: 11.5px; color: var(--muted); }
.val { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go {
  margin-left: auto; flex: none;
  color: var(--muted);
  transition: transform .35s var(--ease), color .3s;
}
.link:hover .go { color: var(--text); transform: translate(2px, -2px); }
#vcard:hover .go { transform: translateY(2px); }

.copy {
  position: absolute; right: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--faint);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s, background .3s;
}
.copy:hover { color: var(--bg); background: var(--text); }

/* ---------- note ---------- */
.note {
  margin: 0;
  max-width: 420px;
  text-align: center;
  font-size: 11px; line-height: 1.6;
  color: rgba(235, 228, 216, .34);
}

/* ---------- entrance ---------- */
.fx {
  opacity: 0; transform: translateY(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-ready .fx { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 12px);
  padding: 8px 14px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 12.5px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
