:root {
  --bg: #0b1220;
  --bg-2: #111b2d;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --ink: #172033;
  --muted: #667085;
  --line: #dce3ec;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, .16);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; padding: 10px 14px; background: #fff; z-index: 99; }
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em;
}
nav { margin-left: auto; display: flex; gap: 24px; }
nav a { text-decoration: none; color: #c9d5e6; font-size: .93rem; font-weight: 600; }
nav a:hover { color: #fff; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 13px; text-decoration: none; font-weight: 800; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2); transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37, 99, 235, .28); }
.button-small { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.button-ghost { background: transparent; border: 1px solid #b8c7da; color: var(--ink); box-shadow: none; }
.button-ghost.light { color: #fff; border-color: rgba(255,255,255,.42); }

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(34,211,238,.18), transparent 28%),
    radial-gradient(circle at 15% 10%, rgba(59,130,246,.18), transparent 32%),
    linear-gradient(135deg, #0b1220 0%, #0d1729 55%, #0d2232 100%);
  overflow: hidden;
}
.hero-grid { min-height: 700px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 72px; align-items: center; padding: 82px 0 88px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: #60a5fa; letter-spacing: .16em; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.hero h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.055em; }
.hero-role { margin: 18px 0 0; font-size: clamp(1.35rem, 3vw, 2rem); color: #8edff0; font-weight: 700; }
.hero-summary { max-width: 760px; color: #b8c7da; font-size: 1.08rem; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 42px; }
.quick-facts div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 15px; }
.quick-facts strong { display: block; color: #fff; font-size: 1.08rem; }
.quick-facts span { display: block; color: #91a5be; font-size: .78rem; margin-top: 3px; }

.portrait-card { position: relative; border-radius: 30px; overflow: hidden; box-shadow: 0 36px 100px rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.12); background: #111827; }
.portrait-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.portrait-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 25%; }
.portrait-meta { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(7,12,22,.96); }
.portrait-meta strong, .portrait-meta span { display: block; }
.portrait-meta strong { font-size: .9rem; }
.portrait-meta span { color: #8fa0b7; font-size: .76rem; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.1); }

.section { padding: 96px 0; }
.section-tinted { background: var(--surface-2); border-top: 1px solid #e8edf4; border-bottom: 1px solid #e8edf4; }
.section h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.03; letter-spacing: -.045em; max-width: 760px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.prose { color: #4b5565; font-size: 1.06rem; }
.prose p:first-child { margin-top: 0; }

.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.skill-card { min-height: 210px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 10px 28px rgba(15,23,42,.04); }
.skill-card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.skill-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.timeline { margin-top: 44px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: #d6dfeb; }
.job { position: relative; margin-left: 38px; padding: 0 0 42px 24px; }
.job::before { content: ""; position: absolute; left: -36px; top: 7px; width: 12px; height: 12px; border-radius: 99px; background: #fff; border: 3px solid #6b83a4; }
.featured-job::before { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(59,130,246,.12); }
.job-head { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.job-head h3 { margin: 0; font-size: 1.35rem; }
.job-head p { margin: 4px 0 0; color: #42526a; font-weight: 700; }
.job-head time { flex: 0 0 auto; color: #667085; font-size: .88rem; font-weight: 700; }
.job ul { margin: 14px 0 0; padding-left: 20px; color: #526176; }
.job li + li { margin-top: 7px; }

.cert-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.credential-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.credential-list li { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.credential-list span { color: var(--muted); }
.certificate-card { margin: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-1deg); }
.certificate-card a { display: block; }
.certificate-card img { width: 100%; }
.certificate-card figcaption { padding: 12px 16px 15px; color: var(--muted); font-size: .8rem; }

.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.education-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.education-grid h3 { margin: 0; }
.education-grid p { margin: 8px 0 3px; font-weight: 700; color: #46566d; }
.education-grid span { color: var(--muted); font-size: .9rem; }

.contact-section { padding: 42px 0 84px; }
.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: 48px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #111c30, #0f2b3d); box-shadow: var(--shadow); }
.contact-card h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -.04em; }
.contact-card p { color: #b5c6da; max-width: 680px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
footer { background: #080d16; color: #8294ab; font-size: .82rem; }
.footer-inner { min-height: 82px; display: flex; gap: 30px; justify-content: space-between; align-items: center; }

@media (max-width: 980px) {
  nav { display: none; }
  .nav-wrap .button-small { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding-top: 68px; }
  .portrait-card { max-width: 520px; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .split, .cert-layout { grid-template-columns: 1fr; gap: 46px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 26px, 1160px); }
  .brand span:last-child { display: none; }
  .nav-wrap { min-height: 64px; }
  .button-small { font-size: .8rem; padding-inline: 12px; }
  .hero-grid { min-height: auto; padding: 56px 0 62px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.9rem); }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .skill-grid, .education-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: auto; }
  .job { margin-left: 24px; padding-left: 15px; }
  .job::before { left: -23px; }
  .timeline::before { left: 5px; }
  .job-head { display: block; }
  .job-head time { display: inline-block; margin-top: 7px; }
  .credential-list li { grid-template-columns: 1fr; gap: 2px; }
  .contact-card { padding: 30px 22px; }
  .footer-inner { padding: 22px 0; display: block; }
  .footer-inner span { display: block; }
}
