:root {
  --bg: #0a0b0d;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text: #f4f5f7;
  --muted: #8b8f98;
  --accent: #f4f5f7;
  --ring: rgba(255, 255, 255, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(900px 700px at 90% 110%, rgba(120, 130, 150, 0.10), transparent 60%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

/* ---------- profile pages ---------- */
.wrap {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) 22px 56px;
  display: flex; flex-direction: column; align-items: center;
}

.avatar {
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 44px; letter-spacing: -1px;
  color: #f4f5f7;
  background: linear-gradient(145deg, #43474f, #22252b);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.10), 0 18px 40px rgba(0,0,0,0.55);
  overflow: hidden; position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.name {
  margin-top: 22px; font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.name .verified { width: 19px; height: 19px; color: var(--accent); }
.handle { margin-top: 3px; color: var(--muted); font-size: 15px; font-weight: 500; }
.bio {
  margin-top: 16px; text-align: center; color: #c7cad1; font-size: 15.5px;
  max-width: 420px; line-height: 1.6;
}

.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text); background: var(--card); border: 1px solid var(--border);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.socials a:hover { transform: translateY(-3px); background: var(--card-hover); border-color: var(--border-hover); }
.socials svg { width: 20px; height: 20px; }

.links { width: 100%; margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.link {
  position: relative; display: flex; align-items: center; gap: 15px;
  padding: 17px 18px; border-radius: 15px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.link:hover {
  transform: translateY(-2px); background: var(--card-hover);
  border-color: var(--border-hover); box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.link .ico { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent); }
.link .ico svg { width: 100%; height: 100%; }
.link .label { flex: 1; }
.link .chev { width: 17px; height: 17px; color: var(--muted); transition: transform .18s ease; }
.link:hover .chev { transform: translateX(3px); }
.link.primary { background: var(--accent); color: #0a0b0d; border-color: transparent; }
.link.primary .ico, .link.primary .chev { color: #0a0b0d; }
.link.primary:hover { background: #ffffff; }

.footer { margin-top: 40px; color: var(--muted); font-size: 12.5px; letter-spacing: .3px; text-align: center; }
.footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }

/* ---------- chooser ---------- */
.chooser { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
.chooser-head { text-align: center; padding: clamp(38px,7vh,72px) 20px 10px; }
.chooser-head .mark {
  font-size: 13px; letter-spacing: 5px; color: var(--accent); font-weight: 700; text-transform: uppercase;
}
.chooser-head h1 { margin-top: 12px; font-size: clamp(30px,7vw,46px); font-weight: 800; letter-spacing: -1px; }
.chooser-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px clamp(16px,4vw,40px) 40px; max-width: 1000px; margin: 0 auto; width: 100%; }
.card-person {
  position: relative; border-radius: 22px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--border); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; min-height: 340px; color: var(--text);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card-person:hover { transform: translateY(-5px); border-color: var(--ring); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.card-person .av {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  font-size: 36px; font-weight: 700; color: #f4f5f7; overflow: hidden;
  background: linear-gradient(145deg,#43474f,#22252b); box-shadow: 0 0 0 4px rgba(255,255,255,0.10);
}
.card-person .av img { width: 100%; height: 100%; object-fit: cover; }
.card-person h2 { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.card-person span { margin-top: 5px; color: var(--muted); font-size: 14px; }
.card-person .go { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.card-person .go svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .split { grid-template-columns: 1fr; }
  .card-person { min-height: 220px; padding: 36px 24px; }
}

/* ---------- photo-forward home ---------- */
.home {
  position: relative; z-index: 1; min-height: 100dvh; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #000;
}
.home-bg { position: fixed; inset: 0; z-index: -1; }
.home-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: contrast(1.02); }
.home-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 32%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0.92) 100%);
}
.home-inner { max-width: 520px; margin: 0 auto; width: 100%; padding: 0 22px clamp(40px, 7vh, 72px); text-align: center; }
.home-mark { font-size: 12px; letter-spacing: 6px; color: rgba(255,255,255,0.82); font-weight: 700; text-transform: uppercase; }
.home h1 { margin-top: 10px; font-size: clamp(38px, 11vw, 60px); font-weight: 800; letter-spacing: -1.5px; line-height: 0.98; text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.home-sub { margin-top: 12px; color: rgba(255,255,255,0.72); font-size: 15px; }
.home-btns { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.hbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; border-radius: 15px; text-decoration: none; font-weight: 700; font-size: 16px;
  letter-spacing: .2px; transition: transform .18s ease, background .18s ease, border-color .18s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hbtn.solid { background: #f4f5f7; color: #0a0b0d; border: 1px solid transparent; }
.hbtn.solid:hover { background: #fff; transform: translateY(-2px); }
.hbtn.ghost { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.hbtn.ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.hbtn svg { width: 17px; height: 17px; }

/* ---------- profile with full-bleed photo ---------- */
.pf-bg { position: fixed; inset: 0; z-index: -1; background: #000; }
.pf-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: contrast(1.03) brightness(0.94); }
.pf-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.30) 34%, rgba(0,0,0,0.72) 78%, rgba(0,0,0,0.90) 100%);
}
.wrap.onphoto { padding-top: clamp(250px, 46vh, 470px); }
.wrap.onphoto .name, .wrap.onphoto .handle { text-shadow: 0 2px 20px rgba(0,0,0,0.7); }
.wrap.onphoto .link { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(20,21,24,0.55); }
.wrap.onphoto .link.primary { background: #f4f5f7; }
