:root {
  --navy-950: #0b2038;
  --navy-900: #12304f;
  --navy-800: #1d426b;
  --blue-700: #28639d;
  --blue-600: #3376b7;
  --blue-100: #dbeaf7;
  --blue-050: #edf5fb;
  --gold-500: #c99a42;
  --ink: #172433;
  --muted: #5b6876;
  --line: #d7dee6;
  --paper: #fffefd;
  --canvas: #f4f6f8;
  --white: #ffffff;
  --shadow-sm: 0 10px 28px rgba(11, 32, 56, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 32, 56, 0.15);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --container: 72rem;
  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Archivo", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--navy-900);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.75rem, 7vw, 5.35rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.3vw, 3.15rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.25rem, 9vw, 7.5rem);
}

.section-tight {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}

.section-tint {
  background: var(--canvas);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  background: var(--gold-500);
  content: "";
}

.lede {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h2 {
  max-width: 17ch;
  margin-bottom: 0;
}

.section-heading .lede {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 254, 253, 0.93);
  border-bottom: 1px solid rgba(215, 222, 230, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--blue-700);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  border-radius: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-950);
  background: var(--blue-050);
}

.menu-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  color: var(--navy-950);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font: inherit;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background-color 160ms ease;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  border-radius: inherit;
  transition: transform 160ms ease;
  content: "";
}

.menu-icon::before {
  top: -0.4rem;
}

.menu-icon::after {
  top: 0.4rem;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(0.4rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(4.5rem, 10vw, 8.5rem);
}

.hero::before {
  position: absolute;
  top: -18rem;
  left: 52%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(51, 118, 183, 0.13), rgba(51, 118, 183, 0) 70%);
  pointer-events: none;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero-copy .lede {
  max-width: 39rem;
  margin-bottom: 2rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  color: var(--white);
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 0.55rem;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--navy-950);
  background: var(--blue-050);
  border-color: var(--blue-100);
}

.button-quiet {
  color: var(--navy-900);
  background: var(--white);
  border-color: var(--white);
}

.hero-portrait {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
}

.hero-portrait::before {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  content: "";
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(18, 48, 79, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.metric-grid,
.card-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.metric,
.card,
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(11, 32, 56, 0.02);
}

.metric {
  min-height: 10rem;
  padding: 1.5rem;
}

.metric strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.card-number {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.card p,
.project-card p {
  color: var(--muted);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.project-card.featured {
  background: var(--navy-950);
  border-color: var(--navy-950);
}

.project-card.featured h2,
.project-card.featured h3,
.project-card.featured p {
  color: var(--white);
}

.project-card.featured .tag {
  color: var(--blue-100);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card.featured .text-link {
  color: var(--white);
}

.project-card .text-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

.project-index {
  margin-bottom: 0.85rem;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.28rem 0.62rem;
  color: var(--navy-800);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.4;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(0.2rem);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-panel::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(51, 118, 183, 0.45), rgba(51, 118, 183, 0) 68%);
  transform: translate(-50%, -50%);
  content: "";
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel .eyebrow {
  justify-content: center;
}

.cta-panel h2 {
  max-width: 32ch;
  margin-inline: auto;
  color: var(--white);
}

.cta-panel p {
  max-width: 42rem;
  margin-inline: auto;
  color: #dbe4ec;
}

.cta-panel .button-row {
  justify-content: center;
  margin-top: 2rem;
}

.cta-panel .button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.72);
}

.cta-panel .button-secondary:hover {
  color: var(--navy-950);
  background: var(--white);
  border-color: var(--white);
}

.page-hero {
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--blue-050), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero-copy {
  max-width: 62rem;
}

.page-hero h1 {
  max-width: 24ch;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

.page-hero .lede {
  max-width: 44rem;
}

.page-actions {
  margin-top: 2rem;
}

.resume-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.resume-sidebar {
  align-self: start;
}

.resume-sidebar .button {
  width: 100%;
  margin-bottom: 0.65rem;
}

.resume-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.resume-meta p {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-section + .resume-section {
  margin-top: 3.5rem;
}

.resume-section > h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--blue-100);
}

.experience-group + .experience-group,
.project-entry + .project-entry {
  margin-top: 2.4rem;
}

.experience-header,
.role-header,
.education-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.experience-header h3,
.role-header h4,
.education-header h3 {
  margin: 0;
}

.experience-header time,
.education-header time {
  color: var(--navy-900);
  font-weight: 800;
}

.role {
  margin-top: 0.55rem;
}

.role + .role {
  margin-top: 1.25rem;
}

.role-header h4 {
  color: var(--navy-800);
  font-size: 1rem;
  font-style: italic;
  font-weight: 650;
}

.role-header time {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.resume-list {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.resume-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.resume-list li::marker {
  color: var(--blue-700);
}

.tools-line {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-style: italic;
}

.site-footer {
  padding-block: 2.5rem;
  color: #c8d5e1;
  background: var(--navy-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.footer-links a {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.not-found {
  min-height: calc(100vh - 9.75rem);
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  max-width: none;
  margin-inline: auto;
}

.not-found .lede {
  margin-inline: auto;
}

.not-found .button-row {
  justify-content: center;
}

@media (min-width: 42rem) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.13fr) minmax(19rem, 0.72fr);
  }

  .section-heading.split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card h3 {
    display: flex;
    align-items: flex-end;
    min-height: 3.4rem;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .project-card {
    grid-column: span 6;
  }

  .project-card.featured {
    grid-column: span 6;
    min-height: 27rem;
  }

  .resume-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .resume-sidebar {
    position: sticky;
    top: 7rem;
  }
}

@media (max-width: 44rem) {
  .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .header-inner {
    position: relative;
    min-height: 4.25rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    width: auto;
    display: none;
    padding: 0.55rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .js .site-nav a {
    padding: 0.75rem 0.85rem;
  }

  .hero-portrait {
    width: calc(100% - 1rem);
  }

  .hero-portrait::before {
    inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  }

  .hero-portrait img {
    aspect-ratio: 1 / 1;
  }

  .experience-header,
  .role-header,
  .education-header {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 9.5pt;
    line-height: 1.35;
  }

  .site-header,
  .site-footer,
  .page-hero,
  .resume-sidebar,
  .no-print {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .container,
  .resume-layout {
    width: 100%;
    display: block;
  }

  .resume-section + .resume-section {
    margin-top: 1rem;
  }

  .resume-section > h2 {
    margin-bottom: 0.55rem;
    padding-bottom: 0.2rem;
    font-size: 11pt;
    border-color: #777;
  }

  .experience-group + .experience-group,
  .project-entry + .project-entry {
    margin-top: 0.75rem;
  }

  .role + .role {
    margin-top: 0.45rem;
  }

  .resume-list {
    margin-top: 0.25rem;
  }

  .resume-list li {
    margin-bottom: 0.12rem;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
