:root {
  color-scheme: light;
  --bg: #08111f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #edf4ff;
  --muted: #a8b5c8;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #6ee7f9;
  --brand-2: #a78bfa;
  --accent: #fbbf24;
  --paper: #f8fafc;
  --paper-text: #172033;
  --paper-muted: #5c667a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(110, 231, 249, 0.18), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(167, 139, 250, 0.16), transparent 30%),
    linear-gradient(135deg, #07101e 0%, #0d1d34 42%, #06101d 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(7, 16, 30, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #06101d;
  box-shadow: 0 12px 28px rgba(110, 231, 249, 0.22);
}
.logo small {
  display: block;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: 180ms ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--panel);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: #07101e;
  background: linear-gradient(135deg, var(--brand), #d9f99d);
  box-shadow: 0 16px 36px rgba(110, 231, 249, 0.18);
}
.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.button.ghost {
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 84px 0 46px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 46px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--brand);
  border: 1px solid rgba(110, 231, 249, 0.24);
  background: rgba(110, 231, 249, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(1.96rem, 5.6vw, 4.48rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin: 22px 0 22px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.065em;
  line-height: 1;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.62;
  color: #d8e3f3;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border-radius: calc(var(--radius) + 8px);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -60px -60px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(251, 191, 36, .20);
  filter: blur(20px);
}
.profile-img {
  width: 156px;
  height: 156px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.26);
  margin-bottom: 20px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,0,0,.16);
}
.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand);
  margin-bottom: 3px;
}
.stat span { color: var(--muted); font-size: .9rem; }

.section { padding: 54px 0; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-header p {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card,
.resume-panel,
.article-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.075);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.card p,
.article-card p,
.resume-panel p,
.timeline p { color: var(--muted); line-height: 1.65; }
.card .tag,
.tag {
  display: inline-flex;
  border: 1px solid rgba(110, 231, 249, .24);
  background: rgba(110, 231, 249, .08);
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 750;
  margin-bottom: 14px;
}
.card-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 800;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-button,
.role-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 700;
}
.filter-button.active,
.role-button.active {
  background: rgba(110, 231, 249, .12);
  border-color: rgba(110, 231, 249, .36);
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}
.paper {
  color: var(--paper-text);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.paper p,
.paper li { color: var(--paper-muted); }
.paper h2,
.paper h3 { color: var(--paper-text); }

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.065);
  border-radius: 20px;
  padding: 18px;
}
.timeline-item time {
  display: block;
  color: var(--brand);
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 8px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill {
  padding: 9px 11px;
  border-radius: 999px;
  color: #dfe9f8;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  font-size: .92rem;
}

.cta {
  border: 1px solid rgba(110, 231, 249, .26);
  border-radius: calc(var(--radius) + 8px);
  padding: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(110, 231, 249, .18), transparent 34%),
    rgba(255,255,255,.075);
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding: 34px 0;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  padding: 68px 0 24px;
}
.page-hero h1 { font-size: clamp(1.68rem, 4.9vw, 3.78rem); }
.prose {
  max-width: 840px;
  line-height: 1.75;
  color: #d9e4f2;
  font-size: 1.05rem;
}
.prose h2,
.prose h3 { color: var(--text); margin-top: 34px; }
.prose code {
  background: rgba(255,255,255,.10);
  border: 1px solid var(--line);
  padding: .16rem .34rem;
  border-radius: 7px;
}
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 10px 0; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.065);
}
.kpi strong { display: block; color: var(--brand); font-size: 1.3rem; }
.kpi span { color: var(--muted); font-size: .92rem; }

.notice {
  border: 1px solid rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .09);
  color: #fde68a;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cta { grid-template-columns: 1fr; }
  .card-grid,
  .card-grid.two,
  .kpi-row { grid-template-columns: 1fr; }
  .section-header { display: block; }
  .nav { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .nav-links { justify-content: flex-start; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .filters { display: none; }
  body { background: #fff; color: #111; }
  .card, .resume-panel, .timeline-item { background: #fff; border-color: #ddd; box-shadow: none; }
}
