:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --ink: #151515;
  --muted: #68635b;
  --line: rgba(21, 21, 21, 0.14);
  --paper: #fffdf9;
  --teal: #176c71;
  --plum: #6f496c;
  --clay: #9a583e;
  --olive: #596d4b;
  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;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.page-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100svh;
}

.profile-rail {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.identity-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(21, 21, 21, 0.18);
  object-fit: cover;
  object-position: center;
}

.identity strong,
.identity small {
  display: block;
}

.identity strong {
  font-size: 1rem;
}

.identity small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.3;
}

.rail-nav,
.rail-footer {
  display: grid;
  gap: 12px;
}

.rail-nav a,
.rail-footer a {
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.rail-nav a {
  display: flex;
  min-height: 36px;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.rail-footer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  font-size: 0.88rem;
}

.rail-nav a:hover,
.rail-nav a:focus-visible,
.rail-footer a:hover,
.rail-footer a:focus-visible {
  color: var(--ink);
}

main {
  width: min(100%, 1080px);
  padding: 0 clamp(24px, 6vw, 80px);
}

.section {
  padding: clamp(70px, 9vw, 116px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.intro {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding-top: 56px;
}

.eyebrow,
.card-topline,
.quick-facts span,
.field-grid span,
.step,
.scope-list span {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.6vw, 6.75rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 3.8vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

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

p {
  color: var(--muted);
  line-height: 1.66;
}

.intro-copy {
  max-width: 660px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.intro-kicker {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.12;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 2px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--teal);
}

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

.button.secondary {
  color: var(--muted);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(100%, 820px);
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quick-facts div {
  min-width: 0;
}

.quick-facts strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  column-gap: clamp(24px, 5vw, 58px);
}

.work-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 3vw, 32px) 0 clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.work-card:first-child {
  grid-row: span 2;
  min-height: 0;
}

.work-card.compact {
  min-height: 0;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(46px, 7vw, 86px);
}

.card-topline a {
  color: var(--muted);
  text-transform: none;
}

.work-card h3 {
  max-width: 14ch;
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  line-height: 1.04;
}

.work-card.compact h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.evidence-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.evidence-list li::marker {
  color: var(--teal);
}

.field-grid {
  display: grid;
  gap: 18px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.field-grid div {
  padding: 0;
}

.field-grid strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

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

.experience-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(24px, 4vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}

.experience-meta {
  display: grid;
  align-content: start;
  gap: 7px;
}

.experience-meta span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.experience-item h3 {
  margin-bottom: 9px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.experience-item p {
  max-width: 680px;
  margin-bottom: 0;
}

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

.study-layout article {
  min-width: 0;
  min-height: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step {
  display: block;
  margin-bottom: 56px;
  color: var(--clay);
}

.scope-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.scope-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 0.65fr);
  gap: 24px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.scope-list p {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
}

.about-copy > p {
  max-width: 650px;
  font-size: 1.08rem;
}

.thought-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.thought-grid article {
  min-width: 0;
  min-height: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  min-height: 58svh;
  border-bottom: 0;
}

.contact p {
  max-width: 620px;
}

@media (max-width: 980px) {
  .page-shell {
    display: block;
  }

  .profile-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .rail-nav {
    display: flex;
    flex: 1 1 auto;
    gap: 16px;
    overflow-x: auto;
  }

  .rail-nav a {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .rail-footer {
    display: none;
  }

  main {
    margin: 0 auto;
  }

  .intro {
    min-height: auto;
  }

  .quick-facts,
  .study-layout,
  .thought-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid,
  .experience-item,
  .two-column,
  .contact {
    grid-template-columns: 1fr;
  }

  .work-card:first-child {
    grid-row: auto;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 16px;
  }

  .profile-rail {
    gap: 14px;
  }

  .identity-mark {
    width: 42px;
    height: 42px;
  }

  .identity small {
    display: none;
  }

  .rail-nav {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  h1 {
    max-width: 10ch;
    font-size: 3.35rem;
  }

  .section {
    padding: 62px 0;
  }

  .quick-facts,
  .study-layout,
  .thought-grid {
    grid-template-columns: 1fr;
  }

  .scope-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    flex: 1 1 130px;
  }
}
