:root{
  --brand:#014689;
  --brand-700:#013362;
  --brand-900:#012444;
  --accent:#e11d2a;
  --ink:#0d2236;
  --muted:#5b6b7b;
  --card:rgba(255,255,255,.96);
  --radius:18px;
  --shadow:0 18px 50px rgba(1,36,68,.28);
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--brand-900);
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:clamp(16px,5vw,48px) clamp(14px,4vw,24px);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ---- Background ---- */
.bg{
  position:fixed;inset:0;z-index:-2;
  background:var(--brand-900) center/cover no-repeat;
  opacity:0;
  transform:scale(1.06);
  transition:opacity 1.1s ease;
}
.bg.show{opacity:1;animation:kenburns 28s ease-out forwards}
@keyframes kenburns{from{transform:scale(1.06)}to{transform:scale(1.15)}}
.bg-overlay{
  position:fixed;inset:0;z-index:-1;
  background:
    linear-gradient(180deg, rgba(1,36,68,.55) 0%, rgba(1,36,68,.32) 32%, rgba(1,52,98,.72) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(1,70,137,.22), transparent 60%);
}

/* ---- Card ---- */
.card{
  position:relative;
  width:100%;
  max-width:440px;
  background:var(--card);
  backdrop-filter:saturate(140%) blur(8px);
  -webkit-backdrop-filter:saturate(140%) blur(8px);
  border-radius:26px;
  padding:22px 20px 18px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.5);
  overflow:hidden;
}

/* ---- Brand logo (footer) ---- */
.logo{height:27px;width:auto;display:block}

/* ---- Profile ---- */
.profile{text-align:center;padding:10px 4px 4px}
.avatar{
  width:132px;height:132px;margin:8px auto 14px;
  border-radius:50%;
  padding:4px;
  background:linear-gradient(150deg,var(--brand),#2a78c2);
  box-shadow:0 10px 26px rgba(1,52,98,.30);
}
.avatar img{
  width:100%;height:100%;border-radius:50%;object-fit:cover;
  border:3px solid #fff;display:block;
}
.name{
  font-size:1.55rem;line-height:1.1;font-weight:800;letter-spacing:-.02em;
  color:var(--brand-700);
  display:inline-flex;align-items:center;gap:7px;
}
.verified{width:24px;height:24px;flex:0 0 auto;filter:drop-shadow(0 1px 2px rgba(1,36,68,.25))}
.role{
  margin-top:6px;color:var(--muted);font-size:.92rem;font-weight:600;
  letter-spacing:.01em;
}

.bio{
  list-style:none;margin:16px auto 4px;max-width:330px;
  display:flex;flex-direction:column;gap:7px;
  text-align:left;
}
.bio li{
  display:flex;gap:9px;align-items:baseline;
  font-size:.95rem;line-height:1.35;color:#33485c;
}
.bio .emoji{flex:0 0 auto;font-size:1rem;line-height:1.2}
.mention{color:var(--brand);font-weight:700;text-decoration:none;border-bottom:1.5px solid rgba(1,70,137,.25)}
.mention:hover{border-bottom-color:var(--brand)}

/* ---- Links ---- */
.links{display:flex;flex-direction:column;gap:11px;margin-top:18px}
.link{
  display:flex;align-items:center;gap:13px;
  padding:12px 14px;
  background:#fff;
  border:1.5px solid #e7eef5;
  border-radius:var(--radius);
  text-decoration:none;color:var(--ink);
  box-shadow:0 2px 6px rgba(1,36,68,.05);
  transition:transform .22s cubic-bezier(.34,1.4,.5,1), box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.ic{
  flex:0 0 auto;width:44px;height:44px;border-radius:12px;
  display:grid;place-items:center;
  background:#eef4fa;
  transition:background .22s ease;
}
.ic svg{width:22px;height:22px;fill:var(--brand);transition:fill .22s ease}
.txt{display:flex;flex-direction:column;line-height:1.2;flex:1 1 auto;min-width:0}
.txt strong{font-size:1rem;font-weight:700;letter-spacing:-.01em}
.txt small{font-size:.8rem;color:var(--muted);margin-top:1px}
.go{
  flex:0 0 auto;width:9px;height:9px;border-right:2.5px solid #b9c8d6;border-top:2.5px solid #b9c8d6;
  transform:rotate(45deg);margin-right:4px;transition:border-color .22s ease,transform .22s ease;
}
@media(hover:hover){
  .link:hover{
    transform:translateY(-3px);
    border-color:var(--brand);
    box-shadow:0 12px 26px rgba(1,52,98,.22);
  }
  .link:hover .ic{background:var(--brand)}
  .link:hover .ic svg{fill:#fff}
  .link:hover .go{border-color:var(--brand);transform:rotate(45deg) translate(2px,-2px)}
}
.link:active{transform:translateY(-1px) scale(.99)}

/* ---- Footer (blue band) ---- */
.foot{
  margin:22px -20px -18px;
  padding:13px 20px 15px;
  background:var(--brand);
  border-radius:0 0 25px 25px;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  text-align:center;
}
.foot span{
  font-size:.72rem;color:rgba(255,255,255,.82);
  letter-spacing:.01em;
}

/* ---- Entrance animation ---- */
.brand,.avatar,.name,.role,.bio,.link,.foot{opacity:0;transform:translateY(14px)}
.ready .brand,.ready .avatar,.ready .name,.ready .role,.ready .bio,.ready .link,.ready .foot{
  animation:rise .6s cubic-bezier(.22,.7,.3,1) forwards;
}
.ready .brand{animation-delay:.05s}
.ready .avatar{animation-delay:.12s}
.ready .name{animation-delay:.2s}
.ready .role{animation-delay:.26s}
.ready .bio{animation-delay:.32s}
.ready .links .link{animation-delay:calc(.4s + var(--d) * .08s)}
.ready .foot{animation-delay:.85s}
@keyframes rise{to{opacity:1;transform:translateY(0)}}

/* Safety net: if entrance animations don't run (throttled / no-JS-paint), reveal content. */
.done .brand,.done .avatar,.done .name,.done .role,.done .bio,.done .link,.done .foot{
  opacity:1 !important;transform:none !important;
}

@media (prefers-reduced-motion: reduce){
  .bg,.bg.show{animation:none;transition:opacity .4s ease}
  .brand,.avatar,.name,.role,.bio,.link,.foot{opacity:1;transform:none;animation:none}
  .ready .brand,.ready .avatar,.ready .name,.ready .role,.ready .bio,.ready .link,.ready .foot{animation:none}
}

@media (max-width:380px){
  .card{padding:18px 15px 16px}
  .name{font-size:1.4rem}
  .avatar{width:116px;height:116px}
}
