/* ============================================
   TOKENS
============================================ */
:root{
  --navy-900:#081527;
  --navy-800:#0e1f38;
  --navy-700:#132a49;
  --navy-600:#1c3a60;
  --ink-100:#eaf1fa;
  --ink-300:#9fb3cc;
  --ink-500:#6c839f;
  --amber-500:#e3a73b;
  --amber-300:#f0c775;
  --verified-500:#4fbf8b;

  --font-mono:'JetBrains Mono', ui-monospace, monospace;
  --font-head:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;

  --max-w:1080px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--navy-900);
  color:var(--ink-100);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;}

img{max-width:100%;display:block;}

/* subtle network-grid backdrop */
.grid-backdrop{
  position:fixed;
  inset:0;
  z-index:-1;
  background-image:
    linear-gradient(var(--navy-700) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-700) 1px, transparent 1px);
  background-size:64px 64px;
  opacity:0.18;
  mask-image:radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}

/* ============================================
   HEADER / NAV
============================================ */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 32px;
  background:rgba(8,21,39,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--navy-700);
}

.brand{
  font-family:var(--font-mono);
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:0.05em;
  text-decoration:none;
  color:var(--ink-100);
}
.brand-dot{color:var(--amber-500);}

.site-nav{
  display:flex;
  gap:28px;
}
.site-nav a{
  text-decoration:none;
  font-size:0.92rem;
  color:var(--ink-300);
  font-weight:500;
  transition:color .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible{color:var(--amber-300);}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:36px;
  height:36px;
  background:none;
  border:1px solid var(--navy-600);
  border-radius:6px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:18px;
  margin:0 auto;
  background:var(--ink-100);
}

/* ============================================
   HERO
============================================ */
.hero{
  padding:88px 24px 72px;
  text-align:center;
}
.hero-inner{
  max-width:640px;
  margin:0 auto;
}

.hero-photo-wrap{
  position:relative;
  width:220px;
  height:220px;
  margin:0 auto 28px;
}
.hero-photo{
  width:220px;
  height:220px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--navy-700);
}
.hero-photo-ring{
  position:absolute;
  inset:-10px;
  border-radius:50%;
  border:1px dashed var(--amber-500);
  opacity:0.6;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.18em;
  color:var(--amber-500);
  margin:0 0 10px;
}

.hero-name{
  font-family:var(--font-head);
  font-size:clamp(2.2rem, 5vw, 3rem);
  font-weight:700;
  margin:0 0 8px;
  letter-spacing:-0.01em;
}

.hero-location{
  color:var(--ink-300);
  font-size:0.95rem;
  margin:0 0 24px;
}

.hero-bio{
  color:var(--ink-300);
  font-size:1rem;
  max-width:560px;
  margin:0 auto 32px;
}

.cert-stamps{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:36px;
}
.stamp{
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.04em;
  padding:6px 12px;
  border:1px dashed var(--navy-600);
  border-radius:20px;
  color:var(--ink-300);
  transition:border-color .2s ease, color .2s ease;
}
.stamp:hover{
  border-color:var(--amber-500);
  color:var(--amber-300);
}

.social-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 18px;
}
.social-row a{
  text-decoration:none;
  font-size:0.9rem;
  font-weight:500;
  color:var(--ink-100);
  border-bottom:1px solid var(--navy-600);
  padding-bottom:2px;
  transition:border-color .2s ease, color .2s ease;
}
.social-row a:hover,
.social-row a:focus-visible{
  border-color:var(--amber-500);
  color:var(--amber-300);
}

/* ============================================
   SECTION SHELL
============================================ */
section{
  max-width:var(--max-w);
  margin:0 auto;
  padding:64px 24px;
}

.section-eyebrow{
  font-family:var(--font-mono);
  font-size:0.75rem;
  letter-spacing:0.16em;
  color:var(--amber-500);
  margin:0 0 8px;
}

.section-title{
  font-family:var(--font-head);
  font-size:clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight:600;
  margin:0 0 28px;
}

/* ============================================
   EXPERIENCE
============================================ */
.experience .job:first-of-type{
  border-top:none;
  padding-top:16px;
}
.job{
  border-top:1px solid var(--navy-700);
  padding:28px 0;
}
.job:last-child{padding-bottom:0;}

.job-header{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:6px 20px;
  margin-bottom:14px;
}

.job-title{
  font-family:var(--font-head);
  font-size:1.15rem;
  font-weight:600;
  margin:0 0 2px;
  color:var(--ink-100);
}

.job-company{
  margin:0;
  color:var(--amber-300);
  font-size:0.92rem;
}

.job-dates{
  font-family:var(--font-mono);
  font-size:0.8rem;
  color:var(--ink-500);
  margin:0;
  white-space:nowrap;
}

.job-list{
  margin:0;
  padding-left:1.2em;
  color:var(--ink-300);
  font-size:0.95rem;
}
.job-list li{margin-bottom:8px;}
.job-list li:last-child{margin-bottom:0;}

/* ============================================
   PROJECTS
============================================ */
.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  margin-top:24px;
}

.project-card{
  background:var(--navy-800);
  border:1px solid var(--navy-700);
  border-radius:10px;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:border-color .2s ease, transform .2s ease;
}
.project-card:hover{
  border-color:var(--amber-500);
  transform:translateY(-2px);
}

.project-card h3{
  font-family:var(--font-head);
  font-size:1.05rem;
  margin:0;
  color:var(--ink-100);
}

.project-card .tools{
  font-family:var(--font-mono);
  font-size:0.75rem;
  color:var(--verified-500);
  margin:0;
}

.project-card .desc{
  color:var(--ink-300);
  font-size:0.9rem;
  margin:0 0 6px;
}

.card-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  margin-top:auto;
}
.card-links a{
  font-size:0.85rem;
  text-decoration:none;
  color:var(--amber-300);
  font-weight:500;
}
.card-links a:hover{text-decoration:underline;}

/* ============================================
   EDUCATION
============================================ */
.education-note{
  color:var(--ink-500);
  font-size:0.9rem;
  max-width:560px;
  margin:0 0 28px;
}

.cred-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:18px;
}

.cred-card{
  margin:0;
  background:var(--navy-800);
  border:1px solid var(--navy-700);
  border-radius:10px;
  overflow:hidden;
  transition:border-color .2s ease;
}
.cred-card:hover{border-color:var(--amber-500);}

.cred-img-wrap{
  aspect-ratio:4/3;
  background:var(--navy-900);
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--navy-700);
}
.cred-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cred-card figcaption{
  padding:12px 14px;
  font-size:0.85rem;
  color:var(--ink-300);
  text-align:center;
}

/* ============================================
   FOOTER
============================================ */
.site-footer{
  text-align:center;
  border-top:1px solid var(--navy-700);
  padding-top:64px;
  padding-bottom:64px;
}
.footer-email{
  display:inline-block;
  font-family:var(--font-head);
  font-size:1.3rem;
  font-weight:600;
  text-decoration:none;
  color:var(--amber-300);
  margin-bottom:24px;
}
.footer-social{margin-bottom:32px;}

.copyright{
  color:var(--ink-500);
  font-size:0.82rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width:720px){
  .hero-photo-wrap{width:160px; height:160px;}
  .hero-photo{width:160px; height:160px;}

  .site-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--navy-800);
    border-bottom:1px solid var(--navy-700);
    flex-direction:column;
    padding:16px 24px;
    gap:16px;
    display:none;
  }
  .site-nav.open{display:flex;}
  .nav-toggle{display:flex;}
}

/* ============================================
   ACCESSIBILITY
============================================ */
a:focus-visible,
button:focus-visible{
  outline:2px solid var(--amber-500);
  outline-offset:2px;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{transition:none !important;}
}
