:root{
  --bg: #070A0F;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.12);

  --teal: #2DE2E6;
  --blue: #4B7BFF;
  --green: #34D399;
  --orange:#FF8A3D;

  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
}

[data-theme="light"]{
  --bg: #F6F7FB;
  --panel: rgba(0,0,0,.06);
  --panel2: rgba(0,0,0,.08);
  --text: rgba(10,14,20,.92);
  --muted: rgba(10,14,20,.65);
  --line: rgba(10,14,20,.14);
  --shadow: 0 20px 60px rgba(10,14,20,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

.bg{
  position:fixed; inset:0; z-index:-3; pointer-events:none;
  background:
    radial-gradient(1000px 700px at 70% 20%, rgba(45,226,230,.18), transparent 60%),
    radial-gradient(900px 600px at 20% 70%, rgba(75,123,255,.14), transparent 55%),
    radial-gradient(900px 600px at 80% 80%, rgba(255,138,61,.10), transparent 55%),
    radial-gradient(1200px 800px at 40% 10%, rgba(52,211,153,.10), transparent 60%);
  filter: saturate(1.15);
}

#particles{
  position:fixed; inset:0; z-index:-2; width:100%; height:100%;
  opacity:.75;
}

.flags{
  position:fixed; inset:-40px; z-index:-1; pointer-events:none;
  opacity:.08;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='white' stroke-opacity='.65'%3E%3Cpath d='M30 30v200'/%3E%3Cpath d='M30 40c40 10 70-10 110 0s70 10 110 0 70-10 110 0v110c-40-10-70 10-110 0s-70-10-110 0-70 10-110 0z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 320px;
  animation: drift 28s linear infinite;
}

@keyframes drift{
  from{transform: translate3d(0,0,0)}
  to{transform: translate3d(-120px,80px,0)}
}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  letter-spacing:.2px;
}
.brand-dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--teal), var(--blue));
  box-shadow: 0 0 18px rgba(45,226,230,.45);
}
.brand span{font-weight:650}

.nav-links{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav-links a{
  position:relative;
  padding:10px 12px;
  border-radius:999px;
  color: var(--muted);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav-links a:hover{
  color: var(--text);
  background: var(--panel);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.nav-links a[aria-current="page"]{
  color: var(--text);
  background: linear-gradient(135deg, color-mix(in oklab, var(--panel) 70%, transparent), color-mix(in oklab, var(--panel2) 80%, transparent));
  border: 1px solid var(--line);
}
.nav-right{
  display:flex; align-items:center; gap:10px;
}
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px;
  border-radius:14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: var(--panel2);
}
.icon{
  width:18px; height:18px; opacity:.95;
}

.hero{
  padding:34px 0 10px;
}
.hero-card{
  border-radius: 26px;
  background: linear-gradient(145deg, color-mix(in oklab, var(--panel) 70%, transparent), transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  padding:28px;
}
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color: var(--muted);
  font-size:.95rem;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

h1{
  margin:14px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height:1.05;
}
.lead{
  margin:10px 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.cta-row{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: var(--panel2);
}
.btn.primary{
  border: none;
  background: radial-gradient(120% 120% at 20% 20%, rgba(45,226,230,.38), rgba(75,123,255,.22), rgba(255,138,61,.12));
  box-shadow: 0 18px 70px rgba(45,226,230,.14);
}
.btn .icon{width:16px;height:16px}

.profile{
  display:flex; justify-content:center; align-items:center;
}
.profile-wrap{
  width:min(290px, 100%);
  aspect-ratio: 1/1;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), transparent);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.profile-wrap::after{
  content:"";
  position:absolute; inset:-40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(45,226,230,.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,138,61,.12), transparent 55%);
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{transform: translate3d(0,0,0) rotate(0deg)}
  50%{transform: translate3d(14px,-10px,0) rotate(6deg)}
}
.profile-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.03);
  transform: scale(1.02);
  border-radius: 26px;
}

.section{padding:26px 0}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 6;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  padding:16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--panel2);
}
.card h3{margin:2px 0 8px; letter-spacing:-.01em}
.card p{margin:0; color: var(--muted)}
@media (max-width: 900px){
  .card{grid-column: span 12}
}

.page-title{
  padding:26px 0 6px;
}
.page-title h2{
  margin:0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing:-.02em;
}
.page-title p{margin:10px 0 0; color:var(--muted); max-width:70ch}

.timeline{
  display:flex; flex-direction:column; gap:12px;
  margin-top: 16px;
}
.item{
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  padding:14px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  position:relative;
}
.item:hover{transform: translateY(-2px); background: var(--panel2); box-shadow: var(--shadow)}
.item-top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.item h3{margin:0 0 4px}
.meta{color:var(--muted); font-size:.95rem}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size:.9rem;
}
.bullets{margin:10px 0 0; padding-left: 18px; color: var(--muted)}
.bullets li{margin:6px 0}

.footer{
  padding:28px 0;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  color: var(--muted);
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.small-links{display:flex; gap:10px; flex-wrap:wrap}
.small-links a{color:var(--muted)}
.small-links a:hover{color:var(--text)}

.modal{
  position:fixed; inset:0; display:none; z-index:999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  padding: 20px;
}
.modal[open]{display:grid; place-items:center}
.modal-card{
  width:min(720px, 100%);
  border-radius: 22px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-body{padding:16px}
.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 720px){ .kv{grid-template-columns:1fr} }
.kv .card-mini{
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding:12px;
}
.flag{
  width: 44px; height: 32px; border-radius: 8px; overflow:hidden;
  border:1px solid var(--line);
}
hr.sep{border:none;border-top:1px solid var(--line); margin:12px 0}
.globe-wrap{
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
}
#globeCanvas{
  width:100%;
  height: 520px;
  display:block;
}
