:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; --profile-accent: #c9d2df; }
* { box-sizing: border-box; }
html { min-height: 100%; background: #05070a; }
body { margin: 0; background: #05070a; color: #f3f5f7; }
::selection { background: var(--profile-accent); color: #05070a; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--profile-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.profile-banner {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #05070a;
}
.profile-banner video,
.profile-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.profile-banner video { z-index: 1; opacity: 1; transition: opacity .35s ease; }
.profile-banner video.is-ready { opacity: 1; }
.profile-banner-image { opacity: .8; }
.profile-banner-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(5,7,10,.45), rgba(5,7,10,.56) 48%, rgba(5,7,10,.72));
}
.has-video .profile-banner-shade { background: linear-gradient(to bottom, rgba(5,7,10,.12), rgba(5,7,10,.2) 48%, rgba(5,7,10,.32)); }

.profile-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: calc(100dvh - 1px);
  margin: 0 auto;
  padding: 64px 28px;
  text-align: center;
}
.avatar-frame {
  width: 150px;
  height: 150px;
  margin: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #151a1d;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
#avatar { width: 100%; height: 100%; background-size: cover; background-position: center; }
h1 { margin: 18px 0 0; font-size: clamp(28px, 5vw, 36px); font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.handle { margin: 4px 0 0; color: #a4afb7; font-size: 16px; }
.bio { max-width: 600px; margin: 22px auto 0; color: #bcc6cb; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.bio:empty { display: none; }
.links-section { width: min(620px, 100%); margin: 34px auto 0; }
.demo-note { margin: 0 0 14px; color: #aab5bc; font-size: 12px; }
.links { display: grid; gap: 10px; }
.profile-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid rgba(197,206,221,.24);
  border-radius: 6px;
  background: rgba(8,11,17,.76);
  color: #f0f2f4;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: border-color .18s, background .18s, color .18s;
}
.profile-link:hover { border-color: var(--profile-accent); background: rgba(25,26,38,.92); color: white; }
.link-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--profile-accent); }
.link-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-title { overflow-wrap: anywhere; }
.link-description { color: #adb6bd; font-size: 12px; font-weight: 400; }
.link-arrow { color: var(--profile-accent); font-size: 19px; }
.empty-links { color: #89959d; font-size: 14px; }

.entry-dialog { inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: #000; color: #f3f5f7; }
.entry-dialog[open] { display: grid; place-items: center; }
.entry-dialog::backdrop { background: #000; }
.entry-inner { width: min(480px,100%); text-align: center; }
.entry-name { margin: 0 0 12px; font-size: clamp(30px,7vw,52px); font-weight: 750; letter-spacing: -.05em; }
.entry-description { margin: 0 0 30px; color: #898989; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.entry-inner button { width: 100%; min-height: 72px; cursor: pointer; font: inherit; }
.entry-primary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px 0 28px; border: 1px solid #3a3a3a; border-radius: 2px; background: #000; color: #fff; font-size: clamp(18px,4vw,28px); font-weight: 800 !important; letter-spacing: .12em; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.entry-primary:hover { border-color: #fff; background: #fff; color: #000; transform: translateY(-2px); }
.entry-button-mark { font-size: 25px; font-weight: 400; letter-spacing: 0; }

@media (max-width: 700px) {
  .profile-content { padding: 44px 18px; }
  .avatar-frame { width: 108px; height: 108px; }
  h1 { font-size: 28px; }
  .links { gap: 9px; }
  .profile-link { min-height: 62px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-link { transition: none; }
}
