@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #8a8780;
  --line: rgba(17, 17, 17, 0.07);
  --soft: #f3f2ee;
  --sand: #e9dcc9;
  --mist: #dfe3ec;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 18px 40px -12px rgba(17, 17, 17, 0.1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --vh: 1vh;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@supports (height: 100dvh) {
  :root { --vh: 1dvh; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

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

.noscript { padding: 24px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100 * var(--vh));
  max-width: 480px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 20px max(12px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow::before, .glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.9;
}

.glow::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -140px;
  background: var(--sand);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow::after {
  width: 360px;
  height: 360px;
  top: 28%;
  left: -200px;
  background: var(--mist);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  flex: 0 0 auto;
}

.brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.tools { display: flex; gap: 8px; }

.tool {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.tool svg { width: 18px; height: 18px; stroke-width: 1.7; }
.tool:hover { background: var(--ink); color: #fff; }
.tool:active { transform: scale(0.94); }

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 0;
  padding: 8px 2px 20px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #0d0d0d);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), var(--shadow);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.ident { min-width: 0; }

.name {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.name .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.12em; }
.name .line > span { display: block; }

.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.title {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bio {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rows li + li { border-top: 1px solid var(--line); }
.rows li { margin: 0 10px; }

.row {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  margin: 0 -10px;
  padding: 0 10px;
  border-radius: 18px;
  transition: background 0.25s var(--ease);
}

a.row[href]:hover { background: var(--soft); }

.row .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
}

.row .ico svg { width: 19px; height: 19px; stroke-width: 1.7; }

.txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.val {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row.is-empty .val { color: #c2bfb8; }

.go { color: #b9b6ae; transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.go svg { width: 18px; height: 18px; stroke-width: 1.8; }
.row.is-empty .go { opacity: 0; }
a.row[href]:hover .go { color: var(--ink); transform: translate(2px, -2px); }

.socials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.soc {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.soc .ico svg { width: 19px; height: 19px; stroke-width: 1.7; }
a.soc[href]:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.soc-lbl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.is-empty { cursor: default; }

.save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(17, 17, 17, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.save:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(17, 17, 17, 0.6); }
.save:active { transform: scale(0.98); }
.save-ico svg { width: 19px; height: 19px; stroke-width: 1.8; }

.foot a { transition: color 0.25s var(--ease); }
.foot a:hover { color: var(--ink); }

.foot {
  flex: 0 0 auto;
  padding-top: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 50px) scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.top, .avatar, .role, .bio, .rows, .soc, .save, .foot { opacity: 0; }
.name .line > span { transform: translateY(110%); }

.is-ready .top { animation: fade 0.7s var(--ease) 0.05s forwards; }
.is-ready .avatar { animation: pop 0.7s var(--ease) 0.1s forwards; }
.is-ready .name .line > span { animation: lineUp 0.9s var(--ease) calc(0.2s + var(--i) * 0.08s) forwards; }
.is-ready .role, .is-ready .bio { animation: rise 0.7s var(--ease) 0.4s forwards; }
.is-ready .rows { animation: rise 0.7s var(--ease) 0.5s forwards; }
.is-ready .soc { animation: rise 0.6s var(--ease) calc(0.45s + var(--i) * 0.04s) forwards; }
.is-ready .save { animation: rise 0.7s var(--ease) 0.75s forwards; }
.is-ready .foot { animation: fade 0.8s var(--ease) 0.9s forwards; }

@media (max-height: 740px) {
  .hero { gap: 14px; padding-bottom: 14px; }
  .avatar { width: 60px; height: 60px; font-size: 19px; }
  .name { font-size: 40px; }
  .role { margin-top: 10px; }
  .row { min-height: 56px; }
  .soc { height: 48px; }
  .save { height: 54px; }
  .bio { display: none; }
}

@media (max-height: 660px) {
  .avatar { display: none; }
  .name { font-size: 36px; }
  .row { min-height: 50px; }
  .row .ico { width: 34px; height: 34px; border-radius: 10px; }
  .row { grid-template-columns: 34px 1fr 20px; }
  .info { gap: 10px; }
  .soc { height: 44px; }
  .save { height: 50px; }
  .foot { display: none; }
}

@media (max-width: 479px) {
  .row { grid-template-columns: 40px 1fr; }
  .go { display: none; }
}

@media (max-width: 370px) {
  .row { column-gap: 12px; }
  .val { font-size: 13px; }
}

@media (max-width: 350px) {
  .card { padding-left: 14px; padding-right: 14px; }
  .name { font-size: 36px; }
  .val { font-size: 14px; }
}

@media (min-width: 960px) and (min-height: 560px) {
  .card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "top top" "hero info" "foot foot";
    column-gap: clamp(48px, 7vw, 120px);
    max-width: 1180px;
    padding: 28px 48px 24px;
  }

  .glow::before { width: 720px; height: 720px; top: -260px; right: -160px; filter: blur(90px); }
  .glow::after { width: 620px; height: 620px; top: 35%; left: -220px; filter: blur(90px); }

  .top { grid-area: top; height: 56px; }
  .brand { font-size: 14px; }
  .tool { width: 46px; height: 46px; }

  .hero { grid-area: hero; gap: 28px; padding: 0; }
  .avatar { width: clamp(84px, 12 * var(--vh), 112px); height: clamp(84px, 12 * var(--vh), 112px); font-size: clamp(26px, 3.4 * var(--vh), 32px); }
  .name { font-size: clamp(64px, min(6.6vw, 11.5 * var(--vh)), 108px); letter-spacing: -0.045em; }
  .role { margin-top: 22px; font-size: 16px; }
  .title { font-size: 13px; padding: 6px 13px; }
  .bio { max-width: 460px; font-size: 16px; }

  .info { grid-area: info; align-self: center; gap: 14px; }
  .row { min-height: 70px; }
  .val { font-size: 16px; }
  .soc { height: 58px; }
  .save { height: 62px; font-size: 16px; }

  .foot { grid-area: foot; text-align: left; }
}

@media (min-width: 960px) and (max-height: 720px) {
  .row { min-height: 58px; }
  .bio { display: none; }
}

.qr-dialog {
  width: min(92vw, 380px);
  max-height: calc(96 * var(--vh));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 40px 90px -20px rgba(17, 17, 17, 0.35);
}

.qr-dialog::backdrop { background: rgba(245, 244, 241, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.qr-dialog[open] { animation: pop 0.35s var(--ease); }

.qr-head { display: flex; align-items: center; gap: 10px; padding: 20px 18px 0 24px; }

.qr-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.qr-head .tool { background: var(--soft); border-color: transparent; box-shadow: none; }
.qr-head .tool:hover { background: var(--ink); color: #fff; }

.qr-frame {
  position: relative;
  margin: 16px 24px 0;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-frame svg { width: 100%; height: auto; }
.qr-frame.is-sample svg { opacity: 0.18; }

.qr-sample-tag { position: absolute; inset: 0; display: grid; place-items: center; }

.qr-sample-tag span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.qr-url {
  margin: 16px 24px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.qr-hint, .qr-note {
  margin: 4px 24px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 24px 24px; }

.qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.qr-btn svg { width: 17px; height: 17px; stroke-width: 1.8; }
.qr-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.qr-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: min(92vw, 420px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 10;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .top, .avatar, .role, .bio, .rows, .soc, .save, .foot { opacity: 1; }
  .name .line > span { transform: none; }
}
