/* ---------- tokens ---------- */
:root{
  --bg: #FAFAF8;
  --bg-alt: #F1F0EB;
  --ink: #14161A;
  --ink-muted: #5B5D58;
  --ink-faint: #8C8B85;
  --accent: #2F6FED;
  --accent-deep: #1E4FBD;
  --accent-tint: #E9F0FE;
  --line: rgba(20,22,26,0.09);
  --line-strong: rgba(20,22,26,0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(20,22,26,0.04), 0 12px 32px rgba(20,22,26,0.06);
  --shadow-lift: 0 2px 6px rgba(20,22,26,0.06), 0 24px 48px rgba(20,22,26,0.10);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

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

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ margin:0; font-weight: 600; letter-spacing: -0.02em; }
p{ margin:0; }

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

/* subtle ambient background field */
.bg-field{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 82% 8%, rgba(47,111,237,0.07), transparent 60%),
    radial-gradient(40% 30% at 10% 30%, rgba(47,111,237,0.04), transparent 60%);
}

/* ---------- nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,248,0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name{ font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links{ display: flex; gap: 32px; }
.nav-links a{
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-cta{
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover{ background: var(--accent); transform: translateY(-1px); }

@media (max-width: 720px){
  .nav-links{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 32px 140px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
  margin: 0 0 24px;
  text-transform: lowercase;
}

.hero-title{
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  margin: 0 0 24px;
}

.hero-sub{
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 460px;
  margin: 0 0 36px;
}

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(47,111,237,0.2), 0 12px 24px rgba(47,111,237,0.25);
}
.btn-primary:hover{ background: var(--accent-deep); transform: translateY(-2px); }
.btn-primary:active{ transform: translateY(0) scale(0.98); }

.btn-secondary{
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover{ border-color: var(--ink); transform: translateY(-2px); }
.btn-secondary:active{ transform: translateY(0) scale(0.98); }

/* floating glass cards */
.hero-cards{
  position: relative;
  height: 380px;
}
.glass-card{
  position: absolute;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.card-value{ font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.card-value-sm{ font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card-label{ font-size: 13px; color: var(--ink-muted); }
.card-mono{ font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-deep); }

.card-1{ top: 6%; left: 4%; width: 210px; }
.card-2{ top: 46%; left: 30%; width: 260px; }
.card-3{ top: 74%; left: 2%; width: 190px; }

@media (max-width: 960px){
  .hero{ grid-template-columns: 1fr; padding-top: 64px; }
  .hero-cards{ height: 260px; margin-top: 20px; }
  .card-1{ left: 0; top: 0; }
  .card-2{ left: 38%; top: 30%; }
  .card-3{ left: 4%; top: 66%; }
}

/* ---------- sections ---------- */
.section{ padding: 100px 32px; }
.section-alt{ background: var(--bg-alt); }
.section-inner{ max-width: 1120px; margin: 0 auto; }

.section-eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
  letter-spacing: 0.03em;
  margin: 0 0 16px;
}
.section-title{ font-size: clamp(28px,4vw,38px); margin-bottom: 40px; }

/* about */
.about-grid{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.photo-placeholder{
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-tint), #fff);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.profile-photo{
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.about-lead{ font-size: 20px; font-weight: 500; margin-bottom: 18px; line-height: 1.5; }
.about-copy p{ color: var(--ink-muted); margin-bottom: 16px; font-size: 16px; }

.cert-link{
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.cert-link:hover{
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

.tag-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag{
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
}

@media (max-width: 720px){
  .about-grid{ grid-template-columns: 1fr; }
  .photo-placeholder, .profile-photo{ width: 160px; height: 160px; }
}

/* experience */
.exp-row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.exp-row:last-child{ border-bottom: 1px solid var(--line); }
.exp-what h3{ font-size: 20px; margin-bottom: 4px; }
.exp-org{ color: var(--ink-muted); font-size: 14px; margin-bottom: 16px; }
.exp-what ul{ display: flex; flex-direction: column; gap: 10px; }
.exp-what li{
  position: relative;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
}
.exp-what li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 720px){
  .exp-row{ grid-template-columns: 1fr; gap: 12px; }
}

/* projects */
.project-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.project-glow{
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(47,111,237,0.10), transparent 70%);
  pointer-events: none;
}
.project-tag{ display: block; margin-bottom: 18px; }
.project-card h3{ font-size: 19px; margin-bottom: 10px; }
.project-card p{ color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }

.project-note{
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

@media (max-width: 900px){
  .project-grid{ grid-template-columns: 1fr; }
}

/* contact */
.contact-inner{ text-align: center; }
.contact-title{ font-size: clamp(32px,5vw,48px); margin-bottom: 16px; }
.contact-sub{
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 36px;
}
.contact-inner .hero-actions{ justify-content: center; }

/* footer */
.footer{ border-top: 1px solid var(--line); padding: 32px; }
.footer-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-links{ display: flex; gap: 20px; }
.footer-links a{ transition: color 0.2s ease; }
.footer-links a:hover{ color: var(--ink); }
