/* ── Tokens: Precision system ────────────────────────── */
:root {
  --navy:      #0C1117;   /* near-black cool dark */
  --navy-mid:  #161D27;   /* secondary dark */
  --cream:     #F5F7FA;   /* cool off-white */
  --pale:      #E8ECF4;   /* light cool grey */
  --magenta:   #2454E8;   /* electric corporate blue */
  --teal:      #4F7096;   /* steel blue-grey */
  --yellow:    #D4A843;   /* warm gold — deliberate single warm note */
  --white:     #FFFFFF;
  --text-dark: #0C1117;
  --text-mid:  #5B6B85;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', Arial, sans-serif;
  --max-w: 1100px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Nav ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}
#nav.scrolled {
  background: rgba(12, 17, 23, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: rgba(255,255,255,0.9); }
.nav-cta {
  background: var(--magenta) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  letter-spacing: 0.04em !important;
  transition: background 0.2s, opacity 0.2s !important;
}
.nav-cta:hover { background: #1a40c8 !important; }

/* ── Hero ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
/* Blueprint grid — architectural precision */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36,84,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,84,232,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(36,84,232,0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(79,112,150,0.12) 0%, transparent 45%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(12,17,23,0.96) 40%, rgba(22,29,39,0.5) 100%);
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(36,84,232,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 48px 100px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.9;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--yellow);
  opacity: 0.6;
}
h1.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
h1.hero-name .accent { color: var(--magenta); }
.hero-rule {
  display: block;
  width: 48px; height: 2px;
  background: var(--magenta);
  margin: 32px 0;
  opacity: 0.9;
}
.hero-tagline {
  color: rgba(255,255,255,0.42);
  font-size: 0.9rem;
  font-weight: 400;
  max-width: 460px;
  line-height: 1.85;
  margin-bottom: 44px;
  letter-spacing: 0.02em;
}
.hero-tagline .dot { color: rgba(36,84,232,0.8); margin: 0 10px; }
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--magenta);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s;
}
.btn-fill:hover { background: #1a40c8; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: rgba(36,84,232,0.6); color: rgba(255,255,255,0.85); transform: translateY(-1px); }
.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.18);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.scroll-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ── Shared section chrome ──────────────────────────── */
section { padding: 96px 48px; }
.inner { max-width: var(--max-w); margin: 0 auto; }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--magenta);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--font-sans);
}
.sec-eyebrow::before {
  content: '';
  display: block;
  width: 16px; height: 1px;
  background: var(--magenta);
}
.sec-eyebrow.light { color: rgba(212,168,67,0.75); }
.sec-eyebrow.light::before { background: rgba(212,168,67,0.55); }
h2.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 52px;
  letter-spacing: -0.01em;
}
h2.sec-title.on-dark { color: var(--white); }

/* ── About ──────────────────────────────────────────── */
#about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}
.about-bio {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
}
.about-bio:last-of-type { margin-bottom: 28px; }
.about-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.stats-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-card {
  background: var(--white);
  border-left: 2px solid var(--yellow);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.stat-lbl {
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ── Experience ─────────────────────────────────────── */
#experience { background: var(--white); }
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--magenta) 0%, var(--teal) 100%);
  opacity: 0.35;
}
.tl-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -31px; top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--magenta);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--magenta);
}
.tl-dot.alt { background: var(--teal); box-shadow: 0 0 0 1.5px var(--teal); }
.tl-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.tl-co {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  font-family: var(--font-sans);
}
.tl-co.alt { color: var(--teal); }
.tl-date {
  font-size: 0.73rem;
  color: var(--text-mid);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.tl-role {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.tl-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.78;
  max-width: 680px;
  font-weight: 300;
}

/* ── Skills ─────────────────────────────────────────── */
#skills {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.skills-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(36,84,232,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 5% 95%, rgba(79,112,150,0.1) 0%, transparent 45%);
  background-image:
    linear-gradient(rgba(36,84,232,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,84,232,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 48px;
  position: relative;
  z-index: 1;
}
.sg-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  opacity: 0.75;
  font-family: var(--font-sans);
}
.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.77rem;
  font-weight: 400;
  padding: 5px 11px;
  border-radius: 3px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
}
/* Blue-tinted — leadership, strategy */
.tag-m {
  background: rgba(36,84,232,0.12);
  color: rgba(130,163,255,0.95);
  border: 1px solid rgba(36,84,232,0.25);
}
/* Steel — delivery, sectors */
.tag-t {
  background: rgba(79,112,150,0.12);
  color: rgba(140,175,210,0.9);
  border: 1px solid rgba(79,112,150,0.25);
}
/* Gold — methodology */
.tag-y {
  background: rgba(212,168,67,0.1);
  color: rgba(212,168,67,0.85);
  border: 1px solid rgba(212,168,67,0.2);
}
/* Neutral */
.tag-n {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.09);
}

/* ── Projects ───────────────────────────────────────── */
#projects { background: var(--cream); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.proj-card {
  background: var(--white);
  border: 1px solid rgba(12,17,23,0.07);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  overflow: hidden;
}
.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(12,17,23,0.1);
}
.proj-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--teal));
}
.proj-body {
  padding: 26px 26px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-icon {
  width: 34px; height: 34px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.proj-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.proj-desc {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 20px;
  font-weight: 300;
}
.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-tags { display: flex; gap: 5px; }
.proj-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--pale);
  padding: 3px 8px;
  border-radius: 3px;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  transition: gap 0.2s;
}
.proj-link:hover { gap: 9px; }

/* ── Education ──────────────────────────────────────── */
#education { background: var(--white); padding: 80px 48px; }
.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 620px;
}
.edu-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--pale);
  border: 1.5px solid var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
/* Seal image override — transparent, no border, larger */
.edu-icon--logo {
  background: transparent;
  border: none;
  width: 80px;
  height: 80px;
}
.edu-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.edu-degree {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: 0;
}
.edu-school {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 300;
}
.edu-field {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-family: var(--font-sans);
}

/* ── Contact / Footer ───────────────────────────────── */
footer#contact {
  background: var(--navy);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}
.contact-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(36,84,232,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 95% 85%, rgba(79,112,150,0.07) 0%, transparent 50%);
  background-image:
    linear-gradient(rgba(36,84,232,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,84,232,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.contact-sub {
  color: rgba(255,255,255,0.32);
  font-size: 0.87rem;
  max-width: 340px;
  line-height: 1.7;
  font-weight: 300;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.83rem;
  font-weight: 300;
  transition: color 0.2s;
}
.contact-item svg { opacity: 0.4; flex-shrink: 0; }
.contact-item:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── Scroll reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.stagger-1 { transition-delay: 0.08s; }
.reveal.stagger-2 { transition-delay: 0.16s; }
.reveal.stagger-3 { transition-delay: 0.24s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  section { padding: 64px 24px; }
  #nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-content { padding: 120px 24px 80px; }
  .hero-scroll-hint { left: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-items { align-items: flex-start; }
  #education { padding: 64px 24px; }
  footer#contact { padding: 64px 24px; }
}
