:root {
  --black: #111111;
  --white: #ffffff;
  --offwhite: #f6f6f6;
  --red: #e00122;
  --dark-red: #a90019;
  --gray: #656565;
  --line: rgba(17,17,17,.14);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.05;
}
h1 {
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  letter-spacing: -.055em;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  letter-spacing: -.04em;
}
h3 { font-size: 1.35rem; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17,17,17,.08);
}
.brand {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}
.brand span {
  color: var(--red);
  font-size: .68rem;
  vertical-align: middle;
  margin-left: 2px;
}
.menu-toggle {
  border: 0;
  background: transparent;
  display: grid;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--black);
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 90vw);
  background: var(--black);
  color: var(--white);
  padding: 34px;
  z-index: 70;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.menu-panel.open { transform: translateX(0); }
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a8a8a8;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
}
.menu-close {
  border: 0;
  background: transparent;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.menu-panel nav {
  display: grid;
  margin-top: 65px;
}
.menu-panel nav a {
  font-family: "Playfair Display", serif;
  text-decoration: none;
  font-size: 2.15rem;
  border-bottom: 1px solid #333;
  padding: 15px 0;
}
.menu-panel nav a:hover { color: var(--red); }
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 120px 0 70px;
  display: grid;
  grid-template-columns: minmax(300px, 40%) 1fr;
  gap: 54px;
  align-items: center;
}
.hero-photo {
  min-height: 620px;
  border-radius: 24px;
  background:
    linear-gradient(to top, rgba(0,0,0,.18), rgba(0,0,0,0)),
    url("headshot.png") center 16% / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
}
.hero-content { padding: 20px 0; }
.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.intro {
  color: #4f4f4f;
  font-size: 1.14rem;
  max-width: 680px;
}
.intro strong { color: var(--black); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.hero-grid article {
  border: 1px solid var(--line);
  background: var(--offwhite);
  padding: 23px;
  border-radius: 16px;
}
.hero-grid article:first-child {
  border-top: 4px solid var(--red);
}
.hero-grid article:nth-child(2) {
  border-top: 4px solid var(--black);
}
.hero-grid span {
  color: var(--red);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 800;
}
.hero-grid h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.27rem;
  letter-spacing: -.02em;
  margin: 12px 0 7px;
}
.hero-grid p { color: var(--gray); margin-bottom: 0; }
.about-card { grid-column: 1 / -1; }
.about-card p { max-width: 760px; margin-top: 10px; }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.primary-btn, .secondary-btn {
  padding: 13px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}
.primary-btn {
  background: var(--red);
  color: var(--white);
}
.primary-btn:hover { background: var(--dark-red); }
.secondary-btn {
  border: 1px solid var(--black);
  color: var(--black);
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 100px 0;
}
.section-title { margin-bottom: 48px; }
.section-title h2 { max-width: 850px; }

.experience-list { border-top: 1px solid var(--line); }
.experience-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 55px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.date {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 800;
  font-size: .72rem;
}
.experience-card h3 { margin-bottom: 5px; }
.company { color: var(--gray); }
.experience-card ul { margin: 0; padding-left: 18px; }
.experience-card li { margin-bottom: 9px; }

.split-section {
  display: grid;
  grid-template-columns: 60% 50%;
  gap: 10px;
  align-items: start;
}
.large-copy { font-size: 1.15rem; }
.involvement-card {
  background: var(--black);
  color: var(--white);
  padding: 34px;
  border-radius: 24px;
  border-top: 10px solid var(--red);
  max-width: 490px;
  margin-top: 110px;
  margin-right: 190px;
  
  justify-self: end;
  align-self: start;
}
.involvement-card h3 { margin-bottom: 6px; }
.involvement-card p:not(.eyebrow) { color: #cfcfcf; }

.dark-section {
  width: 100%;
  max-width: none;
  background: var(--black);
  color: var(--white);
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.cert-grid article {
  border: 1px solid #333;
  padding: 26px;
  min-height: 190px;
  border-radius: 14px;
}
.cert-grid article:hover { border-color: var(--red); }
.cert-grid span {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .69rem;
  font-weight: 800;
}
.cert-grid h3 { margin-top: 16px; }
.cert-grid p { color: #aaa; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-list { border-top: 1px solid var(--line); }
.contact-list a, .contact-list div {
  display: grid;
  grid-template-columns: 105px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-list a:hover { color: var(--red); }
.contact-list span {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: .74rem;
}

footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: .84rem;
}
footer a { text-decoration: none; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 105px;
  }
  .hero-photo { min-height: 560px; }
  .experience-card,
  .split-section, 
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
   .involvement-card {
    margin-top: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    justify-self: stretch;
  }
    
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { padding: 16px 18px; }
  .hero, .section, footer { width: calc(100% - 28px); }
  .hero { padding: 90px 0 52px; gap: 28px; }
  .hero-photo { min-height: 470px; border-radius: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .about-card { grid-column: auto; }
  .hero-actions { flex-direction: column; }
  .primary-btn, .secondary-btn { text-align: center; }
  .section { padding: 78px 0; }
}

   .involvement-card {
    padding: 24px;
    border-radius: 18px;
    margin-top: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .involvement-card h3 {
    margin-top: 18px;
    margin-bottom: 4px;
  }

  .involvement-card p:not(.eyebrow) {
    margin-bottom: 14px;
  }
  .dark-section {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-list a, .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
