:root {
  color-scheme: light;
  --bg: #f6f6f1;
  --surface: #ffffff;
  --surface-muted: #eeeeE7;
  --ink: #202322;
  --ink-soft: #353936;
  --muted: #666b65;
  --line: #d8d9d1;
  --accent: #2f6f5e;
  --accent-strong: #1f5345;
  --accent-soft: #dce9e3;
  --gold: #a77a35;
  --shadow: 0 24px 70px rgba(33, 36, 34, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 35, 34, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(32, 35, 34, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    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.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  background: rgba(246, 246, 241, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.topbar[data-elevated="true"] {
  border-bottom-color: var(--line);
}

.brand,
.nav,
.contact-link,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav {
  justify-self: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.nav a,
.nav button {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.contact-link {
  justify-self: end;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.hero,
.section,
.footer,
.cv-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 58px;
  min-height: calc(100vh - 124px);
  padding: 50px 0 42px;
  align-items: center;
}

.hero-copy,
.profile-index,
.section,
.cv-shell {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 930px;
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 136px);
  line-height: 0.84;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.role-line {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(24px, 3.1vw, 42px);
  font-weight: 760;
  line-height: 1.04;
}

.lead {
  max-width: 650px;
  margin-bottom: 24px;
  color: #4f554f;
  font-size: 19px;
  line-height: 1.55;
}

.hero-statement {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  max-width: 650px;
  margin: 0 0 32px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-statement span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-statement strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.32;
}

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

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 760;
  cursor: pointer;
}

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

.profile-index {
  min-height: 610px;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--ink);
}

.index-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
}

.index-head strong {
  color: var(--ink);
  font-size: 22px;
}

.index-roles {
  display: grid;
  gap: 0;
}

.index-roles a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.index-roles span {
  grid-row: span 2;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 840;
}

.index-roles strong {
  font-size: 18px;
  line-height: 1.1;
}

.index-roles em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
}

.focus-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.focus-matrix div {
  min-height: 104px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.focus-matrix span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.12em;
}

.focus-matrix strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.facts dd {
  margin: 0;
  font-weight: 720;
  min-width: 0;
  overflow-wrap: anywhere;
}

.section {
  padding: 80px 0;
}

.section.compact {
  padding-top: 60px;
}

.section-intro {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

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

.capability-grid article {
  min-height: 250px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.skill-block {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 820;
}

.capability-grid h2,
.skill-block h2 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.16;
}

.capability-grid p,
.timeline-item p,
.cv-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.section-title {
  max-width: 420px;
  font-size: 42px;
  line-height: 1.06;
}

.section-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 17px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 820;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.18;
}

.timeline-item.current h3 {
  color: var(--accent-strong);
}

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

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

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #3f453f;
  font-size: 14px;
  font-weight: 680;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.footer button,
address button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 740;
  text-align: left;
  cursor: pointer;
}

.footer button:hover,
address button:hover {
  color: var(--accent-strong);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 740;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.cv-page {
  background: var(--bg);
}

.cv-shell {
  max-width: 980px;
  padding: 58px 0 90px;
}

.cv-header {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 42px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.cv-header h1 {
  font-size: clamp(42px, 6vw, 70px);
}

address {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-style: normal;
}

address a {
  color: var(--ink);
  font-weight: 740;
}

.cv-section {
  margin-top: 44px;
}

.cv-section > h2,
.two-column h2 {
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cv-role {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 22px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.cv-role h3,
.cv-note h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.cv-role p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 690;
}

.cv-role time {
  justify-self: end;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 820;
}

.cv-role ul {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 20px;
  color: #484e48;
}

.cv-role li + li {
  margin-top: 6px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.cv-note {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .split,
  .skills-layout,
  .capability-grid,
  .section-intro,
  .cv-header,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding-top: 46px;
  }

  .profile-index {
    min-height: auto;
    padding-left: 20px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .section,
  .footer,
  .cv-shell {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero > *,
  .section > *,
  .profile-index > *,
  .cv-shell > * {
    max-width: 100%;
  }

  .brand span:last-child {
    display: none;
  }

  .contact-link {
    display: none;
  }

  h1 {
    font-size: 48px;
    line-height: 0.9;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .role-line {
    font-size: 24px;
  }

  .lead {
    font-size: 16px;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .capability-grid article,
  .skill-block,
  .cv-header {
    padding: 20px;
    max-width: 100%;
  }

  .capability-grid article {
    padding-left: 0;
    padding-right: 0;
  }

  .profile-index {
    padding-left: 16px;
  }

  .index-head {
    flex-direction: column;
    gap: 6px;
  }

  .index-roles a {
    grid-template-columns: 48px 1fr;
    gap: 8px 14px;
  }

  .facts div,
  .timeline-item,
  .cv-role {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cv-role time {
    justify-self: start;
    grid-row: 1;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-copy,
  .profile-index,
  .cv-header,
  .cv-section {
    width: 100%;
    max-width: 362px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    max-width: 340px;
    font-size: 16px;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .print-button {
    display: none;
  }

  .cv-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .cv-header {
    border: 0;
    padding: 0 0 18px;
  }

  .cv-section {
    margin-top: 24px;
  }
}
