:root {
  --ink: #172235;
  --navy: #102d4f;
  --blue: #1f5d84;
  --teal: #0e7a82;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --tint: #edf2f4;
  --muted: #5e6875;
  --line: #d8e0e5;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(16, 45, 79, 0.12);
  --shell: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid rgba(216, 224, 229, 0.9);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--navy);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.wordmark small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="true"] {
  color: var(--navy);
}

.print-button {
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 96px;
  background:
    radial-gradient(circle at 86% 18%, rgba(14, 122, 130, 0.18), transparent 28%),
    linear-gradient(145deg, #f7f6f2 54%, #e7eff1 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -180px;
  bottom: -170px;
  border: 1px solid rgba(16, 45, 79, 0.18);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.8fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: end;
}

.eyebrow,
.section-index,
.card-label,
.project-type {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-role {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  font-weight: 800;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(16, 45, 79, 0.18);
}

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

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.impact-card {
  padding: 30px;
  color: white;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  border: 2px solid rgba(142, 212, 215, 0.75);
  border-radius: 14px;
  object-fit: cover;
  object-position: center 18%;
}

.impact-card .card-label {
  color: #8ed4d7;
}

.impact-list {
  margin: 0;
}

.impact-list > div {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.impact-list dt {
  color: white;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.15;
}

.impact-list dd {
  margin: 0;
  color: #cbd7e0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding: 94px 0;
}

.section-tinted {
  background: var(--tint);
}

.split-heading,
.education-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 80px;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 790px;
}

.intro-copy p {
  margin-bottom: 20px;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}

.section-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: 40px;
}

.timeline {
  border-top: 1px solid #cbd5da;
}

.timeline-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 52px;
  padding: 42px 0;
  border-bottom: 1px solid #cbd5da;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-meta time {
  color: var(--navy);
  font-weight: 800;
}

.organization {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timeline-content h3,
.skill-card h3,
.project-grid h3,
.education-list h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.25;
}

.timeline-content ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-content li + li {
  margin-top: 8px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  min-height: 270px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(16, 45, 79, 0.06);
}

.skill-card p:not(.skill-number) {
  color: var(--muted);
}

.skill-number {
  margin-bottom: 34px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tags span {
  padding: 5px 9px;
  color: var(--navy);
  background: #edf4f5;
  border-radius: 6px;
  font-size: 0.77rem;
  font-weight: 750;
}

.section-dark {
  color: #dce6ed;
  background: var(--navy);
}

.section-heading.light h2 {
  color: white;
}

.section-dark .section-index,
.section-dark .project-type {
  color: #80d0d4;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-grid article {
  min-height: 260px;
  padding: 34px;
  background: var(--navy);
}

.project-grid h3 {
  color: white;
  font-size: 1.55rem;
}

.project-grid p:not(.project-type):not(.project-stack) {
  color: #c6d3dd;
}

.project-stack {
  margin: 26px 0 0;
  color: #86d1d5;
  font-size: 0.82rem;
  font-weight: 800;
}

.education-list article {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.education-list time {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
}

.education-list h3 {
  margin: 6px 0 7px;
  font-size: 1.4rem;
}

.education-list p {
  margin: 0;
  color: var(--muted);
}

.education-list .languages {
  border-bottom: 0;
}

.contact-section {
  padding: 42px 0 78px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 48px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: var(--radius);
}

.contact-panel .eyebrow {
  color: #d8ffff;
}

.contact-panel h2 {
  max-width: 690px;
  color: white;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.light-button {
  color: var(--navy) !important;
  background: white !important;
  box-shadow: none !important;
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.65);
}

.footer {
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 82px;
  }

  .hero-grid,
  .split-heading,
  .education-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .impact-card {
    max-width: 600px;
  }

  .timeline-item {
    grid-template-columns: 170px 1fr;
    gap: 30px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1160px);
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .wordmark small,
  .print-button {
    display: none;
  }

  .hero {
    padding: 68px 0 64px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .section {
    padding: 68px 0;
  }

  .impact-list > div,
  .timeline-item,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 20px;
    padding: 32px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 36px;
  }

  .skill-card,
  .project-grid article {
    min-height: 0;
  }

  .contact-panel {
    padding: 30px 22px;
  }

  .contact-actions,
  .contact-actions .button,
  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@page {
  size: A4;
  margin: 12mm;
}

@media print {
  :root {
    --paper: white;
    --surface: white;
  }

  body {
    color: #111827;
    background: white;
    font-size: 9.5pt;
  }

  .site-header,
  .hero-actions,
  .contact-section,
  .footer,
  .skip-link {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .hero {
    padding: 0 0 8mm;
    background: white;
  }

  .hero-grid {
    display: block;
  }

  h1 {
    margin-bottom: 4mm;
    font-size: 29pt;
    line-height: 0.95;
  }

  .hero-role {
    font-size: 14pt;
  }

  .hero-lead {
    margin-bottom: 4mm;
    font-size: 10pt;
  }

  .contact-list {
    margin-top: 3mm;
  }

  .impact-card {
    margin-top: 5mm;
    padding: 4mm 5mm;
    color: var(--ink);
    background: #eef3f5;
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .impact-card .card-label {
    display: none;
  }

  .impact-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4mm;
  }

  .impact-list > div {
    display: block;
    padding: 0;
    border: 0;
  }

  .impact-list dt {
    color: var(--navy);
    font-size: 11pt;
  }

  .impact-list dd {
    color: #4b5563;
    font-size: 7.5pt;
  }

  .section {
    padding: 7mm 0;
    background: white !important;
  }

  .split-heading,
  .education-grid {
    grid-template-columns: 38mm 1fr;
    gap: 8mm;
  }

  h2 {
    font-size: 20pt;
  }

  .intro-copy p {
    margin-bottom: 3mm;
    font-size: 9.5pt;
  }

  .section-heading {
    margin-bottom: 5mm;
  }

  .timeline-item {
    grid-template-columns: 37mm 1fr;
    gap: 6mm;
    padding: 5mm 0;
    break-inside: avoid;
  }

  .timeline-content h3,
  .skill-card h3,
  .project-grid h3,
  .education-list h3 {
    font-size: 11pt;
  }

  .timeline-content li + li {
    margin-top: 1mm;
  }

  .skill-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3mm;
    border: 0;
    background: white;
  }

  .skill-card,
  .project-grid article {
    min-height: 0;
    padding: 5mm;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    box-shadow: none;
    break-inside: avoid;
  }

  .section-dark .section-index,
  .section-dark .project-type,
  .section-heading.light h2,
  .project-grid h3,
  .project-grid p:not(.project-type):not(.project-stack) {
    color: var(--ink);
  }

  .project-stack {
    color: var(--teal);
  }

  .education-list article {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }
}
