:root {
  --navy: #0c1424;
  --paper: #f4f6f8;
  --white: #ffffff;
  --text: #162032;
  --muted: #566274;
  --rule: #d6dce4;
  --accent: #1f4fd1;
  --accent-dark: #86a8ff;
  --on-navy: #b9c4d6;
  --amber-bg: #fff6e0;
  --amber-line: #d99a1c;
  --amber-text: #6b4600;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .end :focus-visible { outline-color: var(--accent-dark); }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--text); padding: 8px 14px; font: 600 14px var(--sans); z-index: 10; }
.skip:focus { left: 8px; }

.hero { background: var(--navy); color: var(--white); padding-bottom: 72px; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; font-family: var(--sans); }
.brand { font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
nav a { text-decoration: none; color: var(--on-navy); }
nav a:hover { color: var(--white); }
nav .nav-cta { color: var(--white); border: 1px solid #3a4a68; padding: 8px 16px; border-radius: 4px; }
nav .nav-cta:hover { border-color: var(--accent-dark); }
.intro { padding: 88px 0 72px; max-width: 900px; }
h1 { font: 600 clamp(40px, 6.4vw, 78px)/1.04 var(--sans); letter-spacing: -0.035em; margin: 0 0 28px; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--on-navy); max-width: 62ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.btn { display: inline-block; background: var(--accent-dark); color: var(--navy); padding: 13px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; transition: background .2s; }
.btn:hover { background: #a9c1ff; }
.textlink { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #3a4a68; }
.textlink:hover { text-decoration-color: var(--accent-dark); }

.journey-title { font: 500 15px var(--sans); color: var(--on-navy); margin: 0 0 22px; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 24px; position: relative; font-family: var(--sans); }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: #3a4a68; transform-origin: left; animation: draw 1.6s cubic-bezier(.3,.7,.2,1) both; }
.journey li { position: relative; padding-top: 28px; animation: rise .6s ease-out both; animation-delay: calc(var(--i) * .22s + .3s); }
.journey li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); border: 2px solid var(--accent-dark); }
.journey li:last-child::before { background: var(--accent-dark); }
.yr { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.journey strong { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.journey p { margin: 6px 0 0; font: 400 14px/1.5 var(--sans); color: var(--on-navy); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section { padding: 104px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
h2 { font: 600 clamp(32px, 4.2vw, 46px)/1.1 var(--sans); letter-spacing: -0.03em; margin: 0; }
.head p { margin: 0; color: var(--muted); max-width: 46ch; }
h3 { font: 600 24px/1.25 var(--sans); letter-spacing: -0.02em; margin: 0; }
h4 { font: 600 15px var(--sans); margin: 24px 0 8px; }

.project { display: grid; grid-template-columns: 280px 1fr; gap: 24px 64px; padding: 40px 0; border-top: 1px solid var(--rule); }
.project:last-child { border-bottom: 1px solid var(--rule); }
.meta p { margin: 6px 0 0; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.meta a { display: inline-block; margin-top: 14px; font: 500 15px var(--sans); color: var(--accent); text-underline-offset: 4px; }
.body > p:first-child { margin: 0; max-width: 64ch; }
.body ul { margin: 0; padding-left: 20px; max-width: 64ch; }
.body li { margin-bottom: 6px; }
.stack { margin: 20px 0 0; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.stack strong { color: var(--text); font-weight: 600; margin-right: 10px; }
.note { font: 400 14px/1.55 var(--sans); color: var(--muted); max-width: 64ch; }
.body .note { margin: 12px 0 0; }

.research { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px 72px; align-items: start; }
.r-copy h3 { font-size: 28px; }
.when { font: 500 15px var(--sans); color: var(--accent); margin: 10px 0 20px; }
.r-copy p:not(.when) { max-width: 56ch; }
.disclosure { background: var(--amber-bg); border-left: 4px solid var(--amber-line); padding: 18px 22px; margin-bottom: 28px; font-family: var(--sans); color: var(--amber-text); }
.disclosure strong { display: block; font-size: 16px; font-weight: 600; }
.disclosure p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 10px; }
th, td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--rule); font-size: 15px; vertical-align: top; }
thead th { color: var(--muted); font-weight: 500; font-size: 14px; }
tbody th { font-weight: 500; }
tbody td:nth-child(2) { font-weight: 600; color: var(--accent); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.r-data .note { margin: 14px 0 0; }

.bg { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px 80px; align-items: start; }
.prose p { max-width: 58ch; margin: 0 0 18px; }
.prose h3 { font-size: 20px; margin: 36px 0 12px; }
.edu div, .skills div { border-top: 1px solid var(--rule); padding: 14px 0; font-family: var(--sans); }
.edu dt, .skills dt { font-weight: 600; font-size: 15px; }
.edu dd, .skills dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.edu dd span { display: block; font-size: 14px; }
.skills, .edu { margin: 0; }
.skills { border-bottom: 1px solid var(--rule); }
.skills dd { color: var(--text); }

.end { background: var(--navy); color: var(--white); padding: 96px 0 40px; }
.end h2 { max-width: 18ch; font-size: clamp(34px, 5vw, 56px); }
.end > .wrap > p:not(.copy) { color: var(--on-navy); margin: 20px 0 32px; font-size: 19px; }
.end .copy { margin: 80px 0 0; padding-top: 22px; border-top: 1px solid #2a3855; font: 400 14px var(--sans); color: var(--on-navy); }

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .journey::before { left: 6px; right: auto; top: 6px; bottom: 28px; width: 1px; height: auto; transform-origin: top; animation-name: drawY; }
  .journey li { padding: 0 0 26px 36px; }
  .journey li:last-child { padding-bottom: 0; }
  .journey li::before { left: 0; top: 6px; }
  .head, .project, .research, .bg { grid-template-columns: 1fr; }
  .head { margin-bottom: 36px; }
  .project { gap: 16px; padding: 32px 0; }
  .section { padding: 72px 0; }
}
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 16px; font-size: 14px; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .intro { padding: 56px 0 48px; }
  th, td { font-size: 14px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .journey::before, .journey li { animation: none; }
  .btn { transition: none; }
}
