:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --paper: #ffffff;
  --paper-soft: #eef3ef;
  --ink: #18201d;
  --muted: #5c6762;
  --line: #d9ded8;
  --teal: #0f766e;
  --coral: #c94c39;
  --blue: #3457a6;
  --gold: #b77a19;
  --shadow: 0 18px 50px rgba(24, 32, 29, 0.1);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.7rem 1rem;
  clip: auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.section-band {
  padding: 6rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 244, 0.9);
  border-bottom: 1px solid rgba(217, 222, 216, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
  background: var(--paper-soft);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines::before {
  transform: translateY(-7px);
}

.menu-toggle-lines::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: translateY(-2px) rotate(90deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  gap: 4rem;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding-top: 4.5rem;
  padding-bottom: 3.75rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.1rem;
  font-size: 5rem;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 2.45rem;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.hero-lede {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  background: transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.hero-facts div {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0.45rem 0 0;
  font-weight: 800;
  line-height: 1.32;
}

.hero-visual-wrap {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-visual {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.profile {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-intro {
  display: block;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 980px;
}

.profile-grid p,
.timeline-item p,
.skill-card p,
.recognition-list p,
.project-card p {
  color: var(--muted);
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  align-self: end;
  min-height: 44px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.segmented-control button {
  min-width: 68px;
  min-height: 36px;
  padding: 0 0.78rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.is-active {
  background: var(--ink);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.skill-card,
.timeline-item,
.recognition-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.project-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 1.2rem;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.tag-list li {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.experience {
  background: #202823;
  color: #fff;
}

.experience .eyebrow,
.experience .time-range {
  color: #7bd0c4;
}

.experience .section-intro h2 {
  color: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-item {
  min-height: 330px;
  padding: 1.2rem;
  background: #27322c;
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.72);
}

.time-range {
  margin-bottom: 1rem;
  font-weight: 900;
}

.organization {
  margin-bottom: 1rem;
  font-weight: 800;
}

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

.skill-card {
  min-height: 190px;
  padding: 1.2rem;
}

.skill-card:nth-child(2n) {
  border-top-color: var(--teal);
}

.skill-card:nth-child(3n) {
  border-top-color: var(--gold);
}

.recognition {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recognition-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 3rem;
}

.recognition-list {
  display: grid;
  gap: 1rem;
}

.recognition-list article {
  padding: 1.2rem;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: start;
  background: var(--ink);
  color: #fff;
}

.footer h2 {
  color: #fff;
}

.footer .eyebrow {
  color: #7bd0c4;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  font-style: normal;
}

.contact-list a {
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero,
  .profile-grid,
  .recognition-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    min-height: auto;
  }

  .hero-facts,
  .project-grid,
  .timeline,
  .skill-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: grid;
  }

  .segmented-control {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .section-band {
    padding: 4rem 1rem;
  }

  .nav-shell {
    min-height: 64px;
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 64px 1rem auto 1rem;
    display: none;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    display: flex;
    align-items: center;
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-facts,
  .project-grid,
  .timeline,
  .skill-columns {
    grid-template-columns: 1fr;
  }

  .hero-visual-wrap,
  .hero-visual {
    min-height: 380px;
  }

  .project-card,
  .timeline-item,
  .skill-card {
    min-height: auto;
  }

  .segmented-control {
    width: 100%;
    grid-auto-flow: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .segmented-control button {
    min-width: 0;
    padding: 0 0.4rem;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@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;
  }
}
