:root {
  color-scheme: light;
  --paper: #f6f3ea;
  --paper-2: #fffdf6;
  --ink: #171a17;
  --muted: #646a61;
  --line: rgba(23, 26, 23, 0.14);
  --line-strong: rgba(23, 26, 23, 0.24);
  --green: #244f42;
  --green-2: #6f8a65;
  --blue: #4b7180;
  --amber: #c58a3a;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(23, 26, 23, 0.18);
  --max: 1160px;
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  color: var(--white);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(246, 243, 234, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 680;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.nav-active .site-nav a:hover,
.site-header.nav-active .site-nav a:focus-visible {
  background: rgba(36, 79, 66, 0.1);
}

.nav-resume {
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px 24px 56px;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 17, 14, 0.86) 0%, rgba(11, 17, 14, 0.62) 42%, rgba(11, 17, 14, 0.12) 100%),
    linear-gradient(0deg, rgba(11, 17, 14, 0.46) 0%, rgba(11, 17, 14, 0.04) 48%);
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d7d9c2;
}

.hero h1 {
  margin-top: 14px;
  max-width: 760px;
  font-size: 5.6rem;
  line-height: 0.95;
  font-weight: 820;
}

.hero-lede {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.24rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-primary {
  background: var(--green);
  color: var(--white);
}

.hero .button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section-pad {
  padding: 88px 24px;
}

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.credentials h2,
.contact h2 {
  margin-top: 10px;
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 790;
}

.intro p:last-child,
.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.metrics {
  padding: 0 24px;
  background: var(--paper-2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.metric-grid article {
  min-height: 210px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.metric-grid span {
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 820;
}

.metric-grid h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.metric-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

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

.capability-grid article,
.credential-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 253, 246, 0.72);
}

.capability-grid h3,
.credential-list h3,
.timeline-body h3 {
  font-size: 1.02rem;
  line-height: 1.2;
}

.capability-grid ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.capability-grid li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.capability-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-2);
}

.experience {
  background: #e9eee5;
  border-block: 1px solid var(--line);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
}

.sticky-heading {
  position: sticky;
  top: 104px;
  align-self: start;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.timeline-date {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 820;
}

.company {
  margin-top: 4px;
  color: var(--amber);
  font-weight: 760;
}

.timeline-body p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.credentials {
  background: var(--paper);
}

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

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

.credential-list p {
  margin-top: 10px;
  color: var(--muted);
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact .section-kicker {
  color: #bdd0b4;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact .button-secondary,
.button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.button-ghost.copied {
  border-color: #bdd0b4;
  color: #dfe9d8;
}

.site-footer {
  padding: 26px 24px;
  background: #101310;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner a {
  color: var(--white);
  font-weight: 720;
}

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

  .intro-grid,
  .experience-layout,
  .credentials-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sticky-heading {
    position: static;
  }

  .metric-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: currentColor;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 12px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(246, 243, 234, 0.97);
    color: var(--ink);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

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

  .site-nav a {
    border-radius: 6px;
    padding: 12px;
  }

  .hero {
    min-height: 80svh;
    padding: 104px 18px 42px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

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

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section-pad {
    padding: 64px 18px;
  }

  .intro h2,
  .section-heading h2,
  .credentials h2,
  .contact h2 {
    font-size: 2rem;
  }

  .metric-grid,
  .capability-grid,
  .credential-list {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    border-left: 0;
  }

  .metric-grid article {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .metric-grid article:last-child {
    border-bottom: 1px solid var(--line);
  }

  .metric-grid h2 {
    margin-top: 18px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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