:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #1c2430;
  --text-muted: #5a6678;
  --accent: #2f6fed;
  --accent-dark: #1f56c4;
  --navy: #16233a;
  --border: #e1e7f0;
  --radius: 12px;
  --max-width: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
}
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.nav__menu { list-style: none; display: flex; gap: 1.4rem; }
.nav__menu a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav__menu a:hover { color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); transition: .3s; }

.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, transform .1s, border-color .2s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }

.hero { padding: 6rem 0 5rem; }
.hero__eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.1rem); margin: .4rem 0 .9rem; color: var(--navy); line-height: 1.15; }
.hero__tagline { color: var(--text-muted); font-size: 1.12rem; max-width: 64ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: 1.8rem; color: var(--navy); margin-bottom: 1.25rem; }
.section__text { color: var(--text-muted); max-width: 72ch; margin-bottom: 1rem; }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(22,35,58,.1); }
.card__title { margin-bottom: .6rem; color: var(--navy); font-size: 1.1rem; }
.card__text { color: var(--text-muted); margin-bottom: 1rem; }
.card__link { color: var(--accent); text-decoration: none; font-weight: 600; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.tags li { font-size: .78rem; background: var(--bg-alt); border: 1px solid var(--border); padding: .15rem .6rem; border-radius: 999px; color: var(--text-muted); }

.timeline { display: grid; gap: 1.25rem; }
.timeline__item { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.timeline__role { color: var(--navy); }
.timeline__org { font-weight: 600; }
.timeline__date { color: var(--text-muted); font-size: .9rem; margin-bottom: .6rem; }
.timeline__points { margin: .5rem 0 0 1.1rem; color: var(--text-muted); }
.timeline__points li { margin-bottom: .25rem; }

.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.skill-group__title { color: var(--navy); margin-bottom: .6rem; font-size: 1.05rem; }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; font-weight: 500; }

.resume__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 1.5rem; }
.resume__preview { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.resume__fallback { padding: .75rem 1rem; color: var(--text-muted); font-size: .9rem; }
.resume__roles { margin-top: 2rem; }

.contact-list { list-style: none; margin-bottom: 1.5rem; }
.contact-list li { margin-bottom: .4rem; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-form { display: grid; gap: 1rem; max-width: 480px; }
.contact-form label { display: grid; gap: .35rem; font-weight: 500; }
.contact-form input, .contact-form textarea { font: inherit; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ── Career Milestone Journey (.mj) ─────────────────────────── */
.mj {
  background: linear-gradient(165deg, #cce4f8 0%, #deeeff 45%, #edf6ff 100%);
  padding: 0;
}

.career-journey-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.career-map {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 430px;
  aspect-ratio: 1672 / 690;
}

.career-map__image {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  animation: careerMapFade .55s ease both;
}

@keyframes careerMapFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .career-journey-inner {
    padding: 0 .75rem;
  }
}
/* ── End Milestone Journey ──────────────────────────────────────── */


.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; color: var(--text-muted); }

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__menu.open { max-height: 460px; }
  .nav__menu li { padding: .35rem 1.25rem; }
  .nav__menu li:first-child { padding-top: 1rem; }
  .nav__menu li:last-child { padding-bottom: 1rem; }
}
