:root {
  --ink: #111b2e;
  --navy: #172a4a;
  --blue: #2f5d8c;
  --maize: #ffcb05;
  --paper: #f7f5ef;
  --white: #ffffff;
  --muted: #657083;
  --line: #d9dde5;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--white); padding: .75rem 1rem; }
.site-header { max-width: var(--max); margin: 0 auto; padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; text-decoration: none; }
nav { display: flex; gap: 1.5rem; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 700; }
nav a:hover { color: var(--blue); }
main { overflow: hidden; }
.hero { max-width: var(--max); margin: 0 auto; padding: 5.5rem 2rem 4.5rem; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 5rem; align-items: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 1.4rem; font-size: clamp(2.65rem, 5.8vw, 5.35rem); letter-spacing: -.055em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.035em; }
h3 { margin-bottom: .35rem; font-size: 1.35rem; }
.lede { max-width: 760px; margin: 0; color: #3f4a5c; font-size: 1.17rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.15rem; border: 1px solid var(--navy); border-radius: .4rem; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--navy); color: var(--white); }
.button.secondary { background: transparent; color: var(--navy); }
.button:hover { transform: translateY(-1px); }
.portrait-card { margin: 0; padding: .75rem; background: var(--white); border: 1px solid var(--line); box-shadow: 18px 18px 0 var(--maize); }
.portrait-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; filter: brightness(1.08); }
.portrait-card figcaption { padding: .8rem .25rem .2rem; color: var(--muted); font-size: .78rem; }
.proof-strip { background: var(--navy); color: var(--white); display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-strip div { padding: 1.7rem 2rem; border-right: 1px solid rgba(255,255,255,.18); }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip span { margin-top: .2rem; color: #cbd5e3; font-size: .82rem; }
.section { max-width: var(--max); margin: 0 auto; padding: 6.5rem 2rem; }
.section-heading { max-width: 740px; margin-bottom: 2.75rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 1.05fr 1fr 2fr; column-gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.timeline article p { margin-top: 0; }
.timeline-meta { display: flex; flex-direction: column; gap: .35rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.role { margin: 0; color: var(--blue); font-weight: 800; }
.note { color: var(--muted); font-size: .9rem; }
.projects { max-width: none; background: var(--white); }
.projects > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.project-card { display: flex; flex-direction: column; min-height: 470px; padding: 2rem; border: 1px solid var(--line); background: var(--paper); }
.project-card.featured { grid-row: span 2; background: var(--navy); color: var(--white); }
.project-card.featured .note { color: #cbd5e3; }
.project-visual { margin: 1.3rem 0 .5rem; padding: .65rem; background: #f7f5ef; border-radius: .35rem; }
.project-visual img { display: block; width: 100%; height: auto; }
.project-visual figcaption { margin-top: .5rem; color: #536173; font-size: .76rem; }
.project-kicker { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured .project-kicker { color: #cbd5e3; }
.project-card h3 { font-size: 2rem; letter-spacing: -.03em; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.metrics div { padding: 1rem .4rem; }
.metrics dt { color: #cbd5e3; font-size: .72rem; text-transform: uppercase; }
.metrics dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1rem; }
.tags span { padding: .32rem .55rem; border: 1px solid currentColor; border-radius: 99px; font-size: .72rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.card-actions a { color: inherit; font-size: .88rem; font-weight: 800; text-underline-offset: .25rem; }
.fun-projects { padding-top: 5rem; }
.fun-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--maize); }
.fun-card p { max-width: 760px; color: var(--muted); }
.fun-card .project-kicker { justify-content: flex-start; margin-bottom: 1rem; }
.education-card { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.education-card p { margin: 0; }
.education-meta { display: flex; gap: 1.5rem; color: var(--muted); font-weight: 700; }
.contact { padding: 6.5rem max(2rem, calc((100vw - var(--max)) / 2)); background: #00274c; color: white; border-top: 10px solid #ffcb05; }
.contact .eyebrow { color: #ffcb05; }
.contact h2 { max-width: 820px; color: white; }
.contact > p:not(.eyebrow) { max-width: 720px; color: #d9e2ec; font-size: 1.05rem; }
.contact .button.primary { background: #ffcb05; border-color: #ffcb05; color: #00274c; }
.contact .button.primary:hover, .contact .button.primary:focus { background: white; border-color: white; }
.button.light { border-color: rgba(255,255,255,.75); color: white; }
.button.light:hover, .button.light:focus { border-color: #ffcb05; color: #ffcb05; }
footer { padding: 1.5rem 2rem; display: flex; justify-content: space-between; background: var(--navy); color: #cbd5e3; font-size: .82rem; }
.contact-page { min-height: 100vh; background: var(--navy); color: var(--white); }
.contact-shell { max-width: 860px; margin: 0 auto; padding: 7rem 2rem; }
.contact-shell h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.contact-shell > p { color: #cbd5e3; font-size: 1.1rem; }
.contact-shell .eyebrow { color: var(--maize); }
.back-link { display: inline-block; margin-bottom: 4rem; color: var(--white); text-underline-offset: .3rem; }
.contact-links { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.25); }
.contact-links a { display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.25); text-decoration: none; }
.contact-links span { color: #cbd5e3; }
@media (max-width: 850px) {
  .site-header { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1rem; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 3rem; }
  .portrait-card { max-width: 420px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .timeline article { grid-template-columns: 1fr; gap: .7rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-row: auto; }
  .fun-card { grid-template-columns: 1fr; align-items: start; }
  .education-card { flex-direction: column; }
}
@media (max-width: 520px) {
  .site-header { padding: 1rem; }
  nav a:nth-child(3) { display: none; }
  .hero, .section { padding-left: 1rem; padding-right: 1rem; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { border-bottom: 1px solid rgba(255,255,255,.18); }
  .metrics { grid-template-columns: 1fr; }
  .education-meta { flex-direction: column; gap: .3rem; }
  footer { flex-direction: column; gap: .25rem; }
}
