/* ==========================================================================
   Tokens
   ========================================================================== */
:root{
  --bg:            #F5F7F9;
  --bg-panel:      #FFFFFF;
  --navy:          #0E2A44;
  --navy-deep:     #081A2C;
  --steel:         #245073;
  --gold:          #B08D57;
  --gold-soft:     #D9C7A3;
  --text:          #16202B;
  --text-muted:    #5C6B7A;
  --line:          #DCE3E9;
  --line-strong:   #C3CDD6;

  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1160px;
  --radius: 4px;
}

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

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* subtle paper texture so flat navy/gold doesn't feel too flat */
.grain-overlay{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(245,247,249,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.brand-name{
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px; color: var(--navy);
}
.main-nav{ display: flex; gap: 34px; }
.main-nav a{
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--navy); }
.main-nav a::after{
  content:""; position: absolute; left:0; right:0; bottom:-2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.nav-cta{
  font-size: 13px; padding: 10px 18px;
}
.header-linkedin{
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--navy); border: 1px solid var(--line-strong);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.header-linkedin:hover{ background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-toggle{ display: none; }

/* Reset native button chrome wherever we use <button> in place of <a> for
   click-to-reveal contact actions (keeps them out of the static HTML/DOM text). */
button{
  font: inherit; background: none; border: none; margin: 0; appearance: none;
  -webkit-appearance: none; text-align: inherit; color: inherit;
}

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--navy); color: #fff; }
.btn-primary:hover{ background: var(--navy-deep); }
.btn-outline{ border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn-outline:hover{ border-color: var(--navy); }
.btn-ghost{ border-color: var(--gold); color: var(--navy); }
.btn-ghost:hover{ background: var(--gold); color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background: linear-gradient(180deg, var(--bg) 0%, #EEF2F5 100%);
  padding: 92px 0 100px;
  border-bottom: 1px solid var(--line);
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--steel); text-transform: uppercase;
  margin: 0 0 22px;
}
.dot{
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  display: inline-block;
}
.hero h1{
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.role{
  font-size: 19px; font-weight: 600; color: var(--steel);
  margin: 0 0 22px;
  font-family: var(--font-body);
}
.lede{
  max-width: 560px; color: var(--text-muted); font-size: 16.5px;
  margin: 0 0 34px;
}
.hero-actions{ display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-tags{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-tags li{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--navy); background: var(--bg-panel);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 7px 14px;
}

/* Hero data panel - signature element */
.hero-panel{
  background: var(--navy);
  border-radius: 10px;
  padding: 28px 26px 30px;
  color: #fff;
  box-shadow: 0 24px 60px -20px rgba(14,42,68,0.45);
  position: relative;
  overflow: hidden;
}
.hero-panel::before{
  content:"";
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,87,0.25), transparent 70%);
}
.panel-head{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.panel-title{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
.panel-status{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--gold-soft); display: flex; align-items: center; gap: 6px;
}
.pulse{
  width: 6px; height: 6px; border-radius: 50%; background: #6FCF97;
  box-shadow: 0 0 0 0 rgba(111,207,151,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(111,207,151,0.55); }
  70%{ box-shadow: 0 0 0 7px rgba(111,207,151,0); }
  100%{ box-shadow: 0 0 0 0 rgba(111,207,151,0); }
}

.panel-kpis{
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.kpi{ display: flex; flex-direction: column; gap: 4px; }
.kpi-value{
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  color: #fff;
}
.kpi-value small{ font-size: 16px; color: var(--gold-soft); }
.kpi-label{
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
}

.panel-subtitle{
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; text-transform: uppercase;
}
.panel-chart{ margin-bottom: 26px; }
.trajectory-svg{ width: 100%; height: auto; display: block; }
.trajectory-line{
  stroke: var(--gold-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.trajectory-dot{ fill: var(--navy); stroke: var(--gold-soft); stroke-width: 2; }
.trajectory-dot--now{ fill: var(--gold-soft); stroke: #fff; }
.trajectory-labels{
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.domain-bars{ display: flex; flex-direction: column; gap: 12px; }
.domain-bar{ display: flex; flex-direction: column; gap: 6px; }
.domain-name{ font-size: 12.5px; color: rgba(255,255,255,0.85); }
.bar{
  height: 5px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden;
}
.bar i{
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--steel), var(--gold-soft));
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head{ max-width: 620px; margin-bottom: 52px; }
.section-eyebrow{
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2{ font-size: clamp(28px, 3vw, 36px); }

/* Summary */
.summary-grid{
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px;
  align-items: start;
}
.summary-text{ font-size: 17px; color: var(--text); max-width: 620px; }
.summary-facts{
  display: grid; gap: 20px;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}
.fact{ display: flex; flex-direction: column; gap: 3px; }
.fact-label{
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.fact-value{ font-weight: 600; color: var(--navy); font-size: 15px; }
.fact-value a:hover{ color: var(--gold); }

/* Delivery scorecard */
.scorecard{
  margin-top: 56px;
  background: var(--navy);
  border-radius: 8px;
  padding: 30px 32px 28px;
}
.scorecard-label{ margin-bottom: 18px; }
.scorecard-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.scorecard-item{ display: flex; flex-direction: column; gap: 6px; }
.scorecard-value{
  font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff;
}
.scorecard-label-sm{
  font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.4;
}
.scorecard-note{
  margin: 16px 0 0; font-family: var(--font-mono); font-size: 12px;
  color: var(--gold-soft); letter-spacing: 0.01em;
}
.fact-value--contact{
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 2px 0; border-radius: 3px;
  transition: opacity .2s ease;
}
.fact-value--contact:hover{ opacity: 0.7; }
.fact-value--contact img{ display: block; }

/* Timeline */
.timeline{ list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before{
  content:""; position: absolute; left: 78px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line-strong);
}
.timeline-item{
  display: grid; grid-template-columns: 156px 1fr; gap: 32px;
  margin-bottom: 44px; position: relative;
}
.timeline-item:last-child{ margin-bottom: 0; }
.timeline-marker{
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--font-mono); text-align: right; padding-top: 4px;
  position: relative;
}
.timeline-marker::after{
  content:""; position: absolute; right: -37px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold);
}
.timeline-year{ font-size: 15px; font-weight: 600; color: var(--navy); }
.timeline-year--end{ color: var(--text-muted); font-weight: 500; font-size: 13px; }
.timeline-card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 28px;
}
.section-alt .timeline-card{ background: var(--bg); }
.timeline-card-head{ margin-bottom: 14px; }
.timeline-card-head h3{ font-size: 21px; margin-bottom: 4px; }
.timeline-org{ color: var(--steel); font-weight: 600; font-size: 14px; }
.timeline-card ul{ margin: 0; padding-left: 20px; color: var(--text-muted); }
.timeline-card li{ margin-bottom: 8px; }
.timeline-card li:last-child{ margin-bottom: 0; }

/* Expertise */
.expertise-highlights{
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px;
}
.chip{
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line-strong); color: var(--navy);
}
.chip--accent{ border-color: var(--gold); background: rgba(176,141,87,0.08); }

.competency-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.competency-card{
  background: var(--bg-panel); padding: 26px 24px;
}
.competency-label{
  display: block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold);
  margin-bottom: 10px;
}
.competency-card p{ margin: 0; color: var(--text); font-size: 14.5px; }

/* Projects */
.project-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.project-card{
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 26px; transition: border-color .2s ease, transform .2s ease;
}
.project-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.project-card--feature{
  grid-column: span 2;
  background: var(--navy); border-color: var(--navy);
}
.project-card--feature h3, .project-card--feature p{ color: #fff; }
.project-card--feature .project-tag{ color: var(--gold-soft); border-color: rgba(255,255,255,0.25); }
.project-tag{
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 12px;
  margin-bottom: 16px;
}
.project-card h3{ font-size: 19px; margin-bottom: 10px; }
.project-card p{ margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* Education */
.edu-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.edu-card{
  background: var(--bg-panel); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 4px; padding: 26px 24px;
}
.edu-years{
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  display: block; margin-bottom: 12px;
}
.edu-card h3{ font-size: 18px; margin-bottom: 6px; }
.edu-school{ margin: 0 0 4px; color: var(--text); font-weight: 500; font-size: 14.5px; }
.edu-score{ margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* Contact */
.section-contact{
  background: var(--navy);
  border-top: 1px solid var(--navy-deep);
}
.section-head--light h2{ color: #fff; }
.section-head--light .section-eyebrow{ color: var(--gold-soft); }
.contact-lede{ color: rgba(255,255,255,0.65); font-size: 16px; margin-top: 14px; }
.contact-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px;
}
.contact-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s ease, border-color .2s ease;
}
.contact-card:not(.contact-card--static):hover{
  background: rgba(255,255,255,0.09); border-color: var(--gold);
}
button.contact-card{
  font-family: inherit; text-align: left; width: 100%; cursor: pointer;
}
.contact-value--img{
  height: 19px; width: auto; display: block; margin-top: 1px;
  /* image is already white on transparent, matching .contact-value color */
}
.contact-label{
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gold-soft);
}
.contact-value{ color: #fff; font-weight: 600; font-size: 16px; }

/* Footer */
.site-footer{ background: var(--navy-deep); padding: 26px 0; }
.footer-inner{
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.5); font-size: 13px;
}
.footer-inner a:hover{ color: var(--gold-soft); }

/* ==========================================================================
   Motion / accessibility
   ========================================================================== */
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

[data-reveal]{
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
  .pulse{ animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .summary-grid{ grid-template-columns: 1fr; }
  .scorecard-grid{ grid-template-columns: repeat(2, 1fr); }
  .competency-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-card--feature{ grid-column: span 2; }
  .edu-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px; gap: 18px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    z-index: 400;
  }
  .main-nav.is-open{ transform: translateY(0); }
  .nav-cta{ display: none; }
  .nav-toggle{
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span{ height: 2px; background: var(--navy); border-radius: 2px; }
  .competency-grid{ grid-template-columns: 1fr; }
  .project-grid{ grid-template-columns: 1fr; }
  .project-card--feature{ grid-column: span 1; }
  .timeline::before{ left: 10px; }
  .timeline-item{ grid-template-columns: 1fr; gap: 14px; }
  .timeline-marker{ flex-direction: row; align-items: baseline; gap: 8px; justify-content: flex-start; padding-left: 26px; }
  .timeline-marker::after{ left: 4px; right: auto; top: 4px; }
}
