:root {
  --ink: #102238;
  --navy: #0d1b2a;
  --paper: #f5f3ee;
  --white: #fffefa;
  --blue: #2f63ff;
  --aqua: #9be8dc;
  --muted: #5e6873;
  --line: rgba(16, 34, 56, 0.18);
  --shadow: 0 24px 70px rgba(13, 27, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .65rem 1rem; color: white; background: var(--navy); }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
}
.wordmark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
nav { display: flex; gap: 2rem; }
nav a, .header-link, footer a { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
nav a:hover, .header-link:hover, footer a:hover { color: var(--blue); }
.header-link { justify-self: end; border-bottom: 1px solid currentColor; }

main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: clamp(3rem, 8vw, 8rem);
  min-height: 680px;
  padding: clamp(5rem, 10vw, 9rem) 0 6rem;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: 4%;
  top: 13%;
  border-radius: 50%;
  background: var(--aqua);
  filter: blur(1px);
  opacity: .7;
}
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { margin-bottom: 1.7rem; font-size: clamp(4.4rem, 10vw, 8.5rem); line-height: .82; }
.hero-summary { max-width: 690px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.25rem; border: 1px solid var(--navy); font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 27, 42, .12); }
.button-primary { color: white; background: var(--navy); }
.button-secondary { background: transparent; }
.hero-card { position: relative; padding: 2.2rem; background: rgba(255, 254, 250, .9); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.hero-card dl { margin: 0; }
.hero-card dl div { padding: 1rem 0; border-top: 1px solid var(--line); }
.hero-card dt { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-card dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.hero-card a { text-decoration-color: rgba(16, 34, 56, .3); text-underline-offset: 3px; }

.section { display: grid; grid-template-columns: 260px 1fr; gap: clamp(3rem, 7vw, 7rem); padding: 8rem 0; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); line-height: 1; }
.timeline { display: grid; gap: 5rem; }
.role { display: grid; grid-template-columns: 180px 1fr; gap: 2.5rem; }
.role-meta { color: var(--muted); font-size: .86rem; }
.role-meta p { margin-bottom: .25rem; }
.role-dates { color: var(--ink); font-weight: 800; }
.role-content h3, .education-list h3 { margin-bottom: .15rem; font-size: 1.35rem; line-height: 1.3; }
.company { margin-bottom: 1.25rem; color: var(--blue); font-weight: 800; }
.role-content ul { margin: 0; padding-left: 1.1rem; }
.role-content li { margin-bottom: .9rem; padding-left: .45rem; color: #29384a; }
.role-content li::marker { color: var(--blue); }

.skills-section { color: white; background: var(--navy); margin-inline: calc(50% - 50vw); padding-inline: max(24px, calc((100vw - 1180px) / 2)); border: 0; }
.skills-section .eyebrow { color: var(--aqua); }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.skill-grid article { min-height: 220px; padding: 1.8rem; border: 1px solid rgba(255,255,255,.18); }
.skill-grid article:nth-child(2n) { border-left: 0; }
.skill-grid article:nth-child(n+3) { border-top: 0; }
.skill-number { color: var(--aqua); font-size: .76rem; font-weight: 800; }
.skill-grid h3 { margin: 2.6rem 0 .5rem; font-size: 1.3rem; }
.skill-grid p { margin: 0; color: rgba(255,255,255,.68); }

.education-list { display: grid; }
.education-list article { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.education-list article:last-child { border-bottom: 1px solid var(--line); }
.education-list p { margin-bottom: 0; color: var(--muted); }
.education-date { flex: 0 0 auto; text-align: right; }

.contact { padding: 9rem 0; text-align: center; }
.contact h2 { max-width: 800px; margin: 0 auto 2.5rem; font-size: clamp(3.4rem, 7vw, 6.5rem); line-height: .98; }
.contact-email { display: inline-block; color: var(--blue); font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 800; text-underline-offset: .35rem; }
.contact-email span { display: inline-block; transition: transform .2s; }
.contact-email:hover span { transform: translate(3px, -3px); }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; font-size: .82rem; }
footer div { display: flex; gap: 1.4rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 3rem; }
  .hero::before { width: 260px; height: 260px; top: 40%; right: 0; }
  .hero-card { max-width: 560px; }
  .section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 32px, 1180px); }
  .header-link { font-size: .75rem; }
  .hero { padding: 4.5rem 0; }
  h1 { font-size: clamp(4rem, 22vw, 6rem); }
  .hero-card { padding: 1.5rem; }
  .section { padding: 5rem 0; gap: 2.8rem; }
  .role { grid-template-columns: 1fr; gap: .8rem; }
  .role-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-grid article:nth-child(n) { border: 1px solid rgba(255,255,255,.18); border-top: 0; }
  .skill-grid article:first-child { border-top: 1px solid rgba(255,255,255,.18); }
  .education-list article { flex-direction: column; gap: .5rem; }
  .education-date { text-align: left; }
  .contact { padding: 6rem 0; text-align: left; }
  footer { align-items: flex-start; flex-direction: column; padding: 2rem 0; }
  footer div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-actions, .contact, footer { display: none; }
  body { background: white; font-size: 11pt; }
  main { width: 100%; }
  .hero, .section { display: block; min-height: auto; padding: 1rem 0; }
  .hero::before { display: none; }
  h1 { font-size: 42pt; }
  .hero-card { box-shadow: none; padding: 1rem 0; }
  .role { grid-template-columns: 150px 1fr; break-inside: avoid; }
  .skills-section { color: black; background: white; margin: 0; padding: 1rem 0; }
}
