:root {
  --sand: #fbf8f1;
  --cream: #f2ecdf;
  --forest: #17372f;
  --forest-2: #22483d;
  --terracotta: #a84f38;
  --terracotta-soft: #ead1c7;
  --sage: #b9cdc2;
  --ink-muted: #5c665f;
  --border: #ded4c2;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--forest);
  font-family: "Avenir Next", Avenir, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: 10px 16px;
}
.skip-link:focus { top: 20px; }

.section-shell,
.site-header {
  width: min(100% - 64px, 1320px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
  border-bottom: 1px solid var(--border);
}
.wordmark { font-size: 23px; font-weight: 700; letter-spacing: -0.08em; }
.wordmark span { color: var(--terracotta); }
.site-nav { display: flex; justify-content: center; gap: 34px; font-size: 14px; font-weight: 600; }
.site-nav a,
.nav-cv { position: relative; }
.site-nav a::after,
.nav-cv::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--terracotta);
  transition: right 180ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-cv:hover::after,
.nav-cv:focus-visible::after { right: 0; }
.nav-cv { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
  padding-block: clamp(70px, 10vw, 130px);
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow.terracotta { color: var(--terracotta); }
.eyebrow.light { color: #e8dfd2; }
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 7.1vw, 102px);
  line-height: 0.96;
  letter-spacing: -0.066em;
  font-weight: 650;
}
.hero h1 em {
  color: var(--terracotta);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-weight: 400;
}
.hero-lead {
  max-width: 740px;
  margin: 34px 0 0;
  color: var(--ink-muted);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.7;
}
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 27px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--terracotta); color: var(--white); }
.button-primary:hover,
.button-primary:focus-visible { background: var(--forest); }
.text-link,
.contact-link { padding-bottom: 7px; border-bottom: 2px solid var(--sage); font-weight: 700; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-facts div { min-width: 118px; }
.hero-facts dt { color: var(--ink-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-facts dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; }

.portrait-block { position: relative; width: min(100%, 440px); margin: 0; padding: 0 0 38px 38px; justify-self: end; }
.portrait-block img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.02);
}
.portrait-accent { position: absolute; inset: 38px 38px 0 0; z-index: 1; background: var(--terracotta); }
.portrait-block figcaption {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 0;
  padding: 15px 20px;
  background: var(--forest);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.portrait-block figcaption span { display: block; color: var(--sage); font-weight: 500; }

.research-direction {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-block: 90px;
  border-top: 1px solid var(--border);
}
.section-index span { color: var(--terracotta); font-family: Iowan Old Style, Georgia, serif; font-size: 44px; }
.section-index p { margin: 0; color: var(--ink-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.direction-content { max-width: 970px; }
.direction-content blockquote {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.042em;
  font-weight: 650;
}
.direction-content > p:last-child { max-width: 740px; margin: 30px 0 0; color: var(--ink-muted); font-size: 19px; }

.bridge-section { display: grid; grid-template-columns: minmax(0, 0.95fr) 92px minmax(0, 1.05fr); padding: 0; }
.practice-panel,
.research-panel { padding: clamp(40px, 5.2vw, 72px); }
.practice-panel { background: var(--forest); color: var(--white); }
.research-panel { background: var(--cream); }
.practice-panel h2,
.research-panel h2,
.preparation h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.15; letter-spacing: -0.038em; }
.practice-panel ul,
.research-panel ul { display: grid; gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.practice-panel li,
.research-panel li { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.research-panel li { border-top-color: var(--border); }
.bridge-mark { display: grid; place-items: center; background: var(--terracotta-soft); color: var(--terracotta); font-size: 35px; }

.agenda,
.experience,
.education,
.toolkit { padding-block: clamp(90px, 10vw, 140px); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}
.section-heading h2 { margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.056em; }
.section-heading > p { margin: 0; color: var(--ink-muted); }
.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--forest); border-bottom: 1px solid var(--border); }
.interest-item { min-height: 330px; padding: 30px 28px 36px; border-right: 1px solid var(--border); }
.interest-item:last-child { border-right: 0; }
.interest-item > span { color: var(--terracotta); font-family: Iowan Old Style, Georgia, serif; font-size: 19px; }
.interest-item h3 { margin: 70px 0 16px; font-size: 25px; line-height: 1.18; letter-spacing: -0.025em; }
.interest-item p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.preparation {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 90px;
  padding-block: 80px;
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 0 0 100vmax var(--terracotta);
  clip-path: inset(0 -100vmax);
}
.preparation-body > p { margin: 0; font-size: 20px; }
.preparation-body ol { display: grid; gap: 14px; margin: 30px 0 0; padding-left: 25px; }

.timeline { border-top: 1px solid var(--forest); }
.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(230px, 0.72fr) minmax(0, 1.35fr);
  gap: 42px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.timeline-item p { margin: 0; color: var(--ink-muted); }
.timeline-item h3 { margin: 0; font-size: 22px; }
.timeline-date { color: var(--terracotta) !important; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; }
.timeline-role { margin-top: 2px !important; font-size: 14px; }

.education { border-top: 1px solid var(--border); }
.education-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.education-grid article { min-height: 330px; padding: 40px; background: var(--cream); }
.education-grid article:first-child { background: var(--forest); color: var(--white); }
.degree-year { margin: 0 0 54px; color: var(--terracotta); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.education-grid article:first-child .degree-year { color: var(--sage); }
.education-grid h3 { margin: 0; font-size: clamp(27px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.035em; }
.degree-focus { margin: 10px 0 22px; color: var(--terracotta); font-weight: 700; }
.degree-note { max-width: 700px; color: var(--sage); font-size: 15px; }

.skills-list { margin: 0; border-top: 1px solid var(--forest); }
.skills-list div { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.skills-list dt { font-weight: 700; }
.skills-list dd { margin: 0; color: var(--ink-muted); }

.contact {
  padding-block: clamp(70px, 9vw, 120px);
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 0 0 100vmax var(--forest);
  clip-path: inset(0 -100vmax);
}
.contact h2 { max-width: 1050px; margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1.02; letter-spacing: -0.055em; }
.contact > p:not(.eyebrow) { max-width: 720px; margin: 28px 0 0; color: var(--sage); font-size: 19px; }
.button-light { background: var(--white); color: var(--forest); }
.button-light:hover,
.button-light:focus-visible { background: var(--terracotta); color: var(--white); }
.contact-link { border-bottom-color: var(--terracotta); }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; padding-block: 28px; color: var(--ink-muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.footer-actions { display: flex; gap: 22px; justify-content: flex-end; }
.footer-actions a { font-weight: 700; }
a:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-nav { justify-content: flex-end; }
  .nav-cv { display: none; }
  .hero { grid-template-columns: 1fr; gap: 62px; }
  .portrait-block { width: min(100%, 520px); margin-inline: auto; justify-self: center; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .interest-item:nth-child(2) { border-right: 0; }
  .interest-item:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 820px) {
  .section-shell,
  .site-header { width: min(100% - 40px, 1320px); }
  .site-header { min-height: 74px; gap: 20px; }
  .site-nav { gap: 16px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 65px 90px; }
  .portrait-block { width: min(100%, 540px); margin-inline: auto; }
  .research-direction,
  .section-heading,
  .preparation { grid-template-columns: 1fr; gap: 36px; }
  .research-direction { padding-block: 70px; }
  .section-index { display: flex; align-items: baseline; gap: 20px; }
  .bridge-section { grid-template-columns: 1fr; }
  .bridge-mark { min-height: 70px; }
  .bridge-mark span { transform: rotate(90deg); }
  .timeline-item { grid-template-columns: 110px 1fr; }
  .timeline-item > p:last-child { grid-column: 2; }
  .education-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p:nth-child(2) { display: none; }
  .footer-actions { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { align-items: start; padding-block: 18px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .portrait-block { padding: 0 0 25px 25px; }
  .portrait-block figcaption { right: -8px; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-item,
  .interest-item:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .interest-item h3 { margin-top: 34px; }
  .timeline-item { grid-template-columns: 1fr; gap: 9px; }
  .timeline-item > p:last-child { grid-column: 1; margin-top: 10px; }
  .education-grid article { padding: 30px 24px; }
  .skills-list div { grid-template-columns: 1fr; gap: 4px; }
  .button { width: 100%; }
  .hero-actions,
  .contact-actions { align-items: stretch; }
  .text-link,
  .contact-link { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}
