:root {
  --ink: #17231d;
  --muted: #59675f;
  --soft: #eef3ef;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --line: #d9e0da;
  --forest: #22543d;
  --forest-2: #143526;
  --teal: #2c7a7b;
  --gold: #b7791f;
  --rose: #9f5b5b;
  --shadow: 0 18px 50px rgba(23, 35, 29, 0.12);
}

* {
  box-sizing: border-box;
}

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

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.6;
}

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

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

a:hover {
  color: var(--teal);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--forest);
  border-radius: 8px;
  font-size: 13px;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 72px 0 44px;
  color: #ffffff;
  background: #14231b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 35, 27, 0.97), rgba(20, 35, 27, 0.78) 52%, rgba(20, 35, 27, 0.42)),
    url("assets/resume-preview.png") center right 8% / min(620px, 55vw) auto no-repeat,
    linear-gradient(135deg, #153425, #1d4f50 58%, #77551c);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.hero-copy {
  padding: 40px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: #cde5d9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: #ecf4ee;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.btn.primary {
  color: #ffffff;
  background: var(--teal);
}

.btn.secondary {
  color: var(--forest-2);
  background: #ffffff;
}

.btn.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn:hover {
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.resume-visual {
  margin: 0;
  align-self: stretch;
  display: grid;
  align-content: end;
}

.resume-visual img {
  width: min(420px, 100%);
  margin-left: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
}

.resume-visual figcaption {
  width: min(420px, 100%);
  margin: 12px 0 0 auto;
  color: #d8e6df;
  font-size: 13px;
}

.metrics {
  position: relative;
  margin-top: -1px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.metric-grid div {
  min-height: 132px;
  padding: 28px 22px;
  border-left: 1px solid var(--line);
}

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

.metric-grid strong {
  display: block;
  color: var(--forest);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.section.muted {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.section-kicker {
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.cards article,
.split > div {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cards span {
  color: var(--gold);
  font-weight: 900;
}

.cards h2 {
  margin-top: 12px;
  font-size: 24px;
}

.cards p,
.split p,
.timeline p,
.timeline li {
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 30px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-date {
  color: var(--teal);
  font-weight: 900;
}

.company {
  margin-bottom: 10px;
  font-weight: 800;
}

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

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

.contact-band {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest-2), #1f5b52 58%, #6c521c);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.contact-grid h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 52px);
}

.footer {
  padding: 24px 0;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  font-weight: 800;
}

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

  .hero {
    min-height: auto;
    padding: 52px 0 34px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(20, 35, 27, 0.98), rgba(20, 35, 27, 0.84)),
      url("assets/resume-preview.png") top 20px right -110px / 360px auto no-repeat,
      linear-gradient(135deg, #153425, #1d4f50 58%, #77551c);
  }

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

  .resume-visual img,
  .resume-visual figcaption {
    margin-left: 0;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    padding-inline: 12px;
  }

  .hero-copy {
    padding: 20px 0;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metric-grid,
  .content-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .metric-grid div {
    min-height: 104px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 58px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }
}
