:root {
  color-scheme: light;
  --ink: #243447;
  --navy: #102b46;
  --blue: #3d759b;
  --blue-dark: #2d5f82;
  --muted: #5c6e7d;
  --line: #d7e0e7;
  --paper: #f3f5f6;
  --surface: #fafbfc;
  --surface-blue: #eaf0f4;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #79a9c7;
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(243 245 246 / 96%);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  display: grid;
  flex: none;
  gap: 2px;
  padding-left: 16px;
  color: var(--navy);
  font: 600 1.2rem/1.15 "Barlow Condensed", sans-serif;
  text-decoration: none;
}

.brand::before {
  position: absolute;
  inset: 1px auto 1px 0;
  width: 5px;
  background: var(--blue);
  content: "";
}

.brand small {
  color: var(--muted);
  font: 500 .68rem/1.35 "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 8px 11px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

nav a:hover,
nav a[aria-current="page"] {
  background: #e5edf2;
  color: var(--navy);
}

nav a[aria-current="page"] {
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.5rem, 7vw, 5.4rem);
  letter-spacing: -.025em;
  line-height: .98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
  letter-spacing: -.01em;
  line-height: 1.15;
}

h3 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.hero {
  position: relative;
  padding: 74px 0 58px;
}

.page-hero {
  max-width: 760px;
}

.home-hero {
  max-width: none;
  margin: 30px 0 0;
  padding: 52px 58px;
  border: 1px solid #d5dfe6;
  border-left: 4px solid var(--blue);
  background: #eaf0f4;
}

.home-hero h1 {
  margin-top: 10px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 600;
}

.lead {
  max-width: 690px;
  margin: 19px 0 0;
  color: #465b6d;
  font-size: 1.02rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.button.secondary {
  border-color: #bdcbd5;
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--blue);
  background: #e6edf2;
}

.button.text-button {
  border-color: transparent;
}

.button.text-button:hover {
  background: #e6edf2;
}

section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 40px;
  border-top: 0;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 20px 24px;
  border: 1px solid #d4dfe7;
  background: var(--surface-blue);
}

.stat-value {
  min-width: 112px;
  margin: 0;
  color: var(--blue-dark);
  font: 600 3.5rem/.95 "Barlow Condensed", sans-serif;
  letter-spacing: -.035em;
}

.stat-value span {
  color: var(--blue);
}

.stat-card h2 {
  font-size: 1.28rem;
}

.stat-card div > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.home-section {
  padding: 42px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-intro {
  max-width: 690px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-preview {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--surface);
}

.feature-preview > img {
  display: block;
  width: 100%;
  max-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.preview-kicker {
  margin: 0 0 5px;
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.feature-preview p:not(.preview-kicker),
.preview-card > p:not(.preview-kicker) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--blue-dark);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-card {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: var(--surface);
}

.organization-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  margin-bottom: 14px;
}

.organization-logos img {
  width: 54px;
  height: 45px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.section-head {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 1.55rem;
}

.section-head .section-intro {
  margin: 0;
}

.cards,
.activity-cards {
  display: grid;
  gap: 14px;
}

.card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid #91b1c7;
  background: var(--surface);
}

.card-top,
.experience-card-heading,
.other-role-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card p,
.activity-card p {
  margin: 10px 0 0;
  color: #465b6d;
  line-height: 1.7;
}

.meta {
  flex: none;
  color: var(--muted);
  font-size: .82rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.tag {
  padding: 3px 8px;
  border: 1px solid #d5e0e8;
  background: #edf2f6;
  color: #365a76;
  font-size: .75rem;
  font-weight: 500;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 28px;
}

.skill {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.skill h3 {
  margin-bottom: 5px;
  font-size: 1.12rem;
}

.skill p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--surface);
}

.project-game {
  border-left-color: #768c9d;
}

.project-index {
  margin-bottom: 15px;
  color: var(--blue-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.project-index span {
  padding-inline: 5px;
  color: #91a1ad;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .38fr);
  align-items: stretch;
  gap: 24px;
}

.project-main {
  min-width: 0;
}

.project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-description {
  max-width: 760px;
  margin: 11px 0 0;
  color: #465b6d;
}

.project-contribution {
  max-width: 760px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-contribution strong {
  color: var(--navy);
  font-size: .82rem;
}

.project-contribution p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.project-process {
  padding: 16px;
  border: 1px solid #d1dde6;
  background: var(--surface-blue);
}

.project-process h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-process ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: project-step;
  list-style: none;
}

.project-process li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: #344c60;
  font-size: .82rem;
  line-height: 1.45;
}

.project-process li::before {
  flex: none;
  color: var(--blue-dark);
  content: counter(project-step, decimal-leading-zero);
  counter-increment: project-step;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.timeline {
  display: grid;
  gap: 0;
}

.item {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 25px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.item:first-child {
  padding-top: 0;
  border-top: 0;
}

.item-label {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.item p {
  margin: 7px 0 0;
  color: #465b6d;
}

ul {
  margin: 13px 0 0;
  padding-left: 20px;
  color: #465b6d;
}

li + li {
  margin-top: 6px;
}

.experience-feature,
.activity-card {
  border-color: #d1dde6;
  border-left-color: var(--blue);
  background: var(--surface-blue);
}

.experience-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.experience-logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: none;
  padding: 5px;
  border: 1px solid #d1dde6;
  background: var(--surface);
  object-fit: contain;
}

.experience-card-heading .item-label {
  margin-top: 4px;
}

.experience-feature ul {
  margin-top: 16px;
}

.experience-summary {
  max-width: 850px;
  margin: 17px 0 0;
  color: #344c60;
  font-size: 1.02rem;
  line-height: 1.7;
}

.detail-heading {
  margin: 20px 0 0;
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.experience-feature .tags {
  margin-top: 17px;
}

.other-experience {
  display: grid;
  gap: 16px;
}

.other-role {
  padding-top: 8px;
}

.other-role h3 {
  font-size: 1.12rem;
  font-weight: 500;
}

.other-role-heading span,
.other-role p {
  color: var(--muted);
  font-size: .88rem;
}

.other-role p {
  max-width: 760px;
  margin: 4px 0 0;
  line-height: 1.6;
}

.about-profile {
  padding-top: 52px;
  border-top: 0;
}

.about-heading {
  margin-bottom: 22px;
}

.about-heading h1 {
  font-size: clamp(3.2rem, 6vw, 4.4rem);
}

.about-person h2 {
  margin: 0 0 3px;
  font-size: 2rem;
}

.about-person {
  margin: 0;
}

.about-degree {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.about-person .about-degree {
  margin: 0 0 15px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 34px;
}

.about-highlight {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d1dde6;
  background: var(--surface-blue);
  color: var(--navy);
  text-decoration: none;
}

.about-highlight svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-highlight span {
  display: grid;
  gap: 1px;
}

.about-highlight strong {
  font-size: .86rem;
  font-weight: 700;
}

.about-highlight small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.about-highlight[href]:hover {
  border-color: var(--blue);
  background: #e2ebf1;
}

.about-bio {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--surface-blue);
  object-fit: cover;
  object-position: center 35%;
}

.photo-caption {
  max-width: 320px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.about-copy .eyebrow {
  margin-bottom: 8px;
}

.about-copy h2 {
  margin-bottom: 15px;
  font-size: 1.85rem;
}

.about-copy p:not(.eyebrow) {
  margin: 0 0 14px;
  color: #465b6d;
}

.profile-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.profile-focus .section-heading {
  margin-bottom: 0;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid #d1dde6;
  border-left: 3px solid var(--blue);
  background: #eaf0f4;
}

.contact p {
  margin: 5px 0 0;
  color: var(--muted);
}

.contact-page {
  max-width: 930px;
  padding: 86px 0 76px;
  border-top: 0;
}

.contact-page h1 {
  font-size: clamp(3.6rem, 7vw, 5.2rem);
}

.contact-degree {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 600;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr);
  gap: 34px;
  margin-top: 23px;
}

.contact-page-intro {
  max-width: 700px;
  margin: 0;
  color: #465b6d;
  font-size: 1.04rem;
  line-height: 1.8;
}

.contact-focus {
  margin-top: 24px;
  padding: 17px 19px;
  border-left: 3px solid var(--blue);
  background: var(--surface-blue);
}

.contact-focus h2 {
  font-size: 1.18rem;
}

.contact-focus ul {
  margin-top: 8px;
  font-size: .9rem;
}

.contact-details {
  display: grid;
  align-content: start;
  gap: 10px;
}

.contact-detail {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 15px;
  border: 1px solid #d1dde6;
  border-left: 3px solid var(--blue);
  background: var(--surface-blue);
  color: var(--navy);
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}

.contact-detail:hover {
  border-color: var(--blue);
  background: #e2ebf1;
  color: var(--navy);
}

.contact-detail-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-detail strong {
  overflow-wrap: anywhere;
  font-size: .91rem;
  font-weight: 600;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.explore-card {
  display: flex;
  min-height: 216px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: var(--surface);
  color: var(--navy);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.explore-card:hover {
  transform: translateY(-2px);
  border-color: #b8c9d5;
  box-shadow: 0 7px 18px rgb(16 43 70 / 8%);
  color: var(--navy);
}

.explore-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--blue-dark);
}

.explore-number {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.explore-card-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.explore-card-title {
  font: 600 1.4rem/1.15 "Barlow Condensed", sans-serif;
}

.explore-card-copy {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.explore-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 700;
}

.explore-card-link span {
  color: var(--blue);
  font-size: 1rem;
  transition: transform .15s;
}

.explore-card:hover .explore-card-link span {
  transform: translateX(3px);
}

footer {
  margin-top: 12px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
}

@media (max-width: 980px) {
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .nav {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px 0 10px;
  }

  nav {
    width: 100%;
    gap: 2px;
  }

  nav a {
    padding: 7px 9px;
    font-size: .82rem;
  }

  .hero {
    padding: 56px 0 42px;
  }

  .home-hero {
    margin-top: 18px;
    padding: 34px 28px;
  }

  .home-hero h1 {
    font-size: clamp(3.3rem, 13vw, 4.6rem);
  }

  .home-stats {
    padding-top: 14px;
  }

  .stat-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
    padding: 17px;
  }

  .stat-value {
    min-width: 0;
    font-size: 3rem;
  }

  .feature-preview {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 15px;
    padding: 17px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  section,
  .home-section {
    padding: 34px 0;
  }

  .card {
    padding: 18px;
  }

  .card-top,
  .experience-card-heading,
  .other-role-heading {
    flex-direction: column;
    gap: 7px;
  }

  .meta {
    white-space: normal;
  }

  .item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .about-profile {
    padding-top: 38px;
  }

  .about-bio {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .about-photo,
  .photo-caption {
    width: min(100%, 300px);
  }

  .contact-page {
    padding: 60px 0 48px;
  }

  .contact-details,
  .home-preview-grid,
  .skills {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .project-process ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-focus,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .home-hero {
    padding: 28px 20px;
  }

  .home-stats,
  .explore-grid,
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .feature-preview {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 18px;
  }

  .project-heading {
    flex-direction: column;
    gap: 6px;
  }

  .project-process ol {
    grid-template-columns: 1fr;
  }

  .feature-preview > img {
    width: 100px;
  }

  .button {
    min-height: 42px;
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
