:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5d6964;
  --line: #d8ded8;
  --paper: #f7f5ee;
  --surface: #ffffff;
  --surface-strong: #eef3ef;
  --forest: #183a32;
  --green: #2f6f5d;
  --copper: #a85f32;
  --amber: #d69a36;
  --shadow: 0 18px 50px rgba(23, 32, 29, 0.12);
  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);
  font-size: 16px;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 245, 238, 0.92);
  border-bottom: 1px solid rgba(216, 222, 216, 0.9);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--forest);
  color: #f8f2df;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
}

.section-band {
  width: 100%;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 4vw, 56px);
}

.content-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 67px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 58, 50, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 58, 50, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #f7f5ee 0%, #eef3ef 62%, #f1e6d7 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34vw;
  height: 10px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--copper));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  color: #3c4742;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(23, 32, 29, 0.04);
}

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

.button-primary {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff8e7;
}

.profile-panel {
  align-self: center;
  display: grid;
  grid-template-rows: 420px auto;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(24, 58, 50, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait {
  min-height: 0;
  overflow: hidden;
  background: #dfe7e6;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 44%;
}

.snapshot {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.snapshot span {
  color: var(--muted);
  font-size: 0.94rem;
}

.snapshot strong {
  font-size: 1.05rem;
}

.compact-band {
  padding-top: 28px;
  padding-bottom: 28px;
  background: var(--forest);
  color: #f7f5ee;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-block {
  min-height: 150px;
  padding: 24px;
  background: #183a32;
}

.metric {
  display: block;
  margin-bottom: 12px;
  color: #f4c468;
  font-size: 1.4rem;
  font-weight: 900;
}

.signal-block p {
  margin-bottom: 0;
  color: #d7e1dc;
}

.two-column {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}

.section-heading {
  position: sticky;
  top: 96px;
  align-self: start;
}

.section-heading h2 {
  max-width: 280px;
}

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

.role,
.skill-group,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.06);
}

.role {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 32px);
}

.role-meta p,
.date-range {
  color: var(--muted);
}

.date-range {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.role li::marker {
  color: var(--copper);
}

.compressed-role > p {
  margin-bottom: 0;
  color: #3c4742;
}

.surface-band {
  background: #eef3ef;
}

.skill-groups {
  display: grid;
  gap: 16px;
}

.skill-group {
  padding: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 10px;
  border: 1px solid #cad6cf;
  border-radius: 8px;
  background: #f9fbf8;
  color: #34413c;
  font-size: 0.92rem;
  font-weight: 700;
}

.closing-band {
  background: var(--paper);
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.closing-grid p {
  color: var(--muted);
}

.contact-card {
  padding: 24px;
}

.contact-card .button {
  margin-top: 10px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .two-column,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    min-height: 0;
  }

  .portrait {
    height: min(72vw, 420px);
  }

  .section-heading {
    position: static;
  }

  .section-heading h2 {
    max-width: none;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .role {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

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

  .nav-links a {
    padding: 7px 8px;
  }

  .section-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .button {
    width: 100%;
  }

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