:root {
  --bg: #0b1020;
  --bg-soft: #121a30;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e8ecf5;
  --muted: #9aa6bf;
  --accent: #6ea8fe;
  --accent-2: #7ee7c7;
  --max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(110, 168, 254, 0.20), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(126, 231, 199, 0.14), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(110, 168, 254, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-2);
  color: #08111f;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.brand:hover { text-decoration: none; color: var(--accent-2); }

.nav a {
  color: var(--muted);
  margin-left: 22px;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.2s ease;
}

.nav a:hover { color: var(--text); text-decoration: none; }
.nav a:hover::after { width: 100%; }

/* Hero */
.hero { padding: 90px 0 68px; position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero .role-highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 12px;
}

.location { color: var(--muted); font-size: 0.95rem; margin: 0 0 28px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  border-color: transparent;
}

.btn-primary:hover { box-shadow: 0 10px 26px rgba(110, 168, 254, 0.28); }

.btn-ghost:hover { background: var(--card-hover); border-color: var(--accent); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.stat:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--accent);
}

.stat .num {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}

.stat .label { font-size: 0.85rem; color: var(--muted); }

/* Sections */
section { padding: 60px 0; border-top: 1px solid var(--border); }

section h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

section h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 12px rgba(126, 231, 199, 0.7);
}

.lead { color: var(--muted); margin: 0 0 18px; }

.bullets { margin: 0; padding-left: 20px; color: var(--muted); }
.bullets li { margin-bottom: 8px; }
.bullets strong { color: var(--text); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--border); }

.timeline > li { position: relative; padding: 0 0 30px 22px; }
.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.timeline > li:hover::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(110, 168, 254, 0.8);
}

.role { font-weight: 700; margin: 0; font-size: 1rem; }
.company { color: var(--accent-2); font-weight: 600; }
.period { display: block; color: var(--muted); font-size: 0.88rem; margin: 2px 0 8px; }
.timeline p.desc { margin: 0; color: var(--muted); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }

.tags li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tags li:hover {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--accent-2);
}

/* Two column */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--accent);
}

.card h3 { margin: 0 0 8px; font-size: 1rem; }
.card p, .card ul { color: var(--muted); margin: 0; }
.card ul { padding-left: 18px; }

/* Contact */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 20;
}

.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--card-hover); border-color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 44px; }
  .nav a { margin-left: 14px; font-size: 0.9rem; }
}
