@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg:#F3F5F8;
  --surface:#FFFFFF;
  --surface-2:#EAEEF3;
  --ink:#0E1520;
  --ink-soft:#4B5568;
  --line:#DCE1E8;
  --navy:#0B2A4D;
  --navy-ink:#08213D;
  --steel:#3E6280;
  --accent:#C89A1C;
  --tile-bg:#0B2A4D;
  --tile-ink:#F3F5F8;
  --tile-line:rgba(255,255,255,0.14);
  --shadow: 0 1px 2px rgba(10,20,35,0.06), 0 8px 24px -12px rgba(10,20,35,0.18);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0A1220;
    --surface:#141F35;
    --surface-2:#1A2740;
    --ink:#E7ECF3;
    --ink-soft:#9AA8BC;
    --line:#2C3D5E;
    --navy:#13284A;
    --navy-ink:#0B1A32;
    --steel:#8FAFC9;
    --accent:#E4BB3F;
    --tile-bg:#1B2E4E;
    --tile-ink:#EEF2F8;
    --tile-line:rgba(228,187,63,0.3);
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 28px -14px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"]{
  --bg:#0A1220;
  --surface:#141F35;
  --surface-2:#1A2740;
  --ink:#E7ECF3;
  --ink-soft:#9AA8BC;
  --line:#2C3D5E;
  --navy:#13284A;
  --navy-ink:#0B1A32;
  --steel:#8FAFC9;
  --accent:#E4BB3F;
  --tile-bg:#1B2E4E;
  --tile-ink:#EEF2F8;
  --tile-line:rgba(228,187,63,0.3);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 28px -14px rgba(0,0,0,0.6);
}

*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  line-height:1.55;
}
.num{ font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; }

a{ color:inherit; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

.metabar{
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.metabar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 32px;
  max-width:1180px; margin:0 auto;
  font-size:12.5px;
  color:var(--ink-soft);
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.metabar-inner .doc-id{ font-family:'IBM Plex Mono', monospace; color:var(--steel); }

.hero{ padding:64px 0 0; }
.hero-eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  color:var(--steel);
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin:0 0 18px;
}
.hero h1{
  font-size:clamp(2.4rem, 5vw, 3.6rem);
  font-weight:600;
  letter-spacing:-0.01em;
  margin:0 0 10px;
  text-wrap:balance;
  color:var(--ink);
}
.hero .role{
  font-size:clamp(1.1rem, 2vw, 1.35rem);
  font-weight:400;
  color:var(--steel);
  margin:0 0 22px;
  max-width:46ch;
  text-wrap:balance;
}
.hero .meta-row{
  display:flex; flex-wrap:wrap; gap:20px;
  font-size:14px; color:var(--ink-soft);
  margin:0 0 32px;
}
.hero .meta-row span{ display:flex; align-items:center; gap:7px; }
.hero .meta-row svg{ width:15px; height:15px; flex:none; opacity:0.75; }

.cta-row{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:56px; }
.btn{
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  padding:13px 22px;
  border-radius:3px;
  border:1px solid transparent;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  transition:transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{
  background:var(--navy);
  color:#fff;
  box-shadow:var(--shadow);
  border-bottom:2px solid var(--accent);
}
.btn-primary:hover{ background:var(--navy-ink); }
.btn-secondary{
  background:transparent;
  color:var(--ink);
  border-color:var(--line);
}
.btn-secondary:hover{ border-color:var(--steel); }
.btn-text{
  background:none;
  border:none;
  padding:13px 4px;
  color:var(--steel);
  font-weight:600;
}
.btn-text:hover{ color:var(--accent); }

.kpi-strip{
  background:var(--tile-bg);
  border:1px solid var(--tile-line);
  border-radius:6px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  box-shadow:var(--shadow);
  overflow:hidden;
  margin-bottom:72px;
}
.kpi{
  padding:26px 24px;
  border-right:1px solid var(--tile-line);
  color:var(--tile-ink);
  position:relative;
}
.kpi:last-child{ border-right:none; }
.kpi::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--accent);
  opacity:0.9;
}
.kpi .kpi-value{
  font-family:'IBM Plex Mono', monospace;
  font-size:1.75rem;
  font-weight:600;
  letter-spacing:-0.01em;
  display:block;
  margin-bottom:6px;
}
.kpi .kpi-label{
  font-size:12.5px;
  color:rgba(243,245,248,0.68);
  line-height:1.4;
}

.body-grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:56px;
  padding-bottom:88px;
}

.sidebar{ position:sticky; top:32px; align-self:start; display:flex; flex-direction:column; gap:36px; }
.side-block h3{
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--steel);
  margin:0 0 14px;
}
.contact-list{ display:flex; flex-direction:column; gap:10px; font-size:14px; }
.contact-list a{ text-decoration:none; }
.contact-list a:hover{ color:var(--accent); }
.tag-grid{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size:12.5px;
  padding:6px 10px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:3px;
  color:var(--ink-soft);
}
.lang-row{ display:flex; justify-content:space-between; font-size:14px; padding:6px 0; border-bottom:1px solid var(--line); }
.lang-row:last-child{ border-bottom:none; }
.lang-level{ color:var(--ink-soft); font-size:13px; }

.content section{ margin-bottom:64px; }
.content h2{
  font-size:1.5rem;
  font-weight:600;
  margin:0 0 20px;
  display:flex;
  align-items:baseline;
  gap:12px;
}
.content h2 .num{ color:var(--steel); font-size:0.95rem; font-weight:500; }
.lede{ font-size:16px; color:var(--ink-soft); max-width:66ch; margin:0 0 8px; }

.timeline{ display:flex; flex-direction:column; }
.tl-item{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:20px;
  padding:22px 0;
  border-top:1px solid var(--line);
}
.tl-item:first-child{ border-top:none; }
.tl-period{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--steel); padding-top:3px; }
.tl-role{ font-weight:600; font-size:15.5px; margin:0 0 3px; }
.tl-org{ font-size:13.5px; color:var(--ink-soft); margin:0 0 10px; }
.tl-desc{ font-size:14px; color:var(--ink-soft); max-width:64ch; }

.case{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:6px;
  padding:32px;
  box-shadow:var(--shadow);
}
.case-steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; margin-top:24px; }
.case-step{ padding:0 16px 0 0; border-right:1px solid var(--line); }
.case-step:last-child{ border-right:none; padding-right:0; }
.case-step:not(:first-child){ padding-left:16px; }
.case-step .step-num{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--accent); display:block; margin-bottom:8px; }
.case-step .step-label{ font-size:13px; font-weight:600; margin-bottom:6px; }
.case-step .step-desc{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; }

.edu-row{ display:grid; grid-template-columns:1fr auto; gap:12px; padding:16px 0; border-top:1px solid var(--line); font-size:14px; }
.edu-row:first-child{ border-top:none; }
.edu-inst{ font-weight:600; }
.edu-detail{ color:var(--ink-soft); font-size:13px; }
.edu-year{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--steel); white-space:nowrap; }

footer{
  border-top:1px solid var(--line);
  padding:32px;
  text-align:center;
  font-size:12.5px;
  color:var(--ink-soft);
}

@media (max-width: 860px){
  .wrap{ padding:0 20px; }
  .body-grid{ grid-template-columns:1fr; }
  .sidebar{ position:static; }
  .kpi-strip{ grid-template-columns:1fr; }
  .kpi{ border-right:none; border-bottom:1px solid var(--tile-line); }
  .kpi:last-child{ border-bottom:none; }
  .case-steps{ grid-template-columns:1fr; }
  .case-step{ border-right:none; border-top:1px solid var(--line); padding:16px 0 0 !important; margin-top:16px; }
  .case-step:first-child{ border-top:none; margin-top:0; }
  .tl-item{ grid-template-columns:1fr; gap:6px; }
  .metabar-inner{ flex-direction:column; align-items:flex-start; gap:4px; }
}

@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
}
