:root {
  --ink: #16201d;
  --muted: #5c6a65;
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --teal: #0f766e;
  --teal-dark: #0b4f4c;
  --amber: #b66b1d;
  --clay: #8d3f31;
  --line: rgba(22, 32, 29, 0.15);
  --shadow: 0 20px 50px rgba(15, 31, 28, 0.14);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.header-links,
.footer-links,
.hero-actions,
.resume-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav {
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav > a,
.text-link {
  border-bottom: 1px solid transparent;
}

.nav > a:hover,
.text-link:hover {
  color: var(--teal-dark);
  border-color: currentColor;
}

.header-links {
  gap: 8px;
}

.icon-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.icon-link:hover {
  transform: translateY(-1px);
}

.icon-link:focus-visible {
  outline: 3px solid rgba(239, 176, 100, 0.7);
  outline-offset: 3px;
}

.icon-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.icon-link .icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-links .icon-link {
  color: var(--muted);
  border-color: rgba(22, 32, 29, 0.18);
}

.header-links .icon-link:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.34);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(720px, calc(100svh - 148px));
  overflow: hidden;
  background: #15201e;
  color: var(--paper-strong);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 26, 24, 0.94) 0%, rgba(15, 26, 24, 0.78) 38%, rgba(15, 26, 24, 0.32) 74%),
    linear-gradient(180deg, rgba(15, 26, 24, 0.12) 0%, rgba(15, 26, 24, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 58px 0 64px;
}

.eyebrow,
.section-kicker,
.role-meta {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #efb064;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 30px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.05rem, 1.9vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 760;
}

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

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  background: rgba(255, 253, 248, 0.12);
  color: inherit;
  border-color: rgba(255, 253, 248, 0.34);
}

.resume-actions .button-secondary {
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: currentColor;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.metric {
  min-height: 150px;
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 820;
  line-height: 0.95;
}

.metric-label {
  display: block;
  max-width: 320px;
  color: var(--muted);
}

.section {
  padding: clamp(66px, 10vw, 128px) clamp(18px, 6vw, 80px);
}

.two-column,
.platform-layout,
.section-heading,
.resume-section {
  display: grid;
  gap: clamp(28px, 6vw, 80px);
}

.two-column,
.platform-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p:last-child,
.platform-layout p:last-child,
.work-card p:last-child,
.resume-panel p:last-child,
.site-footer p {
  margin-bottom: 0;
}

.work-section {
  background: #e9eee9;
}

.scope-section {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
}

.section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 30px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 760;
}

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

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(22, 32, 29, 0.16);
  border: 1px solid rgba(22, 32, 29, 0.16);
}

.work-card {
  min-height: 330px;
  padding: 26px;
  border: 1px solid rgba(22, 32, 29, 0.14);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.scope-card {
  min-height: 300px;
  padding: 26px;
  background: var(--paper-strong);
}

.work-card p {
  color: var(--muted);
}

.scope-card p {
  color: var(--muted);
}

.role-meta {
  color: var(--clay);
}

.platform-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.platform-section .section-kicker {
  color: #efb064;
}

.platform-layout p {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.76);
}

.capability-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 253, 248, 0.18);
  border: 1px solid rgba(255, 253, 248, 0.18);
}

.capability {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  background: #182924;
}

.capability span {
  color: #efb064;
  font-weight: 820;
}

.capability p {
  margin: 0;
}

.resume-section {
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: start;
  background: var(--paper-strong);
}

.resume-panel {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-left: 4px solid var(--teal);
  background: var(--paper);
}

.resume-panel p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 80px);
  color: rgba(255, 253, 248, 0.78);
  background: #121916;
}

.footer-links {
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links .icon-link {
  color: rgba(255, 253, 248, 0.82);
  border-color: rgba(255, 253, 248, 0.22);
}

.footer-links .icon-link:hover {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.52);
  color: #fffdf8;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: calc(100svh - 150px);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 26, 24, 0.95) 0%, rgba(15, 26, 24, 0.82) 54%, rgba(15, 26, 24, 0.58) 100%),
      linear-gradient(180deg, rgba(15, 26, 24, 0.1) 0%, rgba(15, 26, 24, 0.62) 100%);
  }

  .metrics,
  .work-grid,
  .scope-grid,
  .two-column,
  .platform-layout,
  .resume-section {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .work-card {
    min-height: auto;
  }

  .scope-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 112px;
  }

  .nav {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: calc(100svh - 172px);
  }

  .hero-content {
    width: min(100% - 32px, 680px);
    margin-inline: 16px;
    padding: 42px 0;
  }

  .hero-actions,
  .resume-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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