:root {
  --paper: #f6f5ef;
  --ink: #252c27;
  --muted: #5e675c;
  --green-ink: #546147;
  --line: #dcded4;
  --accent: #d9eb9a;
  --green: #e8eddf;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Base typography, links, and keyboard navigation. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--ink); }
.wrap { width: calc(100% - 112px); max-width: 1248px; margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow, .small-label, .hero-footer {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 1px;
}
.small-label { color: var(--muted); }
h1 {
  font-family: var(--serif);
  font-size: clamp(68px, 6.55vw, 94px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -2.6px;
  margin-bottom: 26px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(43px, 4vw, 57px);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -.7px;
}
h2 em { font-weight: 400; color: var(--green-ink); }

/* Header and quiet wordmark. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; letter-spacing: -.8px; }
.brand-name { font-family: var(--sans); font-size: 24px; font-weight: 600; line-height: 1; }
.wordmark-ai { font-size: 24px; font-weight: 400; color: var(--muted); }
.wordmark-dot, .name-dot { color: #687742; }
.site-header nav { display: flex; gap: 32px; font-size: 13px; }
.site-header nav a { padding: 12px 0; position: relative; }
.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .2s;
}
.site-header nav a:hover::after { width: 100%; }
.nav-linkedin { color: var(--green-ink); }

/* Introduction and the single selected personal photo. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  column-gap: 70px;
  padding-top: 79px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6e8544;
  box-shadow: 0 0 0 4px #e7ecdd;
}
.hero-position { font-size: 20px; font-weight: 500; line-height: 1.5; margin-bottom: 21px; }
.hero-position span { font-size: 16px; font-weight: 400; color: var(--green-ink); }
.hero-intro { max-width: 484px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 31px; margin-top: 31px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  min-height: 46px;
  padding: 15px 21px;
  font-size: 13px;
  border-radius: 3px;
  transition: background .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #414d3f; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #acb39d;
  font-size: 13px;
}
.text-link:hover { border-color: var(--ink); }
.profile-photo {
  margin: 0;
  align-self: center;
  justify-self: end;
  width: 280px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #d2d7c9;
  border-radius: 4px;
}
.profile-photo img {
  display: block;
  width: 105.263158%;
  max-width: none;
  height: 220px;
  object-fit: cover;
  object-position: 96% center;
  /* User-requested 5% horizontal compression; the source photo is unchanged. */
  transform: scaleX(.95);
  transform-origin: left center;
  background: var(--green);
}
.hero-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 58px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .7px;
}
.hero-footer > span:nth-child(2) { margin-left: auto; }
.hero-footer > a { margin-left: 28px; font-family: var(--sans); font-size: 22px; color: var(--ink); }

/* Sections and specific current engineering work. */
.section { padding-block: 66px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 38px; }
.focus-grid { display: grid; grid-template-columns: 1fr 1.17fr; gap: 90px; }
.focus-intro { max-width: 340px; margin-top: 21px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.focus-scale { margin-top: 20px; font-size: 15px; font-weight: 500; line-height: 1.8; }
.focus-tools { margin-top: 20px; font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--green-ink); }
.focus-list { border-top: 1px solid var(--line); }
.focus-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.focus-row h3 { font-size: 16px; font-weight: 500; line-height: 1.5; }
.focus-row p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* Employment history. */
.work-heading { margin-bottom: 32px; }
.experience-list { border-top: 1px solid var(--line); }
.experience-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  padding: 35px 28px;
  border-bottom: 1px solid var(--line);
}
.experience-current { background: var(--green); border-radius: 4px 4px 0 0; }
.experience-company > .small-label { display: block; margin-bottom: 7px; color: var(--green-ink); }
.experience-company h3 { font-size: 25px; font-weight: 500; letter-spacing: -.7px; line-height: 1.3; }
.experience-company h3 span { font-size: 16px; color: var(--muted); white-space: nowrap; }
.experience-date { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .5px; color: var(--muted); }
.experience-copy h4 { margin: 0 0 13px; font-size: 15px; font-weight: 550; line-height: 1.5; }
.experience-copy > p { max-width: 620px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.experience-copy > p + p { margin-top: 12px; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.experience-tags span { padding: 5px 8px; border: 1px solid #d1d6c7; border-radius: 2px; font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--green-ink); }
.experience-earlier { padding-block: 26px; }
.experience-earlier .experience-company h3 { font-size: 21px; }
.experience-earlier .experience-copy h4 { margin-bottom: 8px; }

/* Short background and education. */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about-copy { padding-top: 4px; }
.about-copy p { margin-bottom: 17px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.background-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; margin-top: 46px; padding-top: 23px; border-top: 1px solid var(--line); }
.background-strip p { margin-top: 6px; font-size: 14px; line-height: 1.5; }

/* Contact and footer. */
.contact-section { margin-top: 61px; padding: 39px 43px 41px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.contact-section > .eyebrow { color: #c9d1c2; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 17px; }
.contact-row h2 { font-size: 53px; }
.button-light { background: var(--accent); color: var(--ink); white-space: nowrap; }
.button-light:hover { background: #e2f4ad; }
.contact-section a:focus-visible { outline-color: var(--paper); }
.contact-section > p { margin-top: 17px; font-size: 14px; line-height: 1.75; color: #c9d1c2; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 31px; padding-bottom: 34px; font-size: 11px; color: var(--muted); }
.site-footer a { padding: 7px 0; }
.site-footer a:hover { color: var(--ink); }

/* One ordered breakpoint block per size, with no stale template overrides. */
@media (min-width: 1600px) {
  .hero { padding-top: 92px; column-gap: 100px; }
  h1 { font-size: 100px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero { column-gap: 36px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  h1 { font-size: 73px; letter-spacing: -2px; }
  .hero-position { font-size: 18px; }
  .hero-position span { font-size: 15px; }
  .profile-photo { width: 250px; }
  .profile-photo img { height: 200px; }
  .site-header nav { gap: 24px; }
  .focus-grid { gap: 45px; }
  .experience-row { gap: 35px; }
  .about-grid { gap: 40px; }
  .contact-row h2 { font-size: 47px; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 82px; }
  .site-header nav { gap: 17px; font-size: 12px; }
  .site-header .nav-linkedin { display: none; }
  .brand-name, .wordmark-ai { font-size: 22px; }
  .hero { padding-top: 49px; column-gap: 25px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  h1 { font-size: 57px; letter-spacing: -1.5px; }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { gap: 20px; flex-wrap: wrap; margin-top: 24px; }
  .profile-photo { width: 235px; }
  .profile-photo img { height: 185px; }
  .hero-footer { margin-top: 43px; gap: 18px; }
  .hero-footer > a { margin-left: 6px; }
  .section { padding-block: 48px; }
  .section-heading { margin-bottom: 28px; }
  .focus-grid { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .experience-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 25px; padding: 28px 20px; }
  .experience-company h3 { font-size: 23px; }
  .experience-company h3 span { display: block; margin-top: 3px; font-size: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-copy { max-width: 560px; }
  .background-strip { gap: 20px; margin-top: 31px; }
  .background-strip p { font-size: 13px; }
  .contact-section { margin-top: 46px; padding: 30px; }
  .contact-row { gap: 20px; }
  .contact-row h2 { font-size: 40px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 74px; }
  .site-header nav { display: none; }
  .hero {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 28px 20px;
    padding-top: 41px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
  }
  .hero-copy { grid-column: 1 / -1; }
  h1 { font-size: clamp(53px, 12vw, 76px); letter-spacing: -1.3px; margin-bottom: 24px; }
  .hero-position { font-size: 18px; }
  .hero-position span { font-size: 14px; }
  .hero-actions { margin-top: 27px; gap: 23px; }
  .button { padding: 15px 20px; }
  .text-link { font-size: 12px; }
  .profile-photo { grid-column: 2; grid-row: 2; width: 128px; }
  .profile-photo img { height: 100px; }
  .hero-footer {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .hero-footer > span:first-child { width: 100%; }
  .hero-footer > span:nth-child(2) { margin-left: 0; }
  .hero-footer > a { display: none; }
  .section { padding-block: 41px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading > .small-label { display: none; }
  h2 { font-size: 44px; }
  .focus-grid { grid-template-columns: 1fr; gap: 30px; }
  .focus-intro { max-width: 350px; margin-top: 16px; }
  .focus-row { padding: 22px 0; }
  .work-heading { margin-bottom: 25px; }
  .experience-row { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }
  .experience-company h3 span { display: inline; margin-left: 5px; }
  .experience-date { margin-top: 8px; }
  .experience-tags { gap: 6px; }
  .experience-earlier { padding-block: 24px; }
  .experience-earlier .experience-company h3 { font-size: 21px; }
  .about-grid { gap: 24px; }
  .background-strip { grid-template-columns: 1fr; gap: 19px; padding-top: 23px; }
  .contact-section { margin-top: 39px; padding: 28px; }
  .contact-row { display: block; margin-top: 16px; }
  .contact-row h2 { font-size: 42px; }
  .button-light { margin-top: 22px; }
  .contact-section > p { margin-top: 20px; }
  .site-footer { flex-wrap: wrap; gap: 9px 20px; padding-top: 25px; padding-bottom: 27px; }
  .footer-note { order: 3; width: 100%; }
  .site-footer a { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
